@nxgt/material 3.57.0 → 3.59.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 +32 -0
- package/README.md +33 -1
- package/dist/{async-slice-B3RMgJUn.js → async-slice-Cmvxrvn9.js} +2 -2
- package/dist/{background-BtSZsTvY.js → background-qdnet2A5.js} +124 -83
- package/dist/backgrounds.js +1 -1
- package/dist/barcode.js +440 -0
- package/dist/{button-hnUZpzYu.js → button-Deo7l4wM.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-BlmIjpiD.js} +2 -2
- package/dist/{code-editor-Ba61Cd-g.js → code-editor-BYEpBp_U.js} +312 -282
- package/dist/code-editor.js +14 -14
- package/dist/{code-language-items-CsDC4Ky4.js → code-language-items-Cqk4Fq61.js} +2 -2
- package/dist/components/components.css +1 -0
- package/dist/components/ui/widgets/barcode/barcode.css +112 -0
- package/dist/{components-BgckuX2C.js → components-BsKpeqVX.js} +28688 -25977
- package/dist/components.js +26 -26
- package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
- package/dist/{dialog-DS8O4Kkb.js → dialog-1BstKBvt.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/draw-animate.js +1 -1
- package/dist/{dropdown-menu-CvVQJpsn.js → dropdown-menu-hoaocAS7.js} +1 -1
- package/dist/editor-viewer.js +1 -1
- package/dist/editor.js +715 -607
- package/dist/empty-state-DEG9h7xk.js +139 -0
- package/dist/{escape-owner-BJvicDmr.js → escape-owner-BvLBo_Al.js} +22 -22
- package/dist/{field-blur-Cnjk0o9A.js → field-blur-BkeYPaWi.js} +1 -1
- package/dist/{field-blur-context-CYlx9KnB.js → field-blur-context-Ba7iZVm_.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-C5DTU9P_.js} +2 -2
- package/dist/{i18n-provider-DBr59j1p.js → i18n-provider-BJDI-A5w.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-4FMy66AC.js → icon-badge-9ZE6k7cn.js} +3 -3
- package/dist/{icon-button-QF7smCoV.js → icon-button-AwJtCkV5.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/barcode/index.d.ts +15 -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/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -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/index.d.ts +1 -0
- 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/page-load-failed/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
- 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/barcode/barcode-error.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
- package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
- package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
- package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
- package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
- package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
- package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
- package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -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 +12 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +13 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +12 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +13 -1
- package/dist/lib/i18n/resources/resources.d.ts +24 -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/print/components/print-section.d.ts +8 -1
- 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 +123 -108
- package/dist/{public-DVZJVdxD.js → public-CLkf8uky.js} +368 -338
- package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
- package/dist/{rich-code-block-DL5-9JIi.js → rich-code-block-hJexXOdk.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-DE-MSfeJ.js} +2 -2
- package/dist/{spinner-D4XGdse6.js → spinner-CquTUxzt.js} +3 -1
- package/dist/{stored-language-C89mti-z.js → stored-language-BDzGeEAm.js} +22 -2
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-BFhqLmgx.js → theme-toggle-DBgsBw8S.js} +1 -1
- package/dist/themes.js +1 -1
- package/dist/{toolbar-items-SZ5pyAFz.js → toolbar-items-Bm1baIp6.js} +578 -567
- package/dist/{translate-material-BkqnImND.js → translate-material-Q67GD4co.js} +2 -2
- package/dist/{translator-B5fId5Rw.js → translator-CBhGdYun.js} +1 -1
- package/dist/{use-chat-composer-BG5B4DGB.js → use-chat-composer-Cx7Q_KOV.js} +8929 -8650
- package/dist/{use-heading-spy-51GQw8tH.js → use-heading-spy-COxCWqWF.js} +1 -1
- package/dist/{use-material-translation-BQOr4Oks.js → use-material-translation-BZAy_ffS.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/README.md +1 -0
- package/docs/components/buttons-and-actions.md +37 -0
- package/docs/components/feedback-and-status.md +30 -4
- package/docs/components/navigation-and-layout.md +47 -0
- package/docs/components/rich-widgets.md +34 -3
- package/docs/guides/barcode.md +203 -0
- package/docs/guides/data-grid.md +11 -1
- package/docs/guides/printing.md +28 -3
- package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
- package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
- package/docs/previews/navigation-layout-stickyactionbar.webp +0 -0
- package/docs/roadmap.md +18 -3
- package/docs/troubleshooting.md +62 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/widgets/barcode/barcode.css +112 -0
- package/package.json +10 -3
- package/dist/empty-state-4gmbCkcw.js +0 -117
- package/dist/use-shape-morph-DXdy2X5g.js +0 -35
package/dist/barcode.js
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { Children as e, useLayoutEffect as t, useMemo as n, useRef as r } from "react";
|
|
2
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
//#region lib/components/ui/widgets/barcode/barcode-error.ts
|
|
4
|
+
var o = class extends Error {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
super(e), this.name = "BarcodeError";
|
|
7
|
+
}
|
|
8
|
+
}, s = "212222 222122 222221 121223 121322 131222 122213 122312 132212 221213\n221312 231212 112232 122132 122231 113222 123122 123221 223211 221132\n221231 213212 223112 312131 311222 321122 321221 312212 322112 322211\n212123 212321 232121 111323 131123 131321 112313 132113 132311 211313\n231113 231311 112133 112331 132131 113123 113321 133121 313121 211331\n231131 213113 213311 213131 311123 311321 331121 312113 312311 332111\n314111 221411 431111 111224 111422 121124 121421 141122 141221 112214\n112412 122114 122411 142112 142211 241211 221114 413111 241112 134111\n111242 121142 121241 114212 124112 124211 411212 421112 421211 212141\n214121 412121 111143 111341 131141 114113 114311 411113 411311 113141\n114131 311141 411131 211412 211214 211232 2331112".split(/\s+/), c = [
|
|
9
|
+
"A",
|
|
10
|
+
"B",
|
|
11
|
+
"C"
|
|
12
|
+
], l = {
|
|
13
|
+
A: 103,
|
|
14
|
+
B: 104,
|
|
15
|
+
C: 105
|
|
16
|
+
}, u = {
|
|
17
|
+
A: 101,
|
|
18
|
+
B: 100,
|
|
19
|
+
C: 99
|
|
20
|
+
}, d = 106, f = (e) => e >= 48 && e <= 57;
|
|
21
|
+
function p(e, t, n) {
|
|
22
|
+
let r = e[t];
|
|
23
|
+
if (n === "C") {
|
|
24
|
+
let n = e[t + 1];
|
|
25
|
+
return f(r) && n !== void 0 && f(n) ? {
|
|
26
|
+
len: 2,
|
|
27
|
+
value: (r - 48) * 10 + (n - 48)
|
|
28
|
+
} : null;
|
|
29
|
+
}
|
|
30
|
+
return n === "A" ? r < 32 ? {
|
|
31
|
+
len: 1,
|
|
32
|
+
value: r + 64
|
|
33
|
+
} : r < 96 ? {
|
|
34
|
+
len: 1,
|
|
35
|
+
value: r - 32
|
|
36
|
+
} : null : r >= 32 ? {
|
|
37
|
+
len: 1,
|
|
38
|
+
value: r - 32
|
|
39
|
+
} : null;
|
|
40
|
+
}
|
|
41
|
+
function m(e) {
|
|
42
|
+
if (e.length === 0) throw new o("Code 128 needs a value: got an empty string");
|
|
43
|
+
let t = Array.from(e, (e) => e.codePointAt(0));
|
|
44
|
+
for (let e of t) if (e > 127) throw new o("Code 128 holds ASCII only (0-127): use symbology=\"datamatrix\" for other text");
|
|
45
|
+
let n = t.length, r = 1e9, i = [], a = [];
|
|
46
|
+
for (let e = 0; e <= n; e++) i[e] = [
|
|
47
|
+
r,
|
|
48
|
+
r,
|
|
49
|
+
r
|
|
50
|
+
], a[e] = [
|
|
51
|
+
0,
|
|
52
|
+
0,
|
|
53
|
+
0
|
|
54
|
+
];
|
|
55
|
+
for (let e = n - 1; e >= 0; e--) {
|
|
56
|
+
for (let n = 0; n < 3; n++) {
|
|
57
|
+
let o = p(t, e, c[n]), s = o ? a[e + o.len][n] : r;
|
|
58
|
+
i[e][n] = o ? 1 + s : r;
|
|
59
|
+
}
|
|
60
|
+
for (let t = 0; t < 3; t++) {
|
|
61
|
+
let n = i[e][t];
|
|
62
|
+
for (let r = 0; r < 3; r++) r !== t && (n = Math.min(n, 1 + i[e][r]));
|
|
63
|
+
a[e][t] = n;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
let s = [
|
|
67
|
+
0,
|
|
68
|
+
1,
|
|
69
|
+
2
|
|
70
|
+
], f = (e) => i[0][e], m = s[0];
|
|
71
|
+
for (let e of s) f(e) < f(m) && (m = e);
|
|
72
|
+
let h = [l[c[m]]], g = 0;
|
|
73
|
+
for (; g < n;) {
|
|
74
|
+
let e = p(t, g, c[m]), n = i[g][m], r = a[g][m];
|
|
75
|
+
if (!e || n !== r) {
|
|
76
|
+
let n = -1;
|
|
77
|
+
for (let e of s) if (e !== m && 1 + i[g][e] === r) {
|
|
78
|
+
n = e;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
m = n, h.push(u[c[m]]), e = p(t, g, c[m]);
|
|
82
|
+
}
|
|
83
|
+
h.push(e.value), g += e.len;
|
|
84
|
+
}
|
|
85
|
+
let _ = h[0];
|
|
86
|
+
for (let e = 1; e < h.length; e++) _ += e * h[e];
|
|
87
|
+
return h.push(_ % 103, d), h;
|
|
88
|
+
}
|
|
89
|
+
function h(e) {
|
|
90
|
+
let t = [];
|
|
91
|
+
for (let n of e) for (let e of s[n]) t.push(Number(e));
|
|
92
|
+
return t;
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region lib/components/ui/widgets/barcode/datamatrix-placement.ts
|
|
96
|
+
function g(e, t, n, r) {
|
|
97
|
+
e(t - 2, n - 2, r, 1), e(t - 2, n - 1, r, 2), e(t - 1, n - 2, r, 3), e(t - 1, n - 1, r, 4), e(t - 1, n, r, 5), e(t, n - 2, r, 6), e(t, n - 1, r, 7), e(t, n, r, 8);
|
|
98
|
+
}
|
|
99
|
+
function _(e, t, n, { nrow: r, ncol: i }) {
|
|
100
|
+
let a = r, o = i;
|
|
101
|
+
({
|
|
102
|
+
1: [
|
|
103
|
+
[a - 1, 0],
|
|
104
|
+
[a - 1, 1],
|
|
105
|
+
[a - 1, 2],
|
|
106
|
+
[0, o - 2],
|
|
107
|
+
[0, o - 1],
|
|
108
|
+
[1, o - 1],
|
|
109
|
+
[2, o - 1],
|
|
110
|
+
[3, o - 1]
|
|
111
|
+
],
|
|
112
|
+
2: [
|
|
113
|
+
[a - 3, 0],
|
|
114
|
+
[a - 2, 0],
|
|
115
|
+
[a - 1, 0],
|
|
116
|
+
[0, o - 4],
|
|
117
|
+
[0, o - 3],
|
|
118
|
+
[0, o - 2],
|
|
119
|
+
[0, o - 1],
|
|
120
|
+
[1, o - 1]
|
|
121
|
+
],
|
|
122
|
+
3: [
|
|
123
|
+
[a - 3, 0],
|
|
124
|
+
[a - 2, 0],
|
|
125
|
+
[a - 1, 0],
|
|
126
|
+
[0, o - 2],
|
|
127
|
+
[0, o - 1],
|
|
128
|
+
[1, o - 1],
|
|
129
|
+
[2, o - 1],
|
|
130
|
+
[3, o - 1]
|
|
131
|
+
],
|
|
132
|
+
4: [
|
|
133
|
+
[a - 1, 0],
|
|
134
|
+
[a - 1, o - 1],
|
|
135
|
+
[0, o - 3],
|
|
136
|
+
[0, o - 2],
|
|
137
|
+
[0, o - 1],
|
|
138
|
+
[1, o - 3],
|
|
139
|
+
[1, o - 2],
|
|
140
|
+
[1, o - 1]
|
|
141
|
+
]
|
|
142
|
+
})[t].forEach(([t, r], i) => {
|
|
143
|
+
e(t, r, n, i + 1);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function v(e, t, n) {
|
|
147
|
+
let r = Array(t * n).fill(!1), i = Array(t * n).fill(!1), a = (a, o, s, c) => {
|
|
148
|
+
let l = a, u = o;
|
|
149
|
+
l < 0 && (l += t, u += 4 - (t + 4) % 8), u < 0 && (u += n, l += 4 - (n + 4) % 8), r[l * n + u] = (e[s] >> 8 - c & 1) == 1, i[l * n + u] = !0;
|
|
150
|
+
}, o = {
|
|
151
|
+
nrow: t,
|
|
152
|
+
ncol: n
|
|
153
|
+
}, s = (e, t) => !i[e * n + t], c = 0, l = 4, u = 0;
|
|
154
|
+
do {
|
|
155
|
+
l === t && u === 0 && _(a, 1, c++, o), l === t - 2 && u === 0 && n % 4 != 0 && _(a, 2, c++, o), l === t - 2 && u === 0 && n % 8 == 4 && _(a, 3, c++, o), l === t + 4 && u === 2 && n % 8 == 0 && _(a, 4, c++, o);
|
|
156
|
+
do
|
|
157
|
+
l < t && u >= 0 && s(l, u) && g(a, l, u, c++), l -= 2, u += 2;
|
|
158
|
+
while (l >= 0 && u < n);
|
|
159
|
+
l += 1, u += 3;
|
|
160
|
+
do
|
|
161
|
+
l >= 0 && u < n && s(l, u) && g(a, l, u, c++), l += 2, u -= 2;
|
|
162
|
+
while (l < t && u >= 0);
|
|
163
|
+
l += 3, u += 1;
|
|
164
|
+
} while (l < t || u < n);
|
|
165
|
+
let d = t * n - 1;
|
|
166
|
+
return i[d] || (r[d] = !0, r[d - n - 1] = !0), r;
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region lib/components/ui/widgets/barcode/datamatrix-rs.ts
|
|
170
|
+
var y = /* @__PURE__ */ new Uint8Array(512), b = /* @__PURE__ */ new Uint8Array(256);
|
|
171
|
+
{
|
|
172
|
+
let e = 1;
|
|
173
|
+
for (let t = 0; t < 255; t++) y[t] = e, b[e] = t, e <<= 1, e & 256 && (e ^= 301);
|
|
174
|
+
for (let e = 255; e < 512; e++) y[e] = y[e - 255];
|
|
175
|
+
}
|
|
176
|
+
var x = /* @__PURE__ */ new Map();
|
|
177
|
+
function S(e) {
|
|
178
|
+
let t = x.get(e);
|
|
179
|
+
if (t) return t;
|
|
180
|
+
let n = [1];
|
|
181
|
+
for (let t = 1; t <= e; t++) {
|
|
182
|
+
let e = Array(n.length + 1).fill(0);
|
|
183
|
+
for (let r = 0; r < n.length; r++) e[r] ^= n[r], e[r + 1] ^= n[r] === 0 ? 0 : y[b[n[r]] + t];
|
|
184
|
+
n = e;
|
|
185
|
+
}
|
|
186
|
+
return x.set(e, n), n;
|
|
187
|
+
}
|
|
188
|
+
function C(e, t) {
|
|
189
|
+
let n = S(t), r = Array(t).fill(0);
|
|
190
|
+
for (let i of e) {
|
|
191
|
+
let e = i ^ r[0];
|
|
192
|
+
if (r.shift(), r.push(0), e !== 0) for (let i = 0; i < t; i++) {
|
|
193
|
+
let t = n[i + 1];
|
|
194
|
+
t !== 0 && (r[i] ^= y[b[e] + b[t]]);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return r;
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region lib/components/ui/widgets/barcode/datamatrix-tables.ts
|
|
201
|
+
var w = (e, t, n, r, i = 1) => ({
|
|
202
|
+
side: e,
|
|
203
|
+
regions: t,
|
|
204
|
+
data: n,
|
|
205
|
+
ecc: r,
|
|
206
|
+
blocks: i
|
|
207
|
+
}), T = [
|
|
208
|
+
w(10, 1, 3, 5),
|
|
209
|
+
w(12, 1, 5, 7),
|
|
210
|
+
w(14, 1, 8, 10),
|
|
211
|
+
w(16, 1, 12, 12),
|
|
212
|
+
w(18, 1, 18, 14),
|
|
213
|
+
w(20, 1, 22, 18),
|
|
214
|
+
w(22, 1, 30, 20),
|
|
215
|
+
w(24, 1, 36, 24),
|
|
216
|
+
w(26, 1, 44, 28),
|
|
217
|
+
w(32, 2, 62, 36),
|
|
218
|
+
w(36, 2, 86, 42),
|
|
219
|
+
w(40, 2, 114, 48),
|
|
220
|
+
w(44, 2, 144, 56),
|
|
221
|
+
w(48, 2, 174, 68),
|
|
222
|
+
w(52, 2, 204, 84, 2),
|
|
223
|
+
w(64, 4, 280, 112, 2),
|
|
224
|
+
w(72, 4, 368, 144, 4),
|
|
225
|
+
w(80, 4, 456, 192, 4),
|
|
226
|
+
w(88, 4, 576, 224, 4),
|
|
227
|
+
w(96, 4, 696, 272, 4),
|
|
228
|
+
w(104, 4, 816, 336, 6),
|
|
229
|
+
w(120, 6, 1050, 408, 6),
|
|
230
|
+
w(132, 6, 1304, 496, 8),
|
|
231
|
+
w(144, 6, 1558, 620, 10)
|
|
232
|
+
];
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region lib/components/ui/widgets/barcode/datamatrix.ts
|
|
235
|
+
function E(e) {
|
|
236
|
+
let t = new TextEncoder().encode(e), n = [];
|
|
237
|
+
for (let e = 0; e < t.length; e++) {
|
|
238
|
+
let r = t[e], i = t[e + 1];
|
|
239
|
+
r >= 48 && r <= 57 && i !== void 0 && i >= 48 && i <= 57 ? (n.push(130 + (r - 48) * 10 + (i - 48)), e++) : r < 128 ? n.push(r + 1) : n.push(235, r - 127);
|
|
240
|
+
}
|
|
241
|
+
return n;
|
|
242
|
+
}
|
|
243
|
+
function D(e, t) {
|
|
244
|
+
let n = e.slice();
|
|
245
|
+
for (n.length < t && n.push(129); n.length < t;) {
|
|
246
|
+
let e = 129 + (149 * (n.length + 1) % 253 + 1);
|
|
247
|
+
n.push(e > 254 ? e - 254 : e);
|
|
248
|
+
}
|
|
249
|
+
return n;
|
|
250
|
+
}
|
|
251
|
+
function O(e) {
|
|
252
|
+
if (e.length === 0) throw new o("Data Matrix needs a value: got an empty string");
|
|
253
|
+
let t = E(e), n = T.find((e) => e.data >= t.length);
|
|
254
|
+
if (!n) throw new o(`Data Matrix holds at most 1558 codewords (about 3116 digits): got ${t.length}`);
|
|
255
|
+
let r = D(t, n.data), { blocks: i } = n, a = n.ecc / i, s = Array.from({ length: i }, () => []);
|
|
256
|
+
r.forEach((e, t) => {
|
|
257
|
+
s[t % i].push(e);
|
|
258
|
+
});
|
|
259
|
+
let c = s.map((e) => C(e, a)), l = r.slice();
|
|
260
|
+
for (let e = 0; e < a; e++) for (let t = 0; t < i; t++) l.push(c[t][e]);
|
|
261
|
+
let { side: u, regions: d } = n, f = u / d, p = f - 2, m = p * d, h = v(l, m, m), g = Array.from({ length: u }, () => Array(u).fill(!1));
|
|
262
|
+
for (let e = 0; e < d; e++) for (let t = 0; t < d; t++) {
|
|
263
|
+
let n = e * f, r = t * f;
|
|
264
|
+
for (let e = 0; e < f; e++) g[n + f - 1][r + e] = !0, g[n + e][r] = !0, g[n][r + e] = e % 2 == 0;
|
|
265
|
+
for (let e = 0; e < f; e++) g[n + e][r + f - 1] = e % 2 == 1;
|
|
266
|
+
for (let i = 0; i < p; i++) for (let a = 0; a < p; a++) g[n + 1 + i][r + 1 + a] = h[(e * p + i) * m + t * p + a] === !0;
|
|
267
|
+
}
|
|
268
|
+
return g;
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region lib/components/ui/widgets/barcode/encode.ts
|
|
272
|
+
function k(e, t = "code128") {
|
|
273
|
+
if (t === "code128") {
|
|
274
|
+
let n = h(m(e)), r = [], i = 0;
|
|
275
|
+
return n.forEach((e, t) => {
|
|
276
|
+
t % 2 == 0 && r.push([i, e]), i += e;
|
|
277
|
+
}), {
|
|
278
|
+
symbology: t,
|
|
279
|
+
width: i,
|
|
280
|
+
runs: r
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
if (t === "datamatrix") {
|
|
284
|
+
let n = O(e);
|
|
285
|
+
return {
|
|
286
|
+
symbology: t,
|
|
287
|
+
width: n.length,
|
|
288
|
+
rows: n
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
throw new o(`Unknown symbology "${String(t)}": use "code128" or "datamatrix"`);
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region lib/components/ui/widgets/barcode/barcode-geometry.ts
|
|
295
|
+
function A(e, t = {}) {
|
|
296
|
+
let n = t.symbology ?? "code128", r = k(e, n);
|
|
297
|
+
if (r.symbology === "code128") {
|
|
298
|
+
let e = t.quietZone ?? 10, i = t.barHeight ?? 40, a = t.textHeight ?? 0, o = r.runs.map(([t, n]) => `M${t + e} 0h${n}v${i}h${-n}z`).join("");
|
|
299
|
+
return {
|
|
300
|
+
symbology: n,
|
|
301
|
+
width: r.width + 2 * e,
|
|
302
|
+
height: i + a,
|
|
303
|
+
path: o,
|
|
304
|
+
textY: i + a * .8
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
let i = t.quietZone ?? 2, a = r.width, o = "";
|
|
308
|
+
return r.rows.forEach((e, t) => {
|
|
309
|
+
let n = 0;
|
|
310
|
+
for (; n < a;) {
|
|
311
|
+
if (!e[n]) {
|
|
312
|
+
n++;
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
let r = n;
|
|
316
|
+
for (; e[r];) r++;
|
|
317
|
+
o += `M${n + i} ${t + i}h${r - n}v1h${n - r}z`, n = r;
|
|
318
|
+
}
|
|
319
|
+
}), {
|
|
320
|
+
symbology: n,
|
|
321
|
+
width: a + 2 * i,
|
|
322
|
+
height: a + 2 * i,
|
|
323
|
+
path: o,
|
|
324
|
+
textY: 0
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region lib/components/ui/widgets/barcode/barcode.tsx
|
|
329
|
+
var j = 12;
|
|
330
|
+
function M({ value: e, symbology: t = "code128", label: r, decorative: o = !1, showText: s = !1, appearance: c = "themed", moduleSize: l, quietZone: u, barHeight: d, className: f, ...p }) {
|
|
331
|
+
let m = s && t === "code128" ? j : 0, h = n(() => A(e, {
|
|
332
|
+
symbology: t,
|
|
333
|
+
quietZone: u,
|
|
334
|
+
barHeight: d,
|
|
335
|
+
textHeight: m
|
|
336
|
+
}), [
|
|
337
|
+
e,
|
|
338
|
+
t,
|
|
339
|
+
u,
|
|
340
|
+
d,
|
|
341
|
+
m
|
|
342
|
+
]), g = r ?? e, _ = l ? {
|
|
343
|
+
width: h.width * l,
|
|
344
|
+
height: h.height * l
|
|
345
|
+
} : {};
|
|
346
|
+
return /* @__PURE__ */ a("svg", {
|
|
347
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
348
|
+
viewBox: `0 0 ${h.width} ${h.height}`,
|
|
349
|
+
shapeRendering: "crispEdges",
|
|
350
|
+
"data-symbology": t,
|
|
351
|
+
"data-appearance": c,
|
|
352
|
+
...o ? { "aria-hidden": !0 } : {
|
|
353
|
+
role: "img",
|
|
354
|
+
"aria-label": g
|
|
355
|
+
},
|
|
356
|
+
..._,
|
|
357
|
+
...p,
|
|
358
|
+
className: f ? `nxgt-barcode ${f}` : "nxgt-barcode",
|
|
359
|
+
children: [
|
|
360
|
+
o ? null : /* @__PURE__ */ i("title", { children: g }),
|
|
361
|
+
/* @__PURE__ */ i("rect", {
|
|
362
|
+
className: "nxgt-barcode-paper",
|
|
363
|
+
width: h.width,
|
|
364
|
+
height: h.height
|
|
365
|
+
}),
|
|
366
|
+
/* @__PURE__ */ i("path", {
|
|
367
|
+
className: "nxgt-barcode-ink",
|
|
368
|
+
d: h.path
|
|
369
|
+
}),
|
|
370
|
+
m > 0 ? /* @__PURE__ */ i("text", {
|
|
371
|
+
className: "nxgt-barcode-text",
|
|
372
|
+
x: h.width / 2,
|
|
373
|
+
y: h.textY,
|
|
374
|
+
fontSize: m * .7,
|
|
375
|
+
textAnchor: "middle",
|
|
376
|
+
children: e
|
|
377
|
+
}) : null
|
|
378
|
+
]
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region lib/components/ui/widgets/barcode/label-length.ts
|
|
383
|
+
var N = /^-?(\d+\.?\d*|\.\d+)(mm|cm|in|pt|px|rem|em)$/;
|
|
384
|
+
function P(e, t) {
|
|
385
|
+
if (typeof e == "number" && Number.isFinite(e) && e >= 0) return `${e}mm`;
|
|
386
|
+
if (typeof e == "string" && N.test(e)) return e;
|
|
387
|
+
throw new o(`${t} must be a number (millimetres) or a length such as "50mm": got ${JSON.stringify(e)}`);
|
|
388
|
+
}
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region lib/components/ui/widgets/barcode/label-sheet.tsx
|
|
391
|
+
function F({ className: e, ...t }) {
|
|
392
|
+
return /* @__PURE__ */ i("div", {
|
|
393
|
+
...t,
|
|
394
|
+
className: e ? `nxgt-label ${e}` : "nxgt-label"
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
function I(e, t, n) {
|
|
398
|
+
let r = e ?? n;
|
|
399
|
+
if (!Number.isInteger(r) || r < (t === "skip" ? 0 : 1)) throw new o(`${t} must be a whole number (rows and columns at least 1, skip at least 0): got ${String(e)}`);
|
|
400
|
+
return r;
|
|
401
|
+
}
|
|
402
|
+
function L(e) {
|
|
403
|
+
let { label: t, columns: n, gap: r, offset: i } = e, a = typeof r == "object" ? r.x : r, o = typeof r == "object" ? r.y : r;
|
|
404
|
+
return {
|
|
405
|
+
"--nxgt-label-w": P(t.width, "label.width"),
|
|
406
|
+
"--nxgt-label-h": P(t.height, "label.height"),
|
|
407
|
+
"--nxgt-label-cols": String(I(n, "columns", 1)),
|
|
408
|
+
"--nxgt-label-gap-x": P(a ?? 0, "gap"),
|
|
409
|
+
"--nxgt-label-gap-y": P(o ?? 0, "gap"),
|
|
410
|
+
"--nxgt-label-off-x": P(i?.x ?? 0, "offset.x"),
|
|
411
|
+
"--nxgt-label-off-y": P(i?.y ?? 0, "offset.y")
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function R(n) {
|
|
415
|
+
let { label: a, columns: o, rows: s, gap: c, offset: l, skip: u, children: d, className: f, ...p } = n, m = r(null), h = L({
|
|
416
|
+
label: a,
|
|
417
|
+
columns: o,
|
|
418
|
+
gap: c,
|
|
419
|
+
offset: l
|
|
420
|
+
}), g = s === void 0 ? Infinity : o * I(s, "rows", 1), _ = [...Array.from({ length: I(u, "skip", 0) }, (e, t) => /* @__PURE__ */ i(F, {
|
|
421
|
+
"data-blank": "",
|
|
422
|
+
"aria-hidden": "true"
|
|
423
|
+
}, `blank-${t}`)), ...e.toArray(d)], v = [];
|
|
424
|
+
for (let e = 0; (e < _.length || e === 0) && (v.push(_.slice(e, Number.isFinite(g) ? e + g : void 0)), Number.isFinite(g)); e += g);
|
|
425
|
+
return t(() => {
|
|
426
|
+
let e = m.current;
|
|
427
|
+
if (e) for (let [t, n] of Object.entries(h)) e.style.setProperty(t, n);
|
|
428
|
+
}, [JSON.stringify(h)]), /* @__PURE__ */ i("div", {
|
|
429
|
+
...p,
|
|
430
|
+
ref: m,
|
|
431
|
+
className: f ? `nxgt-label-sheet ${f}` : "nxgt-label-sheet",
|
|
432
|
+
children: v.map((e, t) => /* @__PURE__ */ i("div", {
|
|
433
|
+
className: "nxgt-label-page",
|
|
434
|
+
"data-page": t + 1,
|
|
435
|
+
children: e
|
|
436
|
+
}, t))
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
//#endregion
|
|
440
|
+
export { M as Barcode, o as BarcodeError, F as Label, R as LabelSheet, A as barcodeGeometry };
|