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,454 @@
|
|
|
1
|
+
import '../../theme.css'
|
|
2
|
+
import '../../icon.css'
|
|
3
|
+
import '../../text.css'
|
|
4
|
+
import '../../popover.css'
|
|
5
|
+
import '../../stack.css'
|
|
6
|
+
import '../../side-navigation.css'
|
|
7
|
+
import "../chunks/icon-gQAtsERy.js";
|
|
8
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
9
|
+
import "../chunks/icon-C0OLmjDY.js";
|
|
10
|
+
import "../chunks/text-BHkEs8U5.js";
|
|
11
|
+
import "../chunks/caret-right-CVOgr4nk.js";
|
|
12
|
+
import "../chunks/caret-down-Ch6IfR7r.js";
|
|
13
|
+
import "../chunks/popover-gviDCspV.js";
|
|
14
|
+
//#region src/components/side-navigation/SideNavigationLink.ts
|
|
15
|
+
var t = class extends HTMLElement {
|
|
16
|
+
constructor(...e) {
|
|
17
|
+
super(...e), this._trigger = null, this._submenuContainer = null, this._contentObserver = null, this._renderFrame = null;
|
|
18
|
+
}
|
|
19
|
+
static get observedAttributes() {
|
|
20
|
+
return [
|
|
21
|
+
"label",
|
|
22
|
+
"icon",
|
|
23
|
+
"href",
|
|
24
|
+
"active",
|
|
25
|
+
"expanded",
|
|
26
|
+
"submenu-item"
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
this.render(), this._observeSubmenuMutations();
|
|
31
|
+
}
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
this._contentObserver &&= (this._contentObserver.disconnect(), null), this._renderFrame !== null && (cancelAnimationFrame(this._renderFrame), this._renderFrame = null);
|
|
34
|
+
}
|
|
35
|
+
attributeChangedCallback(e, t, n) {
|
|
36
|
+
t !== n && (this.render(), e === "active" && this._isSubmenuItem() && this._refreshDropdownAncestor());
|
|
37
|
+
}
|
|
38
|
+
_scheduleRender() {
|
|
39
|
+
this._renderFrame === null && (this._renderFrame = requestAnimationFrame(() => {
|
|
40
|
+
this._renderFrame = null, this.render();
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
_observeSubmenuMutations() {
|
|
44
|
+
this._contentObserver ||= new MutationObserver((e) => {
|
|
45
|
+
e.some((e) => [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].some((e) => e instanceof HTMLElement && e.getAttribute("slot") === "submenu")) && this._scheduleRender();
|
|
46
|
+
}), this._contentObserver.disconnect(), this._contentObserver.observe(this, {
|
|
47
|
+
childList: !0,
|
|
48
|
+
attributes: !0,
|
|
49
|
+
attributeFilter: ["slot"],
|
|
50
|
+
subtree: !1
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
_refreshDropdownAncestor() {
|
|
54
|
+
let e = this.parentElement;
|
|
55
|
+
for (; e;) {
|
|
56
|
+
if (e.tagName === "MINT-SIDENAV-LINK" && e !== this) {
|
|
57
|
+
e.render();
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
e = e.parentElement;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
_isActive() {
|
|
64
|
+
return this.getAttribute("active") === "true";
|
|
65
|
+
}
|
|
66
|
+
_isExpanded() {
|
|
67
|
+
return this.getAttribute("expanded") === "true";
|
|
68
|
+
}
|
|
69
|
+
_isSubmenuPanelVisible() {
|
|
70
|
+
return this._isExpanded() || this._isActive();
|
|
71
|
+
}
|
|
72
|
+
_isSubmenuItem() {
|
|
73
|
+
return this.getAttribute("submenu-item") === "true";
|
|
74
|
+
}
|
|
75
|
+
_getLabel() {
|
|
76
|
+
return this.getAttribute("label") || "";
|
|
77
|
+
}
|
|
78
|
+
_getIcon() {
|
|
79
|
+
return this.getAttribute("icon") || "";
|
|
80
|
+
}
|
|
81
|
+
_getHref() {
|
|
82
|
+
return this.getAttribute("href");
|
|
83
|
+
}
|
|
84
|
+
_getBaseClasses() {
|
|
85
|
+
return `mint-sidenav-link-control${this._isActive() ? " is-active" : ""}${this._isSubmenuItem() ? " is-submenu-item" : ""}`;
|
|
86
|
+
}
|
|
87
|
+
_hasSubmenu() {
|
|
88
|
+
return this.querySelectorAll(":scope > [slot=\"submenu\"]").length > 0 ? !0 : !!this._submenuContainer && this._submenuContainer.children.length > 0;
|
|
89
|
+
}
|
|
90
|
+
_createRow(e, t) {
|
|
91
|
+
let n = document.createElement("span");
|
|
92
|
+
if (n.className = "mint-sidenav-link-row", t) {
|
|
93
|
+
let e = document.createElement("mint-icon");
|
|
94
|
+
e.setAttribute("name", t), e.className = "mint-sidenav-link-icon", e.setAttribute("aria-hidden", "true"), n.appendChild(e);
|
|
95
|
+
}
|
|
96
|
+
let r = document.createElement("span");
|
|
97
|
+
return r.className = "mint-sidenav-link-label", r.textContent = e, n.appendChild(r), n;
|
|
98
|
+
}
|
|
99
|
+
_buildSimpleLink() {
|
|
100
|
+
let e = this._getHref(), t = this._getLabel(), n = this._getIcon(), r = e ? document.createElement("a") : document.createElement("button");
|
|
101
|
+
e ? r.setAttribute("href", e) : r.setAttribute("type", "button"), r.className = this._getBaseClasses(), r.setAttribute("aria-label", t || "Side navigation link"), r.appendChild(this._createRow(t, n)), this.replaceChildren(r), this._trigger = r;
|
|
102
|
+
}
|
|
103
|
+
_emitAccordionExpand() {
|
|
104
|
+
this.dispatchEvent(new CustomEvent("mint-sidenav-accordion", {
|
|
105
|
+
bubbles: !0,
|
|
106
|
+
composed: !0,
|
|
107
|
+
detail: { source: this }
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
_setExpanded(e, t) {
|
|
111
|
+
this.setAttribute("expanded", String(e)), e && t && this._emitAccordionExpand();
|
|
112
|
+
}
|
|
113
|
+
_buildDropdownLink() {
|
|
114
|
+
let e = this._getLabel(), t = this._getIcon(), n = this._getHref(), r = Array.from(this.querySelectorAll(":scope > [slot=\"submenu\"]")), i = r.length > 0 ? r : this._submenuContainer ? Array.from(this._submenuContainer.children) : [], a = document.createElement("div");
|
|
115
|
+
a.className = "mint-sidenav-dropdown", this._submenuContainer = document.createElement("div"), this._submenuContainer.id = `mint-sidenav-submenu-${Math.random().toString(36).slice(2, 11)}`;
|
|
116
|
+
let o = this._submenuContainer.id;
|
|
117
|
+
if (this._submenuContainer.className = `mint-sidenav-submenu${this._isSubmenuPanelVisible() ? " is-expanded" : ""}`, i.forEach((e) => {
|
|
118
|
+
e.setAttribute("submenu-item", "true"), e.setAttribute("slot", "submenu"), this._submenuContainer?.appendChild(e);
|
|
119
|
+
}), n) {
|
|
120
|
+
let r = document.createElement("div");
|
|
121
|
+
r.className = "mint-sidenav-link-row-wrap";
|
|
122
|
+
let i = document.createElement("a");
|
|
123
|
+
i.setAttribute("href", n), i.className = `${this._getBaseClasses()} mint-sidenav-desktop-link`, i.setAttribute("aria-expanded", String(this._isSubmenuPanelVisible())), i.setAttribute("aria-controls", o), this._isActive() ? i.setAttribute("aria-current", "page") : i.removeAttribute("aria-current"), i.appendChild(this._createRow(e, t)), i.addEventListener("click", () => {
|
|
124
|
+
this._setExpanded(!0, !0);
|
|
125
|
+
});
|
|
126
|
+
let s = document.createElement("a");
|
|
127
|
+
s.setAttribute("href", n), s.className = `${this._getBaseClasses()} mint-sidenav-mobile-link`, s.setAttribute("aria-controls", o), s.appendChild(this._createRow(e, t)), this._isActive() ? s.setAttribute("aria-current", "page") : s.removeAttribute("aria-current");
|
|
128
|
+
let c = document.createElement("button");
|
|
129
|
+
c.type = "button", c.className = "mint-sidenav-mobile-toggle", c.setAttribute("aria-label", `Toggle ${e} submenu`), c.setAttribute("aria-expanded", String(this._isSubmenuPanelVisible())), c.setAttribute("aria-controls", o), c.addEventListener("click", (e) => {
|
|
130
|
+
e.preventDefault(), e.stopPropagation();
|
|
131
|
+
let t = !this._isExpanded();
|
|
132
|
+
this._setExpanded(t, t);
|
|
133
|
+
});
|
|
134
|
+
let l = document.createElement("mint-icon");
|
|
135
|
+
l.setAttribute("name", "caret-down"), l.className = `mint-sidenav-dropdown-caret${this._isSubmenuPanelVisible() ? " is-expanded" : ""}`, l.setAttribute("aria-hidden", "true"), c.appendChild(l), r.appendChild(i), r.appendChild(s), r.appendChild(c), a.appendChild(r), this._trigger = i;
|
|
136
|
+
} else {
|
|
137
|
+
let n = document.createElement("button");
|
|
138
|
+
n.type = "button", n.className = this._getBaseClasses(), n.setAttribute("aria-expanded", String(this._isSubmenuPanelVisible())), n.setAttribute("aria-controls", o), n.appendChild(this._createRow(e, t)), n.onclick = () => {
|
|
139
|
+
let e = !this._isExpanded();
|
|
140
|
+
this._setExpanded(e, e);
|
|
141
|
+
}, a.appendChild(n), this._trigger = n;
|
|
142
|
+
}
|
|
143
|
+
a.appendChild(this._submenuContainer), this.replaceChildren(a);
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
this._hasSubmenu() && !this._isSubmenuItem() ? this._buildDropdownLink() : this._buildSimpleLink();
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
customElements.get("mint-sidenav-link") || e("mint-sidenav-link", t);
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/side-navigation/SideNavigationLinks.ts
|
|
152
|
+
var n = class extends HTMLElement {
|
|
153
|
+
constructor(...e) {
|
|
154
|
+
super(...e), this._container = null, this._title = null, this._titleLabel = null, this._titleCaret = null, this._titleIsInteractive = null, this._list = null, this._titleClickHandler = null, this._listenerCounts = /* @__PURE__ */ new Map();
|
|
155
|
+
}
|
|
156
|
+
static get observedAttributes() {
|
|
157
|
+
return ["name"];
|
|
158
|
+
}
|
|
159
|
+
get onMintNameClick() {
|
|
160
|
+
return this._onMintNameClick;
|
|
161
|
+
}
|
|
162
|
+
set onMintNameClick(e) {
|
|
163
|
+
this._onMintNameClick = e, this.render();
|
|
164
|
+
}
|
|
165
|
+
addEventListener(e, t, n) {
|
|
166
|
+
super.addEventListener(e, t, n), this._trackListener(e, 1);
|
|
167
|
+
}
|
|
168
|
+
removeEventListener(e, t, n) {
|
|
169
|
+
super.removeEventListener(e, t, n), this._trackListener(e, -1);
|
|
170
|
+
}
|
|
171
|
+
connectedCallback() {
|
|
172
|
+
this.render();
|
|
173
|
+
}
|
|
174
|
+
disconnectedCallback() {
|
|
175
|
+
this._title instanceof HTMLButtonElement && this._titleClickHandler && this._title.removeEventListener("click", this._titleClickHandler);
|
|
176
|
+
}
|
|
177
|
+
attributeChangedCallback(e, t, n) {
|
|
178
|
+
t !== n && this.render();
|
|
179
|
+
}
|
|
180
|
+
_getName() {
|
|
181
|
+
return this.getAttribute("name") || "";
|
|
182
|
+
}
|
|
183
|
+
_trackListener(e, t) {
|
|
184
|
+
if (e !== "mint-name-click") return;
|
|
185
|
+
let n = this._listenerCounts.get(e) || 0, r = Math.max(0, n + t);
|
|
186
|
+
this._listenerCounts.set(e, r), this.render();
|
|
187
|
+
}
|
|
188
|
+
_isNameInteractive() {
|
|
189
|
+
return (this._listenerCounts.get("mint-name-click") || 0) > 0 || typeof this._onMintNameClick == "function";
|
|
190
|
+
}
|
|
191
|
+
_emitNameClick(e) {
|
|
192
|
+
let t = new CustomEvent("mint-name-click", {
|
|
193
|
+
detail: {
|
|
194
|
+
name: this._getName(),
|
|
195
|
+
originalEvent: e
|
|
196
|
+
},
|
|
197
|
+
bubbles: !0,
|
|
198
|
+
composed: !0
|
|
199
|
+
});
|
|
200
|
+
this.dispatchEvent(t), typeof this._onMintNameClick == "function" && this._onMintNameClick(t);
|
|
201
|
+
}
|
|
202
|
+
render() {
|
|
203
|
+
this._container || (this._container = document.createElement("section"), this._container.className = "mint-sidenav-link-group", this.appendChild(this._container));
|
|
204
|
+
let e = this._getName(), t = e.trim().length > 0, n = this._isNameInteractive();
|
|
205
|
+
if (!this._title || this._titleIsInteractive !== n) {
|
|
206
|
+
this._title instanceof HTMLButtonElement && this._titleClickHandler && this._title.removeEventListener("click", this._titleClickHandler);
|
|
207
|
+
let e = n ? document.createElement("button") : document.createElement("div");
|
|
208
|
+
e instanceof HTMLButtonElement ? (e.type = "button", this._titleClickHandler = (e) => this._emitNameClick(e), e.addEventListener("click", this._titleClickHandler)) : (e.setAttribute("role", "heading"), e.setAttribute("aria-level", "3"), this._titleClickHandler = null), e.className = `mint-sidenav-group-trigger${n ? " is-interactive" : ""}`, this._titleLabel = document.createElement("mint-text"), this._titleLabel.setAttribute("size", "small"), this._titleLabel.setAttribute("bold", "true"), this._titleLabel.className = n ? "mint-sidenav-group-label is-interactive" : "mint-sidenav-group-label", e.appendChild(this._titleLabel), this._titleCaret = null, n && (this._titleCaret = document.createElement("mint-icon"), this._titleCaret.setAttribute("name", "caret-right"), this._titleCaret.className = "mint-sidenav-group-caret", this._titleCaret.setAttribute("aria-hidden", "true"), e.appendChild(this._titleCaret)), this._title?.parentElement === this._container ? this._container.replaceChild(e, this._title) : this._container.appendChild(e), this._title = e, this._titleIsInteractive = n;
|
|
209
|
+
}
|
|
210
|
+
this._titleLabel && (this._titleLabel.textContent = e, this._titleLabel.className = n ? "mint-sidenav-group-label is-interactive" : "mint-sidenav-group-label"), this._title && (this._title.className = `mint-sidenav-group-trigger${n ? " is-interactive" : ""}`), t ? this._title.parentElement !== this._container && this._container?.insertBefore(this._title, this._list) : this._title.parentElement === this._container && this._container?.removeChild(this._title), this._list || (this._list = document.createElement("div"), this._list.className = "mint-sidenav-link-list", this._container.appendChild(this._list)), Array.from(this.children).filter((e) => e !== this._container && e.tagName === "MINT-SIDENAV-LINK").forEach((e) => {
|
|
211
|
+
this._list && e.parentElement !== this._list && this._list.appendChild(e);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
customElements.get("mint-sidenav-links") || e("mint-sidenav-links", n);
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/components/side-navigation/SideNavigationActionLinks.ts
|
|
218
|
+
var r = class extends HTMLElement {
|
|
219
|
+
static get observedAttributes() {
|
|
220
|
+
return ["separated"];
|
|
221
|
+
}
|
|
222
|
+
connectedCallback() {
|
|
223
|
+
this.render();
|
|
224
|
+
}
|
|
225
|
+
attributeChangedCallback(e, t, n) {
|
|
226
|
+
t !== n && this.render();
|
|
227
|
+
}
|
|
228
|
+
_isSeparated() {
|
|
229
|
+
return this.getAttribute("separated") === "true";
|
|
230
|
+
}
|
|
231
|
+
render() {
|
|
232
|
+
this.className = this._isSeparated() ? "mint-sidenav-action-links is-separated" : "mint-sidenav-action-links";
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
customElements.get("mint-sidenav-action-links") || e("mint-sidenav-action-links", r);
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/components/side-navigation/SideNavigationActionMenu.ts
|
|
238
|
+
var i = class extends HTMLElement {
|
|
239
|
+
constructor(...e) {
|
|
240
|
+
super(...e), this._wrapper = null, this._trigger = null, this._popover = null, this._triggerId = "", this._contentObserver = null, this._renderFrame = null;
|
|
241
|
+
}
|
|
242
|
+
static get observedAttributes() {
|
|
243
|
+
return ["title", "subtitle"];
|
|
244
|
+
}
|
|
245
|
+
connectedCallback() {
|
|
246
|
+
this._triggerId = this.id ? `${this.id}-trigger` : `mint-sidenav-action-menu-${Math.random().toString(36).slice(2, 9)}`, this.render(), this._observeContentMutations();
|
|
247
|
+
}
|
|
248
|
+
disconnectedCallback() {
|
|
249
|
+
this._contentObserver &&= (this._contentObserver.disconnect(), null), this._renderFrame !== null && (cancelAnimationFrame(this._renderFrame), this._renderFrame = null);
|
|
250
|
+
}
|
|
251
|
+
attributeChangedCallback(e, t, n) {
|
|
252
|
+
t !== n && this.render();
|
|
253
|
+
}
|
|
254
|
+
_scheduleRender() {
|
|
255
|
+
this._renderFrame === null && (this._renderFrame = requestAnimationFrame(() => {
|
|
256
|
+
this._renderFrame = null, this.render();
|
|
257
|
+
}));
|
|
258
|
+
}
|
|
259
|
+
_observeContentMutations() {
|
|
260
|
+
this._contentObserver ||= new MutationObserver(() => {
|
|
261
|
+
this._scheduleRender();
|
|
262
|
+
}), this._contentObserver.disconnect(), this._contentObserver.observe(this, {
|
|
263
|
+
childList: !0,
|
|
264
|
+
attributes: !0,
|
|
265
|
+
attributeFilter: ["slot"]
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
_getTitle() {
|
|
269
|
+
return this.getAttribute("title") || "";
|
|
270
|
+
}
|
|
271
|
+
_getSubtitle() {
|
|
272
|
+
return this.getAttribute("subtitle") || "";
|
|
273
|
+
}
|
|
274
|
+
_createDefaultGroup() {
|
|
275
|
+
let e = document.createElement("mint-sidenav-action-links"), t = document.createElement("div");
|
|
276
|
+
return t.appendChild(e), t;
|
|
277
|
+
}
|
|
278
|
+
render() {
|
|
279
|
+
let e = Array.from(this.children).filter((e) => e !== this._wrapper && e.getAttribute("slot") === "action-links");
|
|
280
|
+
this._wrapper || (this._wrapper = document.createElement("div"), this._wrapper.className = "mint-sidenav-action-menu-wrap", this.appendChild(this._wrapper)), this._wrapper.innerHTML = "", this._trigger = document.createElement("button"), this._trigger.type = "button", this._trigger.id = this._triggerId, this._trigger.className = "mint-sidenav-action-trigger";
|
|
281
|
+
let t = document.createElement("div");
|
|
282
|
+
t.className = "mint-sidenav-avatar", t.textContent = this._getTitle().split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase();
|
|
283
|
+
let n = document.createElement("div");
|
|
284
|
+
n.className = "mint-sidenav-action-text";
|
|
285
|
+
let r = document.createElement("mint-text");
|
|
286
|
+
r.setAttribute("size", "body"), r.setAttribute("bold", "true"), r.className = "mint-sidenav-action-title", r.textContent = this._getTitle();
|
|
287
|
+
let i = document.createElement("mint-text");
|
|
288
|
+
i.setAttribute("size", "small"), i.setAttribute("variant", "muted"), i.className = "mint-sidenav-action-subtitle", i.textContent = this._getSubtitle(), n.appendChild(r), n.appendChild(i), this._trigger.appendChild(t), this._trigger.appendChild(n), this._popover = document.createElement("mint-popover"), this._popover.setAttribute("trigger-id", this._triggerId), this._popover.setAttribute("direction", "right"), this._popover.setAttribute("padding", "0");
|
|
289
|
+
let a = document.createElement("div");
|
|
290
|
+
a.className = "mint-sidenav-action-menu-content", e.length > 0 ? e.forEach((e) => {
|
|
291
|
+
let t = e;
|
|
292
|
+
t.setAttribute("hidden", "true"), t.style.display = "none";
|
|
293
|
+
let n = t.cloneNode(!0);
|
|
294
|
+
n.removeAttribute("hidden"), n.style.removeProperty("display"), n.removeAttribute("slot"), [...n.matches("mint-button") ? [n] : [], ...Array.from(n.querySelectorAll("mint-button"))].forEach((e) => {
|
|
295
|
+
let t = e.querySelector(":scope > button");
|
|
296
|
+
for (; t;) {
|
|
297
|
+
let e = t.querySelector("button");
|
|
298
|
+
if (!e) break;
|
|
299
|
+
e.replaceWith(...Array.from(e.childNodes));
|
|
300
|
+
}
|
|
301
|
+
}), a.appendChild(n);
|
|
302
|
+
}) : a.appendChild(this._createDefaultGroup()), this._popover.appendChild(a), this._wrapper.appendChild(this._trigger), this._wrapper.appendChild(this._popover);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
customElements.get("mint-sidenav-action-menu") || e("mint-sidenav-action-menu", i);
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/components/side-navigation/SideNavigation.ts
|
|
308
|
+
var a = "mint:url-change";
|
|
309
|
+
function o() {
|
|
310
|
+
if (window.__mintUrlChangePatched) return;
|
|
311
|
+
window.__mintUrlChangePatched = !0;
|
|
312
|
+
let e = () => {
|
|
313
|
+
window.dispatchEvent(new Event(a));
|
|
314
|
+
}, t = (t) => {
|
|
315
|
+
let n = history[t].bind(history);
|
|
316
|
+
history[t] = ((...t) => {
|
|
317
|
+
let r = n(...t);
|
|
318
|
+
return e(), r;
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
t("pushState"), t("replaceState");
|
|
322
|
+
}
|
|
323
|
+
var s = class extends HTMLElement {
|
|
324
|
+
constructor(...e) {
|
|
325
|
+
super(...e), this._backdrop = null, this._container = null, this._header = null, this._content = null, this._footer = null, this._escapeHandler = null, this._mediaQuery = null, this._mediaListener = null, this._accordionHandler = null, this._urlChangeHandler = null, this._contentObserver = null, this._renderFrame = null, this._onMobileNavNavigateClick = (e) => {
|
|
326
|
+
if (this._mediaQuery?.matches) return;
|
|
327
|
+
let t = e.target;
|
|
328
|
+
if (!(t instanceof Element)) return;
|
|
329
|
+
let n = t.closest("a[href]");
|
|
330
|
+
if (!(n instanceof HTMLAnchorElement) || !this._container?.contains(n)) return;
|
|
331
|
+
let r = n.getAttribute("href");
|
|
332
|
+
!r || r === "#" || r.trim().toLowerCase().startsWith("javascript:") || this._isOpen() && this.removeAttribute("open");
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
static get observedAttributes() {
|
|
336
|
+
return [
|
|
337
|
+
"user-name",
|
|
338
|
+
"user-status",
|
|
339
|
+
"open",
|
|
340
|
+
"drawer-top-class",
|
|
341
|
+
"preview"
|
|
342
|
+
];
|
|
343
|
+
}
|
|
344
|
+
connectedCallback() {
|
|
345
|
+
this._attachEscapeListener(), this._attachMediaListener(), this._attachAccordionListener(), this._attachUrlChangeListener(), this._observeContentMutations(), this.render();
|
|
346
|
+
}
|
|
347
|
+
disconnectedCallback() {
|
|
348
|
+
this._detachEscapeListener(), this._detachMediaListener(), this._detachAccordionListener(), this._detachUrlChangeListener(), this._contentObserver &&= (this._contentObserver.disconnect(), null), this._renderFrame !== null && (cancelAnimationFrame(this._renderFrame), this._renderFrame = null);
|
|
349
|
+
}
|
|
350
|
+
attributeChangedCallback(e, t, n) {
|
|
351
|
+
t !== n && this.render();
|
|
352
|
+
}
|
|
353
|
+
_scheduleRender() {
|
|
354
|
+
this._renderFrame === null && (this._renderFrame = requestAnimationFrame(() => {
|
|
355
|
+
this._renderFrame = null, this.render();
|
|
356
|
+
}));
|
|
357
|
+
}
|
|
358
|
+
_attachEscapeListener() {
|
|
359
|
+
this._escapeHandler || (this._escapeHandler = (e) => {
|
|
360
|
+
e.key === "Escape" && this.getAttribute("open") === "true" && this.removeAttribute("open");
|
|
361
|
+
}, document.addEventListener("keydown", this._escapeHandler));
|
|
362
|
+
}
|
|
363
|
+
_detachEscapeListener() {
|
|
364
|
+
this._escapeHandler &&= (document.removeEventListener("keydown", this._escapeHandler), null);
|
|
365
|
+
}
|
|
366
|
+
_attachMediaListener() {
|
|
367
|
+
this._mediaListener || (this._mediaQuery = window.matchMedia("(min-width: 1100px)"), this._mediaListener = () => {
|
|
368
|
+
this._mediaQuery?.matches && this.removeAttribute("open");
|
|
369
|
+
}, this._mediaQuery.addEventListener("change", this._mediaListener));
|
|
370
|
+
}
|
|
371
|
+
_detachMediaListener() {
|
|
372
|
+
this._mediaQuery && this._mediaListener && this._mediaQuery.removeEventListener("change", this._mediaListener), this._mediaQuery = null, this._mediaListener = null;
|
|
373
|
+
}
|
|
374
|
+
_attachAccordionListener() {
|
|
375
|
+
this._accordionHandler || (this._accordionHandler = (e) => {
|
|
376
|
+
let t = e.detail?.source;
|
|
377
|
+
!(t instanceof HTMLElement) || t.tagName !== "MINT-SIDENAV-LINK" || this.contains(t) && this.querySelectorAll("mint-sidenav-link").forEach((e) => {
|
|
378
|
+
e !== t && e.querySelector(":scope .mint-sidenav-submenu") && e.setAttribute("expanded", "false");
|
|
379
|
+
});
|
|
380
|
+
}, this.addEventListener("mint-sidenav-accordion", this._accordionHandler));
|
|
381
|
+
}
|
|
382
|
+
_detachAccordionListener() {
|
|
383
|
+
this._accordionHandler &&= (this.removeEventListener("mint-sidenav-accordion", this._accordionHandler), null);
|
|
384
|
+
}
|
|
385
|
+
_attachUrlChangeListener() {
|
|
386
|
+
this._urlChangeHandler || (o(), this._urlChangeHandler = () => {
|
|
387
|
+
this._mediaQuery?.matches || this._isOpen() && this.removeAttribute("open");
|
|
388
|
+
}, window.addEventListener("popstate", this._urlChangeHandler), window.addEventListener("hashchange", this._urlChangeHandler), window.addEventListener(a, this._urlChangeHandler));
|
|
389
|
+
}
|
|
390
|
+
_detachUrlChangeListener() {
|
|
391
|
+
this._urlChangeHandler &&= (window.removeEventListener("popstate", this._urlChangeHandler), window.removeEventListener("hashchange", this._urlChangeHandler), window.removeEventListener(a, this._urlChangeHandler), null);
|
|
392
|
+
}
|
|
393
|
+
_observeContentMutations() {
|
|
394
|
+
this._contentObserver ||= new MutationObserver(() => {
|
|
395
|
+
this._scheduleRender();
|
|
396
|
+
}), this._contentObserver.disconnect(), this._contentObserver.observe(this, {
|
|
397
|
+
childList: !0,
|
|
398
|
+
attributes: !0,
|
|
399
|
+
attributeFilter: ["slot"]
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
getUserName() {
|
|
403
|
+
return this.getAttribute("user-name") || "Acme Inc";
|
|
404
|
+
}
|
|
405
|
+
getUserStatus() {
|
|
406
|
+
return this.getAttribute("user-status") || "Enterprise";
|
|
407
|
+
}
|
|
408
|
+
_isOpen() {
|
|
409
|
+
return this.getAttribute("open") === "true";
|
|
410
|
+
}
|
|
411
|
+
_ensureBackdrop() {
|
|
412
|
+
this._backdrop || (this._backdrop = document.createElement("div"), this._backdrop.setAttribute("aria-hidden", "true"), this._backdrop.addEventListener("click", () => this.removeAttribute("open")), this.insertBefore(this._backdrop, this.firstChild));
|
|
413
|
+
}
|
|
414
|
+
_ensureContainer() {
|
|
415
|
+
this._container || (this._container = document.createElement("aside"), this._container.addEventListener("click", this._onMobileNavNavigateClick, !0), this.appendChild(this._container));
|
|
416
|
+
}
|
|
417
|
+
_syncShell() {
|
|
418
|
+
let e = this._isOpen(), t = this.hasAttribute("preview");
|
|
419
|
+
this._backdrop && (this._backdrop.className = `mint-sidenav-backdrop${e && !t ? " is-open" : ""}`), this._container && (this._container.className = `mint-sidenav-panel${e ? " is-open" : ""}${t ? " is-preview" : ""}`);
|
|
420
|
+
}
|
|
421
|
+
_buildUserHeader() {
|
|
422
|
+
if (!this._container) return;
|
|
423
|
+
this._header || (this._header = document.createElement("div"), this._header.className = "mint-sidenav-header", this._container.appendChild(this._header));
|
|
424
|
+
let e = Array.from(this.querySelectorAll("[slot=\"action-header\"]")).find((e) => e !== this._backdrop && e !== this._container);
|
|
425
|
+
if (e) {
|
|
426
|
+
this._header.replaceChildren(e);
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
let t = document.createElement("mint-sidenav-action-menu");
|
|
430
|
+
t.setAttribute("title", this.getUserName()), t.setAttribute("subtitle", this.getUserStatus()), this._header.replaceChildren(t);
|
|
431
|
+
}
|
|
432
|
+
_replaceSlottedChildren(e, t) {
|
|
433
|
+
let n = Array.from(this.querySelectorAll(`[slot="${t}"]`)).filter((e) => e !== this._container && e !== this._backdrop);
|
|
434
|
+
e.replaceChildren(...n);
|
|
435
|
+
}
|
|
436
|
+
_buildContent() {
|
|
437
|
+
this._container && (this._content || (this._content = document.createElement("div"), this._content.className = "mint-sidenav-content", this._container.appendChild(this._content)), this._replaceSlottedChildren(this._content, "links"));
|
|
438
|
+
}
|
|
439
|
+
_buildFooter() {
|
|
440
|
+
if (!this._container) return;
|
|
441
|
+
this._footer || (this._footer = document.createElement("div"), this._footer.className = "mint-sidenav-footer", this._container.appendChild(this._footer));
|
|
442
|
+
let e = document.createElement("div");
|
|
443
|
+
e.className = "mint-sidenav-footer-links", this._replaceSlottedChildren(e, "bottom-links"), this._footer.innerHTML = "", this._footer.appendChild(e);
|
|
444
|
+
}
|
|
445
|
+
render() {
|
|
446
|
+
this._ensureBackdrop(), this._ensureContainer(), this._syncShell(), this._buildUserHeader(), this._buildContent(), this._buildFooter();
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
customElements.get("mint-side-navigation") || e("mint-side-navigation", s);
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region src/components/side-navigation/index.ts
|
|
452
|
+
var c = s;
|
|
453
|
+
//#endregion
|
|
454
|
+
export { r as MintSidenavActionLinks, i as MintSidenavActionMenu, t as MintSidenavLink, n as MintSidenavLinks, c as default };
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
3
|
-
type StackAlignContent = 'left' | 'right' | 'center';
|
|
4
|
-
declare class MintSortable extends HTMLElement {
|
|
5
|
-
static get observedAttributes(): string[];
|
|
6
|
-
private _pointerId;
|
|
7
|
-
private _dragEl;
|
|
8
|
-
private _placeholder;
|
|
9
|
-
private _listRoot;
|
|
10
|
-
private _startIndex;
|
|
11
|
-
private _pointerStartX;
|
|
12
|
-
private _pointerStartY;
|
|
13
|
-
private _dragStartLeft;
|
|
14
|
-
private _dragStartTop;
|
|
15
|
-
private _scrollRaf;
|
|
16
|
-
private _boundPointerMove;
|
|
17
|
-
private _boundPointerUp;
|
|
18
|
-
private _boundPointerCancel;
|
|
19
|
-
private _childObserver;
|
|
20
|
-
private _pointerBoundRoot;
|
|
21
|
-
private _restoreAfter;
|
|
22
|
-
constructor();
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
disconnectedCallback(): void;
|
|
25
|
-
attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
|
|
26
|
-
private _observeInnerStack;
|
|
27
|
-
private _unobserveInnerStack;
|
|
28
|
-
private _getInnerStack;
|
|
29
|
-
private _resolveListRoot;
|
|
30
|
-
/** Attribute on each sortable row used for persistence (default `data-sortable-id`). */
|
|
31
|
-
private _getItemKeyAttribute;
|
|
32
|
-
/** DOM order of item keys after the latest layout (excludes placeholder). */
|
|
33
|
-
private _collectOrderedKeys;
|
|
34
|
-
private _syncInnerStackAttributes;
|
|
35
|
-
private _applyHostScrollAndLayout;
|
|
36
|
-
private _stripHostLayoutClasses;
|
|
37
|
-
getDirection(): StackDirection;
|
|
38
|
-
getGap(): number;
|
|
39
|
-
getTextAlign(): TextAlign | '';
|
|
40
|
-
getAlignContent(): StackAlignContent | '';
|
|
41
|
-
private _isDisabled;
|
|
42
|
-
private _getHandleSelector;
|
|
43
|
-
private _getScrollSensitivity;
|
|
44
|
-
private _getScrollSpeed;
|
|
45
|
-
private _getAnimationDurationMs;
|
|
46
|
-
private _ensureListPointerBinding;
|
|
47
|
-
private _onListPointerDown;
|
|
48
|
-
private _closestSortableItem;
|
|
49
|
-
private _startDrag;
|
|
50
|
-
private _indexOfItem;
|
|
51
|
-
private _getLayoutChildren;
|
|
52
|
-
private _onPointerMove;
|
|
53
|
-
private _autoScroll;
|
|
54
|
-
private _maybeMovePlaceholder;
|
|
55
|
-
private _flipAnimate;
|
|
56
|
-
private _onPointerUp;
|
|
57
|
-
private _onPointerCancel;
|
|
58
|
-
private _finishDrag;
|
|
59
|
-
private _teardownDrag;
|
|
60
|
-
}
|
|
61
|
-
export default MintSortable;
|
|
62
|
-
//# sourceMappingURL=Sortable.d.ts.map
|
|
1
|
+
export { MintSortable as default, MintSortable } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Sortable.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Sortable.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|