diff --git a/frontend/src/lib/components/apps/components/inputs/AppDateSelect.svelte b/frontend/src/lib/components/apps/components/inputs/AppDateSelect.svelte new file mode 100644 index 0000000000..0d7dad526f --- /dev/null +++ b/frontend/src/lib/components/apps/components/inputs/AppDateSelect.svelte @@ -0,0 +1,313 @@ + + +{#each Object.keys(components['dateselectcomponent'].initialData.configuration) as key (key)} + +{/each} + +{#each Object.keys(css ?? {}) as key (key)} + +{/each} + + + + + + +
+ {#if resolvedConfig?.enableDay} +
+ { + selectedMonth = e.detail.value + outputs.month.set(monthItems.findIndex((item) => item.value === selectedMonth) + 1) + }} + on:clear={() => { + selectedMonth = '' + outputs.month.set(undefined) + }} + items={monthItems} + placeholder="Pick a month" + class={twMerge('text-clip min-w-0', css?.input?.class, 'wm-date-select')} + containerStyles={(darkMode + ? SELECT_INPUT_DEFAULT_STYLE.containerStylesDark + : SELECT_INPUT_DEFAULT_STYLE.containerStyles) + css?.input?.style} + clearable + /> +
+ {/if} + {#if resolvedConfig?.enableYear} +
+