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,328 @@
|
|
|
1
|
+
import '../../theme.css'
|
|
2
|
+
import '../../sortable.css'
|
|
3
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
4
|
+
//#region src/components/sortable/Sortable.ts
|
|
5
|
+
var t = "mint-sortable-placeholder", n = "mint-sortable-dragging", r = class extends HTMLElement {
|
|
6
|
+
static get observedAttributes() {
|
|
7
|
+
return [
|
|
8
|
+
"direction",
|
|
9
|
+
"gap",
|
|
10
|
+
"text-align",
|
|
11
|
+
"align-content",
|
|
12
|
+
"scroll-max-height",
|
|
13
|
+
"disabled",
|
|
14
|
+
"handle-selector",
|
|
15
|
+
"scroll-sensitivity",
|
|
16
|
+
"scroll-speed",
|
|
17
|
+
"animation-duration",
|
|
18
|
+
"item-key-attribute"
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
constructor() {
|
|
22
|
+
super(), this._pointerId = null, this._dragEl = null, this._placeholder = null, this._listRoot = this, this._startIndex = 0, this._pointerStartX = 0, this._pointerStartY = 0, this._dragStartLeft = 0, this._dragStartTop = 0, this._scrollRaf = null, this._childObserver = null, this._pointerBoundRoot = null, this._restoreAfter = null, this._sortStatus = null, this._keyboardKeydownHandler = (e) => this._onKeyboardReorder(e), this._onListPointerDown = (e) => {
|
|
23
|
+
let t = e;
|
|
24
|
+
if (this._isDisabled() || this._pointerId !== null || t.button !== 0) return;
|
|
25
|
+
let n = t.target;
|
|
26
|
+
if (!n || !this.contains(n)) return;
|
|
27
|
+
let r = this._closestSortableItem(n);
|
|
28
|
+
if (!r || !this._listRoot.contains(r) || r.hasAttribute("data-sortable-disabled")) return;
|
|
29
|
+
let i = this._getHandleSelector();
|
|
30
|
+
if (i) {
|
|
31
|
+
let e = t.target.closest(i);
|
|
32
|
+
if (!e || !r.contains(e)) return;
|
|
33
|
+
}
|
|
34
|
+
t.preventDefault(), this._startDrag(t, r);
|
|
35
|
+
}, this._boundPointerMove = this._onPointerMove.bind(this), this._boundPointerUp = this._onPointerUp.bind(this), this._boundPointerCancel = this._onPointerCancel.bind(this);
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
this.classList.add("mint-sortable"), this._syncInnerStackAttributes(), this._applyHostScrollAndLayout(), this.addEventListener("keydown", this._keyboardKeydownHandler), this._observeInnerStack();
|
|
39
|
+
}
|
|
40
|
+
disconnectedCallback() {
|
|
41
|
+
this._unobserveInnerStack(), this.removeEventListener("keydown", this._keyboardKeydownHandler), this._teardownDrag(), this._pointerBoundRoot &&= (this._pointerBoundRoot.removeEventListener("pointerdown", this._onListPointerDown), null);
|
|
42
|
+
}
|
|
43
|
+
attributeChangedCallback(e, t, n) {
|
|
44
|
+
t !== n && (this._syncInnerStackAttributes(), this._applyHostScrollAndLayout());
|
|
45
|
+
}
|
|
46
|
+
_observeInnerStack() {
|
|
47
|
+
this._childObserver || (this._childObserver = new MutationObserver(() => {
|
|
48
|
+
this._pointerId === null && (this._syncInnerStackAttributes(), this._applyHostScrollAndLayout());
|
|
49
|
+
}), this._childObserver.observe(this, { childList: !0 }));
|
|
50
|
+
}
|
|
51
|
+
_unobserveInnerStack() {
|
|
52
|
+
this._childObserver &&= (this._childObserver.disconnect(), null);
|
|
53
|
+
}
|
|
54
|
+
_getInnerStack() {
|
|
55
|
+
for (let e = 0; e < this.children.length; e++) {
|
|
56
|
+
let t = this.children[e];
|
|
57
|
+
if (t.nodeType === Node.ELEMENT_NODE && t.tagName === "MINT-STACK") return t;
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
_resolveListRoot() {
|
|
62
|
+
return this._getInnerStack() ?? this;
|
|
63
|
+
}
|
|
64
|
+
_getItemKeyAttribute() {
|
|
65
|
+
return this.getAttribute("item-key-attribute")?.trim() || "data-sortable-id";
|
|
66
|
+
}
|
|
67
|
+
_collectOrderedKeys() {
|
|
68
|
+
let e = this._resolveListRoot(), n = this._getItemKeyAttribute(), r = [];
|
|
69
|
+
for (let i = 0; i < e.children.length; i++) {
|
|
70
|
+
let a = e.children[i];
|
|
71
|
+
if (a.nodeType !== Node.ELEMENT_NODE) continue;
|
|
72
|
+
let o = a;
|
|
73
|
+
o.classList.contains(t) || o.hasAttribute("data-mint-sortable-status") || r.push(o.getAttribute(n) ?? "");
|
|
74
|
+
}
|
|
75
|
+
return r;
|
|
76
|
+
}
|
|
77
|
+
_syncInnerStackAttributes() {
|
|
78
|
+
let e = this._getInnerStack();
|
|
79
|
+
if (!e) return;
|
|
80
|
+
let t = this.getDirection(), n = this.getGap(), r = this.getTextAlign();
|
|
81
|
+
e.setAttribute("direction", t), e.setAttribute("gap", String(n)), r ? e.setAttribute("text-align", r) : e.removeAttribute("text-align");
|
|
82
|
+
let i = this.getAlignContent();
|
|
83
|
+
i ? e.setAttribute("align-content", i) : e.removeAttribute("align-content");
|
|
84
|
+
}
|
|
85
|
+
_applyHostScrollAndLayout() {
|
|
86
|
+
this._listRoot = this._resolveListRoot();
|
|
87
|
+
let e = this.getAttribute("scroll-max-height");
|
|
88
|
+
e ? (this.style.maxHeight = e, this.style.overflowY = "auto", this.style.overflowX = "hidden", this.classList.add("mint-sortable-scrollable")) : (this.style.maxHeight = "", this.style.overflowY = "", this.style.overflowX = "", this.classList.remove("mint-sortable-scrollable"));
|
|
89
|
+
let t = this._getInnerStack();
|
|
90
|
+
this.classList.toggle("mint-sortable-has-inner-stack", !!t);
|
|
91
|
+
let n = this.getDirection(), r = this.getAlignContent(), i = Math.min(12, Math.max(1, Math.round(this.getGap()))), a = this.getTextAlign();
|
|
92
|
+
this.style.setProperty("--mint-sortable-direction", n === "horizontal" ? "row" : "column"), this.style.setProperty("--mint-sortable-gap", `${i * .25}rem`), this.style.setProperty("--mint-sortable-text-align", a || "initial"), this.style.setProperty("--mint-sortable-button-justify", a === "left" ? "flex-start" : a === "right" ? "flex-end" : "center");
|
|
93
|
+
let o = r ? r === "left" ? "flex-start" : r === "right" ? "flex-end" : "center" : "", s = n === "vertical" && o || "stretch", c = n === "horizontal" && o || "flex-start";
|
|
94
|
+
this.style.setProperty("--mint-sortable-cross-align", s), this.style.setProperty("--mint-sortable-main-align", c), this._ensureListPointerBinding(), this._syncKeyboardAccessibility();
|
|
95
|
+
}
|
|
96
|
+
_syncKeyboardAccessibility() {
|
|
97
|
+
let e = this._resolveListRoot();
|
|
98
|
+
e.hasAttribute("role") || e.setAttribute("role", "list"), this._sortStatus || (this._sortStatus = document.createElement("div"), this._sortStatus.className = "mint-sortable-status", this._sortStatus.setAttribute("role", "status"), this._sortStatus.setAttribute("aria-live", "polite"), this._sortStatus.setAttribute("aria-atomic", "true"), this._sortStatus.setAttribute("data-mint-sortable-status", ""), this.appendChild(this._sortStatus)), this._getLayoutChildren().forEach((e) => {
|
|
99
|
+
e.classList.contains(t) || (e.hasAttribute("role") || e.setAttribute("role", "listitem"), e.hasAttribute("tabindex") || (e.tabIndex = 0), e.setAttribute("aria-keyshortcuts", "Alt+ArrowUp Alt+ArrowDown"), e.hasAttribute("aria-roledescription") || e.setAttribute("aria-roledescription", "sortable item"));
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
_onKeyboardReorder(e) {
|
|
103
|
+
if (this._isDisabled() || !e.altKey || !["ArrowUp", "ArrowDown"].includes(e.key)) return;
|
|
104
|
+
let n = e.target instanceof Element ? e.target : null, r = n ? this._closestSortableItem(n) : null;
|
|
105
|
+
if (!r || r.hasAttribute("data-sortable-disabled")) return;
|
|
106
|
+
let i = this._getLayoutChildren().filter((e) => !e.classList.contains(t)), a = i.indexOf(r), o = a + (e.key === "ArrowUp" ? -1 : 1);
|
|
107
|
+
if (a < 0 || o < 0 || o >= i.length) return;
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
let s = i[o];
|
|
110
|
+
e.key === "ArrowUp" ? this._listRoot.insertBefore(r, s) : this._listRoot.insertBefore(s, r), r.focus({ preventScroll: !0 });
|
|
111
|
+
let c = this._collectOrderedKeys(), l = this._indexOfItem(r), u = r.getAttribute("aria-label") || r.textContent?.trim().replace(/\s+/g, " ") || "Item";
|
|
112
|
+
this._sortStatus && (this._sortStatus.textContent = `${u} moved to position ${l + 1} of ${i.length}.`);
|
|
113
|
+
let d = {
|
|
114
|
+
oldIndex: a,
|
|
115
|
+
newIndex: l,
|
|
116
|
+
keys: c
|
|
117
|
+
};
|
|
118
|
+
this.dispatchEvent(new CustomEvent("mint-sortable-change", {
|
|
119
|
+
bubbles: !0,
|
|
120
|
+
composed: !0,
|
|
121
|
+
detail: d
|
|
122
|
+
})), this.dispatchEvent(new CustomEvent("mint-sortable-order", {
|
|
123
|
+
bubbles: !0,
|
|
124
|
+
composed: !0,
|
|
125
|
+
detail: { keys: c }
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
getDirection() {
|
|
129
|
+
return (this.getAttribute("direction") || "vertical") === "horizontal" ? "horizontal" : "vertical";
|
|
130
|
+
}
|
|
131
|
+
getGap() {
|
|
132
|
+
let e = this.getAttribute("gap") || "3", t = parseFloat(e);
|
|
133
|
+
return Number.isFinite(t) ? t : 3;
|
|
134
|
+
}
|
|
135
|
+
getTextAlign() {
|
|
136
|
+
let e = this.getAttribute("text-align") || "";
|
|
137
|
+
return [
|
|
138
|
+
"left",
|
|
139
|
+
"center",
|
|
140
|
+
"right",
|
|
141
|
+
"justify"
|
|
142
|
+
].includes(e) ? e : "";
|
|
143
|
+
}
|
|
144
|
+
getAlignContent() {
|
|
145
|
+
let e = (this.getAttribute("align-content") || "").trim().toLowerCase();
|
|
146
|
+
return e === "left" || e === "right" || e === "center" ? e : "";
|
|
147
|
+
}
|
|
148
|
+
_isDisabled() {
|
|
149
|
+
return this.hasAttribute("disabled") && this.getAttribute("disabled") !== "false";
|
|
150
|
+
}
|
|
151
|
+
_getHandleSelector() {
|
|
152
|
+
let e = this.getAttribute("handle-selector");
|
|
153
|
+
return e && e.trim() ? e.trim() : null;
|
|
154
|
+
}
|
|
155
|
+
_getScrollSensitivity() {
|
|
156
|
+
let e = parseFloat(this.getAttribute("scroll-sensitivity") || "48");
|
|
157
|
+
return Number.isFinite(e) ? e : 48;
|
|
158
|
+
}
|
|
159
|
+
_getScrollSpeed() {
|
|
160
|
+
let e = parseFloat(this.getAttribute("scroll-speed") || "12");
|
|
161
|
+
return Number.isFinite(e) ? e : 12;
|
|
162
|
+
}
|
|
163
|
+
_getAnimationDurationMs() {
|
|
164
|
+
let e = parseFloat(this.getAttribute("animation-duration") || "220");
|
|
165
|
+
return Number.isFinite(e) ? Math.max(0, e) : 220;
|
|
166
|
+
}
|
|
167
|
+
_ensureListPointerBinding() {
|
|
168
|
+
let e = this._resolveListRoot();
|
|
169
|
+
this._pointerBoundRoot !== e && (this._pointerBoundRoot && this._pointerBoundRoot.removeEventListener("pointerdown", this._onListPointerDown), e.addEventListener("pointerdown", this._onListPointerDown), this._pointerBoundRoot = e, this._listRoot = e);
|
|
170
|
+
}
|
|
171
|
+
_closestSortableItem(e) {
|
|
172
|
+
let r = e;
|
|
173
|
+
for (; r && r !== this._listRoot;) {
|
|
174
|
+
if (r.nodeType === Node.ELEMENT_NODE) {
|
|
175
|
+
let e = r;
|
|
176
|
+
if (e.classList.contains(t) || e.classList.contains(n)) return null;
|
|
177
|
+
if (r.parentElement === this._listRoot) return e;
|
|
178
|
+
}
|
|
179
|
+
r = r.parentElement;
|
|
180
|
+
}
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
_startDrag(e, r) {
|
|
184
|
+
this._listRoot = this._resolveListRoot(), this._restoreAfter = r.nextElementSibling, this._dragEl = r, this._pointerId = e.pointerId, this._startIndex = this._indexOfItem(r);
|
|
185
|
+
let i = r.getBoundingClientRect();
|
|
186
|
+
this._pointerStartX = e.clientX, this._pointerStartY = e.clientY, this._dragStartLeft = i.left, this._dragStartTop = i.top;
|
|
187
|
+
let a = document.createElement("div");
|
|
188
|
+
a.className = t, a.style.minHeight = `${i.height}px`, a.style.minWidth = `${i.width}px`, a.setAttribute("aria-hidden", "true"), this._placeholder = a, this._listRoot.insertBefore(a, r), r.classList.add(n), r.style.position = "fixed", r.style.left = `${i.left}px`, r.style.top = `${i.top}px`, r.style.width = `${i.width}px`, r.style.height = `${i.height}px`, r.style.margin = "0", r.style.zIndex = "10000", r.style.boxSizing = "border-box", r.style.pointerEvents = "none", r.style.touchAction = "none", r.style.willChange = "transform, left, top", r.setPointerCapture(e.pointerId);
|
|
189
|
+
let o = this._collectOrderedKeys(), s = {
|
|
190
|
+
index: this._startIndex,
|
|
191
|
+
keys: o
|
|
192
|
+
};
|
|
193
|
+
this.dispatchEvent(new CustomEvent("mint-sortable-start", {
|
|
194
|
+
bubbles: !0,
|
|
195
|
+
composed: !0,
|
|
196
|
+
detail: s
|
|
197
|
+
})), this.dispatchEvent(new CustomEvent("sort-start", {
|
|
198
|
+
bubbles: !0,
|
|
199
|
+
composed: !0,
|
|
200
|
+
detail: s
|
|
201
|
+
})), window.addEventListener("pointermove", this._boundPointerMove, { passive: !1 }), window.addEventListener("pointerup", this._boundPointerUp), window.addEventListener("pointercancel", this._boundPointerCancel);
|
|
202
|
+
}
|
|
203
|
+
_indexOfItem(e) {
|
|
204
|
+
let n = 0;
|
|
205
|
+
for (let r = 0; r < this._listRoot.children.length; r++) {
|
|
206
|
+
let i = this._listRoot.children[r];
|
|
207
|
+
if (i.nodeType !== Node.ELEMENT_NODE) continue;
|
|
208
|
+
let a = i;
|
|
209
|
+
if (!a.classList.contains(t)) {
|
|
210
|
+
if (a === e) return n;
|
|
211
|
+
n++;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return -1;
|
|
215
|
+
}
|
|
216
|
+
_getLayoutChildren() {
|
|
217
|
+
return Array.from(this._listRoot.children).filter((e) => e.nodeType === Node.ELEMENT_NODE && !e.hasAttribute("data-mint-sortable-status"));
|
|
218
|
+
}
|
|
219
|
+
_onPointerMove(e) {
|
|
220
|
+
if (e.pointerId !== this._pointerId || !this._dragEl || !this._placeholder) return;
|
|
221
|
+
e.preventDefault();
|
|
222
|
+
let t = e.clientX - this._pointerStartX, n = e.clientY - this._pointerStartY;
|
|
223
|
+
this._dragEl.style.left = `${this._dragStartLeft + t}px`, this._dragEl.style.top = `${this._dragStartTop + n}px`, this._autoScroll(e), this._maybeMovePlaceholder(e);
|
|
224
|
+
}
|
|
225
|
+
_autoScroll(e) {
|
|
226
|
+
let t = this;
|
|
227
|
+
if (!t.style.maxHeight) return;
|
|
228
|
+
let n = this._getScrollSensitivity(), r = this._getScrollSpeed(), i = t.getBoundingClientRect();
|
|
229
|
+
this._scrollRaf !== null && cancelAnimationFrame(this._scrollRaf), this._scrollRaf = requestAnimationFrame(() => {
|
|
230
|
+
this._scrollRaf = null;
|
|
231
|
+
let a = 0;
|
|
232
|
+
e.clientY < i.top + n ? a = -r : e.clientY > i.bottom - n && (a = r), a !== 0 && (t.scrollTop += a, this._maybeMovePlaceholder(e));
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
_maybeMovePlaceholder(e) {
|
|
236
|
+
let t = this._placeholder, n = this._dragEl;
|
|
237
|
+
if (!t || !n) return;
|
|
238
|
+
let r = this.getDirection() === "horizontal", i = r ? e.clientX : e.clientY, a = Array.from(this._listRoot.children).filter((e) => e.nodeType === Node.ELEMENT_NODE && e !== n && e !== t), o = null;
|
|
239
|
+
for (let e of a) {
|
|
240
|
+
let t = e.getBoundingClientRect();
|
|
241
|
+
if (i < (r ? t.left + t.width / 2 : t.top + t.height / 2)) {
|
|
242
|
+
o = e;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
let s = Array.from(this._listRoot.children).filter((e) => e.nodeType === Node.ELEMENT_NODE && e !== n), c = s.length > 0 && s[s.length - 1] === t;
|
|
247
|
+
(o ? !(t.nextSibling === o && t.parentNode === this._listRoot) : !c) && this._flipAnimate(() => {
|
|
248
|
+
o ? this._listRoot.insertBefore(t, o) : this._listRoot.appendChild(t);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
_flipAnimate(e) {
|
|
252
|
+
let t = this._dragEl, n = this._getAnimationDurationMs(), r = this._getLayoutChildren().filter((e) => e !== t), i = /* @__PURE__ */ new Map();
|
|
253
|
+
r.forEach((e) => i.set(e, e.getBoundingClientRect())), e(), !(n <= 0) && r.forEach((e) => {
|
|
254
|
+
let t = i.get(e);
|
|
255
|
+
if (!t) return;
|
|
256
|
+
let r = e.getBoundingClientRect(), a = t.left - r.left, o = t.top - r.top;
|
|
257
|
+
Math.abs(a) < .5 && Math.abs(o) < .5 || (e.style.transition = "none", e.style.transform = `translate(${a}px, ${o}px)`, requestAnimationFrame(() => {
|
|
258
|
+
e.style.transition = `transform ${n}ms cubic-bezier(0.2, 0.8, 0.2, 1)`, e.style.transform = "";
|
|
259
|
+
let t = () => {
|
|
260
|
+
e.removeEventListener("transitionend", t), e.style.transition = "", e.style.transform = "";
|
|
261
|
+
};
|
|
262
|
+
e.addEventListener("transitionend", t, { once: !0 }), setTimeout(t, n + 40);
|
|
263
|
+
}));
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
_onPointerUp(e) {
|
|
267
|
+
e.pointerId === this._pointerId && this._finishDrag(!1);
|
|
268
|
+
}
|
|
269
|
+
_onPointerCancel(e) {
|
|
270
|
+
e.pointerId === this._pointerId && this._finishDrag(!0);
|
|
271
|
+
}
|
|
272
|
+
_finishDrag(e) {
|
|
273
|
+
let t = this._dragEl, r = this._placeholder;
|
|
274
|
+
if (!t || this._pointerId === null) {
|
|
275
|
+
this._teardownDrag();
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
try {
|
|
279
|
+
t.releasePointerCapture(this._pointerId);
|
|
280
|
+
} catch {}
|
|
281
|
+
if (window.removeEventListener("pointermove", this._boundPointerMove), window.removeEventListener("pointerup", this._boundPointerUp), window.removeEventListener("pointercancel", this._boundPointerCancel), e) {
|
|
282
|
+
let e = this._restoreAfter;
|
|
283
|
+
e && e.parentNode === this._listRoot ? this._listRoot.insertBefore(t, e) : this._listRoot.appendChild(t);
|
|
284
|
+
} else r?.parentNode && this._listRoot.insertBefore(t, r);
|
|
285
|
+
r?.remove(), this._placeholder = null, t.classList.remove(n), t.style.cssText = "";
|
|
286
|
+
let i = this._indexOfItem(t), a = this._startIndex;
|
|
287
|
+
this._pointerId = null, this._dragEl = null, this._restoreAfter = null;
|
|
288
|
+
let o = this._collectOrderedKeys(), s = {
|
|
289
|
+
oldIndex: a,
|
|
290
|
+
newIndex: i,
|
|
291
|
+
cancelled: e,
|
|
292
|
+
keys: o
|
|
293
|
+
};
|
|
294
|
+
this.dispatchEvent(new CustomEvent("mint-sortable-end", {
|
|
295
|
+
bubbles: !0,
|
|
296
|
+
composed: !0,
|
|
297
|
+
detail: s
|
|
298
|
+
})), this.dispatchEvent(new CustomEvent("sort-stop", {
|
|
299
|
+
bubbles: !0,
|
|
300
|
+
composed: !0,
|
|
301
|
+
detail: s
|
|
302
|
+
})), !e && i !== a && (this.dispatchEvent(new CustomEvent("mint-sortable-change", {
|
|
303
|
+
bubbles: !0,
|
|
304
|
+
composed: !0,
|
|
305
|
+
detail: {
|
|
306
|
+
oldIndex: a,
|
|
307
|
+
newIndex: i,
|
|
308
|
+
keys: o
|
|
309
|
+
}
|
|
310
|
+
})), this.dispatchEvent(new CustomEvent("mint-sortable-order", {
|
|
311
|
+
bubbles: !0,
|
|
312
|
+
composed: !0,
|
|
313
|
+
detail: { keys: o }
|
|
314
|
+
})));
|
|
315
|
+
}
|
|
316
|
+
_teardownDrag() {
|
|
317
|
+
if (this._scrollRaf !== null && (cancelAnimationFrame(this._scrollRaf), this._scrollRaf = null), window.removeEventListener("pointermove", this._boundPointerMove), window.removeEventListener("pointerup", this._boundPointerUp), window.removeEventListener("pointercancel", this._boundPointerCancel), this._dragEl) {
|
|
318
|
+
try {
|
|
319
|
+
this._pointerId !== null && this._dragEl.releasePointerCapture(this._pointerId);
|
|
320
|
+
} catch {}
|
|
321
|
+
this._dragEl.classList.remove(n), this._dragEl.style.cssText = "";
|
|
322
|
+
}
|
|
323
|
+
this._placeholder?.remove(), this._placeholder = null, this._dragEl = null, this._pointerId = null, this._restoreAfter = null;
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
customElements.get("mint-sortable") || e("mint-sortable", r);
|
|
327
|
+
//#endregion
|
|
328
|
+
export { r as default };
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
static get observedAttributes(): string[];
|
|
3
|
-
private _darkModeObserver;
|
|
4
|
-
constructor();
|
|
5
|
-
connectedCallback(): void;
|
|
6
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
7
|
-
disconnectedCallback(): void;
|
|
8
|
-
private _observeDarkMode;
|
|
9
|
-
getSize(): string;
|
|
10
|
-
render(): void;
|
|
11
|
-
}
|
|
12
|
-
export default MintSpinner;
|
|
13
|
-
//# sourceMappingURL=Spinner.d.ts.map
|
|
1
|
+
export { MintSpinner as default, MintSpinner } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Spinner.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Spinner.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('spinner', '../../spinner.css')
|
|
15
|
+
import { t as e } from "../chunks/spinner-BsaFHuS6.js";
|
|
16
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunks/spinner-DbTohC6i.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,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
3
|
-
type StackAlignContent = 'start' | 'end' | 'middle';
|
|
4
|
-
declare class MintStack extends HTMLElement {
|
|
5
|
-
static get observedAttributes(): string[];
|
|
6
|
-
private _childObserver;
|
|
7
|
-
constructor();
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
10
|
-
private _observeChildren;
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
-
getDirection(): StackDirection;
|
|
13
|
-
getGap(): number;
|
|
14
|
-
getTextAlign(): TextAlign | '';
|
|
15
|
-
/** Cross-axis alignment for vertical stacks; main-axis for horizontal (maps to items-* / justify-*). */
|
|
16
|
-
getAlignContent(): StackAlignContent | '';
|
|
17
|
-
getStackClasses(): string;
|
|
18
|
-
render(): void;
|
|
19
|
-
private _applyTextAlignToChildren;
|
|
20
|
-
private _removeTextAlignFromChildren;
|
|
21
|
-
}
|
|
22
|
-
export default MintStack;
|
|
23
|
-
//# sourceMappingURL=Stack.d.ts.map
|
|
1
|
+
export { MintStack as default, MintStack } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Stack.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Stack.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('stack', '../../stack.css')
|
|
15
|
+
import { t as e } from "../chunks/stack-DyQfjPDh.js";
|
|
16
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunks/stack-D1uh4L79.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,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare class MintSwitch extends HTMLElement {
|
|
3
|
-
static get observedAttributes(): string[];
|
|
4
|
-
private _button;
|
|
5
|
-
private _checked;
|
|
6
|
-
private _hasUserToggled;
|
|
7
|
-
constructor();
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
private _getSwitchContainer;
|
|
10
|
-
disconnectedCallback(): void;
|
|
11
|
-
isLoading(): boolean;
|
|
12
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
13
|
-
get checked(): boolean;
|
|
14
|
-
set checked(value: boolean);
|
|
15
|
-
isDisabled(): boolean;
|
|
16
|
-
getLabel(): string;
|
|
17
|
-
getInfo(): string;
|
|
18
|
-
getIcon(): string;
|
|
19
|
-
hasIcon(): boolean;
|
|
20
|
-
hasError(): boolean;
|
|
21
|
-
getErrorMessage(): string;
|
|
22
|
-
getSwitchClasses(): string;
|
|
23
|
-
getThumbClasses(): string;
|
|
24
|
-
getIconClasses(): string;
|
|
25
|
-
render(): void;
|
|
26
|
-
setupEventListeners(): void;
|
|
27
|
-
removeEventListeners(): void;
|
|
28
|
-
handleToggle(event: Event): void;
|
|
29
|
-
private _renderSkeleton;
|
|
30
|
-
private _renderErrorState;
|
|
31
|
-
}
|
|
32
|
-
export default MintSwitch;
|
|
33
|
-
//# sourceMappingURL=Switch.d.ts.map
|
|
1
|
+
export { MintSwitch as default, MintSwitch } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Switch.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Switch.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|