@algorisys/zen-ui-react 0.0.0-stage → 13.8.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/AGENTS.md +301 -0
- package/COMMERCIAL.md +73 -0
- package/LICENSE +79 -0
- package/README.md +45 -2
- package/dist/_core/aggregate.d.ts +35 -0
- package/dist/_core/analytic-chart-echarts.d.ts +47 -0
- package/dist/_core/analytic-chart.d.ts +250 -0
- package/dist/_core/andon.d.ts +31 -0
- package/dist/_core/barcode.d.ts +91 -0
- package/dist/_core/capacity.d.ts +45 -0
- package/dist/_core/chart.d.ts +88 -0
- package/dist/_core/chunk-upload.d.ts +55 -0
- package/dist/_core/cn.d.ts +2 -0
- package/dist/_core/color.d.ts +50 -0
- package/dist/_core/column-filter.d.ts +50 -0
- package/dist/_core/column-mapper.d.ts +40 -0
- package/dist/_core/columns.d.ts +158 -0
- package/dist/_core/countdown.d.ts +57 -0
- package/dist/_core/critical-path.d.ts +80 -0
- package/dist/_core/date-input.d.ts +36 -0
- package/dist/_core/date-range.d.ts +113 -0
- package/dist/_core/density.d.ts +27 -0
- package/dist/_core/diff.d.ts +74 -0
- package/dist/_core/direction.d.ts +66 -0
- package/dist/_core/document.d.ts +58 -0
- package/dist/_core/export-request.d.ts +131 -0
- package/dist/_core/filter.d.ts +114 -0
- package/dist/_core/flexible-column-layout.d.ts +56 -0
- package/dist/_core/gantt.d.ts +866 -0
- package/dist/_core/genealogy.d.ts +36 -0
- package/dist/_core/grid-range.d.ts +60 -0
- package/dist/_core/icons.d.ts +88 -0
- package/dist/_core/index.d.ts +46 -0
- package/dist/_core/keys.d.ts +62 -0
- package/dist/_core/line-eta.d.ts +30 -0
- package/dist/_core/live.d.ts +11 -0
- package/dist/_core/lookup.d.ts +43 -0
- package/dist/_core/machine-state.d.ts +48 -0
- package/dist/_core/mask.d.ts +67 -0
- package/dist/_core/measurement.d.ts +41 -0
- package/dist/_core/media.d.ts +100 -0
- package/dist/_core/messages.d.ts +970 -0
- package/dist/_core/number-format.d.ts +86 -0
- package/dist/_core/oee.d.ts +61 -0
- package/dist/_core/pivot.d.ts +154 -0
- package/dist/_core/planned-vs-actual.d.ts +46 -0
- package/dist/_core/planning.d.ts +140 -0
- package/dist/_core/production-progress.d.ts +33 -0
- package/dist/_core/production.d.ts +404 -0
- package/dist/_core/rate-bars.d.ts +39 -0
- package/dist/_core/reason-codes.d.ts +27 -0
- package/dist/_core/release-notes.d.ts +68 -0
- package/dist/_core/reschedule.d.ts +131 -0
- package/dist/_core/routing.d.ts +41 -0
- package/dist/_core/row-keys.d.ts +39 -0
- package/dist/_core/scan.d.ts +39 -0
- package/dist/_core/shifts.d.ts +51 -0
- package/dist/_core/sidebar.d.ts +26 -0
- package/dist/_core/sortable.d.ts +118 -0
- package/dist/_core/splitter.d.ts +91 -0
- package/dist/_core/spreadsheet.d.ts +66 -0
- package/dist/_core/state-timeline.d.ts +106 -0
- package/dist/_core/status-bar.d.ts +28 -0
- package/dist/_core/step-runner.d.ts +63 -0
- package/dist/_core/theme.d.ts +27 -0
- package/dist/_core/tree-select.d.ts +60 -0
- package/dist/_core/uno-preset.d.ts +194 -0
- package/dist/_core/variants.d.ts +111 -0
- package/dist/_core/views.d.ts +54 -0
- package/dist/_core/virtual-window.d.ts +53 -0
- package/dist/components/NavTag.d.ts +12 -0
- package/dist/components/NavTag.d.ts.map +1 -0
- package/dist/components/ReleaseNotes.d.ts +3 -0
- package/dist/components/ReleaseNotes.d.ts.map +1 -0
- package/dist/components/Welcome.d.ts +3 -0
- package/dist/components/Welcome.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +34 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/alert/alert.d.ts +47 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/analytic-chart/analytic-chart.d.ts +56 -0
- package/dist/components/analytic-chart/analytic-chart.d.ts.map +1 -0
- package/dist/components/andon/andon.d.ts +84 -0
- package/dist/components/andon/andon.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +32 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +14 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/banner/banner.d.ts +45 -0
- package/dist/components/banner/banner.d.ts.map +1 -0
- package/dist/components/barcode/barcode.d.ts +53 -0
- package/dist/components/barcode/barcode.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +36 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/button/button-family.d.ts +48 -0
- package/dist/components/button/button-family.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/camera/camera.d.ts +23 -0
- package/dist/components/camera/camera.d.ts.map +1 -0
- package/dist/components/capacity-heatmap/capacity-heatmap.d.ts +68 -0
- package/dist/components/capacity-heatmap/capacity-heatmap.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +37 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.selectable.d.ts +41 -0
- package/dist/components/card/card.selectable.d.ts.map +1 -0
- package/dist/components/carousel/carousel.d.ts +40 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/chart/chart.d.ts +58 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chunk-uploader/chunk-uploader.d.ts +58 -0
- package/dist/components/chunk-uploader/chunk-uploader.d.ts.map +1 -0
- package/dist/components/code-editor/code-editor.d.ts +98 -0
- package/dist/components/code-editor/code-editor.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +25 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/color-picker/color-palette.d.ts +29 -0
- package/dist/components/color-picker/color-palette.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.d.ts +37 -0
- package/dist/components/color-picker/color-picker.d.ts.map +1 -0
- package/dist/components/column-mapper/column-mapper.d.ts +42 -0
- package/dist/components/column-mapper/column-mapper.d.ts.map +1 -0
- package/dist/components/combobox/combobox.d.ts +118 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/command.d.ts +100 -0
- package/dist/components/combobox/command.d.ts.map +1 -0
- package/dist/components/combobox/multi-combobox.d.ts +71 -0
- package/dist/components/combobox/multi-combobox.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +54 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/countdown/countdown.d.ts +63 -0
- package/dist/components/countdown/countdown.d.ts.map +1 -0
- package/dist/components/data-table/body-table.d.ts +66 -0
- package/dist/components/data-table/body-table.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +475 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/edit-cell.d.ts +84 -0
- package/dist/components/data-table/edit-cell.d.ts.map +1 -0
- package/dist/components/data-table/filters.d.ts +77 -0
- package/dist/components/data-table/filters.d.ts.map +1 -0
- package/dist/components/data-table/table.d.ts +33 -0
- package/dist/components/data-table/table.d.ts.map +1 -0
- package/dist/components/demo-helpers.d.ts +21 -0
- package/dist/components/demo-helpers.d.ts.map +1 -0
- package/dist/components/diagram-canvas/diagram-canvas.d.ts +87 -0
- package/dist/components/diagram-canvas/diagram-canvas.d.ts.map +1 -0
- package/dist/components/dialog/alert-dialog.d.ts +47 -0
- package/dist/components/dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.d.ts +59 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.d.ts +42 -0
- package/dist/components/diff-view/diff-view.d.ts.map +1 -0
- package/dist/components/direction/direction.d.ts +37 -0
- package/dist/components/direction/direction.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +13 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/document-tabs/document-tabs.d.ts +76 -0
- package/dist/components/document-tabs/document-tabs.d.ts.map +1 -0
- package/dist/components/document-viewer/document-viewer.d.ts +67 -0
- package/dist/components/document-viewer/document-viewer.d.ts.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +72 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu/menu-parts.d.ts +20 -0
- package/dist/components/dropdown-menu/menu-parts.d.ts.map +1 -0
- package/dist/components/dynamic-page/dynamic-page.d.ts +36 -0
- package/dist/components/dynamic-page/dynamic-page.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.d.ts +42 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/fab/fab.d.ts +23 -0
- package/dist/components/fab/fab.d.ts.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +53 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.d.ts +56 -0
- package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
- package/dist/components/filter-builder/filter-builder.d.ts +38 -0
- package/dist/components/filter-builder/filter-builder.d.ts.map +1 -0
- package/dist/components/flexible-column-layout/flexible-column-layout.d.ts +62 -0
- package/dist/components/flexible-column-layout/flexible-column-layout.d.ts.map +1 -0
- package/dist/components/form/amount-field/amount-field.d.ts +83 -0
- package/dist/components/form/amount-field/amount-field.d.ts.map +1 -0
- package/dist/components/form/checkbox/checkbox.d.ts +18 -0
- package/dist/components/form/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/form/date-picker/date-input.d.ts +50 -0
- package/dist/components/form/date-picker/date-input.d.ts.map +1 -0
- package/dist/components/form/date-picker/date-picker.d.ts +46 -0
- package/dist/components/form/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/form/date-picker/date-range-picker.d.ts +37 -0
- package/dist/components/form/date-picker/date-range-picker.d.ts.map +1 -0
- package/dist/components/form/date-picker/date-time-picker.d.ts +36 -0
- package/dist/components/form/date-picker/date-time-picker.d.ts.map +1 -0
- package/dist/components/form/dynamic-date-range/dynamic-date-range.d.ts +40 -0
- package/dist/components/form/dynamic-date-range/dynamic-date-range.d.ts.map +1 -0
- package/dist/components/form/input/input.constants.d.ts +2 -0
- package/dist/components/form/input/input.constants.d.ts.map +1 -0
- package/dist/components/form/input/input.d.ts +13 -0
- package/dist/components/form/input/input.d.ts.map +1 -0
- package/dist/components/form/input/speech-recognition.types.d.ts +46 -0
- package/dist/components/form/input/speech-recognition.types.d.ts.map +1 -0
- package/dist/components/form/input/textarea.d.ts +10 -0
- package/dist/components/form/input/textarea.d.ts.map +1 -0
- package/dist/components/form/label/label.d.ts +41 -0
- package/dist/components/form/label/label.d.ts.map +1 -0
- package/dist/components/form/mask-input/mask-input.d.ts +47 -0
- package/dist/components/form/mask-input/mask-input.d.ts.map +1 -0
- package/dist/components/form/native-select/native-select.d.ts +42 -0
- package/dist/components/form/native-select/native-select.d.ts.map +1 -0
- package/dist/components/form/number-field/number-field.d.ts +24 -0
- package/dist/components/form/number-field/number-field.d.ts.map +1 -0
- package/dist/components/form/otp/otp.d.ts +48 -0
- package/dist/components/form/otp/otp.d.ts.map +1 -0
- package/dist/components/form/password-input/password-input.d.ts +29 -0
- package/dist/components/form/password-input/password-input.d.ts.map +1 -0
- package/dist/components/form/phone-input/phone-input.constants.d.ts +3 -0
- package/dist/components/form/phone-input/phone-input.constants.d.ts.map +1 -0
- package/dist/components/form/phone-input/phone-input.d.ts +36 -0
- package/dist/components/form/phone-input/phone-input.d.ts.map +1 -0
- package/dist/components/form/radio/radio-group.d.ts +31 -0
- package/dist/components/form/radio/radio-group.d.ts.map +1 -0
- package/dist/components/form/search/search.d.ts +33 -0
- package/dist/components/form/search/search.d.ts.map +1 -0
- package/dist/components/form/select/select.d.ts +97 -0
- package/dist/components/form/select/select.d.ts.map +1 -0
- package/dist/components/form/slider/slider.d.ts +33 -0
- package/dist/components/form/slider/slider.d.ts.map +1 -0
- package/dist/components/form/switch/switch.d.ts +18 -0
- package/dist/components/form/switch/switch.d.ts.map +1 -0
- package/dist/components/form/tag-input/tag-input.d.ts +48 -0
- package/dist/components/form/tag-input/tag-input.d.ts.map +1 -0
- package/dist/components/form/time-picker/time-picker.d.ts +36 -0
- package/dist/components/form/time-picker/time-picker.d.ts.map +1 -0
- package/dist/components/form-builder/bound-fields.d.ts +79 -0
- package/dist/components/form-builder/bound-fields.d.ts.map +1 -0
- package/dist/components/form-builder/form.d.ts +56 -0
- package/dist/components/form-builder/form.d.ts.map +1 -0
- package/dist/components/gantt/gantt.d.ts +271 -0
- package/dist/components/gantt/gantt.d.ts.map +1 -0
- package/dist/components/gantt/schedule-grid.d.ts +268 -0
- package/dist/components/gantt/schedule-grid.d.ts.map +1 -0
- package/dist/components/genealogy-graph/genealogy-graph.d.ts +51 -0
- package/dist/components/genealogy-graph/genealogy-graph.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +13 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/line-card/line-card.d.ts +70 -0
- package/dist/components/line-card/line-card.d.ts.map +1 -0
- package/dist/components/link/link.d.ts +37 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/listbox/virtualized-items.d.ts +80 -0
- package/dist/components/listbox/virtualized-items.d.ts.map +1 -0
- package/dist/components/live-indicator/live-indicator.d.ts +37 -0
- package/dist/components/live-indicator/live-indicator.d.ts.map +1 -0
- package/dist/components/loading/loading.d.ts +24 -0
- package/dist/components/loading/loading.d.ts.map +1 -0
- package/dist/components/locale/locale.d.ts +36 -0
- package/dist/components/locale/locale.d.ts.map +1 -0
- package/dist/components/lookup-field/lookup-field.d.ts +84 -0
- package/dist/components/lookup-field/lookup-field.d.ts.map +1 -0
- package/dist/components/map/map.d.ts +28 -0
- package/dist/components/map/map.d.ts.map +1 -0
- package/dist/components/measurement-input/measurement-input.d.ts +48 -0
- package/dist/components/measurement-input/measurement-input.d.ts.map +1 -0
- package/dist/components/media-timeline/media-timeline.d.ts +102 -0
- package/dist/components/media-timeline/media-timeline.d.ts.map +1 -0
- package/dist/components/message-popover/message-popover.d.ts +63 -0
- package/dist/components/message-popover/message-popover.d.ts.map +1 -0
- package/dist/components/micro-chart/micro-chart.d.ts +85 -0
- package/dist/components/micro-chart/micro-chart.d.ts.map +1 -0
- package/dist/components/notifications-inbox/notifications-inbox.d.ts +66 -0
- package/dist/components/notifications-inbox/notifications-inbox.d.ts.map +1 -0
- package/dist/components/object/object.d.ts +82 -0
- package/dist/components/object/object.d.ts.map +1 -0
- package/dist/components/object-page/object-page.d.ts +87 -0
- package/dist/components/object-page/object-page.d.ts.map +1 -0
- package/dist/components/oee-gauge/oee-gauge.d.ts +41 -0
- package/dist/components/oee-gauge/oee-gauge.d.ts.map +1 -0
- package/dist/components/page/page.d.ts +27 -0
- package/dist/components/page/page.d.ts.map +1 -0
- package/dist/components/page-header/page-header.d.ts +46 -0
- package/dist/components/page-header/page-header.d.ts.map +1 -0
- package/dist/components/pagination/pagination.d.ts +37 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/paper/paper.d.ts +25 -0
- package/dist/components/paper/paper.d.ts.map +1 -0
- package/dist/components/patterns/list-report-data.d.ts +37 -0
- package/dist/components/patterns/list-report-data.d.ts.map +1 -0
- package/dist/components/pivot/index.d.ts +18 -0
- package/dist/components/pivot/index.d.ts.map +1 -0
- package/dist/components/pivot/internal/use-windowed-option-pages.d.ts +40 -0
- package/dist/components/pivot/internal/use-windowed-option-pages.d.ts.map +1 -0
- package/dist/components/pivot/internal/windowed-virtual-list.d.ts +35 -0
- package/dist/components/pivot/internal/windowed-virtual-list.d.ts.map +1 -0
- package/dist/components/pivot/pivot-drop-zone.d.ts +22 -0
- package/dist/components/pivot/pivot-drop-zone.d.ts.map +1 -0
- package/dist/components/pivot/pivot-field-chip.d.ts +38 -0
- package/dist/components/pivot/pivot-field-chip.d.ts.map +1 -0
- package/dist/components/pivot/pivot-filter-menu.d.ts +41 -0
- package/dist/components/pivot/pivot-filter-menu.d.ts.map +1 -0
- package/dist/components/pivot/pivot-grid.d.ts +91 -0
- package/dist/components/pivot/pivot-grid.d.ts.map +1 -0
- package/dist/components/pivot/pivot-workbench.d.ts +29 -0
- package/dist/components/pivot/pivot-workbench.d.ts.map +1 -0
- package/dist/components/pivot-demo-data.d.ts +33 -0
- package/dist/components/pivot-demo-data.d.ts.map +1 -0
- package/dist/components/planned-vs-actual/planned-vs-actual.d.ts +58 -0
- package/dist/components/planned-vs-actual/planned-vs-actual.d.ts.map +1 -0
- package/dist/components/planning-calendar/planning-calendar.d.ts +83 -0
- package/dist/components/planning-calendar/planning-calendar.d.ts.map +1 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/proctor/proctor.d.ts +77 -0
- package/dist/components/proctor/proctor.d.ts.map +1 -0
- package/dist/components/production-progress/production-progress.d.ts +53 -0
- package/dist/components/production-progress/production-progress.d.ts.map +1 -0
- package/dist/components/production-schedule/production-schedule.d.ts +248 -0
- package/dist/components/production-schedule/production-schedule.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +20 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/qr-scanner/qr-scanner.d.ts +80 -0
- package/dist/components/qr-scanner/qr-scanner.d.ts.map +1 -0
- package/dist/components/rate-bars/rate-bars.d.ts +54 -0
- package/dist/components/rate-bars/rate-bars.d.ts.map +1 -0
- package/dist/components/reason-code-picker/reason-code-picker.d.ts +42 -0
- package/dist/components/reason-code-picker/reason-code-picker.d.ts.map +1 -0
- package/dist/components/rich-text/rich-text.d.ts +56 -0
- package/dist/components/rich-text/rich-text.d.ts.map +1 -0
- package/dist/components/routing-graph/routing-graph.d.ts +49 -0
- package/dist/components/routing-graph/routing-graph.d.ts.map +1 -0
- package/dist/components/scan-input/scan-input.d.ts +64 -0
- package/dist/components/scan-input/scan-input.d.ts.map +1 -0
- package/dist/components/schedule-backlog/schedule-backlog.d.ts +62 -0
- package/dist/components/schedule-backlog/schedule-backlog.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +17 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/select-dialog/select-dialog.d.ts +56 -0
- package/dist/components/select-dialog/select-dialog.d.ts.map +1 -0
- package/dist/components/select-list/filter.d.ts +4 -0
- package/dist/components/select-list/filter.d.ts.map +1 -0
- package/dist/components/select-list/select-list.d.ts +40 -0
- package/dist/components/select-list/select-list.d.ts.map +1 -0
- package/dist/components/sheet/sheet.d.ts +64 -0
- package/dist/components/sheet/sheet.d.ts.map +1 -0
- package/dist/components/shellbar/shellbar.d.ts +72 -0
- package/dist/components/shellbar/shellbar.d.ts.map +1 -0
- package/dist/components/shift-navigator/shift-navigator.d.ts +50 -0
- package/dist/components/shift-navigator/shift-navigator.d.ts.map +1 -0
- package/dist/components/shortcuts/shortcuts.d.ts +132 -0
- package/dist/components/shortcuts/shortcuts.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +155 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +13 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skip-to-content/skip-to-content.d.ts +23 -0
- package/dist/components/skip-to-content/skip-to-content.d.ts.map +1 -0
- package/dist/components/sortable-list/sortable-list.d.ts +72 -0
- package/dist/components/sortable-list/sortable-list.d.ts.map +1 -0
- package/dist/components/splitter/splitter.d.ts +57 -0
- package/dist/components/splitter/splitter.d.ts.map +1 -0
- package/dist/components/spreadsheet-grid/spreadsheet-grid.d.ts +67 -0
- package/dist/components/spreadsheet-grid/spreadsheet-grid.d.ts.map +1 -0
- package/dist/components/stack/stack.d.ts +41 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stat-card/stat-card.d.ts +77 -0
- package/dist/components/stat-card/stat-card.d.ts.map +1 -0
- package/dist/components/state-pill/state-pill.d.ts +42 -0
- package/dist/components/state-pill/state-pill.d.ts.map +1 -0
- package/dist/components/state-timeline/state-timeline.d.ts +67 -0
- package/dist/components/state-timeline/state-timeline.d.ts.map +1 -0
- package/dist/components/status-bar/status-bar.d.ts +58 -0
- package/dist/components/status-bar/status-bar.d.ts.map +1 -0
- package/dist/components/step-runner/step-runner.d.ts +61 -0
- package/dist/components/step-runner/step-runner.d.ts.map +1 -0
- package/dist/components/stepper/stepper.d.ts +111 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/survey/likert.d.ts +84 -0
- package/dist/components/survey/likert.d.ts.map +1 -0
- package/dist/components/survey/nps.d.ts +42 -0
- package/dist/components/survey/nps.d.ts.map +1 -0
- package/dist/components/survey/rating.d.ts +49 -0
- package/dist/components/survey/rating.d.ts.map +1 -0
- package/dist/components/svg_components.d.ts +36 -0
- package/dist/components/svg_components.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +49 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/theme/theme.d.ts +37 -0
- package/dist/components/theme/theme.d.ts.map +1 -0
- package/dist/components/theme-switcher.d.ts +13 -0
- package/dist/components/theme-switcher.d.ts.map +1 -0
- package/dist/components/tile/tile.d.ts +62 -0
- package/dist/components/tile/tile.d.ts.map +1 -0
- package/dist/components/timeline/timeline.d.ts +75 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/toast/toast.d.ts +41 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toaster.d.ts +26 -0
- package/dist/components/toast/toaster.d.ts.map +1 -0
- package/dist/components/toast/use-toast.d.ts +104 -0
- package/dist/components/toast/use-toast.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +45 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +28 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree/tree.d.ts +54 -0
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +53 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/components/tree-table/tree-table.d.ts +77 -0
- package/dist/components/tree-table/tree-table.d.ts.map +1 -0
- package/dist/components/upload-collection/upload-collection.d.ts +64 -0
- package/dist/components/upload-collection/upload-collection.d.ts.map +1 -0
- package/dist/components/url-data-table/url-data-table.d.ts +102 -0
- package/dist/components/url-data-table/url-data-table.d.ts.map +1 -0
- package/dist/components/value-help/value-help.d.ts +65 -0
- package/dist/components/value-help/value-help.d.ts.map +1 -0
- package/dist/components/view-manager/view-manager.d.ts +52 -0
- package/dist/components/view-manager/view-manager.d.ts.map +1 -0
- package/dist/components/view-settings/view-settings-dialog.d.ts +66 -0
- package/dist/components/view-settings/view-settings-dialog.d.ts.map +1 -0
- package/dist/components/waveform/waveform.d.ts +61 -0
- package/dist/components/waveform/waveform.d.ts.map +1 -0
- package/dist/index.d.ts +373 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +764 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +62 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +136 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +253 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +145 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +25 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +124 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +1794 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +241 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +424 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +198 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +844 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +105 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +582 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +765 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +224 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +142 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +113 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +51 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +46 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +107 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +24 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +205 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +165 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +69 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +122 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +29 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +127 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +20 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +110 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +39 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +76 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +26 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +129 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +107 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +47 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +191 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +34 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +56 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +9 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +89 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +21 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +88 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +82 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +88 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +151 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +33 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +79 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +44 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +86 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +7 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +71 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +40 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +118 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +91 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +108 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.js +142 -0
- package/dist/index15.js.map +1 -0
- package/dist/index150.js +46 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.js +198 -0
- package/dist/index151.js.map +1 -0
- package/dist/index152.js +62 -0
- package/dist/index152.js.map +1 -0
- package/dist/index153.js +81 -0
- package/dist/index153.js.map +1 -0
- package/dist/index154.js +162 -0
- package/dist/index154.js.map +1 -0
- package/dist/index155.js +162 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +175 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +125 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +123 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +222 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +121 -0
- package/dist/index16.js.map +1 -0
- package/dist/index160.js +147 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +20 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +146 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +50 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +187 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +35 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +60 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +223 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +48 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +117 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +202 -0
- package/dist/index17.js.map +1 -0
- package/dist/index170.js +51 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +111 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +20 -0
- package/dist/index172.js.map +1 -0
- package/dist/index173.js +100 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +299 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +59 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +168 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +241 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +308 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +287 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +153 -0
- package/dist/index18.js.map +1 -0
- package/dist/index180.js +118 -0
- package/dist/index180.js.map +1 -0
- package/dist/index181.js +103 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +110 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +541 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +160 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +227 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +795 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +62 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +166 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +54 -0
- package/dist/index189.js.map +1 -0
- package/dist/index19.js +121 -0
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +61 -0
- package/dist/index190.js.map +1 -0
- package/dist/index191.js +53 -0
- package/dist/index191.js.map +1 -0
- package/dist/index192.js +135 -0
- package/dist/index192.js.map +1 -0
- package/dist/index193.js +155 -0
- package/dist/index193.js.map +1 -0
- package/dist/index194.js +283 -0
- package/dist/index194.js.map +1 -0
- package/dist/index195.js +205 -0
- package/dist/index195.js.map +1 -0
- package/dist/index196.js +56 -0
- package/dist/index196.js.map +1 -0
- package/dist/index197.js +75 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +206 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +31 -0
- package/dist/index199.js.map +1 -0
- package/dist/index20.js +268 -0
- package/dist/index20.js.map +1 -0
- package/dist/index200.js +36 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +139 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +245 -0
- package/dist/index202.js.map +1 -0
- package/dist/index203.js +11 -0
- package/dist/index203.js.map +1 -0
- package/dist/index204.js +245 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +11 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +82 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +26 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +137 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +371 -0
- package/dist/index209.js.map +1 -0
- package/dist/index21.js +112 -0
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +31 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +82 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +242 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +252 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +376 -0
- package/dist/index214.js.map +1 -0
- package/dist/index215.js +232 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +888 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +525 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +52 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +108 -0
- package/dist/index219.js.map +1 -0
- package/dist/index22.js +101 -0
- package/dist/index22.js.map +1 -0
- package/dist/index220.js +108 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +52 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +44 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +113 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +152 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +8 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +25 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +85 -0
- package/dist/index227.js.map +1 -0
- package/dist/index228.js +533 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +339 -0
- package/dist/index229.js.map +1 -0
- package/dist/index23.js +165 -0
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +227 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +41 -0
- package/dist/index231.js.map +1 -0
- package/dist/index232.js +126 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +245 -0
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +331 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +233 -0
- package/dist/index235.js.map +1 -0
- package/dist/index236.js +101 -0
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +447 -0
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +15 -0
- package/dist/index238.js.map +1 -0
- package/dist/index239.js +1022 -0
- package/dist/index239.js.map +1 -0
- package/dist/index24.js +248 -0
- package/dist/index24.js.map +1 -0
- package/dist/index240.js +236 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +121 -0
- package/dist/index241.js.map +1 -0
- package/dist/index242.js +164 -0
- package/dist/index242.js.map +1 -0
- package/dist/index243.js +95 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +91 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +2680 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +483 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +236 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +250 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +62 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +111 -0
- package/dist/index25.js.map +1 -0
- package/dist/index250.js +62 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +30 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +160 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +626 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +1955 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +107 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +8 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +650 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +155 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +18807 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +79 -0
- package/dist/index26.js.map +1 -0
- package/dist/index260.js +64 -0
- package/dist/index260.js.map +1 -0
- package/dist/index261.js +34 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +76 -0
- package/dist/index262.js.map +1 -0
- package/dist/index263.js +313 -0
- package/dist/index263.js.map +1 -0
- package/dist/index264.js +24 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +97 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +11683 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +109 -0
- package/dist/index267.js.map +1 -0
- package/dist/index268.js +71 -0
- package/dist/index268.js.map +1 -0
- package/dist/index269.js +71 -0
- package/dist/index269.js.map +1 -0
- package/dist/index27.js +180 -0
- package/dist/index27.js.map +1 -0
- package/dist/index270.js +30 -0
- package/dist/index270.js.map +1 -0
- package/dist/index271.js +17 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +10 -0
- package/dist/index272.js.map +1 -0
- package/dist/index273.js +57 -0
- package/dist/index273.js.map +1 -0
- package/dist/index274.js +221 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +19 -0
- package/dist/index275.js.map +1 -0
- package/dist/index276.js +139 -0
- package/dist/index276.js.map +1 -0
- package/dist/index277.js +14 -0
- package/dist/index277.js.map +1 -0
- package/dist/index278.js +263 -0
- package/dist/index278.js.map +1 -0
- package/dist/index279.js +16 -0
- package/dist/index279.js.map +1 -0
- package/dist/index28.js +222 -0
- package/dist/index28.js.map +1 -0
- package/dist/index280.js +97 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +37 -0
- package/dist/index281.js.map +1 -0
- package/dist/index282.js +53 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +53 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +12 -0
- package/dist/index284.js.map +1 -0
- package/dist/index285.js +33 -0
- package/dist/index285.js.map +1 -0
- package/dist/index286.js +642 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +11 -0
- package/dist/index287.js.map +1 -0
- package/dist/index288.js +7 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +7 -0
- package/dist/index289.js.map +1 -0
- package/dist/index29.js +65 -0
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +189 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +28 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +9 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +51 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +233 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +25 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +396 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +790 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +25 -0
- package/dist/index298.js.map +1 -0
- package/dist/index299.js +28 -0
- package/dist/index299.js.map +1 -0
- package/dist/index30.js +135 -0
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +32 -0
- package/dist/index300.js.map +1 -0
- package/dist/index301.js +8 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +57 -0
- package/dist/index302.js.map +1 -0
- package/dist/index303.js +103 -0
- package/dist/index303.js.map +1 -0
- package/dist/index304.js +34 -0
- package/dist/index304.js.map +1 -0
- package/dist/index305.js +54 -0
- package/dist/index305.js.map +1 -0
- package/dist/index306.js +18 -0
- package/dist/index306.js.map +1 -0
- package/dist/index307.js +8 -0
- package/dist/index307.js.map +1 -0
- package/dist/index308.js +6 -0
- package/dist/index308.js.map +1 -0
- package/dist/index309.js +27 -0
- package/dist/index309.js.map +1 -0
- package/dist/index31.js +261 -0
- package/dist/index31.js.map +1 -0
- package/dist/index310.js +116 -0
- package/dist/index310.js.map +1 -0
- package/dist/index311.js +19 -0
- package/dist/index311.js.map +1 -0
- package/dist/index312.js +512 -0
- package/dist/index312.js.map +1 -0
- package/dist/index313.js +129 -0
- package/dist/index313.js.map +1 -0
- package/dist/index314.js +137 -0
- package/dist/index314.js.map +1 -0
- package/dist/index315.js +3016 -0
- package/dist/index315.js.map +1 -0
- package/dist/index316.js +72 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +12 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +17 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +69 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +167 -0
- package/dist/index32.js.map +1 -0
- package/dist/index320.js +68 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +53 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +8 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +16 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +9 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +21 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +8 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +8 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +9 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +57 -0
- package/dist/index33.js.map +1 -0
- package/dist/index330.js +8 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +8 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +10 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +28 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +8 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +8 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +8 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +9 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +8 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +9 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +68 -0
- package/dist/index34.js.map +1 -0
- package/dist/index340.js +8 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +12 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +9 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +8 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +8 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +10 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +156 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +43 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +8 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +11 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +25 -0
- package/dist/index35.js.map +1 -0
- package/dist/index350.js +17 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +17 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +11 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +35 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +14 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +14 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +12 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +17 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +105 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +23 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +37 -0
- package/dist/index36.js.map +1 -0
- package/dist/index360.js +57 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +76 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +13 -0
- package/dist/index362.js.map +1 -0
- package/dist/index363.js +24 -0
- package/dist/index363.js.map +1 -0
- package/dist/index364.js +20 -0
- package/dist/index364.js.map +1 -0
- package/dist/index365.js +27 -0
- package/dist/index365.js.map +1 -0
- package/dist/index366.js +10 -0
- package/dist/index366.js.map +1 -0
- package/dist/index367.js +9 -0
- package/dist/index367.js.map +1 -0
- package/dist/index368.js +27 -0
- package/dist/index368.js.map +1 -0
- package/dist/index369.js +38 -0
- package/dist/index369.js.map +1 -0
- package/dist/index37.js +82 -0
- package/dist/index37.js.map +1 -0
- package/dist/index370.js +17 -0
- package/dist/index370.js.map +1 -0
- package/dist/index371.js +8 -0
- package/dist/index371.js.map +1 -0
- package/dist/index372.js +8 -0
- package/dist/index372.js.map +1 -0
- package/dist/index373.js +8 -0
- package/dist/index373.js.map +1 -0
- package/dist/index374.js +8 -0
- package/dist/index374.js.map +1 -0
- package/dist/index375.js +8 -0
- package/dist/index375.js.map +1 -0
- package/dist/index376.js +7 -0
- package/dist/index376.js.map +1 -0
- package/dist/index377.js +8 -0
- package/dist/index377.js.map +1 -0
- package/dist/index378.js +25 -0
- package/dist/index378.js.map +1 -0
- package/dist/index379.js +9 -0
- package/dist/index379.js.map +1 -0
- package/dist/index38.js +43 -0
- package/dist/index38.js.map +1 -0
- package/dist/index380.js +8 -0
- package/dist/index380.js.map +1 -0
- package/dist/index381.js +9 -0
- package/dist/index381.js.map +1 -0
- package/dist/index382.js +7 -0
- package/dist/index382.js.map +1 -0
- package/dist/index383.js +7 -0
- package/dist/index383.js.map +1 -0
- package/dist/index384.js +8 -0
- package/dist/index384.js.map +1 -0
- package/dist/index385.js +7 -0
- package/dist/index385.js.map +1 -0
- package/dist/index386.js +8 -0
- package/dist/index386.js.map +1 -0
- package/dist/index387.js +7 -0
- package/dist/index387.js.map +1 -0
- package/dist/index388.js +7 -0
- package/dist/index388.js.map +1 -0
- package/dist/index389.js +7 -0
- package/dist/index389.js.map +1 -0
- package/dist/index39.js +172 -0
- package/dist/index39.js.map +1 -0
- package/dist/index390.js +116 -0
- package/dist/index390.js.map +1 -0
- package/dist/index391.js +132 -0
- package/dist/index391.js.map +1 -0
- package/dist/index392.js +9 -0
- package/dist/index392.js.map +1 -0
- package/dist/index393.js +38 -0
- package/dist/index393.js.map +1 -0
- package/dist/index394.js +13 -0
- package/dist/index394.js.map +1 -0
- package/dist/index395.js +10 -0
- package/dist/index395.js.map +1 -0
- package/dist/index396.js +19 -0
- package/dist/index396.js.map +1 -0
- package/dist/index397.js +20 -0
- package/dist/index397.js.map +1 -0
- package/dist/index398.js +9 -0
- package/dist/index398.js.map +1 -0
- package/dist/index399.js +9 -0
- package/dist/index399.js.map +1 -0
- package/dist/index4.js +29 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +71 -0
- package/dist/index40.js.map +1 -0
- package/dist/index400.js +62 -0
- package/dist/index400.js.map +1 -0
- package/dist/index401.js +91 -0
- package/dist/index401.js.map +1 -0
- package/dist/index402.js +10 -0
- package/dist/index402.js.map +1 -0
- package/dist/index403.js +8 -0
- package/dist/index403.js.map +1 -0
- package/dist/index404.js +10 -0
- package/dist/index404.js.map +1 -0
- package/dist/index405.js +20 -0
- package/dist/index405.js.map +1 -0
- package/dist/index406.js +8 -0
- package/dist/index406.js.map +1 -0
- package/dist/index407.js +8 -0
- package/dist/index407.js.map +1 -0
- package/dist/index408.js +16 -0
- package/dist/index408.js.map +1 -0
- package/dist/index409.js +13 -0
- package/dist/index409.js.map +1 -0
- package/dist/index41.js +402 -0
- package/dist/index41.js.map +1 -0
- package/dist/index410.js +17 -0
- package/dist/index410.js.map +1 -0
- package/dist/index411.js +17 -0
- package/dist/index411.js.map +1 -0
- package/dist/index412.js +8 -0
- package/dist/index412.js.map +1 -0
- package/dist/index413.js +9 -0
- package/dist/index413.js.map +1 -0
- package/dist/index414.js +10 -0
- package/dist/index414.js.map +1 -0
- package/dist/index415.js +9 -0
- package/dist/index415.js.map +1 -0
- package/dist/index416.js +58 -0
- package/dist/index416.js.map +1 -0
- package/dist/index417.js +12 -0
- package/dist/index417.js.map +1 -0
- package/dist/index418.js +8 -0
- package/dist/index418.js.map +1 -0
- package/dist/index419.js +8 -0
- package/dist/index419.js.map +1 -0
- package/dist/index42.js +83 -0
- package/dist/index42.js.map +1 -0
- package/dist/index420.js +12 -0
- package/dist/index420.js.map +1 -0
- package/dist/index421.js +8 -0
- package/dist/index421.js.map +1 -0
- package/dist/index422.js +8 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +7 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +14 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +13 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +13 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +14 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +14 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +13 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +49 -0
- package/dist/index43.js.map +1 -0
- package/dist/index430.js +10 -0
- package/dist/index430.js.map +1 -0
- package/dist/index431.js +9 -0
- package/dist/index431.js.map +1 -0
- package/dist/index432.js +8 -0
- package/dist/index432.js.map +1 -0
- package/dist/index433.js +9 -0
- package/dist/index433.js.map +1 -0
- package/dist/index434.js +10 -0
- package/dist/index434.js.map +1 -0
- package/dist/index435.js +9 -0
- package/dist/index435.js.map +1 -0
- package/dist/index436.js +12 -0
- package/dist/index436.js.map +1 -0
- package/dist/index437.js +23 -0
- package/dist/index437.js.map +1 -0
- package/dist/index438.js +27 -0
- package/dist/index438.js.map +1 -0
- package/dist/index439.js +20 -0
- package/dist/index439.js.map +1 -0
- package/dist/index44.js +232 -0
- package/dist/index44.js.map +1 -0
- package/dist/index440.js +11 -0
- package/dist/index440.js.map +1 -0
- package/dist/index441.js +14 -0
- package/dist/index441.js.map +1 -0
- package/dist/index442.js +14 -0
- package/dist/index442.js.map +1 -0
- package/dist/index443.js +25 -0
- package/dist/index443.js.map +1 -0
- package/dist/index444.js +12 -0
- package/dist/index444.js.map +1 -0
- package/dist/index445.js +13 -0
- package/dist/index445.js.map +1 -0
- package/dist/index446.js +13 -0
- package/dist/index446.js.map +1 -0
- package/dist/index447.js +8 -0
- package/dist/index447.js.map +1 -0
- package/dist/index448.js +9 -0
- package/dist/index448.js.map +1 -0
- package/dist/index449.js +20 -0
- package/dist/index449.js.map +1 -0
- package/dist/index45.js +86 -0
- package/dist/index45.js.map +1 -0
- package/dist/index450.js +13 -0
- package/dist/index450.js.map +1 -0
- package/dist/index451.js +22 -0
- package/dist/index451.js.map +1 -0
- package/dist/index452.js +24 -0
- package/dist/index452.js.map +1 -0
- package/dist/index453.js +16 -0
- package/dist/index453.js.map +1 -0
- package/dist/index454.js +33 -0
- package/dist/index454.js.map +1 -0
- package/dist/index455.js +16 -0
- package/dist/index455.js.map +1 -0
- package/dist/index456.js +29 -0
- package/dist/index456.js.map +1 -0
- package/dist/index457.js +9 -0
- package/dist/index457.js.map +1 -0
- package/dist/index458.js +7 -0
- package/dist/index458.js.map +1 -0
- package/dist/index459.js +26 -0
- package/dist/index459.js.map +1 -0
- package/dist/index46.js +55 -0
- package/dist/index46.js.map +1 -0
- package/dist/index460.js +15 -0
- package/dist/index460.js.map +1 -0
- package/dist/index461.js +7 -0
- package/dist/index461.js.map +1 -0
- package/dist/index462.js +26 -0
- package/dist/index462.js.map +1 -0
- package/dist/index463.js +16 -0
- package/dist/index463.js.map +1 -0
- package/dist/index464.js +31 -0
- package/dist/index464.js.map +1 -0
- package/dist/index465.js +8 -0
- package/dist/index465.js.map +1 -0
- package/dist/index466.js +8 -0
- package/dist/index466.js.map +1 -0
- package/dist/index467.js +21 -0
- package/dist/index467.js.map +1 -0
- package/dist/index468.js +16 -0
- package/dist/index468.js.map +1 -0
- package/dist/index469.js +89 -0
- package/dist/index469.js.map +1 -0
- package/dist/index47.js +44 -0
- package/dist/index47.js.map +1 -0
- package/dist/index470.js +8 -0
- package/dist/index470.js.map +1 -0
- package/dist/index471.js +8 -0
- package/dist/index471.js.map +1 -0
- package/dist/index472.js +7 -0
- package/dist/index472.js.map +1 -0
- package/dist/index473.js +19 -0
- package/dist/index473.js.map +1 -0
- package/dist/index474.js +12 -0
- package/dist/index474.js.map +1 -0
- package/dist/index475.js +9 -0
- package/dist/index475.js.map +1 -0
- package/dist/index476.js +8 -0
- package/dist/index476.js.map +1 -0
- package/dist/index477.js +549 -0
- package/dist/index477.js.map +1 -0
- package/dist/index478.js +50 -0
- package/dist/index478.js.map +1 -0
- package/dist/index479.js +21 -0
- package/dist/index479.js.map +1 -0
- package/dist/index48.js +100 -0
- package/dist/index48.js.map +1 -0
- package/dist/index480.js +9 -0
- package/dist/index480.js.map +1 -0
- package/dist/index481.js +11 -0
- package/dist/index481.js.map +1 -0
- package/dist/index482.js +10 -0
- package/dist/index482.js.map +1 -0
- package/dist/index483.js +11 -0
- package/dist/index483.js.map +1 -0
- package/dist/index484.js +15 -0
- package/dist/index484.js.map +1 -0
- package/dist/index485.js +12 -0
- package/dist/index485.js.map +1 -0
- package/dist/index486.js +16 -0
- package/dist/index486.js.map +1 -0
- package/dist/index487.js +71 -0
- package/dist/index487.js.map +1 -0
- package/dist/index488.js +34 -0
- package/dist/index488.js.map +1 -0
- package/dist/index489.js +12 -0
- package/dist/index489.js.map +1 -0
- package/dist/index49.js +190 -0
- package/dist/index49.js.map +1 -0
- package/dist/index490.js +156 -0
- package/dist/index490.js.map +1 -0
- package/dist/index491.js +111 -0
- package/dist/index491.js.map +1 -0
- package/dist/index492.js +8 -0
- package/dist/index492.js.map +1 -0
- package/dist/index493.js +59 -0
- package/dist/index493.js.map +1 -0
- package/dist/index494.js +19 -0
- package/dist/index494.js.map +1 -0
- package/dist/index495.js +32 -0
- package/dist/index495.js.map +1 -0
- package/dist/index496.js +16 -0
- package/dist/index496.js.map +1 -0
- package/dist/index497.js +10 -0
- package/dist/index497.js.map +1 -0
- package/dist/index5.js +24 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +308 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +22 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +345 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +90 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +236 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +185 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +107 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +270 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +207 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +113 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +11 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +234 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +103 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +146 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +35 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +21 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +25 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +45 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +91 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +18 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +39 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +34 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +149 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +79 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +34 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +122 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +155 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +116 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +42 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +103 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +375 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +130 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +45 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +83 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +167 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +117 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +41 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +117 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +150 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +46 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +19 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +161 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +16 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +79 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +29 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +90 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +89 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +89 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +127 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +134 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +75 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +41 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +103 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +95 -0
- package/dist/index99.js.map +1 -0
- package/dist/lib/anchored.d.ts +28 -0
- package/dist/lib/anchored.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +15 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/nav.d.ts +63 -0
- package/dist/nav.d.ts.map +1 -0
- package/dist/preflight.css +95 -0
- package/dist/previews/accordion.jpg +0 -0
- package/dist/previews/alert.jpg +0 -0
- package/dist/previews/amount-field.jpg +0 -0
- package/dist/previews/analytic-chart.jpg +0 -0
- package/dist/previews/andon.jpg +0 -0
- package/dist/previews/avatar-new.jpg +0 -0
- package/dist/previews/avatar.jpg +0 -0
- package/dist/previews/badge-new.jpg +0 -0
- package/dist/previews/badge.jpg +0 -0
- package/dist/previews/banner.jpg +0 -0
- package/dist/previews/barcode.jpg +0 -0
- package/dist/previews/bound-fields.jpg +0 -0
- package/dist/previews/breadcrumb.jpg +0 -0
- package/dist/previews/button-family.jpg +0 -0
- package/dist/previews/button-new.jpg +0 -0
- package/dist/previews/button.jpg +0 -0
- package/dist/previews/camera.jpg +0 -0
- package/dist/previews/capacity-heatmap.jpg +0 -0
- package/dist/previews/card.jpg +0 -0
- package/dist/previews/carousel.jpg +0 -0
- package/dist/previews/chart.jpg +0 -0
- package/dist/previews/checkbox-new.jpg +0 -0
- package/dist/previews/checkbox.jpg +0 -0
- package/dist/previews/chunk-uploader.jpg +0 -0
- package/dist/previews/code-editor.jpg +0 -0
- package/dist/previews/collapsible.jpg +0 -0
- package/dist/previews/color-picker.jpg +0 -0
- package/dist/previews/column-mapper.jpg +0 -0
- package/dist/previews/combobox.jpg +0 -0
- package/dist/previews/context-menu.jpg +0 -0
- package/dist/previews/countdown.jpg +0 -0
- package/dist/previews/data-table.jpg +0 -0
- package/dist/previews/date-input.jpg +0 -0
- package/dist/previews/date-picker-new.jpg +0 -0
- package/dist/previews/date-picker.jpg +0 -0
- package/dist/previews/date-range-picker.jpg +0 -0
- package/dist/previews/date-time-picker.jpg +0 -0
- package/dist/previews/diagram-canvas.jpg +0 -0
- package/dist/previews/dialog.jpg +0 -0
- package/dist/previews/diff-view.jpg +0 -0
- package/dist/previews/direction.jpg +0 -0
- package/dist/previews/document-tabs.jpg +0 -0
- package/dist/previews/document-viewer.jpg +0 -0
- package/dist/previews/dropdown-menu.jpg +0 -0
- package/dist/previews/dynamic-date-range.jpg +0 -0
- package/dist/previews/dynamic-page.jpg +0 -0
- package/dist/previews/empty-state.jpg +0 -0
- package/dist/previews/fab-new.jpg +0 -0
- package/dist/previews/fab.jpg +0 -0
- package/dist/previews/file-upload.jpg +0 -0
- package/dist/previews/filter-bar.jpg +0 -0
- package/dist/previews/filter-builder.jpg +0 -0
- package/dist/previews/flexible-column-layout.jpg +0 -0
- package/dist/previews/form-bound.jpg +0 -0
- package/dist/previews/form-new.jpg +0 -0
- package/dist/previews/form.jpg +0 -0
- package/dist/previews/gantt.jpg +0 -0
- package/dist/previews/genealogy-graph.jpg +0 -0
- package/dist/previews/icon.jpg +0 -0
- package/dist/previews/input-new.jpg +0 -0
- package/dist/previews/input.jpg +0 -0
- package/dist/previews/label.jpg +0 -0
- package/dist/previews/lazy-options.jpg +0 -0
- package/dist/previews/likert.jpg +0 -0
- package/dist/previews/line-card.jpg +0 -0
- package/dist/previews/link.jpg +0 -0
- package/dist/previews/list-report.jpg +0 -0
- package/dist/previews/live-indicator.jpg +0 -0
- package/dist/previews/loading-new.jpg +0 -0
- package/dist/previews/loading.jpg +0 -0
- package/dist/previews/localization.jpg +0 -0
- package/dist/previews/lookup-field.jpg +0 -0
- package/dist/previews/map.jpg +0 -0
- package/dist/previews/mask-input.jpg +0 -0
- package/dist/previews/measurement-input.jpg +0 -0
- package/dist/previews/media-timeline.jpg +0 -0
- package/dist/previews/message-popover.jpg +0 -0
- package/dist/previews/micro-chart.jpg +0 -0
- package/dist/previews/multi-combobox.jpg +0 -0
- package/dist/previews/native-select.jpg +0 -0
- package/dist/previews/notifications-inbox.jpg +0 -0
- package/dist/previews/nps.jpg +0 -0
- package/dist/previews/number-field-new.jpg +0 -0
- package/dist/previews/number-field.jpg +0 -0
- package/dist/previews/object-page.jpg +0 -0
- package/dist/previews/object.jpg +0 -0
- package/dist/previews/oee-gauge.jpg +0 -0
- package/dist/previews/otp-new.jpg +0 -0
- package/dist/previews/otp.jpg +0 -0
- package/dist/previews/page-header.jpg +0 -0
- package/dist/previews/page.jpg +0 -0
- package/dist/previews/pagination.jpg +0 -0
- package/dist/previews/paper.jpg +0 -0
- package/dist/previews/password-input.jpg +0 -0
- package/dist/previews/phone-input-new.jpg +0 -0
- package/dist/previews/phone-input.jpg +0 -0
- package/dist/previews/pivot.jpg +0 -0
- package/dist/previews/planned-vs-actual.jpg +0 -0
- package/dist/previews/planning-calendar.jpg +0 -0
- package/dist/previews/popover.jpg +0 -0
- package/dist/previews/proctor.jpg +0 -0
- package/dist/previews/production-progress.jpg +0 -0
- package/dist/previews/production-schedule.jpg +0 -0
- package/dist/previews/progress-new.jpg +0 -0
- package/dist/previews/progress.jpg +0 -0
- package/dist/previews/qr-scanner.jpg +0 -0
- package/dist/previews/radio-group.jpg +0 -0
- package/dist/previews/rate-bars.jpg +0 -0
- package/dist/previews/rating.jpg +0 -0
- package/dist/previews/reason-code-picker.jpg +0 -0
- package/dist/previews/rich-text.jpg +0 -0
- package/dist/previews/routing-graph.jpg +0 -0
- package/dist/previews/scan-input.jpg +0 -0
- package/dist/previews/scroll-area-new.jpg +0 -0
- package/dist/previews/scroll-area.jpg +0 -0
- package/dist/previews/search.jpg +0 -0
- package/dist/previews/select-dialog.jpg +0 -0
- package/dist/previews/select-new.jpg +0 -0
- package/dist/previews/select.jpg +0 -0
- package/dist/previews/separator.jpg +0 -0
- package/dist/previews/sheet.jpg +0 -0
- package/dist/previews/shellbar.jpg +0 -0
- package/dist/previews/shift-navigator.jpg +0 -0
- package/dist/previews/shortcuts.jpg +0 -0
- package/dist/previews/sidebar.jpg +0 -0
- package/dist/previews/skeleton-new.jpg +0 -0
- package/dist/previews/skeleton.jpg +0 -0
- package/dist/previews/skip-to-content.jpg +0 -0
- package/dist/previews/slider-new.jpg +0 -0
- package/dist/previews/slider.jpg +0 -0
- package/dist/previews/sortable-list.jpg +0 -0
- package/dist/previews/splitter.jpg +0 -0
- package/dist/previews/spreadsheet-grid.jpg +0 -0
- package/dist/previews/stack.jpg +0 -0
- package/dist/previews/stat-card.jpg +0 -0
- package/dist/previews/state-pill.jpg +0 -0
- package/dist/previews/state-timeline.jpg +0 -0
- package/dist/previews/status-bar.jpg +0 -0
- package/dist/previews/step-runner.jpg +0 -0
- package/dist/previews/stepper.jpg +0 -0
- package/dist/previews/switch-new.jpg +0 -0
- package/dist/previews/switch.jpg +0 -0
- package/dist/previews/tabs.jpg +0 -0
- package/dist/previews/tag-input.jpg +0 -0
- package/dist/previews/textarea.jpg +0 -0
- package/dist/previews/theme.jpg +0 -0
- package/dist/previews/tile.jpg +0 -0
- package/dist/previews/time-picker.jpg +0 -0
- package/dist/previews/timeline.jpg +0 -0
- package/dist/previews/toast.jpg +0 -0
- package/dist/previews/toolbar.jpg +0 -0
- package/dist/previews/tooltip-new.jpg +0 -0
- package/dist/previews/tooltip.jpg +0 -0
- package/dist/previews/tree-select.jpg +0 -0
- package/dist/previews/tree-table.jpg +0 -0
- package/dist/previews/tree.jpg +0 -0
- package/dist/previews/upload-collection.jpg +0 -0
- package/dist/previews/value-help.jpg +0 -0
- package/dist/previews/view-manager.jpg +0 -0
- package/dist/previews/view-settings.jpg +0 -0
- package/dist/previews/virtualized-items.jpg +0 -0
- package/dist/previews/waveform.jpg +0 -0
- package/dist/release-notes.d.ts +7 -0
- package/dist/release-notes.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +163 -4
- package/skills/zen-ui/SKILL.md +171 -0
- package/skills/zen-ui/references/api/accordion.md +35 -0
- package/skills/zen-ui/references/api/alert-dialog.md +66 -0
- package/skills/zen-ui/references/api/alert.md +51 -0
- package/skills/zen-ui/references/api/amount-field.md +67 -0
- package/skills/zen-ui/references/api/analytic-chart-analytic-chart.md +48 -0
- package/skills/zen-ui/references/api/andon-andon.md +45 -0
- package/skills/zen-ui/references/api/avatar.md +46 -0
- package/skills/zen-ui/references/api/badge.md +27 -0
- package/skills/zen-ui/references/api/banner.md +51 -0
- package/skills/zen-ui/references/api/barcode.md +43 -0
- package/skills/zen-ui/references/api/bound-fields.md +106 -0
- package/skills/zen-ui/references/api/breadcrumb.md +42 -0
- package/skills/zen-ui/references/api/button-family.md +75 -0
- package/skills/zen-ui/references/api/button.md +33 -0
- package/skills/zen-ui/references/api/camera.md +27 -0
- package/skills/zen-ui/references/api/capacity-heatmap.md +27 -0
- package/skills/zen-ui/references/api/capacity.md +40 -0
- package/skills/zen-ui/references/api/card.md +46 -0
- package/skills/zen-ui/references/api/card.selectable.md +32 -0
- package/skills/zen-ui/references/api/carousel.md +26 -0
- package/skills/zen-ui/references/api/chart-chart.md +32 -0
- package/skills/zen-ui/references/api/checkbox.md +27 -0
- package/skills/zen-ui/references/api/chunk-upload.md +27 -0
- package/skills/zen-ui/references/api/chunk-uploader.md +42 -0
- package/skills/zen-ui/references/api/code-editor.md +70 -0
- package/skills/zen-ui/references/api/collapsible.md +29 -0
- package/skills/zen-ui/references/api/color-palette.md +28 -0
- package/skills/zen-ui/references/api/color-picker.md +28 -0
- package/skills/zen-ui/references/api/color.md +17 -0
- package/skills/zen-ui/references/api/column-mapper-column-mapper.md +26 -0
- package/skills/zen-ui/references/api/combobox.md +45 -0
- package/skills/zen-ui/references/api/command.md +52 -0
- package/skills/zen-ui/references/api/components-pivot.md +100 -0
- package/skills/zen-ui/references/api/context-menu.md +106 -0
- package/skills/zen-ui/references/api/countdown-countdown.md +46 -0
- package/skills/zen-ui/references/api/critical-path.md +38 -0
- package/skills/zen-ui/references/api/data-table.md +110 -0
- package/skills/zen-ui/references/api/date-input.md +41 -0
- package/skills/zen-ui/references/api/date-picker.md +32 -0
- package/skills/zen-ui/references/api/date-range-picker.md +33 -0
- package/skills/zen-ui/references/api/date-range.md +38 -0
- package/skills/zen-ui/references/api/date-time-picker.md +30 -0
- package/skills/zen-ui/references/api/diagram-canvas.md +53 -0
- package/skills/zen-ui/references/api/dialog.md +66 -0
- package/skills/zen-ui/references/api/diff-view.md +30 -0
- package/skills/zen-ui/references/api/diff.md +34 -0
- package/skills/zen-ui/references/api/direction.md +25 -0
- package/skills/zen-ui/references/api/divider.md +22 -0
- package/skills/zen-ui/references/api/document-tabs.md +37 -0
- package/skills/zen-ui/references/api/document-viewer.md +42 -0
- package/skills/zen-ui/references/api/document.md +29 -0
- package/skills/zen-ui/references/api/dropdown-menu.md +97 -0
- package/skills/zen-ui/references/api/dynamic-date-range.md +29 -0
- package/skills/zen-ui/references/api/dynamic-page.md +49 -0
- package/skills/zen-ui/references/api/edit-cell.md +22 -0
- package/skills/zen-ui/references/api/empty-state.md +42 -0
- package/skills/zen-ui/references/api/fab.md +29 -0
- package/skills/zen-ui/references/api/file-upload.md +38 -0
- package/skills/zen-ui/references/api/filter-bar.md +39 -0
- package/skills/zen-ui/references/api/filter-builder.md +60 -0
- package/skills/zen-ui/references/api/filters.md +29 -0
- package/skills/zen-ui/references/api/flexible-column-layout.md +39 -0
- package/skills/zen-ui/references/api/form.md +44 -0
- package/skills/zen-ui/references/api/gantt-gantt.md +88 -0
- package/skills/zen-ui/references/api/genealogy-graph.md +33 -0
- package/skills/zen-ui/references/api/genealogy.md +26 -0
- package/skills/zen-ui/references/api/icon.md +31 -0
- package/skills/zen-ui/references/api/index.md +202 -0
- package/skills/zen-ui/references/api/input.constants.md +16 -0
- package/skills/zen-ui/references/api/input.md +20 -0
- package/skills/zen-ui/references/api/label.md +27 -0
- package/skills/zen-ui/references/api/lib-theme.md +27 -0
- package/skills/zen-ui/references/api/likert.md +39 -0
- package/skills/zen-ui/references/api/line-card.md +30 -0
- package/skills/zen-ui/references/api/line-eta.md +20 -0
- package/skills/zen-ui/references/api/link.md +29 -0
- package/skills/zen-ui/references/api/live-indicator.md +25 -0
- package/skills/zen-ui/references/api/live.md +17 -0
- package/skills/zen-ui/references/api/loading.md +27 -0
- package/skills/zen-ui/references/api/locale.md +977 -0
- package/skills/zen-ui/references/api/lookup-field.md +45 -0
- package/skills/zen-ui/references/api/machine-state.md +24 -0
- package/skills/zen-ui/references/api/map.md +31 -0
- package/skills/zen-ui/references/api/mask-input.md +27 -0
- package/skills/zen-ui/references/api/mask.md +16 -0
- package/skills/zen-ui/references/api/measurement-input.md +28 -0
- package/skills/zen-ui/references/api/measurement.md +44 -0
- package/skills/zen-ui/references/api/media-timeline.md +41 -0
- package/skills/zen-ui/references/api/media.md +29 -0
- package/skills/zen-ui/references/api/message-popover.md +40 -0
- package/skills/zen-ui/references/api/micro-chart.md +77 -0
- package/skills/zen-ui/references/api/multi-combobox.md +37 -0
- package/skills/zen-ui/references/api/native-select.md +20 -0
- package/skills/zen-ui/references/api/notifications-inbox.md +45 -0
- package/skills/zen-ui/references/api/nps.md +31 -0
- package/skills/zen-ui/references/api/number-field.md +26 -0
- package/skills/zen-ui/references/api/object-page.md +42 -0
- package/skills/zen-ui/references/api/object.md +59 -0
- package/skills/zen-ui/references/api/oee-gauge.md +29 -0
- package/skills/zen-ui/references/api/oee.md +46 -0
- package/skills/zen-ui/references/api/otp.md +49 -0
- package/skills/zen-ui/references/api/page-header.md +28 -0
- package/skills/zen-ui/references/api/page.md +32 -0
- package/skills/zen-ui/references/api/pagination.md +30 -0
- package/skills/zen-ui/references/api/paper.md +45 -0
- package/skills/zen-ui/references/api/password-input.md +23 -0
- package/skills/zen-ui/references/api/phone-input.constants.md +17 -0
- package/skills/zen-ui/references/api/phone-input.md +33 -0
- package/skills/zen-ui/references/api/planned-vs-actual-planned-vs-actual.md +30 -0
- package/skills/zen-ui/references/api/planning-calendar.md +55 -0
- package/skills/zen-ui/references/api/planning.md +16 -0
- package/skills/zen-ui/references/api/popover.md +35 -0
- package/skills/zen-ui/references/api/proctor.md +55 -0
- package/skills/zen-ui/references/api/production-progress-production-progress.md +27 -0
- package/skills/zen-ui/references/api/production-schedule.md +92 -0
- package/skills/zen-ui/references/api/production.md +89 -0
- package/skills/zen-ui/references/api/progress.md +29 -0
- package/skills/zen-ui/references/api/qr-scanner.md +38 -0
- package/skills/zen-ui/references/api/radio-group.md +37 -0
- package/skills/zen-ui/references/api/rate-bars-rate-bars.md +29 -0
- package/skills/zen-ui/references/api/rating.md +33 -0
- package/skills/zen-ui/references/api/reason-code-picker.md +28 -0
- package/skills/zen-ui/references/api/reason-codes.md +25 -0
- package/skills/zen-ui/references/api/reschedule.md +48 -0
- package/skills/zen-ui/references/api/rich-text.md +30 -0
- package/skills/zen-ui/references/api/routing-graph.md +37 -0
- package/skills/zen-ui/references/api/routing.md +31 -0
- package/skills/zen-ui/references/api/row-keys.md +24 -0
- package/skills/zen-ui/references/api/scan-input.md +32 -0
- package/skills/zen-ui/references/api/scan.md +36 -0
- package/skills/zen-ui/references/api/schedule-backlog.md +33 -0
- package/skills/zen-ui/references/api/scroll-area.md +24 -0
- package/skills/zen-ui/references/api/search.md +30 -0
- package/skills/zen-ui/references/api/select-dialog.md +40 -0
- package/skills/zen-ui/references/api/select.md +72 -0
- package/skills/zen-ui/references/api/sheet.md +71 -0
- package/skills/zen-ui/references/api/shellbar.md +62 -0
- package/skills/zen-ui/references/api/shift-navigator.md +27 -0
- package/skills/zen-ui/references/api/shifts.md +39 -0
- package/skills/zen-ui/references/api/shortcuts.md +60 -0
- package/skills/zen-ui/references/api/sidebar.md +110 -0
- package/skills/zen-ui/references/api/skeleton.md +20 -0
- package/skills/zen-ui/references/api/skip-to-content.md +24 -0
- package/skills/zen-ui/references/api/slider.md +28 -0
- package/skills/zen-ui/references/api/sortable-list.md +44 -0
- package/skills/zen-ui/references/api/sortable.md +46 -0
- package/skills/zen-ui/references/api/splitter-splitter.md +49 -0
- package/skills/zen-ui/references/api/spreadsheet-grid.md +46 -0
- package/skills/zen-ui/references/api/spreadsheet.md +40 -0
- package/skills/zen-ui/references/api/stack.md +26 -0
- package/skills/zen-ui/references/api/stat-card.md +42 -0
- package/skills/zen-ui/references/api/state-pill.md +28 -0
- package/skills/zen-ui/references/api/state-timeline-state-timeline.md +36 -0
- package/skills/zen-ui/references/api/status-bar-status-bar.md +44 -0
- package/skills/zen-ui/references/api/step-runner-step-runner.md +34 -0
- package/skills/zen-ui/references/api/stepper.md +64 -0
- package/skills/zen-ui/references/api/switch.md +27 -0
- package/skills/zen-ui/references/api/table.md +50 -0
- package/skills/zen-ui/references/api/tabs.md +49 -0
- package/skills/zen-ui/references/api/tag-input.md +33 -0
- package/skills/zen-ui/references/api/textarea.md +20 -0
- package/skills/zen-ui/references/api/theme-theme.md +22 -0
- package/skills/zen-ui/references/api/tile.md +37 -0
- package/skills/zen-ui/references/api/time-picker.md +33 -0
- package/skills/zen-ui/references/api/timeline.md +44 -0
- package/skills/zen-ui/references/api/toast.md +58 -0
- package/skills/zen-ui/references/api/toaster.md +24 -0
- package/skills/zen-ui/references/api/toolbar.md +36 -0
- package/skills/zen-ui/references/api/tooltip.md +41 -0
- package/skills/zen-ui/references/api/tree-select.md +44 -0
- package/skills/zen-ui/references/api/tree-table.md +57 -0
- package/skills/zen-ui/references/api/tree.md +38 -0
- package/skills/zen-ui/references/api/upload-collection.md +44 -0
- package/skills/zen-ui/references/api/url-data-table.md +62 -0
- package/skills/zen-ui/references/api/use-toast.md +44 -0
- package/skills/zen-ui/references/api/value-help.md +55 -0
- package/skills/zen-ui/references/api/view-manager.md +37 -0
- package/skills/zen-ui/references/api/view-settings-dialog.md +56 -0
- package/skills/zen-ui/references/api/virtualized-items.md +28 -0
- package/skills/zen-ui/references/api/waveform.md +35 -0
- package/skills/zen-ui/references/api/zen-ui-core-analytic-chart.md +98 -0
- package/skills/zen-ui/references/api/zen-ui-core-andon.md +26 -0
- package/skills/zen-ui/references/api/zen-ui-core-chart.md +25 -0
- package/skills/zen-ui/references/api/zen-ui-core-column-mapper.md +42 -0
- package/skills/zen-ui/references/api/zen-ui-core-countdown.md +20 -0
- package/skills/zen-ui/references/api/zen-ui-core-gantt.md +119 -0
- package/skills/zen-ui/references/api/zen-ui-core-pivot.md +88 -0
- package/skills/zen-ui/references/api/zen-ui-core-planned-vs-actual.md +44 -0
- package/skills/zen-ui/references/api/zen-ui-core-production-progress.md +35 -0
- package/skills/zen-ui/references/api/zen-ui-core-rate-bars.md +34 -0
- package/skills/zen-ui/references/api/zen-ui-core-splitter.md +29 -0
- package/skills/zen-ui/references/api/zen-ui-core-state-timeline.md +67 -0
- package/skills/zen-ui/references/api/zen-ui-core-status-bar.md +25 -0
- package/skills/zen-ui/references/api/zen-ui-core-step-runner.md +44 -0
- package/skills/zen-ui/references/catalogue.md +168 -0
package/dist/index59.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsx as n, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as G } from "./index199.js";
|
|
4
|
+
import "./index208.js";
|
|
5
|
+
import "./index28.js";
|
|
6
|
+
import "./index110.js";
|
|
7
|
+
import { Dialog as H, DialogContent as J, DialogTitle as K, DialogDescription as U } from "./index79.js";
|
|
8
|
+
import { Button as b } from "./index71.js";
|
|
9
|
+
import { SelectSearchField as W, SelectListBody as X } from "./index223.js";
|
|
10
|
+
import { filterItems as Y } from "./index225.js";
|
|
11
|
+
import { useLocale as Z } from "./index90.js";
|
|
12
|
+
const _ = ({
|
|
13
|
+
open: s,
|
|
14
|
+
onOpenChange: a,
|
|
15
|
+
title: D,
|
|
16
|
+
description: i,
|
|
17
|
+
items: m,
|
|
18
|
+
multiple: d = !1,
|
|
19
|
+
selectedIds: g,
|
|
20
|
+
onConfirm: N,
|
|
21
|
+
searchable: S = !0,
|
|
22
|
+
searchPlaceholder: k,
|
|
23
|
+
onSearch: f,
|
|
24
|
+
emptyText: w,
|
|
25
|
+
confirmLabel: j,
|
|
26
|
+
cancelLabel: B,
|
|
27
|
+
clearLabel: C,
|
|
28
|
+
showClearAll: P = !0,
|
|
29
|
+
className: R
|
|
30
|
+
}) => {
|
|
31
|
+
const r = Z(), E = k ?? r.t("common.search"), I = j ?? r.t("common.ok"), T = B ?? r.t("common.cancel"), q = C ?? r.t("common.clear"), [z, x] = o.useState(""), [u, h] = o.useState([]), y = o.useRef(g);
|
|
32
|
+
o.useEffect(() => {
|
|
33
|
+
y.current = g;
|
|
34
|
+
}), o.useEffect(() => {
|
|
35
|
+
s && (h(y.current ?? []), x(""));
|
|
36
|
+
}, [s]);
|
|
37
|
+
const F = o.useMemo(
|
|
38
|
+
() => Y(m, z, !!f),
|
|
39
|
+
[m, z, f]
|
|
40
|
+
), L = (e) => {
|
|
41
|
+
N(e), a(!1);
|
|
42
|
+
}, M = (e) => h((t) => t.includes(e) ? t.filter((c) => c !== e) : [...t, e]), Q = (e) => {
|
|
43
|
+
const t = new Set(e), c = m.filter((l) => t.has(l.id)).map((l) => l.id), A = new Set(c);
|
|
44
|
+
return [...c, ...e.filter((l) => !A.has(l))];
|
|
45
|
+
}, V = (e) => {
|
|
46
|
+
x(e), f?.(e);
|
|
47
|
+
}, v = o.useId();
|
|
48
|
+
return /* @__PURE__ */ n(H, { open: s, onOpenChange: a, children: /* @__PURE__ */ p(
|
|
49
|
+
J,
|
|
50
|
+
{
|
|
51
|
+
className: G("zen-flex zen-max-h-[85vh] zen-flex-col zen-overflow-hidden zen-p-0", R),
|
|
52
|
+
"aria-describedby": i ? v : void 0,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ p("div", { className: "zen-flex zen-flex-col zen-gap-2 zen-border-b zen-border-zen-border zen-px-6 zen-py-4", children: [
|
|
55
|
+
/* @__PURE__ */ n(K, { className: "zen-pr-8", children: D }),
|
|
56
|
+
i ? /* @__PURE__ */ n(U, { id: v, children: i }) : null,
|
|
57
|
+
S ? /* @__PURE__ */ n(
|
|
58
|
+
W,
|
|
59
|
+
{
|
|
60
|
+
value: z,
|
|
61
|
+
onValueChange: V,
|
|
62
|
+
placeholder: E,
|
|
63
|
+
className: "zen-mt-1"
|
|
64
|
+
}
|
|
65
|
+
) : null
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ n("div", { className: "zen-min-h-0 zen-flex-1 zen-overflow-y-auto zen-px-2 zen-py-2", children: /* @__PURE__ */ n(
|
|
68
|
+
X,
|
|
69
|
+
{
|
|
70
|
+
items: F,
|
|
71
|
+
multiple: d,
|
|
72
|
+
selected: u,
|
|
73
|
+
onToggle: M,
|
|
74
|
+
onPick: (e) => L([e]),
|
|
75
|
+
emptyText: w
|
|
76
|
+
}
|
|
77
|
+
) }),
|
|
78
|
+
/* @__PURE__ */ p("div", { className: "zen-flex zen-items-center zen-justify-end zen-gap-2 zen-border-t zen-border-zen-border zen-px-6 zen-py-3", children: [
|
|
79
|
+
d && P ? /* @__PURE__ */ n(
|
|
80
|
+
b,
|
|
81
|
+
{
|
|
82
|
+
type: "button",
|
|
83
|
+
variant: "ghost",
|
|
84
|
+
color: "neutral",
|
|
85
|
+
size: "sm",
|
|
86
|
+
disabled: u.length === 0,
|
|
87
|
+
onClick: () => h([]),
|
|
88
|
+
className: "zen-mr-auto",
|
|
89
|
+
children: q
|
|
90
|
+
}
|
|
91
|
+
) : null,
|
|
92
|
+
/* @__PURE__ */ n(
|
|
93
|
+
b,
|
|
94
|
+
{
|
|
95
|
+
type: "button",
|
|
96
|
+
variant: "outline",
|
|
97
|
+
color: "neutral",
|
|
98
|
+
size: "sm",
|
|
99
|
+
onClick: () => a(!1),
|
|
100
|
+
children: T
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
d ? /* @__PURE__ */ n(b, { type: "button", size: "sm", onClick: () => L(Q(u)), children: I }) : null
|
|
104
|
+
] })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
) });
|
|
108
|
+
};
|
|
109
|
+
_.displayName = "SelectDialog";
|
|
110
|
+
export {
|
|
111
|
+
_ as SelectDialog
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=index59.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index59.js","sources":["../src/components/select-dialog/select-dialog.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"@algorisys/zen-ui-core\";\nimport {\n Dialog,\n DialogContent,\n DialogTitle,\n DialogDescription,\n} from \"../dialog/dialog\";\nimport { Button } from \"../button/button\";\nimport {\n SelectSearchField,\n SelectListBody,\n type SelectListItem,\n} from \"../select-list/select-list\";\nimport { filterItems } from \"../select-list/filter\";\nimport { useLocale } from \"../locale/locale\";\n\n/**\n * SelectDialog — the list picker: a modal with a search field, a scrollable\n * list, and a footer.\n *\n * Two modes, and they behave differently on purpose:\n *\n * - **Single** — picking a row IS the confirmation. The dialog closes on click\n * and there is no OK button, because an OK would be a second click that says\n * nothing new.\n * - **Multiple** — rows are checkboxes and nothing is committed until OK, so a\n * mis-click is recoverable. Cancel restores whatever was selected on open.\n *\n * Selection is drafted internally and only handed back via `onConfirm`, so the\n * caller's state never sees an intermediate tick. `selectedIds` is read when\n * `open` flips true — this is a picker, not a live-bound field.\n *\n * Filtering is client-side over label + description. Pass `onSearch` to take it\n * over (server-driven / fuzzy): the dialog then renders `items` verbatim and\n * filtering becomes the caller's job.\n *\n * The search field and list body come from `select-list`, shared with ValueHelp.\n */\n\n/** The item shape. Shared with ValueHelp's Select tab as `SelectListItem`. */\nexport type SelectDialogItem = SelectListItem;\n\nexport interface SelectDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: string;\n /** Optional subtitle. Also the dialog's accessible description. */\n description?: string;\n items: SelectDialogItem[];\n /** Checkbox rows + an OK/Cancel commit step. Default: single-select. */\n multiple?: boolean;\n /** The selection the dialog opens with. Read when `open` becomes true. */\n selectedIds?: string[];\n /** The only way selection escapes. Single mode passes exactly one id. */\n onConfirm: (ids: string[]) => void;\n searchable?: boolean;\n searchPlaceholder?: string;\n /** Take over filtering. When set, `items` is rendered as given. */\n onSearch?: (query: string) => void;\n emptyText?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n clearLabel?: string;\n /** Multi-select only: a \"Clear\" action in the footer. Default: true. */\n showClearAll?: boolean;\n className?: string;\n}\n\nexport const SelectDialog = ({\n open,\n onOpenChange,\n title,\n description,\n items,\n multiple = false,\n selectedIds,\n onConfirm,\n searchable = true,\n searchPlaceholder: searchPlaceholderProp,\n onSearch,\n emptyText,\n confirmLabel: confirmLabelProp,\n cancelLabel: cancelLabelProp,\n clearLabel: clearLabelProp,\n showClearAll = true,\n className,\n}: SelectDialogProps) => {\n const loc = useLocale();\n const searchPlaceholder = searchPlaceholderProp ?? loc.t(\"common.search\");\n const confirmLabel = confirmLabelProp ?? loc.t(\"common.ok\");\n const cancelLabel = cancelLabelProp ?? loc.t(\"common.cancel\");\n const clearLabel = clearLabelProp ?? loc.t(\"common.clear\");\n const [query, setQuery] = React.useState(\"\");\n // Seeded by the reset effect below rather than here: `selectedIds` is read when\n // the dialog opens, so an initial read would be a second, contradictory source\n // of that rule (and the draft of a closed dialog is never shown anyway).\n const [draft, setDraft] = React.useState<string[]>([]);\n\n // Held in a ref so the reset effect below can depend on `open` alone. A\n // caller passing `selectedIds={[]}` inline hands us a new array identity every\n // render; depending on it would re-run the reset mid-interaction and wipe the\n // user's ticks. Same class of bug as FlexibleColumnLayout's render loop.\n const selectedRef = React.useRef(selectedIds);\n React.useEffect(() => {\n selectedRef.current = selectedIds;\n });\n\n // A picker is a fresh question each time it opens: re-seed the draft and drop\n // the previous search. Resetting on close instead would animate the list\n // rebuilding while the dialog fades out.\n React.useEffect(() => {\n if (!open) return;\n setDraft(selectedRef.current ?? []);\n setQuery(\"\");\n }, [open]);\n\n const visible = React.useMemo(\n () => filterItems(items, query, Boolean(onSearch)),\n [items, query, onSearch],\n );\n\n const commit = (ids: string[]) => {\n onConfirm(ids);\n onOpenChange(false);\n };\n\n const toggle = (id: string) =>\n setDraft((prev) => (prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]));\n\n // OK reports the selection in list order, not tick order — which rows the user\n // happened to click first is not information the caller should have to\n // untangle, and Fiori's SelectDialog reports selectedContexts in list order\n // too. Ids `items` no longer holds (a rotated `onSearch` page) keep their\n // draft order on the end instead of being dropped.\n const inListOrder = (ids: string[]) => {\n const picked = new Set(ids);\n const known = items.filter((i) => picked.has(i.id)).map((i) => i.id);\n const seen = new Set(known);\n return [...known, ...ids.filter((id) => !seen.has(id))];\n };\n\n const handleSearch = (value: string) => {\n setQuery(value);\n onSearch?.(value);\n };\n\n const descriptionId = React.useId();\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n // The list is full-bleed and scrolls on its own, so the dialog's own\n // padding and scroller would double up: a scrollbar inside a scrollbar,\n // and a search field that scrolls away from the list it filters.\n className={cn(\"zen-flex zen-max-h-[85vh] zen-flex-col zen-overflow-hidden zen-p-0\", className)}\n aria-describedby={description ? descriptionId : undefined}\n >\n <div className=\"zen-flex zen-flex-col zen-gap-2 zen-border-b zen-border-zen-border zen-px-6 zen-py-4\">\n <DialogTitle className=\"zen-pr-8\">{title}</DialogTitle>\n {description ? (\n <DialogDescription id={descriptionId}>{description}</DialogDescription>\n ) : null}\n {searchable ? (\n <SelectSearchField\n value={query}\n onValueChange={handleSearch}\n placeholder={searchPlaceholder}\n className=\"zen-mt-1\"\n />\n ) : null}\n </div>\n\n <div className=\"zen-min-h-0 zen-flex-1 zen-overflow-y-auto zen-px-2 zen-py-2\">\n <SelectListBody\n items={visible}\n multiple={multiple}\n selected={draft}\n onToggle={toggle}\n onPick={(id) => commit([id])}\n emptyText={emptyText}\n />\n </div>\n\n <div className=\"zen-flex zen-items-center zen-justify-end zen-gap-2 zen-border-t zen-border-zen-border zen-px-6 zen-py-3\">\n {multiple && showClearAll ? (\n <Button\n type=\"button\"\n variant=\"ghost\"\n color=\"neutral\"\n size=\"sm\"\n // Clearing an empty selection is a no-op dressed as an action.\n disabled={draft.length === 0}\n onClick={() => setDraft([])}\n className=\"zen-mr-auto\"\n >\n {clearLabel}\n </Button>\n ) : null}\n <Button\n type=\"button\"\n variant=\"outline\"\n color=\"neutral\"\n size=\"sm\"\n onClick={() => onOpenChange(false)}\n >\n {cancelLabel}\n </Button>\n {multiple ? (\n <Button type=\"button\" size=\"sm\" onClick={() => commit(inListOrder(draft))}>\n {confirmLabel}\n </Button>\n ) : null}\n </div>\n </DialogContent>\n </Dialog>\n );\n};\nSelectDialog.displayName = \"SelectDialog\";\n"],"names":["SelectDialog","open","onOpenChange","title","description","items","multiple","selectedIds","onConfirm","searchable","searchPlaceholderProp","onSearch","emptyText","confirmLabelProp","cancelLabelProp","clearLabelProp","showClearAll","className","loc","useLocale","searchPlaceholder","confirmLabel","cancelLabel","clearLabel","query","setQuery","React","draft","setDraft","selectedRef","visible","filterItems","commit","ids","toggle","id","prev","x","inListOrder","picked","known","i","seen","handleSearch","value","descriptionId","jsx","Dialog","jsxs","DialogContent","cn","DialogTitle","DialogDescription","SelectSearchField","SelectListBody","Button"],"mappings":";;;;;;;;;;;AAqEO,MAAMA,IAAe,CAAC;AAAA,EAC3B,MAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,mBAAmBC;AAAA,EACnB,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAcC;AAAA,EACd,aAAaC;AAAA,EACb,YAAYC;AAAA,EACZ,cAAAC,IAAe;AAAA,EACf,WAAAC;AACF,MAAyB;AACvB,QAAMC,IAAMC,EAAA,GACNC,IAAoBV,KAAyBQ,EAAI,EAAE,eAAe,GAClEG,IAAeR,KAAoBK,EAAI,EAAE,WAAW,GACpDI,IAAcR,KAAmBI,EAAI,EAAE,eAAe,GACtDK,IAAaR,KAAkBG,EAAI,EAAE,cAAc,GACnD,CAACM,GAAOC,CAAQ,IAAIC,EAAM,SAAS,EAAE,GAIrC,CAACC,G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AAAA,UAAA;AAAA,UAEFhB,IACC,gBAAAwC,EAACS,GAAA,EAAO,MAAK,UAAS,MAAK,MAAK,SAAS,MAAMvB,EAAOM,EAAYX,CAAK,CAAC,GACrE,aACH,IACE;AAAA,QAAA,EAAA,CACN;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AACA3B,EAAa,cAAc;"}
|
package/dist/index6.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index6.js","sources":["../src/components/form/input/input.constants.ts"],"sourcesContent":["export const DEFAULT_EMAIL_DOMAINS = [\n \"gmail.com\",\n \"yahoo.com\",\n \"hotmail.com\",\n \"outlook.com\",\n \"icloud.com\",\n] as const;\n"],"names":["DEFAULT_EMAIL_DOMAINS"],"mappings":"AAAO,MAAMA,IAAwB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
|
package/dist/index60.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { jsxs as m, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { cn as K } from "./index199.js";
|
|
4
|
+
import { arrowStep as te } from "./index207.js";
|
|
5
|
+
import "./index208.js";
|
|
6
|
+
import "./index28.js";
|
|
7
|
+
import "./index110.js";
|
|
8
|
+
import { useLocale as re } from "./index90.js";
|
|
9
|
+
const C = (r) => `h${Math.min(Math.max(r, 1), 6)}`, oe = (r, c, z) => {
|
|
10
|
+
const h = parseFloat(getComputedStyle(c).scrollMarginTop) || 0, v = c.getBoundingClientRect().top - r.getBoundingClientRect().top + r.scrollTop - h;
|
|
11
|
+
r.scrollTo({ top: v, behavior: z });
|
|
12
|
+
}, ie = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, se = t.forwardRef(
|
|
13
|
+
({
|
|
14
|
+
sections: r,
|
|
15
|
+
selectedSectionId: c,
|
|
16
|
+
defaultSelectedSectionId: z,
|
|
17
|
+
onSelectedSectionChange: h,
|
|
18
|
+
header: v,
|
|
19
|
+
title: k,
|
|
20
|
+
showAnchorBar: y = !0,
|
|
21
|
+
anchorBarLabel: S,
|
|
22
|
+
headingLevel: N = 2,
|
|
23
|
+
className: I,
|
|
24
|
+
children: E,
|
|
25
|
+
...W
|
|
26
|
+
}, q) => {
|
|
27
|
+
const G = re(), J = S ?? G.t("objectPage.objectPageSections"), Q = C(N), U = C(N + 1), V = C(N + 2), x = t.useRef(null), D = t.useRef(null), b = t.useRef(/* @__PURE__ */ new Map()), p = r[0]?.id, [X, $] = t.useState(
|
|
28
|
+
z ?? p
|
|
29
|
+
), P = c ?? X, w = t.useRef(
|
|
30
|
+
c ?? z ?? p
|
|
31
|
+
), M = t.useRef(!1), O = t.useRef(null), A = t.useRef(h);
|
|
32
|
+
t.useEffect(() => {
|
|
33
|
+
A.current = h;
|
|
34
|
+
});
|
|
35
|
+
const R = t.useCallback((e) => {
|
|
36
|
+
$(e), A.current?.(e);
|
|
37
|
+
}, []), [l, j] = t.useState(0);
|
|
38
|
+
t.useLayoutEffect(() => {
|
|
39
|
+
const e = D.current;
|
|
40
|
+
if (!e) {
|
|
41
|
+
j(0);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (j(e.offsetHeight), typeof ResizeObserver > "u") return;
|
|
45
|
+
const n = new ResizeObserver(() => j(e.offsetHeight));
|
|
46
|
+
return n.observe(e), () => n.disconnect();
|
|
47
|
+
}, [y]);
|
|
48
|
+
const [Y, Z] = t.useState(0), H = r[r.length - 1]?.id;
|
|
49
|
+
t.useLayoutEffect(() => {
|
|
50
|
+
const e = x.current, n = H ? b.current.get(H) : void 0;
|
|
51
|
+
if (!e || !n) return;
|
|
52
|
+
const i = () => Z(Math.max(0, e.clientHeight - n.offsetHeight - l));
|
|
53
|
+
if (i(), typeof ResizeObserver > "u") return;
|
|
54
|
+
const o = new ResizeObserver(i);
|
|
55
|
+
return o.observe(e), o.observe(n), () => o.disconnect();
|
|
56
|
+
}, [H, l, r]), t.useEffect(() => {
|
|
57
|
+
const e = x.current;
|
|
58
|
+
if (!e || typeof IntersectionObserver > "u") return;
|
|
59
|
+
const n = r.map((s) => b.current.get(s.id)).filter((s) => !!s);
|
|
60
|
+
if (!n.length) return;
|
|
61
|
+
const i = /* @__PURE__ */ new Set(), o = new IntersectionObserver(
|
|
62
|
+
(s) => {
|
|
63
|
+
for (const f of s) {
|
|
64
|
+
const d = f.target.dataset.sectionId;
|
|
65
|
+
d && (f.isIntersecting ? i.add(d) : i.delete(d));
|
|
66
|
+
}
|
|
67
|
+
if (M.current) return;
|
|
68
|
+
const a = r.find((f) => i.has(f.id))?.id;
|
|
69
|
+
!a || a === w.current || (w.current = a, R(a));
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
root: e,
|
|
73
|
+
// The extra pixel is the difference between "at the bottom, the last
|
|
74
|
+
// section is current" and "at the bottom, the second-to-last section
|
|
75
|
+
// is current by a rounding error": at max scroll the last section's
|
|
76
|
+
// top lands exactly on the line, which leaves its predecessor's bottom
|
|
77
|
+
// edge exactly there too. Nudging the line down a pixel decides it.
|
|
78
|
+
rootMargin: `-${l + 1}px 0px 0px 0px`,
|
|
79
|
+
threshold: 0
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
return n.forEach((s) => o.observe(s)), O.current = () => {
|
|
83
|
+
n.forEach((s) => {
|
|
84
|
+
o.unobserve(s), o.observe(s);
|
|
85
|
+
});
|
|
86
|
+
}, () => {
|
|
87
|
+
O.current = null, o.disconnect();
|
|
88
|
+
};
|
|
89
|
+
}, [r, l, R]);
|
|
90
|
+
const g = t.useCallback(
|
|
91
|
+
(e, { animate: n, notify: i }) => {
|
|
92
|
+
const o = b.current.get(e), s = x.current;
|
|
93
|
+
if (!o || !s) return;
|
|
94
|
+
w.current = e, i ? R(e) : $(e), M.current = !0;
|
|
95
|
+
let a = 0;
|
|
96
|
+
const f = () => {
|
|
97
|
+
s.removeEventListener("scroll", d), window.clearTimeout(a), M.current = !1, O.current?.();
|
|
98
|
+
}, d = () => {
|
|
99
|
+
window.clearTimeout(a), a = window.setTimeout(f, 120);
|
|
100
|
+
};
|
|
101
|
+
s.addEventListener("scroll", d), a = window.setTimeout(f, 1e3), oe(s, o, n && !ie() ? "smooth" : "auto");
|
|
102
|
+
},
|
|
103
|
+
[R]
|
|
104
|
+
), F = t.useRef(!1);
|
|
105
|
+
t.useEffect(() => {
|
|
106
|
+
if (F.current || y && l === 0) return;
|
|
107
|
+
F.current = !0;
|
|
108
|
+
const e = c ?? z;
|
|
109
|
+
!e || e === p || g(e, { animate: !1, notify: !1 });
|
|
110
|
+
}, [l, y, c, z, p, g]), t.useEffect(() => {
|
|
111
|
+
c !== void 0 && c !== w.current && g(c, { animate: !0, notify: !1 });
|
|
112
|
+
}, [c, g]);
|
|
113
|
+
const [_, B] = t.useState(null), ee = _ ?? P ?? p, L = t.useRef(/* @__PURE__ */ new Map()), T = (e) => {
|
|
114
|
+
B(e), L.current.get(e)?.focus();
|
|
115
|
+
}, ne = (e, n) => {
|
|
116
|
+
const i = r.length - 1, o = te(e.key, e.currentTarget);
|
|
117
|
+
o === 1 ? (e.preventDefault(), T(r[n === i ? 0 : n + 1].id)) : o === -1 ? (e.preventDefault(), T(r[n === 0 ? i : n - 1].id)) : e.key === "Home" ? (e.preventDefault(), T(r[0].id)) : e.key === "End" && (e.preventDefault(), T(r[i].id));
|
|
118
|
+
};
|
|
119
|
+
return /* @__PURE__ */ m(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
ref: q,
|
|
123
|
+
className: K(
|
|
124
|
+
"zen-flex zen-h-full zen-flex-col zen-overflow-hidden zen-bg-zen-background zen-text-zen-foreground",
|
|
125
|
+
I
|
|
126
|
+
),
|
|
127
|
+
...W,
|
|
128
|
+
children: [
|
|
129
|
+
k || E ? /* @__PURE__ */ m("div", { className: "zen-flex zen-shrink-0 zen-items-center zen-gap-3 zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-zen-bar-y", children: [
|
|
130
|
+
k ? /* @__PURE__ */ u(Q, { className: "zen-m-0 zen-min-w-0 zen-truncate zen-text-base zen-font-semibold", children: k }) : null,
|
|
131
|
+
E ? /* @__PURE__ */ u("div", { className: "zen-ml-auto zen-flex zen-shrink-0 zen-items-center zen-gap-2", children: E }) : null
|
|
132
|
+
] }) : null,
|
|
133
|
+
/* @__PURE__ */ m(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
ref: x,
|
|
137
|
+
className: "zen-relative zen-min-h-0 zen-flex-1 zen-overflow-y-auto",
|
|
138
|
+
style: { scrollPaddingTop: l },
|
|
139
|
+
children: [
|
|
140
|
+
v ? /* @__PURE__ */ u("div", { className: "zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-4", children: v }) : null,
|
|
141
|
+
y ? /* @__PURE__ */ u(
|
|
142
|
+
"nav",
|
|
143
|
+
{
|
|
144
|
+
ref: D,
|
|
145
|
+
"aria-label": J,
|
|
146
|
+
className: "zen-sticky zen-top-0 zen-z-10 zen-flex zen-h-zen-anchor-bar zen-items-stretch zen-gap-1 zen-overflow-x-auto zen-border-b zen-border-zen-border zen-bg-zen-background zen-px-4",
|
|
147
|
+
children: r.map((e, n) => {
|
|
148
|
+
const i = P === e.id;
|
|
149
|
+
return /* @__PURE__ */ m(
|
|
150
|
+
"button",
|
|
151
|
+
{
|
|
152
|
+
ref: (o) => {
|
|
153
|
+
o ? L.current.set(e.id, o) : L.current.delete(e.id);
|
|
154
|
+
},
|
|
155
|
+
type: "button",
|
|
156
|
+
"data-anchor-id": e.id,
|
|
157
|
+
"aria-current": i ? "true" : void 0,
|
|
158
|
+
tabIndex: ee === e.id ? 0 : -1,
|
|
159
|
+
onFocus: () => B(e.id),
|
|
160
|
+
onKeyDown: (o) => ne(o, n),
|
|
161
|
+
onClick: () => g(e.id, { animate: !0, notify: !0 }),
|
|
162
|
+
className: K(
|
|
163
|
+
"zen-relative zen-flex zen-shrink-0 zen-cursor-pointer zen-items-center zen-whitespace-nowrap zen-border-0 zen-bg-transparent zen-px-3 zen-text-sm zen-transition-colors",
|
|
164
|
+
"focus-visible:zen-outline-none focus-visible:zen-ring-2 focus-visible:zen-ring-inset focus-visible:zen-ring-zen-ring",
|
|
165
|
+
i ? "zen-font-semibold zen-text-zen-primary" : "zen-text-zen-muted-fg hover:zen-text-zen-foreground"
|
|
166
|
+
),
|
|
167
|
+
children: [
|
|
168
|
+
e.title,
|
|
169
|
+
i ? /* @__PURE__ */ u(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
"aria-hidden": "true",
|
|
173
|
+
className: "zen-absolute zen-inset-x-2 zen-bottom-0 zen-h-0.5 zen-rounded-zen-full zen-bg-zen-primary"
|
|
174
|
+
}
|
|
175
|
+
) : null
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
e.id
|
|
179
|
+
);
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
) : null,
|
|
183
|
+
r.map((e) => /* @__PURE__ */ m(
|
|
184
|
+
"section",
|
|
185
|
+
{
|
|
186
|
+
id: e.id,
|
|
187
|
+
"data-section-id": e.id,
|
|
188
|
+
"aria-labelledby": `${e.id}-title`,
|
|
189
|
+
ref: (n) => {
|
|
190
|
+
n ? b.current.set(e.id, n) : b.current.delete(e.id);
|
|
191
|
+
},
|
|
192
|
+
style: { scrollMarginTop: l },
|
|
193
|
+
className: "zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-zen-section-y",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ u(
|
|
196
|
+
U,
|
|
197
|
+
{
|
|
198
|
+
id: `${e.id}-title`,
|
|
199
|
+
className: "zen-m-0 zen-mb-3 zen-[font-size:var(--zen-object-page-section-title-size)] zen-[line-height:var(--zen-line-height-sm)] zen-font-semibold zen-uppercase zen-tracking-wide zen-text-zen-muted-fg",
|
|
200
|
+
children: e.title
|
|
201
|
+
}
|
|
202
|
+
),
|
|
203
|
+
e.content,
|
|
204
|
+
e.subSections?.map((n) => /* @__PURE__ */ m(
|
|
205
|
+
"section",
|
|
206
|
+
{
|
|
207
|
+
id: n.id,
|
|
208
|
+
"aria-labelledby": `${n.id}-title`,
|
|
209
|
+
className: "zen-mt-4 zen-border-t zen-border-zen-border zen-pt-4 first:zen-mt-0 first:zen-border-t-0 first:zen-pt-0",
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ u(V, { id: `${n.id}-title`, className: "zen-m-0 zen-mb-2 zen-text-sm zen-font-semibold", children: n.title }),
|
|
212
|
+
n.content
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
n.id
|
|
216
|
+
))
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
e.id
|
|
220
|
+
)),
|
|
221
|
+
/* @__PURE__ */ u("div", { "aria-hidden": "true", style: { height: Y } })
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
se.displayName = "ObjectPageLayout";
|
|
231
|
+
export {
|
|
232
|
+
se as ObjectPageLayout
|
|
233
|
+
};
|
|
234
|
+
//# sourceMappingURL=index60.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index60.js","sources":["../src/components/object-page/object-page.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { arrowStep } from \"@algorisys/zen-ui-core\";\nimport { cn } from \"../../lib/cn\";\nimport { useLocale } from \"../locale/locale\";\n\n/**\n * ObjectPageLayout — the object detail page: a title bar that stays, an\n * object header that scrolls away, and a sticky AnchorBar whose links stay in\n * sync with whatever section you are looking at.\n *\n * docs/fiori-gap-analysis.md (Tier 1): \"Object detail page with anchored,\n * scroll-synced sections. `sap.uxap`'s whole reason to exist.\"\n *\n * <ObjectPageLayout\n * title=\"SO-4711\"\n * header={<OrderHeader />}\n * sections={SECTIONS}\n * onSelectedSectionChange={setSection}\n * />\n *\n * `sections` is DATA rather than compound children — the same departure from\n * this library's usual Radix-style composition that Tree and DataTable make, and\n * for the same structural reason (see tree.tsx's header). Two facts force it:\n * the AnchorBar has to render the WHOLE section list before a single section is\n * on screen, and the scroll-spy needs an element per section to observe. With\n * compound children both live only in the DOM, so the bar would be a DOM walk\n * re-run on every render and the observer would be re-attached as the tree\n * changed underneath it. Given the list, the bar is a map over it and the\n * observer is registered once per section.\n *\n * HEIGHT: the root is `zen-h-full` and its container must have a definite\n * height. min-height is a floor, not a ceiling — a container that grows to fit\n * its content leaves the inner scroller nothing to scroll, so it expands too,\n * and the page ends up with two scrollbars and an anchor bar that sticks to\n * nothing. This is the same bug App.css documents at `.app-shell`.\n *\n * SCROLL-SPY: an IntersectionObserver rooted at the CONTENT scroller, not the\n * window. The demo shell owns page scrolling (`.app-content` is the single\n * scroller; the document does not scroll), so a window-rooted observer would\n * never fire — and offset arithmetic against `window.scrollY` would read 0\n * forever. The band it watches is a strip across the top of the scroller,\n * starting just below the sticky bar; the first section (in document order) to\n * reach it is the one being read.\n *\n * IDS: a section's `id` is its identity in the API and its id in the DOM, so it\n * is what a URL fragment or an external link can point at — and so it must be\n * unique in the document. One object page per screen is the assumption.\n *\n * ARIA: the bar is a `nav` landmark of buttons carrying `aria-current`, not a\n * `tablist` of `role=\"tab\"`. It behaves like a tablist — roving tabindex,\n * arrows, Home/End — and Fiori's own anchor bar looks like one, but `role=\"tab\"`\n * promises `role=\"tabpanel\"` siblings of which exactly one is shown. Here every\n * section is on screen at once and the bar moves the viewport rather than\n * swapping panels, so `aria-selected` would be describing a widget that isn't\n * there. `aria-current` is the attribute for \"this is the one you're on\".\n */\n\nexport interface ObjectPageSubSection {\n id: string;\n title: React.ReactNode;\n content: React.ReactNode;\n}\n\nexport interface ObjectPageSection {\n id: string;\n title: React.ReactNode;\n subSections?: ObjectPageSubSection[];\n content?: React.ReactNode;\n}\n\nexport interface ObjectPageLayoutProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n sections: ObjectPageSection[];\n /** Controlled active section. Setting it scrolls there. */\n selectedSectionId?: string;\n defaultSelectedSectionId?: string;\n /** Fires for both a click on an anchor and a scroll that changes the section. */\n onSelectedSectionChange?: (id: string) => void;\n /** The object header — scrolls away under the anchor bar. */\n header?: React.ReactNode;\n /** Stays put above the scroller. */\n title?: React.ReactNode;\n showAnchorBar?: boolean;\n /** Accessible name for the anchor bar's nav landmark. */\n anchorBarLabel?: string;\n /**\n * The title's heading level. Sections sit one level below it and\n * sub-sections two below, so the outline never skips. Default 2 (h2 / h3 /\n * h4). Pass 1 when the object page IS the page and nothing above it carries\n * the h1.\n */\n headingLevel?: 1 | 2 | 3 | 4;\n}\n\n/** h1–h6 for a level, clamped: a sub-section under an h4 title is an h6. */\nconst headingTag = (level: number) =>\n `h${Math.min(Math.max(level, 1), 6)}` as \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n\n/**\n * Scroll the content scroller to a section, and nothing else. scrollIntoView\n * also scrolls every scrollable ancestor, and a box with overflow: hidden is\n * still scrollable by script: in an app whose shell clips its overflow, a\n * section jump scrolled the whole shell (header and all) off screen. The\n * target honours the section's scroll-margin-top, as scrollIntoView did, so\n * it still lands just under the sticky bar.\n */\nconst scrollWithin = (root: HTMLElement, el: HTMLElement, behavior: ScrollBehavior) => {\n const margin = parseFloat(getComputedStyle(el).scrollMarginTop) || 0;\n const top = el.getBoundingClientRect().top - root.getBoundingClientRect().top + root.scrollTop - margin;\n root.scrollTo({ top, behavior });\n};\n\n/** A jump the user asked for should not also be an animation they didn't. */\nconst reducedMotion = () =>\n typeof window !== \"undefined\" &&\n typeof window.matchMedia === \"function\" &&\n window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\nexport const ObjectPageLayout = React.forwardRef<HTMLDivElement, ObjectPageLayoutProps>(\n (\n {\n sections,\n selectedSectionId,\n defaultSelectedSectionId,\n onSelectedSectionChange,\n header,\n title,\n showAnchorBar = true,\n anchorBarLabel: anchorBarLabelProp,\n headingLevel = 2,\n className,\n children,\n ...props\n },\n ref,\n ) => {\n const loc = useLocale();\n const anchorBarLabel = anchorBarLabelProp ?? loc.t(\"objectPage.objectPageSections\");\n const TitleTag = headingTag(headingLevel);\n const SectionTag = headingTag(headingLevel + 1);\n const SubTag = headingTag(headingLevel + 2);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n const barRef = React.useRef<HTMLElement>(null);\n const sectionRefs = React.useRef(new Map<string, HTMLElement>());\n\n const firstId = sections[0]?.id;\n const [internalSelected, setInternalSelected] = React.useState<string | undefined>(\n defaultSelectedSectionId ?? firstId,\n );\n const activeId = selectedSectionId ?? internalSelected;\n\n // What the spy last reported. Also the guard that keeps a controlled\n // `selectedSectionId` from scrolling back to where the user just scrolled:\n // spy says B -> parent echoes B -> the effect below must not \"obey\" it.\n const spyIdRef = React.useRef<string | undefined>(\n selectedSectionId ?? defaultSelectedSectionId ?? firstId,\n );\n const suppressRef = React.useRef(false);\n /** Set by the observer effect; replays a fresh entry for every section. */\n const recheckRef = React.useRef<(() => void) | null>(null);\n\n // Read through a ref so the observer, which is created once per section\n // list, never calls a stale handler.\n const onChangeRef = React.useRef(onSelectedSectionChange);\n React.useEffect(() => {\n onChangeRef.current = onSelectedSectionChange;\n });\n\n const commit = React.useCallback((id: string) => {\n setInternalSelected(id);\n onChangeRef.current?.(id);\n }, []);\n\n // The bar's height is load-bearing twice over: the spy's band starts below\n // it, and `scroll-margin-top` keeps a clicked section from landing beneath\n // it. Measured rather than hardcoded from the height utility, so the two\n // cannot drift.\n const [barHeight, setBarHeight] = React.useState(0);\n React.useLayoutEffect(() => {\n const el = barRef.current;\n if (!el) {\n setBarHeight(0);\n return;\n }\n setBarHeight(el.offsetHeight);\n if (typeof ResizeObserver === \"undefined\") return;\n const ro = new ResizeObserver(() => setBarHeight(el.offsetHeight));\n ro.observe(el);\n return () => ro.disconnect();\n }, [showAnchorBar]);\n\n // Trailing space, so the LAST section can still scroll up to the band. Without\n // it the final anchor is unreachable — the scroller runs out of travel while\n // that section is still halfway down the viewport, so clicking its anchor\n // moves nothing and the spy never marks it current. sap.uxap pads the same\n // gap for the same reason. No feedback loop: the spacer changes the content\n // height, and neither term below reads it.\n const [tailSpace, setTailSpace] = React.useState(0);\n const lastId = sections[sections.length - 1]?.id;\n React.useLayoutEffect(() => {\n const root = scrollRef.current;\n const last = lastId ? sectionRefs.current.get(lastId) : undefined;\n if (!root || !last) return;\n const recompute = () =>\n setTailSpace(Math.max(0, root.clientHeight - last.offsetHeight - barHeight));\n recompute();\n if (typeof ResizeObserver === \"undefined\") return;\n const ro = new ResizeObserver(recompute);\n ro.observe(root);\n ro.observe(last);\n return () => ro.disconnect();\n }, [lastId, barHeight, sections]);\n\n React.useEffect(() => {\n const root = scrollRef.current;\n if (!root || typeof IntersectionObserver === \"undefined\") return;\n const els = sections\n .map((s) => sectionRefs.current.get(s.id))\n .filter((el): el is HTMLElement => !!el);\n if (!els.length) return;\n\n // Which sections still reach below the anchor line — the line being where\n // the sticky bar ends. A section drops out of this set exactly when it has\n // scrolled entirely above the line, so the FIRST section still in it (in\n // document order) is the one you are inside, and the handover happens at\n // precisely the moment the previous section's last pixel leaves.\n //\n // The observed region is everything from the line to the bottom of the\n // scroller, deliberately, rather than a thin band across the top. A band\n // fails twice. It answers nothing at the extremes, where no section is in\n // it at all — at rest the header fills it, at the bottom the tail spacer\n // does — so the bar keeps whatever it last said. And an observer only\n // fires when the intersection STATE changes, so a jump bigger than the\n // band (a scrollbar drag, a flick) crosses it entirely between frames,\n // changes nothing, and fires nothing: the bar silently stops updating.\n // A region reaching the bottom of the scroller has neither failure — every\n // section is either in it or above it, and any scroll that matters flips\n // that bit.\n const below = new Set<string>();\n\n const io = new IntersectionObserver(\n (entries) => {\n for (const e of entries) {\n const id = (e.target as HTMLElement).dataset.sectionId;\n if (!id) continue;\n if (e.isIntersecting) below.add(id);\n else below.delete(id);\n }\n // A click is already scrolling somewhere; the sections it flies past\n // are not what the reader is looking at. Membership is still tracked\n // above — only the decision waits.\n if (suppressRef.current) return;\n const next = sections.find((s) => below.has(s.id))?.id;\n if (!next || next === spyIdRef.current) return;\n spyIdRef.current = next;\n commit(next);\n },\n {\n root,\n // The extra pixel is the difference between \"at the bottom, the last\n // section is current\" and \"at the bottom, the second-to-last section\n // is current by a rounding error\": at max scroll the last section's\n // top lands exactly on the line, which leaves its predecessor's bottom\n // edge exactly there too. Nudging the line down a pixel decides it.\n rootMargin: `-${barHeight + 1}px 0px 0px 0px`,\n threshold: 0,\n },\n );\n els.forEach((el) => io.observe(el));\n // Re-observing replays a fresh entry for every section. A programmatic\n // scroll needs that: the spy is muted while it runs, and the callbacks that\n // arrive during the mute are dropped, so without a replay the rects that\n // decided `passed` are the ones from before the jump.\n recheckRef.current = () => {\n els.forEach((el) => {\n io.unobserve(el);\n io.observe(el);\n });\n };\n return () => {\n recheckRef.current = null;\n io.disconnect();\n };\n }, [sections, barHeight, commit]);\n\n /**\n * Scroll a section to the anchor line and make it current.\n *\n * `notify` is off for the two cases the caller already knows about — the\n * initial selection, and a controlled `selectedSectionId` the parent just\n * set — so `onSelectedSectionChange` only ever reports what the component\n * decided: a click, or a scroll.\n */\n const goToSection = React.useCallback(\n (id: string, { animate, notify }: { animate: boolean; notify: boolean }) => {\n const el = sectionRefs.current.get(id);\n const root = scrollRef.current;\n if (!el || !root) return;\n\n spyIdRef.current = id;\n if (notify) commit(id);\n else setInternalSelected(id);\n\n // Mute the spy until the scroll settles. Otherwise the bar strobes\n // through every section the animation passes over and the last one to\n // report wins — which is not the one that was clicked.\n suppressRef.current = true;\n let timer = 0;\n const release = () => {\n root.removeEventListener(\"scroll\", onScroll);\n window.clearTimeout(timer);\n suppressRef.current = false;\n // Re-read where everything ended up. The callbacks that fired during\n // the jump were dropped by the mute above.\n recheckRef.current?.();\n };\n const onScroll = () => {\n window.clearTimeout(timer);\n // `scrollend` says exactly this, but Safari doesn't implement it.\n // 120ms of quiet is the portable equivalent.\n timer = window.setTimeout(release, 120);\n };\n root.addEventListener(\"scroll\", onScroll);\n // Nothing to scroll — already there, or the scroller has no travel left.\n // Release rather than stay muted forever.\n timer = window.setTimeout(release, 1000);\n\n scrollWithin(root, el, animate && !reducedMotion() ? \"smooth\" : \"auto\");\n },\n [commit],\n );\n\n // The initial selection is a scroll position, not just a highlight: an\n // anchor marked current for a section that is not on screen is a lie. Waits\n // for barHeight, because scroll-margin-top depends on it and lands the\n // section under the bar if it runs first.\n const didInit = React.useRef(false);\n React.useEffect(() => {\n if (didInit.current) return;\n if (showAnchorBar && barHeight === 0) return;\n didInit.current = true;\n const id = selectedSectionId ?? defaultSelectedSectionId;\n if (!id || id === firstId) return;\n goToSection(id, { animate: false, notify: false });\n }, [barHeight, showAnchorBar, selectedSectionId, defaultSelectedSectionId, firstId, goToSection]);\n\n // A controlled selectedSectionId is a command, not a mirror.\n React.useEffect(() => {\n if (selectedSectionId === undefined) return;\n if (selectedSectionId === spyIdRef.current) return;\n goToSection(selectedSectionId, { animate: true, notify: false });\n }, [selectedSectionId, goToSection]);\n\n // Roving tabindex: the bar is one tab stop. Manual activation — arrows move\n // focus, Enter/Space (the button's own default) does the navigating.\n const [focusedAnchor, setFocusedAnchor] = React.useState<string | null>(null);\n const tabbableAnchor = focusedAnchor ?? activeId ?? firstId;\n const anchorRefs = React.useRef(new Map<string, HTMLButtonElement>());\n const focusAnchor = (id: string) => {\n setFocusedAnchor(id);\n anchorRefs.current.get(id)?.focus();\n };\n\n const onAnchorKeyDown = (e: React.KeyboardEvent, index: number) => {\n const last = sections.length - 1;\n const step = arrowStep(e.key, e.currentTarget as Element);\n if (step === 1) {\n e.preventDefault();\n focusAnchor(sections[index === last ? 0 : index + 1].id);\n } else if (step === -1) {\n e.preventDefault();\n focusAnchor(sections[index === 0 ? last : index - 1].id);\n } else if (e.key === \"Home\") {\n e.preventDefault();\n focusAnchor(sections[0].id);\n } else if (e.key === \"End\") {\n e.preventDefault();\n focusAnchor(sections[last].id);\n }\n };\n\n return (\n <div\n ref={ref}\n className={cn(\n \"zen-flex zen-h-full zen-flex-col zen-overflow-hidden zen-bg-zen-background zen-text-zen-foreground\",\n className,\n )}\n {...props}\n >\n {/* `children` are the title bar's trailing content — actions, a status.\n They are not sections, and they do not scroll away. */}\n {title || children ? (\n <div className=\"zen-flex zen-shrink-0 zen-items-center zen-gap-3 zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-zen-bar-y\">\n {title ? (\n <TitleTag className=\"zen-m-0 zen-min-w-0 zen-truncate zen-text-base zen-font-semibold\">\n {title}\n </TitleTag>\n ) : null}\n {children ? (\n <div className=\"zen-ml-auto zen-flex zen-shrink-0 zen-items-center zen-gap-2\">\n {children}\n </div>\n ) : null}\n </div>\n ) : null}\n\n {/* scroll-padding-top: whatever the browser scrolls into view in here —\n a field reached with Tab, a grid cell, scrollIntoView — lands below\n the sticky anchor bar instead of under it.\n relative: the scroller is the containing block for anything placed\n absolutely inside it. Without it a visually-hidden control (position\n absolute, no offsets) took its containing block from outside the\n page, so overflow neither clipped nor scrolled it, and it stretched\n the app's own scroll. */}\n <div\n ref={scrollRef}\n className=\"zen-relative zen-min-h-0 zen-flex-1 zen-overflow-y-auto\"\n style={{ scrollPaddingTop: barHeight }}\n >\n {header ? (\n <div className=\"zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-4\">{header}</div>\n ) : null}\n\n {showAnchorBar ? (\n <nav\n ref={barRef}\n aria-label={anchorBarLabel}\n className=\"zen-sticky zen-top-0 zen-z-10 zen-flex zen-h-zen-anchor-bar zen-items-stretch zen-gap-1 zen-overflow-x-auto zen-border-b zen-border-zen-border zen-bg-zen-background zen-px-4\"\n >\n {sections.map((s, i) => {\n const isActive = activeId === s.id;\n return (\n <button\n key={s.id}\n ref={(el) => {\n if (el) anchorRefs.current.set(s.id, el);\n else anchorRefs.current.delete(s.id);\n }}\n type=\"button\"\n data-anchor-id={s.id}\n aria-current={isActive ? \"true\" : undefined}\n tabIndex={tabbableAnchor === s.id ? 0 : -1}\n onFocus={() => setFocusedAnchor(s.id)}\n onKeyDown={(e) => onAnchorKeyDown(e, i)}\n onClick={() => goToSection(s.id, { animate: true, notify: true })}\n className={cn(\n \"zen-relative zen-flex zen-shrink-0 zen-cursor-pointer zen-items-center zen-whitespace-nowrap zen-border-0 zen-bg-transparent zen-px-3 zen-text-sm zen-transition-colors\",\n \"focus-visible:zen-outline-none focus-visible:zen-ring-2 focus-visible:zen-ring-inset focus-visible:zen-ring-zen-ring\",\n isActive\n ? \"zen-font-semibold zen-text-zen-primary\"\n : \"zen-text-zen-muted-fg hover:zen-text-zen-foreground\",\n )}\n >\n {s.title}\n {isActive ? (\n <span\n aria-hidden=\"true\"\n className=\"zen-absolute zen-inset-x-2 zen-bottom-0 zen-h-0.5 zen-rounded-zen-full zen-bg-zen-primary\"\n />\n ) : null}\n </button>\n );\n })}\n </nav>\n ) : null}\n\n {sections.map((s) => (\n <section\n key={s.id}\n id={s.id}\n data-section-id={s.id}\n aria-labelledby={`${s.id}-title`}\n ref={(el) => {\n if (el) sectionRefs.current.set(s.id, el);\n else sectionRefs.current.delete(s.id);\n }}\n // Keeps a clicked section clear of the sticky bar it would\n // otherwise scroll underneath. Inline because the bar is measured,\n // not fixed by a class.\n style={{ scrollMarginTop: barHeight }}\n className=\"zen-border-b zen-border-zen-border zen-px-zen-section-x zen-py-zen-section-y\"\n >\n <SectionTag\n id={`${s.id}-title`}\n className=\"zen-m-0 zen-mb-3 zen-[font-size:var(--zen-object-page-section-title-size)] zen-[line-height:var(--zen-line-height-sm)] zen-font-semibold zen-uppercase zen-tracking-wide zen-text-zen-muted-fg\"\n >\n {s.title}\n </SectionTag>\n {s.content}\n {s.subSections?.map((sub) => (\n <section\n key={sub.id}\n id={sub.id}\n aria-labelledby={`${sub.id}-title`}\n className=\"zen-mt-4 zen-border-t zen-border-zen-border zen-pt-4 first:zen-mt-0 first:zen-border-t-0 first:zen-pt-0\"\n >\n <SubTag id={`${sub.id}-title`} className=\"zen-m-0 zen-mb-2 zen-text-sm zen-font-semibold\">\n {sub.title}\n </SubTag>\n {sub.content}\n </section>\n ))}\n </section>\n ))}\n\n <div aria-hidden=\"true\" style={{ height: tailSpace }} />\n </div>\n </div>\n );\n },\n);\nObjectPageLayout.displayName = \"ObjectPageLayout\";\n"],"names":["headingTag","level","scrollWithin","root","el","behavior","margin","top","reducedMotion","ObjectPageLayout","React","sections","selectedSectionId","defaultSelectedSectionId","onSelectedSectionChange","header","title","showAnchorBar","anchorBarLabelProp","headingLevel","className","children","props","ref","loc","useLocale","anchorBarLabel","TitleTag","SectionTag","SubTag","scrollRef","barRef","sectionRefs","firstId","internalSelected","setInternalSelected","activeId","spyIdRef","suppressRef","recheckRef","onChangeRef","commit","id","barHeight","setBarHeight","ro","tailSpace","setTailSpace","lastId","last","recompute","els","below","io","entries","e","next","s","goToSection","animate","notify","timer","release","onScroll","didInit","focusedAnchor","setFocusedAnchor","tabbableAnchor","anchorRefs","focusAnchor","onAnchorKeyDown","index","step","arrowStep","jsxs","cn","jsx","i","isActive","sub"],"mappings":";;;;;;;;AA+FA,MAAMA,IAAa,CAACC,MAClB,IAAI,KAAK,IAAI,KAAK,IAAIA,GAAO,CAAC,GAAG,CAAC,CAAC,IAU/BC,KAAe,CAACC,GAAmBC,GAAiBC,MAA6B;AACrF,QAAMC,IAAS,WAAW,iBAAiBF,CAAE,EAAE,eAAe,KAAK,GAC7DG,IAAMH,EAAG,sBAAA,EAAwB,MAAMD,EAAK,wBAAwB,MAAMA,EAAK,YAAYG;AACjG,EAAAH,EAAK,SAAS,EAAE,KAAAI,GAAK,UAAAF,EAAA,CAAU;AACjC,GAGMG,KAAgB,MACpB,OAAO,SAAW,OAClB,OAAO,OAAO,cAAe,cAC7B,OAAO,WAAW,kCAAkC,EAAE,SAE3CC,KAAmBC,EAAM;AAAA,EACpC,CACE;AAAA,IACE,UAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,yBAA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E,EAAE;AAAA,0BACX,WAAU;AAAA,0BAET,UAAAA,EAAE;AAAA,wBAAA;AAAA,sBAAA;AAAA,sBAEJA,EAAE;AAAA,sBACFA,EAAE,aAAa,IAAI,CAACsB,MACnB,gBAAAL;AAAA,wBAAC;AAAA,wBAAA;AAAA,0BAEC,IAAIK,EAAI;AAAA,0BACR,mBAAiB,GAAGA,EAAI,EAAE;AAAA,0BAC1B,WAAU;AAAA,0BAEV,UAAA;AAAA,4BAAA,gBAAAH,EAAC/C,GAAA,EAAO,IAAI,GAAGkD,EAAI,EAAE,UAAU,WAAU,kDACtC,UAAAA,EAAI,MAAA,CACP;AAAA,4BACCA,EAAI;AAAA,0BAAA;AAAA,wBAAA;AAAA,wBARAA,EAAI;AAAA,sBAAA,CAUZ;AAAA,oBAAA;AAAA,kBAAA;AAAA,kBAjCItB,EAAE;AAAA,gBAAA,CAmCV;AAAA,gBAED,gBAAAmB,EAAC,SAAI,eAAY,QAAO,OAAO,EAAE,QAAQ9B,IAAU,CAAG;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACxD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACArC,GAAiB,cAAc;"}
|
package/dist/index61.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as c, jsxs as $ } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as D } from "./index199.js";
|
|
4
|
+
import { arrowStep as C } from "./index207.js";
|
|
5
|
+
import "./index208.js";
|
|
6
|
+
import { treeRowDensityClass as q } from "./index198.js";
|
|
7
|
+
import "./index28.js";
|
|
8
|
+
import "./index110.js";
|
|
9
|
+
import { Icon as N } from "./index63.js";
|
|
10
|
+
function k(f, u, p = 1, h = null) {
|
|
11
|
+
const d = [];
|
|
12
|
+
return f.forEach((a, v) => {
|
|
13
|
+
const m = !!a.children?.length;
|
|
14
|
+
d.push({ node: a, level: p, parentId: h, hasChildren: m, posInSet: v + 1, setSize: f.length }), m && u.has(a.id) && d.push(...k(a.children, u, p + 1, a.id));
|
|
15
|
+
}), d;
|
|
16
|
+
}
|
|
17
|
+
const B = o.forwardRef(
|
|
18
|
+
({ items: f, expanded: u, defaultExpanded: p = [], onExpandedChange: h, selected: d, defaultSelected: a = null, onSelectedChange: v, itemClassName: m, density: E, className: R, ...T }, M) => {
|
|
19
|
+
const [j, A] = o.useState(p), [F, K] = o.useState(a), z = u ?? j, x = d !== void 0 ? d : F, l = o.useMemo(() => new Set(z), [z]), i = o.useMemo(() => k(f, l), [f, l]), [H, S] = o.useState(null), L = H ?? x ?? i[0]?.node.id ?? null, g = o.useRef(/* @__PURE__ */ new Map()), O = (e) => {
|
|
20
|
+
u === void 0 && A(e), h?.(e);
|
|
21
|
+
}, I = (e, n) => {
|
|
22
|
+
const s = l.has(e), t = n ?? !s;
|
|
23
|
+
t !== s && O(t ? [...z, e] : z.filter((b) => b !== e));
|
|
24
|
+
}, y = (e) => {
|
|
25
|
+
d === void 0 && K(e), v?.(e);
|
|
26
|
+
}, r = (e) => {
|
|
27
|
+
S(e), g.current.get(e)?.focus();
|
|
28
|
+
}, U = (e, n) => {
|
|
29
|
+
const s = i.findIndex((b) => b.node.id === n.node.id), t = e.key;
|
|
30
|
+
t === "ArrowDown" ? (e.preventDefault(), i[s + 1] && r(i[s + 1].node.id)) : t === "ArrowUp" ? (e.preventDefault(), i[s - 1] && r(i[s - 1].node.id)) : C(t, e.currentTarget) === 1 ? (e.preventDefault(), n.hasChildren && !l.has(n.node.id) ? I(n.node.id, !0) : n.hasChildren && i[s + 1] && r(i[s + 1].node.id)) : C(t, e.currentTarget) === -1 ? (e.preventDefault(), n.hasChildren && l.has(n.node.id) ? I(n.node.id, !1) : n.parentId && r(n.parentId)) : t === "Home" ? (e.preventDefault(), i[0] && r(i[0].node.id)) : t === "End" ? (e.preventDefault(), i.at(-1) && r(i.at(-1).node.id)) : (t === "Enter" || t === " ") && (e.preventDefault(), n.node.disabled || y(n.node.id));
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ c(
|
|
33
|
+
"ul",
|
|
34
|
+
{
|
|
35
|
+
ref: M,
|
|
36
|
+
role: "tree",
|
|
37
|
+
className: D("zen-m-0 zen-list-none zen-p-0 zen-text-sm", R),
|
|
38
|
+
...T,
|
|
39
|
+
children: i.map((e) => {
|
|
40
|
+
const n = l.has(e.node.id), s = x === e.node.id;
|
|
41
|
+
return /* @__PURE__ */ c(
|
|
42
|
+
"li",
|
|
43
|
+
{
|
|
44
|
+
role: "treeitem",
|
|
45
|
+
"aria-expanded": e.hasChildren ? n : void 0,
|
|
46
|
+
"aria-selected": s,
|
|
47
|
+
"aria-level": e.level,
|
|
48
|
+
"aria-posinset": e.posInSet,
|
|
49
|
+
"aria-setsize": e.setSize,
|
|
50
|
+
"aria-disabled": e.node.disabled || void 0,
|
|
51
|
+
className: "zen-m-0",
|
|
52
|
+
children: /* @__PURE__ */ $(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: (t) => {
|
|
56
|
+
t ? g.current.set(e.node.id, t) : g.current.delete(e.node.id);
|
|
57
|
+
},
|
|
58
|
+
tabIndex: L === e.node.id ? 0 : -1,
|
|
59
|
+
onKeyDown: (t) => U(t, e),
|
|
60
|
+
onFocus: () => S(e.node.id),
|
|
61
|
+
onClick: () => {
|
|
62
|
+
e.node.disabled || (e.hasChildren && I(e.node.id), y(e.node.id));
|
|
63
|
+
},
|
|
64
|
+
style: { paddingLeft: `calc(${e.level - 1} * 1rem + 0.25rem)` },
|
|
65
|
+
className: D(
|
|
66
|
+
"zen-flex zen-cursor-pointer zen-items-center zen-gap-1.5 zen-rounded-zen-sm zen-py-1 zen-pr-2",
|
|
67
|
+
"focus-visible:zen-outline-none focus-visible:zen-ring-2 focus-visible:zen-ring-zen-ring",
|
|
68
|
+
"hover:zen-bg-zen-muted",
|
|
69
|
+
s && "zen-bg-zen-primary-soft zen-text-zen-primary-soft-fg zen-font-medium",
|
|
70
|
+
e.node.disabled && "zen-cursor-not-allowed zen-opacity-50",
|
|
71
|
+
q[E ?? "comfortable"],
|
|
72
|
+
m?.(e.node)
|
|
73
|
+
),
|
|
74
|
+
children: [
|
|
75
|
+
e.hasChildren ? /* @__PURE__ */ c(
|
|
76
|
+
N,
|
|
77
|
+
{
|
|
78
|
+
name: n ? "chevron-down" : "chevron-right",
|
|
79
|
+
size: 14,
|
|
80
|
+
className: "zen-shrink-0 zen-text-zen-muted-fg"
|
|
81
|
+
}
|
|
82
|
+
) : (
|
|
83
|
+
// Keep leaves aligned with their expandable siblings.
|
|
84
|
+
/* @__PURE__ */ c("span", { className: "zen-inline-block zen-w-3.5 zen-shrink-0" })
|
|
85
|
+
),
|
|
86
|
+
e.node.icon ? /* @__PURE__ */ c(N, { name: e.node.icon, size: 14, className: "zen-shrink-0 zen-text-zen-muted-fg" }) : null,
|
|
87
|
+
/* @__PURE__ */ c("span", { className: "zen-truncate", children: e.node.label })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
},
|
|
92
|
+
e.node.id
|
|
93
|
+
);
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
B.displayName = "Tree";
|
|
100
|
+
export {
|
|
101
|
+
B as Tree
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=index61.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index61.js","sources":["../src/components/tree/tree.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { arrowStep } from \"@algorisys/zen-ui-core\";\nimport type { Density } from \"@algorisys/zen-ui-core/density\";\nimport { treeRowDensityClass } from \"@algorisys/zen-ui-core/variants\";\nimport { cn } from \"../../lib/cn\";\nimport { Icon, type IconName } from \"../icon/icon\";\n\n/**\n * Tree — hierarchical, expandable list.\n *\n * A genuine absence rather than merely a Fiori gap: zen-ui had no tree of any\n * kind (docs/fiori-gap-analysis.md, Tier 1).\n *\n * Data-driven (`items`) rather than compound, which is the one place this\n * library departs from its usual Radix-style composition — deliberately.\n * WAI-ARIA tree navigation is defined over the *flattened, visible* node list\n * (ArrowDown goes to the next visible row, which may be a nephew several levels\n * up), so the keyboard model needs the whole tree anyway. Compound children\n * would mean rebuilding that list from the DOM on every keystroke. DataTable\n * makes the same trade for the same reason.\n *\n * <Tree items={nodes} defaultExpanded={[\"root\"]} onSelectedChange={setSel} />\n *\n * Implements the ARIA tree pattern: roving tabindex (one tab stop), Arrow\n * up/down over visible rows, Right to expand-or-descend, Left to\n * collapse-or-ascend, Home/End, Enter/Space to select.\n */\n\nexport interface TreeNode {\n id: string;\n label: React.ReactNode;\n icon?: IconName;\n children?: TreeNode[];\n disabled?: boolean;\n}\n\nexport interface TreeProps extends Omit<React.HTMLAttributes<HTMLUListElement>, \"onSelect\"> {\n items: TreeNode[];\n /** Controlled expanded ids. */\n expanded?: string[];\n defaultExpanded?: string[];\n onExpandedChange?: (ids: string[]) => void;\n /** Controlled selected id. */\n selected?: string | null;\n defaultSelected?: string | null;\n onSelectedChange?: (id: string) => void;\n /** Classes for one node's row, after its own (so a caller's padding or colour wins). */\n itemClassName?: (node: TreeNode) => string | undefined | false | null;\n /**\n * How much room a row takes: \"compact\", \"comfortable\" (the default, and the\n * size it always was) or \"touch\" (48px targets, for shop-floor tablets).\n * Opt-in: it does not follow data-density, so setting that on a page moves\n * nothing here. An explicit size prop wins over it.\n */\n density?: Density;\n /** Accessible name — a tree must have one. */\n \"aria-label\"?: string;\n}\n\n/** One visible row: the node plus where it sits. */\ntype FlatNode = {\n node: TreeNode;\n level: number;\n parentId: string | null;\n hasChildren: boolean;\n /** 1-based index among its siblings, and how many siblings there are. */\n posInSet: number;\n setSize: number;\n};\n\n/**\n * Depth-first walk of what is currently on screen — the ARIA nav order.\n *\n * The DOM is flat (no nested role=\"group\"), which ARIA permits, but only if\n * each item carries aria-level AND aria-posinset/aria-setsize: with no nesting\n * to infer from, those are the only way assistive tech can say \"3 of 5\". They\n * are computed here rather than at render, where the sibling count is no longer\n * in scope.\n */\nfunction flatten(items: TreeNode[], expandedSet: Set<string>, level = 1, parentId: string | null = null): FlatNode[] {\n const out: FlatNode[] = [];\n items.forEach((node, i) => {\n const hasChildren = !!node.children?.length;\n out.push({ node, level, parentId, hasChildren, posInSet: i + 1, setSize: items.length });\n if (hasChildren && expandedSet.has(node.id)) {\n out.push(...flatten(node.children!, expandedSet, level + 1, node.id));\n }\n });\n return out;\n}\n\nexport const Tree = React.forwardRef<HTMLUListElement, TreeProps>(\n (\n { items, expanded, defaultExpanded = [], onExpandedChange, selected, defaultSelected = null, onSelectedChange, itemClassName, density, className, ...props },\n ref,\n ) => {\n const [internalExpanded, setInternalExpanded] = React.useState<string[]>(defaultExpanded);\n const [internalSelected, setInternalSelected] = React.useState<string | null>(defaultSelected);\n const expandedIds = expanded ?? internalExpanded;\n const selectedId = selected !== undefined ? selected : internalSelected;\n\n const expandedSet = React.useMemo(() => new Set(expandedIds), [expandedIds]);\n const rows = React.useMemo(() => flatten(items, expandedSet), [items, expandedSet]);\n\n // Roving tabindex: exactly one row is tabbable. Falls back to the first row\n // when nothing is focused yet, so Tab always lands somewhere sensible.\n const [focusedId, setFocusedId] = React.useState<string | null>(null);\n const activeId = focusedId ?? selectedId ?? rows[0]?.node.id ?? null;\n const rowRefs = React.useRef(new Map<string, HTMLDivElement>());\n\n const setExpandedIds = (next: string[]) => {\n if (expanded === undefined) setInternalExpanded(next);\n onExpandedChange?.(next);\n };\n const toggle = (id: string, open?: boolean) => {\n const isOpen = expandedSet.has(id);\n const want = open ?? !isOpen;\n if (want === isOpen) return;\n setExpandedIds(want ? [...expandedIds, id] : expandedIds.filter((x) => x !== id));\n };\n const select = (id: string) => {\n if (selected === undefined) setInternalSelected(id);\n onSelectedChange?.(id);\n };\n const focus = (id: string) => {\n setFocusedId(id);\n rowRefs.current.get(id)?.focus();\n };\n\n const onKeyDown = (e: React.KeyboardEvent, row: FlatNode) => {\n const i = rows.findIndex((r) => r.node.id === row.node.id);\n const key = e.key;\n if (key === \"ArrowDown\") {\n e.preventDefault();\n if (rows[i + 1]) focus(rows[i + 1].node.id);\n } else if (key === \"ArrowUp\") {\n e.preventDefault();\n if (rows[i - 1]) focus(rows[i - 1].node.id);\n } else if (arrowStep(key, e.currentTarget as Element) === 1) {\n e.preventDefault();\n // Closed -> open; already open -> step into the first child.\n // \"Into\" is ArrowLeft in RTL — the standard tree behaviour there.\n if (row.hasChildren && !expandedSet.has(row.node.id)) toggle(row.node.id, true);\n else if (row.hasChildren && rows[i + 1]) focus(rows[i + 1].node.id);\n } else if (arrowStep(key, e.currentTarget as Element) === -1) {\n e.preventDefault();\n // Open -> close; already closed -> step out to the parent.\n if (row.hasChildren && expandedSet.has(row.node.id)) toggle(row.node.id, false);\n else if (row.parentId) focus(row.parentId);\n } else if (key === \"Home\") {\n e.preventDefault();\n if (rows[0]) focus(rows[0].node.id);\n } else if (key === \"End\") {\n e.preventDefault();\n if (rows.at(-1)) focus(rows.at(-1)!.node.id);\n } else if (key === \"Enter\" || key === \" \") {\n e.preventDefault();\n if (!row.node.disabled) select(row.node.id);\n }\n };\n\n return (\n <ul\n ref={ref}\n role=\"tree\"\n className={cn(\"zen-m-0 zen-list-none zen-p-0 zen-text-sm\", className)}\n {...props}\n >\n {rows.map((row) => {\n const isExpanded = expandedSet.has(row.node.id);\n const isSelected = selectedId === row.node.id;\n return (\n <li\n key={row.node.id}\n role=\"treeitem\"\n aria-expanded={row.hasChildren ? isExpanded : undefined}\n aria-selected={isSelected}\n aria-level={row.level}\n aria-posinset={row.posInSet}\n aria-setsize={row.setSize}\n aria-disabled={row.node.disabled || undefined}\n className=\"zen-m-0\"\n >\n <div\n ref={(el) => {\n if (el) rowRefs.current.set(row.node.id, el);\n else rowRefs.current.delete(row.node.id);\n }}\n tabIndex={activeId === row.node.id ? 0 : -1}\n onKeyDown={(e) => onKeyDown(e, row)}\n onFocus={() => setFocusedId(row.node.id)}\n onClick={() => {\n if (row.node.disabled) return;\n if (row.hasChildren) toggle(row.node.id);\n select(row.node.id);\n }}\n // Indent by level. An inline style, not a utility: the depth is\n // unbounded, so no finite class set can express it.\n style={{ paddingLeft: `calc(${row.level - 1} * 1rem + 0.25rem)` }}\n className={cn(\n \"zen-flex zen-cursor-pointer zen-items-center zen-gap-1.5 zen-rounded-zen-sm zen-py-1 zen-pr-2\",\n \"focus-visible:zen-outline-none focus-visible:zen-ring-2 focus-visible:zen-ring-zen-ring\",\n \"hover:zen-bg-zen-muted\",\n isSelected && \"zen-bg-zen-primary-soft zen-text-zen-primary-soft-fg zen-font-medium\",\n row.node.disabled && \"zen-cursor-not-allowed zen-opacity-50\",\n treeRowDensityClass[density ?? \"comfortable\"],\n itemClassName?.(row.node),\n )}\n >\n {row.hasChildren ? (\n <Icon\n name={isExpanded ? \"chevron-down\" : \"chevron-right\"}\n size={14}\n className=\"zen-shrink-0 zen-text-zen-muted-fg\"\n />\n ) : (\n // Keep leaves aligned with their expandable siblings.\n <span className=\"zen-inline-block zen-w-3.5 zen-shrink-0\" />\n )}\n {row.node.icon ? (\n <Icon name={row.node.icon} size={14} className=\"zen-shrink-0 zen-text-zen-muted-fg\" />\n ) : null}\n <span className=\"zen-truncate\">{row.node.label}</span>\n </div>\n </li>\n );\n })}\n </ul>\n );\n },\n);\nTree.displayName = \"Tree\";\n"],"names":["flatten","items","expandedSet","level","parentId","out","node","i","hasChildren","Tree","React","expanded","defaultExpanded","onExpandedChange","selected","defaultSelected","onSelectedChange","itemClassName","density","className","props","ref","internalExpanded","setInternalExpanded","internalSelected","setInternalSelected","expandedIds","selectedId","rows","focusedId","setFocusedId","activeId","rowRefs","setExpandedIds","next","toggle","id","open","isOpen","want","x","select","focus","onKeyDown","row","r","key","arrowStep","jsx","cn","isExpanded","isSelected","jsxs","el","e","treeRowDensityClass","Icon"],"mappings":";;;;;;;;;AA+EA,SAASA,EAAQC,GAAmBC,GAA0BC,IAAQ,GAAGC,IAA0B,MAAkB;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