@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
|
@@ -1,165 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
/** Light and colour, each centred on 0 (no change) unless noted. */
|
|
6
|
-
export type ImageEditorAdjustments = {
|
|
7
|
-
/** −100…100 */
|
|
8
|
-
exposure: number;
|
|
9
|
-
/** −100…100 */
|
|
10
|
-
brightness: number;
|
|
11
|
-
/** −100…100 */
|
|
12
|
-
contrast: number;
|
|
13
|
-
/** −100…100: brightens (or darkens) the light tones only. */
|
|
14
|
-
highlights: number;
|
|
15
|
-
/** −100…100: brightens (or darkens) the dark tones only. */
|
|
16
|
-
shadows: number;
|
|
17
|
-
/** −100…100 */
|
|
18
|
-
saturation: number;
|
|
19
|
-
/** −100…100: saturation that spares the colours already saturated. */
|
|
20
|
-
vibrance: number;
|
|
21
|
-
/** −100…100: cool (blue) to warm (amber). */
|
|
22
|
-
warmth: number;
|
|
23
|
-
/** −100…100: green to magenta. */
|
|
24
|
-
tint: number;
|
|
25
|
-
/** −180…180 degrees around the colour wheel. */
|
|
26
|
-
hue: number;
|
|
27
|
-
/** 0…100: lifts the blacks and dims the whites (a matte look). */
|
|
28
|
-
fade: number;
|
|
29
|
-
/** 0…100: the brown tone of old prints. */
|
|
30
|
-
sepia: number;
|
|
31
|
-
/** 0…100: darkens the corners. */
|
|
32
|
-
vignette: number;
|
|
33
|
-
/** 0…100: film grain. */
|
|
34
|
-
grain: number;
|
|
35
|
-
/** 0…100: a Gaussian blur, scaled with the image. */
|
|
36
|
-
blur: number;
|
|
37
|
-
};
|
|
38
|
-
export type ImageEditorAdjustmentKey = keyof ImageEditorAdjustments;
|
|
39
|
-
/** A rectangle in the oriented image, every value a fraction (0…1). */
|
|
40
|
-
export type ImageEditorRect = {
|
|
41
|
-
x: number;
|
|
42
|
-
y: number;
|
|
43
|
-
w: number;
|
|
44
|
-
h: number;
|
|
45
|
-
};
|
|
46
|
-
/** Turns of 90° clockwise, then the mirror, then a small straightening tilt. */
|
|
47
|
-
export type ImageEditorTransform = {
|
|
48
|
-
/** 0, 1, 2 or 3 quarter turns clockwise. */
|
|
49
|
-
quarterTurns: number;
|
|
50
|
-
flipX: boolean;
|
|
51
|
-
flipY: boolean;
|
|
52
|
-
/** −45…45 degrees; the image is scaled up so no corner shows empty. */
|
|
53
|
-
straighten: number;
|
|
54
|
-
};
|
|
55
|
-
type AnnotationBase = {
|
|
56
|
-
id: string;
|
|
57
|
-
color: string;
|
|
58
|
-
size: number;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* A mark drawn over the image. Coordinates are fractions of the oriented
|
|
62
|
-
* image (before the crop), so a mark stays on what it points at whatever
|
|
63
|
-
* the crop; `size` is a fraction of the image's shorter side.
|
|
64
|
-
*/
|
|
65
|
-
export type ImageEditorAnnotation = (AnnotationBase & {
|
|
66
|
-
kind: 'pen' | 'highlighter';
|
|
67
|
-
/** Flat list of x, y pairs. */
|
|
68
|
-
points: number[];
|
|
69
|
-
}) | (AnnotationBase & {
|
|
70
|
-
kind: 'line' | 'arrow';
|
|
71
|
-
x1: number;
|
|
72
|
-
y1: number;
|
|
73
|
-
x2: number;
|
|
74
|
-
y2: number;
|
|
75
|
-
}) | (AnnotationBase & ImageEditorRect & {
|
|
76
|
-
kind: 'rect' | 'ellipse';
|
|
77
|
-
fill: boolean;
|
|
78
|
-
}) | (AnnotationBase & ImageEditorRect & {
|
|
79
|
-
kind: 'redact';
|
|
80
|
-
}) | (AnnotationBase & {
|
|
81
|
-
kind: 'text';
|
|
82
|
-
x: number;
|
|
83
|
-
y: number;
|
|
84
|
-
text: string;
|
|
85
|
-
/** Draws the text on a rounded plate of the contrasting colour. */
|
|
86
|
-
background: boolean;
|
|
87
|
-
});
|
|
88
|
-
export type ImageEditorAnnotationKind = ImageEditorAnnotation['kind'];
|
|
89
|
-
/**
|
|
90
|
-
* Everything the user changed, non-destructively: the original image is
|
|
91
|
-
* never touched, and these edits can be stored and applied again
|
|
92
|
-
* (`defaultEdits`).
|
|
93
|
-
*/
|
|
94
|
-
export type ImageEditorEdits = {
|
|
95
|
-
adjustments: ImageEditorAdjustments;
|
|
96
|
-
/** A preset from `IMAGE_EDITOR_FILTERS`; `'none'` for the original look. */
|
|
97
|
-
filter: string;
|
|
98
|
-
/** 0…100: how much of the filter is applied. */
|
|
99
|
-
filterIntensity: number;
|
|
100
|
-
transform: ImageEditorTransform;
|
|
101
|
-
/** The kept part of the oriented image. */
|
|
102
|
-
crop: ImageEditorRect;
|
|
103
|
-
annotations: ImageEditorAnnotation[];
|
|
104
|
-
};
|
|
105
|
-
/** Edits to start from: any part may be left out, and is then neutral. */
|
|
106
|
-
export type ImageEditorEditsInput = Partial<Omit<ImageEditorEdits, 'adjustments' | 'transform'>> & {
|
|
107
|
-
adjustments?: Partial<ImageEditorAdjustments>;
|
|
108
|
-
transform?: Partial<ImageEditorTransform>;
|
|
109
|
-
};
|
|
110
|
-
export type ImageEditorExportFormat = 'image/png' | 'image/jpeg' | 'image/webp';
|
|
111
|
-
export type ImageEditorExportOptions = {
|
|
112
|
-
format: ImageEditorExportFormat;
|
|
113
|
-
/** 0…1, for JPEG and WebP. */
|
|
114
|
-
quality: number;
|
|
115
|
-
/** Fraction of the cropped size, 0.1…1. */
|
|
116
|
-
scale: number;
|
|
117
|
-
};
|
|
118
|
-
export type ImageEditorResult = {
|
|
119
|
-
blob: Blob;
|
|
120
|
-
file: File;
|
|
121
|
-
width: number;
|
|
122
|
-
height: number;
|
|
123
|
-
edits: ImageEditorEdits;
|
|
124
|
-
};
|
|
125
|
-
/** The pen, shape and text settings the next mark is drawn with. */
|
|
126
|
-
export type ImageEditorBrush = {
|
|
127
|
-
color: string;
|
|
128
|
-
/** Fraction of the image's shorter side. */
|
|
129
|
-
size: number;
|
|
130
|
-
fill: boolean;
|
|
131
|
-
background: boolean;
|
|
132
|
-
};
|
|
133
|
-
/** A crop ratio: `null` is free, `'original'` keeps the image's own. */
|
|
134
|
-
export type ImageEditorAspect = number | 'original' | null;
|
|
135
|
-
export type ImageEditorAspectPreset = {
|
|
136
|
-
id: string;
|
|
137
|
-
label: string;
|
|
138
|
-
value: ImageEditorAspect;
|
|
139
|
-
};
|
|
140
|
-
export type ImageEditorChromeState = {
|
|
141
|
-
edits: ImageEditorEdits;
|
|
142
|
-
past: ImageEditorEdits[];
|
|
143
|
-
future: ImageEditorEdits[];
|
|
144
|
-
/** The gesture the last history entry belongs to; a slider drag is one. */
|
|
145
|
-
historyGroup: string | null;
|
|
146
|
-
tool: ImageEditorTool;
|
|
147
|
-
markupTool: ImageEditorMarkupTool;
|
|
148
|
-
brush: ImageEditorBrush;
|
|
149
|
-
selectedId: string | null;
|
|
150
|
-
/** `null` fits the image to the stage. */
|
|
151
|
-
zoom: number | null;
|
|
152
|
-
/** Shows the original while held. */
|
|
153
|
-
comparing: boolean;
|
|
154
|
-
/** Shows the original and the result side by side, split by a handle. */
|
|
155
|
-
split: boolean;
|
|
156
|
-
aspect: ImageEditorAspect;
|
|
157
|
-
exportOptions: ImageEditorExportOptions;
|
|
158
|
-
/** The text mark being retyped: its drawn copy is hidden under the text box. */
|
|
159
|
-
editingId: string | null;
|
|
160
|
-
/** The keyboard shortcuts dialog. */
|
|
161
|
-
shortcutsOpen: boolean;
|
|
162
|
-
};
|
|
1
|
+
import { ImageEditorEdits, ImageEditorEditsInput } from './types-edits.js';
|
|
2
|
+
import { ImageEditorAspectPreset, ImageEditorExportOptions, ImageEditorResult, ImageEditorTool } from './types-session.js';
|
|
3
|
+
export type * from './types-edits.js';
|
|
4
|
+
export type * from './types-session.js';
|
|
163
5
|
export type ImageEditorProps = {
|
|
164
6
|
/** The image: a URL (same origin, or served with CORS), a `Blob` or a `File`. */
|
|
165
7
|
src: string | Blob;
|
|
@@ -190,4 +32,3 @@ export type ImageEditorProps = {
|
|
|
190
32
|
hideDownload?: boolean;
|
|
191
33
|
className?: string;
|
|
192
34
|
};
|
|
193
|
-
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { CropHandle, Size } from './image-editor.geometry.js';
|
|
3
|
+
import { useImageEditorContext } from './image-editor-provider.js';
|
|
4
|
+
import { ImageEditorRect } from './types.js';
|
|
5
|
+
type Options = {
|
|
6
|
+
crop: ImageEditorRect;
|
|
7
|
+
base: Size;
|
|
8
|
+
/** The fixed width / height ratio, or `null` for a free frame. */
|
|
9
|
+
ratio: number | null;
|
|
10
|
+
actions: ReturnType<typeof useImageEditorContext>['actions'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The crop frame's pointer drag (move or resize from a handle) and its arrow
|
|
14
|
+
* keys, each gesture one history step.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCropFrame({ crop, base, ratio, actions }: Options): {
|
|
17
|
+
layerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
18
|
+
dragging: boolean;
|
|
19
|
+
keying: boolean;
|
|
20
|
+
setKeying: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
21
|
+
begin: (handle: CropHandle) => (event: PointerEvent) => void;
|
|
22
|
+
onPointerMove: (event: PointerEvent) => void;
|
|
23
|
+
end: () => void;
|
|
24
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { ImageEditorModel } from './use-image-editor.js';
|
|
3
|
+
/** The editor's `onKeyDown`: the pure key table bound to the slice's actions. */
|
|
4
|
+
export declare function useImageEditorKeys(actions: ImageEditorModel['actions'], selected: ImageEditorModel['selected'], zoom: ImageEditorModel['zoom']): (event: KeyboardEvent) => void;
|
|
@@ -6,7 +6,7 @@ import { ImageEditorExport } from './use-image-editor-export.js';
|
|
|
6
6
|
import { ImageEditorZoom } from './use-image-editor-zoom.js';
|
|
7
7
|
import { ImageSourceState } from './use-image-source.js';
|
|
8
8
|
type Chrome = ReturnType<typeof imageEditorSlice.getInitialState>;
|
|
9
|
-
declare const useEditorSlice: (initial: Partial<Chrome>) => readonly [import('./types.js').ImageEditorChromeState, {
|
|
9
|
+
declare const useEditorSlice: (initial: Partial<Chrome>) => readonly [import('./types-session.js').ImageEditorChromeState, {
|
|
10
10
|
resetAll: (noArgument?: void | undefined) => void;
|
|
11
11
|
endGesture: (noArgument?: void | undefined) => void;
|
|
12
12
|
undo: (noArgument?: void | undefined) => void;
|
|
@@ -17,10 +17,10 @@ declare const useEditorSlice: (initial: Partial<Chrome>) => readonly [import('./
|
|
|
17
17
|
setSplit: (payload: boolean) => void;
|
|
18
18
|
setEditingId: (payload: string | null) => void;
|
|
19
19
|
setShortcutsOpen: (payload: boolean) => void;
|
|
20
|
-
setExportOptions: (payload: Partial<import('./types.js').ImageEditorExportOptions>) => void;
|
|
21
|
-
addAnnotation: (payload: import('./types.js').ImageEditorAnnotation) => void;
|
|
20
|
+
setExportOptions: (payload: Partial<import('./types-session.js').ImageEditorExportOptions>) => void;
|
|
21
|
+
addAnnotation: (payload: import('./types-edits.js').ImageEditorAnnotation) => void;
|
|
22
22
|
updateAnnotation: (payload: {
|
|
23
|
-
annotation: import('./types.js').ImageEditorAnnotation;
|
|
23
|
+
annotation: import('./types-edits.js').ImageEditorAnnotation;
|
|
24
24
|
gesture?: string;
|
|
25
25
|
}) => void;
|
|
26
26
|
moveAnnotation: (payload: {
|
|
@@ -34,7 +34,7 @@ declare const useEditorSlice: (initial: Partial<Chrome>) => readonly [import('./
|
|
|
34
34
|
bringToFront: (payload: string) => void;
|
|
35
35
|
clearAnnotations: (noArgument?: void | undefined) => void;
|
|
36
36
|
selectAnnotation: (payload: string | null) => void;
|
|
37
|
-
setBrush: (payload: Partial<import('./types.js').ImageEditorBrush>) => void;
|
|
37
|
+
setBrush: (payload: Partial<import('./types-session.js').ImageEditorBrush>) => void;
|
|
38
38
|
turn: (payload: 1 | -1) => void;
|
|
39
39
|
flip: (payload: "x" | "y") => void;
|
|
40
40
|
setStraighten: (payload: number) => void;
|
|
@@ -43,17 +43,17 @@ declare const useEditorSlice: (initial: Partial<Chrome>) => readonly [import('./
|
|
|
43
43
|
gesture?: string;
|
|
44
44
|
}) => void;
|
|
45
45
|
resetTransform: (noArgument?: void | undefined) => void;
|
|
46
|
-
setTool: (payload: import('./types.js').ImageEditorTool) => void;
|
|
47
|
-
setMarkupTool: (payload: import('./types.js').ImageEditorMarkupTool) => void;
|
|
46
|
+
setTool: (payload: import('./types-session.js').ImageEditorTool) => void;
|
|
47
|
+
setMarkupTool: (payload: import('./types-session.js').ImageEditorMarkupTool) => void;
|
|
48
48
|
setAdjustment: (payload: {
|
|
49
|
-
key: import('./types.js').ImageEditorAdjustmentKey;
|
|
49
|
+
key: import('./types-edits.js').ImageEditorAdjustmentKey;
|
|
50
50
|
value: number;
|
|
51
51
|
}) => void;
|
|
52
|
-
applyAdjustments: (payload: Partial<import('./types.js').ImageEditorAdjustments>) => void;
|
|
52
|
+
applyAdjustments: (payload: Partial<import('./types-edits.js').ImageEditorAdjustments>) => void;
|
|
53
53
|
resetAdjustments: (noArgument?: void | undefined) => void;
|
|
54
54
|
setFilter: (payload: string) => void;
|
|
55
55
|
setFilterIntensity: (payload: number) => void;
|
|
56
|
-
setAspect: (payload: import('./types.js').ImageEditorAspect) => void;
|
|
56
|
+
setAspect: (payload: import('./types-session.js').ImageEditorAspect) => void;
|
|
57
57
|
}];
|
|
58
58
|
type SliceTuple = ReturnType<typeof useEditorSlice>;
|
|
59
59
|
export type ImageEditorModel = {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextDraft } from './partials/editor-text-box.js';
|
|
2
|
+
/**
|
|
3
|
+
* The text box being edited on the markup layer: the draft, the hiding of the
|
|
4
|
+
* drawn copy while it is retyped, and the commit (add, update or remove).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useMarkupText(): {
|
|
7
|
+
draft: TextDraft | null;
|
|
8
|
+
setDraft: import('react').Dispatch<import('react').SetStateAction<TextDraft | null>>;
|
|
9
|
+
commitText: (text: string) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ImageEditorEdits } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* What the stage's cached image layer depends on, as a string; the marks are
|
|
4
|
+
* not part of it, so drawing one does not repaint the slow layer.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useStageLayerKey(edits: ImageEditorEdits, region: 'crop' | 'full', scale: number, comparing: boolean): string;
|
|
@@ -5,7 +5,7 @@ export type StagePoint = {
|
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
7
7
|
};
|
|
8
|
-
type
|
|
8
|
+
export type StagePointerOptions = {
|
|
9
9
|
tool: ImageEditorMarkupTool;
|
|
10
10
|
brush: ImageEditorBrush;
|
|
11
11
|
base: Size;
|
|
@@ -22,11 +22,10 @@ type Options = {
|
|
|
22
22
|
editText: (at: StagePoint, mark?: ImageEditorAnnotation) => void;
|
|
23
23
|
};
|
|
24
24
|
/** The Markup tools on the stage: draw, select and move, erase, place text. */
|
|
25
|
-
export declare function useStagePointer(options:
|
|
25
|
+
export declare function useStagePointer(options: StagePointerOptions): {
|
|
26
26
|
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
27
27
|
onPointerMove: (event: PointerEvent<HTMLElement>) => void;
|
|
28
28
|
onPointerUp: (event: PointerEvent<HTMLElement>) => void;
|
|
29
29
|
onPointerCancel: (event: PointerEvent<HTMLElement>) => void;
|
|
30
30
|
onDoubleClick: (event: MouseEvent<HTMLElement>) => void;
|
|
31
31
|
};
|
|
32
|
-
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
/** The transcript's load status, `'ready'` with no lines counting as `'none'`. */
|
|
3
|
+
status: 'none' | 'loading' | 'ready' | 'error';
|
|
4
|
+
};
|
|
5
|
+
/** The one-line status shown while the transcript loads, fails or is missing. */
|
|
6
|
+
export declare function TranscriptNotice({ status }: Props): import("react").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/lib/components/ui/media/media-player/partials/panels/use-search-announcement.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TranscriptSearch } from './use-transcript-search.js';
|
|
2
|
+
/**
|
|
3
|
+
* What a screen reader hears of the search: "5 matches", then "Match 2 of 5".
|
|
4
|
+
* Typing waits for a pause; stepping between matches is said at once.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSearchAnnouncement({ query, matches, active, }: TranscriptSearch): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MediaPlayerTone, MediaTrack } from '../types.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
track: MediaTrack;
|
|
4
|
+
tone: MediaPlayerTone;
|
|
5
|
+
/** The playing item. */
|
|
6
|
+
current: boolean;
|
|
7
|
+
/** The playing item's measured duration, which wins over the track's own. */
|
|
8
|
+
duration: number;
|
|
9
|
+
onPlay: () => void;
|
|
10
|
+
};
|
|
11
|
+
/** One row of the playlist: thumbnail, title, artist and duration. */
|
|
12
|
+
export declare function PlaylistItem({ track, tone, current, duration, onPlay, }: Props): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PdfReaderShellProps, ReaderLayout } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The reader's chrome slice, with the layout the prop controls when it is
|
|
4
|
+
* given: `asked` is the layout asked for, and `setLayout` calls
|
|
5
|
+
* `onLayoutChange` before it moves the slice (when uncontrolled).
|
|
6
|
+
*/
|
|
7
|
+
export declare function useReaderChromeState(props: PdfReaderShellProps): {
|
|
8
|
+
chrome: {
|
|
9
|
+
layout: import('@nxgt/material-core/pdf-reader').SpreadMode;
|
|
10
|
+
size: import('./types.js').ReaderSize;
|
|
11
|
+
panelOpen: boolean;
|
|
12
|
+
panelTab: import('./types.js').PanelTab;
|
|
13
|
+
searchOpen: boolean;
|
|
14
|
+
searchFocusTick: number;
|
|
15
|
+
annotating: boolean;
|
|
16
|
+
tool: import('./types.js').AnnotateTool;
|
|
17
|
+
color: import('./types.js').AnnotateColor;
|
|
18
|
+
};
|
|
19
|
+
chromeActions: {
|
|
20
|
+
setLayout: (next: ReaderLayout) => void;
|
|
21
|
+
setSize: (payload: import('./types.js').ReaderSize) => void;
|
|
22
|
+
selectPanelTab: (payload: import('./types.js').PanelTab) => void;
|
|
23
|
+
openPanelTab: (payload: import('./types.js').PanelTab) => void;
|
|
24
|
+
togglePanel: (noArgument?: void | undefined) => void;
|
|
25
|
+
closePanel: (noArgument?: void | undefined) => void;
|
|
26
|
+
openSearchField: (noArgument?: void | undefined) => void;
|
|
27
|
+
focusSearch: (noArgument?: void | undefined) => void;
|
|
28
|
+
closeSearchField: (noArgument?: void | undefined) => void;
|
|
29
|
+
startAnnotating: (noArgument?: void | undefined) => void;
|
|
30
|
+
stopAnnotating: (noArgument?: void | undefined) => void;
|
|
31
|
+
setTool: (payload: import('./types.js').AnnotateTool) => void;
|
|
32
|
+
setColor: (payload: "pink" | "blue" | "green" | "red" | "yellow") => void;
|
|
33
|
+
};
|
|
34
|
+
asked: import('@nxgt/material-core/pdf-reader').SpreadMode;
|
|
35
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { ReaderChromeValue } from './pdf-reader-context.js';
|
|
3
|
+
import { PdfReaderShellProps } from './types.js';
|
|
4
|
+
type Options = Pick<ReaderChromeValue, 'chrome' | 'chromeActions' | 'layout' | 'mode' | 'frameRef' | 'props'> & {
|
|
5
|
+
props: PdfReaderShellProps;
|
|
6
|
+
frameRef: RefObject<HTMLDivElement | null>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The chrome context's value, with the fullscreen, search and leave commands.
|
|
10
|
+
* Stable while nothing the chrome shows changed: a scroll that turns the page
|
|
11
|
+
* re-renders the provider, not every consumer of the chrome.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useReaderChromeValue({ chrome, chromeActions, layout, mode, frameRef, props, }: Options): ReaderChromeValue;
|
|
14
|
+
export {};
|
package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-dropzone-body.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
active: boolean;
|
|
3
|
+
atCapacity: boolean;
|
|
4
|
+
constraints?: string;
|
|
5
|
+
};
|
|
6
|
+
/** The drop zone's icon, its idle or at-capacity line, and the constraints. */
|
|
7
|
+
export declare function NetworkUploadDropzoneBody({ active, atCapacity, constraints, }: Props): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ref, RefObject } from 'react';
|
|
2
|
+
import { SegmentDef, SegmentKey, SegmentValues } from './segment-defs.js';
|
|
3
|
+
import { useSegments } from './use-segments.js';
|
|
4
|
+
/** The segments of a field, in their parts (the date, the time), each a real input. */
|
|
5
|
+
export declare function SegmentedInputCells({ segments, values, inputs, labels, placeholders, periodNames, emptyText, firstId, firstRef, disabled, readOnly, required, invalid, keys, }: {
|
|
6
|
+
segments: SegmentDef[];
|
|
7
|
+
values: SegmentValues;
|
|
8
|
+
inputs: RefObject<(HTMLInputElement | null)[]>;
|
|
9
|
+
labels: Record<SegmentKey, string>;
|
|
10
|
+
placeholders: Record<SegmentKey, string>;
|
|
11
|
+
periodNames: [string, string];
|
|
12
|
+
emptyText: string;
|
|
13
|
+
firstId?: string;
|
|
14
|
+
firstRef?: Ref<HTMLInputElement>;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
keys: ReturnType<typeof useSegments>;
|
|
20
|
+
}): import("react").JSX.Element[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClipboardEvent, RefObject } from 'react';
|
|
2
|
+
import { SegmentDef, SegmentValues } from './segment-defs.js';
|
|
3
|
+
import { useSegments } from './use-segments.js';
|
|
4
|
+
/**
|
|
5
|
+
* A paste is the field's, never the input's own (which keeps only its last
|
|
6
|
+
* character): `pastedValues`, or nothing.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSegmentPaste({ inputs, segments, values, periodInitials, keys, onValuesChange, locked, }: {
|
|
9
|
+
inputs: RefObject<(HTMLInputElement | null)[]>;
|
|
10
|
+
segments: SegmentDef[];
|
|
11
|
+
values: SegmentValues;
|
|
12
|
+
periodInitials: [string, string];
|
|
13
|
+
keys: ReturnType<typeof useSegments>;
|
|
14
|
+
onValuesChange: (values: SegmentValues) => void;
|
|
15
|
+
/** Disabled or read-only: the paste is ignored. */
|
|
16
|
+
locked?: boolean;
|
|
17
|
+
}): (event: ClipboardEvent<HTMLDivElement>) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SegmentDef, SegmentValues } from './segment-defs.js';
|
|
2
|
+
/** The segments' inputs and keyboard: focus moves between them, and past an end it asks `onEdge`. */
|
|
3
|
+
export declare function useSegmentedKeys({ segments, values, onValuesChange, periodNames, onEdge, }: {
|
|
4
|
+
segments: SegmentDef[];
|
|
5
|
+
values: SegmentValues;
|
|
6
|
+
onValuesChange: (values: SegmentValues) => void;
|
|
7
|
+
periodNames: [string, string];
|
|
8
|
+
onEdge?: (direction: -1 | 1) => void;
|
|
9
|
+
}): {
|
|
10
|
+
inputs: import('react').RefObject<(HTMLInputElement | null)[]>;
|
|
11
|
+
keys: {
|
|
12
|
+
onKeyDown: (index: number) => (event: import('react').KeyboardEvent<HTMLInputElement>) => void;
|
|
13
|
+
onInput: (index: number, text: string, inputType?: string) => void;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
};
|
|
16
|
+
periodInitials: [string, string];
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Search results are new objects: an option is its value. */
|
|
2
|
+
export declare function sameOption<T>(getOptionValue: (option: T) => string): (item: T, value: T) => boolean;
|
|
3
|
+
/** The "add" button: picks the typed text, then returns the focus to the input. */
|
|
4
|
+
export declare function addFreeSolo(ac: {
|
|
5
|
+
handleValueChange: (value: string | string[]) => void;
|
|
6
|
+
values: string[];
|
|
7
|
+
}, mode: string | undefined, query: string, id: string): void;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AutocompleteOption, AutocompleteProps } from '../types.js';
|
|
1
|
+
import { AutocompleteChipsProps, AutocompleteOption } from '../types.js';
|
|
3
2
|
/**
|
|
4
3
|
* The label, the chips of the selected options, the input, the helper text
|
|
5
4
|
* and the field's live region.
|
|
6
5
|
*/
|
|
7
|
-
export declare function AutocompleteChips<T extends AutocompleteOption>({ slot, values, getOptionValue, getOptionLabel, ...props }:
|
|
8
|
-
onRemove: (value: string) => void;
|
|
9
|
-
anchor: RefObject<HTMLDivElement | null>;
|
|
10
|
-
/** @deprecated The list hangs under the chips box (`anchor`); this only refs the wrapper. */
|
|
11
|
-
listAnchor?: RefObject<HTMLDivElement | null>;
|
|
12
|
-
values: string[];
|
|
13
|
-
/** `display="text"`: the value is the input's text, not a chip. */
|
|
14
|
-
text?: boolean;
|
|
15
|
-
/** The option picked, in `text` display. */
|
|
16
|
-
selected?: T | null;
|
|
17
|
-
/** Focus left an element of the field (`text` display restores the label). */
|
|
18
|
-
onFieldBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
19
|
-
/** What the field's polite live region says about the list. */
|
|
20
|
-
announcement?: ReactNode;
|
|
21
|
-
/** The list, when it sits in the field's flow (in a dialog). */
|
|
22
|
-
children?: ReactNode;
|
|
23
|
-
}): import("react").JSX.Element;
|
|
6
|
+
export declare function AutocompleteChips<T extends AutocompleteOption>({ slot, values, getOptionValue, getOptionLabel, ...props }: AutocompleteChipsProps<T>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { FocusEvent, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { InputGroupFieldProps } from '../../fields/input-group-field/input-group-field.js';
|
|
3
3
|
export type AutocompleteOption = {
|
|
4
4
|
value: string;
|
|
@@ -98,3 +98,21 @@ export type AutocompleteProps<T extends AutocompleteOption = AutocompleteOption>
|
|
|
98
98
|
value: string[];
|
|
99
99
|
onValueChange?: (value?: string[] | null) => void;
|
|
100
100
|
});
|
|
101
|
+
/** What `AutocompleteChips` takes: the field's props and its live state. */
|
|
102
|
+
export type AutocompleteChipsProps<T extends AutocompleteOption> = AutocompleteProps<T> & {
|
|
103
|
+
onRemove: (value: string) => void;
|
|
104
|
+
anchor: RefObject<HTMLDivElement | null>;
|
|
105
|
+
/** @deprecated The list hangs under the chips box (`anchor`); this only refs the wrapper. */
|
|
106
|
+
listAnchor?: RefObject<HTMLDivElement | null>;
|
|
107
|
+
values: string[];
|
|
108
|
+
/** `display="text"`: the value is the input's text, not a chip. */
|
|
109
|
+
text?: boolean;
|
|
110
|
+
/** The option picked, in `text` display. */
|
|
111
|
+
selected?: T | null;
|
|
112
|
+
/** Focus left an element of the field (`text` display restores the label). */
|
|
113
|
+
onFieldBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
114
|
+
/** What the field's polite live region says about the list. */
|
|
115
|
+
announcement?: ReactNode;
|
|
116
|
+
/** The list, when it sits in the field's flow (in a dialog). */
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Dispatch,
|
|
2
|
-
import { ChangeEventDetails } from '../combobox/combobox.js';
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
2
|
import { AutocompleteOption, AutocompleteProps } from './types.js';
|
|
4
3
|
type State<T> = {
|
|
5
4
|
setQuery: Dispatch<SetStateAction<string>>;
|
|
@@ -15,10 +14,10 @@ type State<T> = {
|
|
|
15
14
|
};
|
|
16
15
|
/** What the Combobox and the chips call back: a pick, a removal, typing. */
|
|
17
16
|
export declare function useAutocompleteHandlers<T extends AutocompleteOption>(props: AutocompleteProps<T>, { setQuery, setOpen, text, editing, setEditing, query, getOptionValue: readValue, remember, }: State<T>): {
|
|
17
|
+
handleFieldBlur: (event: import('react').FocusEvent<HTMLElement>) => void;
|
|
18
|
+
handleInputValueChange: (value: string, eventDetails: import('../index.js').ChangeEventDetails) => void;
|
|
19
|
+
handleOpenChange: (open: boolean, details: import('../index.js').ChangeEventDetails) => void;
|
|
18
20
|
handleRemove: (value: string) => void;
|
|
19
|
-
handleValueChange: (value: any, details?: ChangeEventDetails) => void;
|
|
20
|
-
handleInputValueChange: (value: string, eventDetails: ChangeEventDetails) => void;
|
|
21
|
-
handleOpenChange: (open: boolean, details: ChangeEventDetails) => void;
|
|
22
|
-
handleFieldBlur: (event: FocusEvent<HTMLElement>) => void;
|
|
21
|
+
handleValueChange: (value: any, details?: import('../index.js').ChangeEventDetails) => void;
|
|
23
22
|
};
|
|
24
23
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, FocusEvent, SetStateAction } from 'react';
|
|
2
|
+
import { AutocompleteOption, AutocompleteProps } from './types.js';
|
|
3
|
+
type Leave = {
|
|
4
|
+
setQuery: Dispatch<SetStateAction<string>>;
|
|
5
|
+
text: boolean;
|
|
6
|
+
editing: boolean;
|
|
7
|
+
setEditing: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
query: string;
|
|
9
|
+
};
|
|
10
|
+
/** Focus leaving the field: the typed text is dropped or the value cleared. */
|
|
11
|
+
export declare function useAutocompleteLeave<T extends AutocompleteOption>(props: AutocompleteProps<T>, { setQuery, text, editing, setEditing, query }: Leave): {
|
|
12
|
+
handleFieldBlur: (event: FocusEvent<HTMLElement>) => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { ChangeEventDetails } from '../combobox/combobox.js';
|
|
3
|
+
import { AutocompleteOption, AutocompleteProps } from './types.js';
|
|
4
|
+
type Picks<T> = {
|
|
5
|
+
setQuery: Dispatch<SetStateAction<string>>;
|
|
6
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
text: boolean;
|
|
8
|
+
setEditing: Dispatch<SetStateAction<boolean>>;
|
|
9
|
+
getOptionValue: (option: T) => string;
|
|
10
|
+
remember: (options: T[]) => void;
|
|
11
|
+
};
|
|
12
|
+
/** A pick or a removal: what the field's `onValueChange` is told. */
|
|
13
|
+
export declare function useAutocompletePicks<T extends AutocompleteOption>(props: AutocompleteProps<T>, { setQuery, setOpen, text, setEditing, getOptionValue: readValue, remember, }: Picks<T>): {
|
|
14
|
+
handleRemove: (value: string) => void;
|
|
15
|
+
handleValueChange: (value: any, details?: ChangeEventDetails) => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { ChangeEventDetails } from '../combobox/combobox.js';
|
|
3
|
+
type Typing = {
|
|
4
|
+
setQuery: Dispatch<SetStateAction<string>>;
|
|
5
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
text: boolean;
|
|
7
|
+
setEditing: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
};
|
|
9
|
+
/** Typing in the input and opening or closing the list. */
|
|
10
|
+
export declare function useAutocompleteTyping({ setQuery, setOpen, text, setEditing, }: Typing): {
|
|
11
|
+
handleInputValueChange: (value: string, eventDetails: ChangeEventDetails) => void;
|
|
12
|
+
handleOpenChange: (open: boolean, details: ChangeEventDetails) => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -5,11 +5,11 @@ type Readers<T> = {
|
|
|
5
5
|
};
|
|
6
6
|
/** Autocomplete's state and callbacks; the component only lays them out. */
|
|
7
7
|
export declare function useAutocomplete<T extends AutocompleteOption>(props: AutocompleteProps<T>, readers: Readers<T>): {
|
|
8
|
-
|
|
9
|
-
handleValueChange: (value: any, details?: import('../index.js').ChangeEventDetails) => void;
|
|
8
|
+
handleFieldBlur: (event: import('react').FocusEvent<HTMLElement>) => void;
|
|
10
9
|
handleInputValueChange: (value: string, eventDetails: import('../index.js').ChangeEventDetails) => void;
|
|
11
10
|
handleOpenChange: (open: boolean, details: import('../index.js').ChangeEventDetails) => void;
|
|
12
|
-
|
|
11
|
+
handleRemove: (value: string) => void;
|
|
12
|
+
handleValueChange: (value: any, details?: import('../index.js').ChangeEventDetails) => void;
|
|
13
13
|
fullOptions: T[];
|
|
14
14
|
selectable: T[];
|
|
15
15
|
showAddButton: boolean;
|