monobill-mintui 0.6.612 → 0.6.613
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/README.md +76 -302
- package/bin/component-dependencies.json +131 -0
- package/bin/mint-ui.js +446 -0
- package/dist/alert.css +3 -0
- package/dist/back-button.css +3 -0
- package/dist/bottom-navigation.css +3 -0
- package/dist/button.css +3 -0
- package/dist/card.css +3 -0
- package/dist/chart.css +3 -0
- package/dist/checkbox.css +3 -0
- package/dist/chip.css +3 -0
- package/dist/choice.css +3 -0
- package/dist/clickable.css +3 -0
- package/dist/collapsible.css +3 -0
- package/dist/components/alert/Alert.d.ts +1 -32
- package/dist/components/alert/Alert.d.ts.map +10 -1
- package/dist/components/alert/browser.js +167 -0
- package/dist/components/alert/index.cjs +1 -0
- package/dist/components/alert/index.d.ts +1 -3
- package/dist/components/alert/index.d.ts.map +10 -1
- package/dist/components/alert/index.js +155 -0
- package/dist/components/back-button/BackButton.d.ts +1 -18
- package/dist/components/back-button/BackButton.d.ts.map +10 -1
- package/dist/components/back-button/browser.js +241 -0
- package/dist/components/back-button/index.cjs +1 -0
- package/dist/components/back-button/index.d.ts +1 -3
- package/dist/components/back-button/index.d.ts.map +10 -1
- package/dist/components/back-button/index.js +229 -0
- package/dist/components/bottom-navigation/BottomNavigation.d.ts +1 -10
- package/dist/components/bottom-navigation/BottomNavigation.d.ts.map +10 -1
- package/dist/components/bottom-navigation/browser.js +97 -0
- package/dist/components/bottom-navigation/index.cjs +1 -0
- package/dist/components/bottom-navigation/index.d.ts +2 -5
- package/dist/components/bottom-navigation/index.d.ts.map +10 -1
- package/dist/components/bottom-navigation/index.js +85 -0
- package/dist/components/button/Button.d.ts +1 -57
- package/dist/components/button/Button.d.ts.map +10 -1
- package/dist/components/button/browser.js +18 -0
- package/dist/components/button/index.cjs +1 -0
- package/dist/components/button/index.d.ts +1 -3
- package/dist/components/button/index.d.ts.map +10 -1
- package/dist/components/button/index.js +6 -0
- package/dist/components/card/Card.d.ts +1 -17
- package/dist/components/card/Card.d.ts.map +10 -1
- package/dist/components/card/browser.js +25 -0
- package/dist/components/card/index.cjs +1 -0
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/index.d.ts.map +10 -1
- package/dist/components/card/index.js +13 -0
- package/dist/components/chart/Chart.d.ts +1 -291
- package/dist/components/chart/Chart.d.ts.map +10 -1
- package/dist/components/chart/browser.js +1331 -0
- package/dist/components/chart/index.cjs +37 -0
- package/dist/components/chart/index.d.ts +1 -3
- package/dist/components/chart/index.d.ts.map +10 -1
- package/dist/components/chart/index.js +1319 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -41
- package/dist/components/checkbox/Checkbox.d.ts.map +10 -1
- package/dist/components/checkbox/browser.js +162 -0
- package/dist/components/checkbox/index.cjs +1 -0
- package/dist/components/checkbox/index.d.ts +1 -3
- package/dist/components/checkbox/index.d.ts.map +10 -1
- package/dist/components/checkbox/index.js +150 -0
- package/dist/components/chip/Chip.d.ts +1 -16
- package/dist/components/chip/Chip.d.ts.map +10 -1
- package/dist/components/chip/browser.js +17 -0
- package/dist/components/chip/index.cjs +1 -0
- package/dist/components/chip/index.d.ts +1 -3
- package/dist/components/chip/index.d.ts.map +10 -1
- package/dist/components/chip/index.js +5 -0
- package/dist/components/choice/Choice.d.ts +1 -27
- package/dist/components/choice/Choice.d.ts.map +10 -1
- package/dist/components/choice/browser.js +272 -0
- package/dist/components/choice/index.cjs +1 -0
- package/dist/components/choice/index.d.ts +1 -5
- package/dist/components/choice/index.d.ts.map +10 -1
- package/dist/components/choice/index.js +260 -0
- package/dist/components/chunks/button-B0Yt0MX1.js +380 -0
- package/dist/components/chunks/button-BlbLHMts.js +1 -0
- package/dist/components/chunks/caret-down-BN9cl4o4.js +1 -0
- package/dist/components/chunks/caret-down-Ch6IfR7r.js +9 -0
- package/dist/components/chunks/caret-right-CDUwqoen.js +1 -0
- package/dist/components/chunks/caret-right-CVOgr4nk.js +9 -0
- package/dist/components/chunks/caret-up-3XCuTXSE.js +1 -0
- package/dist/components/chunks/caret-up-D_6oa7o1.js +9 -0
- package/dist/components/chunks/chip-B04bJM4r.js +1 -0
- package/dist/components/chunks/chip-B9whjEvW.js +54 -0
- package/dist/components/chunks/close-5tYlQdkk.js +1 -0
- package/dist/components/chunks/close-Dg6U0IjZ.js +10 -0
- package/dist/components/chunks/icon-C0OLmjDY.js +1 -0
- package/dist/components/chunks/icon-CyzR9aVl.js +1 -0
- package/dist/components/chunks/icon-dG8sLTBn.js +27 -0
- package/dist/components/chunks/icon-gQAtsERy.js +1324 -0
- package/dist/components/chunks/input-8bbXzpa5.js +334 -0
- package/dist/components/chunks/input-BoiREc6Y.js +1 -0
- package/dist/components/chunks/link-BxhPnVaz.js +1 -0
- package/dist/components/chunks/link-DKgtBYK6.js +38 -0
- package/dist/components/chunks/modal-B8gNdwEl.js +153 -0
- package/dist/components/chunks/modal-WYWvk2lZ.js +1 -0
- package/dist/components/chunks/popover-BeaGf_JC.js +1 -0
- package/dist/components/chunks/popover-gviDCspV.js +188 -0
- package/dist/components/chunks/register-element-BFYmIynH.js +53 -0
- package/dist/components/chunks/register-element-tCL_F1YI.js +1 -0
- package/dist/components/chunks/search-ANUKQi0r.js +9 -0
- package/dist/components/chunks/search-B3egXuw4.js +1 -0
- package/dist/components/chunks/spinner-BsaFHuS6.js +108 -0
- package/dist/components/chunks/spinner-DbTohC6i.js +63 -0
- package/dist/components/chunks/stack-D1uh4L79.js +1 -0
- package/dist/components/chunks/stack-DyQfjPDh.js +53 -0
- package/dist/components/chunks/table-BgboosRK.js +65 -0
- package/dist/components/chunks/table-DDUNUwGd.js +1 -0
- package/dist/components/chunks/text-BHkEs8U5.js +67 -0
- package/dist/components/chunks/text-BmHZbBMo.js +1 -0
- package/dist/components/clickable/Clickable.d.ts +1 -14
- package/dist/components/clickable/Clickable.d.ts.map +10 -1
- package/dist/components/clickable/browser.js +78 -0
- package/dist/components/clickable/index.cjs +1 -0
- package/dist/components/clickable/index.d.ts +1 -3
- package/dist/components/clickable/index.d.ts.map +10 -1
- package/dist/components/clickable/index.js +66 -0
- package/dist/components/collapsible/Collapsible.d.ts +1 -28
- package/dist/components/collapsible/Collapsible.d.ts.map +10 -1
- package/dist/components/collapsible/browser.js +170 -0
- package/dist/components/collapsible/index.cjs +1 -0
- package/dist/components/collapsible/index.d.ts +1 -3
- package/dist/components/collapsible/index.d.ts.map +10 -1
- package/dist/components/collapsible/index.js +158 -0
- package/dist/components/confirm-action/ConfirmAction.d.ts +1 -27
- package/dist/components/confirm-action/ConfirmAction.d.ts.map +10 -1
- package/dist/components/confirm-action/browser.js +130 -0
- package/dist/components/confirm-action/index.cjs +1 -0
- package/dist/components/confirm-action/index.d.ts +2 -3
- package/dist/components/confirm-action/index.d.ts.map +10 -1
- package/dist/components/confirm-action/index.js +118 -0
- package/dist/components/date-picker/DatePicker.d.ts +1 -130
- package/dist/components/date-picker/DatePicker.d.ts.map +10 -1
- package/dist/components/date-picker/browser.js +1288 -0
- package/dist/components/date-picker/index.cjs +1 -0
- package/dist/components/date-picker/index.d.ts +1 -3
- package/dist/components/date-picker/index.d.ts.map +10 -1
- package/dist/components/date-picker/index.js +1276 -0
- package/dist/components/dropzone/Dropzone.d.ts +1 -59
- package/dist/components/dropzone/Dropzone.d.ts.map +10 -1
- package/dist/components/dropzone/browser.js +355 -0
- package/dist/components/dropzone/index.cjs +1 -0
- package/dist/components/dropzone/index.d.ts +1 -3
- package/dist/components/dropzone/index.d.ts.map +10 -1
- package/dist/components/dropzone/index.js +343 -0
- package/dist/components/form/Form.d.ts +1 -133
- package/dist/components/form/Form.d.ts.map +10 -1
- package/dist/components/form/browser.js +1002 -0
- package/dist/components/form/index.cjs +1 -0
- package/dist/components/form/index.d.ts +1 -3
- package/dist/components/form/index.d.ts.map +10 -1
- package/dist/components/form/index.js +990 -0
- package/dist/components/grid/Grid.d.ts +1 -16
- package/dist/components/grid/Grid.d.ts.map +10 -1
- package/dist/components/grid/browser.js +24 -0
- package/dist/components/grid/index.cjs +1 -0
- package/dist/components/grid/index.d.ts +1 -3
- package/dist/components/grid/index.d.ts.map +10 -1
- package/dist/components/grid/index.js +12 -0
- package/dist/components/icon/Icon.d.ts +1 -16
- package/dist/components/icon/Icon.d.ts.map +10 -1
- package/dist/components/icon/browser.js +16 -0
- package/dist/components/icon/index.cjs +1 -0
- package/dist/components/icon/index.d.ts +2 -3
- package/dist/components/icon/index.d.ts.map +10 -1
- package/dist/components/icon/index.js +4 -0
- package/dist/components/input/Input.d.ts +1 -68
- package/dist/components/input/Input.d.ts.map +10 -1
- package/dist/components/input/browser.js +17 -0
- package/dist/components/input/index.cjs +1 -0
- package/dist/components/input/index.d.ts +1 -3
- package/dist/components/input/index.d.ts.map +10 -1
- package/dist/components/input/index.js +5 -0
- package/dist/components/link/Link.d.ts +1 -16
- package/dist/components/link/Link.d.ts.map +10 -1
- package/dist/components/link/browser.js +16 -0
- package/dist/components/link/index.cjs +1 -0
- package/dist/components/link/index.d.ts +1 -3
- package/dist/components/link/index.d.ts.map +10 -1
- package/dist/components/link/index.js +4 -0
- package/dist/components/modal/Modal.d.ts +1 -38
- package/dist/components/modal/Modal.d.ts.map +10 -1
- package/dist/components/modal/browser.js +21 -0
- package/dist/components/modal/index.cjs +1 -0
- package/dist/components/modal/index.d.ts +1 -3
- package/dist/components/modal/index.d.ts.map +10 -1
- package/dist/components/modal/index.js +9 -0
- package/dist/components/navigation/Navigation.d.ts +1 -0
- package/dist/components/navigation/Navigation.d.ts.map +10 -0
- package/dist/components/navigation/browser.js +198 -0
- package/dist/components/navigation/index.cjs +1 -0
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.d.ts.map +10 -0
- package/dist/components/navigation/index.js +186 -0
- package/dist/components/off-canvas/OffCanvas.d.ts +1 -46
- package/dist/components/off-canvas/OffCanvas.d.ts.map +10 -1
- package/dist/components/off-canvas/browser.js +192 -0
- package/dist/components/off-canvas/index.cjs +1 -0
- package/dist/components/off-canvas/index.d.ts +1 -3
- package/dist/components/off-canvas/index.d.ts.map +10 -1
- package/dist/components/off-canvas/index.js +180 -0
- package/dist/components/page/Page.d.ts +1 -37
- package/dist/components/page/Page.d.ts.map +10 -1
- package/dist/components/page/browser.js +74 -0
- package/dist/components/page/index.cjs +16 -0
- package/dist/components/page/index.d.ts +1 -3
- package/dist/components/page/index.d.ts.map +10 -1
- package/dist/components/page/index.js +62 -0
- package/dist/components/popover/Popover.d.ts +1 -64
- package/dist/components/popover/Popover.d.ts.map +10 -1
- package/dist/components/popover/browser.js +17 -0
- package/dist/components/popover/index.cjs +1 -0
- package/dist/components/popover/index.d.ts +1 -3
- package/dist/components/popover/index.d.ts.map +10 -1
- package/dist/components/popover/index.js +5 -0
- package/dist/components/resource-table/ResourceTable.d.ts +1 -327
- package/dist/components/resource-table/ResourceTable.d.ts.map +10 -1
- package/dist/components/resource-table/browser.js +1457 -0
- package/dist/components/resource-table/index.cjs +2 -0
- package/dist/components/resource-table/index.d.ts +1 -4
- package/dist/components/resource-table/index.d.ts.map +10 -1
- package/dist/components/resource-table/index.js +1445 -0
- package/dist/components/search/Search.d.ts +1 -151
- package/dist/components/search/Search.d.ts.map +10 -1
- package/dist/components/search/browser.js +681 -0
- package/dist/components/search/index.cjs +1 -0
- package/dist/components/search/index.d.ts +1 -3
- package/dist/components/search/index.d.ts.map +10 -1
- package/dist/components/search/index.js +669 -0
- package/dist/components/select/Select.d.ts +1 -37
- package/dist/components/select/Select.d.ts.map +10 -1
- package/dist/components/select/browser.js +285 -0
- package/dist/components/select/index.cjs +1 -0
- package/dist/components/select/index.d.ts +1 -3
- package/dist/components/select/index.d.ts.map +10 -1
- package/dist/components/select/index.js +273 -0
- package/dist/components/side-navigation/SideNavigation.d.ts +1 -52
- package/dist/components/side-navigation/SideNavigation.d.ts.map +10 -1
- package/dist/components/side-navigation/browser.js +466 -0
- package/dist/components/side-navigation/index.cjs +1 -0
- package/dist/components/side-navigation/index.d.ts +5 -8
- package/dist/components/side-navigation/index.d.ts.map +10 -1
- package/dist/components/side-navigation/index.js +454 -0
- package/dist/components/sortable/Sortable.d.ts +1 -62
- package/dist/components/sortable/Sortable.d.ts.map +10 -1
- package/dist/components/sortable/browser.js +340 -0
- package/dist/components/sortable/index.cjs +1 -0
- package/dist/components/sortable/index.d.ts +1 -3
- package/dist/components/sortable/index.d.ts.map +10 -1
- package/dist/components/sortable/index.js +328 -0
- package/dist/components/spinner/Spinner.d.ts +1 -13
- package/dist/components/spinner/Spinner.d.ts.map +10 -1
- package/dist/components/spinner/browser.js +16 -0
- package/dist/components/spinner/index.cjs +1 -0
- package/dist/components/spinner/index.d.ts +1 -3
- package/dist/components/spinner/index.d.ts.map +10 -1
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/stack/Stack.d.ts +1 -23
- package/dist/components/stack/Stack.d.ts.map +10 -1
- package/dist/components/stack/browser.js +16 -0
- package/dist/components/stack/index.cjs +1 -0
- package/dist/components/stack/index.d.ts +1 -3
- package/dist/components/stack/index.d.ts.map +10 -1
- package/dist/components/stack/index.js +4 -0
- package/dist/components/switch/Switch.d.ts +1 -33
- package/dist/components/switch/Switch.d.ts.map +10 -1
- package/dist/components/switch/browser.js +203 -0
- package/dist/components/switch/index.cjs +1 -0
- package/dist/components/switch/index.d.ts +1 -3
- package/dist/components/switch/index.d.ts.map +10 -1
- package/dist/components/switch/index.js +191 -0
- package/dist/components/table/Table.d.ts +1 -11
- package/dist/components/table/Table.d.ts.map +10 -1
- package/dist/components/table/browser.js +16 -0
- package/dist/components/table/index.cjs +1 -0
- package/dist/components/table/index.d.ts +1 -3
- package/dist/components/table/index.d.ts.map +10 -1
- package/dist/components/table/index.js +4 -0
- package/dist/components/tabs/Tabs.d.ts +1 -20
- package/dist/components/tabs/Tabs.d.ts.map +10 -1
- package/dist/components/tabs/browser.js +251 -0
- package/dist/components/tabs/index.cjs +1 -0
- package/dist/components/tabs/index.d.ts +4 -9
- package/dist/components/tabs/index.d.ts.map +10 -1
- package/dist/components/tabs/index.js +239 -0
- package/dist/components/tags/Tags.d.ts +1 -82
- package/dist/components/tags/Tags.d.ts.map +10 -1
- package/dist/components/tags/browser.js +416 -0
- package/dist/components/tags/index.cjs +1 -0
- package/dist/components/tags/index.d.ts +1 -3
- package/dist/components/tags/index.d.ts.map +10 -1
- package/dist/components/tags/index.js +404 -0
- package/dist/components/text/Text.d.ts +1 -25
- package/dist/components/text/Text.d.ts.map +10 -1
- package/dist/components/text/browser.js +16 -0
- package/dist/components/text/index.cjs +1 -0
- package/dist/components/text/index.d.ts +1 -3
- package/dist/components/text/index.d.ts.map +10 -1
- package/dist/components/text/index.js +4 -0
- package/dist/components/time-picker/TimePicker.d.ts +1 -61
- package/dist/components/time-picker/TimePicker.d.ts.map +10 -1
- package/dist/components/time-picker/browser.js +366 -0
- package/dist/components/time-picker/index.cjs +1 -0
- package/dist/components/time-picker/index.d.ts +1 -3
- package/dist/components/time-picker/index.d.ts.map +10 -1
- package/dist/components/time-picker/index.js +354 -0
- package/dist/components/toast/Toast.d.ts +1 -21
- package/dist/components/toast/Toast.d.ts.map +10 -1
- package/dist/components/toast/browser.js +147 -0
- package/dist/components/toast/index.cjs +3 -0
- package/dist/components/toast/index.d.ts +3 -3
- package/dist/components/toast/index.d.ts.map +10 -1
- package/dist/components/toast/index.js +135 -0
- package/dist/confirm-action.css +3 -0
- package/dist/date-picker.css +3 -0
- package/dist/dropzone.css +3 -0
- package/dist/form.css +3 -0
- package/dist/grid.css +3 -0
- package/dist/icon.css +3 -0
- package/dist/icons/ai.svg +5 -6
- package/dist/icons/bank.svg +1 -1
- package/dist/icons/barcode.svg +1 -1
- package/dist/icons/basket.svg +1 -1
- package/dist/icons/building.svg +1 -1
- package/dist/icons/buildings.svg +1 -1
- package/dist/icons/calendar.svg +1 -1
- package/dist/icons/cash.svg +3 -0
- package/dist/icons/check.svg +1 -1
- package/dist/icons/close.svg +1 -1
- package/dist/icons/coupon.svg +3 -0
- package/dist/icons/delivery-location.svg +3 -0
- package/dist/icons/desktop.svg +3 -0
- package/dist/icons/dollar-sign.svg +1 -1
- package/dist/icons/edit.svg +1 -1
- package/dist/icons/gift.svg +3 -0
- package/dist/icons/grip-lines.svg +2 -2
- package/dist/icons/heart.svg +3 -0
- package/dist/icons/installments.svg +3 -0
- package/dist/icons/inventory.svg +3 -0
- package/dist/icons/invoice.svg +3 -0
- package/dist/icons/loyalty-points.svg +3 -0
- package/dist/icons/membership.svg +3 -0
- package/dist/icons/mobile.svg +3 -0
- package/dist/icons/order-tracking.svg +7 -0
- package/dist/icons/out-of-stock.svg +3 -0
- package/dist/icons/package.svg +3 -0
- package/dist/icons/percent-discount.svg +3 -0
- package/dist/icons/pickup.svg +3 -0
- package/dist/icons/plus.svg +1 -1
- package/dist/icons/price-label.svg +3 -0
- package/dist/icons/product-review.svg +3 -0
- package/dist/icons/receipt.svg +3 -0
- package/dist/icons/refund.svg +3 -0
- package/dist/icons/remove.svg +1 -1
- package/dist/icons/return.svg +3 -0
- package/dist/icons/sale-burst.svg +3 -0
- package/dist/icons/secure-checkout.svg +3 -0
- package/dist/icons/shopping-bag.svg +3 -0
- package/dist/icons/shopping-cart.svg +3 -0
- package/dist/icons/storefront.svg +3 -0
- package/dist/icons/support.svg +3 -0
- package/dist/icons/tablet.svg +3 -0
- package/dist/icons/wallet.svg +3 -0
- package/dist/icons/warehouse.svg +3 -0
- package/dist/index.cjs +83 -79
- package/dist/index.css +253 -0
- package/dist/index.d.ts +94 -91
- package/dist/index.d.ts.map +10 -1
- package/dist/index.js +10695 -10239
- package/dist/input.css +3 -0
- package/dist/link.css +3 -0
- package/dist/mintui-elements.d.ts +156 -0
- package/dist/mintui-elements.d.ts.map +10 -0
- package/dist/modal.css +3 -0
- package/dist/navigation.css +3 -0
- package/dist/off-canvas.css +3 -0
- package/dist/page.css +3 -0
- package/dist/popover.css +3 -0
- package/dist/resource-table.css +3 -0
- package/dist/search.css +3 -0
- package/dist/select.css +3 -0
- package/dist/side-navigation.css +3 -0
- package/dist/sortable.css +3 -0
- package/dist/spinner.css +3 -0
- package/dist/stack.css +3 -0
- package/dist/switch.css +3 -0
- package/dist/table.css +3 -0
- package/dist/tabs.css +3 -0
- package/dist/tags.css +3 -0
- package/dist/text.css +3 -0
- package/dist/theme.css +101 -0
- package/dist/time-picker.css +3 -0
- package/dist/toast.css +3 -0
- package/package.json +379 -30
- package/dist/components/bottom-navigation/BottomNavItem.d.ts +0 -14
- package/dist/components/bottom-navigation/BottomNavItem.d.ts.map +0 -1
- package/dist/components/choice/ChoiceOption.d.ts +0 -30
- package/dist/components/choice/ChoiceOption.d.ts.map +0 -1
- package/dist/components/confirm-action/ConfirmActionApi.d.ts +0 -17
- package/dist/components/confirm-action/ConfirmActionApi.d.ts.map +0 -1
- package/dist/components/icon/build-icons.d.ts +0 -2
- package/dist/components/icon/build-icons.d.ts.map +0 -1
- package/dist/components/icon/icons/ai.d.ts +0 -3
- package/dist/components/icon/icons/ai.d.ts.map +0 -1
- package/dist/components/icon/icons/archive.d.ts +0 -3
- package/dist/components/icon/icons/archive.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-down.d.ts +0 -3
- package/dist/components/icon/icons/arrow-down.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-left.d.ts +0 -3
- package/dist/components/icon/icons/arrow-left.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-right.d.ts +0 -3
- package/dist/components/icon/icons/arrow-right.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-up.d.ts +0 -3
- package/dist/components/icon/icons/arrow-up.d.ts.map +0 -1
- package/dist/components/icon/icons/attach.d.ts +0 -3
- package/dist/components/icon/icons/attach.d.ts.map +0 -1
- package/dist/components/icon/icons/bank.d.ts +0 -3
- package/dist/components/icon/icons/bank.d.ts.map +0 -1
- package/dist/components/icon/icons/barcode.d.ts +0 -3
- package/dist/components/icon/icons/barcode.d.ts.map +0 -1
- package/dist/components/icon/icons/basket.d.ts +0 -3
- package/dist/components/icon/icons/basket.d.ts.map +0 -1
- package/dist/components/icon/icons/bookmark.d.ts +0 -3
- package/dist/components/icon/icons/bookmark.d.ts.map +0 -1
- package/dist/components/icon/icons/building.d.ts +0 -3
- package/dist/components/icon/icons/building.d.ts.map +0 -1
- package/dist/components/icon/icons/buildings.d.ts +0 -3
- package/dist/components/icon/icons/buildings.d.ts.map +0 -1
- package/dist/components/icon/icons/bullhorn.d.ts +0 -3
- package/dist/components/icon/icons/bullhorn.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-day.d.ts +0 -3
- package/dist/components/icon/icons/calendar-day.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-empty.d.ts +0 -3
- package/dist/components/icon/icons/calendar-empty.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-week.d.ts +0 -3
- package/dist/components/icon/icons/calendar-week.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar.d.ts +0 -3
- package/dist/components/icon/icons/calendar.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-down.d.ts +0 -3
- package/dist/components/icon/icons/caret-down.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-left.d.ts +0 -3
- package/dist/components/icon/icons/caret-left.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-right.d.ts +0 -3
- package/dist/components/icon/icons/caret-right.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-up.d.ts +0 -3
- package/dist/components/icon/icons/caret-up.d.ts.map +0 -1
- package/dist/components/icon/icons/chart-bar.d.ts +0 -3
- package/dist/components/icon/icons/chart-bar.d.ts.map +0 -1
- package/dist/components/icon/icons/chart-line.d.ts +0 -3
- package/dist/components/icon/icons/chart-line.d.ts.map +0 -1
- package/dist/components/icon/icons/chat.d.ts +0 -3
- package/dist/components/icon/icons/chat.d.ts.map +0 -1
- package/dist/components/icon/icons/check.d.ts +0 -3
- package/dist/components/icon/icons/check.d.ts.map +0 -1
- package/dist/components/icon/icons/clock.d.ts +0 -3
- package/dist/components/icon/icons/clock.d.ts.map +0 -1
- package/dist/components/icon/icons/close.d.ts +0 -3
- package/dist/components/icon/icons/close.d.ts.map +0 -1
- package/dist/components/icon/icons/copy.d.ts +0 -3
- package/dist/components/icon/icons/copy.d.ts.map +0 -1
- package/dist/components/icon/icons/credit-card.d.ts +0 -3
- package/dist/components/icon/icons/credit-card.d.ts.map +0 -1
- package/dist/components/icon/icons/delete.d.ts +0 -3
- package/dist/components/icon/icons/delete.d.ts.map +0 -1
- package/dist/components/icon/icons/desktop-screen.d.ts +0 -3
- package/dist/components/icon/icons/desktop-screen.d.ts.map +0 -1
- package/dist/components/icon/icons/documentation.d.ts +0 -3
- package/dist/components/icon/icons/documentation.d.ts.map +0 -1
- package/dist/components/icon/icons/dollar-sign.d.ts +0 -3
- package/dist/components/icon/icons/dollar-sign.d.ts.map +0 -1
- package/dist/components/icon/icons/download.d.ts +0 -3
- package/dist/components/icon/icons/download.d.ts.map +0 -1
- package/dist/components/icon/icons/duplicate.d.ts +0 -3
- package/dist/components/icon/icons/duplicate.d.ts.map +0 -1
- package/dist/components/icon/icons/edit.d.ts +0 -3
- package/dist/components/icon/icons/edit.d.ts.map +0 -1
- package/dist/components/icon/icons/ellipsis.d.ts +0 -3
- package/dist/components/icon/icons/ellipsis.d.ts.map +0 -1
- package/dist/components/icon/icons/error.d.ts +0 -3
- package/dist/components/icon/icons/error.d.ts.map +0 -1
- package/dist/components/icon/icons/external-link.d.ts +0 -3
- package/dist/components/icon/icons/external-link.d.ts.map +0 -1
- package/dist/components/icon/icons/eye.d.ts +0 -3
- package/dist/components/icon/icons/eye.d.ts.map +0 -1
- package/dist/components/icon/icons/file.d.ts +0 -3
- package/dist/components/icon/icons/file.d.ts.map +0 -1
- package/dist/components/icon/icons/filter.d.ts +0 -3
- package/dist/components/icon/icons/filter.d.ts.map +0 -1
- package/dist/components/icon/icons/folder.d.ts +0 -3
- package/dist/components/icon/icons/folder.d.ts.map +0 -1
- package/dist/components/icon/icons/gavel.d.ts +0 -3
- package/dist/components/icon/icons/gavel.d.ts.map +0 -1
- package/dist/components/icon/icons/globe.d.ts +0 -3
- package/dist/components/icon/icons/globe.d.ts.map +0 -1
- package/dist/components/icon/icons/grid.d.ts +0 -3
- package/dist/components/icon/icons/grid.d.ts.map +0 -1
- package/dist/components/icon/icons/grip-lines.d.ts +0 -3
- package/dist/components/icon/icons/grip-lines.d.ts.map +0 -1
- package/dist/components/icon/icons/help.d.ts +0 -3
- package/dist/components/icon/icons/help.d.ts.map +0 -1
- package/dist/components/icon/icons/home.d.ts +0 -3
- package/dist/components/icon/icons/home.d.ts.map +0 -1
- package/dist/components/icon/icons/image.d.ts +0 -3
- package/dist/components/icon/icons/image.d.ts.map +0 -1
- package/dist/components/icon/icons/index.cjs +0 -34
- package/dist/components/icon/icons/index.d.ts +0 -92
- package/dist/components/icon/icons/index.d.ts.map +0 -1
- package/dist/components/icon/icons/index.js +0 -752
- package/dist/components/icon/icons/info.d.ts +0 -3
- package/dist/components/icon/icons/info.d.ts.map +0 -1
- package/dist/components/icon/icons/language.d.ts +0 -3
- package/dist/components/icon/icons/language.d.ts.map +0 -1
- package/dist/components/icon/icons/line-chart.d.ts +0 -3
- package/dist/components/icon/icons/line-chart.d.ts.map +0 -1
- package/dist/components/icon/icons/link.d.ts +0 -3
- package/dist/components/icon/icons/link.d.ts.map +0 -1
- package/dist/components/icon/icons/list.d.ts +0 -3
- package/dist/components/icon/icons/list.d.ts.map +0 -1
- package/dist/components/icon/icons/location.d.ts +0 -3
- package/dist/components/icon/icons/location.d.ts.map +0 -1
- package/dist/components/icon/icons/lock.d.ts +0 -3
- package/dist/components/icon/icons/lock.d.ts.map +0 -1
- package/dist/components/icon/icons/login.d.ts +0 -3
- package/dist/components/icon/icons/login.d.ts.map +0 -1
- package/dist/components/icon/icons/logout.d.ts +0 -3
- package/dist/components/icon/icons/logout.d.ts.map +0 -1
- package/dist/components/icon/icons/mail.d.ts +0 -3
- package/dist/components/icon/icons/mail.d.ts.map +0 -1
- package/dist/components/icon/icons/map.d.ts +0 -3
- package/dist/components/icon/icons/map.d.ts.map +0 -1
- package/dist/components/icon/icons/menu.d.ts +0 -3
- package/dist/components/icon/icons/menu.d.ts.map +0 -1
- package/dist/components/icon/icons/moon.d.ts +0 -3
- package/dist/components/icon/icons/moon.d.ts.map +0 -1
- package/dist/components/icon/icons/notifications.d.ts +0 -3
- package/dist/components/icon/icons/notifications.d.ts.map +0 -1
- package/dist/components/icon/icons/paste.d.ts +0 -3
- package/dist/components/icon/icons/paste.d.ts.map +0 -1
- package/dist/components/icon/icons/pin.d.ts +0 -3
- package/dist/components/icon/icons/pin.d.ts.map +0 -1
- package/dist/components/icon/icons/plus.d.ts +0 -3
- package/dist/components/icon/icons/plus.d.ts.map +0 -1
- package/dist/components/icon/icons/print.d.ts +0 -3
- package/dist/components/icon/icons/print.d.ts.map +0 -1
- package/dist/components/icon/icons/refresh.d.ts +0 -3
- package/dist/components/icon/icons/refresh.d.ts.map +0 -1
- package/dist/components/icon/icons/remove.d.ts +0 -3
- package/dist/components/icon/icons/remove.d.ts.map +0 -1
- package/dist/components/icon/icons/save.d.ts +0 -3
- package/dist/components/icon/icons/save.d.ts.map +0 -1
- package/dist/components/icon/icons/search.d.ts +0 -3
- package/dist/components/icon/icons/search.d.ts.map +0 -1
- package/dist/components/icon/icons/settings.d.ts +0 -3
- package/dist/components/icon/icons/settings.d.ts.map +0 -1
- package/dist/components/icon/icons/share.d.ts +0 -3
- package/dist/components/icon/icons/share.d.ts.map +0 -1
- package/dist/components/icon/icons/sort-arrows.d.ts +0 -3
- package/dist/components/icon/icons/sort-arrows.d.ts.map +0 -1
- package/dist/components/icon/icons/sort.d.ts +0 -3
- package/dist/components/icon/icons/sort.d.ts.map +0 -1
- package/dist/components/icon/icons/star.d.ts +0 -3
- package/dist/components/icon/icons/star.d.ts.map +0 -1
- package/dist/components/icon/icons/success.d.ts +0 -3
- package/dist/components/icon/icons/success.d.ts.map +0 -1
- package/dist/components/icon/icons/sun.d.ts +0 -3
- package/dist/components/icon/icons/sun.d.ts.map +0 -1
- package/dist/components/icon/icons/table.d.ts +0 -3
- package/dist/components/icon/icons/table.d.ts.map +0 -1
- package/dist/components/icon/icons/tag.d.ts +0 -3
- package/dist/components/icon/icons/tag.d.ts.map +0 -1
- package/dist/components/icon/icons/trash.d.ts +0 -3
- package/dist/components/icon/icons/trash.d.ts.map +0 -1
- package/dist/components/icon/icons/truck.d.ts +0 -3
- package/dist/components/icon/icons/truck.d.ts.map +0 -1
- package/dist/components/icon/icons/unlock.d.ts +0 -3
- package/dist/components/icon/icons/unlock.d.ts.map +0 -1
- package/dist/components/icon/icons/upload.d.ts +0 -3
- package/dist/components/icon/icons/upload.d.ts.map +0 -1
- package/dist/components/icon/icons/user-add.d.ts +0 -3
- package/dist/components/icon/icons/user-add.d.ts.map +0 -1
- package/dist/components/icon/icons/user.d.ts +0 -3
- package/dist/components/icon/icons/user.d.ts.map +0 -1
- package/dist/components/icon/icons/users.d.ts +0 -3
- package/dist/components/icon/icons/users.d.ts.map +0 -1
- package/dist/components/icon/icons/video.d.ts +0 -3
- package/dist/components/icon/icons/video.d.ts.map +0 -1
- package/dist/components/icon/icons/warning.d.ts +0 -3
- package/dist/components/icon/icons/warning.d.ts.map +0 -1
- package/dist/components/icon/registry.d.ts +0 -15
- package/dist/components/icon/registry.d.ts.map +0 -1
- package/dist/components/resource-table/ResourceTableContextMenu.d.ts +0 -40
- package/dist/components/resource-table/ResourceTableContextMenu.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts +0 -2
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts +0 -9
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts +0 -26
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationLink.d.ts +0 -38
- package/dist/components/side-navigation/SideNavigationLink.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationLinks.d.ts +0 -38
- package/dist/components/side-navigation/SideNavigationLinks.d.ts.map +0 -1
- package/dist/components/tabs/Tab.d.ts +0 -19
- package/dist/components/tabs/Tab.d.ts.map +0 -1
- package/dist/components/tabs/TabContent.d.ts +0 -13
- package/dist/components/tabs/TabContent.d.ts.map +0 -1
- package/dist/components/tabs/TabList.d.ts +0 -12
- package/dist/components/tabs/TabList.d.ts.map +0 -1
- package/dist/components/toast/ToastApi.d.ts +0 -21
- package/dist/components/toast/ToastApi.d.ts.map +0 -1
- package/dist/components/top-navigation/TopNavigation.d.ts +0 -65
- package/dist/components/top-navigation/TopNavigation.d.ts.map +0 -1
- package/dist/components/top-navigation/index.d.ts +0 -4
- package/dist/components/top-navigation/index.d.ts.map +0 -1
- package/dist/icons/truck.svg +0 -13
- package/dist/search-CM-OgatF.js +0 -179
- package/dist/search-C_vLUsm7.cjs +0 -1
- package/dist/styles.css +0 -3
- package/tailwind.preset.cjs +0 -75
- package/tailwind.preset.js +0 -97
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import '../../theme.css'
|
|
2
|
+
import '../../chip.css'
|
|
3
|
+
import '../../icon.css'
|
|
4
|
+
import '../../button.css'
|
|
5
|
+
import '../../spinner.css'
|
|
6
|
+
import '../../popover.css'
|
|
7
|
+
import '../../stack.css'
|
|
8
|
+
import '../../tags.css'
|
|
9
|
+
import "../chunks/icon-gQAtsERy.js";
|
|
10
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
11
|
+
import "../chunks/button-B0Yt0MX1.js";
|
|
12
|
+
import "../chunks/chip-B9whjEvW.js";
|
|
13
|
+
import "../chunks/popover-gviDCspV.js";
|
|
14
|
+
//#region src/components/tags/Tags.ts
|
|
15
|
+
var t = class extends HTMLElement {
|
|
16
|
+
constructor(...e) {
|
|
17
|
+
super(...e), this._container = null, this._chipsWrap = null, this._input = null, this._tags = [], this._predefinedTags = [], this._placeholder = "Add tag", this._predefinedPopoverOpenListenersAttached = !1, this._predefinedBlurCloseTimer = null, this._suppressNextPredefinedBlurClose = !1, this._dragIndex = null, this._dragChip = null, this._isPointerDragging = !1, this._pointerMoveHandler = null, this._pointerUpHandler = null, this._containerFocusRingListeners = !1, this._predefinedFieldResizeObserver = null, this._predefinedPopoverBodyEl = null;
|
|
18
|
+
}
|
|
19
|
+
static get observedAttributes() {
|
|
20
|
+
return [
|
|
21
|
+
"tags",
|
|
22
|
+
"placeholder",
|
|
23
|
+
"predefined-tags",
|
|
24
|
+
"predefined-only",
|
|
25
|
+
"sortable",
|
|
26
|
+
"label",
|
|
27
|
+
"info",
|
|
28
|
+
"error",
|
|
29
|
+
"error-message",
|
|
30
|
+
"name",
|
|
31
|
+
"id",
|
|
32
|
+
"required",
|
|
33
|
+
"loading"
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
this._parseAttrs(), this._render(), this._pointerMoveHandler || (this._pointerMoveHandler = (e) => this._onPointerMove(e), window.addEventListener("pointermove", this._pointerMoveHandler)), this._pointerUpHandler || (this._pointerUpHandler = (e) => this._onPointerUp(e), window.addEventListener("pointerup", this._pointerUpHandler), window.addEventListener("pointercancel", this._pointerUpHandler));
|
|
38
|
+
}
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
this._disconnectPredefinedFieldResizeObserver();
|
|
41
|
+
}
|
|
42
|
+
attributeChangedCallback(e, t, n) {
|
|
43
|
+
if (t !== n) {
|
|
44
|
+
if (e === "error" || e === "error-message") {
|
|
45
|
+
this._renderErrorState(), this._syncInputAccessibility(), this._container && this._container.classList.toggle("mint-tags-field-error", this.hasError());
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (e === "loading") {
|
|
49
|
+
this._parseAttrs(), this._render();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
this._parseAttrs(), this._render();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
set tags(e) {
|
|
56
|
+
this._tags = Array.isArray(e) ? [...e] : [], this._syncAttr(), this._render();
|
|
57
|
+
}
|
|
58
|
+
get tags() {
|
|
59
|
+
return [...this._tags];
|
|
60
|
+
}
|
|
61
|
+
_parseAttrs() {
|
|
62
|
+
let e = this.getAttribute("tags");
|
|
63
|
+
e && (this._tags = this._parseTagItems(e, "tags"));
|
|
64
|
+
let t = this.getAttribute("placeholder");
|
|
65
|
+
t !== null && (this._placeholder = t);
|
|
66
|
+
let n = this.getAttribute("predefined-tags");
|
|
67
|
+
this._predefinedTags = this._parseTagItems(n, "predefined-tags");
|
|
68
|
+
}
|
|
69
|
+
_parseTagItems(e, t) {
|
|
70
|
+
if (!e) return [];
|
|
71
|
+
try {
|
|
72
|
+
let t = JSON.parse(e);
|
|
73
|
+
return Array.isArray(t) ? t.map((e) => {
|
|
74
|
+
if (typeof e == "string") {
|
|
75
|
+
let t = e.trim();
|
|
76
|
+
return t ? {
|
|
77
|
+
value: t,
|
|
78
|
+
label: t,
|
|
79
|
+
dismissable: !0
|
|
80
|
+
} : null;
|
|
81
|
+
}
|
|
82
|
+
if (!e || typeof e != "object") return null;
|
|
83
|
+
let t = e, n = String(t.value ?? "").trim();
|
|
84
|
+
return n ? {
|
|
85
|
+
value: n,
|
|
86
|
+
label: String(t.label ?? n),
|
|
87
|
+
dismissable: t.dismissable !== !1
|
|
88
|
+
} : null;
|
|
89
|
+
}).filter((e) => e !== null) : [];
|
|
90
|
+
} catch (e) {
|
|
91
|
+
return console.warn(`mint-tags: failed to parse ${t} attribute`, e), [];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
_syncAttr() {
|
|
95
|
+
this.setAttribute("tags", JSON.stringify(this._tags));
|
|
96
|
+
}
|
|
97
|
+
getLabel() {
|
|
98
|
+
return this.getAttribute("label") || "";
|
|
99
|
+
}
|
|
100
|
+
getInfo() {
|
|
101
|
+
return this.getAttribute("info") || "";
|
|
102
|
+
}
|
|
103
|
+
hasError() {
|
|
104
|
+
return this.getAttribute("error") === "true";
|
|
105
|
+
}
|
|
106
|
+
_attachContainerFocusRingListeners() {
|
|
107
|
+
!this._container || this._containerFocusRingListeners || (this._containerFocusRingListeners = !0, this._container.addEventListener("focusin", () => {
|
|
108
|
+
this._container?.setAttribute("data-mint-tags-active", "true");
|
|
109
|
+
}), this._container.addEventListener("focusout", () => {
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
this._container && (this._container.contains(document.activeElement) || this._container.removeAttribute("data-mint-tags-active"));
|
|
112
|
+
});
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
getErrorMessage() {
|
|
116
|
+
return this.getAttribute("error-message") || "";
|
|
117
|
+
}
|
|
118
|
+
getName() {
|
|
119
|
+
return this.getAttribute("name") || "";
|
|
120
|
+
}
|
|
121
|
+
getId() {
|
|
122
|
+
return this.getAttribute("id") || "";
|
|
123
|
+
}
|
|
124
|
+
isRequired() {
|
|
125
|
+
return this.getAttribute("required") === "true";
|
|
126
|
+
}
|
|
127
|
+
isLoading() {
|
|
128
|
+
return this.hasAttribute("loading");
|
|
129
|
+
}
|
|
130
|
+
isPredefinedOnly() {
|
|
131
|
+
return this.getAttribute("predefined-only") === "true";
|
|
132
|
+
}
|
|
133
|
+
_render() {
|
|
134
|
+
this.classList.add("mint-tags-host");
|
|
135
|
+
let e = this.isLoading(), t = this.getLabel(), n = this.getInfo(), r = this.hasError(), i = this.getId() || `mint-tags-${Math.random().toString(36).substr(2, 9)}`;
|
|
136
|
+
this.getId() || this.setAttribute("id", i), this._container ? this._input && (this._input.placeholder = this._placeholder) : (this._container = document.createElement("div"), this._container.className = "mint-tags-field", this._container.classList.toggle("mint-tags-field-error", r), this._container.addEventListener("pointerdown", (e) => this._onContainerPointerDown(e)), this._attachContainerFocusRingListeners(), this._chipsWrap = document.createElement("div"), this._chipsWrap.className = "mint-tags-chips", this._chipsWrap.addEventListener("dragover", (e) => {
|
|
137
|
+
this.hasAttribute("sortable") && e.preventDefault();
|
|
138
|
+
}), this._chipsWrap.addEventListener("drop", (e) => {
|
|
139
|
+
this.hasAttribute("sortable") && e.preventDefault();
|
|
140
|
+
}), this._input = document.createElement("input"), this._input.type = "text", this._input.placeholder = this._placeholder, this._input.className = "mint-tags-input", this._input.addEventListener("keydown", (e) => {
|
|
141
|
+
e.key === "Enter" && (e.preventDefault(), this._addFromInput());
|
|
142
|
+
}), this._container.appendChild(this._chipsWrap), this.appendChild(this._container)), this._input && (this.isPredefinedOnly() && this._predefinedTags.length > 0 ? this._input.setAttribute("readonly", "true") : this._input.removeAttribute("readonly")), this._container && this._container.classList.toggle("mint-tags-field-error", r);
|
|
143
|
+
let a = this.querySelector(".mint-tags-label-container");
|
|
144
|
+
if (t) {
|
|
145
|
+
a || (a = document.createElement("div"), a.className = "mint-tags-label-container", this._container && this._container.parentElement === this ? this.insertBefore(a, this._container) : this.insertBefore(a, this.firstChild));
|
|
146
|
+
let e = a.querySelector(".mint-tags-label");
|
|
147
|
+
t ? (e || (e = document.createElement("label"), e.className = "mint-tags-label", a.appendChild(e)), e.textContent = t, e.setAttribute("for", i)) : e && e.remove();
|
|
148
|
+
} else a && a.remove();
|
|
149
|
+
let o = this.querySelector(".mint-tags-info");
|
|
150
|
+
n ? (o || (o = document.createElement("span"), o.className = "mint-tags-info", this._container && this._container.parentElement === this ? this.insertBefore(o, this._container.nextSibling) : this.appendChild(o)), o.textContent = n) : o && o.remove();
|
|
151
|
+
let s = this.getName();
|
|
152
|
+
s ? (this.setAttribute("name", s), this._input && (this._input.name = s, this._input.id = i)) : (this.removeAttribute("name"), this._input && (this._input.removeAttribute("name"), this._input.id = i)), this._wireInputBackspace(), this._renderChips(), this._renderPredefinedPopover(), this._renderErrorState(), this._syncInputAccessibility(), this._renderSkeleton(e);
|
|
153
|
+
}
|
|
154
|
+
_getAvailablePredefinedTags() {
|
|
155
|
+
let e = new Set(this._tags.map((e) => e.value.toLowerCase()));
|
|
156
|
+
return this._predefinedTags.filter((t) => !e.has(t.value.toLowerCase()));
|
|
157
|
+
}
|
|
158
|
+
_shouldShowInput() {
|
|
159
|
+
return this._input ? !this.isPredefinedOnly() || !this._predefinedTags.length ? !0 : this._getAvailablePredefinedTags().length > 0 : !1;
|
|
160
|
+
}
|
|
161
|
+
_disconnectPredefinedFieldResizeObserver() {
|
|
162
|
+
this._predefinedFieldResizeObserver &&= (this._predefinedFieldResizeObserver.disconnect(), null), this._predefinedPopoverBodyEl = null;
|
|
163
|
+
}
|
|
164
|
+
_syncPredefinedPopoverBodyMinWidth(e) {
|
|
165
|
+
if (!this._container) return;
|
|
166
|
+
let t = this._container.offsetWidth;
|
|
167
|
+
t > 0 ? e.style.minWidth = `${Math.max(t, 200)}px` : e.style.minWidth = "12rem";
|
|
168
|
+
}
|
|
169
|
+
_attachPredefinedFieldResizeObserver(e) {
|
|
170
|
+
if (this._disconnectPredefinedFieldResizeObserver(), !this._container || typeof ResizeObserver > "u") {
|
|
171
|
+
this._syncPredefinedPopoverBodyMinWidth(e);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this._predefinedPopoverBodyEl = e, this._predefinedFieldResizeObserver = new ResizeObserver(() => {
|
|
175
|
+
!this._predefinedPopoverBodyEl || !this._container || this._syncPredefinedPopoverBodyMinWidth(this._predefinedPopoverBodyEl);
|
|
176
|
+
}), this._predefinedFieldResizeObserver.observe(this._container), this._syncPredefinedPopoverBodyMinWidth(e);
|
|
177
|
+
}
|
|
178
|
+
_renderPredefinedPopover() {
|
|
179
|
+
if (!this._container || !this._chipsWrap || (this._disconnectPredefinedFieldResizeObserver(), this.querySelectorAll("[data-mint-tags-predefined=\"true\"]").forEach((e) => e.remove()), !this._predefinedTags.length) || !this._input || !this._input.id) return;
|
|
180
|
+
let e = this._getAvailablePredefinedTags();
|
|
181
|
+
if (this.isPredefinedOnly() && e.length === 0) return;
|
|
182
|
+
let t = `${this.getAttribute("id") || this._input.id}-tags-field`;
|
|
183
|
+
this._container.id = t;
|
|
184
|
+
let n = document.createElement("mint-popover");
|
|
185
|
+
n.setAttribute("trigger-id", t), n.setAttribute("trigger-toggle", "false"), n.setAttribute("trigger-align", "start"), n.setAttribute("direction", "down"), n.setAttribute("padding", "0"), n.setAttribute("distance", "6px"), n.dataset.mintTagsPredefined = "true";
|
|
186
|
+
let r = document.createElement("div");
|
|
187
|
+
if (r.dataset.mintTagsPredefinedBody = "true", r.className = "mint-tags-options", r.addEventListener("mousedown", (e) => {
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
}), e.length) e.forEach((e) => {
|
|
190
|
+
let t = document.createElement("mint-button");
|
|
191
|
+
t.setAttribute("type", "button"), t.setAttribute("variant", "ghost"), t.setAttribute("full-width", "true"), t.setAttribute("align", "left"), t.classList.add("mint-tags-option"), t.textContent = e.label || e.value, t.addEventListener("mousedown", (e) => {
|
|
192
|
+
e.preventDefault();
|
|
193
|
+
}, !0), t.addEventListener("click", () => {
|
|
194
|
+
this._addTag(e), n.removeAttribute("open"), requestAnimationFrame(() => {
|
|
195
|
+
this._input?.focus({ preventScroll: !0 }), this._container?.setAttribute("data-mint-tags-active", "true");
|
|
196
|
+
});
|
|
197
|
+
}), r.appendChild(t);
|
|
198
|
+
});
|
|
199
|
+
else {
|
|
200
|
+
let e = document.createElement("div");
|
|
201
|
+
e.className = "mint-tags-empty", e.textContent = "No tags available", r.appendChild(e);
|
|
202
|
+
}
|
|
203
|
+
n.appendChild(r), this._container.appendChild(n), this._attachPredefinedPopoverOpenOnInputFocus(), this._attachPredefinedFieldResizeObserver(r);
|
|
204
|
+
}
|
|
205
|
+
_getPredefinedPopoverEl() {
|
|
206
|
+
return this.querySelector("mint-popover[data-mint-tags-predefined=\"true\"]");
|
|
207
|
+
}
|
|
208
|
+
_attachPredefinedPopoverOpenOnInputFocus() {
|
|
209
|
+
!this._input || !this._predefinedTags.length || this._predefinedPopoverOpenListenersAttached || (this._predefinedPopoverOpenListenersAttached = !0, this._input.addEventListener("focus", () => {
|
|
210
|
+
if (this._predefinedBlurCloseTimer !== null && (window.clearTimeout(this._predefinedBlurCloseTimer), this._predefinedBlurCloseTimer = null), this.isLoading()) return;
|
|
211
|
+
let e = this._getPredefinedPopoverEl();
|
|
212
|
+
e && e.setAttribute("open", "true");
|
|
213
|
+
}), this._input.addEventListener("blur", () => {
|
|
214
|
+
this._predefinedBlurCloseTimer !== null && window.clearTimeout(this._predefinedBlurCloseTimer), this._predefinedBlurCloseTimer = window.setTimeout(() => {
|
|
215
|
+
if (this._predefinedBlurCloseTimer = null, this._suppressNextPredefinedBlurClose) {
|
|
216
|
+
this._suppressNextPredefinedBlurClose = !1;
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
this._getPredefinedPopoverEl()?.removeAttribute("open");
|
|
220
|
+
}, 150);
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
_renderSkeleton(e) {
|
|
224
|
+
let t = this._container;
|
|
225
|
+
if (!t) return;
|
|
226
|
+
let n = t.querySelector(".mint-tags-skeleton");
|
|
227
|
+
e ? (n || (n = document.createElement("div"), n.className = "mint-tags-skeleton", t.appendChild(n)), n.style.display = "block", this._chipsWrap && (this._chipsWrap.style.visibility = "hidden", this._chipsWrap.style.pointerEvents = "none"), this._input && (this._input.style.visibility = "hidden", this._input.style.pointerEvents = "none")) : (n && (n.style.display = "none"), this._chipsWrap && (this._chipsWrap.style.visibility = "visible", this._chipsWrap.style.pointerEvents = "auto"), this._input && (this._input.style.visibility = "visible", this._input.style.pointerEvents = "auto"));
|
|
228
|
+
}
|
|
229
|
+
_renderErrorState() {
|
|
230
|
+
let e = this.hasError(), t = this.getErrorMessage(), n = this.querySelector(".mint-tags-error");
|
|
231
|
+
e && t ? (n || (n = document.createElement("div"), n.className = "mint-tags-error", this.appendChild(n)), n.textContent = t) : n && n.remove();
|
|
232
|
+
}
|
|
233
|
+
_syncInputAccessibility() {
|
|
234
|
+
if (!this._input) return;
|
|
235
|
+
let e = this.getId() || `mint-tags-${Math.random().toString(36).slice(2, 10)}`;
|
|
236
|
+
this._input.id = e;
|
|
237
|
+
let t = this.getLabel().trim();
|
|
238
|
+
t ? this._input.setAttribute("aria-label", t) : this._placeholder.trim() ? this._input.setAttribute("aria-label", this._placeholder.trim()) : this._input.setAttribute("aria-label", "Add tag"), this._input.setAttribute("aria-invalid", String(this.hasError()));
|
|
239
|
+
let n = (this.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), r = this.querySelector(".mint-tags-info"), i = this.querySelector(".mint-tags-error");
|
|
240
|
+
r && (r.id = `${e}-info`, n.push(r.id)), i && (i.id = `${e}-error`, n.push(i.id)), n.length ? this._input.setAttribute("aria-describedby", Array.from(new Set(n)).join(" ")) : this._input.removeAttribute("aria-describedby");
|
|
241
|
+
}
|
|
242
|
+
_renderChips() {
|
|
243
|
+
if (!this._chipsWrap) return;
|
|
244
|
+
this._chipsWrap.innerHTML = "";
|
|
245
|
+
let e = 0;
|
|
246
|
+
this._tags.forEach((t) => {
|
|
247
|
+
let n = document.createElement("mint-chip");
|
|
248
|
+
n.dataset.index = String(e++), n.dataset.value = t.value, n.draggable = this.hasAttribute("sortable"), n.draggable && n.classList.add("mint-tags-chip-draggable"), t.dismissable && (n.setAttribute("dismissable", "true"), n.addEventListener("dismissed", () => this._removeTag(t.value))), this._chipsWrap.appendChild(n);
|
|
249
|
+
let r = n.querySelector("[data-mt-chip-text]");
|
|
250
|
+
r && (r.textContent = t.label || t.value), this._setupChipEvents(n, t), n.draggable && (n.addEventListener("dragstart", (e) => this._onDragStart(e, n)), n.addEventListener("dragover", (e) => this._onDragOverChip(e, n)), n.addEventListener("drop", (e) => this._onDrop(e)), n.addEventListener("dragend", () => this._onDragEnd())), this.hasAttribute("sortable") && n.addEventListener("pointerdown", (e) => this._onPointerDown(e, n));
|
|
251
|
+
}), this._input && this._shouldShowInput() && (this.hasAttribute("sortable") && (this._input.addEventListener("dragover", (e) => this._onDragOverInput(e)), this._input.addEventListener("drop", (e) => this._onDrop(e)), this._input.addEventListener("dragend", () => this._onDragEnd())), this._chipsWrap.appendChild(this._input));
|
|
252
|
+
}
|
|
253
|
+
_addFromInput() {
|
|
254
|
+
if (!this._input) return;
|
|
255
|
+
let e = this._input.value.trim();
|
|
256
|
+
if (!e) return;
|
|
257
|
+
if (this._tags.some((t) => t.value.toLowerCase() === e.toLowerCase())) {
|
|
258
|
+
this._input.value = "";
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
let t = this._predefinedTags.find((t) => t.value.toLowerCase() === e.toLowerCase());
|
|
262
|
+
if (this.isPredefinedOnly()) {
|
|
263
|
+
if (!t) {
|
|
264
|
+
this._input.value = "";
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
this._addTag(t);
|
|
268
|
+
} else this._addTag(t || {
|
|
269
|
+
value: e,
|
|
270
|
+
label: e,
|
|
271
|
+
dismissable: !0
|
|
272
|
+
});
|
|
273
|
+
this._input.value = "", setTimeout(() => {
|
|
274
|
+
this._input?.focus();
|
|
275
|
+
}, 10);
|
|
276
|
+
}
|
|
277
|
+
_addTag(e) {
|
|
278
|
+
this._tags.some((t) => t.value.toLowerCase() === e.value.toLowerCase()) || (this._tags.push({
|
|
279
|
+
value: e.value,
|
|
280
|
+
label: e.label || e.value,
|
|
281
|
+
dismissable: e.dismissable !== !1
|
|
282
|
+
}), this._syncAttr(), this._renderChips(), this._renderPredefinedPopover(), this._emitChange());
|
|
283
|
+
}
|
|
284
|
+
_removeTag(e) {
|
|
285
|
+
this._tags = this._tags.filter((t) => t.value !== e), this._syncAttr(), this._renderChips(), this._renderPredefinedPopover(), this._emitChange();
|
|
286
|
+
}
|
|
287
|
+
_emitChange() {
|
|
288
|
+
this.dispatchEvent(new CustomEvent("tags-change", {
|
|
289
|
+
bubbles: !0,
|
|
290
|
+
composed: !0,
|
|
291
|
+
detail: { tags: this.tags }
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
_focusLastChip() {
|
|
295
|
+
let e = this._chipsWrap?.querySelectorAll("mint-chip");
|
|
296
|
+
e && e.length > 0 && e[e.length - 1].focus({ preventScroll: !0 });
|
|
297
|
+
}
|
|
298
|
+
_focusInput() {
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
this._input?.focus({ preventScroll: !0 });
|
|
301
|
+
}, 10);
|
|
302
|
+
}
|
|
303
|
+
_wireInputBackspace() {
|
|
304
|
+
this._input && this._input.addEventListener("keydown", (e) => {
|
|
305
|
+
e.key === "Backspace" && this._input?.value === "" && (e.preventDefault(), this._focusLastChip());
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
_setupChipEvents(e, t) {
|
|
309
|
+
e.tabIndex = 0, e.addEventListener("keydown", (e) => {
|
|
310
|
+
(e.key === "Backspace" || e.key === "Delete") && t.dismissable && (e.preventDefault(), this._removeTag(t.value), this._focusInput());
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
_onContainerPointerDown(e) {
|
|
314
|
+
if (!this._input || !this._input.isConnected || this._input.parentElement !== this._chipsWrap || e.button !== 0 || e.defaultPrevented) return;
|
|
315
|
+
let t = e.composedPath();
|
|
316
|
+
if (!t.some((e) => e === this._input) && !t.some((e) => e instanceof Element && e.closest("mint-chip") != null)) {
|
|
317
|
+
this._predefinedBlurCloseTimer !== null && (window.clearTimeout(this._predefinedBlurCloseTimer), this._predefinedBlurCloseTimer = null), this._suppressNextPredefinedBlurClose = !0, e.preventDefault();
|
|
318
|
+
try {
|
|
319
|
+
this._input.focus({ preventScroll: !0 });
|
|
320
|
+
} catch {}
|
|
321
|
+
this._predefinedTags.length > 0 && this._getPredefinedPopoverEl()?.setAttribute("open", "true");
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
_onDragStart(e, t) {
|
|
325
|
+
this.hasAttribute("sortable") && (this._dragChip = t, this._dragIndex = Number(t.dataset.index), e.dataTransfer?.setData("text/plain", t.dataset.index || ""), e.dataTransfer && (e.dataTransfer.effectAllowed = "move", e.dataTransfer.dropEffect = "move"), t.classList.add("mint-tags-chip-dragging"));
|
|
326
|
+
}
|
|
327
|
+
_reorderTags(e, t) {
|
|
328
|
+
if (e < 0 || t < 0 || e >= this._tags.length || t >= this._tags.length) return;
|
|
329
|
+
let n = [...this._tags], [r] = n.splice(e, 1);
|
|
330
|
+
n.splice(t, 0, r), this._tags = n, this._syncAttr(), this._renderChips(), this._emitChange();
|
|
331
|
+
}
|
|
332
|
+
_onDragOverInput(e) {
|
|
333
|
+
this.hasAttribute("sortable") && (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), this._dragChip && this._chipsWrap && this._input && this._chipsWrap.insertBefore(this._dragChip, this._input));
|
|
334
|
+
}
|
|
335
|
+
_onDragOverChip(e, t) {
|
|
336
|
+
if (!this.hasAttribute("sortable") || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), !this._dragChip || !this._chipsWrap) || t === this._dragChip) return;
|
|
337
|
+
let n = t.getBoundingClientRect();
|
|
338
|
+
if (e.clientX < n.left + n.width * .5) {
|
|
339
|
+
if (this._dragChip.nextSibling === t) return;
|
|
340
|
+
this._chipsWrap.insertBefore(this._dragChip, t);
|
|
341
|
+
} else {
|
|
342
|
+
if (t.nextSibling === this._dragChip) return;
|
|
343
|
+
let e = t.nextSibling;
|
|
344
|
+
e ? this._chipsWrap.insertBefore(this._dragChip, e) : this._chipsWrap.appendChild(this._dragChip);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
_onDrop(e) {
|
|
348
|
+
this.hasAttribute("sortable") && e.preventDefault();
|
|
349
|
+
}
|
|
350
|
+
_onDragEnd() {
|
|
351
|
+
this._dragChip && this._dragChip.classList.remove("mint-tags-chip-dragging"), this._syncOrderFromDom(), this._dragChip = null, this._dragIndex = null;
|
|
352
|
+
}
|
|
353
|
+
_syncOrderFromDom() {
|
|
354
|
+
if (!this._chipsWrap) return;
|
|
355
|
+
let e = Array.from(this._chipsWrap.querySelectorAll("mint-chip"));
|
|
356
|
+
if (e.length === 0) return;
|
|
357
|
+
let t = [];
|
|
358
|
+
e.forEach((e) => {
|
|
359
|
+
let n = e.dataset.value;
|
|
360
|
+
if (!n) return;
|
|
361
|
+
let r = this._tags.find((e) => e.value === n);
|
|
362
|
+
r && t.push(r);
|
|
363
|
+
}), t.length === this._tags.length && (this._tags = t, this._syncAttr(), this._renderChips(), this._emitChange());
|
|
364
|
+
}
|
|
365
|
+
_onPointerDown(e, t) {
|
|
366
|
+
if (this.hasAttribute("sortable") && e.pointerType !== "mouse") {
|
|
367
|
+
this._isPointerDragging = !0, this._dragChip = t, this._dragIndex = Number(t.dataset.index);
|
|
368
|
+
try {
|
|
369
|
+
t.setPointerCapture(e.pointerId);
|
|
370
|
+
} catch {}
|
|
371
|
+
t.classList.add("mint-tags-chip-dragging", "mint-tags-chip-no-select"), e.preventDefault();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
_onPointerMove(e) {
|
|
375
|
+
if (!this._isPointerDragging || !this._dragChip || !this._chipsWrap || e.pointerType === "mouse") return;
|
|
376
|
+
let t = document.elementFromPoint(e.clientX, e.clientY);
|
|
377
|
+
if (!t) return;
|
|
378
|
+
let n = t.closest("mint-chip");
|
|
379
|
+
if (n && n !== this._dragChip) {
|
|
380
|
+
let t = n.getBoundingClientRect();
|
|
381
|
+
if (e.clientX < t.left + t.width * .5) this._dragChip.nextSibling !== n && this._chipsWrap.insertBefore(this._dragChip, n);
|
|
382
|
+
else if (n.nextSibling !== this._dragChip) {
|
|
383
|
+
let e = n.nextSibling;
|
|
384
|
+
e ? this._chipsWrap.insertBefore(this._dragChip, e) : this._chipsWrap.appendChild(this._dragChip);
|
|
385
|
+
}
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
this._input && t.closest("input") === this._input && this._chipsWrap.insertBefore(this._dragChip, this._input);
|
|
389
|
+
}
|
|
390
|
+
_onPointerUp(e) {
|
|
391
|
+
if (this._isPointerDragging) {
|
|
392
|
+
if (this._isPointerDragging = !1, this._dragChip) {
|
|
393
|
+
try {
|
|
394
|
+
this._dragChip.releasePointerCapture(e.pointerId);
|
|
395
|
+
} catch {}
|
|
396
|
+
this._dragChip.classList.remove("mint-tags-chip-dragging", "mint-tags-chip-no-select");
|
|
397
|
+
}
|
|
398
|
+
this._syncOrderFromDom(), this._dragChip = null, this._dragIndex = null;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
customElements.get("mint-tags") || e("mint-tags", t);
|
|
403
|
+
//#endregion
|
|
404
|
+
export { t as default };
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type TextSize = 'heading' | 'sub-heading' | 'regular';
|
|
3
|
-
type DisplayType = 'block' | 'inline' | 'inline-block';
|
|
4
|
-
declare class MintText extends HTMLElement {
|
|
5
|
-
static get observedAttributes(): string[];
|
|
6
|
-
private _darkModeObserver;
|
|
7
|
-
private _userClasses;
|
|
8
|
-
constructor();
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
private _captureUserClasses;
|
|
11
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
12
|
-
disconnectedCallback(): void;
|
|
13
|
-
private _observeDarkMode;
|
|
14
|
-
getVariant(): TextVariant;
|
|
15
|
-
getSize(): TextSize;
|
|
16
|
-
isBold(): boolean;
|
|
17
|
-
isUnderline(): boolean;
|
|
18
|
-
isStrike(): boolean;
|
|
19
|
-
isItalic(): boolean;
|
|
20
|
-
getDisplay(): DisplayType;
|
|
21
|
-
getTextClasses(): string;
|
|
22
|
-
render(): void;
|
|
23
|
-
}
|
|
24
|
-
export default MintText;
|
|
25
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
1
|
+
export { MintText as default, MintText } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Text.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Text.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
const __mintLoadStyle = (key, url) => {
|
|
3
|
+
if (typeof document === 'undefined') return
|
|
4
|
+
const href = new URL(url, import.meta.url).href
|
|
5
|
+
if ([...document.querySelectorAll('link[rel="stylesheet"]')].some(link => link.href === href)) return
|
|
6
|
+
if (document.querySelector('style[data-mint-ui-style="' + key + '"]') || document.querySelector('link[data-mint-ui-style="' + key + '"]')) return
|
|
7
|
+
const link = document.createElement('link')
|
|
8
|
+
link.rel = 'stylesheet'
|
|
9
|
+
link.href = href
|
|
10
|
+
link.dataset.mintUiStyle = key
|
|
11
|
+
document.head.append(link)
|
|
12
|
+
}
|
|
13
|
+
__mintLoadStyle('theme', '../../theme.css')
|
|
14
|
+
__mintLoadStyle('text', '../../text.css')
|
|
15
|
+
import { t as e } from "../chunks/text-BHkEs8U5.js";
|
|
16
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunks/text-BmHZbBMo.js`);module.exports=e.t;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "index.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"index.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '../popover/index';
|
|
3
|
-
import '../text/index';
|
|
4
|
-
import '../icon/index';
|
|
5
|
-
import '../icon/icons/clock';
|
|
6
|
-
declare class MintTimePicker extends HTMLElement {
|
|
7
|
-
static get observedAttributes(): string[];
|
|
8
|
-
private _triggerId;
|
|
9
|
-
private _popover;
|
|
10
|
-
private _popoverObserver;
|
|
11
|
-
private _inputEl;
|
|
12
|
-
private _hiddenInput;
|
|
13
|
-
private _single;
|
|
14
|
-
private _rangeStart;
|
|
15
|
-
private _rangeEnd;
|
|
16
|
-
private _invalidFromInput;
|
|
17
|
-
connectedCallback(): void;
|
|
18
|
-
disconnectedCallback(): void;
|
|
19
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
20
|
-
get value(): string;
|
|
21
|
-
set value(newValue: string);
|
|
22
|
-
getValue(): string;
|
|
23
|
-
setValue(value: string): void;
|
|
24
|
-
private isRange;
|
|
25
|
-
private isHoursEnabled;
|
|
26
|
-
private isMinutesEnabled;
|
|
27
|
-
private isSecondsEnabled;
|
|
28
|
-
private isDisabled;
|
|
29
|
-
private isReadonly;
|
|
30
|
-
private isRequired;
|
|
31
|
-
private hasExternalError;
|
|
32
|
-
private getExternalErrorMessage;
|
|
33
|
-
private getLabel;
|
|
34
|
-
private getInfo;
|
|
35
|
-
private getName;
|
|
36
|
-
private _getEffectiveError;
|
|
37
|
-
private _formatParts;
|
|
38
|
-
private _to24Hour;
|
|
39
|
-
private _formatParts24;
|
|
40
|
-
private _getDisplayValue;
|
|
41
|
-
private _getOutputValue;
|
|
42
|
-
private _getExpectedFormat;
|
|
43
|
-
private _syncHiddenInput;
|
|
44
|
-
private _syncInputValue;
|
|
45
|
-
private _emitChangeFromPicker;
|
|
46
|
-
private _parseSingle;
|
|
47
|
-
private _parseSingleOutput24;
|
|
48
|
-
private _parseAndApplyValue;
|
|
49
|
-
private _parseAndApplyDisplayValue;
|
|
50
|
-
private _handleTypedValue;
|
|
51
|
-
private _buildColumn;
|
|
52
|
-
private _centerSelectedInColumn;
|
|
53
|
-
private _centerAllColumnsInPopoverBody;
|
|
54
|
-
private _setupPopoverOpenObserver;
|
|
55
|
-
private _buildPickerSet;
|
|
56
|
-
private _buildPopoverContent;
|
|
57
|
-
private _syncInputIconDarkModeTone;
|
|
58
|
-
render(): void;
|
|
59
|
-
}
|
|
60
|
-
export default MintTimePicker;
|
|
61
|
-
//# sourceMappingURL=TimePicker.d.ts.map
|
|
1
|
+
export { MintTimePicker as default, MintTimePicker } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "TimePicker.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"TimePicker.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|