@caspeco/casper-ui-library 11.4.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-item.js +10 -10
- package/dist/components/accordion/accordion-panel.js +4 -4
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.js +18 -18
- package/dist/components/box/box.js +3 -3
- package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.js +22 -22
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +30 -29
- package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
- package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.translations.js +54 -0
- package/dist/components/collapsible/types.d.ts +0 -6
- package/dist/components/collapsible/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +66 -64
- package/dist/components/combobox/combobox-item.js +8 -8
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +95 -94
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +91 -91
- package/dist/components/combobox/combobox.translations.d.ts +10 -0
- package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
- package/dist/components/combobox/combobox.translations.js +102 -0
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/types.d.ts +0 -15
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +163 -162
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +20 -21
- package/dist/components/date-picker/date-picker-date-cell.js +27 -27
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +84 -116
- package/dist/components/date-picker/date-picker-week-cell.js +4 -4
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +20 -21
- package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
- package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.translations.js +54 -0
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +15 -16
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +13 -14
- package/dist/components/date-picker/types.d.ts +4 -10
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/inline-drawer.js +4 -4
- package/dist/components/fieldset/fieldset-error-text.js +3 -3
- package/dist/components/fieldset/fieldset-helper-text.js +3 -3
- package/dist/components/fieldset/fieldset-legend.js +3 -3
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/form-control/form-control.js +3 -3
- package/dist/components/form-control/form-error-message.js +3 -3
- package/dist/components/form-control/form-helper-text.js +3 -3
- package/dist/components/form-control/form-label.js +5 -5
- package/dist/components/grid/grid-item.js +3 -3
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/heading/heading.js +3 -3
- package/dist/components/highlight/highlight.js +3 -3
- package/dist/components/icon/create-icon.js +7 -7
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/image/image.js +3 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +75 -74
- package/dist/components/image-upload/image-upload-icons.js +11 -11
- package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +69 -69
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +43 -44
- package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
- package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.translations.js +126 -0
- package/dist/components/image-upload/types.d.ts +0 -3
- package/dist/components/image-upload/types.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +5 -5
- package/dist/components/link/link.js +3 -3
- package/dist/components/list/list-item.js +3 -3
- package/dist/components/list/list.js +3 -3
- package/dist/components/menu/menu-box-button.js +4 -4
- package/dist/components/menu/menu-button.js +4 -4
- package/dist/components/menu/menu-group.js +11 -11
- package/dist/components/menu/menu-icon-button.js +4 -4
- package/dist/components/menu/menu-item.js +7 -7
- package/dist/components/menu/menu-list.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/message/message.js +8 -8
- package/dist/components/modal/modal-body.js +3 -3
- package/dist/components/modal/modal-close-button.js +5 -5
- package/dist/components/modal/modal-footer.js +3 -3
- package/dist/components/modal/modal-header.js +3 -3
- package/dist/components/modal/modal.js +8 -8
- package/dist/components/navigation-list/navigation-list-item.js +10 -10
- package/dist/components/navigation-list/navigation-list.js +4 -4
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -4
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +31 -30
- package/dist/components/paginator/paginator.translations.d.ts +7 -0
- package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
- package/dist/components/paginator/paginator.translations.js +66 -0
- package/dist/components/phone-input/country-data.d.ts +2 -2
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-list.js +6 -6
- package/dist/components/phone-input/country-selector.d.ts +1 -4
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +86 -84
- package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input-helpers.js +33 -34
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.js +38 -38
- package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
- package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.translations.js +102 -0
- package/dist/components/phone-input/types.d.ts +0 -3
- package/dist/components/phone-input/types.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.d.ts +0 -3
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.js +82 -81
- package/dist/components/quantity-button/quantity-button.js +12 -12
- package/dist/components/radio/radio-group.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +14 -14
- package/dist/components/radio-card/radio-card-group.js +3 -3
- package/dist/components/radio-card/radio-card.d.ts +1 -1
- package/dist/components/radio-card/radio-card.js +7 -7
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +129 -128
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +22 -25
- package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
- package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
- package/dist/components/rich-text-editor/types.d.ts +0 -2
- package/dist/components/rich-text-editor/types.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +5 -5
- package/dist/components/select/select.js +5 -5
- package/dist/components/skeleton/skeleton-text.js +3 -3
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/stepper/step.js +25 -25
- package/dist/components/stepper/stepper.js +8 -8
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +43 -46
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
- package/dist/components/table/table-column-resize-handle.js +22 -21
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +81 -79
- package/dist/components/table/table-context-provider.d.ts +1 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +137 -140
- package/dist/components/table/table-drag-accessibility.d.ts +3 -3
- package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
- package/dist/components/table/table-drag-accessibility.js +10 -14
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +59 -59
- package/dist/components/table/table-header-dropdown.d.ts +0 -2
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +28 -27
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +53 -56
- package/dist/components/table/table-row-drag-handle.d.ts +1 -3
- package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
- package/dist/components/table/table-row-drag-handle.js +10 -9
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +9 -8
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +5 -6
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
- package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +26 -25
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -4
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-add-button.js +4 -4
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +110 -108
- package/dist/components/table/table-toolbar.js +11 -11
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +31 -32
- package/dist/components/table/table.translations.d.ts +45 -0
- package/dist/components/table/table.translations.d.ts.map +1 -0
- package/dist/components/table/table.translations.js +522 -0
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +3 -3
- package/dist/components/tabs/tab-panel.js +3 -3
- package/dist/components/tabs/tab-panels.js +3 -3
- package/dist/components/tabs/tab-with-image.js +10 -10
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tabs/tabs.js +3 -3
- package/dist/components/tag/tag.js +28 -28
- package/dist/components/text/text.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/toaster/toaster.js +9 -9
- package/dist/components/toggle-button/toggle-button.js +3 -3
- package/dist/components/toggle-button/use-button-children.js +10 -10
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/index.js +404 -402
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
- package/dist/test-utils/render-with-theme.d.ts +5 -1
- package/dist/test-utils/render-with-theme.d.ts.map +1 -1
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/locale-provider.d.ts +9 -0
- package/dist/theme/locale-provider.d.ts.map +1 -0
- package/dist/theme/locale-provider.js +14 -0
- package/dist/theme/locale-provider.spec.d.ts +2 -0
- package/dist/theme/locale-provider.spec.d.ts.map +1 -0
- package/dist/theme/theme-locale.d.ts +7 -0
- package/dist/theme/theme-locale.d.ts.map +1 -0
- package/dist/theme/theme-locale.js +8 -0
- package/dist/theme/theme-provider.d.ts +4 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +30 -25
- package/dist/theme/translations.d.ts +14 -0
- package/dist/theme/translations.d.ts.map +1 -0
- package/dist/theme/translations.js +10 -0
- package/dist/theme/translations.spec.d.ts +2 -0
- package/dist/theme/translations.spec.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/components/collapsible/translations.d.ts +0 -32
- package/dist/components/collapsible/translations.d.ts.map +0 -1
- package/dist/components/collapsible/translations.js +0 -30
- package/dist/components/combobox/translations.d.ts +0 -9
- package/dist/components/combobox/translations.d.ts.map +0 -1
- package/dist/components/combobox/translations.js +0 -57
- package/dist/components/image-upload/translations.d.ts +0 -73
- package/dist/components/image-upload/translations.d.ts.map +0 -1
- package/dist/components/image-upload/translations.js +0 -66
- package/dist/components/paginator/translations.d.ts +0 -9
- package/dist/components/paginator/translations.d.ts.map +0 -1
- package/dist/components/paginator/translations.js +0 -36
- package/dist/components/phone-input/translations.d.ts +0 -60
- package/dist/components/phone-input/translations.d.ts.map +0 -1
- package/dist/components/phone-input/translations.js +0 -54
- package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
- package/dist/components/rich-text-editor/translations.js +0 -120
- package/dist/components/table/translations.d.ts +0 -308
- package/dist/components/table/translations.d.ts.map +0 -1
- package/dist/components/table/translations.js +0 -267
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ComboboxTranslation = {
|
|
2
|
+
search: string;
|
|
3
|
+
noMatchFor: (search: string) => string;
|
|
4
|
+
remove: string;
|
|
5
|
+
clearSelection: string;
|
|
6
|
+
showMaxItems: (count: number) => string;
|
|
7
|
+
back: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const comboboxTranslations: import('../../theme/translations.js').ComponentTranslations<ComboboxTranslation>;
|
|
10
|
+
//# sourceMappingURL=combobox.translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,oBAAoB,2EAkG/B,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineTranslations as e } from "../../theme/translations.js";
|
|
2
|
+
//#region lib/components/combobox/combobox.translations.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
en: {
|
|
5
|
+
search: "Search for an option",
|
|
6
|
+
noMatchFor: (e) => `No match found for "${e}"`,
|
|
7
|
+
remove: "Remove",
|
|
8
|
+
clearSelection: "Clear selection",
|
|
9
|
+
showMaxItems: (e) => `Showing the first ${e} options. Search to narrow down the list.`,
|
|
10
|
+
back: "Back"
|
|
11
|
+
},
|
|
12
|
+
sv: {
|
|
13
|
+
search: "Sök efter ett alternativ",
|
|
14
|
+
noMatchFor: (e) => `Hittar inget som matchar "${e}"`,
|
|
15
|
+
remove: "Ta bort",
|
|
16
|
+
clearSelection: "Rensa urval",
|
|
17
|
+
showMaxItems: (e) => `Visar första ${e} valen. Sök för att begränsa listan`,
|
|
18
|
+
back: "Tillbaka"
|
|
19
|
+
},
|
|
20
|
+
nb: {
|
|
21
|
+
search: "Søk etter et alternativ",
|
|
22
|
+
noMatchFor: (e) => `Ingen treff for "${e}"`,
|
|
23
|
+
remove: "Fjern",
|
|
24
|
+
clearSelection: "Fjern valg",
|
|
25
|
+
showMaxItems: (e) => `Viser de første ${e} valgene. Søk for å begrense listen.`,
|
|
26
|
+
back: "Tilbake"
|
|
27
|
+
},
|
|
28
|
+
da: {
|
|
29
|
+
search: "Søg efter en mulighed",
|
|
30
|
+
noMatchFor: (e) => `Ingen match for "${e}"`,
|
|
31
|
+
remove: "Fjern",
|
|
32
|
+
clearSelection: "Ryd valg",
|
|
33
|
+
showMaxItems: (e) => `Viser de første ${e} valgmuligheder. Søg for at indsnævre listen.`,
|
|
34
|
+
back: "Tilbage"
|
|
35
|
+
},
|
|
36
|
+
fr: {
|
|
37
|
+
search: "Rechercher une option",
|
|
38
|
+
noMatchFor: (e) => `Aucune correspondance pour "${e}"`,
|
|
39
|
+
remove: "Supprimer",
|
|
40
|
+
clearSelection: "Effacer la sélection",
|
|
41
|
+
showMaxItems: (e) => `Affichage des ${e} premiers choix. Recherchez pour affiner la liste.`,
|
|
42
|
+
back: "Retour"
|
|
43
|
+
},
|
|
44
|
+
nl: {
|
|
45
|
+
search: "Zoek naar een optie",
|
|
46
|
+
noMatchFor: (e) => `Geen overeenkomst voor "${e}"`,
|
|
47
|
+
remove: "Verwijderen",
|
|
48
|
+
clearSelection: "Selectie wissen",
|
|
49
|
+
showMaxItems: (e) => `Toont de eerste ${e} keuzes. Zoek om de lijst te beperken.`,
|
|
50
|
+
back: "Terug"
|
|
51
|
+
},
|
|
52
|
+
de: {
|
|
53
|
+
search: "Nach einer Option suchen",
|
|
54
|
+
noMatchFor: (e) => `Keine Treffer für "${e}"`,
|
|
55
|
+
remove: "Entfernen",
|
|
56
|
+
clearSelection: "Auswahl löschen",
|
|
57
|
+
showMaxItems: (e) => `Die ersten ${e} Optionen werden angezeigt. Suchen Sie, um die Liste einzugrenzen.`,
|
|
58
|
+
back: "Zurück"
|
|
59
|
+
},
|
|
60
|
+
fi: {
|
|
61
|
+
search: "Hae vaihtoehtoa",
|
|
62
|
+
noMatchFor: (e) => `Ei tuloksia haulle "${e}"`,
|
|
63
|
+
remove: "Poista",
|
|
64
|
+
clearSelection: "Tyhjennä valinta",
|
|
65
|
+
showMaxItems: (e) => `Näytetään ensimmäiset ${e} vaihtoehtoa. Rajaa luetteloa hakemalla.`,
|
|
66
|
+
back: "Takaisin"
|
|
67
|
+
},
|
|
68
|
+
es: {
|
|
69
|
+
search: "Buscar una opción",
|
|
70
|
+
noMatchFor: (e) => `No hay coincidencias para "${e}"`,
|
|
71
|
+
remove: "Eliminar",
|
|
72
|
+
clearSelection: "Borrar selección",
|
|
73
|
+
showMaxItems: (e) => `Mostrando las primeras ${e} opciones. Busca para acotar la lista.`,
|
|
74
|
+
back: "Atrás"
|
|
75
|
+
},
|
|
76
|
+
et: {
|
|
77
|
+
search: "Otsi valikut",
|
|
78
|
+
noMatchFor: (e) => `Vasteid ei leitud päringule "${e}"`,
|
|
79
|
+
remove: "Eemalda",
|
|
80
|
+
clearSelection: "Tühjenda valik",
|
|
81
|
+
showMaxItems: (e) => `Kuvatakse esimesed ${e} valikut. Loendi kitsendamiseks otsi.`,
|
|
82
|
+
back: "Tagasi"
|
|
83
|
+
},
|
|
84
|
+
lt: {
|
|
85
|
+
search: "Ieškoti parinkties",
|
|
86
|
+
noMatchFor: (e) => `Nerasta atitikmenų užklausai "${e}"`,
|
|
87
|
+
remove: "Pašalinti",
|
|
88
|
+
clearSelection: "Išvalyti pasirinkimą",
|
|
89
|
+
showMaxItems: (e) => `Rodomos pirmosios ${e} parinktys. Ieškokite, kad susiaurintumėte sąrašą.`,
|
|
90
|
+
back: "Atgal"
|
|
91
|
+
},
|
|
92
|
+
lv: {
|
|
93
|
+
search: "Meklēt opciju",
|
|
94
|
+
noMatchFor: (e) => `Nav atbilstību vaicājumam "${e}"`,
|
|
95
|
+
remove: "Noņemt",
|
|
96
|
+
clearSelection: "Notīrīt atlasi",
|
|
97
|
+
showMaxItems: (e) => `Tiek rādītas pirmās ${e} opcijas. Meklējiet, lai sašaurinātu sarakstu.`,
|
|
98
|
+
back: "Atpakaļ"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
export { t as comboboxTranslations };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Combobox } from './combobox.js';
|
|
2
|
-
export type { ComboboxItem, ComboboxProps, ComboboxTagVariant,
|
|
2
|
+
export type { ComboboxItem, ComboboxProps, ComboboxTagVariant, Placement } from './types.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { Placement } from '@floating-ui/dom';
|
|
|
5
5
|
import { ReactNode, RefObject } from 'react';
|
|
6
6
|
export type { Placement };
|
|
7
7
|
export type ComboboxTagVariant = TagVariant;
|
|
8
|
-
export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB" | "fr-FR" | "nl-BE";
|
|
9
8
|
export type ComboboxItem = {
|
|
10
9
|
/**
|
|
11
10
|
* Unique id of the item. Required for search to work as expected.
|
|
@@ -66,14 +65,6 @@ export type HighlightState = {
|
|
|
66
65
|
next: () => void;
|
|
67
66
|
previous: () => void;
|
|
68
67
|
};
|
|
69
|
-
export type Translation = {
|
|
70
|
-
search: string;
|
|
71
|
-
noMatchFor: string;
|
|
72
|
-
remove: string;
|
|
73
|
-
clearSelection: string;
|
|
74
|
-
showMaxItems: string;
|
|
75
|
-
back: string;
|
|
76
|
-
};
|
|
77
68
|
export type ComboboxInnerProps = {
|
|
78
69
|
id: string;
|
|
79
70
|
asPlainText: boolean;
|
|
@@ -108,7 +99,6 @@ export type ComboboxInnerProps = {
|
|
|
108
99
|
popupRef: RefObject<HTMLDivElement | null>;
|
|
109
100
|
footerContent?: ReactNode;
|
|
110
101
|
subMenuState: SubMenuState;
|
|
111
|
-
translation: Translation;
|
|
112
102
|
folderStyle?: "grouped" | "stacked";
|
|
113
103
|
parentSelectsChildren?: boolean;
|
|
114
104
|
};
|
|
@@ -147,11 +137,6 @@ export type ComboboxProps = MarginProps & LayoutProps & {
|
|
|
147
137
|
* Items to display in the combobox.
|
|
148
138
|
*/
|
|
149
139
|
items: ComboboxItem[];
|
|
150
|
-
/**
|
|
151
|
-
* Locale used for translation of text contents native to the combobox, such as text for no search results.
|
|
152
|
-
* Defaults to 'en-US'.
|
|
153
|
-
*/
|
|
154
|
-
locale?: Locales;
|
|
155
140
|
/**
|
|
156
141
|
* Maximum number of items to render initially before requiring a search.
|
|
157
142
|
* If the number of items exceeds this value, users must search to narrow down the list.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAE5C,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAE5C,MAAM,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ACD,CACG;IACA;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC/B,GACD;IAAE,WAAW,CAAC,EAAE,SAAS,CAAC;IAAC,qBAAqB,CAAC,EAAE,KAAK,CAAA;CAAE,CAC5D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DatePickerPropsBase } from './types.js';
|
|
3
|
-
export declare function BaseDatePicker({ selectedDate, onDateChange, selectedDates, onDatesChange, isMultiSelect, onMonthChange, markSundayRed, strikeThroughDates, showDaysOutsideMonth,
|
|
3
|
+
export declare function BaseDatePicker({ selectedDate, onDateChange, selectedDates, onDatesChange, isMultiSelect, onMonthChange, markSundayRed, strikeThroughDates, showDaysOutsideMonth, canSelectPastDates, isExpanded, dots, weekNumbers, selectWeek, shouldDisableDate, selectedMonth: initialMonth, dateRange, isRangeDate, onRangeChange, isDisabled, redDays, disablePastMonths, disableBackwardNavigation, disableForwardNavigation, }: DatePickerPropsBase): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=base-date-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-date-picker.d.ts","sourceRoot":"","sources":["../../../lib/components/date-picker/base-date-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-date-picker.d.ts","sourceRoot":"","sources":["../../../lib/components/date-picker/base-date-picker.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAaxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoBnD,wBAAgB,cAAc,CAAC,EAC9B,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAqB,EACrB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,oBAA4B,EAC5B,kBAAkB,EAClB,UAAiB,EACjB,IAAI,EACJ,WAAmB,EACnB,UAAkB,EAClB,iBAAiB,EACjB,aAAa,EAAE,YAAY,EAC3B,SAAS,EACT,WAAmB,EACnB,aAAa,EACb,UAAkB,EAClB,OAAY,EACZ,iBAAyB,EACzB,yBAAiC,EACjC,wBAAgC,GAChC,EAAE,mBAAmB,qBAgTrB"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useLocale as t } from "../../theme/theme-locale.js";
|
|
3
|
+
import { ThemeColorVariable as ee, ThemeFontSizeVariable as n, ThemeFontVariable as te, ThemeSpaceVariable as r } from "../../theme/theme-types.js";
|
|
3
4
|
import { addDays as i } from "../../node_modules/date-fns/addDays.js";
|
|
4
5
|
import a from "../../node_modules/date-fns/startOfWeek.js";
|
|
5
6
|
import o from "../../node_modules/date-fns/isSameDay.js";
|
|
6
7
|
import s from "../../node_modules/date-fns/endOfMonth.js";
|
|
7
|
-
import
|
|
8
|
+
import ne from "../../node_modules/date-fns/startOfMonth.js";
|
|
8
9
|
import c from "../../node_modules/date-fns/locale/en-US.js";
|
|
9
|
-
import
|
|
10
|
+
import re from "../../node_modules/date-fns/getISOWeek.js";
|
|
10
11
|
import l from "../../node_modules/date-fns/format.js";
|
|
11
|
-
import
|
|
12
|
+
import ie from "../../node_modules/date-fns/isSameMonth.js";
|
|
12
13
|
import { da as u } from "../../node_modules/date-fns/locale/da.js";
|
|
13
14
|
import { de as d } from "../../node_modules/date-fns/locale/de.js";
|
|
14
15
|
import f from "../../node_modules/date-fns/locale/en-GB.js";
|
|
@@ -22,15 +23,15 @@ import y from "../../node_modules/date-fns/locale/nb.js";
|
|
|
22
23
|
import b from "../../node_modules/date-fns/locale/nl.js";
|
|
23
24
|
import x from "../../node_modules/date-fns/locale/nl-BE.js";
|
|
24
25
|
import S from "../../node_modules/date-fns/locale/sv.js";
|
|
25
|
-
import { DatePickerDateCell as
|
|
26
|
-
import { firstLetterUpperCase as C, getDateCellVariant as
|
|
27
|
-
import { DatePickerHeader as
|
|
28
|
-
import { DatePickerWeekCell as
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
26
|
+
import { DatePickerDateCell as ae } from "./date-picker-date-cell.js";
|
|
27
|
+
import { firstLetterUpperCase as C, getDateCellVariant as oe, getWeekCellVariant as se, hasDatePassed as ce, hasDotOnDate as w, isDateStrikeThrough as le } from "./helper.js";
|
|
28
|
+
import { DatePickerHeader as ue } from "./date-picker-header.js";
|
|
29
|
+
import { DatePickerWeekCell as de } from "./date-picker-week-cell.js";
|
|
30
|
+
import fe, { useState as T } from "react";
|
|
31
|
+
import { Fragment as pe, jsx as E, jsxs as me } from "react/jsx-runtime";
|
|
32
|
+
import { Box as he, Grid as ge, GridItem as _e } from "@chakra-ui/react";
|
|
32
33
|
//#region lib/components/date-picker/base-date-picker.tsx
|
|
33
|
-
var
|
|
34
|
+
var D = e(), O = {
|
|
34
35
|
"en-US": { locale: c },
|
|
35
36
|
"en-GB": { locale: f },
|
|
36
37
|
"nb-NO": { locale: y },
|
|
@@ -47,196 +48,196 @@ var k = e(), A = {
|
|
|
47
48
|
"nl-BE": { locale: x },
|
|
48
49
|
"de-DE": { locale: d }
|
|
49
50
|
};
|
|
50
|
-
function
|
|
51
|
-
let c = (0,
|
|
52
|
-
c[0] ===
|
|
53
|
-
let
|
|
54
|
-
c[2] !==
|
|
55
|
-
let [
|
|
56
|
-
c[5] !==
|
|
57
|
-
initialMonth:
|
|
58
|
-
isExpanded:
|
|
51
|
+
function k(e) {
|
|
52
|
+
let c = (0, D.c)(128), { selectedDate: u, onDateChange: d, selectedDates: f, onDatesChange: p, isMultiSelect: m, onMonthChange: h, markSundayRed: g, strikeThroughDates: _, showDaysOutsideMonth: v, canSelectPastDates: y, isExpanded: b, dots: x, weekNumbers: S, selectWeek: k, shouldDisableDate: A, selectedMonth: j, dateRange: M, isRangeDate: ve, onRangeChange: N, isDisabled: ye, redDays: be, disablePastMonths: xe, disableBackwardNavigation: Se, disableForwardNavigation: Ce } = e, P = m !== void 0 && m, F = v !== void 0 && v, I = b === void 0 || b, L = S !== void 0 && S, R = k !== void 0 && k, we = ve !== void 0 && ve, z = ye !== void 0 && ye, Te;
|
|
53
|
+
c[0] === be ? Te = c[1] : (Te = be === void 0 ? [] : be, c[0] = be, c[1] = Te);
|
|
54
|
+
let B = Te, V = xe !== void 0 && xe, H = Se !== void 0 && Se, U = Ce !== void 0 && Ce, W;
|
|
55
|
+
c[2] !== j || c[3] !== u ? (W = j || u || /* @__PURE__ */ new Date(), c[2] = j, c[3] = u, c[4] = W) : W = c[4];
|
|
56
|
+
let [G, Ee] = T(W), K;
|
|
57
|
+
c[5] !== j || c[6] !== I || c[7] !== u ? (K = {
|
|
58
|
+
initialMonth: j,
|
|
59
|
+
isExpanded: I,
|
|
59
60
|
selectedDate: u
|
|
60
|
-
}, c[5] =
|
|
61
|
-
let [
|
|
62
|
-
u && (
|
|
63
|
-
initialMonth:
|
|
64
|
-
isExpanded:
|
|
61
|
+
}, c[5] = j, c[6] = I, c[7] = u, c[8] = K) : K = c[8];
|
|
62
|
+
let [De, Oe] = T(K);
|
|
63
|
+
u && (De.initialMonth !== j || De.isExpanded !== I || De.selectedDate !== u) && (Oe({
|
|
64
|
+
initialMonth: j,
|
|
65
|
+
isExpanded: I,
|
|
65
66
|
selectedDate: u
|
|
66
|
-
}),
|
|
67
|
-
let [
|
|
68
|
-
c[9] === h ?
|
|
69
|
-
|
|
70
|
-
}, c[9] = h, c[10] =
|
|
71
|
-
let
|
|
72
|
-
c[11] !==
|
|
67
|
+
}), Ee(j || u));
|
|
68
|
+
let [ke, Ae] = T(!0), { locale: q } = O[t()] ?? O["en-US"], J;
|
|
69
|
+
c[9] === h ? J = c[10] : (J = (e) => {
|
|
70
|
+
Ee(e), h && h(e);
|
|
71
|
+
}, c[9] = h, c[10] = J);
|
|
72
|
+
let Y = J, je;
|
|
73
|
+
c[11] !== M || c[12] !== ke || c[13] !== P || c[14] !== we || c[15] !== d || c[16] !== p || c[17] !== N || c[18] !== f ? (je = (e) => {
|
|
73
74
|
let t = (e) => {
|
|
74
|
-
if (
|
|
75
|
+
if (ke) N && N({
|
|
75
76
|
startDate: e,
|
|
76
77
|
endDate: null
|
|
77
|
-
}),
|
|
78
|
-
else if (
|
|
78
|
+
}), Ae(!1);
|
|
79
|
+
else if (M?.startDate && M.startDate > e) N && N({
|
|
79
80
|
startDate: e,
|
|
80
81
|
endDate: null
|
|
81
|
-
}),
|
|
82
|
+
}), Ae(!1);
|
|
82
83
|
else {
|
|
83
|
-
if (
|
|
84
|
-
if (
|
|
84
|
+
if (M?.startDate && o(e, M.startDate)) return;
|
|
85
|
+
if (M?.startDate && N) {
|
|
85
86
|
let t = {
|
|
86
|
-
startDate:
|
|
87
|
+
startDate: M.startDate,
|
|
87
88
|
endDate: e
|
|
88
89
|
};
|
|
89
|
-
|
|
90
|
+
N(t);
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
+
Ae(!0);
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
|
-
if (
|
|
95
|
-
else if (
|
|
95
|
+
if (we) t(e);
|
|
96
|
+
else if (P) {
|
|
96
97
|
if (p) {
|
|
97
98
|
let t = f?.some((t) => o(t, e)) ? (f ?? []).filter((t) => !o(t, e)) : [...f ?? [], e];
|
|
98
99
|
p(t);
|
|
99
100
|
}
|
|
100
101
|
} else d && d(e);
|
|
101
|
-
}, c[11] =
|
|
102
|
-
let
|
|
103
|
-
c[20] ===
|
|
104
|
-
let e = a(/* @__PURE__ */ new Date(), { locale:
|
|
105
|
-
return Array.from({ length: 7 }, (t,
|
|
106
|
-
}, c[20] =
|
|
107
|
-
let
|
|
108
|
-
c[22] !==
|
|
109
|
-
let Q =
|
|
110
|
-
c[25] ===
|
|
111
|
-
let $ = Pe, Fe =
|
|
112
|
-
if (c[27] !==
|
|
113
|
-
let e = [Fe, ...
|
|
114
|
-
c[59] ===
|
|
115
|
-
let
|
|
116
|
-
c[61] ===
|
|
117
|
-
let
|
|
118
|
-
c[63] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
102
|
+
}, c[11] = M, c[12] = ke, c[13] = P, c[14] = we, c[15] = d, c[16] = p, c[17] = N, c[18] = f, c[19] = je) : je = c[19];
|
|
103
|
+
let X = je, Me;
|
|
104
|
+
c[20] === q ? Me = c[21] : (Me = function() {
|
|
105
|
+
let e = a(/* @__PURE__ */ new Date(), { locale: q });
|
|
106
|
+
return Array.from({ length: 7 }, (t, ee) => l(i(e, ee), "eee", { locale: q }));
|
|
107
|
+
}, c[20] = q, c[21] = Me);
|
|
108
|
+
let Ne = Me, Z;
|
|
109
|
+
c[22] !== q || c[23] !== G ? (Z = l(ne(G), "MMMM yyyy", { locale: q }), c[22] = q, c[23] = G, c[24] = Z) : Z = c[24];
|
|
110
|
+
let Q = Z, Pe;
|
|
111
|
+
c[25] === G ? Pe = c[26] : (Pe = s(G).getDate(), c[25] = G, c[26] = Pe);
|
|
112
|
+
let $ = Pe, Fe = L ? "v." : void 0, Ie;
|
|
113
|
+
if (c[27] !== y || c[28] !== M || c[29] !== H || c[30] !== U || c[31] !== V || c[32] !== x?.blueDotDates || c[33] !== x?.greenDotDates || c[34] !== x?.greyDotDates || c[35] !== x?.redDotDates || c[36] !== x?.yellowDotDates || c[37] !== Ne || c[38] !== X || c[39] !== Y || c[40] !== z || c[41] !== I || c[42] !== P || c[43] !== q || c[44] !== g || c[45] !== Q || c[46] !== $ || c[47] !== N || c[48] !== B || c[49] !== R || c[50] !== u || c[51] !== f || c[52] !== G || c[53] !== A || c[54] !== F || c[55] !== _ || c[56] !== Fe || c[57] !== L) {
|
|
114
|
+
let e = [Fe, ...Ne()], t = q.options?.weekStartsOn || 0, a;
|
|
115
|
+
c[59] === G ? a = c[60] : (a = ne(G).getDay(), c[59] = G, c[60] = a);
|
|
116
|
+
let l = (a - t + 7) % 7, d;
|
|
117
|
+
c[61] === G ? d = c[62] : (d = s(G).getDay(), c[61] = G, c[62] = d);
|
|
118
|
+
let p = (7 - d) % 7, m;
|
|
119
|
+
c[63] === Symbol.for("react.memo_cache_sentinel") ? (m = [
|
|
119
120
|
"auto",
|
|
120
121
|
"auto",
|
|
121
122
|
"100%"
|
|
122
|
-
], c[63] =
|
|
123
|
-
let
|
|
124
|
-
c[64] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
123
|
+
], c[63] = m) : m = c[63];
|
|
124
|
+
let h = m, v;
|
|
125
|
+
c[64] === Symbol.for("react.memo_cache_sentinel") ? (v = [
|
|
125
126
|
"auto",
|
|
126
127
|
"auto",
|
|
127
128
|
"100%"
|
|
128
|
-
], c[64] =
|
|
129
|
-
let
|
|
130
|
-
c[65] !==
|
|
131
|
-
let
|
|
132
|
-
if (c[68] !==
|
|
129
|
+
], c[64] = v) : v = c[64];
|
|
130
|
+
let b = v, S;
|
|
131
|
+
c[65] !== y || c[66] !== A ? (S = (e) => !y && ce(e) ? !0 : A ? A(e) : !1, c[65] = y, c[66] = A, c[67] = S) : S = c[67];
|
|
132
|
+
let T = S, D;
|
|
133
|
+
if (c[68] !== T || c[69] !== M || c[70] !== p || c[71] !== x?.blueDotDates || c[72] !== x?.greenDotDates || c[73] !== x?.greyDotDates || c[74] !== x?.redDotDates || c[75] !== x?.yellowDotDates || c[76] !== l || c[77] !== X || c[78] !== z || c[79] !== P || c[80] !== g || c[81] !== $ || c[82] !== B || c[83] !== R || c[84] !== u || c[85] !== f || c[86] !== G || c[87] !== F || c[88] !== _ || c[89] !== L) {
|
|
133
134
|
let e;
|
|
134
|
-
c[91] !==
|
|
135
|
-
let
|
|
136
|
-
u && (
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
let ce = !
|
|
140
|
-
|
|
141
|
-
let
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
return
|
|
145
|
-
|
|
135
|
+
c[91] !== T || c[92] !== M || c[93] !== x?.blueDotDates || c[94] !== x?.greenDotDates || c[95] !== x?.greyDotDates || c[96] !== x?.redDotDates || c[97] !== x?.yellowDotDates || c[98] !== l || c[99] !== X || c[100] !== z || c[101] !== P || c[102] !== g || c[103] !== B || c[104] !== R || c[105] !== u || c[106] !== f || c[107] !== G || c[108] !== F || c[109] !== _ || c[110] !== L ? (e = (e, t) => {
|
|
136
|
+
let n = i(ne(G), t - l), te = ie(n, G), r = o(n, /* @__PURE__ */ new Date()), a = T(n) || z, s = w(n, x?.yellowDotDates), c = w(n, x?.greenDotDates), d = w(n, x?.blueDotDates), p = w(n, x?.redDotDates), m = w(n, x?.greyDotDates), h = le(n, _) && !a, v = !1;
|
|
137
|
+
u && (v = o(n, u)), P && f && (v = f.some((e) => o(e, n)));
|
|
138
|
+
let y = n.getDay() === 0, b = B.some((e) => o(e, n)) || (g ?? !1) && y, S = re(n), C = !1;
|
|
139
|
+
R && u && (C = re(u) === S);
|
|
140
|
+
let ce = !ie(n, G), ue = !!(M?.startDate && M?.endDate && n > M.startDate && n < M.endDate), pe = !1;
|
|
141
|
+
M?.startDate && (pe = o(n, M?.startDate));
|
|
142
|
+
let he = !1, ge = !1;
|
|
143
|
+
M?.endDate && (he = o(n, M?.endDate), ge = !0);
|
|
144
|
+
let D = oe(v || C, r, ce, ue, pe, he, ge), O = se(C, r), k = oe(v || C, r, ce, ue, pe, he), A = Math.floor(t / 7) + 1, j = t % 7 + 1;
|
|
145
|
+
return L ? /* @__PURE__ */ me(fe.Fragment, { children: [
|
|
146
|
+
L && t % 7 == 0 && /* @__PURE__ */ E(_e, {
|
|
146
147
|
gridColumn: 1,
|
|
147
148
|
gridRow: "1 / span 7",
|
|
148
149
|
opacity: "0.24",
|
|
149
150
|
borderRight: "1px solid",
|
|
150
|
-
borderColor:
|
|
151
|
-
}, `grid-${
|
|
152
|
-
|
|
153
|
-
handleWeekChange:
|
|
154
|
-
date:
|
|
155
|
-
gridIndex:
|
|
156
|
-
variant:
|
|
157
|
-
selectWeek:
|
|
158
|
-
isDisabled:
|
|
159
|
-
}, `week-${
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
hasBlueDot:
|
|
162
|
-
hasGreenDot:
|
|
163
|
-
hasYellowDot:
|
|
164
|
-
hasRedDot:
|
|
165
|
-
hasGreyDot:
|
|
166
|
-
gridIndex:
|
|
167
|
-
gridColumn:
|
|
168
|
-
gridRow:
|
|
169
|
-
day:
|
|
170
|
-
handleDateChange:
|
|
171
|
-
variant:
|
|
172
|
-
isDisabled:
|
|
173
|
-
isStrikeThrough:
|
|
174
|
-
selectWeek:
|
|
175
|
-
isHoliday:
|
|
176
|
-
},
|
|
177
|
-
] }, `fragment-${
|
|
178
|
-
hasBlueDot:
|
|
179
|
-
hasGreenDot:
|
|
180
|
-
hasYellowDot:
|
|
181
|
-
hasRedDot:
|
|
182
|
-
hasGreyDot:
|
|
183
|
-
gridIndex:
|
|
184
|
-
gridColumn:
|
|
185
|
-
gridRow:
|
|
186
|
-
day:
|
|
187
|
-
handleDateChange:
|
|
188
|
-
variant:
|
|
189
|
-
isDisabled:
|
|
190
|
-
isStrikeThrough:
|
|
191
|
-
selectWeek:
|
|
192
|
-
isHoliday:
|
|
193
|
-
}, `${
|
|
194
|
-
}, c[91] =
|
|
195
|
-
} else
|
|
196
|
-
let
|
|
197
|
-
c[112] === u ?
|
|
198
|
-
let
|
|
199
|
-
c[114] !==
|
|
200
|
-
selectedDate:
|
|
201
|
-
onDateChange:
|
|
202
|
-
isExpanded:
|
|
203
|
-
onMonthChange:
|
|
204
|
-
selectedMonth:
|
|
151
|
+
borderColor: ee.OnSurfaceBorder
|
|
152
|
+
}, `grid-${t}-${n.toUTCString()}`),
|
|
153
|
+
L && t % 7 == 0 && /* @__PURE__ */ E(de, {
|
|
154
|
+
handleWeekChange: X,
|
|
155
|
+
date: n,
|
|
156
|
+
gridIndex: t,
|
|
157
|
+
variant: O,
|
|
158
|
+
selectWeek: R,
|
|
159
|
+
isDisabled: a
|
|
160
|
+
}, `week-${t}-${S}`),
|
|
161
|
+
/* @__PURE__ */ E(ae, {
|
|
162
|
+
hasBlueDot: d,
|
|
163
|
+
hasGreenDot: c,
|
|
164
|
+
hasYellowDot: s,
|
|
165
|
+
hasRedDot: p,
|
|
166
|
+
hasGreyDot: m,
|
|
167
|
+
gridIndex: t,
|
|
168
|
+
gridColumn: L ? j + 2 : j,
|
|
169
|
+
gridRow: A,
|
|
170
|
+
day: n,
|
|
171
|
+
handleDateChange: X,
|
|
172
|
+
variant: k,
|
|
173
|
+
isDisabled: a,
|
|
174
|
+
isStrikeThrough: h,
|
|
175
|
+
selectWeek: R,
|
|
176
|
+
isHoliday: b
|
|
177
|
+
}, n.toString() + t)
|
|
178
|
+
] }, `fragment-${t}-${S}`) : te || F ? /* @__PURE__ */ E(ae, {
|
|
179
|
+
hasBlueDot: d,
|
|
180
|
+
hasGreenDot: c,
|
|
181
|
+
hasYellowDot: s,
|
|
182
|
+
hasRedDot: p,
|
|
183
|
+
hasGreyDot: m,
|
|
184
|
+
gridIndex: t,
|
|
185
|
+
gridColumn: L ? j + 1 : j,
|
|
186
|
+
gridRow: A,
|
|
187
|
+
day: n,
|
|
188
|
+
handleDateChange: X,
|
|
189
|
+
variant: D,
|
|
190
|
+
isDisabled: a,
|
|
191
|
+
isStrikeThrough: h,
|
|
192
|
+
selectWeek: R,
|
|
193
|
+
isHoliday: b
|
|
194
|
+
}, `${n.toString()}-${t}`) : null;
|
|
195
|
+
}, c[91] = T, c[92] = M, c[93] = x?.blueDotDates, c[94] = x?.greenDotDates, c[95] = x?.greyDotDates, c[96] = x?.redDotDates, c[97] = x?.yellowDotDates, c[98] = l, c[99] = X, c[100] = z, c[101] = P, c[102] = g, c[103] = B, c[104] = R, c[105] = u, c[106] = f, c[107] = G, c[108] = F, c[109] = _, c[110] = L, c[111] = e) : e = c[111], D = Array.from({ length: $ + l + p }, e), c[68] = T, c[69] = M, c[70] = p, c[71] = x?.blueDotDates, c[72] = x?.greenDotDates, c[73] = x?.greyDotDates, c[74] = x?.redDotDates, c[75] = x?.yellowDotDates, c[76] = l, c[77] = X, c[78] = z, c[79] = P, c[80] = g, c[81] = $, c[82] = B, c[83] = R, c[84] = u, c[85] = f, c[86] = G, c[87] = F, c[88] = _, c[89] = L, c[90] = D;
|
|
196
|
+
} else D = c[90];
|
|
197
|
+
let O = D, k;
|
|
198
|
+
c[112] === u ? k = c[113] : (k = u || /* @__PURE__ */ new Date(), c[112] = u, c[113] = k);
|
|
199
|
+
let j;
|
|
200
|
+
c[114] !== M || c[115] !== H || c[116] !== U || c[117] !== V || c[118] !== X || c[119] !== Y || c[120] !== I || c[121] !== q || c[122] !== Q || c[123] !== N || c[124] !== R || c[125] !== G || c[126] !== k ? (j = /* @__PURE__ */ E(ue, {
|
|
201
|
+
selectedDate: k,
|
|
202
|
+
onDateChange: X,
|
|
203
|
+
isExpanded: I,
|
|
204
|
+
onMonthChange: Y,
|
|
205
|
+
selectedMonth: G,
|
|
205
206
|
month: Q,
|
|
206
|
-
locale:
|
|
207
|
-
selectWeek:
|
|
208
|
-
disablePastMonths:
|
|
209
|
-
disableBackwardNavigation:
|
|
210
|
-
disableForwardNavigation:
|
|
211
|
-
dateRange:
|
|
212
|
-
onRangeChange:
|
|
213
|
-
}), c[114] =
|
|
214
|
-
w:
|
|
215
|
-
h
|
|
216
|
-
children: [
|
|
217
|
-
templateColumns:
|
|
218
|
-
children: e.map((e,
|
|
219
|
-
let
|
|
220
|
-
return
|
|
207
|
+
locale: q,
|
|
208
|
+
selectWeek: R,
|
|
209
|
+
disablePastMonths: V,
|
|
210
|
+
disableBackwardNavigation: H,
|
|
211
|
+
disableForwardNavigation: U,
|
|
212
|
+
dateRange: M,
|
|
213
|
+
onRangeChange: N
|
|
214
|
+
}), c[114] = M, c[115] = H, c[116] = U, c[117] = V, c[118] = X, c[119] = Y, c[120] = I, c[121] = q, c[122] = Q, c[123] = N, c[124] = R, c[125] = G, c[126] = k, c[127] = j) : j = c[127], Ie = /* @__PURE__ */ me(he, {
|
|
215
|
+
w: b,
|
|
216
|
+
h,
|
|
217
|
+
children: [j, I && /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ E(ge, {
|
|
218
|
+
templateColumns: L ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
|
|
219
|
+
children: e.map((e, t) => {
|
|
220
|
+
let i;
|
|
221
|
+
return i = L && t === 0 ? 1 : L ? t + 2 : t, e ? /* @__PURE__ */ E(_e, {
|
|
221
222
|
textAlign: "center",
|
|
222
223
|
fontWeight: "500",
|
|
223
|
-
fontFamily:
|
|
224
|
+
fontFamily: te.Body,
|
|
224
225
|
fontSize: n.Small,
|
|
225
|
-
gridColumn:
|
|
226
|
-
borderRight:
|
|
227
|
-
pb:
|
|
226
|
+
gridColumn: i,
|
|
227
|
+
borderRight: L && t === 0 ? `1px solid ${ee.OnSurfaceBorder}` : "",
|
|
228
|
+
pb: r.Small,
|
|
228
229
|
children: C(e).slice(0, 2)
|
|
229
230
|
}, e) : null;
|
|
230
231
|
})
|
|
231
|
-
}), /* @__PURE__ */
|
|
232
|
-
templateColumns:
|
|
233
|
-
rowGap:
|
|
232
|
+
}), /* @__PURE__ */ E(ge, {
|
|
233
|
+
templateColumns: L ? "48px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1fr" : "repeat(7, 1fr)",
|
|
234
|
+
rowGap: r.Small,
|
|
234
235
|
flexShrink: 1,
|
|
235
|
-
children:
|
|
236
|
+
children: O
|
|
236
237
|
})] })]
|
|
237
|
-
}), c[27] =
|
|
238
|
+
}), c[27] = y, c[28] = M, c[29] = H, c[30] = U, c[31] = V, c[32] = x?.blueDotDates, c[33] = x?.greenDotDates, c[34] = x?.greyDotDates, c[35] = x?.redDotDates, c[36] = x?.yellowDotDates, c[37] = Ne, c[38] = X, c[39] = Y, c[40] = z, c[41] = I, c[42] = P, c[43] = q, c[44] = g, c[45] = Q, c[46] = $, c[47] = N, c[48] = B, c[49] = R, c[50] = u, c[51] = f, c[52] = G, c[53] = A, c[54] = F, c[55] = _, c[56] = Fe, c[57] = L, c[58] = Ie;
|
|
238
239
|
} else Ie = c[58];
|
|
239
240
|
return Ie;
|
|
240
241
|
}
|
|
241
242
|
//#endregion
|
|
242
|
-
export {
|
|
243
|
+
export { k as BaseDatePicker };
|