@leaflink/stash 49.5.0 → 50.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/Accordion.js +25 -28
- package/dist/Accordion.js.map +1 -1
- package/dist/Accordion.vue.d.ts +16 -16
- package/dist/ActionsDropdown.js +14 -26
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/ActionsDropdown.vue.d.ts +12 -12
- package/dist/AddressSelect.js +22 -47
- package/dist/AddressSelect.js.map +1 -1
- package/dist/AddressSelect.vue.d.ts +45 -45
- package/dist/Alert.js +4 -6
- package/dist/Alert.js.map +1 -1
- package/dist/Alert.vue.d.ts +18 -18
- package/dist/AppNavigationItem.js +16 -19
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppNavigationItem.vue.d.ts +4 -4
- package/dist/AppSidebar.js +27 -28
- package/dist/AppSidebar.js.map +1 -1
- package/dist/AppSidebar.vue.d.ts +7 -7
- package/dist/AppTopbar.js +12 -17
- package/dist/AppTopbar.js.map +1 -1
- package/dist/AppTopbar.vue.d.ts +8 -8
- package/dist/Avatar.js +1 -1
- package/dist/Avatar.vue.d.ts +22 -22
- package/dist/Backdrop.js +1 -1
- package/dist/Backdrop.vue.d.ts +1 -1
- package/dist/Badge.js +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Badge.vue.d.ts +36 -36
- package/dist/Box.js +2 -3
- package/dist/Box.js.map +1 -1
- package/dist/Box.vue.d.ts +12 -12
- package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js} +1 -1
- package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map} +1 -1
- package/dist/Button.js +40 -27
- package/dist/Button.js.map +1 -1
- package/dist/Button.vue.d.ts +34 -27
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonGroup.vue.d.ts +14 -14
- package/dist/Card.vue.d.ts +3 -3
- package/dist/CardContent.js +1 -1
- package/dist/CardContent.vue.d.ts +1 -1
- package/dist/CardFooter.js +1 -1
- package/dist/CardFooter.vue.d.ts +1 -1
- package/dist/CardMedia.js +11 -14
- package/dist/CardMedia.js.map +1 -1
- package/dist/Carousel.js +179 -180
- package/dist/Carousel.js.map +1 -1
- package/dist/Carousel.vue.d.ts +33 -11
- package/dist/Checkbox.js +38 -35
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.vue.d.ts +31 -31
- package/dist/ChevronToggle.js +2 -10
- package/dist/ChevronToggle.js.map +1 -1
- package/dist/ChevronToggle.vue.d.ts +5 -5
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js} +1 -1
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map} +1 -1
- package/dist/Chip.js +17 -20
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +32 -32
- package/dist/ConfirmationCodeInput.js +1 -1
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ConfirmationCodeInput.vue.d.ts +29 -29
- package/dist/ContextSwitcher.js +8 -14
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/ContextSwitcher.vue.d.ts +32 -32
- package/dist/Copy.js +23 -34
- package/dist/Copy.js.map +1 -1
- package/dist/Copy.vue.d.ts +9 -9
- package/dist/CurrencyInput.js +117 -128
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CurrencyInput.vue.d.ts +26 -21
- package/dist/CustomRender.vue.d.ts +12 -1
- package/dist/DataView.js +70 -73
- package/dist/DataView.js.map +1 -1
- package/dist/{DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js → DataView.keys-C7eaZg2G.js} +5 -8
- package/dist/DataView.keys-C7eaZg2G.js.map +1 -0
- package/dist/DataView.vue.d.ts +51 -51
- package/dist/DataViewFilters.js +76 -90
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/{DataViewFilters.keys-c80ffabe.js → DataViewFilters.keys-BLu07FiP.js} +1 -1
- package/dist/{DataViewFilters.keys-c80ffabe.js.map → DataViewFilters.keys-BLu07FiP.js.map} +1 -1
- package/dist/DataViewFilters.vue.d.ts +39 -39
- package/dist/DataViewSortButton.js +30 -43
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewSortButton.vue.d.ts +3 -3
- package/dist/DataViewToolbar.js +27 -36
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DataViewToolbar.vue.d.ts +17 -17
- package/dist/DatePicker.js +649 -662
- package/dist/DatePicker.js.map +1 -1
- package/dist/DatePicker.vue.d.ts +73 -73
- package/dist/DescriptionList.js +1 -1
- package/dist/{DescriptionList.keys-c906ce05.js → DescriptionList.keys-BHlHYV6b.js} +1 -1
- package/dist/{DescriptionList.keys-c906ce05.js.map → DescriptionList.keys-BHlHYV6b.js.map} +1 -1
- package/dist/DescriptionList.vue.d.ts +6 -6
- package/dist/DescriptionListDetail.js +1 -1
- package/dist/DescriptionListDetail.vue.d.ts +1 -1
- package/dist/DescriptionListGroup.js +1 -1
- package/dist/DescriptionListGroup.vue.d.ts +1 -1
- package/dist/DescriptionListTerm.js +1 -1
- package/dist/DescriptionListTerm.vue.d.ts +1 -1
- package/dist/Dialog.js +26 -30
- package/dist/Dialog.js.map +1 -1
- package/dist/Dialog.vue.d.ts +34 -34
- package/dist/Divider.js +1 -1
- package/dist/Divider.js.map +1 -1
- package/dist/Divider.vue.d.ts +1 -1
- package/dist/Dropdown.js +21 -28
- package/dist/Dropdown.js.map +1 -1
- package/dist/Dropdown.vue.d.ts +28 -28
- package/dist/EmptyState.js +32 -33
- package/dist/EmptyState.js.map +1 -1
- package/dist/EmptyState.vue.d.ts +36 -36
- package/dist/Expand.js +2 -3
- package/dist/Expand.js.map +1 -1
- package/dist/Expand.vue.d.ts +14 -14
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js} +1 -1
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map} +1 -1
- package/dist/Field.js +2 -7
- package/dist/Field.js.map +1 -1
- package/dist/Field.vue.d.ts +30 -30
- package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js} +2 -2
- package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js.map → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js.map} +1 -1
- package/dist/FileUpload.js +58 -57
- package/dist/FileUpload.js.map +1 -1
- package/dist/FileUpload.vue.d.ts +28 -28
- package/dist/FilterChip.js +12 -17
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterChip.vue.d.ts +19 -19
- package/dist/FilterDrawerItem.js +24 -30
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDrawerItem.vue.d.ts +2 -2
- package/dist/FilterDropdown.js +41 -57
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterDropdown.vue.d.ts +9 -9
- package/dist/FilterSelect.js +36 -45
- package/dist/FilterSelect.js.map +1 -1
- package/dist/FilterSelect.vue.d.ts +5 -5
- package/dist/Filters.js +60 -96
- package/dist/Filters.js.map +1 -1
- package/dist/Filters.vue.d.ts +2005 -2294
- package/dist/HttpError.js +16 -23
- package/dist/HttpError.js.map +1 -1
- package/dist/HttpError.vue.d.ts +18 -18
- package/dist/Icon.js +27 -22
- package/dist/Icon.js.map +1 -1
- package/dist/Icon.vue.d.ts +13 -13
- package/dist/IconLabel.js +9 -12
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +17 -17
- package/dist/Illustration.js +8 -11
- package/dist/Illustration.js.map +1 -1
- package/dist/Illustration.vue.d.ts +21 -21
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js} +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map} +1 -1
- package/dist/Image.js.map +1 -1
- package/dist/Image.vue.d.ts +18 -18
- package/dist/InlineEdit.js +19 -30
- package/dist/InlineEdit.js.map +1 -1
- package/dist/InlineEdit.vue.d.ts +26 -26
- package/dist/Input.js +58 -64
- package/dist/Input.js.map +1 -1
- package/dist/Input.vue.d.ts +44 -36
- package/dist/InputOptions.js +66 -93
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +66 -58
- package/dist/IntegrationIcon.js +2 -2
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/IntegrationIcon.vue.d.ts +12 -12
- package/dist/Label.js +2 -5
- package/dist/Label.js.map +1 -1
- package/dist/Label.vue.d.ts +17 -17
- package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js} +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js.map → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map} +1 -1
- package/dist/LicenseChip.js +10 -16
- package/dist/LicenseChip.js.map +1 -1
- package/dist/LicenseChip.vue.d.ts +3 -3
- package/dist/ListItem.js +5 -8
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItem.vue.d.ts +275 -225
- package/dist/ListItemCell.js +1 -1
- package/dist/ListItemCell.js.map +1 -1
- package/dist/ListItemCell.vue.d.ts +13 -2
- package/dist/ListView.js +57 -101
- package/dist/ListView.js.map +1 -1
- package/dist/ListView.vue.d.ts +5185 -5430
- package/dist/Loading.js +12 -10
- package/dist/Loading.js.map +1 -1
- package/dist/Loading.vue.d.ts +1 -1
- package/dist/Logo.js +2 -4
- package/dist/Logo.js.map +1 -1
- package/dist/Logo.vue.d.ts +17 -17
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js} +1 -1
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/Menu.vue.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/MenuItem.vue.d.ts +1 -1
- package/dist/{MenusPlugin-9288029a.js → MenusPlugin-Bk6UW6o9.js} +1 -1
- package/dist/{MenusPlugin-9288029a.js.map → MenusPlugin-Bk6UW6o9.js.map} +1 -1
- package/dist/Metric.vue.d.ts +10 -10
- package/dist/Modal.js +27 -32
- package/dist/Modal.js.map +1 -1
- package/dist/Modal.vue.d.ts +42 -42
- package/dist/Modals.js +14 -16
- package/dist/Modals.js.map +1 -1
- package/dist/Modals.vue.d.ts +1 -1
- package/dist/ModalsPlugin.js +9 -12
- package/dist/ModalsPlugin.js.map +1 -1
- package/dist/Module.js +3 -3
- package/dist/{Module.keys-2cc7d830.js → Module.keys-CEsrW2f0.js} +1 -1
- package/dist/{Module.keys-2cc7d830.js.map → Module.keys-CEsrW2f0.js.map} +1 -1
- package/dist/{Module.types-3f78f2a0.js → Module.types-B1FfGGac.js} +1 -1
- package/dist/{Module.types-3f78f2a0.js.map → Module.types-B1FfGGac.js.map} +1 -1
- package/dist/Module.vue.d.ts +3 -3
- package/dist/ModuleContent.js +2 -2
- package/dist/ModuleContent.vue.d.ts +1 -1
- package/dist/ModuleFooter.js +2 -2
- package/dist/ModuleFooter.vue.d.ts +1 -1
- package/dist/ModuleHeader.js +3 -3
- package/dist/ModuleHeader.vue.d.ts +15 -15
- package/dist/ObfuscateText.js +8 -13
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/ObfuscateText.vue.d.ts +18 -18
- package/dist/PageContent.js +1 -1
- package/dist/PageContent.vue.d.ts +1 -1
- package/dist/PageHeader.js +26 -23
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageHeader.vue.d.ts +7 -4
- package/dist/PageNavigation.js +41 -64
- package/dist/PageNavigation.js.map +1 -1
- package/dist/PageNavigation.vue.d.ts +10 -10
- package/dist/Paginate.js +36 -34
- package/dist/Paginate.js.map +1 -1
- package/dist/Paginate.vue.d.ts +11 -11
- package/dist/PlaidLink.js +3 -5
- package/dist/PlaidLink.js.map +1 -1
- package/dist/PlaidLink.vue.d.ts +29 -29
- package/dist/QuickAction.js +12 -15
- package/dist/QuickAction.js.map +1 -1
- package/dist/QuickAction.vue.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/Radio.vue.d.ts +83 -12
- package/dist/RadioGroup.js +41 -45
- package/dist/RadioGroup.js.map +1 -1
- package/dist/{RadioGroup.keys-974818d6.js → RadioGroup.keys-CqfiKkNz.js} +1 -1
- package/dist/{RadioGroup.keys-974818d6.js.map → RadioGroup.keys-CqfiKkNz.js.map} +1 -1
- package/dist/RadioGroup.vue.d.ts +30 -30
- package/dist/RadioNew.js +2 -2
- package/dist/RadioNew.js.map +1 -1
- package/dist/RadioNew.vue.d.ts +26 -26
- package/dist/RangeInput.js +10 -14
- package/dist/RangeInput.js.map +1 -1
- package/dist/RangeInput.vue.d.ts +1 -1
- package/dist/SearchBar.js +31 -41
- package/dist/SearchBar.js.map +1 -1
- package/dist/SearchBar.vue.d.ts +22 -22
- package/dist/Select.js +66 -78
- package/dist/Select.js.map +1 -1
- package/dist/Select.vue.d.ts +123 -123
- package/dist/SelectStatus.js +47 -69
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +33 -26
- package/dist/Skeleton.js +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Skeleton.vue.d.ts +9 -9
- package/dist/Step.js +10 -14
- package/dist/Step.js.map +1 -1
- package/dist/Step.vue.d.ts +21 -21
- package/dist/Stepper.js +37 -40
- package/dist/Stepper.js.map +1 -1
- package/dist/Stepper.vue.d.ts +34 -29
- package/dist/Switch.js +1 -1
- package/dist/Switch.vue.d.ts +23 -23
- package/dist/Tab.js +21 -36
- package/dist/Tab.js.map +1 -1
- package/dist/Table.js +38 -55
- package/dist/Table.js.map +1 -1
- package/dist/Table.keys-LHQf6FEH.js +7 -0
- package/dist/{Table.keys-83e4f09b.js.map → Table.keys-LHQf6FEH.js.map} +1 -1
- package/dist/Table.vue.d.ts +36 -36
- package/dist/TableCell.js +26 -26
- package/dist/TableCell.js.map +1 -1
- package/dist/TableCell.vue.d.ts +6 -6
- package/dist/TableHeaderCell.js +6 -13
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderCell.vue.d.ts +3 -3
- package/dist/TableHeaderRow.js +22 -32
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableHeaderRow.vue.d.ts +8 -8
- package/dist/TableRow.js +59 -59
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRow.vue.d.ts +26 -26
- package/dist/Tabs.js +10 -24
- package/dist/Tabs.js.map +1 -1
- package/dist/Tabs.vue.d.ts +5 -5
- package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js → Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js} +31 -34
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -0
- package/dist/TextEditor.js +1269 -1364
- package/dist/TextEditor.js.map +1 -1
- package/dist/TextEditor.vue.d.ts +46 -46
- package/dist/Textarea.js +30 -31
- package/dist/Textarea.js.map +1 -1
- package/dist/Textarea.vue.d.ts +34 -26
- package/dist/Timeline.js +9 -10
- package/dist/Timeline.js.map +1 -1
- package/dist/Timeline.vue.d.ts +6 -6
- package/dist/TimelineItem.js +1 -1
- package/dist/TimelineItem.vue.d.ts +1 -1
- package/dist/Toast.js +5 -9
- package/dist/Toast.js.map +1 -1
- package/dist/Toast.vue.d.ts +3 -3
- package/dist/Toasts.js +15 -25
- package/dist/Toasts.js.map +1 -1
- package/dist/Toasts.vue.d.ts +1 -1
- package/dist/ToastsPlugin.js +11 -23
- package/dist/ToastsPlugin.js.map +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/Tooltip.vue.d.ts +15 -15
- package/dist/{_commonjsHelpers-10dfc225.js → _commonjsHelpers-DaMA6jEr.js} +1 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/{_plugin-vue_export-helper-dad06003.js → _plugin-vue_export-helper-CHgC5LLL.js} +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
- package/dist/{colors-8d9b9429.js → colors-DDDVvqfQ.js} +1 -1
- package/dist/{colors-8d9b9429.js.map → colors-DDDVvqfQ.js.map} +1 -1
- package/dist/components.css +2 -2
- package/dist/directives/observe.js.map +1 -1
- package/dist/directives/sticky.js.map +1 -1
- package/dist/directives/tooltip.js +21 -27
- package/dist/directives/tooltip.js.map +1 -1
- package/dist/directives/viewable.js +1 -1
- package/dist/directives/viewable.js.map +1 -1
- package/dist/{floating-ui.vue-8d7f7932.js → floating-ui.vue-BmfQDqE-.js} +2 -3
- package/dist/{floating-ui.vue-8d7f7932.js.map → floating-ui.vue-BmfQDqE-.js.map} +1 -1
- package/dist/{formatDateTime-a5e70901.js → formatDateTime-C8CYECpd.js} +8 -12
- package/dist/{formatDateTime-a5e70901.js.map → formatDateTime-C8CYECpd.js.map} +1 -1
- package/dist/{index-9e1095ef.js → index-D6bxWkZ1.js} +2 -3
- package/dist/{index-9e1095ef.js.map → index-D6bxWkZ1.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +90 -112
- package/dist/index.js.map +1 -1
- package/dist/{isDefined-2ce6cde4.js → isDefined-DzVx0B6k.js} +1 -1
- package/dist/{isDefined-2ce6cde4.js.map → isDefined-DzVx0B6k.js.map} +1 -1
- package/dist/{isValid-4b2b7a54.js → isValid-DN-HkCoi.js} +1 -1
- package/dist/{isValid-4b2b7a54.js.map → isValid-DN-HkCoi.js.map} +1 -1
- package/dist/{keys-241d03b7.js → keys-BEdEsanp.js} +1 -1
- package/dist/{keys-241d03b7.js.map → keys-BEdEsanp.js.map} +1 -1
- package/dist/{keys-7ecef029.js → keys-C8Zfr_By.js} +1 -1
- package/dist/{keys-7ecef029.js.map → keys-C8Zfr_By.js.map} +1 -1
- package/dist/{misc-76697f61.js → misc-CHQs-G03.js} +1 -1
- package/dist/{misc-76697f61.js.map → misc-CHQs-G03.js.map} +1 -1
- package/dist/{parseISO-ed4094c1.js → parseISO-wlfIB_QJ.js} +12 -18
- package/dist/{parseISO-ed4094c1.js.map → parseISO-wlfIB_QJ.js.map} +1 -1
- package/dist/{searchFuzzy-9b74ec4e.js → searchFuzzy-DKooyZM8.js} +110 -149
- package/dist/{searchFuzzy-9b74ec4e.js.map → searchFuzzy-DKooyZM8.js.map} +1 -1
- package/dist/{statusLevels-a8b041f4.js → statusLevels-D8EgtE_L.js} +1 -1
- package/dist/{statusLevels-a8b041f4.js.map → statusLevels-D8EgtE_L.js.map} +1 -1
- package/dist/storage.js +8 -15
- package/dist/storage.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/{toTimeZone-a2ed6470.js → toTimeZone-CVE1ZmsS.js} +1 -1
- package/dist/{toTimeZone-a2ed6470.js.map → toTimeZone-CVE1ZmsS.js.map} +1 -1
- package/dist/useDialog.js +7 -7
- package/dist/useGoogleMaps.js +18 -28
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/useModals.js +1 -2
- package/dist/useModals.js.map +1 -1
- package/dist/useScriptTag.js.map +1 -1
- package/dist/useSearch.js +14 -19
- package/dist/useSearch.js.map +1 -1
- package/dist/useStepper.js.map +1 -1
- package/dist/useValidation.js +1 -1
- package/dist/useValidation.js.map +1 -1
- package/dist/utils/calculateElementOverflow.js +9 -13
- package/dist/utils/calculateElementOverflow.js.map +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/dist/utils/createQueryString.js +4 -5
- package/dist/utils/createQueryString.js.map +1 -1
- package/dist/utils/createValidDate.js +2 -2
- package/dist/utils/formatDateTime.js +4 -5
- package/dist/utils/formatDateTime.js.map +1 -1
- package/dist/utils/getContrastingTextColor.js +1 -1
- package/dist/utils/getContrastingTextColor.js.map +1 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/i18n.js +25 -26
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/normalizeDate.js +1 -1
- package/dist/utils/searchFuzzy.js +3 -10
- package/dist/utils/searchFuzzy.js.map +1 -1
- package/dist/utils/storage.js +6 -11
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/toTimeZone.js +2 -3
- package/dist/utils/toTimeZone.js.map +1 -1
- package/package.json +13 -14
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js +0 -17
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js.map +0 -1
- package/dist/Carousel.types.d.ts +0 -33
- package/dist/Carousel.types.js +0 -2
- package/dist/Carousel.types.js.map +0 -1
- package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js +0 -9
- package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js.map +0 -1
- package/dist/DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js.map +0 -1
- package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js +0 -8
- package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js.map +0 -1
- package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js +0 -11
- package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js.map +0 -1
- package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js +0 -8
- package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js.map +0 -1
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js +0 -11
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js.map +0 -1
- package/dist/Table.keys-83e4f09b.js +0 -27
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js.map +0 -1
- package/dist/_commonjsHelpers-10dfc225.js.map +0 -1
- package/dist/_plugin-vue_export-helper-dad06003.js.map +0 -1
package/dist/Copy.js
CHANGED
|
@@ -1,72 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, useCssModule as _, ref as f, computed as h, openBlock as e, createElementBlock as p, normalizeClass as i, unref as s, renderSlot as v, withDirectives as x, createBlock as c, withCtx as C, createTextVNode as k, toDisplayString as w } from "vue";
|
|
2
2
|
import { UI_TIMEOUT as T } from "./constants.js";
|
|
3
3
|
import b from "./directives/tooltip.js";
|
|
4
|
-
import { t as
|
|
4
|
+
import { t as n } from "./locale.js";
|
|
5
5
|
import g from "./Button.js";
|
|
6
|
-
import
|
|
7
|
-
import { _ as B } from "./_plugin-vue_export-helper-
|
|
8
|
-
|
|
9
|
-
import "./utils/calculateElementOverflow.js";
|
|
10
|
-
import "./utils/helpers.js";
|
|
11
|
-
import "lodash-es/camelCase";
|
|
12
|
-
import "lodash-es/get";
|
|
13
|
-
import "lodash-es/isFinite";
|
|
14
|
-
import "lodash-es/isPlainObject";
|
|
15
|
-
import "./Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js";
|
|
16
|
-
import "lodash-es/uniqueId";
|
|
17
|
-
import "./index-9e1095ef.js";
|
|
18
|
-
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
19
|
-
const M = /* @__PURE__ */ u({
|
|
6
|
+
import r from "./Icon.js";
|
|
7
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const M = /* @__PURE__ */ m({
|
|
20
9
|
__name: "Copy",
|
|
21
10
|
props: {
|
|
22
11
|
text: { default: void 0 },
|
|
23
12
|
value: { default: "" },
|
|
24
13
|
visible: { type: Boolean, default: !1 }
|
|
25
14
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const t =
|
|
28
|
-
function
|
|
29
|
-
navigator.clipboard.writeText(t.value),
|
|
30
|
-
|
|
15
|
+
setup(d) {
|
|
16
|
+
const t = d, a = _(), o = f(!1), y = h(() => o.value ? n("ll.copy.copied") : t.text ? null : n("ll.copy.copyToClipboard"));
|
|
17
|
+
function l() {
|
|
18
|
+
navigator.clipboard.writeText(t.value), o.value = !0, setTimeout(() => {
|
|
19
|
+
o.value = !1;
|
|
31
20
|
}, T);
|
|
32
21
|
}
|
|
33
|
-
return (
|
|
34
|
-
class:
|
|
22
|
+
return (u, S) => (e(), p("div", {
|
|
23
|
+
class: i(["stash-copy tw-flex tw-items-center", { [s(a).hidden]: !t.visible }]),
|
|
35
24
|
"data-test": "stash-copy"
|
|
36
25
|
}, [
|
|
37
|
-
v(
|
|
38
|
-
x((
|
|
39
|
-
class:
|
|
26
|
+
v(u.$slots, "default"),
|
|
27
|
+
x((e(), p("div", {
|
|
28
|
+
class: i(["stash-copy__copy-zone tw-ml-3 tw-cursor-pointer", s(a).copy]),
|
|
40
29
|
"data-test": "stash-copy|copy-zone"
|
|
41
30
|
}, [
|
|
42
|
-
|
|
31
|
+
o.value ? (e(), c(r, {
|
|
43
32
|
key: 0,
|
|
44
33
|
class: "stash-copy__success-icon tw-text-green-500",
|
|
45
34
|
name: "circle-check",
|
|
46
35
|
"data-test": "stash-copy|success-icon"
|
|
47
|
-
})) : t.text ? (
|
|
36
|
+
})) : t.text ? (e(), c(g, {
|
|
48
37
|
key: 1,
|
|
49
38
|
class: "stash-copy__copy-text",
|
|
50
39
|
inline: "",
|
|
51
40
|
"data-test": "stash-copy|copy-target",
|
|
52
|
-
onClick:
|
|
41
|
+
onClick: l
|
|
53
42
|
}, {
|
|
54
43
|
default: C(() => [
|
|
55
44
|
k(w(t.text), 1)
|
|
56
45
|
]),
|
|
57
46
|
_: 1
|
|
58
|
-
})) : (
|
|
47
|
+
})) : (e(), c(r, {
|
|
59
48
|
key: 2,
|
|
60
49
|
class: "stash-copy__copy-icon",
|
|
61
50
|
name: "copy",
|
|
62
51
|
title: "Copy to clipboard",
|
|
63
52
|
"data-test": "stash-copy|copy-target",
|
|
64
|
-
onClick:
|
|
53
|
+
onClick: l
|
|
65
54
|
}))
|
|
66
55
|
], 2)), [
|
|
67
56
|
[
|
|
68
57
|
s(b),
|
|
69
|
-
|
|
58
|
+
y.value,
|
|
70
59
|
void 0,
|
|
71
60
|
{ top: !0 }
|
|
72
61
|
]
|
|
@@ -78,8 +67,8 @@ const M = /* @__PURE__ */ u({
|
|
|
78
67
|
copy: I
|
|
79
68
|
}, E = {
|
|
80
69
|
$style: D
|
|
81
|
-
},
|
|
70
|
+
}, A = /* @__PURE__ */ B(M, [["__cssModules", E]]);
|
|
82
71
|
export {
|
|
83
|
-
|
|
72
|
+
A as default
|
|
84
73
|
};
|
|
85
74
|
//# sourceMappingURL=Copy.js.map
|
package/dist/Copy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copy.js","sources":["../src/components/Copy/Copy.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, ref, useCssModule } from 'vue';\n\n import { UI_TIMEOUT } from '../../constants';\n import vTooltip from '../../directives/tooltip/tooltip';\n import { t } from '../../locale';\n import Button from '../Button/Button.vue';\n import Icon from '../Icon/Icon.vue';\n\n export interface CopyProps {\n /**\n * Optional text to display instead of icon.\n */\n text?: string;\n\n /**\n * The value to copy to clipboard.\n */\n value?: string;\n\n /**\n * Sets the copy icon or text to always be visible. By default, icon/text only appears when hovering over slot content.\n */\n visible?: boolean;\n }\n\n const props = withDefaults(defineProps<CopyProps>(), {\n text: undefined,\n value: '', // Todo - We should default this to the content of the default slot so you can do <Copy>631f67a</Copy>.\n visible: false,\n });\n const classes = useCssModule();\n\n // Flag to indicate whether a user successfully copied the text to their clipboard.\n // Note: We reset this flag after a timeout to allow the user to copy the text multiple times.\n const isCopied = ref(false);\n\n const tooltip = computed(() => {\n return isCopied.value ? t('ll.copy.copied') : !props.text ? t('ll.copy.copyToClipboard') : null;\n });\n\n function handleCopy() {\n navigator.clipboard.writeText(props.value);\n isCopied.value = true;\n\n setTimeout(() => {\n isCopied.value = false;\n }, UI_TIMEOUT);\n }\n</script>\n\n<template>\n <div class=\"stash-copy tw-flex tw-items-center\" :class=\"{ [classes.hidden]: !props.visible }\" data-test=\"stash-copy\">\n <!-- @slot Anything you want to render. This is not what will be copied to the clipboard. -->\n <slot></slot>\n <div\n v-tooltip.top=\"tooltip\"\n class=\"stash-copy__copy-zone tw-ml-3 tw-cursor-pointer\"\n :class=\"classes.copy\"\n data-test=\"stash-copy|copy-zone\"\n >\n <Icon\n v-if=\"isCopied\"\n class=\"stash-copy__success-icon tw-text-green-500\"\n name=\"circle-check\"\n data-test=\"stash-copy|success-icon\"\n />\n <Button\n v-else-if=\"props.text\"\n class=\"stash-copy__copy-text\"\n inline\n data-test=\"stash-copy|copy-target\"\n @click=\"handleCopy\"\n >\n {{ props.text }}\n </Button>\n <Icon\n v-else\n class=\"stash-copy__copy-icon\"\n name=\"copy\"\n title=\"Copy to clipboard\"\n data-test=\"stash-copy|copy-target\"\n @click=\"handleCopy\"\n />\n </div>\n </div>\n</template>\n\n<style module>\n .hidden {\n .copy {\n visibility: hidden;\n }\n\n &:hover {\n .copy {\n visibility: visible;\n }\n }\n }\n</style>\n"],"names":["props","__props","classes","useCssModule","isCopied","ref","tooltip","computed","t","handleCopy","UI_TIMEOUT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Copy.js","sources":["../src/components/Copy/Copy.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, ref, useCssModule } from 'vue';\n\n import { UI_TIMEOUT } from '../../constants';\n import vTooltip from '../../directives/tooltip/tooltip';\n import { t } from '../../locale';\n import Button from '../Button/Button.vue';\n import Icon from '../Icon/Icon.vue';\n\n export interface CopyProps {\n /**\n * Optional text to display instead of icon.\n */\n text?: string;\n\n /**\n * The value to copy to clipboard.\n */\n value?: string;\n\n /**\n * Sets the copy icon or text to always be visible. By default, icon/text only appears when hovering over slot content.\n */\n visible?: boolean;\n }\n\n const props = withDefaults(defineProps<CopyProps>(), {\n text: undefined,\n value: '', // Todo - We should default this to the content of the default slot so you can do <Copy>631f67a</Copy>.\n visible: false,\n });\n const classes = useCssModule();\n\n // Flag to indicate whether a user successfully copied the text to their clipboard.\n // Note: We reset this flag after a timeout to allow the user to copy the text multiple times.\n const isCopied = ref(false);\n\n const tooltip = computed(() => {\n return isCopied.value ? t('ll.copy.copied') : !props.text ? t('ll.copy.copyToClipboard') : null;\n });\n\n function handleCopy() {\n navigator.clipboard.writeText(props.value);\n isCopied.value = true;\n\n setTimeout(() => {\n isCopied.value = false;\n }, UI_TIMEOUT);\n }\n</script>\n\n<template>\n <div class=\"stash-copy tw-flex tw-items-center\" :class=\"{ [classes.hidden]: !props.visible }\" data-test=\"stash-copy\">\n <!-- @slot Anything you want to render. This is not what will be copied to the clipboard. -->\n <slot></slot>\n <div\n v-tooltip.top=\"tooltip\"\n class=\"stash-copy__copy-zone tw-ml-3 tw-cursor-pointer\"\n :class=\"classes.copy\"\n data-test=\"stash-copy|copy-zone\"\n >\n <Icon\n v-if=\"isCopied\"\n class=\"stash-copy__success-icon tw-text-green-500\"\n name=\"circle-check\"\n data-test=\"stash-copy|success-icon\"\n />\n <Button\n v-else-if=\"props.text\"\n class=\"stash-copy__copy-text\"\n inline\n data-test=\"stash-copy|copy-target\"\n @click=\"handleCopy\"\n >\n {{ props.text }}\n </Button>\n <Icon\n v-else\n class=\"stash-copy__copy-icon\"\n name=\"copy\"\n title=\"Copy to clipboard\"\n data-test=\"stash-copy|copy-target\"\n @click=\"handleCopy\"\n />\n </div>\n </div>\n</template>\n\n<style module>\n .hidden {\n .copy {\n visibility: hidden;\n }\n\n &:hover {\n .copy {\n visibility: visible;\n }\n }\n }\n</style>\n"],"names":["props","__props","classes","useCssModule","isCopied","ref","tooltip","computed","t","handleCopy","UI_TIMEOUT"],"mappings":";;;;;;;;;;;;;;;AA0BE,UAAMA,IAAQC,GAKRC,IAAUC,KAIVC,IAAWC,EAAI,EAAK,GAEpBC,IAAUC,EAAS,MAChBH,EAAS,QAAQI,EAAE,gBAAgB,IAAKR,EAAM,OAAsC,OAA/BQ,EAAE,yBAAyB,CACxF;AAED,aAASC,IAAa;AACV,gBAAA,UAAU,UAAUT,EAAM,KAAK,GACzCI,EAAS,QAAQ,IAEjB,WAAW,MAAM;AACf,QAAAA,EAAS,QAAQ;AAAA,SAChBM,CAAU;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Copy.vue.d.ts
CHANGED
|
@@ -48,17 +48,17 @@ export declare interface CopyProps {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CopyProps>, {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
text: undefined;
|
|
52
|
+
value: string;
|
|
53
|
+
visible: boolean;
|
|
54
54
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CopyProps>, {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
text: undefined;
|
|
56
|
+
value: string;
|
|
57
|
+
visible: boolean;
|
|
58
58
|
}>>> & Readonly<{}>, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
text: string;
|
|
60
|
+
value: string;
|
|
61
|
+
visible: boolean;
|
|
62
62
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
63
63
|
default?(_: {}): any;
|
|
64
64
|
}>;
|
package/dist/CurrencyInput.js
CHANGED
|
@@ -1,58 +1,47 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "lodash-es/uniqueId";
|
|
6
|
-
import "./index-9e1095ef.js";
|
|
7
|
-
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
8
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
-
import "lodash-es/isNil";
|
|
10
|
-
import "./utils/i18n.js";
|
|
11
|
-
import "./constants.js";
|
|
12
|
-
import "./locale.js";
|
|
13
|
-
import "lodash-es/get";
|
|
14
|
-
import "./Field.vue_vue_type_script_setup_true_lang-fded4f75.js";
|
|
15
|
-
import "./Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js";
|
|
1
|
+
import { ref as V, getCurrentInstance as C, version as R, computed as E, watch as x, defineComponent as $, useAttrs as A, openBlock as L, createBlock as T, mergeProps as G, withCtx as w, createVNode as k } from "vue";
|
|
2
|
+
import W from "lodash-es/isEmpty";
|
|
3
|
+
import z from "./Icon.js";
|
|
4
|
+
import B from "./Input.js";
|
|
16
5
|
/**
|
|
17
6
|
* Vue Currency Input 3.1.0
|
|
18
7
|
* (c) 2018-2024 Matthias Stiller
|
|
19
8
|
* @license MIT
|
|
20
9
|
*/
|
|
21
|
-
var
|
|
10
|
+
var v;
|
|
22
11
|
(function(s) {
|
|
23
12
|
s.symbol = "symbol", s.narrowSymbol = "narrowSymbol", s.code = "code", s.name = "name", s.hidden = "hidden";
|
|
24
|
-
})(
|
|
25
|
-
var
|
|
13
|
+
})(v || (v = {}));
|
|
14
|
+
var F;
|
|
26
15
|
(function(s) {
|
|
27
16
|
s.precision = "precision", s.thousands = "thousands", s.millions = "millions", s.billions = "billions";
|
|
28
|
-
})(
|
|
29
|
-
const D = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
17
|
+
})(F || (F = {}));
|
|
18
|
+
const D = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), N = (s) => s.replace(/^0+(0$|[^0])/, "$1"), O = (s, i) => (s.match(new RegExp(D(i), "g")) || []).length, j = (s, i) => s.substring(0, s.indexOf(i)), M = [
|
|
30
19
|
",",
|
|
31
20
|
".",
|
|
32
21
|
"٫",
|
|
33
22
|
"。"
|
|
34
|
-
],
|
|
35
|
-
class
|
|
23
|
+
], _ = "(0|[1-9]\\d*)";
|
|
24
|
+
class X {
|
|
36
25
|
constructor(i) {
|
|
37
|
-
var t, e, n,
|
|
38
|
-
const { currency:
|
|
26
|
+
var t, e, n, d, u, c;
|
|
27
|
+
const { currency: m, currencyDisplay: p, locale: r, precision: a, accountingSign: h, useGrouping: l } = i;
|
|
39
28
|
this.locale = r, this.options = {
|
|
40
|
-
currency:
|
|
29
|
+
currency: m,
|
|
41
30
|
useGrouping: l,
|
|
42
31
|
style: "currency",
|
|
43
|
-
currencySign:
|
|
44
|
-
currencyDisplay: p !==
|
|
32
|
+
currencySign: h ? "accounting" : void 0,
|
|
33
|
+
currencyDisplay: p !== v.hidden ? p : void 0
|
|
45
34
|
};
|
|
46
|
-
const
|
|
47
|
-
this.currency = (t =
|
|
48
|
-
const
|
|
49
|
-
this.prefix =
|
|
35
|
+
const o = new Intl.NumberFormat(r, this.options), y = o.formatToParts(123456);
|
|
36
|
+
this.currency = (t = y.find(({ type: g }) => g === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((g) => g.toLocaleString(r)), this.decimalSymbol = (e = y.find(({ type: g }) => g === "decimal")) === null || e === void 0 ? void 0 : e.value, this.groupingSymbol = (n = y.find(({ type: g }) => g === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (d = o.formatToParts(-1).find(({ type: g }) => g === "minusSign")) === null || d === void 0 ? void 0 : d.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof a == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = a : (this.minimumFractionDigits = (u = a == null ? void 0 : a.min) !== null && u !== void 0 ? u : o.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (c = a == null ? void 0 : a.max) !== null && c !== void 0 ? c : o.resolvedOptions().maximumFractionDigits);
|
|
37
|
+
const S = (g) => j(g, this.digits[1]), f = (g) => g.substring(g.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
38
|
+
this.prefix = S(o.format(1)), this.suffix = f(o.format(1)), this.negativePrefix = S(o.format(-1)), this.negativeSuffix = f(o.format(-1));
|
|
50
39
|
}
|
|
51
40
|
parse(i) {
|
|
52
41
|
if (i) {
|
|
53
42
|
const t = this.isNegative(i);
|
|
54
43
|
i = this.normalizeDigits(i), i = this.stripCurrency(i, t), i = this.stripSignLiterals(i);
|
|
55
|
-
const e = this.decimalSymbol ? `(?:${D(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${
|
|
44
|
+
const e = this.decimalSymbol ? `(?:${D(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${_}${e}$`));
|
|
56
45
|
if (n && this.isValidIntegerFormat(this.decimalSymbol ? i.split(this.decimalSymbol)[0] : i, Number(n[1])))
|
|
57
46
|
return +`${t ? "-" : ""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2] || "")}`;
|
|
58
47
|
}
|
|
@@ -75,7 +64,7 @@ class U {
|
|
|
75
64
|
return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(i.substring(1)).substring(0, this.maximumFractionDigits)}`;
|
|
76
65
|
}
|
|
77
66
|
isFractionIncomplete(i) {
|
|
78
|
-
return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${
|
|
67
|
+
return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${_}${D(this.decimalSymbol)}$`));
|
|
79
68
|
}
|
|
80
69
|
isNegative(i) {
|
|
81
70
|
return i.startsWith(this.negativePrefix) || this.minusSign === void 0 && (i.startsWith("(") || i.startsWith("-")) || this.minusSign !== void 0 && i.replace("-", this.minusSign).startsWith(this.minusSign);
|
|
@@ -93,7 +82,7 @@ class U {
|
|
|
93
82
|
return i.replace(t ? this.negativePrefix : this.prefix, "").replace(t ? this.negativeSuffix : this.suffix, "");
|
|
94
83
|
}
|
|
95
84
|
normalizeDecimalSeparator(i, t) {
|
|
96
|
-
return
|
|
85
|
+
return M.forEach((e) => {
|
|
97
86
|
i = i.substring(0, t) + i.substring(t).replace(e, this.decimalSymbol);
|
|
98
87
|
}), i;
|
|
99
88
|
}
|
|
@@ -109,48 +98,48 @@ class U {
|
|
|
109
98
|
return i.replace(new RegExp(`[^${this.digits.join("")}]*`, "g"), "");
|
|
110
99
|
}
|
|
111
100
|
}
|
|
112
|
-
class
|
|
101
|
+
class P {
|
|
113
102
|
constructor(i) {
|
|
114
103
|
this.currencyFormat = i;
|
|
115
104
|
}
|
|
116
105
|
}
|
|
117
|
-
class
|
|
106
|
+
class U extends P {
|
|
118
107
|
conformToMask(i, t = "") {
|
|
119
|
-
const e = this.currencyFormat.isNegative(i), n = (
|
|
120
|
-
if (n(
|
|
108
|
+
const e = this.currencyFormat.isNegative(i), n = (o) => o === "" && e && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), d = (o) => {
|
|
109
|
+
if (n(o))
|
|
121
110
|
return "";
|
|
122
111
|
if (this.currencyFormat.maximumFractionDigits > 0) {
|
|
123
|
-
if (this.currencyFormat.isFractionIncomplete(
|
|
124
|
-
return
|
|
125
|
-
if (
|
|
126
|
-
return this.currencyFormat.toFraction(
|
|
112
|
+
if (this.currencyFormat.isFractionIncomplete(o))
|
|
113
|
+
return o;
|
|
114
|
+
if (o.startsWith(this.currencyFormat.decimalSymbol))
|
|
115
|
+
return this.currencyFormat.toFraction(o);
|
|
127
116
|
}
|
|
128
117
|
return null;
|
|
129
118
|
};
|
|
130
|
-
let
|
|
131
|
-
|
|
132
|
-
const c =
|
|
119
|
+
let u = i;
|
|
120
|
+
u = this.currencyFormat.stripCurrency(u, e), u = this.currencyFormat.stripSignLiterals(u);
|
|
121
|
+
const c = d(u);
|
|
133
122
|
if (c != null)
|
|
134
123
|
return this.currencyFormat.insertCurrency(c, e);
|
|
135
|
-
const [
|
|
136
|
-
return
|
|
137
|
-
numberValue: +`${e ? "-" : ""}${r}.${
|
|
138
|
-
fractionDigits:
|
|
124
|
+
const [m, ...p] = u.split(this.currencyFormat.decimalSymbol), r = N(this.currencyFormat.onlyDigits(m)), a = this.currencyFormat.onlyDigits(p.join("")).substring(0, this.currencyFormat.maximumFractionDigits), h = p.length > 0 && a.length === 0, l = r === "" && e && (this.currencyFormat.minusSign === void 0 ? t === i.slice(0, -2) + this.currencyFormat.negativeSuffix : t === i.slice(0, -1));
|
|
125
|
+
return h || l || n(r) ? t : r.match(/\d+/) ? {
|
|
126
|
+
numberValue: +`${e ? "-" : ""}${r}.${a}`,
|
|
127
|
+
fractionDigits: a
|
|
139
128
|
} : "";
|
|
140
129
|
}
|
|
141
130
|
}
|
|
142
|
-
class
|
|
131
|
+
class q extends P {
|
|
143
132
|
conformToMask(i, t = "") {
|
|
144
133
|
if (i === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(i, !0))
|
|
145
134
|
return "";
|
|
146
|
-
const e = this.currencyFormat.isNegative(i), n = this.currencyFormat.stripSignLiterals(i) === "" ? -0 : +`${e ? "-" : ""}${
|
|
135
|
+
const e = this.currencyFormat.isNegative(i), n = this.currencyFormat.stripSignLiterals(i) === "" ? -0 : +`${e ? "-" : ""}${N(this.currencyFormat.onlyDigits(i))}` / Math.pow(10, this.currencyFormat.maximumFractionDigits);
|
|
147
136
|
return {
|
|
148
137
|
numberValue: n,
|
|
149
138
|
fractionDigits: n.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)
|
|
150
139
|
};
|
|
151
140
|
}
|
|
152
141
|
}
|
|
153
|
-
const
|
|
142
|
+
const Y = {
|
|
154
143
|
locale: void 0,
|
|
155
144
|
currency: void 0,
|
|
156
145
|
currencyDisplay: void 0,
|
|
@@ -163,7 +152,7 @@ const Z = {
|
|
|
163
152
|
useGrouping: void 0,
|
|
164
153
|
valueScaling: void 0
|
|
165
154
|
};
|
|
166
|
-
class
|
|
155
|
+
class Z {
|
|
167
156
|
constructor(i) {
|
|
168
157
|
this.el = i.el, this.onInput = i.onInput, this.onChange = i.onChange, this.addEventListener(), this.init(i.options);
|
|
169
158
|
}
|
|
@@ -179,16 +168,16 @@ class H {
|
|
|
179
168
|
}
|
|
180
169
|
init(i) {
|
|
181
170
|
this.options = {
|
|
182
|
-
...
|
|
171
|
+
...Y,
|
|
183
172
|
...i
|
|
184
|
-
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new
|
|
173
|
+
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new X(this.options), this.numberMask = this.options.autoDecimalDigits ? new q(this.currencyFormat) : new U(this.currencyFormat);
|
|
185
174
|
const t = {
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
175
|
+
[F.precision]: this.currencyFormat.maximumFractionDigits,
|
|
176
|
+
[F.thousands]: 3,
|
|
177
|
+
[F.millions]: 6,
|
|
178
|
+
[F.billions]: 9
|
|
190
179
|
};
|
|
191
|
-
this.valueScaling = this.options.valueScaling ? t[this.options.valueScaling] : void 0, this.valueScalingFractionDigits = this.valueScaling !== void 0 && this.options.valueScaling !==
|
|
180
|
+
this.valueScaling = this.options.valueScaling ? t[this.options.valueScaling] : void 0, this.valueScalingFractionDigits = this.valueScaling !== void 0 && this.options.valueScaling !== F.precision ? this.valueScaling + this.currencyFormat.maximumFractionDigits : this.currencyFormat.maximumFractionDigits, this.minValue = this.getMinValue(), this.maxValue = this.getMaxValue();
|
|
192
181
|
}
|
|
193
182
|
getMinValue() {
|
|
194
183
|
var i, t;
|
|
@@ -215,16 +204,16 @@ class H {
|
|
|
215
204
|
const e = this.numberMask.conformToMask(i, this.formattedValue);
|
|
216
205
|
let n;
|
|
217
206
|
if (typeof e == "object") {
|
|
218
|
-
const { numberValue:
|
|
219
|
-
let { maximumFractionDigits: c, minimumFractionDigits:
|
|
220
|
-
this.focus ?
|
|
207
|
+
const { numberValue: d, fractionDigits: u } = e;
|
|
208
|
+
let { maximumFractionDigits: c, minimumFractionDigits: m } = this.currencyFormat;
|
|
209
|
+
this.focus ? m = t ? u.replace(/0+$/, "").length : Math.min(c, u.length) : Number.isInteger(d) && !this.options.autoDecimalDigits && (this.options.precision === void 0 || m === 0) && (m = c = 0), n = this.toInteger(Math.abs(d)) > Number.MAX_SAFE_INTEGER ? this.formattedValue : this.currencyFormat.format(d, {
|
|
221
210
|
useGrouping: this.options.useGrouping !== !1 && !(this.focus && this.options.hideGroupingSeparatorOnFocus),
|
|
222
|
-
minimumFractionDigits:
|
|
211
|
+
minimumFractionDigits: m,
|
|
223
212
|
maximumFractionDigits: c
|
|
224
213
|
});
|
|
225
214
|
} else
|
|
226
215
|
n = e;
|
|
227
|
-
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay ===
|
|
216
|
+
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === v.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
|
|
228
217
|
} else
|
|
229
218
|
this.el.value = "", this.numberValue = null;
|
|
230
219
|
this.formattedValue = this.el.value, this.onInput(this.getValue());
|
|
@@ -232,26 +221,26 @@ class H {
|
|
|
232
221
|
addEventListener() {
|
|
233
222
|
this.el.addEventListener("input", (i) => {
|
|
234
223
|
const { value: t, selectionStart: e } = this.el, n = i;
|
|
235
|
-
if (e && n.data &&
|
|
236
|
-
const
|
|
237
|
-
const { prefix:
|
|
238
|
-
let
|
|
239
|
-
const
|
|
224
|
+
if (e && n.data && M.includes(n.data) && (this.decimalSymbolInsertedAt = e - 1), this.format(t), this.focus && e != null) {
|
|
225
|
+
const d = () => {
|
|
226
|
+
const { prefix: u, suffix: c, decimalSymbol: m, maximumFractionDigits: p, groupingSymbol: r } = this.currencyFormat;
|
|
227
|
+
let a = t.length - e;
|
|
228
|
+
const h = this.formattedValue.length;
|
|
240
229
|
if (this.currencyFormat.minusSign === void 0 && (t.startsWith("(") || t.startsWith("-")) && !t.endsWith(")"))
|
|
241
|
-
return
|
|
242
|
-
if (this.formattedValue.substring(e, 1) === r &&
|
|
243
|
-
return
|
|
244
|
-
if (
|
|
230
|
+
return h - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(e).length : 1;
|
|
231
|
+
if (this.formattedValue.substring(e, 1) === r && O(this.formattedValue, r) === O(t, r) + 1)
|
|
232
|
+
return h - a - 1;
|
|
233
|
+
if (h < a)
|
|
245
234
|
return e;
|
|
246
|
-
if (
|
|
247
|
-
const l = t.indexOf(
|
|
248
|
-
if (Math.abs(
|
|
249
|
-
return this.formattedValue.indexOf(
|
|
250
|
-
!this.options.autoDecimalDigits && e > l && this.currencyFormat.onlyDigits(t.substring(l)).length - 1 === p && (
|
|
235
|
+
if (m !== void 0 && t.indexOf(m) !== -1) {
|
|
236
|
+
const l = t.indexOf(m) + 1;
|
|
237
|
+
if (Math.abs(h - t.length) > 1 && e <= l)
|
|
238
|
+
return this.formattedValue.indexOf(m) + 1;
|
|
239
|
+
!this.options.autoDecimalDigits && e > l && this.currencyFormat.onlyDigits(t.substring(l)).length - 1 === p && (a -= 1);
|
|
251
240
|
}
|
|
252
|
-
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
241
|
+
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === v.hidden ? h - a : Math.max(h - Math.max(a, c.length), u.length);
|
|
253
242
|
};
|
|
254
|
-
this.setCaretPosition(
|
|
243
|
+
this.setCaretPosition(d());
|
|
255
244
|
}
|
|
256
245
|
}), this.el.addEventListener("focus", () => {
|
|
257
246
|
this.focus = !0, this.numberValueOnFocus = this.numberValue, setTimeout(() => {
|
|
@@ -270,8 +259,8 @@ class H {
|
|
|
270
259
|
getCaretPositionOnFocus(i, t) {
|
|
271
260
|
if (this.numberValue == null)
|
|
272
261
|
return t;
|
|
273
|
-
const { prefix: e, negativePrefix: n, suffix:
|
|
274
|
-
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
262
|
+
const { prefix: e, negativePrefix: n, suffix: d, negativeSuffix: u, groupingSymbol: c, currency: m } = this.currencyFormat, p = this.numberValue < 0, r = p ? n : e, a = r.length;
|
|
263
|
+
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === v.hidden) {
|
|
275
264
|
if (p) {
|
|
276
265
|
if (t <= 1)
|
|
277
266
|
return 1;
|
|
@@ -279,49 +268,48 @@ class H {
|
|
|
279
268
|
return this.formattedValue.length - 1;
|
|
280
269
|
}
|
|
281
270
|
} else {
|
|
282
|
-
const l = p ?
|
|
271
|
+
const l = p ? u.length : d.length;
|
|
283
272
|
if (t >= i.length - l)
|
|
284
273
|
return this.formattedValue.length - l;
|
|
285
|
-
if (t <
|
|
286
|
-
return
|
|
274
|
+
if (t < a)
|
|
275
|
+
return a;
|
|
287
276
|
}
|
|
288
|
-
let
|
|
289
|
-
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !==
|
|
277
|
+
let h = t;
|
|
278
|
+
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== v.hidden && t >= a && m !== void 0 && r.includes(m) && (h -= a, p && (h += 1)), this.options.hideGroupingSeparatorOnFocus && c !== void 0 && (h -= O(i.substring(0, t), c)), h;
|
|
290
279
|
}
|
|
291
280
|
setCaretPosition(i, t = i) {
|
|
292
281
|
this.el.setSelectionRange(i, t);
|
|
293
282
|
}
|
|
294
283
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
var t, e, n,
|
|
298
|
-
let
|
|
299
|
-
const c =
|
|
300
|
-
return x(c, (
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
el:
|
|
284
|
+
const H = (s) => s != null && s.matches("input") ? s : s == null ? void 0 : s.querySelector("input");
|
|
285
|
+
function J(s, i) {
|
|
286
|
+
var t, e, n, d;
|
|
287
|
+
let u;
|
|
288
|
+
const c = V(null), m = V(null), p = V(null), r = C(), a = (r == null ? void 0 : r.emit) || ((e = (t = r == null ? void 0 : r.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || e === void 0 ? void 0 : e.bind(r == null ? void 0 : r.proxy)), h = (r == null ? void 0 : r.props) || ((n = r == null ? void 0 : r.proxy) === null || n === void 0 ? void 0 : n.$props), l = R.startsWith("3"), o = l && ((d = r == null ? void 0 : r.attrs.modelModifiers) === null || d === void 0 ? void 0 : d.lazy), y = E(() => h == null ? void 0 : h[l ? "modelValue" : "value"]), S = l ? "update:modelValue" : "input";
|
|
289
|
+
return x(c, (f) => {
|
|
290
|
+
var g;
|
|
291
|
+
if (f) {
|
|
292
|
+
const I = H((g = f == null ? void 0 : f.$el) !== null && g !== void 0 ? g : f);
|
|
293
|
+
I ? (u = new Z({
|
|
294
|
+
el: I,
|
|
306
295
|
options: s,
|
|
307
|
-
onInput: (
|
|
308
|
-
!
|
|
296
|
+
onInput: (b) => {
|
|
297
|
+
!o && i !== !1 && y.value !== b.number && (a == null || a(S, b.number)), p.value = b.number, m.value = b.formatted;
|
|
309
298
|
},
|
|
310
|
-
onChange: (
|
|
311
|
-
i !== !1 && (o == null || o(S, F.number));
|
|
299
|
+
onChange: (b) => {
|
|
312
300
|
}
|
|
313
|
-
}),
|
|
301
|
+
}), u.setValue(y.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
|
|
314
302
|
} else
|
|
315
|
-
|
|
303
|
+
u = null;
|
|
316
304
|
}), {
|
|
317
305
|
inputRef: c,
|
|
318
306
|
numberValue: p,
|
|
319
|
-
formattedValue:
|
|
320
|
-
setValue: (
|
|
321
|
-
setOptions: (
|
|
307
|
+
formattedValue: m,
|
|
308
|
+
setValue: (f) => u == null ? void 0 : u.setValue(f),
|
|
309
|
+
setOptions: (f) => u == null ? void 0 : u.setOptions(f)
|
|
322
310
|
};
|
|
323
311
|
}
|
|
324
|
-
const
|
|
312
|
+
const ei = /* @__PURE__ */ $({
|
|
325
313
|
__name: "CurrencyInput",
|
|
326
314
|
props: {
|
|
327
315
|
inputOptions: { default: void 0 },
|
|
@@ -334,13 +322,14 @@ const gi = /* @__PURE__ */ A({
|
|
|
334
322
|
showOptionalInLabel: { type: Boolean },
|
|
335
323
|
autocomplete: {},
|
|
336
324
|
value: {},
|
|
325
|
+
placeholder: {},
|
|
337
326
|
disabled: { type: Boolean }
|
|
338
327
|
},
|
|
339
328
|
emits: ["update:model-value"],
|
|
340
329
|
setup(s, { expose: i, emit: t }) {
|
|
341
330
|
const e = {
|
|
342
331
|
currency: "USD",
|
|
343
|
-
currencyDisplay:
|
|
332
|
+
currencyDisplay: v.hidden,
|
|
344
333
|
precision: 2,
|
|
345
334
|
hideCurrencySymbolOnFocus: !0,
|
|
346
335
|
hideGroupingSeparatorOnFocus: !0,
|
|
@@ -348,22 +337,22 @@ const gi = /* @__PURE__ */ A({
|
|
|
348
337
|
autoDecimalDigits: !0,
|
|
349
338
|
useGrouping: !0,
|
|
350
339
|
accountingSign: !1
|
|
351
|
-
}, n = s,
|
|
340
|
+
}, n = s, d = t, u = A(), c = E(() => ({
|
|
352
341
|
...e,
|
|
353
|
-
...
|
|
354
|
-
})), { inputRef:
|
|
355
|
-
i({ inputEl:
|
|
356
|
-
() =>
|
|
342
|
+
...W(n.inputOptions) ? {} : n.inputOptions
|
|
343
|
+
})), { inputRef: m, setOptions: p, setValue: r, numberValue: a } = J(c.value, !1);
|
|
344
|
+
i({ inputEl: m }), x(
|
|
345
|
+
() => a.value,
|
|
357
346
|
(l) => {
|
|
358
|
-
var
|
|
359
|
-
let
|
|
360
|
-
Object.is(l, -0) ? typeof c.value.precision == "number" ?
|
|
347
|
+
var y;
|
|
348
|
+
let o;
|
|
349
|
+
Object.is(l, -0) ? typeof c.value.precision == "number" ? o = "-0." + "0".repeat(c.value.precision) : o = "-0." + "0".repeat(((y = c.value.precision) == null ? void 0 : y.min) || 0) : o = typeof l == "number" ? l.toFixed(2) : l, d("update:model-value", o);
|
|
361
350
|
}
|
|
362
351
|
), x(
|
|
363
352
|
() => n.modelValue,
|
|
364
353
|
(l) => {
|
|
365
|
-
let
|
|
366
|
-
typeof l == "string" ?
|
|
354
|
+
let o;
|
|
355
|
+
typeof l == "string" ? o = parseFloat(l || "0") : o = l, r(o);
|
|
367
356
|
}
|
|
368
357
|
), x(
|
|
369
358
|
() => n.inputOptions,
|
|
@@ -371,26 +360,26 @@ const gi = /* @__PURE__ */ A({
|
|
|
371
360
|
p(c.value);
|
|
372
361
|
}
|
|
373
362
|
);
|
|
374
|
-
const
|
|
375
|
-
const { inputOptions: l, ...
|
|
376
|
-
return { ...
|
|
363
|
+
const h = E(() => {
|
|
364
|
+
const { inputOptions: l, ...o } = n;
|
|
365
|
+
return { ...o, ...u };
|
|
377
366
|
});
|
|
378
|
-
return (l,
|
|
367
|
+
return (l, o) => (L(), T(B, G(h.value, {
|
|
379
368
|
ref_key: "inputEl",
|
|
380
|
-
ref:
|
|
369
|
+
ref: m,
|
|
381
370
|
class: "stash-currency-input",
|
|
382
371
|
type: "text",
|
|
383
372
|
"data-test": "stash-currency-input",
|
|
384
373
|
inputmode: "decimal"
|
|
385
374
|
}), {
|
|
386
|
-
prepend:
|
|
387
|
-
|
|
375
|
+
prepend: w(() => [
|
|
376
|
+
k(z, { name: "sign-dollar" })
|
|
388
377
|
]),
|
|
389
378
|
_: 1
|
|
390
379
|
}, 16));
|
|
391
380
|
}
|
|
392
381
|
});
|
|
393
382
|
export {
|
|
394
|
-
|
|
383
|
+
ei as default
|
|
395
384
|
};
|
|
396
385
|
//# sourceMappingURL=CurrencyInput.js.map
|