@nxgt/material 3.57.0 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +2 -1
- package/dist/{async-slice-B3RMgJUn.js → async-slice-C_Juki7i.js} +2 -2
- package/dist/{background-BtSZsTvY.js → background-qdnet2A5.js} +124 -83
- package/dist/backgrounds.js +1 -1
- package/dist/{button-hnUZpzYu.js → button-CCHGtPIN.js} +97 -74
- package/dist/{callout-view-C6voDS00.js → callout-view-C7UznnDW.js} +1 -1
- package/dist/charts.js +1531 -1489
- package/dist/{chip-kplPa8ZV.js → chip-1XnyX4bd.js} +2 -2
- package/dist/{code-editor-Ba61Cd-g.js → code-editor-1Y7ykpam.js} +307 -277
- package/dist/code-editor.js +14 -14
- package/dist/{code-language-items-CsDC4Ky4.js → code-language-items-Clbln9C6.js} +2 -2
- package/dist/{components-BgckuX2C.js → components-Cj3lJ_uK.js} +28523 -25863
- package/dist/components.js +26 -26
- package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
- package/dist/{dialog-DS8O4Kkb.js → dialog-Cx_xWUVR.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/draw-animate.js +1 -1
- package/dist/{dropdown-menu-CvVQJpsn.js → dropdown-menu-Jp6pHNgP.js} +1 -1
- package/dist/editor-viewer.js +1 -1
- package/dist/editor.js +715 -607
- package/dist/empty-state-D61RimJr.js +139 -0
- package/dist/{escape-owner-BJvicDmr.js → escape-owner-Ch_-kDLw.js} +1 -1
- package/dist/{field-blur-Cnjk0o9A.js → field-blur-BJjUHsgJ.js} +1 -1
- package/dist/{field-blur-context-CYlx9KnB.js → field-blur-context-CmOF0FIN.js} +1 -1
- package/dist/{headless-extensions-CvmdhANJ.js → headless-extensions-B1NAgmkE.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-DW4XnExA.js → hover-card-CVmY0Z44.js} +2 -2
- package/dist/{i18n-provider-DBr59j1p.js → i18n-provider-C0uLEv0G.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-4FMy66AC.js → icon-badge-bAQQK3ls.js} +3 -3
- package/dist/{icon-button-QF7smCoV.js → icon-button-Csvj2R8S.js} +59 -59
- package/dist/{illustration-B4_W-OUS.js → illustration-DjZXUFbz.js} +11 -11
- package/dist/illustrations.js +1 -1
- package/dist/lib/backgrounds/background/background.d.ts +1 -1
- package/dist/lib/backgrounds/background/partials/use-background-scenes.d.ts +22 -0
- package/dist/lib/backgrounds/background/partials/use-themed-background.d.ts +304 -0
- package/dist/lib/components/ui/actions/action-card/action-card-semantics-branches.d.ts +63 -0
- package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +0 -4
- package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +3 -1
- package/dist/lib/components/ui/actions/action-card/use-action-card.d.ts +80 -0
- package/dist/lib/components/ui/actions/button/button-busy.d.ts +8 -0
- package/dist/lib/components/ui/actions/button/button.classes.d.ts +7 -0
- package/dist/lib/components/ui/actions/toolbar/use-toolbar-state.d.ts +22 -0
- package/dist/lib/components/ui/collections/data-grid/columns/column-check.d.ts +15 -0
- package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +1 -12
- package/dist/lib/components/ui/collections/data-grid/editors/editor-props.d.ts +20 -0
- package/dist/lib/components/ui/collections/data-grid/editors/editor-route-key.d.ts +11 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +26 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-header-name.d.ts +15 -0
- package/dist/lib/components/ui/collections/data-grid/partials/header-menu-button.d.ts +17 -0
- package/dist/lib/components/ui/collections/data-grid/partials/open-header-menu.d.ts +14 -0
- package/dist/lib/components/ui/collections/data-grid/partials/width-field.d.ts +18 -0
- package/dist/lib/components/ui/collections/data-grid/phone/phone-item.d.ts +2 -2
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-card-list.d.ts +17 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-clear.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +18 -0
- package/dist/lib/components/ui/collections/data-table/partials/page-button.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-table/partials/page-icon-control.d.ts +21 -0
- package/dist/lib/components/ui/collections/data-table/partials/pager-buttons.d.ts +7 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table-setup.d.ts +36 -0
- package/dist/lib/components/ui/collections/facet-group/partials/facet-group-header.d.ts +11 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-base.utils.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-choice.utils.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config-value.utils.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/filter-field-config.utils.d.ts +6 -0
- package/dist/lib/components/ui/collections/filter/filter-legacy.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/filter-persistence-url-value.utils.d.ts +9 -0
- package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -5
- package/dist/lib/components/ui/collections/filter/filter-validation-presets.utils.d.ts +24 -0
- package/dist/lib/components/ui/collections/filter/filter-validation-rules.utils.d.ts +11 -0
- package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -23
- package/dist/lib/components/ui/collections/filter/partials/filter-field-special.d.ts +8 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-form-field-variant.d.ts +10 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-group-fields.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-legacy-variant.d.ts +3 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-preset-fields.d.ts +9 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu-items.d.ts +13 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu.d.ts +5 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-dialog.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-trigger.d.ts +7 -0
- package/dist/lib/components/ui/collections/filter/query/types.d.ts +3 -39
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +2 -2
- package/dist/lib/components/ui/collections/filter/query/view-types.d.ts +40 -0
- package/dist/lib/components/ui/collections/filter/sections/use-filter-search.d.ts +14 -0
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +7483 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-body.d.ts +12 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +15 -0
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-search.d.ts +8 -0
- package/dist/lib/components/ui/collections/pagination/pagination-bar-pages.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-action-button.d.ts +26 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +13 -11
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-entries.d.ts +11 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +1 -28
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-keys.d.ts +37 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/types-filter.d.ts +70 -0
- package/dist/lib/components/ui/collections/server-table/types-states.d.ts +42 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +4 -110
- package/dist/lib/components/ui/collections/tree/tree-expand-button.d.ts +6 -0
- package/dist/lib/components/ui/collections/tree/use-tree-keys.d.ts +14 -0
- package/dist/lib/components/ui/collections/tree/use-tree-select.d.ts +14 -0
- package/dist/lib/components/ui/collections/tree/use-tree.d.ts +5 -4
- package/dist/lib/components/ui/dates/calendar/calendar-year-button.d.ts +10 -0
- package/dist/lib/components/ui/dates/calendar/calendar-year-nav.d.ts +9 -0
- package/dist/lib/components/ui/dates/date-field/date-field-parts.d.ts +78 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-body-scroll.d.ts +15 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/preview-calendar-props.d.ts +11 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/use-cancel-range.d.ts +6 -0
- package/dist/lib/components/ui/dates/date-range-field/use-end-on.d.ts +12 -0
- package/dist/lib/components/ui/dates/date-range-field/use-typed-range.d.ts +2 -3
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-day.d.ts +8 -0
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-head.d.ts +18 -0
- package/dist/lib/components/ui/dates/mini-month/partials/mini-month-markers.d.ts +5 -0
- package/dist/lib/components/ui/dates/mini-month/partials/use-grid-focus.d.ts +11 -0
- package/dist/lib/components/ui/dates/picker-trigger/typed-box-parts.d.ts +12 -0
- package/dist/lib/components/ui/dates/time-field/partials/use-time-field-model.d.ts +14 -5
- package/dist/lib/components/ui/dates/time-picker/partials/time-column.d.ts +13 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.detail.d.ts +9 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.feed.d.ts +7 -0
- package/dist/lib/components/ui/display/cards/cards.stories.data.intro.d.ts +11 -0
- package/dist/lib/components/ui/display/cards/types-detail.d.ts +74 -0
- package/dist/lib/components/ui/display/cards/types-feed.d.ts +41 -0
- package/dist/lib/components/ui/display/cards/types-intro.d.ts +76 -0
- package/dist/lib/components/ui/display/cards/types.d.ts +3 -187
- package/dist/lib/components/ui/display/code/code-block-parts.d.ts +16 -0
- package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret-manual.d.ts +9 -0
- package/dist/lib/components/ui/display/entity-header/partials/entity-header-start.d.ts +11 -0
- package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +12 -0
- package/dist/lib/components/ui/display/param-table/param-table-views.d.ts +19 -0
- package/dist/lib/components/ui/display/recovery-codes/partials/use-recovery-codes-actions.d.ts +22 -0
- package/dist/lib/components/ui/display/recovery-codes-status/partials/recovery-codes-status-plain.d.ts +13 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog-actions.d.ts +6 -0
- package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -3
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +16 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/use-confirmation-form.d.ts +18 -0
- package/dist/lib/components/ui/feedback/countdown-timer/countdown-timer.d.ts +5 -3
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-body.d.ts +10 -0
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-dot.d.ts +2 -0
- package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-open.d.ts +5 -0
- package/dist/lib/components/ui/feedback/notifications/notifications-model.d.ts +59 -0
- package/dist/lib/components/ui/feedback/notifications/use-notifications-chrome.d.ts +17 -0
- package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +4 -38
- package/dist/lib/components/ui/feedback/spinner/spinner-variants.d.ts +5 -0
- package/dist/lib/components/ui/feedback/spinner/spinner.d.ts +1 -5
- package/dist/lib/components/ui/feedback/state-frame/state-frame-text.d.ts +10 -0
- package/dist/lib/components/ui/feedback/state-frame/use-state-media.d.ts +14 -0
- package/dist/lib/components/ui/feedback/step-dots/step-dot.d.ts +13 -0
- package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +2 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/describe-by.d.ts +4 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-step-up-view.d.ts +34 -0
- package/dist/lib/components/ui/fields/attributes/attribute-form/attribute-options-form-fields.d.ts +7 -0
- package/dist/lib/components/ui/fields/attributes/attributes-list/attribute-tile.d.ts +11 -0
- package/dist/lib/components/ui/fields/attributes/partials/editor-rows.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +20 -0
- package/dist/lib/components/ui/fields/contacts/partials/contact-tile.d.ts +13 -0
- package/dist/lib/components/ui/fields/contacts/partials/dialog-actions.d.ts +14 -0
- package/dist/lib/components/ui/fields/contacts/partials/dialog-fields.d.ts +14 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +2 -0
- package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +2 -0
- package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +2 -0
- package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +17 -0
- package/dist/lib/components/ui/fields/field/render-choice-field.d.ts +3 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-display.d.ts +12 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-editor.d.ts +14 -0
- package/dist/lib/components/ui/fields/inline-edit/use-inline-edit.d.ts +19 -0
- package/dist/lib/components/ui/fields/opening-hours/logic/missing-days.d.ts +3 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/day-switch.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/dialog-actions.d.ts +13 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/dialog-fields.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/hours-actions.d.ts +9 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/hours-tile.d.ts +11 -0
- package/dist/lib/components/ui/fields/opening-hours/partials/week-rows.d.ts +14 -0
- package/dist/lib/components/ui/fields/opening-hours/use-hours-editor.d.ts +1 -0
- package/dist/lib/components/ui/fields/phone-field/phone-country-list.d.ts +10 -0
- package/dist/lib/components/ui/fields/phone-field/phone-dial-button.d.ts +10 -0
- package/dist/lib/components/ui/fields/phone-field/phone-number-input.d.ts +19 -0
- package/dist/lib/components/ui/fields/phone-field/use-phone-value.d.ts +17 -0
- package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-actions.d.ts +14 -0
- package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-fields.d.ts +10 -0
- package/dist/lib/components/ui/fields/rating-field/rating-color.d.ts +4 -0
- package/dist/lib/components/ui/fields/rating-field/rating-field.d.ts +1 -4
- package/dist/lib/components/ui/fields/rating-field/rating-star.d.ts +22 -0
- package/dist/lib/components/ui/fields/rating-field/use-rating.d.ts +16 -0
- package/dist/lib/components/ui/fields/search-field/search-box.d.ts +11 -0
- package/dist/lib/components/ui/fields/search-field/use-search-value.d.ts +21 -0
- package/dist/lib/components/ui/fields/slider/slider-control-row.d.ts +10 -0
- package/dist/lib/components/ui/fields/slider/slider-group-props.d.ts +16 -0
- package/dist/lib/components/ui/fields/slider/slider-group.d.ts +14 -0
- package/dist/lib/components/ui/fields/slider/slider-horizontal.d.ts +3 -0
- package/dist/lib/components/ui/fields/slider/slider-vertical.d.ts +3 -0
- package/dist/lib/components/ui/fields/slider/slider.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/use-slider-value.d.ts +10 -0
- package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +14 -0
- package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +17 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-header.d.ts +15 -0
- package/dist/lib/components/ui/layout/app-shell/app-header-menu.d.ts +5 -0
- package/dist/lib/components/ui/layout/app-shell/band-boxes.d.ts +3 -0
- package/dist/lib/components/ui/layout/app-shell/collect-content.d.ts +24 -0
- package/dist/lib/components/ui/layout/app-shell/keep-inside-checker.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/page-title-focus.d.ts +32 -0
- package/dist/lib/components/ui/layout/app-shell/page-title-scope.d.ts +53 -0
- package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +2 -82
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -13
- package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +2 -18
- package/dist/lib/components/ui/layout/auth-card/auth-card-parts.d.ts +25 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-header-parts.d.ts +18 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +2 -4
- package/dist/lib/components/ui/layout/doc/partials/doc-nav-parts.d.ts +11 -0
- package/dist/lib/components/ui/layout/doc/use-doc-effects.d.ts +23 -0
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-content.d.ts +7 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -47
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.types.d.ts +54 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/keyboard-inset.d.ts +17 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/sticky-action-bar.d.ts +17 -0
- package/dist/lib/components/ui/layout/sticky-action-bar/use-keyboard-inset.d.ts +8 -0
- package/dist/lib/components/ui/layout/toc/toc-list.d.ts +16 -0
- package/dist/lib/components/ui/media/compare-slider/partials/compare-slider-handle.d.ts +9 -0
- package/dist/lib/components/ui/media/compare-slider/use-compare-slider.d.ts +22 -0
- package/dist/lib/components/ui/media/file-list/file-list-field.d.ts +1 -1
- package/dist/lib/components/ui/media/file-list/partials/file-list-dropzone.d.ts +13 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-input.d.ts +11 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-items.d.ts +14 -0
- package/dist/lib/components/ui/media/file-list/partials/file-list-row-actions.d.ts +12 -0
- package/dist/lib/components/ui/media/file-list/use-file-list-field.d.ts +33 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +2 -6
- package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-zoom.d.ts +2 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-featured-arrows.d.ts +2 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-tile-media.d.ts +17 -0
- package/dist/lib/components/ui/media/galleries/partials/gallery-viewer-button.d.ts +6 -0
- package/dist/lib/components/ui/media/galleries/use-gallery-navigation.d.ts +18 -0
- package/dist/lib/components/ui/media/galleries/use-gallery-sync.d.ts +15 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-actions.d.ts +12 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-controls.d.ts +8 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-stage.d.ts +12 -0
- package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +34 -0
- package/dist/lib/components/ui/media/image-editor/image-editor.slice.d.ts +43 -43
- package/dist/lib/components/ui/media/image-editor/image-editor.stage-gestures.d.ts +29 -0
- package/dist/lib/components/ui/media/image-editor/image-editor.stage-paint.d.ts +17 -0
- package/dist/lib/components/ui/media/image-editor/partials/crop-aspect-picker.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/crop-orientation.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-export-options.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-file-info.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/editor-history-buttons.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/markup-brush-section.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/partials/markup-tool-picker.d.ts +2 -0
- package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +106 -0
- package/dist/lib/components/ui/media/image-editor/types-session.d.ts +58 -0
- package/dist/lib/components/ui/media/image-editor/types.d.ts +4 -163
- package/dist/lib/components/ui/media/image-editor/use-crop-frame.d.ts +26 -0
- package/dist/lib/components/ui/media/image-editor/use-image-editor-keys.d.ts +4 -0
- package/dist/lib/components/ui/media/image-editor/use-image-editor.d.ts +10 -10
- package/dist/lib/components/ui/media/image-editor/use-markup-text.d.ts +10 -0
- package/dist/lib/components/ui/media/image-editor/use-stage-layer-key.d.ts +6 -0
- package/dist/lib/components/ui/media/image-editor/use-stage-pointer.d.ts +2 -3
- package/dist/lib/components/ui/media/media-player/partials/panels/transcript-follow.d.ts +7 -0
- package/dist/lib/components/ui/media/media-player/partials/panels/transcript-notice.d.ts +7 -0
- package/dist/lib/components/ui/media/media-player/partials/panels/use-search-announcement.d.ts +6 -0
- package/dist/lib/components/ui/media/media-player/partials/playlist-item.d.ts +13 -0
- package/dist/lib/components/ui/media/pdf-reader/partials/search-nav-buttons.d.ts +4 -0
- package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-state.d.ts +35 -0
- package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-value.d.ts +14 -0
- package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-dropzone-body.d.ts +8 -0
- package/dist/lib/components/ui/primitives/segmented-input/segmented-input-cells.d.ts +20 -0
- package/dist/lib/components/ui/primitives/segmented-input/use-segment-paste.d.ts +17 -0
- package/dist/lib/components/ui/primitives/segmented-input/use-segmented-keys.d.ts +17 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-equality.d.ts +7 -0
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-chips.d.ts +2 -19
- package/dist/lib/components/ui/selection/autocomplete/types.d.ts +19 -1
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-handlers.d.ts +5 -6
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-leave.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-picks.d.ts +17 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-typing.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +3 -3
- package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -23
- package/dist/lib/components/ui/selection/checkbox-group/partials/checkbox-group-options.d.ts +10 -0
- package/dist/lib/components/ui/selection/checkbox-group/types.d.ts +23 -0
- package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +2 -1
- package/dist/lib/components/ui/selection/color-swatches/color-swatches.utils.d.ts +3 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-button.d.ts +13 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-styles.d.ts +3 -0
- package/dist/lib/components/ui/selection/color-swatches/partials/custom-color-swatch.d.ts +11 -0
- package/dist/lib/components/ui/selection/color-swatches/types.d.ts +1 -0
- package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +3 -48
- package/dist/lib/components/ui/selection/combobox-field/partials/combobox-field-input.d.ts +4 -0
- package/dist/lib/components/ui/selection/combobox-field/types.d.ts +47 -0
- package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-aria.d.ts +15 -0
- package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-items.d.ts +1 -1
- package/dist/lib/components/ui/selection/combobox-field/use-typed-query.d.ts +8 -0
- package/dist/lib/components/ui/selection/option-tile/use-status-text.d.ts +3 -0
- package/dist/lib/components/ui/selection/radio-group/partials/radio-group-options.d.ts +7 -0
- package/dist/lib/components/ui/selection/radio-group/partials/radio-group-parts.d.ts +4 -0
- package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +3 -24
- package/dist/lib/components/ui/selection/radio-group/types.d.ts +22 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-footer.d.ts +4 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-frame.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-parts.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-props.d.ts +298 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-chrome.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-data.d.ts +20 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-grab.d.ts +15 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-moves.d.ts +18 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +7 -8
- package/dist/lib/components/ui/selection/switcher/partials/switcher-recent.d.ts +11 -0
- package/dist/lib/components/ui/selection/switcher/partials/switcher-row-body.d.ts +8 -0
- package/dist/lib/components/ui/selection/switcher/switcher-list-keys.d.ts +17 -0
- package/dist/lib/components/ui/selection/switcher/switcher.d.ts +1 -1
- package/dist/lib/components/ui/selection/switcher/use-switcher-clip.d.ts +9 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-list-focus.d.ts +14 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-open.d.ts +9 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher-panel.d.ts +24 -0
- package/dist/lib/components/ui/selection/switcher/use-switcher.d.ts +326 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-frame.d.ts +19 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-item-row.d.ts +2 -3
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-listbox.d.ts +5 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-parts.d.ts +16 -0
- package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-props.d.ts +283 -0
- package/dist/lib/components/ui/selection/transfer-list/transfer-list.keyboard.d.ts +3 -2
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-actions.d.ts +3 -2
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-checks.d.ts +18 -0
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-derived.d.ts +14 -0
- package/dist/lib/components/ui/selection/transfer-list/use-transfer-list.d.ts +1 -1
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-chips.d.ts +9 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger-button.d.ts +15 -0
- package/dist/lib/components/ui/widgets/chat/chat-message.d.ts +1 -1
- package/dist/lib/components/ui/widgets/chat/chat-message.view.d.ts +32 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-composer-notices.d.ts +8 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-composer-surface.d.ts +11 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-skeleton.d.ts +4 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-text.d.ts +10 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-list.d.ts +8 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-thread.d.ts +11 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-message-action-menus.d.ts +17 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-message-body.d.ts +6 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.d.ts +7 -0
- package/dist/lib/components/ui/widgets/chat/partials/chat-typing-row.d.ts +9 -0
- package/dist/lib/components/ui/widgets/chat/use-chat-inbox-pane.d.ts +13 -0
- package/dist/lib/components/ui/widgets/chat/use-chat-widget-open.d.ts +19 -0
- package/dist/lib/components/ui/widgets/code-editor/toolbar/code-view-tools.d.ts +10 -0
- package/dist/lib/components/ui/widgets/code-editor/use-monaco-options.d.ts +9 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/accordion/accordion-item-actions.d.ts +7 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/action-card/action-card-tile.d.ts +10 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/select-card-tile.d.ts +11 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/toggle-selection.d.ts +3 -0
- package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/use-node-list.d.ts +11 -0
- package/dist/lib/components/ui/widgets/editor/extensions/emoji/use-emoji-groups.d.ts +13 -0
- package/dist/lib/components/ui/widgets/editor/presets/compact-editor-parts.d.ts +10 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-frame-parts.d.ts +19 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-layout.d.ts +5 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-overlays.d.ts +6 -0
- package/dist/lib/components/ui/widgets/editor/presets/document-editor-page-parts.d.ts +25 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/composer-class.d.ts +8 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-toolbar.d.ts +6 -0
- package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/format-buttons.d.ts +8 -0
- package/dist/lib/components/ui/widgets/editor/presets/use-document-features.d.ts +15 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-body.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +3 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-extras.d.ts +10 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-outcome.d.ts +7 -0
- package/dist/lib/components/ui/widgets/education/questions/question-options.keyboard.d.ts +17 -0
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +3 -2
- package/dist/lib/components/ui/widgets/education/quizzes/partials/quiz-shortcuts.d.ts +6 -0
- package/dist/lib/components/ui/widgets/education/quizzes/partials/results-actions.d.ts +7 -0
- package/dist/lib/components/ui/widgets/education/quizzes/partials/results-ring.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/quizzes/quiz.flow.d.ts +29 -0
- package/dist/lib/components/ui/widgets/education/quizzes/quiz.slice.d.ts +3 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-actions.d.ts +20 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-flow.d.ts +29 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-lifecycle.d.ts +12 -0
- package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +2 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-step-buttons.d.ts +2 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell-class.d.ts +9 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -0
- package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +26 -0
- package/dist/lib/components/ui/widgets/kanban/kanban.drag.d.ts +15 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-card-tile.d.ts +7 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-column-cards.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-drag-preview.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/partials/kanban-group-header.d.ts +8 -0
- package/dist/lib/components/ui/widgets/kanban/use-kanban-item-actions.d.ts +20 -0
- package/dist/lib/components/ui/widgets/native-charts/core/base-props-types.d.ts +64 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +62 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-types.d.ts +35 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +1 -56
- package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +2 -96
- package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-parts.d.ts +20 -0
- package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-shown.d.ts +23 -0
- package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/line-strokes.d.ts +10 -0
- package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.d.ts +9 -0
- package/dist/lib/i18n/resources/en/en.d.ts +4 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +5 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +5 -1
- package/dist/lib/i18n/resources/resources.d.ts +8 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/map/components/partials/default-location.d.ts +2 -0
- package/dist/lib/map/components/partials/location-dialog.d.ts +17 -0
- package/dist/lib/print/components/print-document/print-document.d.ts +2 -37
- package/dist/lib/print/components/print-document/print-document.types.d.ts +37 -0
- package/dist/lib/print/components/print-document/use-print-context.d.ts +11 -0
- package/dist/lib.js +55 -48
- package/dist/main.js +43 -43
- package/dist/map.js +91 -74
- package/dist/material.css +1 -1
- package/dist/{nxgt-theme-ivgNca3z.js → nxgt-theme-DA1IQe0O.js} +5 -5
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +121 -107
- package/dist/{public-DVZJVdxD.js → public-B42vT7ee.js} +362 -332
- package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
- package/dist/{rich-code-block-DL5-9JIi.js → rich-code-block-DIJ1X1AF.js} +5 -5
- package/dist/{rich-text-viewer-W15XIwah.js → rich-text-viewer-CXJp584B.js} +3 -3
- package/dist/{sortable-provider-DrpBwx75.js → sortable-provider-Csby6WpB.js} +2 -2
- package/dist/{spinner-D4XGdse6.js → spinner-DC35lhqx.js} +3 -1
- package/dist/{stored-language-C89mti-z.js → stored-language-BIxd7uiP.js} +6 -2
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-BFhqLmgx.js → theme-toggle-BWdNFLvB.js} +1 -1
- package/dist/themes.js +1 -1
- package/dist/{toolbar-items-SZ5pyAFz.js → toolbar-items-oqmVfnfO.js} +578 -567
- package/dist/{translate-material-BkqnImND.js → translate-material-Bgtjuh85.js} +2 -2
- package/dist/{translator-B5fId5Rw.js → translator-BrZv1U54.js} +1 -1
- package/dist/{use-chat-composer-BG5B4DGB.js → use-chat-composer-Dj0TP_B1.js} +8456 -8177
- package/dist/{use-heading-spy-51GQw8tH.js → use-heading-spy-1Dqxj_JQ.js} +1 -1
- package/dist/{use-material-translation-BQOr4Oks.js → use-material-translation-DLdQKdfw.js} +2 -2
- package/dist/use-shape-morph-BKA_R5P5.js +35 -0
- package/dist/{youtube-node-OWSNlYCc.js → youtube-node-A3NPAPgK.js} +27 -27
- package/docs/components/feedback-and-status.md +5 -4
- package/docs/components/navigation-and-layout.md +47 -0
- package/docs/components/rich-widgets.md +3 -3
- package/docs/guides/data-grid.md +11 -1
- package/docs/previews/navigation-layout-stickyactionbar.webp +0 -0
- package/docs/roadmap.md +9 -1
- package/package.json +1 -1
- package/dist/empty-state-4gmbCkcw.js +0 -117
- package/dist/use-shape-morph-DXdy2X5g.js +0 -35
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { o as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-CvVQJpsn.js";
|
|
2
|
+
import { o as t, r as n, t as r } from "./dist-DVRQkaTK.js";
|
|
3
|
+
import { a as i, c as a, i as o, l as s, r as c, s as l } from "./dist-lmHmz_bu.js";
|
|
4
|
+
import { C as u, S as d, d as f, f as p, m, p as h, r as g, u as _ } from "./spinner-DC35lhqx.js";
|
|
5
|
+
import { i as v, n as y, r as b, t as x } from "./dist-C4wtXCjf.js";
|
|
6
|
+
import { a as S, c as C, l as w, o as T, r as ee, s as te, t as ne } from "./in-dialog-Vwkyp-M5.js";
|
|
7
|
+
import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-Jp6pHNgP.js";
|
|
9
8
|
import { a as ve, n as ye, r as be, t as xe } from "./dist-B7RjY7SL.js";
|
|
10
|
-
import { t as Se } from "./
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { t as Se } from "./warn-once-C_e47JM8.js";
|
|
10
|
+
import { t as Ce } from "./use-material-translation-DLdQKdfw.js";
|
|
11
|
+
import { o as we } from "./escape-owner-Ch_-kDLw.js";
|
|
12
|
+
import * as E from "react";
|
|
13
|
+
import { createContext as D, useCallback as Te, useContext as O, useEffect as k, useId as Ee, useLayoutEffect as A, useMemo as j, useReducer as De, useRef as M, useState as N } from "react";
|
|
14
|
+
import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
15
|
+
import { keepListEscape as Oe } from "@nxgt/material-core/escape-forward";
|
|
16
|
+
import { ChevronLeft as ke, ChevronRightIcon as Ae, MoreVertical as je } from "lucide-react";
|
|
17
17
|
//#region ../../node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
18
|
-
var
|
|
18
|
+
var Me = Object.defineProperty, L = (e, t) => Me(e, "name", {
|
|
19
19
|
value: t,
|
|
20
20
|
configurable: !0
|
|
21
|
-
}),
|
|
22
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen:
|
|
21
|
+
}), Ne = "Popover", [Pe, Fe] = a(Ne, [m]), R = m(), [Ie, z] = Pe(Ne), Le = /* @__PURE__ */ L((e) => {
|
|
22
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: s = !1 } = e, l = R(t), u = E.useRef(null), [d, f] = E.useState(!1), [p, m] = i({
|
|
23
23
|
prop: r,
|
|
24
|
-
defaultProp:
|
|
24
|
+
defaultProp: a ?? !1,
|
|
25
25
|
onChange: o,
|
|
26
|
-
caller:
|
|
26
|
+
caller: Ne
|
|
27
27
|
});
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
...
|
|
30
|
-
children: /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ F(h, {
|
|
29
|
+
...l,
|
|
30
|
+
children: /* @__PURE__ */ F(Ie, {
|
|
31
31
|
scope: t,
|
|
32
|
-
contentId:
|
|
32
|
+
contentId: c(),
|
|
33
33
|
triggerRef: u,
|
|
34
34
|
open: p,
|
|
35
35
|
onOpenChange: m,
|
|
36
|
-
onOpenToggle:
|
|
36
|
+
onOpenToggle: E.useCallback(() => m((e) => !e), [m]),
|
|
37
37
|
hasCustomAnchor: d,
|
|
38
|
-
onCustomAnchorAdd:
|
|
39
|
-
onCustomAnchorRemove:
|
|
38
|
+
onCustomAnchorAdd: E.useCallback(() => f(!0), []),
|
|
39
|
+
onCustomAnchorRemove: E.useCallback(() => f(!1), []),
|
|
40
40
|
modal: s,
|
|
41
41
|
children: n
|
|
42
42
|
})
|
|
43
43
|
});
|
|
44
|
-
}, "Popover"),
|
|
45
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
46
|
-
return
|
|
44
|
+
}, "Popover"), Re = "PopoverAnchor", ze = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
45
|
+
let { __scopePopover: n, ...r } = e, i = z(Re, n), a = R(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
46
|
+
return E.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ F(_, {
|
|
47
47
|
...a,
|
|
48
48
|
...r,
|
|
49
49
|
ref: t
|
|
50
50
|
});
|
|
51
|
-
}, "PopoverAnchor")),
|
|
52
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
51
|
+
}, "PopoverAnchor")), Be = "PopoverTrigger", Ve = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, n) {
|
|
52
|
+
let { __scopePopover: r, ...i } = e, a = z(Be, r), o = R(r), c = t(n, a.triggerRef), u = /* @__PURE__ */ F(s.button, {
|
|
53
53
|
type: "button",
|
|
54
54
|
"aria-haspopup": "dialog",
|
|
55
55
|
"aria-expanded": a.open,
|
|
56
56
|
"aria-controls": a.open ? a.contentId : void 0,
|
|
57
|
-
"data-state":
|
|
57
|
+
"data-state": V(a.open),
|
|
58
58
|
...i,
|
|
59
|
-
ref:
|
|
60
|
-
onClick:
|
|
59
|
+
ref: c,
|
|
60
|
+
onClick: l(e.onClick, a.onOpenToggle)
|
|
61
61
|
});
|
|
62
|
-
return a.hasCustomAnchor ?
|
|
62
|
+
return a.hasCustomAnchor ? u : /* @__PURE__ */ F(_, {
|
|
63
63
|
asChild: !0,
|
|
64
64
|
...o,
|
|
65
|
-
children:
|
|
65
|
+
children: u
|
|
66
66
|
});
|
|
67
|
-
}, "PopoverTrigger")),
|
|
68
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a =
|
|
69
|
-
return /* @__PURE__ */
|
|
67
|
+
}, "PopoverTrigger")), He = "PopoverPortal", [Ue, We] = Pe(He, { forceMount: void 0 }), Ge = /* @__PURE__ */ L((e) => {
|
|
68
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = z(He, t);
|
|
69
|
+
return /* @__PURE__ */ F(Ue, {
|
|
70
70
|
scope: t,
|
|
71
71
|
forceMount: n,
|
|
72
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ F(o, {
|
|
73
73
|
present: n || a.open,
|
|
74
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ F(d, {
|
|
75
75
|
asChild: !0,
|
|
76
76
|
container: i,
|
|
77
77
|
children: r
|
|
78
78
|
})
|
|
79
79
|
})
|
|
80
80
|
});
|
|
81
|
-
}, "PopoverPortal"),
|
|
82
|
-
let n =
|
|
83
|
-
return /* @__PURE__ */
|
|
81
|
+
}, "PopoverPortal"), B = "PopoverContent", Ke = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
82
|
+
let n = We(B, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = z(B, e.__scopePopover);
|
|
83
|
+
return /* @__PURE__ */ F(o, {
|
|
84
84
|
present: r || a.open,
|
|
85
|
-
children: a.modal ? /* @__PURE__ */
|
|
85
|
+
children: a.modal ? /* @__PURE__ */ F(Je, {
|
|
86
86
|
...i,
|
|
87
87
|
ref: t
|
|
88
|
-
}) : /* @__PURE__ */
|
|
88
|
+
}) : /* @__PURE__ */ F(Ye, {
|
|
89
89
|
...i,
|
|
90
90
|
ref: t
|
|
91
91
|
})
|
|
92
92
|
});
|
|
93
|
-
}, "PopoverContent")),
|
|
94
|
-
let r =
|
|
95
|
-
return
|
|
93
|
+
}, "PopoverContent")), qe = n("PopoverContent.RemoveScroll"), Je = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, n) {
|
|
94
|
+
let r = z(B, e.__scopePopover), i = E.useRef(null), a = t(n, i), o = E.useRef(!1);
|
|
95
|
+
return E.useEffect(() => {
|
|
96
96
|
let e = i.current;
|
|
97
|
-
if (e) return
|
|
98
|
-
}, []), /* @__PURE__ */
|
|
99
|
-
as:
|
|
97
|
+
if (e) return T(e);
|
|
98
|
+
}, []), /* @__PURE__ */ F(te, {
|
|
99
|
+
as: qe,
|
|
100
100
|
allowPinchZoom: !0,
|
|
101
|
-
children: /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ F(Xe, {
|
|
102
102
|
...e,
|
|
103
103
|
ref: a,
|
|
104
104
|
trapFocus: r.open,
|
|
105
105
|
disableOutsidePointerEvents: !0,
|
|
106
|
-
onCloseAutoFocus:
|
|
106
|
+
onCloseAutoFocus: l(e.onCloseAutoFocus, (e) => {
|
|
107
107
|
e.preventDefault(), o.current || r.triggerRef.current?.focus();
|
|
108
108
|
}),
|
|
109
|
-
onPointerDownOutside:
|
|
109
|
+
onPointerDownOutside: l(e.onPointerDownOutside, (e) => {
|
|
110
110
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
111
111
|
o.current = r;
|
|
112
112
|
}, { checkForDefaultPrevented: !1 }),
|
|
113
|
-
onFocusOutside:
|
|
113
|
+
onFocusOutside: l(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
114
114
|
})
|
|
115
115
|
});
|
|
116
|
-
}, "PopoverContentModal")),
|
|
117
|
-
let n =
|
|
118
|
-
return /* @__PURE__ */
|
|
116
|
+
}, "PopoverContentModal")), Ye = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
117
|
+
let n = z(B, e.__scopePopover), r = E.useRef(!1), i = E.useRef(!1);
|
|
118
|
+
return /* @__PURE__ */ F(Xe, {
|
|
119
119
|
...e,
|
|
120
120
|
ref: t,
|
|
121
121
|
trapFocus: !1,
|
|
@@ -129,27 +129,27 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
129
129
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
}, "PopoverContentNonModal")),
|
|
133
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside:
|
|
134
|
-
return
|
|
132
|
+
}, "PopoverContentNonModal")), Xe = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
133
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: d, ...f } = e, m = z(B, n), h = R(n);
|
|
134
|
+
return C(), /* @__PURE__ */ F(w, {
|
|
135
135
|
asChild: !0,
|
|
136
136
|
loop: !0,
|
|
137
137
|
trapped: r,
|
|
138
138
|
onMountAutoFocus: i,
|
|
139
139
|
onUnmountAutoFocus: a,
|
|
140
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ F(u, {
|
|
141
141
|
asChild: !0,
|
|
142
142
|
disableOutsidePointerEvents: o,
|
|
143
|
-
onInteractOutside:
|
|
143
|
+
onInteractOutside: d,
|
|
144
144
|
onEscapeKeyDown: s,
|
|
145
145
|
onPointerDownOutside: c,
|
|
146
146
|
onFocusOutside: l,
|
|
147
|
-
onDismiss: () =>
|
|
147
|
+
onDismiss: () => m.onOpenChange(!1),
|
|
148
148
|
deferPointerDownOutside: !0,
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
"data-state":
|
|
149
|
+
children: /* @__PURE__ */ F(p, {
|
|
150
|
+
"data-state": V(m.open),
|
|
151
151
|
role: "dialog",
|
|
152
|
-
id:
|
|
152
|
+
id: m.contentId,
|
|
153
153
|
...h,
|
|
154
154
|
...f,
|
|
155
155
|
ref: t,
|
|
@@ -164,34 +164,34 @@ var je = Object.defineProperty, R = (e, t) => je(e, "name", {
|
|
|
164
164
|
})
|
|
165
165
|
})
|
|
166
166
|
});
|
|
167
|
-
}, "PopoverContentImpl")),
|
|
167
|
+
}, "PopoverContentImpl")), Ze = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ L(function(e, t) {
|
|
168
168
|
let { __scopePopover: n, ...r } = e;
|
|
169
|
-
return /* @__PURE__ */
|
|
170
|
-
...
|
|
169
|
+
return /* @__PURE__ */ F(f, {
|
|
170
|
+
...R(n),
|
|
171
171
|
...r,
|
|
172
172
|
ref: t
|
|
173
173
|
});
|
|
174
174
|
}, "PopoverArrow"));
|
|
175
|
-
function
|
|
175
|
+
function V(e) {
|
|
176
176
|
return e ? "open" : "closed";
|
|
177
177
|
}
|
|
178
|
-
|
|
179
|
-
var
|
|
178
|
+
L(V, "getState");
|
|
179
|
+
var Qe = Le, $e = ze, et = Ve, tt = Ge, nt = Ke, rt = Ze, it = Object.defineProperty, H = (e, t) => it(e, "name", {
|
|
180
180
|
value: t,
|
|
181
181
|
configurable: !0
|
|
182
|
-
}),
|
|
183
|
-
let { __scopeToolbar: n, orientation: r = "horizontal", dir: i, loop: a = !0, ...o } = e,
|
|
184
|
-
return /* @__PURE__ */
|
|
182
|
+
}), at = "Toolbar", [ot, st] = a(at, [b, be]), ct = b(), lt = be(), [ut, dt] = ot(at), ft = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
183
|
+
let { __scopeToolbar: n, orientation: r = "horizontal", dir: i, loop: a = !0, ...o } = e, c = ct(n), l = v(i);
|
|
184
|
+
return /* @__PURE__ */ F(ut, {
|
|
185
185
|
scope: n,
|
|
186
186
|
orientation: r,
|
|
187
187
|
dir: l,
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ F(y, {
|
|
189
189
|
asChild: !0,
|
|
190
|
-
...
|
|
190
|
+
...c,
|
|
191
191
|
orientation: r,
|
|
192
192
|
dir: l,
|
|
193
193
|
loop: a,
|
|
194
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ F(s.div, {
|
|
195
195
|
role: "toolbar",
|
|
196
196
|
"aria-orientation": r,
|
|
197
197
|
dir: l,
|
|
@@ -200,28 +200,28 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
200
200
|
})
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
|
-
}, "Toolbar")),
|
|
203
|
+
}, "Toolbar")), pt = "ToolbarSeparator", mt = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
204
204
|
let { __scopeToolbar: n, ...r } = e;
|
|
205
|
-
return /* @__PURE__ */
|
|
206
|
-
orientation:
|
|
205
|
+
return /* @__PURE__ */ F(ve, {
|
|
206
|
+
orientation: dt(pt, n).orientation === "horizontal" ? "vertical" : "horizontal",
|
|
207
207
|
...r,
|
|
208
208
|
ref: t
|
|
209
209
|
});
|
|
210
|
-
}, "ToolbarSeparator")),
|
|
210
|
+
}, "ToolbarSeparator")), ht = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
211
211
|
let { __scopeToolbar: n, ...r } = e;
|
|
212
|
-
return /* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ F(x, {
|
|
213
213
|
asChild: !0,
|
|
214
|
-
...
|
|
214
|
+
...ct(n),
|
|
215
215
|
focusable: !e.disabled,
|
|
216
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ F(s.button, {
|
|
217
217
|
type: "button",
|
|
218
218
|
...r,
|
|
219
219
|
ref: t
|
|
220
220
|
})
|
|
221
221
|
});
|
|
222
|
-
}, "ToolbarButton")),
|
|
223
|
-
let { __scopeToolbar: n, ...r } = e, i =
|
|
224
|
-
return /* @__PURE__ */
|
|
222
|
+
}, "ToolbarButton")), gt = "ToolbarToggleGroup", _t = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
223
|
+
let { __scopeToolbar: n, ...r } = e, i = dt(gt, n), a = lt(n);
|
|
224
|
+
return /* @__PURE__ */ F(xe, {
|
|
225
225
|
"data-orientation": i.orientation,
|
|
226
226
|
dir: i.dir,
|
|
227
227
|
...a,
|
|
@@ -229,23 +229,23 @@ var Xe = Fe, Ze = Le, Qe = ze, $e = Ue, et = We, tt = Ye, nt = Object.defineProp
|
|
|
229
229
|
ref: t,
|
|
230
230
|
rovingFocus: !1
|
|
231
231
|
});
|
|
232
|
-
}, "ToolbarToggleGroup")),
|
|
233
|
-
let { __scopeToolbar: n, ...r } = e, i =
|
|
234
|
-
return /* @__PURE__ */
|
|
232
|
+
}, "ToolbarToggleGroup")), vt = /* @__PURE__ */ E.forwardRef(/* @__PURE__ */ H(function(e, t) {
|
|
233
|
+
let { __scopeToolbar: n, ...r } = e, i = lt(n);
|
|
234
|
+
return /* @__PURE__ */ F(ht, {
|
|
235
235
|
asChild: !0,
|
|
236
236
|
__scopeToolbar: e.__scopeToolbar,
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ F(ye, {
|
|
238
238
|
...i,
|
|
239
239
|
...r,
|
|
240
240
|
ref: t
|
|
241
241
|
})
|
|
242
242
|
});
|
|
243
|
-
}, "ToolbarToggleItem")),
|
|
243
|
+
}, "ToolbarToggleItem")), yt = ft, bt = mt, U = ht, xt = _t, St = vt;
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region lib/hooks/use-page-direction.ts
|
|
246
|
-
function
|
|
247
|
-
let [t, n] =
|
|
248
|
-
return
|
|
246
|
+
function Ct(e) {
|
|
247
|
+
let [t, n] = N("ltr");
|
|
248
|
+
return A(() => {
|
|
249
249
|
let t = e.current;
|
|
250
250
|
if (!t) return;
|
|
251
251
|
let r = t.parentElement ?? t;
|
|
@@ -254,25 +254,25 @@ function xt(e) {
|
|
|
254
254
|
}
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region lib/components/ui/overlays/dropdown-menu/dropdown-menu-sub.tsx
|
|
257
|
-
function
|
|
258
|
-
return /* @__PURE__ */
|
|
257
|
+
function wt({ ...e }) {
|
|
258
|
+
return /* @__PURE__ */ F(re, {
|
|
259
259
|
"data-slot": "dropdown-menu-sub",
|
|
260
260
|
...e
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return /* @__PURE__ */
|
|
263
|
+
function Tt({ className: t, inset: n, children: r, ...i }) {
|
|
264
|
+
return /* @__PURE__ */ I(ie, {
|
|
265
265
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
266
266
|
"data-inset": n,
|
|
267
267
|
className: e(_e, oe, "data-[state=open]:bg-primary/8 flex cursor-default items-center rounded-(--nxgt-item-radius) px-2 py-1.5 text-sm outline-none select-none data-[inset]:ps-8", t),
|
|
268
268
|
...i,
|
|
269
|
-
children: [r, /* @__PURE__ */
|
|
269
|
+
children: [r, /* @__PURE__ */ F(Ae, { className: "ms-auto size-4" })]
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
return /* @__PURE__ */
|
|
272
|
+
function Et({ className: t, ...n }) {
|
|
273
|
+
return /* @__PURE__ */ F(ne, {
|
|
274
274
|
value: !1,
|
|
275
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ F(ue, {
|
|
276
276
|
"data-slot": "dropdown-menu-sub-content",
|
|
277
277
|
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 grid gap-0.5 min-w-[12rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded border p-3 shadow-lg", t),
|
|
278
278
|
...n
|
|
@@ -281,7 +281,7 @@ function wt({ className: t, ...n }) {
|
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
283
|
//#region lib/components/ui/actions/toolbar/toolbar-context.ts
|
|
284
|
-
var
|
|
284
|
+
var W = D({
|
|
285
285
|
inside: !1,
|
|
286
286
|
spilled: /* @__PURE__ */ new Set(),
|
|
287
287
|
entries: /* @__PURE__ */ new Map(),
|
|
@@ -290,12 +290,12 @@ var K = O({
|
|
|
290
290
|
overflowing: !1,
|
|
291
291
|
moreAnchor: { current: null },
|
|
292
292
|
focusLost: { current: null }
|
|
293
|
-
}),
|
|
294
|
-
function
|
|
295
|
-
let n =
|
|
296
|
-
|
|
293
|
+
}), G = D(null), Dt = D(null);
|
|
294
|
+
function K(e, t) {
|
|
295
|
+
let n = Ee(), { inside: r, spilled: i, entries: a } = O(W), o = O(G);
|
|
296
|
+
A(() => {
|
|
297
297
|
r && a.set(n, e);
|
|
298
|
-
}),
|
|
298
|
+
}), A(() => () => void a.delete(n), [a, n]);
|
|
299
299
|
let s = r && (!!o?.spilled || i.has(n));
|
|
300
300
|
return {
|
|
301
301
|
id: n,
|
|
@@ -310,213 +310,19 @@ function J(e, t) {
|
|
|
310
310
|
} : {}
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
let { spilled: e, overflowing: t } =
|
|
313
|
+
function Ot() {
|
|
314
|
+
let { spilled: e, overflowing: t } = O(W);
|
|
315
315
|
return {
|
|
316
316
|
spilled: e,
|
|
317
317
|
overflowing: t
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
322
|
-
}
|
|
323
|
-
//#endregion
|
|
324
|
-
//#region lib/components/ui/actions/toolbar/toolbar-axis.ts
|
|
325
|
-
var Y = (e) => Number.parseFloat(e) || 0;
|
|
326
|
-
function X(e, t) {
|
|
327
|
-
let n = getComputedStyle(e);
|
|
328
|
-
return t === "x" ? e.offsetWidth + Y(n.marginLeft) + Y(n.marginRight) : e.offsetHeight + Y(n.marginTop) + Y(n.marginBottom);
|
|
329
|
-
}
|
|
330
|
-
function Ot(e, t) {
|
|
331
|
-
return Y(t === "x" ? e.columnGap : e.rowGap);
|
|
332
|
-
}
|
|
333
|
-
function kt(e, t) {
|
|
334
|
-
return t === "x" ? Y(e.paddingLeft) + Y(e.paddingRight) + Y(e.borderLeftWidth) + Y(e.borderRightWidth) : Y(e.paddingTop) + Y(e.paddingBottom) + Y(e.borderTopWidth) + Y(e.borderBottomWidth);
|
|
335
|
-
}
|
|
336
|
-
//#endregion
|
|
337
|
-
//#region lib/components/ui/actions/toolbar/toolbar-block-room.ts
|
|
338
|
-
function At(e) {
|
|
339
|
-
let { height: t, cap: n } = jt(e), r = [t, n].filter((e) => e > 0);
|
|
340
|
-
return r.length ? Math.min(...r) : 0;
|
|
341
|
-
}
|
|
342
|
-
function jt(e) {
|
|
343
|
-
let t = (t) => {
|
|
344
|
-
let n = document.createElement("div");
|
|
345
|
-
n.setAttribute("aria-hidden", "true"), n.style.setProperty("position", "relative"), n.style.setProperty("visibility", "hidden"), n.style.setProperty("width", "0"), n.style.setProperty("flex", "none");
|
|
346
|
-
for (let [e, r] of Object.entries(t)) n.style.setProperty(e, r);
|
|
347
|
-
e.appendChild(n);
|
|
348
|
-
let r = n.offsetHeight;
|
|
349
|
-
return n.remove(), r;
|
|
350
|
-
}, n = t({ height: "100%" }), r = getComputedStyle(e).maxHeight, i = r === "none" || r.endsWith("%") ? 0 : t({
|
|
351
|
-
height: "100000px",
|
|
352
|
-
"max-height": "inherit"
|
|
353
|
-
});
|
|
354
|
-
return {
|
|
355
|
-
height: n,
|
|
356
|
-
cap: i < 1e5 ? i : 0
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function Mt(e, t) {
|
|
360
|
-
let n = getComputedStyle(t);
|
|
361
|
-
if (!n.display.includes("flex") || !n.flexDirection.startsWith("column") || n.flexWrap !== "nowrap") return 0;
|
|
362
|
-
let r = 0;
|
|
363
|
-
for (let i of Array.from(t.children)) {
|
|
364
|
-
if (i === e || !(i instanceof HTMLElement)) continue;
|
|
365
|
-
let t = getComputedStyle(i);
|
|
366
|
-
["absolute", "fixed"].includes(t.position) || t.display !== "none" && (r += X(i, "y") + Y(n.rowGap));
|
|
367
|
-
}
|
|
368
|
-
return r;
|
|
369
|
-
}
|
|
370
|
-
function Nt(e) {
|
|
371
|
-
for (let t = e.parentElement; t; t = t.parentElement) if (/(auto|scroll)/.test(getComputedStyle(t).overflowY) && t.scrollHeight > t.clientHeight) return t;
|
|
372
|
-
return null;
|
|
373
|
-
}
|
|
374
|
-
function Pt(e) {
|
|
375
|
-
for (let t = e; t; t = t.parentElement) {
|
|
376
|
-
let n = getComputedStyle(t);
|
|
377
|
-
if (n.position !== "sticky" || n.top === "auto") continue;
|
|
378
|
-
let r = e.getBoundingClientRect().top - t.getBoundingClientRect().top;
|
|
379
|
-
return Y(n.top) + Math.max(0, r);
|
|
380
|
-
}
|
|
381
|
-
return -1;
|
|
382
|
-
}
|
|
383
|
-
function Ft(e) {
|
|
384
|
-
let t = Pt(e);
|
|
385
|
-
if (t < 0) return Infinity;
|
|
386
|
-
let n = Nt(e);
|
|
387
|
-
return (n ? n.clientHeight : window.innerHeight) - t - 16;
|
|
388
|
-
}
|
|
389
|
-
function It(e) {
|
|
390
|
-
let t = getComputedStyle(e), n = kt(t, "y"), r = e.parentElement, i = jt(e), a = r ? At(r) - Mt(e, r) : 0, o = t.boxSizing === "border-box" ? n : 0, s = [
|
|
391
|
-
a > 0 ? a - n : 0,
|
|
392
|
-
i.height,
|
|
393
|
-
i.cap > 0 ? i.cap - o : 0
|
|
394
|
-
].filter((e) => e > 0);
|
|
395
|
-
return Math.min(...s, Ft(e) - n);
|
|
396
|
-
}
|
|
397
|
-
//#endregion
|
|
398
|
-
//#region lib/components/ui/actions/toolbar/toolbar-morph-probe.ts
|
|
399
|
-
var Lt = ":is(.nxgt-toolbar-item, [data-toolbar-item][data-toolbar-fit]):not([data-toolbar-shape=\"round\"])", Rt = ":is([aria-pressed=\"true\"], [aria-checked=\"true\"], [data-state=\"on\"])", zt = ":is([aria-pressed], [aria-checked], [data-state=\"on\"], [data-state=\"off\"])";
|
|
400
|
-
function Bt(e, t) {
|
|
401
|
-
let n = Number.parseFloat(e);
|
|
402
|
-
return Number.isFinite(n) ? e.trim().endsWith("rem") || e.trim().endsWith("em") ? n * t : n : 0;
|
|
403
|
-
}
|
|
404
|
-
function Vt(e) {
|
|
405
|
-
return Y(e.getPropertyValue("--tb-morph"));
|
|
406
|
-
}
|
|
407
|
-
function Ht(e, t, n, r, i) {
|
|
408
|
-
let a = {
|
|
409
|
-
widening: 0,
|
|
410
|
-
toggles: 0,
|
|
411
|
-
single: !1
|
|
412
|
-
};
|
|
413
|
-
if (r <= 0) return a;
|
|
414
|
-
let o = Bt(n.getPropertyValue("--tb-item"), i), s = [...e.matches(Lt) ? [e] : [], ...Array.from(e.querySelectorAll(Lt))].filter((e) => e.matches(zt) && !e.hidden), c = 0;
|
|
415
|
-
for (let e of s) {
|
|
416
|
-
if (!e.matches(".nxgt-toolbar-item") && !e.matches(Rt)) continue;
|
|
417
|
-
let n = t === "x" ? e.offsetWidth : e.offsetHeight;
|
|
418
|
-
c += Math.max(0, Math.min(r * 2, n - o));
|
|
419
|
-
}
|
|
420
|
-
return {
|
|
421
|
-
widening: c,
|
|
422
|
-
toggles: s.length,
|
|
423
|
-
single: e.dataset.toolbarChoice === "single"
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
var Ut = () => Y(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region lib/components/ui/actions/toolbar/toolbar-morph-room.ts
|
|
429
|
-
function Wt(e, t) {
|
|
430
|
-
return t <= 0 ? 0 : t * (e.single ? Math.min(1, e.toggles) : e.toggles);
|
|
431
|
-
}
|
|
432
|
-
function Gt(e, t, n) {
|
|
433
|
-
return n <= 0 ? e : e - t.widening + Wt(t, n);
|
|
434
|
-
}
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region lib/components/ui/actions/toolbar/toolbar-spill.ts
|
|
437
|
-
var Kt = (e, t, n) => e.reduce((e, r) => t.has(r.id) ? e : e + r.width + n, 0);
|
|
438
|
-
function qt(e, t, n, r) {
|
|
439
|
-
if (Kt(e, /* @__PURE__ */ new Set(), n) - (e.length ? n : 0) <= t) return /* @__PURE__ */ new Set();
|
|
440
|
-
let i = e.map((e, t) => ({
|
|
441
|
-
slot: e,
|
|
442
|
-
i: t
|
|
443
|
-
})).filter(({ slot: e }) => !e.separator && !e.pinned).sort((e, t) => e.slot.priority - t.slot.priority || t.i - e.i), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
444
|
-
for (let { slot: s } of i) if (a.add(s.id), o = Jt(e, a), (e.some((e) => !e.separator && !e.unlisted && o.has(e.id)) ? r + Kt(e, o, n) : Kt(e, o, n) - n) <= t) return o;
|
|
445
|
-
return o;
|
|
446
|
-
}
|
|
447
|
-
function Jt(e, t) {
|
|
448
|
-
let n = new Set(t), r = !1, i = !1;
|
|
449
|
-
return e.forEach((a, o) => {
|
|
450
|
-
if (!a.separator) {
|
|
451
|
-
i = !0, r ||= !t.has(a.id);
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
(i && !r || !Yt(e, o, t)) && n.add(a.id);
|
|
455
|
-
}), n;
|
|
456
|
-
}
|
|
457
|
-
function Yt(e, t, n) {
|
|
458
|
-
let r = !1;
|
|
459
|
-
for (let i = t + 1; i < e.length; i++) {
|
|
460
|
-
let t = e[i];
|
|
461
|
-
if (t.separator) return !r;
|
|
462
|
-
if (r = !0, !n.has(t.id)) return !0;
|
|
463
|
-
}
|
|
464
|
-
return !1;
|
|
465
|
-
}
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region lib/components/ui/actions/toolbar/toolbar-measure.ts
|
|
468
|
-
var Xt = ":scope > [data-toolbar-id]", Zt = ":scope > [data-toolbar-more]", Qt = "\0more", $t = {
|
|
469
|
-
spilled: /* @__PURE__ */ new Set(),
|
|
470
|
-
overflowing: !1
|
|
471
|
-
};
|
|
472
|
-
function en(e, n, { enabled: r, axis: i = "x", room: a, entries: o = Xt, more: s = Zt }) {
|
|
473
|
-
if (!r) return $t;
|
|
474
|
-
let c = Array.from(e.querySelectorAll(o)), l = (e) => e.dataset.toolbarId || e.id, u = (e) => l(e) || `#${c.indexOf(e)}`;
|
|
475
|
-
for (let e of c) l(e) || t("an overflow entry has no data-toolbar-id (nor id) and never folds.", "Toolbar");
|
|
476
|
-
let d = getComputedStyle(e), f = Vt(d), p = f > 0 ? Ut() : 16;
|
|
477
|
-
for (let e of c) e.hidden || n.set(u(e), Gt(X(e, i), Ht(e, i, d, f, p), f));
|
|
478
|
-
let m = typeof s == "string" ? e.querySelector(s) : s.current;
|
|
479
|
-
m && !m.hidden && n.set(Qt, X(m, i));
|
|
480
|
-
let h = c.map((e) => {
|
|
481
|
-
let t = u(e);
|
|
482
|
-
return {
|
|
483
|
-
id: t,
|
|
484
|
-
width: n.get(t) ?? 0,
|
|
485
|
-
priority: Number(e.dataset.toolbarPriority) || 0,
|
|
486
|
-
pinned: e.dataset.toolbarPriority === "pinned" || !l(e),
|
|
487
|
-
separator: e.dataset.slot === "toolbar-separator",
|
|
488
|
-
unlisted: tn(e)
|
|
489
|
-
};
|
|
490
|
-
}), g = Math.min(...h.filter((e) => !e.separator && e.width).map((e) => e.width)), _ = n.get(Qt) ?? (Number.isFinite(g) ? g : 40), v = Ot(d, i), y = qt(h, nn(e, d, i, a), v, _);
|
|
491
|
-
return {
|
|
492
|
-
spilled: y,
|
|
493
|
-
overflowing: c.some((e) => !tn(e) && y.has(u(e)))
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
function tn(e) {
|
|
497
|
-
if (e.dataset.slot === "toolbar-separator" || e.hasAttribute("data-toolbar-unlisted")) return !0;
|
|
498
|
-
let t = Array.from(e.querySelectorAll("[data-toolbar-id]")).filter((e) => e.dataset.slot !== "toolbar-group" && e.dataset.slot !== "toolbar-toggle-group");
|
|
499
|
-
return t.length > 0 && t.every((e) => e.hasAttribute("data-toolbar-unlisted") || e.dataset.slot === "toolbar-separator");
|
|
500
|
-
}
|
|
501
|
-
function nn(e, t, n, r) {
|
|
502
|
-
return r === void 0 ? n === "x" ? rn(e, t) : It(e) : (typeof r == "function" ? r(e) : r) - kt(t, n);
|
|
503
|
-
}
|
|
504
|
-
function rn(e, t) {
|
|
505
|
-
let n = kt(t, "x");
|
|
506
|
-
if (e.dataset.variant !== "floating" || !e.parentElement) return e.offsetWidth - n;
|
|
507
|
-
let r = an(e, e.parentElement);
|
|
508
|
-
return t.maxWidth.endsWith("px") && (r = Math.min(r, Y(t.maxWidth))), r - n;
|
|
509
|
-
}
|
|
510
|
-
function an(e, t) {
|
|
511
|
-
let n = getComputedStyle(t), r = t.clientWidth - Y(n.paddingLeft) - Y(n.paddingRight);
|
|
512
|
-
if (!(n.display.includes("flex") && n.flexDirection.startsWith("row") && n.flexWrap === "nowrap")) return r;
|
|
513
|
-
let i = Array.from(t.children).filter((t) => t !== e && t instanceof HTMLElement && !["absolute", "fixed"].includes(getComputedStyle(t).position) && getComputedStyle(t).display !== "none");
|
|
514
|
-
for (let e of i) r -= X(e, "x") + Y(n.columnGap);
|
|
515
|
-
return r;
|
|
320
|
+
function kt() {
|
|
321
|
+
return O(W).moreAnchor;
|
|
516
322
|
}
|
|
517
323
|
//#endregion
|
|
518
324
|
//#region lib/components/ui/actions/toolbar/toolbar-more-tracking.ts
|
|
519
|
-
function
|
|
325
|
+
function q(e, t) {
|
|
520
326
|
let n = e.current;
|
|
521
327
|
if (!n || !(t instanceof Element)) return !1;
|
|
522
328
|
let r = t.closest("[role=\"menu\"]");
|
|
@@ -527,11 +333,11 @@ function Z(e, t) {
|
|
|
527
333
|
}
|
|
528
334
|
return !1;
|
|
529
335
|
}
|
|
530
|
-
function
|
|
336
|
+
function At(e, t, n) {
|
|
531
337
|
let r = null, i = !1, a = (e) => {
|
|
532
338
|
let a = e.target;
|
|
533
339
|
if (a instanceof HTMLElement) {
|
|
534
|
-
if (
|
|
340
|
+
if (q(n, a)) {
|
|
535
341
|
r && (i = !0);
|
|
536
342
|
return;
|
|
537
343
|
}
|
|
@@ -543,23 +349,23 @@ function on(e, t, n) {
|
|
|
543
349
|
stop: () => e.removeEventListener("focusin", a)
|
|
544
350
|
};
|
|
545
351
|
}
|
|
546
|
-
function
|
|
352
|
+
function jt(e, t, n) {
|
|
547
353
|
let r = "menu.itemSelect", i = (e) => {
|
|
548
|
-
|
|
354
|
+
q(t, e.target) && n.before();
|
|
549
355
|
}, a = (e) => {
|
|
550
|
-
|
|
356
|
+
q(t, e.target) && n.after(e.defaultPrevented);
|
|
551
357
|
}, o = (e) => {
|
|
552
|
-
n.closing() &&
|
|
358
|
+
n.closing() && q(t, e.target) && e.preventDefault();
|
|
553
359
|
};
|
|
554
360
|
return e.addEventListener(r, i, !0), e.addEventListener(r, a), e.addEventListener("pointerout", o, !0), e.addEventListener("pointermove", o, !0), () => {
|
|
555
361
|
e.removeEventListener(r, i, !0), e.removeEventListener(r, a), e.removeEventListener("pointerout", o, !0), e.removeEventListener("pointermove", o, !0);
|
|
556
362
|
};
|
|
557
363
|
}
|
|
558
|
-
var
|
|
364
|
+
var Mt = D({
|
|
559
365
|
onPointerLeave: () => {},
|
|
560
366
|
onPointerMove: () => {}
|
|
561
|
-
}),
|
|
562
|
-
function
|
|
367
|
+
}), J = () => O(Mt);
|
|
368
|
+
function Nt(e) {
|
|
563
369
|
let t = (t) => {
|
|
564
370
|
e() && t.preventDefault();
|
|
565
371
|
};
|
|
@@ -568,17 +374,17 @@ function ln(e) {
|
|
|
568
374
|
onPointerMove: t
|
|
569
375
|
};
|
|
570
376
|
}
|
|
571
|
-
function
|
|
572
|
-
let t =
|
|
377
|
+
function Pt(e) {
|
|
378
|
+
let t = M(!1), n = M(null), r = M(null), i = M(Nt(() => t.current)).current, a = () => {
|
|
573
379
|
n.current?.stop(), n.current = null;
|
|
574
380
|
}, o = () => {
|
|
575
381
|
a(), r.current?.(), r.current = null;
|
|
576
382
|
};
|
|
577
|
-
|
|
383
|
+
k(() => () => {
|
|
578
384
|
n.current?.stop(), r.current?.();
|
|
579
385
|
}, []);
|
|
580
386
|
let s = (t) => {
|
|
581
|
-
n.current ||=
|
|
387
|
+
n.current ||= At(t?.ownerDocument ?? document, t, e);
|
|
582
388
|
};
|
|
583
389
|
return {
|
|
584
390
|
guard: i,
|
|
@@ -586,7 +392,7 @@ function un(e) {
|
|
|
586
392
|
t.current = !0, s(e);
|
|
587
393
|
},
|
|
588
394
|
reset(n) {
|
|
589
|
-
t.current = !1, o(), r.current =
|
|
395
|
+
t.current = !1, o(), r.current = jt(n?.ownerDocument ?? document, e, {
|
|
590
396
|
closing: () => t.current,
|
|
591
397
|
before: () => s(n),
|
|
592
398
|
after(e) {
|
|
@@ -605,23 +411,23 @@ function un(e) {
|
|
|
605
411
|
}
|
|
606
412
|
//#endregion
|
|
607
413
|
//#region lib/components/ui/actions/toolbar/toolbar-more-drill.tsx
|
|
608
|
-
var
|
|
609
|
-
function
|
|
414
|
+
var Ft = D(null), It = 8;
|
|
415
|
+
function Lt(e) {
|
|
610
416
|
let t = e.closest("[role=\"menu\"]"), n = e.ownerDocument.defaultView;
|
|
611
417
|
if (!t || !n) return !0;
|
|
612
418
|
let r = Number.parseFloat(n.getComputedStyle(e.ownerDocument.documentElement).fontSize) || 16, i = t.getBoundingClientRect();
|
|
613
|
-
return Math.max(i.left, n.innerWidth - i.right) >= Math.max(12 * r, i.width) +
|
|
419
|
+
return Math.max(i.left, n.innerWidth - i.right) >= Math.max(12 * r, i.width) + It;
|
|
614
420
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
let [t, n] =
|
|
421
|
+
var Rt = (e) => e.querySelector("[role^=\"menuitem\"]:not([data-more-back]):not([data-disabled]):not([aria-disabled=\"true\"])");
|
|
422
|
+
function zt(e) {
|
|
423
|
+
let [t, n] = N([]), r = t[t.length - 1] ?? null, i = M(null), a = M(null), o = M(-Infinity), s = () => {
|
|
618
424
|
a.current = r?.id ?? null, n(t.slice(0, -1));
|
|
619
425
|
};
|
|
620
|
-
|
|
426
|
+
k(() => {
|
|
621
427
|
let e = i.current;
|
|
622
428
|
if (!e) return;
|
|
623
429
|
let t = a.current;
|
|
624
|
-
a.current = null, (t ? e.querySelector(`[data-more-row="${CSS.escape(t)}"]`) : r ?
|
|
430
|
+
a.current = null, (t ? e.querySelector(`[data-more-row="${CSS.escape(t)}"]`) : r ? Rt(e) ?? e.querySelector("[data-more-back]") : null)?.focus({ preventScroll: !0 });
|
|
625
431
|
}, [r]);
|
|
626
432
|
let c = e === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
627
433
|
return {
|
|
@@ -646,50 +452,50 @@ function hn(e) {
|
|
|
646
452
|
}
|
|
647
453
|
};
|
|
648
454
|
}
|
|
649
|
-
function
|
|
650
|
-
let { t: n } =
|
|
651
|
-
return /* @__PURE__ */
|
|
652
|
-
/* @__PURE__ */
|
|
455
|
+
function Bt({ drill: e, leave: t }) {
|
|
456
|
+
let { t: n } = Ce(), r = n("material.toolbar.back", "Back");
|
|
457
|
+
return /* @__PURE__ */ I(P, { children: [
|
|
458
|
+
/* @__PURE__ */ I(ge, {
|
|
653
459
|
"data-more-back": "",
|
|
654
|
-
...
|
|
460
|
+
...J(),
|
|
655
461
|
"aria-label": `${r} ${e.label}`,
|
|
656
462
|
onSelect: (e) => {
|
|
657
463
|
e.preventDefault(), t();
|
|
658
464
|
},
|
|
659
465
|
children: [
|
|
660
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ F(ke, {
|
|
661
467
|
"aria-hidden": !0,
|
|
662
468
|
className: "rtl:rotate-180"
|
|
663
469
|
}),
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ F("span", { children: r }),
|
|
471
|
+
/* @__PURE__ */ F("span", {
|
|
666
472
|
className: "text-muted-foreground truncate",
|
|
667
473
|
children: e.label
|
|
668
474
|
})
|
|
669
475
|
]
|
|
670
476
|
}),
|
|
671
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ F(pe, {}),
|
|
672
478
|
e.content
|
|
673
479
|
] });
|
|
674
480
|
}
|
|
675
481
|
//#endregion
|
|
676
482
|
//#region lib/components/ui/actions/toolbar/toolbar-more-sub.tsx
|
|
677
|
-
var
|
|
678
|
-
function
|
|
679
|
-
let s =
|
|
483
|
+
var Vt = 1e3;
|
|
484
|
+
function Ht({ id: e, lead: t, label: n, value: r, inset: i, disabled: a, children: o }) {
|
|
485
|
+
let s = O(Ft), c = J(), l = (e) => !!s && !a && !Lt(e.currentTarget), u = (t) => {
|
|
680
486
|
l(t) && (t.preventDefault(), s?.enter({
|
|
681
487
|
id: e,
|
|
682
488
|
label: n,
|
|
683
489
|
content: o
|
|
684
490
|
}));
|
|
685
491
|
}, d = s?.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
686
|
-
return /* @__PURE__ */
|
|
492
|
+
return /* @__PURE__ */ I(wt, { children: [/* @__PURE__ */ I(Tt, {
|
|
687
493
|
"data-more-row": e,
|
|
688
494
|
inset: i,
|
|
689
495
|
disabled: a,
|
|
690
496
|
onClick: u,
|
|
691
497
|
onKeyDown: (e) => {
|
|
692
|
-
e.key === " " && performance.now() - (s?.typedAt() ?? 0) <
|
|
498
|
+
e.key === " " && performance.now() - (s?.typedAt() ?? 0) < Vt || [
|
|
693
499
|
"Enter",
|
|
694
500
|
" ",
|
|
695
501
|
d
|
|
@@ -702,56 +508,56 @@ function vn({ id: e, lead: t, label: n, value: r, inset: i, disabled: a, childre
|
|
|
702
508
|
let t = e.currentTarget;
|
|
703
509
|
e.pointerType === "mouse" && t.ownerDocument.activeElement !== t && t.focus({ preventScroll: !0 });
|
|
704
510
|
},
|
|
705
|
-
children: [t, /* @__PURE__ */
|
|
511
|
+
children: [t, /* @__PURE__ */ I("span", {
|
|
706
512
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
707
|
-
children: [/* @__PURE__ */
|
|
513
|
+
children: [/* @__PURE__ */ F("span", {
|
|
708
514
|
className: "truncate",
|
|
709
515
|
children: n
|
|
710
|
-
}), r ? /* @__PURE__ */
|
|
516
|
+
}), r ? /* @__PURE__ */ F("span", {
|
|
711
517
|
className: "text-muted-foreground ms-auto truncate text-xs",
|
|
712
518
|
children: r
|
|
713
519
|
}) : null]
|
|
714
520
|
})]
|
|
715
|
-
}), /* @__PURE__ */
|
|
521
|
+
}), /* @__PURE__ */ F(Et, { children: o })] });
|
|
716
522
|
}
|
|
717
523
|
//#endregion
|
|
718
524
|
//#region lib/components/ui/actions/toolbar/toolbar-more-item.tsx
|
|
719
|
-
var
|
|
525
|
+
var Ut = (e) => e.getAttribute("aria-pressed") === "true" || e.getAttribute("aria-checked") === "true" || e.dataset.state === "on", Y = (e) => e.disabled || e.getAttribute("aria-disabled") === "true", Wt = (e) => ({
|
|
720
526
|
icons: e.some((e) => e.icon),
|
|
721
527
|
inset: e.some((e) => e.render.kind === "checkbox")
|
|
722
528
|
});
|
|
723
|
-
function
|
|
724
|
-
return t.icons ? /* @__PURE__ */
|
|
529
|
+
function Gt({ icon: e, layout: t }) {
|
|
530
|
+
return t.icons ? /* @__PURE__ */ F("span", {
|
|
725
531
|
"aria-hidden": !0,
|
|
726
532
|
className: "flex size-4 shrink-0 text-muted-foreground",
|
|
727
533
|
children: e
|
|
728
534
|
}) : null;
|
|
729
535
|
}
|
|
730
|
-
function
|
|
731
|
-
let { item: r, label: i, icon: a, render: o } = e, s = /* @__PURE__ */
|
|
536
|
+
function Kt({ row: e, layout: t, select: n }) {
|
|
537
|
+
let { item: r, label: i, icon: a, render: o } = e, s = /* @__PURE__ */ F(Gt, {
|
|
732
538
|
icon: a,
|
|
733
539
|
layout: t
|
|
734
|
-
}), c = () => n(e), l =
|
|
735
|
-
if (o.kind === "checkbox") return /* @__PURE__ */
|
|
736
|
-
checked: o.checked ??
|
|
737
|
-
disabled:
|
|
540
|
+
}), c = () => n(e), l = J();
|
|
541
|
+
if (o.kind === "checkbox") return /* @__PURE__ */ I(de, {
|
|
542
|
+
checked: o.checked ?? Ut(r),
|
|
543
|
+
disabled: Y(r),
|
|
738
544
|
onSelect: c,
|
|
739
545
|
...l,
|
|
740
546
|
children: [s, i]
|
|
741
547
|
});
|
|
742
|
-
if (o.kind === "submenu") return /* @__PURE__ */
|
|
548
|
+
if (o.kind === "submenu") return /* @__PURE__ */ F(Ht, {
|
|
743
549
|
id: e.id,
|
|
744
550
|
lead: s,
|
|
745
551
|
label: i,
|
|
746
552
|
value: o.value,
|
|
747
553
|
inset: t.inset || void 0,
|
|
748
|
-
disabled:
|
|
554
|
+
disabled: Y(r),
|
|
749
555
|
children: o.content
|
|
750
556
|
});
|
|
751
557
|
let u = o.kind === "popover" || o.kind === "dialog";
|
|
752
|
-
return /* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ I(ge, {
|
|
753
559
|
inset: t.inset || void 0,
|
|
754
|
-
disabled:
|
|
560
|
+
disabled: Y(r),
|
|
755
561
|
"aria-haspopup": u ? "dialog" : void 0,
|
|
756
562
|
onSelect: c,
|
|
757
563
|
...l,
|
|
@@ -760,44 +566,44 @@ function Sn({ row: e, layout: t, select: n }) {
|
|
|
760
566
|
}
|
|
761
567
|
//#endregion
|
|
762
568
|
//#region lib/components/ui/actions/toolbar/toolbar-more-group.tsx
|
|
763
|
-
function
|
|
764
|
-
let i = (e) => e.toggle && !e.more, a = e.rows.find((e) => i(e) &&
|
|
765
|
-
return /* @__PURE__ */
|
|
569
|
+
function qt({ row: e, name: t, title: n, select: r }) {
|
|
570
|
+
let i = (e) => e.toggle && !e.more, a = e.rows.find((e) => i(e) && Ut(e.item)), o = Wt(e.rows), s = J();
|
|
571
|
+
return /* @__PURE__ */ I(se, {
|
|
766
572
|
...t,
|
|
767
573
|
value: a?.id ?? "",
|
|
768
|
-
children: [n, e.rows.map((e) => i(e) ? /* @__PURE__ */
|
|
574
|
+
children: [n, e.rows.map((e) => i(e) ? /* @__PURE__ */ I(ce, {
|
|
769
575
|
value: e.id,
|
|
770
|
-
disabled:
|
|
576
|
+
disabled: Y(e.item),
|
|
771
577
|
...s,
|
|
772
578
|
onSelect: () => {
|
|
773
|
-
(e.onSelect || !
|
|
579
|
+
(e.onSelect || !Ut(e.item)) && r(e);
|
|
774
580
|
},
|
|
775
|
-
children: [/* @__PURE__ */
|
|
581
|
+
children: [/* @__PURE__ */ F(Gt, {
|
|
776
582
|
icon: e.icon,
|
|
777
583
|
layout: o
|
|
778
584
|
}), e.label]
|
|
779
|
-
}, e.id) : /* @__PURE__ */
|
|
585
|
+
}, e.id) : /* @__PURE__ */ F(Kt, {
|
|
780
586
|
row: e,
|
|
781
587
|
layout: o,
|
|
782
588
|
select: r
|
|
783
589
|
}, e.id))]
|
|
784
590
|
});
|
|
785
591
|
}
|
|
786
|
-
function
|
|
787
|
-
let r = `${e.id}-name`, i = n ? { "aria-labelledby": r } : { "aria-label": e.label }, a = n ? /* @__PURE__ */
|
|
592
|
+
function Jt({ row: e, select: t, titled: n }) {
|
|
593
|
+
let r = `${e.id}-name`, i = n ? { "aria-labelledby": r } : { "aria-label": e.label }, a = n ? /* @__PURE__ */ F(le, {
|
|
788
594
|
id: r,
|
|
789
595
|
children: e.label
|
|
790
596
|
}) : null;
|
|
791
|
-
if (e.choice === "single") return /* @__PURE__ */
|
|
597
|
+
if (e.choice === "single") return /* @__PURE__ */ F(qt, {
|
|
792
598
|
row: e,
|
|
793
599
|
name: i,
|
|
794
600
|
title: a,
|
|
795
601
|
select: t
|
|
796
602
|
});
|
|
797
|
-
let o =
|
|
798
|
-
return /* @__PURE__ */
|
|
603
|
+
let o = Wt(e.rows);
|
|
604
|
+
return /* @__PURE__ */ I(me, {
|
|
799
605
|
...i,
|
|
800
|
-
children: [a, e.rows.map((e) => /* @__PURE__ */
|
|
606
|
+
children: [a, e.rows.map((e) => /* @__PURE__ */ F(Kt, {
|
|
801
607
|
row: e,
|
|
802
608
|
layout: o,
|
|
803
609
|
select: t
|
|
@@ -806,21 +612,21 @@ function wn({ row: e, select: t, titled: n }) {
|
|
|
806
612
|
}
|
|
807
613
|
//#endregion
|
|
808
614
|
//#region lib/components/ui/actions/toolbar/toolbar-more-items.tsx
|
|
809
|
-
function
|
|
810
|
-
let n =
|
|
811
|
-
return e.map((e) => e.kind === "separator" ? /* @__PURE__ */
|
|
615
|
+
function Yt({ rows: e, select: t }) {
|
|
616
|
+
let n = Wt(e.filter((e) => e.kind === "item"));
|
|
617
|
+
return e.map((e) => e.kind === "separator" ? /* @__PURE__ */ F(pe, {}, e.id) : e.kind === "item" ? /* @__PURE__ */ F(Kt, {
|
|
812
618
|
row: e,
|
|
813
619
|
layout: n,
|
|
814
620
|
select: t
|
|
815
|
-
}, e.id) : e.moreAs === "submenu" ? /* @__PURE__ */
|
|
621
|
+
}, e.id) : e.moreAs === "submenu" ? /* @__PURE__ */ F(Ht, {
|
|
816
622
|
id: e.id,
|
|
817
623
|
label: e.label,
|
|
818
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ F(Jt, {
|
|
819
625
|
row: e,
|
|
820
626
|
select: t,
|
|
821
627
|
titled: !1
|
|
822
628
|
})
|
|
823
|
-
}, e.id) : /* @__PURE__ */
|
|
629
|
+
}, e.id) : /* @__PURE__ */ F(Jt, {
|
|
824
630
|
row: e,
|
|
825
631
|
select: t,
|
|
826
632
|
titled: e.rows.length > 1
|
|
@@ -828,38 +634,38 @@ function Tn({ rows: e, select: t }) {
|
|
|
828
634
|
}
|
|
829
635
|
//#endregion
|
|
830
636
|
//#region lib/components/ui/actions/toolbar/toolbar-return-focus.ts
|
|
831
|
-
var
|
|
832
|
-
function
|
|
833
|
-
e.settling && a ===
|
|
637
|
+
var Xt = "[role=\"dialog\"],[role=\"alertdialog\"],[data-radix-popper-content-wrapper]", Zt = "[role=\"menu\"]", Qt = 90, $t = (e, t) => e.opened && t.getAttribute("aria-expanded") === "false" || !!(e.layer && !e.layer.isConnected);
|
|
638
|
+
function en(e, t, n, r, i, a = Qt) {
|
|
639
|
+
e.settling && a === Qt || (e.settling = !0, requestAnimationFrame(() => {
|
|
834
640
|
if (r.aborted || !t.isConnected) return i();
|
|
835
|
-
if (
|
|
641
|
+
if (!$t(e, t)) {
|
|
836
642
|
e.settling = !1;
|
|
837
643
|
return;
|
|
838
644
|
}
|
|
839
645
|
let o = document.activeElement;
|
|
840
646
|
if (o?.closest("[role=\"dialog\"],[role=\"alertdialog\"],[data-radix-popper-content-wrapper]")) {
|
|
841
|
-
if (a > 0) return
|
|
647
|
+
if (a > 0) return en(e, t, n, r, i, a - 1);
|
|
842
648
|
e.settling = !1;
|
|
843
649
|
return;
|
|
844
650
|
}
|
|
845
651
|
(!o || o === document.body) && (n.isConnected && !n.hidden ? n : t).focus({ preventScroll: !0 }), i();
|
|
846
652
|
}));
|
|
847
653
|
}
|
|
848
|
-
function
|
|
654
|
+
function tn(e, t, n, r, i) {
|
|
849
655
|
document.addEventListener("focusin", ({ target: n }) => {
|
|
850
|
-
if (!(n instanceof HTMLElement) || n === t || n.closest(
|
|
851
|
-
let i = n.closest(
|
|
656
|
+
if (!(n instanceof HTMLElement) || n === t || n.closest(Zt)) return;
|
|
657
|
+
let i = n.closest(Xt);
|
|
852
658
|
i ? e.layer = i : n !== document.body && r();
|
|
853
659
|
}, { signal: n }), document.addEventListener("focusout", ({ relatedTarget: e }) => {
|
|
854
660
|
!e && document.hasFocus() && i();
|
|
855
661
|
}, { signal: n }), document.addEventListener("pointerdown", ({ target: e }) => {
|
|
856
|
-
(e instanceof Element ? e : null)?.closest(`[role="dialog"],[role="alertdialog"],[data-radix-popper-content-wrapper],${
|
|
662
|
+
(e instanceof Element ? e : null)?.closest(`[role="dialog"],[role="alertdialog"],[data-radix-popper-content-wrapper],${Zt}`) || r();
|
|
857
663
|
}, {
|
|
858
664
|
capture: !0,
|
|
859
665
|
signal: n
|
|
860
666
|
});
|
|
861
667
|
}
|
|
862
|
-
function
|
|
668
|
+
function nn(e, t) {
|
|
863
669
|
let n = new AbortController(), { signal: r } = n, i = {
|
|
864
670
|
layer: null,
|
|
865
671
|
opened: e.getAttribute("aria-expanded") === "true",
|
|
@@ -869,7 +675,7 @@ function Mn(e, t) {
|
|
|
869
675
|
}), o = () => {
|
|
870
676
|
n.abort(), a.disconnect();
|
|
871
677
|
}, s = () => {
|
|
872
|
-
|
|
678
|
+
$t(i, e) && en(i, e, t, r, o);
|
|
873
679
|
};
|
|
874
680
|
return a.observe(e, {
|
|
875
681
|
attributes: !0,
|
|
@@ -877,29 +683,29 @@ function Mn(e, t) {
|
|
|
877
683
|
}), a.observe(document.body, {
|
|
878
684
|
childList: !0,
|
|
879
685
|
subtree: !0
|
|
880
|
-
}),
|
|
686
|
+
}), tn(i, t, r, o, s), o;
|
|
881
687
|
}
|
|
882
688
|
//#endregion
|
|
883
689
|
//#region lib/components/ui/actions/toolbar/toolbar-more-launch.ts
|
|
884
|
-
var
|
|
885
|
-
function
|
|
690
|
+
var rn = "a[href],button:not([disabled]),input:not([disabled]):not([type=\"hidden\"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", an = (e) => e.onSelect ? e.onSelect() : e.item.click();
|
|
691
|
+
function on(e, t) {
|
|
886
692
|
let n = (e instanceof Node ? e : t)?.ownerDocument, r = n?.activeElement;
|
|
887
693
|
return !n || !r || r === n.body ? !1 : !(e instanceof Node && e.contains(r)) && !t?.contains(r);
|
|
888
694
|
}
|
|
889
|
-
function
|
|
695
|
+
function sn(e, t = 20) {
|
|
890
696
|
let n = e.getAttribute("aria-controls"), r = n ? document.getElementById(n) : null;
|
|
891
697
|
if (!r) {
|
|
892
|
-
t > 0 && requestAnimationFrame(() =>
|
|
698
|
+
t > 0 && requestAnimationFrame(() => sn(e, t - 1));
|
|
893
699
|
return;
|
|
894
700
|
}
|
|
895
|
-
(r.querySelector(
|
|
701
|
+
(r.querySelector(rn) ?? r).focus({ preventScroll: !0 });
|
|
896
702
|
}
|
|
897
|
-
function
|
|
898
|
-
let n =
|
|
899
|
-
|
|
703
|
+
function cn(e, t) {
|
|
704
|
+
let n = M(null), r = M(null), i = Pt(t);
|
|
705
|
+
k(() => () => r.current?.(), []);
|
|
900
706
|
let a = (t) => {
|
|
901
707
|
let n = e.current, i = "returnFocus" in t.render && t.render.returnFocus === !1;
|
|
902
|
-
!n || i || (r.current?.(), r.current =
|
|
708
|
+
!n || i || (r.current?.(), r.current = nn(t.item, n));
|
|
903
709
|
};
|
|
904
710
|
return {
|
|
905
711
|
guard: i.guard,
|
|
@@ -909,13 +715,13 @@ function Ln(e, t) {
|
|
|
909
715
|
n.current = t;
|
|
910
716
|
return;
|
|
911
717
|
}
|
|
912
|
-
|
|
718
|
+
an(t), t.render.kind === "dialog" && a(t);
|
|
913
719
|
},
|
|
914
720
|
onCloseAutoFocus(t) {
|
|
915
721
|
document.activeElement?.closest("[role=\"dialog\"],[role=\"alertdialog\"],[data-radix-popper-content-wrapper]") && t.preventDefault();
|
|
916
722
|
let r = n.current;
|
|
917
723
|
if (!r) {
|
|
918
|
-
if (
|
|
724
|
+
if (on(t.target, e.current)) {
|
|
919
725
|
i.end(), t.preventDefault();
|
|
920
726
|
return;
|
|
921
727
|
}
|
|
@@ -923,40 +729,40 @@ function Ln(e, t) {
|
|
|
923
729
|
return;
|
|
924
730
|
}
|
|
925
731
|
i.end(), n.current = null, t.preventDefault(), requestAnimationFrame(() => {
|
|
926
|
-
|
|
732
|
+
an(r), a(r), sn(r.item);
|
|
927
733
|
});
|
|
928
734
|
}
|
|
929
735
|
};
|
|
930
736
|
}
|
|
931
737
|
//#endregion
|
|
932
738
|
//#region lib/components/ui/actions/toolbar/toolbar-more-render.ts
|
|
933
|
-
function
|
|
739
|
+
function ln(e) {
|
|
934
740
|
return e.more ? e.more : e.toggle ? { kind: "checkbox" } : { kind: "item" };
|
|
935
741
|
}
|
|
936
742
|
//#endregion
|
|
937
743
|
//#region lib/components/ui/actions/toolbar/toolbar-more-rows.ts
|
|
938
|
-
var
|
|
939
|
-
function
|
|
940
|
-
let
|
|
941
|
-
return
|
|
942
|
-
...
|
|
744
|
+
var un = "[data-toolbar-id]";
|
|
745
|
+
function dn(e, t, n) {
|
|
746
|
+
let r = ln(n);
|
|
747
|
+
return r.kind === "none" ? null : (!n.more && !n.onSelect && t.getAttribute("aria-haspopup") === "menu" && Se(`"${n.label}" opens a menu and is folded into More without \`more\`: pass more={{ kind: 'submenu', content }} (or an onSelect).`, "Toolbar"), {
|
|
748
|
+
...n,
|
|
943
749
|
id: e,
|
|
944
|
-
item:
|
|
750
|
+
item: t,
|
|
945
751
|
kind: "item",
|
|
946
|
-
render:
|
|
752
|
+
render: r
|
|
947
753
|
});
|
|
948
754
|
}
|
|
949
|
-
function
|
|
755
|
+
function fn(e, t) {
|
|
950
756
|
let n = [];
|
|
951
|
-
for (let r of e.querySelectorAll(
|
|
757
|
+
for (let r of e.querySelectorAll(un)) {
|
|
952
758
|
let e = r.dataset.toolbarId ?? "", i = t.get(e);
|
|
953
759
|
if (!i || i.separator || i.group) continue;
|
|
954
|
-
let a =
|
|
760
|
+
let a = dn(e, r, i);
|
|
955
761
|
a && n.push(a);
|
|
956
762
|
}
|
|
957
763
|
return n;
|
|
958
764
|
}
|
|
959
|
-
function
|
|
765
|
+
function pn(e, t) {
|
|
960
766
|
if (!e) return [];
|
|
961
767
|
let n = [], r = (e) => {
|
|
962
768
|
let t = n[n.length - 1];
|
|
@@ -965,11 +771,11 @@ function Hn(e, t) {
|
|
|
965
771
|
kind: "separator"
|
|
966
772
|
});
|
|
967
773
|
};
|
|
968
|
-
for (let i of e.querySelectorAll(`:scope > ${
|
|
774
|
+
for (let i of e.querySelectorAll(`:scope > ${un}[hidden]`)) {
|
|
969
775
|
let e = i.dataset.toolbarId ?? "", a = t.get(e);
|
|
970
776
|
if (a) if (a.separator) r(e);
|
|
971
777
|
else if (a.group) {
|
|
972
|
-
let o =
|
|
778
|
+
let o = fn(i, t);
|
|
973
779
|
if (!o.length) continue;
|
|
974
780
|
r(`${e}-before`), o.length === 1 && a.choice !== "single" ? n.push(o[0]) : n.push({
|
|
975
781
|
id: e,
|
|
@@ -980,7 +786,7 @@ function Hn(e, t) {
|
|
|
980
786
|
rows: o
|
|
981
787
|
}), r(`${e}-after`);
|
|
982
788
|
} else {
|
|
983
|
-
let t =
|
|
789
|
+
let t = dn(e, i, a);
|
|
984
790
|
t && n.push(t);
|
|
985
791
|
}
|
|
986
792
|
}
|
|
@@ -988,16 +794,16 @@ function Hn(e, t) {
|
|
|
988
794
|
}
|
|
989
795
|
//#endregion
|
|
990
796
|
//#region lib/components/ui/actions/toolbar/toolbar-more.tsx
|
|
991
|
-
function
|
|
992
|
-
let { t: o } =
|
|
993
|
-
return /* @__PURE__ */
|
|
797
|
+
function mn({ root: e, hidden: t, label: n, dir: r, side: i, align: a = "end" }) {
|
|
798
|
+
let { t: o } = Ce(), { entries: s, dir: c, orientation: l } = O(W), u = r ?? c, d = i ?? (l === "vertical" ? u === "rtl" ? "left" : "right" : void 0), f = zt(u), p = M(null), m = cn(p, f.contentProps.ref), [h, g] = N([]), _ = () => e?.current ?? p.current?.closest("[role=\"toolbar\"]") ?? null;
|
|
799
|
+
return /* @__PURE__ */ I(he, {
|
|
994
800
|
dir: u,
|
|
995
801
|
onOpenChange: (e) => {
|
|
996
|
-
e && (f.reset(), m.reset(), g(
|
|
802
|
+
e && (f.reset(), m.reset(), g(pn(_(), s)));
|
|
997
803
|
},
|
|
998
|
-
children: [/* @__PURE__ */
|
|
804
|
+
children: [/* @__PURE__ */ F(ae, {
|
|
999
805
|
asChild: !0,
|
|
1000
|
-
children: /* @__PURE__ */
|
|
806
|
+
children: /* @__PURE__ */ F(U, {
|
|
1001
807
|
ref: p,
|
|
1002
808
|
type: "button",
|
|
1003
809
|
"data-slot": "toolbar-more",
|
|
@@ -1005,22 +811,22 @@ function Un({ root: e, hidden: t, label: n, dir: r, side: i, align: a = "end" })
|
|
|
1005
811
|
hidden: t || void 0,
|
|
1006
812
|
"aria-label": n ?? o("material.toolbar.more", "More"),
|
|
1007
813
|
className: "nxgt-toolbar-item",
|
|
1008
|
-
children: /* @__PURE__ */
|
|
814
|
+
children: /* @__PURE__ */ F(je, {})
|
|
1009
815
|
})
|
|
1010
|
-
}), /* @__PURE__ */
|
|
816
|
+
}), /* @__PURE__ */ F(fe, {
|
|
1011
817
|
side: d,
|
|
1012
818
|
align: a,
|
|
1013
819
|
className: "min-w-48",
|
|
1014
820
|
onCloseAutoFocus: m.onCloseAutoFocus,
|
|
1015
821
|
...f.contentProps,
|
|
1016
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ F(Mt, {
|
|
1017
823
|
value: m.guard,
|
|
1018
|
-
children: /* @__PURE__ */
|
|
824
|
+
children: /* @__PURE__ */ F(Ft, {
|
|
1019
825
|
value: f.api,
|
|
1020
|
-
children: f.drill ? /* @__PURE__ */
|
|
826
|
+
children: f.drill ? /* @__PURE__ */ F(Bt, {
|
|
1021
827
|
drill: f.drill,
|
|
1022
828
|
leave: f.leave
|
|
1023
|
-
}) : /* @__PURE__ */
|
|
829
|
+
}) : /* @__PURE__ */ F(Yt, {
|
|
1024
830
|
rows: h,
|
|
1025
831
|
select: m.select
|
|
1026
832
|
})
|
|
@@ -1030,33 +836,227 @@ function Un({ root: e, hidden: t, label: n, dir: r, side: i, align: a = "end" })
|
|
|
1030
836
|
});
|
|
1031
837
|
}
|
|
1032
838
|
//#endregion
|
|
839
|
+
//#region lib/components/ui/actions/toolbar/toolbar-axis.ts
|
|
840
|
+
var X = (e) => Number.parseFloat(e) || 0;
|
|
841
|
+
function Z(e, t) {
|
|
842
|
+
let n = getComputedStyle(e);
|
|
843
|
+
return t === "x" ? e.offsetWidth + X(n.marginLeft) + X(n.marginRight) : e.offsetHeight + X(n.marginTop) + X(n.marginBottom);
|
|
844
|
+
}
|
|
845
|
+
function hn(e, t) {
|
|
846
|
+
return X(t === "x" ? e.columnGap : e.rowGap);
|
|
847
|
+
}
|
|
848
|
+
function Q(e, t) {
|
|
849
|
+
return t === "x" ? X(e.paddingLeft) + X(e.paddingRight) + X(e.borderLeftWidth) + X(e.borderRightWidth) : X(e.paddingTop) + X(e.paddingBottom) + X(e.borderTopWidth) + X(e.borderBottomWidth);
|
|
850
|
+
}
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region lib/components/ui/actions/toolbar/toolbar-block-room.ts
|
|
853
|
+
function gn(e) {
|
|
854
|
+
let { height: t, cap: n } = _n(e), r = [t, n].filter((e) => e > 0);
|
|
855
|
+
return r.length ? Math.min(...r) : 0;
|
|
856
|
+
}
|
|
857
|
+
function _n(e) {
|
|
858
|
+
let t = (t) => {
|
|
859
|
+
let n = document.createElement("div");
|
|
860
|
+
n.setAttribute("aria-hidden", "true"), n.style.setProperty("position", "relative"), n.style.setProperty("visibility", "hidden"), n.style.setProperty("width", "0"), n.style.setProperty("flex", "none");
|
|
861
|
+
for (let [e, r] of Object.entries(t)) n.style.setProperty(e, r);
|
|
862
|
+
e.appendChild(n);
|
|
863
|
+
let r = n.offsetHeight;
|
|
864
|
+
return n.remove(), r;
|
|
865
|
+
}, n = t({ height: "100%" }), r = getComputedStyle(e).maxHeight, i = r === "none" || r.endsWith("%") ? 0 : t({
|
|
866
|
+
height: "100000px",
|
|
867
|
+
"max-height": "inherit"
|
|
868
|
+
});
|
|
869
|
+
return {
|
|
870
|
+
height: n,
|
|
871
|
+
cap: i < 1e5 ? i : 0
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function vn(e, t) {
|
|
875
|
+
let n = getComputedStyle(t);
|
|
876
|
+
if (!n.display.includes("flex") || !n.flexDirection.startsWith("column") || n.flexWrap !== "nowrap") return 0;
|
|
877
|
+
let r = 0;
|
|
878
|
+
for (let i of Array.from(t.children)) {
|
|
879
|
+
if (i === e || !(i instanceof HTMLElement)) continue;
|
|
880
|
+
let t = getComputedStyle(i);
|
|
881
|
+
["absolute", "fixed"].includes(t.position) || t.display !== "none" && (r += Z(i, "y") + X(n.rowGap));
|
|
882
|
+
}
|
|
883
|
+
return r;
|
|
884
|
+
}
|
|
885
|
+
function yn(e) {
|
|
886
|
+
for (let t = e.parentElement; t; t = t.parentElement) if (/(auto|scroll)/.test(getComputedStyle(t).overflowY) && t.scrollHeight > t.clientHeight) return t;
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
function bn(e) {
|
|
890
|
+
for (let t = e; t; t = t.parentElement) {
|
|
891
|
+
let n = getComputedStyle(t);
|
|
892
|
+
if (n.position !== "sticky" || n.top === "auto") continue;
|
|
893
|
+
let r = e.getBoundingClientRect().top - t.getBoundingClientRect().top;
|
|
894
|
+
return X(n.top) + Math.max(0, r);
|
|
895
|
+
}
|
|
896
|
+
return -1;
|
|
897
|
+
}
|
|
898
|
+
function xn(e) {
|
|
899
|
+
let t = bn(e);
|
|
900
|
+
if (t < 0) return Infinity;
|
|
901
|
+
let n = yn(e);
|
|
902
|
+
return (n ? n.clientHeight : window.innerHeight) - t - 16;
|
|
903
|
+
}
|
|
904
|
+
function Sn(e) {
|
|
905
|
+
let t = getComputedStyle(e), n = Q(t, "y"), r = e.parentElement, i = _n(e), a = r ? gn(r) - vn(e, r) : 0, o = t.boxSizing === "border-box" ? n : 0, s = [
|
|
906
|
+
a > 0 ? a - n : 0,
|
|
907
|
+
i.height,
|
|
908
|
+
i.cap > 0 ? i.cap - o : 0
|
|
909
|
+
].filter((e) => e > 0);
|
|
910
|
+
return Math.min(...s, xn(e) - n);
|
|
911
|
+
}
|
|
912
|
+
//#endregion
|
|
913
|
+
//#region lib/components/ui/actions/toolbar/toolbar-morph-probe.ts
|
|
914
|
+
var Cn = ":is(.nxgt-toolbar-item, [data-toolbar-item][data-toolbar-fit]):not([data-toolbar-shape=\"round\"])", wn = ":is([aria-pressed=\"true\"], [aria-checked=\"true\"], [data-state=\"on\"])", Tn = ":is([aria-pressed], [aria-checked], [data-state=\"on\"], [data-state=\"off\"])";
|
|
915
|
+
function En(e, t) {
|
|
916
|
+
let n = Number.parseFloat(e);
|
|
917
|
+
return Number.isFinite(n) ? e.trim().endsWith("rem") || e.trim().endsWith("em") ? n * t : n : 0;
|
|
918
|
+
}
|
|
919
|
+
function Dn(e) {
|
|
920
|
+
return X(e.getPropertyValue("--tb-morph"));
|
|
921
|
+
}
|
|
922
|
+
function On(e, t, n, r, i) {
|
|
923
|
+
let a = {
|
|
924
|
+
widening: 0,
|
|
925
|
+
toggles: 0,
|
|
926
|
+
single: !1
|
|
927
|
+
};
|
|
928
|
+
if (r <= 0) return a;
|
|
929
|
+
let o = En(n.getPropertyValue("--tb-item"), i), s = [...e.matches(Cn) ? [e] : [], ...Array.from(e.querySelectorAll(Cn))].filter((e) => e.matches(Tn) && !e.hidden), c = 0;
|
|
930
|
+
for (let e of s) {
|
|
931
|
+
if (!e.matches(".nxgt-toolbar-item") && !e.matches(wn)) continue;
|
|
932
|
+
let n = t === "x" ? e.offsetWidth : e.offsetHeight;
|
|
933
|
+
c += Math.max(0, Math.min(r * 2, n - o));
|
|
934
|
+
}
|
|
935
|
+
return {
|
|
936
|
+
widening: c,
|
|
937
|
+
toggles: s.length,
|
|
938
|
+
single: e.dataset.toolbarChoice === "single"
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
var kn = () => X(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region lib/components/ui/actions/toolbar/toolbar-morph-room.ts
|
|
944
|
+
function An(e, t) {
|
|
945
|
+
return t <= 0 ? 0 : t * (e.single ? Math.min(1, e.toggles) : e.toggles);
|
|
946
|
+
}
|
|
947
|
+
function jn(e, t, n) {
|
|
948
|
+
return n <= 0 ? e : e - t.widening + An(t, n);
|
|
949
|
+
}
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region lib/components/ui/actions/toolbar/toolbar-spill.ts
|
|
952
|
+
var Mn = (e, t, n) => e.reduce((e, r) => t.has(r.id) ? e : e + r.width + n, 0);
|
|
953
|
+
function Nn(e, t, n, r) {
|
|
954
|
+
if (Mn(e, /* @__PURE__ */ new Set(), n) - (e.length ? n : 0) <= t) return /* @__PURE__ */ new Set();
|
|
955
|
+
let i = e.map((e, t) => ({
|
|
956
|
+
slot: e,
|
|
957
|
+
i: t
|
|
958
|
+
})).filter(({ slot: e }) => !e.separator && !e.pinned).sort((e, t) => e.slot.priority - t.slot.priority || t.i - e.i), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
959
|
+
for (let { slot: s } of i) if (a.add(s.id), o = Pn(e, a), (e.some((e) => !e.separator && !e.unlisted && o.has(e.id)) ? r + Mn(e, o, n) : Mn(e, o, n) - n) <= t) return o;
|
|
960
|
+
return o;
|
|
961
|
+
}
|
|
962
|
+
function Pn(e, t) {
|
|
963
|
+
let n = new Set(t), r = !1, i = !1;
|
|
964
|
+
return e.forEach((a, o) => {
|
|
965
|
+
if (!a.separator) {
|
|
966
|
+
i = !0, r ||= !t.has(a.id);
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
(i && !r || !Fn(e, o, t)) && n.add(a.id);
|
|
970
|
+
}), n;
|
|
971
|
+
}
|
|
972
|
+
function Fn(e, t, n) {
|
|
973
|
+
let r = !1;
|
|
974
|
+
for (let i = t + 1; i < e.length; i++) {
|
|
975
|
+
let t = e[i];
|
|
976
|
+
if (t.separator) return !r;
|
|
977
|
+
if (r = !0, !n.has(t.id)) return !0;
|
|
978
|
+
}
|
|
979
|
+
return !1;
|
|
980
|
+
}
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region lib/components/ui/actions/toolbar/toolbar-measure.ts
|
|
983
|
+
var In = ":scope > [data-toolbar-id]", Ln = ":scope > [data-toolbar-more]", Rn = "\0more", zn = {
|
|
984
|
+
spilled: /* @__PURE__ */ new Set(),
|
|
985
|
+
overflowing: !1
|
|
986
|
+
};
|
|
987
|
+
function Bn(e, t, { enabled: n, axis: r = "x", room: i, entries: a = In, more: o = Ln }) {
|
|
988
|
+
if (!n) return zn;
|
|
989
|
+
let s = Array.from(e.querySelectorAll(a)), c = (e) => e.dataset.toolbarId || e.id, l = (e) => c(e) || `#${s.indexOf(e)}`;
|
|
990
|
+
for (let e of s) c(e) || Se("an overflow entry has no data-toolbar-id (nor id) and never folds.", "Toolbar");
|
|
991
|
+
let u = getComputedStyle(e), d = Dn(u), f = d > 0 ? kn() : 16;
|
|
992
|
+
for (let e of s) e.hidden || t.set(l(e), jn(Z(e, r), On(e, r, u, d, f), d));
|
|
993
|
+
let p = typeof o == "string" ? e.querySelector(o) : o.current;
|
|
994
|
+
p && !p.hidden && t.set(Rn, Z(p, r));
|
|
995
|
+
let m = s.map((e) => {
|
|
996
|
+
let n = l(e);
|
|
997
|
+
return {
|
|
998
|
+
id: n,
|
|
999
|
+
width: t.get(n) ?? 0,
|
|
1000
|
+
priority: Number(e.dataset.toolbarPriority) || 0,
|
|
1001
|
+
pinned: e.dataset.toolbarPriority === "pinned" || !c(e),
|
|
1002
|
+
separator: e.dataset.slot === "toolbar-separator",
|
|
1003
|
+
unlisted: Vn(e)
|
|
1004
|
+
};
|
|
1005
|
+
}), h = Math.min(...m.filter((e) => !e.separator && e.width).map((e) => e.width)), g = t.get(Rn) ?? (Number.isFinite(h) ? h : 40), _ = hn(u, r), v = Nn(m, Hn(e, u, r, i), _, g);
|
|
1006
|
+
return {
|
|
1007
|
+
spilled: v,
|
|
1008
|
+
overflowing: s.some((e) => !Vn(e) && v.has(l(e)))
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
function Vn(e) {
|
|
1012
|
+
if (e.dataset.slot === "toolbar-separator" || e.hasAttribute("data-toolbar-unlisted")) return !0;
|
|
1013
|
+
let t = Array.from(e.querySelectorAll("[data-toolbar-id]")).filter((e) => e.dataset.slot !== "toolbar-group" && e.dataset.slot !== "toolbar-toggle-group");
|
|
1014
|
+
return t.length > 0 && t.every((e) => e.hasAttribute("data-toolbar-unlisted") || e.dataset.slot === "toolbar-separator");
|
|
1015
|
+
}
|
|
1016
|
+
function Hn(e, t, n, r) {
|
|
1017
|
+
return r === void 0 ? n === "x" ? Un(e, t) : Sn(e) : (typeof r == "function" ? r(e) : r) - Q(t, n);
|
|
1018
|
+
}
|
|
1019
|
+
function Un(e, t) {
|
|
1020
|
+
let n = Q(t, "x");
|
|
1021
|
+
if (e.dataset.variant !== "floating" || !e.parentElement) return e.offsetWidth - n;
|
|
1022
|
+
let r = Wn(e, e.parentElement);
|
|
1023
|
+
return t.maxWidth.endsWith("px") && (r = Math.min(r, X(t.maxWidth))), r - n;
|
|
1024
|
+
}
|
|
1025
|
+
function Wn(e, t) {
|
|
1026
|
+
let n = getComputedStyle(t), r = t.clientWidth - X(n.paddingLeft) - X(n.paddingRight);
|
|
1027
|
+
if (!(n.display.includes("flex") && n.flexDirection.startsWith("row") && n.flexWrap === "nowrap")) return r;
|
|
1028
|
+
let i = Array.from(t.children).filter((t) => t !== e && t instanceof HTMLElement && !["absolute", "fixed"].includes(getComputedStyle(t).position) && getComputedStyle(t).display !== "none");
|
|
1029
|
+
for (let e of i) r -= Z(e, "x") + X(n.columnGap);
|
|
1030
|
+
return r;
|
|
1031
|
+
}
|
|
1032
|
+
//#endregion
|
|
1033
1033
|
//#region lib/components/ui/actions/toolbar/use-toolbar-fit.ts
|
|
1034
|
-
function
|
|
1035
|
-
let [a, o] =
|
|
1034
|
+
function Gn(e, t, n = "x", r, i) {
|
|
1035
|
+
let [a, o] = N(zn), s = M(/* @__PURE__ */ new Map()), c = M(a);
|
|
1036
1036
|
c.current = a;
|
|
1037
|
-
let l =
|
|
1037
|
+
let l = M(() => {}), u = M(null);
|
|
1038
1038
|
l.current = () => {
|
|
1039
1039
|
let a = e.current;
|
|
1040
1040
|
if (!a) return;
|
|
1041
|
-
let l =
|
|
1041
|
+
let l = Bn(a, s.current, {
|
|
1042
1042
|
enabled: t,
|
|
1043
1043
|
axis: n,
|
|
1044
1044
|
room: r,
|
|
1045
1045
|
...i
|
|
1046
1046
|
});
|
|
1047
|
-
u.current?.takeRecords(),
|
|
1048
|
-
},
|
|
1047
|
+
u.current?.takeRecords(), Kn(l, c.current) || o(l);
|
|
1048
|
+
}, A(() => l.current()), A(() => {
|
|
1049
1049
|
let r = e.current;
|
|
1050
1050
|
if (!r || !t || typeof ResizeObserver > "u") return;
|
|
1051
1051
|
let i = new MutationObserver(() => l.current());
|
|
1052
1052
|
u.current = i;
|
|
1053
1053
|
let a = () => l.current(), o = new ResizeObserver(a);
|
|
1054
1054
|
o.observe(r), r.parentElement && o.observe(r.parentElement);
|
|
1055
|
-
let s = n === "y" ?
|
|
1055
|
+
let s = n === "y" ? yn(r) : null;
|
|
1056
1056
|
s && o.observe(s);
|
|
1057
1057
|
let c = () => {
|
|
1058
1058
|
if (n === "y") {
|
|
1059
|
-
let e =
|
|
1059
|
+
let e = yn(r);
|
|
1060
1060
|
e !== s && (s && o.unobserve(s), e && o.observe(e), s = e);
|
|
1061
1061
|
}
|
|
1062
1062
|
a();
|
|
@@ -1073,20 +1073,20 @@ function Wn(e, t, n = "x", r, i) {
|
|
|
1073
1073
|
t,
|
|
1074
1074
|
n
|
|
1075
1075
|
]);
|
|
1076
|
-
let d =
|
|
1076
|
+
let d = Te(() => l.current(), []);
|
|
1077
1077
|
return {
|
|
1078
1078
|
...a,
|
|
1079
1079
|
remeasure: d
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Kn(e, t) {
|
|
1083
1083
|
if (e.overflowing !== t.overflowing || e.spilled.size !== t.spilled.size) return !1;
|
|
1084
1084
|
for (let n of e.spilled) if (!t.spilled.has(n)) return !1;
|
|
1085
1085
|
return !0;
|
|
1086
1086
|
}
|
|
1087
1087
|
//#endregion
|
|
1088
1088
|
//#region lib/components/ui/actions/toolbar/use-toolbar-focus.ts
|
|
1089
|
-
function
|
|
1089
|
+
function qn(e) {
|
|
1090
1090
|
let t = e.parentElement;
|
|
1091
1091
|
if (t?.dataset.slot !== "toolbar-pair") return null;
|
|
1092
1092
|
for (let n of Array.from(t.children)) {
|
|
@@ -1097,9 +1097,9 @@ function Kn(e) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
return null;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
let t =
|
|
1102
|
-
return
|
|
1100
|
+
function Jn(e) {
|
|
1101
|
+
let t = M(null);
|
|
1102
|
+
return k(() => {
|
|
1103
1103
|
let n = e.current;
|
|
1104
1104
|
if (!n) return;
|
|
1105
1105
|
let r = (e) => {
|
|
@@ -1116,16 +1116,16 @@ function qn(e) {
|
|
|
1116
1116
|
return r && (e === r || n) ? r : null;
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
let r =
|
|
1121
|
-
|
|
1119
|
+
function Yn(e, t, n) {
|
|
1120
|
+
let r = Jn(e), i = M(null);
|
|
1121
|
+
A(() => {
|
|
1122
1122
|
let t = e.current, n = r()?.closest("[hidden]");
|
|
1123
1123
|
!t || !n || n === t || !t.contains(n) || t.querySelector(":scope > [data-toolbar-more]")?.focus();
|
|
1124
|
-
}, [e, t]),
|
|
1124
|
+
}, [e, t]), A(() => {
|
|
1125
1125
|
let t = e.current;
|
|
1126
1126
|
if (!t) return;
|
|
1127
1127
|
if (n) {
|
|
1128
|
-
let e = r(), n = e &&
|
|
1128
|
+
let e = r(), n = e && qn(t);
|
|
1129
1129
|
if (!e || !n) return;
|
|
1130
1130
|
i.current = {
|
|
1131
1131
|
item: e,
|
|
@@ -1137,9 +1137,9 @@ function Jn(e, t, n) {
|
|
|
1137
1137
|
i.current = null, a && document.activeElement === a.fab && a.item.isConnected && a.item.focus({ preventScroll: !0 });
|
|
1138
1138
|
}, [e, n]);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
let [, n] =
|
|
1142
|
-
return
|
|
1140
|
+
function Xn(e, t) {
|
|
1141
|
+
let [, n] = De((e) => e + 1, 0), r = e.current, i = !!t && r !== null && typeof document < "u" && r.contains(document.activeElement) && !qn(r);
|
|
1142
|
+
return k(() => {
|
|
1143
1143
|
let t = e.current;
|
|
1144
1144
|
if (!i || !t) return;
|
|
1145
1145
|
let r = (e) => {
|
|
@@ -1148,12 +1148,12 @@ function Yn(e, t) {
|
|
|
1148
1148
|
return t.addEventListener("focusout", r), () => t.removeEventListener("focusout", r);
|
|
1149
1149
|
}, [e, i]), !!t && !i;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function Zn(e) {
|
|
1152
1152
|
if (e.scale > 1.01) return 0;
|
|
1153
1153
|
let t = e.layoutHeight - (e.height + e.offsetTop);
|
|
1154
1154
|
return t >= 120 ? Math.round(t) : 0;
|
|
1155
1155
|
}
|
|
1156
|
-
var
|
|
1156
|
+
var Qn = "--nxgt-toolbar-lift", $n = [
|
|
1157
1157
|
"[role=\"dialog\"]",
|
|
1158
1158
|
"[role=\"alertdialog\"]",
|
|
1159
1159
|
...[
|
|
@@ -1162,26 +1162,26 @@ var Zn = "--nxgt-toolbar-lift", Qn = [
|
|
|
1162
1162
|
"sheet",
|
|
1163
1163
|
"drawer"
|
|
1164
1164
|
].map((e) => `[data-slot="${e}-content"]`)
|
|
1165
|
-
].join(","),
|
|
1166
|
-
function
|
|
1165
|
+
].join(","), er = "data-nxgt-keyboard-lift";
|
|
1166
|
+
function tr(e, t) {
|
|
1167
1167
|
for (let n = e; n && n.tagName !== "BODY"; n = n.parentElement) if (t.getComputedStyle(n).position === "fixed") return n;
|
|
1168
1168
|
return null;
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function nr(e, t = typeof window > "u" ? void 0 : window) {
|
|
1171
1171
|
let n = t?.visualViewport;
|
|
1172
1172
|
if (!t || !n) return () => {};
|
|
1173
1173
|
let r = null, i = 0, a = 0, o = (e) => {
|
|
1174
|
-
e.style.removeProperty(
|
|
1174
|
+
e.style.removeProperty(Qn), e.removeAttribute(er);
|
|
1175
1175
|
}, s = (e, t) => {
|
|
1176
|
-
r && r !== e && (o(r), i = 0), r = e, !(!e || t === i) && (i = t, t ? (e.style.setProperty(
|
|
1176
|
+
r && r !== e && (o(r), i = 0), r = e, !(!e || t === i) && (i = t, t ? (e.style.setProperty(Qn, `${t}px`), e.setAttribute(er, "")) : o(e));
|
|
1177
1177
|
}, c = () => {
|
|
1178
1178
|
a = 0;
|
|
1179
|
-
let o = t.matchMedia("(pointer: coarse), (max-width: 40rem)").matches ?
|
|
1179
|
+
let o = t.matchMedia("(pointer: coarse), (max-width: 40rem)").matches ? tr(e, t) : null, c = o?.getBoundingClientRect(), l = o && c && !o.matches($n) && c.height <= t.innerHeight / 2 && c.bottom + (o === r ? i : 0) > t.innerHeight / 2;
|
|
1180
1180
|
if (!o || !l) {
|
|
1181
1181
|
s(r, 0);
|
|
1182
1182
|
return;
|
|
1183
1183
|
}
|
|
1184
|
-
s(o,
|
|
1184
|
+
s(o, Zn({
|
|
1185
1185
|
layoutHeight: t.innerHeight,
|
|
1186
1186
|
height: n.height,
|
|
1187
1187
|
offsetTop: n.offsetTop,
|
|
@@ -1194,49 +1194,60 @@ function tr(e, t = typeof window > "u" ? void 0 : window) {
|
|
|
1194
1194
|
n.removeEventListener("resize", l), n.removeEventListener("scroll", l), a && t.cancelAnimationFrame(a), s(r, 0);
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1197
|
+
function rr(e, t) {
|
|
1198
|
+
k(() => {
|
|
1199
1199
|
let n = e.current;
|
|
1200
|
-
if (!(!t || !n)) return
|
|
1200
|
+
if (!(!t || !n)) return nr(n);
|
|
1201
1201
|
}, [e, t]);
|
|
1202
1202
|
}
|
|
1203
1203
|
//#endregion
|
|
1204
|
-
//#region lib/components/ui/actions/toolbar/toolbar.
|
|
1205
|
-
function
|
|
1204
|
+
//#region lib/components/ui/actions/toolbar/use-toolbar-state.ts
|
|
1205
|
+
function ir(e) {
|
|
1206
1206
|
return {
|
|
1207
1207
|
get current() {
|
|
1208
|
-
let t = e.current?.querySelector(
|
|
1208
|
+
let t = e.current?.querySelector(Ln);
|
|
1209
1209
|
return t && !t.hidden ? t : e.current;
|
|
1210
1210
|
},
|
|
1211
1211
|
set current(e) {}
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
let
|
|
1216
|
-
|
|
1217
|
-
let [E] = P(() => /* @__PURE__ */ new Map()), [ee] = P(() => rr(v)), [te] = P(() => ({ current: null })), ne = M(() => ({
|
|
1214
|
+
function ar(e, t) {
|
|
1215
|
+
let { spilled: n, dir: r, orientation: i, overflowing: a } = t, [o] = N(() => /* @__PURE__ */ new Map()), [s] = N(() => ir(e)), [c] = N(() => ({ current: null }));
|
|
1216
|
+
return j(() => ({
|
|
1218
1217
|
inside: !0,
|
|
1218
|
+
spilled: n,
|
|
1219
|
+
entries: o,
|
|
1220
|
+
dir: r,
|
|
1221
|
+
orientation: i,
|
|
1222
|
+
overflowing: a,
|
|
1223
|
+
moreAnchor: s,
|
|
1224
|
+
focusLost: c
|
|
1225
|
+
}), [
|
|
1226
|
+
n,
|
|
1227
|
+
o,
|
|
1228
|
+
r,
|
|
1229
|
+
i,
|
|
1230
|
+
a,
|
|
1231
|
+
s,
|
|
1232
|
+
c
|
|
1233
|
+
]);
|
|
1234
|
+
}
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region lib/components/ui/actions/toolbar/toolbar.tsx
|
|
1237
|
+
function or({ label: n, children: r, variant: i = "floating", density: a = "comfortable", keyboardLift: o = !0, tone: s = "neutral", selectedLook: c = "quiet", orientation: l = "horizontal", overflow: u, overflowRoom: d, moreLabel: f, hidden: p, dir: m, className: h, ref: g, ..._ }) {
|
|
1238
|
+
let v = M(null), y = t(v, g), b = Ct(v), x = m ?? b, S = Xn(v, p), C = !!u, { spilled: w, overflowing: T } = Gn(v, C, l === "vertical" ? "y" : "x", d);
|
|
1239
|
+
Yn(v, w, S), rr(v, i === "floating" && o);
|
|
1240
|
+
let ee = ar(v, {
|
|
1219
1241
|
spilled: w,
|
|
1220
|
-
entries: E,
|
|
1221
1242
|
dir: x,
|
|
1222
1243
|
orientation: l,
|
|
1223
|
-
overflowing: T
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
}), [
|
|
1227
|
-
w,
|
|
1228
|
-
E,
|
|
1229
|
-
x,
|
|
1230
|
-
l,
|
|
1231
|
-
T,
|
|
1232
|
-
ee,
|
|
1233
|
-
te
|
|
1234
|
-
]);
|
|
1235
|
-
return /* @__PURE__ */ I(_t, {
|
|
1244
|
+
overflowing: T
|
|
1245
|
+
});
|
|
1246
|
+
return /* @__PURE__ */ F(yt, {
|
|
1236
1247
|
"data-slot": "toolbar",
|
|
1237
1248
|
..._,
|
|
1238
1249
|
ref: y,
|
|
1239
|
-
"aria-label":
|
|
1250
|
+
"aria-label": n,
|
|
1240
1251
|
orientation: l,
|
|
1241
1252
|
dir: x,
|
|
1242
1253
|
"data-variant": i,
|
|
@@ -1247,9 +1258,9 @@ function ir({ label: t, children: r, variant: i = "floating", density: a = "comf
|
|
|
1247
1258
|
"data-hidden": S ? "" : void 0,
|
|
1248
1259
|
inert: S || void 0,
|
|
1249
1260
|
className: e("nxgt-toolbar", h),
|
|
1250
|
-
children: /* @__PURE__ */
|
|
1251
|
-
value:
|
|
1252
|
-
children: [r, C ? /* @__PURE__ */
|
|
1261
|
+
children: /* @__PURE__ */ I(W, {
|
|
1262
|
+
value: ee,
|
|
1263
|
+
children: [r, C ? /* @__PURE__ */ F(mn, {
|
|
1253
1264
|
root: v,
|
|
1254
1265
|
dir: x,
|
|
1255
1266
|
label: f,
|
|
@@ -1260,21 +1271,21 @@ function ir({ label: t, children: r, variant: i = "floating", density: a = "comf
|
|
|
1260
1271
|
}
|
|
1261
1272
|
//#endregion
|
|
1262
1273
|
//#region lib/components/ui/actions/toolbar/toolbar-group.tsx
|
|
1263
|
-
function
|
|
1264
|
-
let { spilled: c, inside: l, props: u } =
|
|
1274
|
+
function sr({ label: t, children: n, priority: r, moreAs: i, choice: a, className: o, ...s }) {
|
|
1275
|
+
let { spilled: c, inside: l, props: u } = K({
|
|
1265
1276
|
label: t,
|
|
1266
1277
|
group: !0,
|
|
1267
1278
|
choice: a,
|
|
1268
1279
|
moreAs: i
|
|
1269
|
-
}, r), d =
|
|
1270
|
-
return /* @__PURE__ */
|
|
1280
|
+
}, r), d = j(() => ({ spilled: c }), [c]);
|
|
1281
|
+
return /* @__PURE__ */ F("div", {
|
|
1271
1282
|
"data-slot": "toolbar-group",
|
|
1272
1283
|
...s,
|
|
1273
1284
|
...u,
|
|
1274
1285
|
role: "group",
|
|
1275
1286
|
"aria-label": t,
|
|
1276
1287
|
className: e(l && "nxgt-toolbar-group", o),
|
|
1277
|
-
children: /* @__PURE__ */
|
|
1288
|
+
children: /* @__PURE__ */ F(G, {
|
|
1278
1289
|
value: d,
|
|
1279
1290
|
children: n
|
|
1280
1291
|
})
|
|
@@ -1282,7 +1293,7 @@ function ar({ label: t, children: n, priority: r, moreAs: i, choice: a, classNam
|
|
|
1282
1293
|
}
|
|
1283
1294
|
//#endregion
|
|
1284
1295
|
//#region lib/components/ui/actions/toolbar/keep-text-keys.ts
|
|
1285
|
-
var
|
|
1296
|
+
var cr = /* @__PURE__ */ new Set([
|
|
1286
1297
|
"button",
|
|
1287
1298
|
"checkbox",
|
|
1288
1299
|
"color",
|
|
@@ -1292,7 +1303,7 @@ var or = /* @__PURE__ */ new Set([
|
|
|
1292
1303
|
"reset",
|
|
1293
1304
|
"submit"
|
|
1294
1305
|
]);
|
|
1295
|
-
function
|
|
1306
|
+
function lr(e) {
|
|
1296
1307
|
let t, n;
|
|
1297
1308
|
try {
|
|
1298
1309
|
t = e.selectionStart, n = e.selectionEnd;
|
|
@@ -1304,19 +1315,19 @@ function sr(e) {
|
|
|
1304
1315
|
atEnd: t === e.value.length
|
|
1305
1316
|
};
|
|
1306
1317
|
}
|
|
1307
|
-
function
|
|
1318
|
+
function ur(e) {
|
|
1308
1319
|
let t = e.target;
|
|
1309
1320
|
if (t.isContentEditable || e.nativeEvent.isComposing) return !0;
|
|
1310
1321
|
let n = e.key === "ArrowUp" || e.key === "ArrowDown";
|
|
1311
1322
|
if (t instanceof HTMLSelectElement) return n;
|
|
1312
|
-
let r = t instanceof HTMLInputElement && !
|
|
1323
|
+
let r = t instanceof HTMLInputElement && !cr.has(t.type) || t instanceof HTMLTextAreaElement ? t : null;
|
|
1313
1324
|
if (!r) return !1;
|
|
1314
|
-
let i =
|
|
1325
|
+
let i = lr(r);
|
|
1315
1326
|
if (!i || n) return !0;
|
|
1316
1327
|
let a = getComputedStyle(t).direction === "rtl", o = a ? "ArrowRight" : "ArrowLeft", s = a ? "ArrowLeft" : "ArrowRight";
|
|
1317
1328
|
return e.key === o || e.key === "Home" ? !i.atStart : e.key === s || e.key === "End" ? !i.atEnd : !1;
|
|
1318
1329
|
}
|
|
1319
|
-
var
|
|
1330
|
+
var dr = /* @__PURE__ */ new Set([
|
|
1320
1331
|
"ArrowLeft",
|
|
1321
1332
|
"ArrowRight",
|
|
1322
1333
|
"ArrowUp",
|
|
@@ -1324,8 +1335,8 @@ var lr = /* @__PURE__ */ new Set([
|
|
|
1324
1335
|
"Home",
|
|
1325
1336
|
"End"
|
|
1326
1337
|
]);
|
|
1327
|
-
function
|
|
1328
|
-
if (!
|
|
1338
|
+
function fr(e) {
|
|
1339
|
+
if (!dr.has(e.key) || !ur(e)) return;
|
|
1329
1340
|
let t = !0;
|
|
1330
1341
|
Object.defineProperty(e, "defaultPrevented", {
|
|
1331
1342
|
configurable: !0,
|
|
@@ -1334,37 +1345,37 @@ function ur(e) {
|
|
|
1334
1345
|
}
|
|
1335
1346
|
//#endregion
|
|
1336
1347
|
//#region lib/components/ui/overlays/popover/in-popover.ts
|
|
1337
|
-
var
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1348
|
+
var pr = D(!1);
|
|
1349
|
+
function mr() {
|
|
1350
|
+
return O(pr);
|
|
1340
1351
|
}
|
|
1341
1352
|
//#endregion
|
|
1342
1353
|
//#region lib/components/ui/overlays/popover/popover.tsx
|
|
1343
|
-
function
|
|
1344
|
-
return /* @__PURE__ */
|
|
1354
|
+
function hr({ ...e }) {
|
|
1355
|
+
return /* @__PURE__ */ F(ee, {
|
|
1345
1356
|
value: e.modal ?? !1,
|
|
1346
|
-
children: /* @__PURE__ */
|
|
1357
|
+
children: /* @__PURE__ */ F(pr, {
|
|
1347
1358
|
value: !0,
|
|
1348
|
-
children: /* @__PURE__ */
|
|
1359
|
+
children: /* @__PURE__ */ F(Qe, {
|
|
1349
1360
|
"data-slot": "popover",
|
|
1350
1361
|
...e
|
|
1351
1362
|
})
|
|
1352
1363
|
})
|
|
1353
1364
|
});
|
|
1354
1365
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return /* @__PURE__ */
|
|
1366
|
+
function gr({ ...e }) {
|
|
1367
|
+
return /* @__PURE__ */ F(et, {
|
|
1357
1368
|
"data-slot": "popover-trigger",
|
|
1358
1369
|
...e
|
|
1359
1370
|
});
|
|
1360
1371
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return /* @__PURE__ */
|
|
1372
|
+
function _r({ className: t, children: n, align: r = "center", sideOffset: i = 6, collisionPadding: a = 8, variant: o = "elevated", arrow: s = !1, ref: c, ...l }) {
|
|
1373
|
+
return /* @__PURE__ */ F(we, { children: /* @__PURE__ */ F(ne, {
|
|
1363
1374
|
value: !1,
|
|
1364
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ F(pr, {
|
|
1365
1376
|
value: !1,
|
|
1366
|
-
children: /* @__PURE__ */
|
|
1367
|
-
ref:
|
|
1377
|
+
children: /* @__PURE__ */ F(tt, { children: /* @__PURE__ */ F(nt, {
|
|
1378
|
+
ref: S(!1, c),
|
|
1368
1379
|
"data-slot": "popover-content",
|
|
1369
1380
|
"data-variant": o,
|
|
1370
1381
|
"data-arrow": s || void 0,
|
|
@@ -1375,9 +1386,9 @@ function hr({ className: t, children: n, align: r = "center", sideOffset: i = 6,
|
|
|
1375
1386
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
1376
1387
|
...l,
|
|
1377
1388
|
onEscapeKeyDown: (e) => {
|
|
1378
|
-
|
|
1389
|
+
Oe(e), l.onEscapeKeyDown?.(e);
|
|
1379
1390
|
},
|
|
1380
|
-
children: s ? /* @__PURE__ */
|
|
1391
|
+
children: s ? /* @__PURE__ */ I(P, { children: [n, /* @__PURE__ */ F(rt, {
|
|
1381
1392
|
className: "nxgt-popover-arrow",
|
|
1382
1393
|
width: 16,
|
|
1383
1394
|
height: 8
|
|
@@ -1386,16 +1397,16 @@ function hr({ className: t, children: n, align: r = "center", sideOffset: i = 6,
|
|
|
1386
1397
|
})
|
|
1387
1398
|
}) });
|
|
1388
1399
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return /* @__PURE__ */
|
|
1400
|
+
function vr({ ...e }) {
|
|
1401
|
+
return /* @__PURE__ */ F($e, {
|
|
1391
1402
|
"data-slot": "popover-anchor",
|
|
1392
1403
|
...e
|
|
1393
1404
|
});
|
|
1394
1405
|
}
|
|
1395
1406
|
//#endregion
|
|
1396
1407
|
//#region lib/components/ui/actions/toolbar/toolbar-fold-anchor.tsx
|
|
1397
|
-
function
|
|
1398
|
-
let { moreAnchor: n } =
|
|
1408
|
+
function yr({ own: e, folded: t }) {
|
|
1409
|
+
let { moreAnchor: n } = O(W), r = mr(), i = j(() => ({
|
|
1399
1410
|
get current() {
|
|
1400
1411
|
return t ? n.current : e.current;
|
|
1401
1412
|
},
|
|
@@ -1405,13 +1416,13 @@ function _r({ own: e, folded: t }) {
|
|
|
1405
1416
|
e,
|
|
1406
1417
|
n
|
|
1407
1418
|
]);
|
|
1408
|
-
return r ? /* @__PURE__ */
|
|
1419
|
+
return r ? /* @__PURE__ */ F(vr, { virtualRef: i }) : null;
|
|
1409
1420
|
}
|
|
1410
1421
|
//#endregion
|
|
1411
1422
|
//#region lib/components/ui/actions/toolbar/toolbar-keep-focus.ts
|
|
1412
|
-
function
|
|
1413
|
-
let { inside: n, focusLost: r } =
|
|
1414
|
-
return
|
|
1423
|
+
function br(e, t) {
|
|
1424
|
+
let { inside: n, focusLost: r } = O(W), i = M(null);
|
|
1425
|
+
return Te((a) => {
|
|
1415
1426
|
if (!e || !n) {
|
|
1416
1427
|
i.current = a;
|
|
1417
1428
|
return;
|
|
@@ -1440,50 +1451,50 @@ function vr(e, t) {
|
|
|
1440
1451
|
}
|
|
1441
1452
|
//#endregion
|
|
1442
1453
|
//#region lib/components/ui/actions/toolbar/toolbar-item-slot.tsx
|
|
1443
|
-
function
|
|
1444
|
-
let { inside: m, spilled: h, props: g } =
|
|
1445
|
-
label:
|
|
1446
|
-
icon:
|
|
1454
|
+
function xr({ children: e, label: n, icon: i, toggle: a, priority: o, onSelect: s, more: c, onKeyDown: u, fit: d, shape: f = "pill", ...p }) {
|
|
1455
|
+
let { inside: m, spilled: h, props: g } = K({
|
|
1456
|
+
label: n,
|
|
1457
|
+
icon: i,
|
|
1447
1458
|
toggle: a,
|
|
1448
1459
|
onSelect: s,
|
|
1449
1460
|
more: c
|
|
1450
|
-
}, o), _ =
|
|
1451
|
-
return m ? /* @__PURE__ */
|
|
1461
|
+
}, o), _ = M(null), v = br(c?.kind === "popover", n), y = t(_, p.ref, v);
|
|
1462
|
+
return m ? /* @__PURE__ */ I(P, { children: [c?.kind === "popover" ? /* @__PURE__ */ F(yr, {
|
|
1452
1463
|
own: _,
|
|
1453
1464
|
folded: h
|
|
1454
|
-
}) : null, /* @__PURE__ */
|
|
1465
|
+
}) : null, /* @__PURE__ */ F(U, {
|
|
1455
1466
|
asChild: !0,
|
|
1456
1467
|
...p,
|
|
1457
1468
|
ref: y,
|
|
1458
|
-
...
|
|
1459
|
-
onKeyDown: u
|
|
1469
|
+
...Sr(e),
|
|
1470
|
+
onKeyDown: l(u, fr),
|
|
1460
1471
|
...g,
|
|
1461
1472
|
"data-toolbar-item": "",
|
|
1462
1473
|
"data-toolbar-shape": f,
|
|
1463
|
-
"data-toolbar-fit": d ?? !
|
|
1474
|
+
"data-toolbar-fit": d ?? !Cr(e) ? "" : void 0,
|
|
1464
1475
|
children: e
|
|
1465
|
-
})] }) : /* @__PURE__ */
|
|
1476
|
+
})] }) : /* @__PURE__ */ F(r, {
|
|
1466
1477
|
...p,
|
|
1467
|
-
onKeyDown:
|
|
1478
|
+
onKeyDown: u,
|
|
1468
1479
|
children: e
|
|
1469
1480
|
});
|
|
1470
1481
|
}
|
|
1471
|
-
function
|
|
1482
|
+
function Sr(e) {
|
|
1472
1483
|
let t = e.props;
|
|
1473
|
-
return e.type === "input" ? { type: t.type ?? "text" } :
|
|
1484
|
+
return e.type === "input" ? { type: t.type ?? "text" } : Cr(e) ? { type: void 0 } : {};
|
|
1474
1485
|
}
|
|
1475
|
-
var
|
|
1486
|
+
var Cr = (e) => e.type === "input" || e.type === "textarea" || e.type === "select";
|
|
1476
1487
|
//#endregion
|
|
1477
1488
|
//#region lib/components/ui/actions/toolbar/toolbar-item.tsx
|
|
1478
|
-
function
|
|
1479
|
-
let { spilled: p, props: m } =
|
|
1489
|
+
function $({ icon: n, label: r, tooltip: i = !0, toggle: a, priority: o, more: s, shape: c = "pill", className: l, type: u = "button", toggleValue: d, ...f }) {
|
|
1490
|
+
let { spilled: p, props: m } = K({
|
|
1480
1491
|
label: r,
|
|
1481
|
-
icon:
|
|
1492
|
+
icon: n,
|
|
1482
1493
|
toggle: a,
|
|
1483
1494
|
more: s
|
|
1484
|
-
}, o), [h,
|
|
1485
|
-
p && h &&
|
|
1486
|
-
let y =
|
|
1495
|
+
}, o), [h, _] = N(!1), v = O(Dt);
|
|
1496
|
+
p && h && _(!1);
|
|
1497
|
+
let y = M(null), b = br(s?.kind === "popover", r), x = t(y, f.ref, b), S = {
|
|
1487
1498
|
type: u,
|
|
1488
1499
|
...f,
|
|
1489
1500
|
...m,
|
|
@@ -1492,31 +1503,31 @@ function Sr({ icon: t, label: r, tooltip: i = !0, toggle: a, priority: o, more:
|
|
|
1492
1503
|
"data-toolbar-shape": c,
|
|
1493
1504
|
"aria-label": r,
|
|
1494
1505
|
className: e("nxgt-toolbar-item", l),
|
|
1495
|
-
children:
|
|
1496
|
-
}, C = d === void 0 ? /* @__PURE__ */
|
|
1506
|
+
children: n
|
|
1507
|
+
}, C = d === void 0 ? /* @__PURE__ */ F(U, { ...S }) : /* @__PURE__ */ F(St, {
|
|
1497
1508
|
...S,
|
|
1498
1509
|
value: d
|
|
1499
|
-
}), w = s?.kind === "popover" ? /* @__PURE__ */
|
|
1510
|
+
}), w = s?.kind === "popover" ? /* @__PURE__ */ F(yr, {
|
|
1500
1511
|
own: y,
|
|
1501
1512
|
folded: p
|
|
1502
1513
|
}) : null;
|
|
1503
|
-
return i ? /* @__PURE__ */
|
|
1514
|
+
return i ? /* @__PURE__ */ I(P, { children: [w, /* @__PURE__ */ F(g, {
|
|
1504
1515
|
content: r,
|
|
1505
1516
|
open: h && !p,
|
|
1506
1517
|
onOpenChange: (e) => {
|
|
1507
|
-
e && v?.current ||
|
|
1518
|
+
e && v?.current || _(e);
|
|
1508
1519
|
},
|
|
1509
1520
|
children: C
|
|
1510
|
-
})] }) : /* @__PURE__ */
|
|
1521
|
+
})] }) : /* @__PURE__ */ I(P, { children: [w, C] });
|
|
1511
1522
|
}
|
|
1512
1523
|
//#endregion
|
|
1513
1524
|
//#region lib/components/ui/actions/toolbar/toolbar-items.tsx
|
|
1514
|
-
function
|
|
1515
|
-
return /* @__PURE__ */
|
|
1525
|
+
function wr(e) {
|
|
1526
|
+
return /* @__PURE__ */ F($, { ...e });
|
|
1516
1527
|
}
|
|
1517
|
-
function
|
|
1518
|
-
let [a, o] =
|
|
1519
|
-
return /* @__PURE__ */
|
|
1528
|
+
function Tr({ pressed: e, defaultPressed: t = !1, onPressedChange: n, onClick: r, ...i }) {
|
|
1529
|
+
let [a, o] = N(t), s = e ?? a;
|
|
1530
|
+
return /* @__PURE__ */ F($, {
|
|
1520
1531
|
...i,
|
|
1521
1532
|
toggle: !0,
|
|
1522
1533
|
"aria-pressed": s,
|
|
@@ -1525,16 +1536,16 @@ function wr({ pressed: e, defaultPressed: t = !1, onPressedChange: n, onClick: r
|
|
|
1525
1536
|
}
|
|
1526
1537
|
});
|
|
1527
1538
|
}
|
|
1528
|
-
function
|
|
1529
|
-
let { props: n } =
|
|
1539
|
+
function Er({ className: t }) {
|
|
1540
|
+
let { props: n } = K({
|
|
1530
1541
|
label: "",
|
|
1531
1542
|
separator: !0
|
|
1532
1543
|
});
|
|
1533
|
-
return /* @__PURE__ */
|
|
1544
|
+
return /* @__PURE__ */ F(bt, {
|
|
1534
1545
|
...n,
|
|
1535
1546
|
"data-slot": "toolbar-separator",
|
|
1536
1547
|
className: e("nxgt-toolbar-separator", t)
|
|
1537
1548
|
});
|
|
1538
1549
|
}
|
|
1539
1550
|
//#endregion
|
|
1540
|
-
export {
|
|
1551
|
+
export { U as C, Ct as S, $e as T, kt as _, xr as a, Et as b, _r as c, or as d, Gn as f, K as g, Dt as h, $ as i, gr as l, G as m, Er as n, hr as o, mn as p, Tr as r, vr as s, wr as t, sr as u, Ot as v, xt as w, Tt as x, wt as y };
|