@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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The classes of a month cell: its height by density, and the washes for weekend, outside, today and the drag range. */
|
|
2
|
+
export declare function monthDayCellClass({ compact, outside, isToday, painting, disabled, weekend, }: {
|
|
3
|
+
compact: boolean;
|
|
4
|
+
outside: boolean;
|
|
5
|
+
isToday: boolean;
|
|
6
|
+
painting: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
weekend: boolean;
|
|
9
|
+
}): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CalendarEvent } from '../types.js';
|
|
2
|
+
/** The day number in a month cell: a filled disc today, a ring on the phone's chosen day. */
|
|
3
|
+
export declare function MonthDayNumber({ day, isToday, isCursor, outside, }: {
|
|
4
|
+
day: Date;
|
|
5
|
+
isToday: boolean;
|
|
6
|
+
isCursor: boolean;
|
|
7
|
+
outside: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
/** Up to three coloured dots standing for the day's events on a phone. */
|
|
10
|
+
export declare function MonthDayDots({ items }: {
|
|
11
|
+
items: CalendarEvent[];
|
|
12
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a month cell derives and does: its events, its flags (today, outside
|
|
3
|
+
* the month, the cursor, inside the dragged range), its spoken label, and
|
|
4
|
+
* what a click or key does (choose the day on a phone, open the day's
|
|
5
|
+
* dialog, or start a new event).
|
|
6
|
+
*/
|
|
7
|
+
export declare function useMonthDay({ day, month, draft, }: {
|
|
8
|
+
day: Date;
|
|
9
|
+
month: Date;
|
|
10
|
+
draft: {
|
|
11
|
+
from: Date;
|
|
12
|
+
to: Date;
|
|
13
|
+
} | null;
|
|
14
|
+
}): {
|
|
15
|
+
items: import('./types.js').CalendarEvent[];
|
|
16
|
+
outside: boolean;
|
|
17
|
+
isToday: boolean;
|
|
18
|
+
isCursor: boolean;
|
|
19
|
+
compact: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
painting: boolean;
|
|
22
|
+
open: boolean;
|
|
23
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
24
|
+
activate: (target: EventTarget | null) => void;
|
|
25
|
+
onKeyDown: (event: import('react').KeyboardEvent<HTMLElement>, day: Date) => void;
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DragEndEvent } from '@dnd-kit/core';
|
|
2
|
+
import { KanbanColumn, KanbanItem } from './types.js';
|
|
3
|
+
type Board = {
|
|
4
|
+
columns: KanbanColumn[];
|
|
5
|
+
itemsById: Map<string, KanbanItem>;
|
|
6
|
+
moveItem: (itemId: string, toColumnId: string, beforeId?: string, toGroupId?: string | null) => void;
|
|
7
|
+
reorderColumns: (activeId: string, overId: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* What a drop does: reorders the columns when a column was dragged, else
|
|
11
|
+
* moves the card into the group, the column, or before the card it was
|
|
12
|
+
* dropped on.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyKanbanDragEnd(event: DragEndEvent, { columns, itemsById, moveItem, reorderColumns }: Board): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KanbanItem } from '../types.js';
|
|
2
|
+
/** A card's default look: title, subtitle, drag handle and icon, colour dot. */
|
|
3
|
+
export declare function KanbanCardTile({ item, inert, dragLabel, }: {
|
|
4
|
+
item: KanbanItem;
|
|
5
|
+
inert: boolean;
|
|
6
|
+
dragLabel: string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn } from '../types.js';
|
|
2
|
+
/** An ungrouped column's cards (or its empty state) and the composer when it is open here. */
|
|
3
|
+
export declare function KanbanColumnCards({ column, ids, composing, }: {
|
|
4
|
+
column: KanbanColumn;
|
|
5
|
+
/** The visible cards' ids, after the search. */
|
|
6
|
+
ids: string[];
|
|
7
|
+
composing: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn, KanbanItem, KanbanRenderCard } from '../types.js';
|
|
2
|
+
/** What follows the pointer while a column or a card is dragged. */
|
|
3
|
+
export declare function KanbanDragPreview({ activeId, columns, itemsById, renderCard, }: {
|
|
4
|
+
activeId: string;
|
|
5
|
+
columns: KanbanColumn[];
|
|
6
|
+
itemsById: Map<string, KanbanItem>;
|
|
7
|
+
renderCard?: KanbanRenderCard;
|
|
8
|
+
}): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KanbanColumn, KanbanGroup } from '../types.js';
|
|
2
|
+
/** A group's header in a column: collapse toggle, colour dot, title, count and add button. */
|
|
3
|
+
export declare function KanbanGroupHeader({ column, group, count, collapsed, }: {
|
|
4
|
+
column: KanbanColumn;
|
|
5
|
+
group: KanbanGroup | null;
|
|
6
|
+
count: number;
|
|
7
|
+
collapsed: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KanbanChange, KanbanColumn, KanbanItem } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Moves a card to a column (before another card, into a group) and reports
|
|
4
|
+
* the move once, with the items when its group changed.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useKanbanMoveItem({ board, commit, disabled, items, itemsById, onItemsChange, }: {
|
|
7
|
+
board: KanbanColumn[];
|
|
8
|
+
commit: (next: KanbanColumn[], change?: Omit<KanbanChange, 'columns'>) => void;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
items: KanbanItem[];
|
|
11
|
+
itemsById: Map<string, KanbanItem>;
|
|
12
|
+
onItemsChange?: (items: KanbanItem[]) => void;
|
|
13
|
+
}): (itemId: string, toColumnId: string, beforeId?: string, toGroupId?: string | null) => void;
|
|
14
|
+
/** Patches one card's fields through `onItemsChange`, unless the board or the card is locked. */
|
|
15
|
+
export declare function useKanbanUpdateItem({ disabled, items, itemsById, onItemsChange, }: {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
items: KanbanItem[];
|
|
18
|
+
itemsById: Map<string, KanbanItem>;
|
|
19
|
+
onItemsChange?: (items: KanbanItem[]) => void;
|
|
20
|
+
}): (itemId: string, patch: Partial<KanbanItem>) => void;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChartRow } from './types.js';
|
|
3
|
+
/** A point a tooltip, a click or the keyboard lands on. */
|
|
4
|
+
export interface ChartPoint {
|
|
5
|
+
seriesKey: string;
|
|
6
|
+
seriesLabel: string;
|
|
7
|
+
/** The row index (or the slice, step or cell index). */
|
|
8
|
+
index: number;
|
|
9
|
+
/** The formatted x value or category. */
|
|
10
|
+
label: string;
|
|
11
|
+
value: number;
|
|
12
|
+
formatted: string;
|
|
13
|
+
row?: ChartRow;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The series colours: `'default'` draws from `--chart-1..5`; `'soft'` from
|
|
17
|
+
* `--chart-soft-1..5`, each filled mark a soft fill with a crisp outline in
|
|
18
|
+
* the colour's ink (lines, points and swatches in the ink).
|
|
19
|
+
*/
|
|
20
|
+
export type ChartPalette = 'default' | 'soft';
|
|
21
|
+
/** What every chart accepts. */
|
|
22
|
+
export interface ChartBaseProps {
|
|
23
|
+
/** The card's title, and the chart's accessible name. */
|
|
24
|
+
title: string;
|
|
25
|
+
/** A line under the title. */
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
/** The big number line under the header. */
|
|
28
|
+
headline?: ReactNode;
|
|
29
|
+
/** The screen-reader summary; default generated from the data. */
|
|
30
|
+
summary?: string | ((auto: string) => string);
|
|
31
|
+
/** The plot's height in pixels; default 260 (220 under 480px wide); a radar 340, a gauge by its `size`. */
|
|
32
|
+
height?: number;
|
|
33
|
+
/** Where the legend goes; default `'top'`. Always below on a phone. */
|
|
34
|
+
legend?: 'top' | 'bottom' | false;
|
|
35
|
+
/** The hidden series' keys, controlled. */
|
|
36
|
+
hidden?: string[];
|
|
37
|
+
defaultHidden?: string[];
|
|
38
|
+
onHiddenChange?: (hidden: string[]) => void;
|
|
39
|
+
/** Shapes, dashes and fill patterns beside the colours. */
|
|
40
|
+
patterns?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The series colours. Unset, a chart follows `data-chart-palette="soft"`
|
|
43
|
+
* on an ancestor (an app-wide switch), else the default palette; set, it
|
|
44
|
+
* wins over the ancestor both ways. A `tone` is the same in either.
|
|
45
|
+
*/
|
|
46
|
+
palette?: ChartPalette;
|
|
47
|
+
/** Default `'dotted'`; `'hairline'` draws thin solid lines. */
|
|
48
|
+
grid?: 'dotted' | 'hairline' | 'none';
|
|
49
|
+
/** The "View data" button and its table; default true. */
|
|
50
|
+
dataTable?: boolean;
|
|
51
|
+
/** `false` draws no tooltip; a function renders its content. */
|
|
52
|
+
tooltip?: false | ((points: ChartPoint[]) => ReactNode);
|
|
53
|
+
/** A pointer click, or Enter or Space on a focused point. */
|
|
54
|
+
onPointClick?: (point: ChartPoint) => void;
|
|
55
|
+
/** The entry motion; default true. Reduced motion always wins. */
|
|
56
|
+
animate?: boolean;
|
|
57
|
+
/** Shows a skeleton instead of the plot. */
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
/** Shown when there is no data. */
|
|
60
|
+
emptyState?: ReactNode;
|
|
61
|
+
/** Default `'card'`, a 12px card; `'plain'` draws no surface. */
|
|
62
|
+
surface?: 'card' | 'plain';
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BandRange, Domain, RefBand, RefThreshold } from './reference.js';
|
|
2
|
+
/**
|
|
3
|
+
* Where reference bands and threshold lines fall on the plot: the runs of
|
|
4
|
+
* rows that share a value, their spans, the clipping to the value domain,
|
|
5
|
+
* label baselines, and the count of values outside a band.
|
|
6
|
+
*/
|
|
7
|
+
/** A stretch of consecutive rows with the same reference value: `first` to `last` are row indexes. */
|
|
8
|
+
export type Run<V> = {
|
|
9
|
+
first: number;
|
|
10
|
+
last: number;
|
|
11
|
+
value: V;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The runs of consecutive rows that share a value (`same` tells), a row with
|
|
15
|
+
* no value (null) ending the run and leaving a gap. Without `perRow` the one
|
|
16
|
+
* constant value covers every row.
|
|
17
|
+
*/
|
|
18
|
+
export declare function refRuns<V>(count: number, constant: V, perRow: readonly (V | null)[] | undefined, same: (a: V, b: V) => boolean): Run<V>[];
|
|
19
|
+
/** The runs of a band's ranges. */
|
|
20
|
+
export declare const bandRuns: (b: RefBand, count: number) => Run<BandRange>[];
|
|
21
|
+
/** The runs of a threshold's values. */
|
|
22
|
+
export declare const thresholdRuns: (th: RefThreshold, count: number) => Run<number>[];
|
|
23
|
+
/**
|
|
24
|
+
* Where a run sits across the plot, `x` mapping a row index to a pixel and
|
|
25
|
+
* `width` the plot's width: each row owns the stretch up to the midpoint to
|
|
26
|
+
* its neighbour, the first row from the plot's left edge and the last up to
|
|
27
|
+
* its right edge.
|
|
28
|
+
*/
|
|
29
|
+
export declare function runSpan(run: Pick<Run<unknown>, 'first' | 'last'>, count: number, x: (index: number) => number, width: number): {
|
|
30
|
+
x1: number;
|
|
31
|
+
x2: number;
|
|
32
|
+
};
|
|
33
|
+
/** The part of `band` inside `domain`; null when none of it is, or it has no height. */
|
|
34
|
+
export declare function clipBand(band: Pick<RefBand, 'from' | 'to'>, domain: Domain): {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
} | null;
|
|
38
|
+
/** A band's box on the plot, `y` mapping a value to a pixel: its top and height, clipped to the domain; null when it is out of view. */
|
|
39
|
+
export declare function bandBox(band: Pick<RefBand, 'from' | 'to'>, domain: Domain, y: (value: number) => number): {
|
|
40
|
+
top: number;
|
|
41
|
+
height: number;
|
|
42
|
+
} | null;
|
|
43
|
+
/** Where a threshold's line falls; null when its value is outside the domain. */
|
|
44
|
+
export declare function thresholdAt(value: number, domain: Domain, y: (value: number) => number): number | null;
|
|
45
|
+
/** The baseline of a band's label: inside the band under its top edge, or above a band too thin to hold it. */
|
|
46
|
+
export declare function bandLabelBaseline(top: number, height: number): number;
|
|
47
|
+
/** The baseline of a threshold's label: above its line, or under it at the top of the plot. */
|
|
48
|
+
export declare function thresholdLabelBaseline(lineY: number): number;
|
|
49
|
+
/** How many of `values` lie outside `band` (a missing value is not counted, nor one in a row where a stepped band has no range), and how many there are. */
|
|
50
|
+
export declare function outsideBand(values: readonly (number | null | undefined)[], band: Pick<RefBand, 'from' | 'to' | 'ranges'>): {
|
|
51
|
+
outside: number;
|
|
52
|
+
total: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* How a label sits at a plot's physical `edge` (the plot is drawn left to
|
|
56
|
+
* right whatever the page): a label in a right-to-left script is set `rtl`,
|
|
57
|
+
* and the anchor that grows it inward from that edge flips with it.
|
|
58
|
+
*/
|
|
59
|
+
export declare function labelFlow(label: string, edge: 'left' | 'right'): {
|
|
60
|
+
direction: 'ltr' | 'rtl';
|
|
61
|
+
textAnchor: 'start' | 'end';
|
|
62
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Tone } from '../../../tones.js';
|
|
2
|
+
import { ChartRow } from './types.js';
|
|
3
|
+
/** A reference value: fixed, the name of a numeric field read from each row, or computed from the row and its index. */
|
|
4
|
+
export type ChartRowValue = number | string | ((row: ChartRow, index: number) => number | null | undefined);
|
|
5
|
+
/**
|
|
6
|
+
* A shaded range of the value axis, drawn behind the lines: a normal range,
|
|
7
|
+
* a target zone. Its `label` is drawn in the band and listed in the summary
|
|
8
|
+
* and in "View data"; the shade is decorative, the label carries the meaning.
|
|
9
|
+
*/
|
|
10
|
+
export interface ChartBand {
|
|
11
|
+
/**
|
|
12
|
+
* One end of the range, in the value axis' units (either order): a
|
|
13
|
+
* number, the name of a row field, or a function of the row. With a field
|
|
14
|
+
* or a function the band steps along x, one range per row (a row it gives
|
|
15
|
+
* no number for leaves a gap).
|
|
16
|
+
*/
|
|
17
|
+
from: ChartRowValue;
|
|
18
|
+
/** The other end; same forms as `from`. */
|
|
19
|
+
to: ChartRowValue;
|
|
20
|
+
/** Names the range: drawn in it, read by the summary and the table. */
|
|
21
|
+
label: string;
|
|
22
|
+
/** Tints the band and its label in the tone; default a neutral wash. */
|
|
23
|
+
tone?: Tone;
|
|
24
|
+
}
|
|
25
|
+
/** A horizontal line at a value, with a direct label at its end. */
|
|
26
|
+
export interface ChartThreshold {
|
|
27
|
+
/** Where the line sits: a number, a row field or a function of the row (then it steps along x). */
|
|
28
|
+
value: ChartRowValue;
|
|
29
|
+
/** Names the line: drawn at its end, read by the summary and the table. */
|
|
30
|
+
label: string;
|
|
31
|
+
/** Draws the line and its label in the tone's colour; default the axis colour. */
|
|
32
|
+
tone?: Tone;
|
|
33
|
+
/** Dashed (default) or, with `false`, solid. */
|
|
34
|
+
dash?: boolean;
|
|
35
|
+
}
|
|
@@ -34,59 +34,4 @@ export declare function normalizeBands(bands: readonly ChartBand[] | undefined,
|
|
|
34
34
|
export declare function normalizeThresholds(thresholds: readonly ChartThreshold[] | undefined, data?: readonly ChartRow[]): RefThreshold[];
|
|
35
35
|
/** Every value a band or a threshold marks: the value domain grows to hold them. */
|
|
36
36
|
export declare function referenceValues(bands: readonly RefBand[], thresholds: readonly RefThreshold[]): number[];
|
|
37
|
-
|
|
38
|
-
export type Run<V> = {
|
|
39
|
-
first: number;
|
|
40
|
-
last: number;
|
|
41
|
-
value: V;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* The runs of consecutive rows that share a value (`same` tells), a row with
|
|
45
|
-
* no value (null) ending the run and leaving a gap. Without `perRow` the one
|
|
46
|
-
* constant value covers every row.
|
|
47
|
-
*/
|
|
48
|
-
export declare function refRuns<V>(count: number, constant: V, perRow: readonly (V | null)[] | undefined, same: (a: V, b: V) => boolean): Run<V>[];
|
|
49
|
-
/** The runs of a band's ranges. */
|
|
50
|
-
export declare const bandRuns: (b: RefBand, count: number) => Run<BandRange>[];
|
|
51
|
-
/** The runs of a threshold's values. */
|
|
52
|
-
export declare const thresholdRuns: (th: RefThreshold, count: number) => Run<number>[];
|
|
53
|
-
/**
|
|
54
|
-
* Where a run sits across the plot, `x` mapping a row index to a pixel and
|
|
55
|
-
* `width` the plot's width: each row owns the stretch up to the midpoint to
|
|
56
|
-
* its neighbour, the first row from the plot's left edge and the last up to
|
|
57
|
-
* its right edge.
|
|
58
|
-
*/
|
|
59
|
-
export declare function runSpan(run: Pick<Run<unknown>, 'first' | 'last'>, count: number, x: (index: number) => number, width: number): {
|
|
60
|
-
x1: number;
|
|
61
|
-
x2: number;
|
|
62
|
-
};
|
|
63
|
-
/** The part of `band` inside `domain`; null when none of it is, or it has no height. */
|
|
64
|
-
export declare function clipBand(band: Pick<RefBand, 'from' | 'to'>, domain: Domain): {
|
|
65
|
-
from: number;
|
|
66
|
-
to: number;
|
|
67
|
-
} | null;
|
|
68
|
-
/** A band's box on the plot, `y` mapping a value to a pixel: its top and height, clipped to the domain; null when it is out of view. */
|
|
69
|
-
export declare function bandBox(band: Pick<RefBand, 'from' | 'to'>, domain: Domain, y: (value: number) => number): {
|
|
70
|
-
top: number;
|
|
71
|
-
height: number;
|
|
72
|
-
} | null;
|
|
73
|
-
/** Where a threshold's line falls; null when its value is outside the domain. */
|
|
74
|
-
export declare function thresholdAt(value: number, domain: Domain, y: (value: number) => number): number | null;
|
|
75
|
-
/** The baseline of a band's label: inside the band under its top edge, or above a band too thin to hold it. */
|
|
76
|
-
export declare function bandLabelBaseline(top: number, height: number): number;
|
|
77
|
-
/** The baseline of a threshold's label: above its line, or under it at the top of the plot. */
|
|
78
|
-
export declare function thresholdLabelBaseline(lineY: number): number;
|
|
79
|
-
/** How many of `values` lie outside `band` (a missing value is not counted, nor one in a row where a stepped band has no range), and how many there are. */
|
|
80
|
-
export declare function outsideBand(values: readonly (number | null | undefined)[], band: Pick<RefBand, 'from' | 'to' | 'ranges'>): {
|
|
81
|
-
outside: number;
|
|
82
|
-
total: number;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* How a label sits at a plot's physical `edge` (the plot is drawn left to
|
|
86
|
-
* right whatever the page): a label in a right-to-left script is set `rtl`,
|
|
87
|
-
* and the anchor that grows it inward from that edge flips with it.
|
|
88
|
-
*/
|
|
89
|
-
export declare function labelFlow(label: string, edge: 'left' | 'right'): {
|
|
90
|
-
direction: 'ltr' | 'rtl';
|
|
91
|
-
textAnchor: 'start' | 'end';
|
|
92
|
-
};
|
|
37
|
+
export { bandBox, bandLabelBaseline, bandRuns, clipBand, labelFlow, outsideBand, type Run, refRuns, runSpan, thresholdAt, thresholdLabelBaseline, thresholdRuns, } from './reference-geometry.js';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { Tone } from '../../../tones.js';
|
|
3
2
|
/**
|
|
4
3
|
* The shared types of `@nxgt/material/charts`. Every chart takes rows of
|
|
@@ -77,98 +76,5 @@ export interface ChartXAxis {
|
|
|
77
76
|
format?: (value: ChartValue, index: number) => string;
|
|
78
77
|
label?: string;
|
|
79
78
|
}
|
|
80
|
-
|
|
81
|
-
export
|
|
82
|
-
seriesKey: string;
|
|
83
|
-
seriesLabel: string;
|
|
84
|
-
/** The row index (or the slice, step or cell index). */
|
|
85
|
-
index: number;
|
|
86
|
-
/** The formatted x value or category. */
|
|
87
|
-
label: string;
|
|
88
|
-
value: number;
|
|
89
|
-
formatted: string;
|
|
90
|
-
row?: ChartRow;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* The series colours: `'default'` draws from `--chart-1..5`; `'soft'` from
|
|
94
|
-
* `--chart-soft-1..5`, each filled mark a soft fill with a crisp outline in
|
|
95
|
-
* the colour's ink (lines, points and swatches in the ink).
|
|
96
|
-
*/
|
|
97
|
-
export type ChartPalette = 'default' | 'soft';
|
|
98
|
-
/** A reference value: fixed, the name of a numeric field read from each row, or computed from the row and its index. */
|
|
99
|
-
export type ChartRowValue = number | string | ((row: ChartRow, index: number) => number | null | undefined);
|
|
100
|
-
/**
|
|
101
|
-
* A shaded range of the value axis, drawn behind the lines: a normal range,
|
|
102
|
-
* a target zone. Its `label` is drawn in the band and listed in the summary
|
|
103
|
-
* and in "View data"; the shade is decorative, the label carries the meaning.
|
|
104
|
-
*/
|
|
105
|
-
export interface ChartBand {
|
|
106
|
-
/**
|
|
107
|
-
* One end of the range, in the value axis' units (either order): a
|
|
108
|
-
* number, the name of a row field, or a function of the row. With a field
|
|
109
|
-
* or a function the band steps along x, one range per row (a row it gives
|
|
110
|
-
* no number for leaves a gap).
|
|
111
|
-
*/
|
|
112
|
-
from: ChartRowValue;
|
|
113
|
-
/** The other end; same forms as `from`. */
|
|
114
|
-
to: ChartRowValue;
|
|
115
|
-
/** Names the range: drawn in it, read by the summary and the table. */
|
|
116
|
-
label: string;
|
|
117
|
-
/** Tints the band and its label in the tone; default a neutral wash. */
|
|
118
|
-
tone?: Tone;
|
|
119
|
-
}
|
|
120
|
-
/** A horizontal line at a value, with a direct label at its end. */
|
|
121
|
-
export interface ChartThreshold {
|
|
122
|
-
/** Where the line sits: a number, a row field or a function of the row (then it steps along x). */
|
|
123
|
-
value: ChartRowValue;
|
|
124
|
-
/** Names the line: drawn at its end, read by the summary and the table. */
|
|
125
|
-
label: string;
|
|
126
|
-
/** Draws the line and its label in the tone's colour; default the axis colour. */
|
|
127
|
-
tone?: Tone;
|
|
128
|
-
/** Dashed (default) or, with `false`, solid. */
|
|
129
|
-
dash?: boolean;
|
|
130
|
-
}
|
|
131
|
-
/** What every chart accepts. */
|
|
132
|
-
export interface ChartBaseProps {
|
|
133
|
-
/** The card's title, and the chart's accessible name. */
|
|
134
|
-
title: string;
|
|
135
|
-
/** A line under the title. */
|
|
136
|
-
description?: ReactNode;
|
|
137
|
-
/** The big number line under the header. */
|
|
138
|
-
headline?: ReactNode;
|
|
139
|
-
/** The screen-reader summary; default generated from the data. */
|
|
140
|
-
summary?: string | ((auto: string) => string);
|
|
141
|
-
/** The plot's height in pixels; default 260 (220 under 480px wide); a radar 340, a gauge by its `size`. */
|
|
142
|
-
height?: number;
|
|
143
|
-
/** Where the legend goes; default `'top'`. Always below on a phone. */
|
|
144
|
-
legend?: 'top' | 'bottom' | false;
|
|
145
|
-
/** The hidden series' keys, controlled. */
|
|
146
|
-
hidden?: string[];
|
|
147
|
-
defaultHidden?: string[];
|
|
148
|
-
onHiddenChange?: (hidden: string[]) => void;
|
|
149
|
-
/** Shapes, dashes and fill patterns beside the colours. */
|
|
150
|
-
patterns?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* The series colours. Unset, a chart follows `data-chart-palette="soft"`
|
|
153
|
-
* on an ancestor (an app-wide switch), else the default palette; set, it
|
|
154
|
-
* wins over the ancestor both ways. A `tone` is the same in either.
|
|
155
|
-
*/
|
|
156
|
-
palette?: ChartPalette;
|
|
157
|
-
/** Default `'dotted'`; `'hairline'` draws thin solid lines. */
|
|
158
|
-
grid?: 'dotted' | 'hairline' | 'none';
|
|
159
|
-
/** The "View data" button and its table; default true. */
|
|
160
|
-
dataTable?: boolean;
|
|
161
|
-
/** `false` draws no tooltip; a function renders its content. */
|
|
162
|
-
tooltip?: false | ((points: ChartPoint[]) => ReactNode);
|
|
163
|
-
/** A pointer click, or Enter or Space on a focused point. */
|
|
164
|
-
onPointClick?: (point: ChartPoint) => void;
|
|
165
|
-
/** The entry motion; default true. Reduced motion always wins. */
|
|
166
|
-
animate?: boolean;
|
|
167
|
-
/** Shows a skeleton instead of the plot. */
|
|
168
|
-
loading?: boolean;
|
|
169
|
-
/** Shown when there is no data. */
|
|
170
|
-
emptyState?: ReactNode;
|
|
171
|
-
/** Default `'card'`, a 12px card; `'plain'` draws no surface. */
|
|
172
|
-
surface?: 'card' | 'plain';
|
|
173
|
-
className?: string;
|
|
174
|
-
}
|
|
79
|
+
export type { ChartBaseProps, ChartPalette, ChartPoint, } from './base-props-types.js';
|
|
80
|
+
export type { ChartBand, ChartRowValue, ChartThreshold, } from './reference-types.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ResolvedSeries } from '../core/colors.js';
|
|
2
|
+
import { SeriesAxis } from '../core/combo-axes.js';
|
|
3
|
+
import { ChartKind } from '../core/summary.js';
|
|
4
|
+
import { ChartSeries } from '../core/types.js';
|
|
5
|
+
import { ChartModel, ChartModelProps } from './chart-model-types.js';
|
|
6
|
+
import { ModelSeries } from './model-series.js';
|
|
7
|
+
/** The model's text parts, each memoized: the summary, the legend and the lazy table. */
|
|
8
|
+
export declare function useModelParts(props: ChartModelProps, kind: ChartKind, view: {
|
|
9
|
+
series: ResolvedSeries[];
|
|
10
|
+
shown: ModelSeries[];
|
|
11
|
+
labels: string[];
|
|
12
|
+
hidden: string[];
|
|
13
|
+
axes?: (series: ChartSeries) => SeriesAxis;
|
|
14
|
+
refs: ChartModel['refs'];
|
|
15
|
+
}): {
|
|
16
|
+
summary: string;
|
|
17
|
+
legendItems: import('../partials/chart-legend.js').LegendItem[];
|
|
18
|
+
table: (() => import('../core/table.js').ChartTableModel) | null;
|
|
19
|
+
tableCaption: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ResolvedSeries } from '../core/colors.js';
|
|
2
|
+
import { ChartModelOptions, ChartModelProps } from './chart-model-types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The reference bands and thresholds, cleaned against the data, and the
|
|
5
|
+
* series that are shown (visible ones, with the tones the reference gives
|
|
6
|
+
* their points).
|
|
7
|
+
*/
|
|
8
|
+
export declare function useModelShown({ series, hidden, data, axes, yAxis, labels, offset, reference, }: {
|
|
9
|
+
series: ResolvedSeries[];
|
|
10
|
+
hidden: string[];
|
|
11
|
+
data: ChartModelProps['data'];
|
|
12
|
+
axes: ChartModelOptions['axes'];
|
|
13
|
+
yAxis: ChartModelProps['yAxis'];
|
|
14
|
+
labels: string[];
|
|
15
|
+
offset: number | undefined;
|
|
16
|
+
reference: ChartModelOptions['reference'];
|
|
17
|
+
}): {
|
|
18
|
+
refs: {
|
|
19
|
+
bands: import('../core/reference.js').RefBand[];
|
|
20
|
+
thresholds: import('../core/reference.js').RefThreshold[];
|
|
21
|
+
};
|
|
22
|
+
shown: import('./model-series.js').ModelSeries[];
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AreaChartProps } from '../line-chart-types.js';
|
|
2
|
+
import { LineGeometry } from '../line-geometry.js';
|
|
3
|
+
/** The lines, their dots and the toned points, clipped by the entry reveal while it runs. */
|
|
4
|
+
export declare function LineStrokes({ geo, clipPath, phone, patterns, points, }: {
|
|
5
|
+
geo: LineGeometry;
|
|
6
|
+
clipPath?: string;
|
|
7
|
+
phone: boolean;
|
|
8
|
+
patterns?: boolean;
|
|
9
|
+
points: AreaChartProps['points'];
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartModel } from '../../hooks/use-chart-model.js';
|
|
2
|
+
/**
|
|
3
|
+
* The entry motion of a line or area chart: the reveal clip's progress, and
|
|
4
|
+
* how far the area fills have faded in (they start after 60% of the reveal).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useLineReveal(model: ChartModel, animate?: boolean): {
|
|
7
|
+
motion: import('../../hooks/use-entry-motion.js').EntryMotion;
|
|
8
|
+
fade: number;
|
|
9
|
+
};
|
|
@@ -356,6 +356,9 @@ export declare const en: {
|
|
|
356
356
|
"retry-wrong": string;
|
|
357
357
|
retrying: string;
|
|
358
358
|
};
|
|
359
|
+
"question-card": {
|
|
360
|
+
unanswered: string;
|
|
361
|
+
};
|
|
359
362
|
"question-navigator": {
|
|
360
363
|
label: string;
|
|
361
364
|
item: string;
|
|
@@ -378,6 +381,7 @@ export declare const en: {
|
|
|
378
381
|
left: string;
|
|
379
382
|
expired: string;
|
|
380
383
|
warning: string;
|
|
384
|
+
critical: string;
|
|
381
385
|
};
|
|
382
386
|
"option-tile": {
|
|
383
387
|
correct: string;
|
|
@@ -1335,6 +1339,14 @@ export declare const en: {
|
|
|
1335
1339
|
dark: string;
|
|
1336
1340
|
system: string;
|
|
1337
1341
|
};
|
|
1342
|
+
"load-more": {
|
|
1343
|
+
shown: string;
|
|
1344
|
+
"shown-count": string;
|
|
1345
|
+
failed: string;
|
|
1346
|
+
retry: string;
|
|
1347
|
+
"page-failed-title": string;
|
|
1348
|
+
"back-to-start": string;
|
|
1349
|
+
};
|
|
1338
1350
|
"language-switcher": {
|
|
1339
1351
|
label: string;
|
|
1340
1352
|
};
|
|
@@ -346,6 +346,9 @@ declare const _default: {
|
|
|
346
346
|
"retry-wrong": "{count, plural, one {Retry # question} other {Retry # questions}}",
|
|
347
347
|
"retrying": "Retry round: {count, plural, one {# question} other {# questions}}"
|
|
348
348
|
},
|
|
349
|
+
"question-card": {
|
|
350
|
+
"unanswered": "No answer"
|
|
351
|
+
},
|
|
349
352
|
"question-navigator": {
|
|
350
353
|
"label": "Questions",
|
|
351
354
|
"item": "Question {number}",
|
|
@@ -367,7 +370,8 @@ declare const _default: {
|
|
|
367
370
|
"label": "Time remaining",
|
|
368
371
|
"left": "{time} left",
|
|
369
372
|
"expired": "Time is up",
|
|
370
|
-
"warning": "Little time left"
|
|
373
|
+
"warning": "Little time left",
|
|
374
|
+
"critical": "Almost out of time"
|
|
371
375
|
},
|
|
372
376
|
"option-tile": {
|
|
373
377
|
"correct": "correct answer",
|
|
@@ -1325,6 +1329,14 @@ declare const _default: {
|
|
|
1325
1329
|
"dark": "Dark",
|
|
1326
1330
|
"system": "System"
|
|
1327
1331
|
},
|
|
1332
|
+
"load-more": {
|
|
1333
|
+
"shown": "Showing {shown} of {total}",
|
|
1334
|
+
"shown-count": "{shown, plural, one {# shown} other {# shown}}",
|
|
1335
|
+
"failed": "The next items could not be loaded",
|
|
1336
|
+
"retry": "Try again",
|
|
1337
|
+
"page-failed-title": "This page could not be loaded",
|
|
1338
|
+
"back-to-start": "Back to the start"
|
|
1339
|
+
},
|
|
1328
1340
|
"language-switcher": {
|
|
1329
1341
|
"label": "Language"
|
|
1330
1342
|
},
|
|
@@ -356,6 +356,9 @@ export declare const fr: {
|
|
|
356
356
|
"retry-wrong": string;
|
|
357
357
|
retrying: string;
|
|
358
358
|
};
|
|
359
|
+
"question-card": {
|
|
360
|
+
unanswered: string;
|
|
361
|
+
};
|
|
359
362
|
"question-navigator": {
|
|
360
363
|
label: string;
|
|
361
364
|
item: string;
|
|
@@ -378,6 +381,7 @@ export declare const fr: {
|
|
|
378
381
|
left: string;
|
|
379
382
|
expired: string;
|
|
380
383
|
warning: string;
|
|
384
|
+
critical: string;
|
|
381
385
|
};
|
|
382
386
|
"option-tile": {
|
|
383
387
|
correct: string;
|
|
@@ -1335,6 +1339,14 @@ export declare const fr: {
|
|
|
1335
1339
|
dark: string;
|
|
1336
1340
|
system: string;
|
|
1337
1341
|
};
|
|
1342
|
+
"load-more": {
|
|
1343
|
+
shown: string;
|
|
1344
|
+
"shown-count": string;
|
|
1345
|
+
failed: string;
|
|
1346
|
+
retry: string;
|
|
1347
|
+
"page-failed-title": string;
|
|
1348
|
+
"back-to-start": string;
|
|
1349
|
+
};
|
|
1338
1350
|
"language-switcher": {
|
|
1339
1351
|
label: string;
|
|
1340
1352
|
};
|