diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte new file mode 100644 index 0000000000..eed0e74e29 --- /dev/null +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpicker.svelte @@ -0,0 +1,320 @@ + + + +
+ +
+ +
+ +
+
+
+ +
+ +
+
+ setHue(hue.detail)} + on:dragend={dispatchValue} /> + + + setAlpha(alpha.detail, isDrag)} + on:dragend={dispatchValue} /> + + +
+
+ + {#if !disableSwatches} +
+ {#if swatches.length > 0} + {#each swatches as color, idx} + applySwatch(color)} + on:removeswatch={() => removeSwatch(idx)} /> + {/each} + {/if} + {#if swatches.length !== 12} +
+ + +
+ {/if} +
+ {/if} + +
+ + handleColorInput(event.target.value)} + on:change={dispatchInputChange} /> +
+
+ +
+ + + diff --git a/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte new file mode 100644 index 0000000000..079d4e038f --- /dev/null +++ b/packages/builder/src/components/userInterface/Colorpicker/Colorpreview.svelte @@ -0,0 +1,157 @@ + + +
+ {#if !errorMsg} + +
+ + + {#if open} + +
(open = false)} class="overlay" /> + {/if} + {:else} +
+ × +
+ {/if} +
+ + diff --git a/packages/builder/src/components/userInterface/Colorpicker/Portal.svelte b/packages/builder/src/components/userInterface/Colorpicker/Portal.svelte new file mode 100644 index 0000000000..462a176e4f --- /dev/null +++ b/packages/builder/src/components/userInterface/Colorpicker/Portal.svelte @@ -0,0 +1,37 @@ + + +
+ +
diff --git a/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte b/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte index a7d0cec306..3996add741 100644 --- a/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte +++ b/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte @@ -99,9 +99,7 @@ {selectedCategory} /> {#if displayName} -
- {componentInstance._instanceName} -
+
{componentInstance._instanceName}
{/if}
@@ -142,13 +140,15 @@ } .component-props-container { - margin-top: 10px; + margin-top: 16px; flex: 1 1 auto; min-height: 0; } .instance-name { - margin-top: 10px; - font-size: 12px; + margin-top: 20px; + font-size: 14px; + font-weight: 500; + color: var(--grey-7); } diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte index b79d01fb32..f9a8533b33 100644 --- a/packages/builder/src/components/userInterface/PropertyControl.svelte +++ b/packages/builder/src/components/userInterface/PropertyControl.svelte @@ -52,7 +52,6 @@ } .label { - flex: 0 0 50px; display: flex; align-items: center; font-size: 12px; diff --git a/packages/builder/src/components/userInterface/propertyCategories.js b/packages/builder/src/components/userInterface/propertyCategories.js index 5b87b35088..0a18cb544a 100644 --- a/packages/builder/src/components/userInterface/propertyCategories.js +++ b/packages/builder/src/components/userInterface/propertyCategories.js @@ -85,6 +85,8 @@ export const margin = [ { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, { label: "64px", value: "64px" }, + { label: "128px", value: "128px" }, + { label: "256px", value: "256px" }, { label: "Auto", value: "auto" }, { label: "100%", value: "100%" }, ], @@ -101,6 +103,8 @@ export const margin = [ { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, { label: "64px", value: "64px" }, + { label: "128px", value: "128px" }, + { label: "256px", value: "256px" }, { label: "Auto", value: "auto" }, { label: "100%", value: "100%" }, ], @@ -133,6 +137,8 @@ export const margin = [ { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, { label: "64px", value: "64px" }, + { label: "128px", value: "128px" }, + { label: "256px", value: "256px" }, { label: "Auto", value: "auto" }, { label: "100%", value: "100%" }, ], @@ -149,6 +155,8 @@ export const margin = [ { label: "20px", value: "20px" }, { label: "32px", value: "32px" }, { label: "64px", value: "64px" }, + { label: "128px", value: "128px" }, + { label: "256px", value: "256px" }, { label: "Auto", value: "auto" }, { label: "100%", value: "100%" }, ], diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 05c66bdeb6..fedc432150 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -290,7 +290,14 @@ export default { icon: "ri-archive-drawer-line", properties: { design: { ...all }, - settings: [{ label: "Table", key: "model", control: ModelSelect }], + settings: [ + { label: "Model", key: "model", control: ModelSelect }, + { label: "Stripe Color", key: "stripeColor", control: Input }, + { label: "Border Color", key: "borderColor", control: Input }, + { label: "TH Color", key: "backgroundColor", control: Input }, + { label: "TH Font Color", key: "color", control: Input }, + { label: "Table", key: "model", control: ModelSelect }, + ], }, children: [], }, diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index 2de6c9398f..1b266f4021 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -191,16 +191,22 @@ "icon": { "description": "A HTML icon tag", "props": { - "icon": "string", - "fontSize": "string", - "color": "string" + "url": "string", + "className": "string", + "description": "string", + "height": "string", + "width": "string" } }, "datatable": { "description": "an HTML table that fetches data from a table or view and displays it.", "data": true, "props": { - "model": "models" + "model": "models", + "stripeColor": "string", + "borderColor": "string", + "backgroundColor": "string", + "color": "string" } }, "dataform": { diff --git a/packages/standard-components/src/DataTable.svelte b/packages/standard-components/src/DataTable.svelte index 22c0e202b7..0d75b1e4e8 100644 --- a/packages/standard-components/src/DataTable.svelte +++ b/packages/standard-components/src/DataTable.svelte @@ -1,13 +1,25 @@ - +
{#each headers as header} @@ -67,42 +79,77 @@