@elaraai/east-ui 1.0.3 → 1.0.5
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/README.md +3 -2
- package/dist/src/buttons/button/index.d.ts +20 -20
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +25 -21
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/button-group/index.d.ts.map +1 -1
- package/dist/src/buttons/button-group/index.js +3 -1
- package/dist/src/buttons/button-group/index.js.map +1 -1
- package/dist/src/buttons/button-group/types.d.ts +3 -7
- package/dist/src/buttons/button-group/types.d.ts.map +1 -1
- package/dist/src/buttons/close-button/index.d.ts +2 -5
- package/dist/src/buttons/close-button/index.d.ts.map +1 -1
- package/dist/src/buttons/close-button/index.js +10 -9
- package/dist/src/buttons/close-button/index.js.map +1 -1
- package/dist/src/buttons/close-button/types.d.ts +1 -3
- package/dist/src/buttons/close-button/types.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.d.ts +3 -7
- package/dist/src/buttons/copy-button/index.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.js +11 -11
- package/dist/src/buttons/copy-button/index.js.map +1 -1
- package/dist/src/buttons/copy-button/types.d.ts +1 -3
- package/dist/src/buttons/copy-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +23 -29
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +31 -33
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +16 -7
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/types.js.map +1 -1
- package/dist/src/buttons/toggle/index.d.ts +13 -14
- package/dist/src/buttons/toggle/index.d.ts.map +1 -1
- package/dist/src/buttons/toggle/index.js +22 -20
- package/dist/src/buttons/toggle/index.js.map +1 -1
- package/dist/src/buttons/toggle/types.d.ts +3 -3
- package/dist/src/buttons/toggle/types.d.ts.map +1 -1
- package/dist/src/charts/chart/index.d.ts +1615 -0
- package/dist/src/charts/chart/index.d.ts.map +1 -0
- package/dist/src/charts/chart/index.js +354 -0
- package/dist/src/charts/chart/index.js.map +1 -0
- package/dist/src/charts/index.d.ts +7 -6724
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +7 -1035
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts +2568 -146
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +762 -59
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/charts/spec/types.d.ts +494 -17
- package/dist/src/charts/spec/types.d.ts.map +1 -1
- package/dist/src/charts/spec/types.js +298 -8
- package/dist/src/charts/spec/types.js.map +1 -1
- package/dist/src/collections/blend/index.d.ts +525 -0
- package/dist/src/collections/blend/index.d.ts.map +1 -0
- package/dist/src/collections/blend/index.js +283 -0
- package/dist/src/collections/blend/index.js.map +1 -0
- package/dist/src/collections/blend/types.d.ts +373 -0
- package/dist/src/collections/blend/types.d.ts.map +1 -0
- package/dist/src/collections/blend/types.js +168 -0
- package/dist/src/collections/blend/types.js.map +1 -0
- package/dist/src/collections/calendar/index.d.ts +211 -0
- package/dist/src/collections/calendar/index.d.ts.map +1 -0
- package/dist/src/collections/calendar/index.js +153 -0
- package/dist/src/collections/calendar/index.js.map +1 -0
- package/dist/src/collections/calendar/types.d.ts +116 -0
- package/dist/src/collections/calendar/types.d.ts.map +1 -0
- package/dist/src/collections/calendar/types.js +81 -0
- package/dist/src/collections/calendar/types.js.map +1 -0
- package/dist/src/collections/data-list/index.d.ts +2 -31666
- package/dist/src/collections/data-list/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +34 -93
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +120 -121
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +149 -58
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +92 -20
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/index.d.ts +5 -0
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +5 -0
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +436 -0
- package/dist/src/collections/library/index.d.ts.map +1 -0
- package/dist/src/collections/library/index.js +284 -0
- package/dist/src/collections/library/index.js.map +1 -0
- package/dist/src/collections/library/types.d.ts +329 -0
- package/dist/src/collections/library/types.d.ts.map +1 -0
- package/dist/src/collections/library/types.js +204 -0
- package/dist/src/collections/library/types.js.map +1 -0
- package/dist/src/collections/matrix/index.d.ts +244 -31884
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.js +573 -327
- package/dist/src/collections/matrix/index.js.map +1 -1
- package/dist/src/collections/matrix/types.d.ts +206 -195
- package/dist/src/collections/matrix/types.d.ts.map +1 -1
- package/dist/src/collections/matrix/types.js +113 -135
- package/dist/src/collections/matrix/types.js.map +1 -1
- package/dist/src/collections/pagination/index.d.ts +8 -35
- package/dist/src/collections/pagination/index.d.ts.map +1 -1
- package/dist/src/collections/pagination/index.js +12 -42
- package/dist/src/collections/pagination/index.js.map +1 -1
- package/dist/src/collections/pagination/types.d.ts +34 -1
- package/dist/src/collections/pagination/types.d.ts.map +1 -1
- package/dist/src/collections/pagination/types.js +27 -1
- package/dist/src/collections/pagination/types.js.map +1 -1
- package/dist/src/collections/planner/index.d.ts +428 -257
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.js +557 -717
- package/dist/src/collections/planner/index.js.map +1 -1
- package/dist/src/collections/planner/types.d.ts +346 -339
- package/dist/src/collections/planner/types.d.ts.map +1 -1
- package/dist/src/collections/planner/types.js +238 -185
- package/dist/src/collections/planner/types.js.map +1 -1
- package/dist/src/collections/roster/index.d.ts +396 -0
- package/dist/src/collections/roster/index.d.ts.map +1 -0
- package/dist/src/collections/roster/index.js +227 -0
- package/dist/src/collections/roster/index.js.map +1 -0
- package/dist/src/collections/roster/types.d.ts +240 -0
- package/dist/src/collections/roster/types.d.ts.map +1 -0
- package/dist/src/collections/roster/types.js +113 -0
- package/dist/src/collections/roster/types.js.map +1 -0
- package/dist/src/collections/schematic/index.d.ts +681 -0
- package/dist/src/collections/schematic/index.d.ts.map +1 -0
- package/dist/src/collections/schematic/index.js +365 -0
- package/dist/src/collections/schematic/index.js.map +1 -0
- package/dist/src/collections/schematic/types.d.ts +590 -0
- package/dist/src/collections/schematic/types.d.ts.map +1 -0
- package/dist/src/collections/schematic/types.js +247 -0
- package/dist/src/collections/schematic/types.js.map +1 -0
- package/dist/src/collections/table/index.d.ts +18 -31669
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +13 -0
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/component.d.ts +3959 -22701
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +85 -130
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/index.d.ts +48 -35
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js +49 -61
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +223 -0
- package/dist/src/contracts/drag.d.ts.map +1 -0
- package/dist/src/contracts/drag.js +138 -0
- package/dist/src/contracts/drag.js.map +1 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +1 -0
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/slice-affordances.d.ts +9 -4
- package/dist/src/contracts/slice-affordances.d.ts.map +1 -1
- package/dist/src/contracts/slice-affordances.js +8 -3
- package/dist/src/contracts/slice-affordances.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +8 -8
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js +16 -14
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/accordion/types.d.ts +10 -6
- package/dist/src/disclosure/accordion/types.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js +16 -12
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/carousel/types.d.ts +1 -3
- package/dist/src/disclosure/carousel/types.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/index.d.ts +27 -11
- package/dist/src/disclosure/collapsible/index.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/index.js +15 -16
- package/dist/src/disclosure/collapsible/index.js.map +1 -1
- package/dist/src/disclosure/collapsible/types.d.ts +1 -16
- package/dist/src/disclosure/collapsible/types.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/types.js +1 -1
- package/dist/src/disclosure/collapsible/types.js.map +1 -1
- package/dist/src/disclosure/option-list/index.d.ts +6 -4
- package/dist/src/disclosure/option-list/index.d.ts.map +1 -1
- package/dist/src/disclosure/option-list/index.js +5 -3
- package/dist/src/disclosure/option-list/index.js.map +1 -1
- package/dist/src/disclosure/segment-group/index.d.ts +27 -19
- package/dist/src/disclosure/segment-group/index.d.ts.map +1 -1
- package/dist/src/disclosure/segment-group/index.js +16 -17
- package/dist/src/disclosure/segment-group/index.js.map +1 -1
- package/dist/src/disclosure/show-more/index.js +3 -3
- package/dist/src/disclosure/show-more/index.js.map +1 -1
- package/dist/src/disclosure/show-more/types.d.ts +1 -3
- package/dist/src/disclosure/show-more/types.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +9 -10
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js +15 -14
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/disclosure/tabs/types.d.ts +4 -6
- package/dist/src/disclosure/tabs/types.d.ts.map +1 -1
- package/dist/src/display/avatar/index.d.ts +6 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/index.js +8 -1
- package/dist/src/display/avatar/index.js.map +1 -1
- package/dist/src/display/avatar/types.d.ts +15 -2
- package/dist/src/display/avatar/types.d.ts.map +1 -1
- package/dist/src/display/avatar/types.js +3 -1
- package/dist/src/display/avatar/types.js.map +1 -1
- package/dist/src/display/avatar-group/index.d.ts.map +1 -1
- package/dist/src/display/avatar-group/index.js +14 -1
- package/dist/src/display/avatar-group/index.js.map +1 -1
- package/dist/src/display/avatar-group/types.d.ts +21 -2
- package/dist/src/display/avatar-group/types.d.ts.map +1 -1
- package/dist/src/display/avatar-group/types.js +3 -1
- package/dist/src/display/avatar-group/types.js.map +1 -1
- package/dist/src/display/badge/index.d.ts +6 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/index.js +8 -1
- package/dist/src/display/badge/index.js.map +1 -1
- package/dist/src/display/badge/types.d.ts +15 -2
- package/dist/src/display/badge/types.d.ts.map +1 -1
- package/dist/src/display/badge/types.js +3 -1
- package/dist/src/display/badge/types.js.map +1 -1
- package/dist/src/display/bar-strip/index.d.ts +3 -1
- package/dist/src/display/bar-strip/index.d.ts.map +1 -1
- package/dist/src/display/bar-strip/index.js +10 -1
- package/dist/src/display/bar-strip/index.js.map +1 -1
- package/dist/src/display/bar-strip/types.d.ts +10 -2
- package/dist/src/display/bar-strip/types.d.ts.map +1 -1
- package/dist/src/display/bar-strip/types.js +1 -1
- package/dist/src/display/bar-strip/types.js.map +1 -1
- package/dist/src/display/chip-rail/index.d.ts +109 -0
- package/dist/src/display/chip-rail/index.d.ts.map +1 -0
- package/dist/src/{layout → display}/chip-rail/index.js +19 -17
- package/dist/src/display/chip-rail/index.js.map +1 -0
- package/dist/src/{layout → display}/chip-rail/types.d.ts +10 -4
- package/dist/src/display/chip-rail/types.d.ts.map +1 -0
- package/dist/src/{layout → display}/chip-rail/types.js +1 -1
- package/dist/src/display/chip-rail/types.js.map +1 -0
- package/dist/src/display/editable-chip/index.d.ts +3 -0
- package/dist/src/display/editable-chip/index.d.ts.map +1 -1
- package/dist/src/display/editable-chip/index.js +10 -1
- package/dist/src/display/editable-chip/index.js.map +1 -1
- package/dist/src/display/editable-chip/types.d.ts +10 -2
- package/dist/src/display/editable-chip/types.d.ts.map +1 -1
- package/dist/src/display/editable-chip/types.js +1 -1
- package/dist/src/display/editable-chip/types.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +5 -8
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +8 -9
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/icon/types.d.ts +5 -0
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/icon/types.js.map +1 -1
- package/dist/src/display/index.d.ts +2 -0
- package/dist/src/display/index.d.ts.map +1 -1
- package/dist/src/display/index.js +2 -0
- package/dist/src/display/index.js.map +1 -1
- package/dist/src/display/kbd/index.d.ts.map +1 -1
- package/dist/src/display/kbd/index.js +8 -1
- package/dist/src/display/kbd/index.js.map +1 -1
- package/dist/src/display/kbd/types.d.ts +16 -2
- package/dist/src/display/kbd/types.d.ts.map +1 -1
- package/dist/src/display/kbd/types.js +3 -1
- package/dist/src/display/kbd/types.js.map +1 -1
- package/dist/src/display/meter/index.d.ts +3 -0
- package/dist/src/display/meter/index.d.ts.map +1 -1
- package/dist/src/display/meter/index.js +10 -0
- package/dist/src/display/meter/index.js.map +1 -1
- package/dist/src/display/meter/types.d.ts +10 -0
- package/dist/src/display/meter/types.d.ts.map +1 -1
- package/dist/src/display/meter/types.js +1 -0
- package/dist/src/display/meter/types.js.map +1 -1
- package/dist/src/display/metric-chip/index.d.ts +12 -8
- package/dist/src/display/metric-chip/index.d.ts.map +1 -1
- package/dist/src/display/metric-chip/index.js +27 -18
- package/dist/src/display/metric-chip/index.js.map +1 -1
- package/dist/src/display/metric-chip/types.d.ts +16 -5
- package/dist/src/display/metric-chip/types.d.ts.map +1 -1
- package/dist/src/display/metric-chip/types.js +1 -1
- package/dist/src/display/metric-chip/types.js.map +1 -1
- package/dist/src/display/segmented-meter/index.d.ts +3 -0
- package/dist/src/display/segmented-meter/index.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/index.js +10 -0
- package/dist/src/display/segmented-meter/index.js.map +1 -1
- package/dist/src/display/segmented-meter/types.d.ts +10 -0
- package/dist/src/display/segmented-meter/types.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/types.js +1 -0
- package/dist/src/display/segmented-meter/types.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +13 -11
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +34 -23
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/stat/types.d.ts +23 -5
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/stat/types.js +7 -7
- package/dist/src/display/stat/types.js.map +1 -1
- package/dist/src/display/tag/index.d.ts +5 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/index.js +7 -1
- package/dist/src/display/tag/index.js.map +1 -1
- package/dist/src/display/tag/types.d.ts +15 -2
- package/dist/src/display/tag/types.d.ts.map +1 -1
- package/dist/src/display/tag/types.js +3 -1
- package/dist/src/display/tag/types.js.map +1 -1
- package/dist/src/display/trace/index.d.ts +104 -0
- package/dist/src/display/trace/index.d.ts.map +1 -0
- package/dist/src/display/trace/index.js +106 -0
- package/dist/src/display/trace/index.js.map +1 -0
- package/dist/src/display/trace/types.d.ts +140 -0
- package/dist/src/display/trace/types.d.ts.map +1 -0
- package/dist/src/display/trace/types.js +75 -0
- package/dist/src/display/trace/types.js.map +1 -0
- package/dist/src/feedback/banner/index.d.ts +25 -13
- package/dist/src/feedback/banner/index.d.ts.map +1 -1
- package/dist/src/feedback/banner/index.js +26 -22
- package/dist/src/feedback/banner/index.js.map +1 -1
- package/dist/src/feedback/empty-state/index.d.ts +20 -12
- package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
- package/dist/src/feedback/empty-state/index.js +26 -22
- package/dist/src/feedback/empty-state/index.js.map +1 -1
- package/dist/src/feedback/progress/index.d.ts +13 -10
- package/dist/src/feedback/progress/index.d.ts.map +1 -1
- package/dist/src/feedback/progress/index.js +15 -15
- package/dist/src/feedback/progress/index.js.map +1 -1
- package/dist/src/feedback/skeleton/index.d.ts +16 -11
- package/dist/src/feedback/skeleton/index.d.ts.map +1 -1
- package/dist/src/feedback/skeleton/index.js +12 -10
- package/dist/src/feedback/skeleton/index.js.map +1 -1
- package/dist/src/feedback/status/index.d.ts +16 -11
- package/dist/src/feedback/status/index.d.ts.map +1 -1
- package/dist/src/feedback/status/index.js +23 -21
- package/dist/src/feedback/status/index.js.map +1 -1
- package/dist/src/format/index.d.ts +1 -1
- package/dist/src/format/index.d.ts.map +1 -1
- package/dist/src/format/index.js +1 -1
- package/dist/src/format/index.js.map +1 -1
- package/dist/src/format/types.d.ts +736 -0
- package/dist/src/format/types.d.ts.map +1 -0
- package/dist/src/format/types.js +473 -0
- package/dist/src/format/types.js.map +1 -0
- package/dist/src/forms/combobox/index.d.ts +9 -13
- package/dist/src/forms/combobox/index.d.ts.map +1 -1
- package/dist/src/forms/combobox/index.js +9 -12
- package/dist/src/forms/combobox/index.js.map +1 -1
- package/dist/src/forms/combobox/types.d.ts +13 -0
- package/dist/src/forms/combobox/types.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/index.d.ts +6 -7
- package/dist/src/forms/date-range-input/index.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/index.js +34 -34
- package/dist/src/forms/date-range-input/index.js.map +1 -1
- package/dist/src/forms/date-range-input/types.d.ts +4 -0
- package/dist/src/forms/date-range-input/types.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/types.js.map +1 -1
- package/dist/src/forms/field/index.d.ts +8 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/types.d.ts +16 -0
- package/dist/src/forms/field/types.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.d.ts +5 -1
- package/dist/src/forms/file-upload/index.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.js +9 -2
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/forms/file-upload/types.d.ts +34 -0
- package/dist/src/forms/file-upload/types.d.ts.map +1 -1
- package/dist/src/forms/file-upload/types.js +22 -0
- package/dist/src/forms/file-upload/types.js.map +1 -1
- package/dist/src/forms/index.d.ts +0 -1
- package/dist/src/forms/index.d.ts.map +1 -1
- package/dist/src/forms/index.js +0 -1
- package/dist/src/forms/index.js.map +1 -1
- package/dist/src/forms/input/index.d.ts +5 -0
- package/dist/src/forms/input/index.d.ts.map +1 -1
- package/dist/src/forms/input/index.js +3 -1
- package/dist/src/forms/input/index.js.map +1 -1
- package/dist/src/forms/input/types.d.ts +8 -0
- package/dist/src/forms/input/types.d.ts.map +1 -1
- package/dist/src/forms/input/types.js +2 -0
- package/dist/src/forms/input/types.js.map +1 -1
- package/dist/src/forms/radio-card-group/index.d.ts +12 -12
- package/dist/src/forms/radio-card-group/index.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/index.js +39 -38
- package/dist/src/forms/radio-card-group/index.js.map +1 -1
- package/dist/src/forms/radio-card-group/types.d.ts +4 -0
- package/dist/src/forms/radio-card-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/types.js.map +1 -1
- package/dist/src/forms/radio-group/index.d.ts +12 -12
- package/dist/src/forms/radio-group/index.d.ts.map +1 -1
- package/dist/src/forms/radio-group/index.js +42 -39
- package/dist/src/forms/radio-group/index.js.map +1 -1
- package/dist/src/forms/radio-group/types.d.ts +10 -1
- package/dist/src/forms/radio-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-group/types.js.map +1 -1
- package/dist/src/forms/select/index.d.ts +9 -13
- package/dist/src/forms/select/index.d.ts.map +1 -1
- package/dist/src/forms/select/index.js +9 -12
- package/dist/src/forms/select/index.js.map +1 -1
- package/dist/src/forms/select/types.d.ts +13 -0
- package/dist/src/forms/select/types.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/index.d.ts +6 -7
- package/dist/src/forms/time-range-input/index.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/index.js +31 -31
- package/dist/src/forms/time-range-input/index.js.map +1 -1
- package/dist/src/forms/time-range-input/types.d.ts +4 -0
- package/dist/src/forms/time-range-input/types.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/types.js.map +1 -1
- package/dist/src/index.d.ts +41 -25
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +38 -24
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +40 -22
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +44 -34
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +4 -0
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +9 -1
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/box/types.d.ts +10 -2
- package/dist/src/layout/box/types.d.ts.map +1 -1
- package/dist/src/layout/box/types.js +1 -1
- package/dist/src/layout/box/types.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts +4 -0
- package/dist/src/layout/flex/index.d.ts.map +1 -1
- package/dist/src/layout/flex/index.js +9 -1
- package/dist/src/layout/flex/index.js.map +1 -1
- package/dist/src/layout/flex/types.d.ts +10 -2
- package/dist/src/layout/flex/types.d.ts.map +1 -1
- package/dist/src/layout/flex/types.js +1 -1
- package/dist/src/layout/flex/types.js.map +1 -1
- package/dist/src/layout/grid/index.d.ts +3 -0
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js +8 -1
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/grid/types.d.ts +10 -2
- package/dist/src/layout/grid/types.d.ts.map +1 -1
- package/dist/src/layout/grid/types.js +1 -1
- package/dist/src/layout/grid/types.js.map +1 -1
- package/dist/src/layout/index.d.ts +0 -1
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +0 -1
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/layout/scroll-area/index.d.ts +2 -31666
- package/dist/src/layout/scroll-area/index.d.ts.map +1 -1
- package/dist/src/layout/scroll-area/index.js +11 -11
- package/dist/src/layout/scroll-area/index.js.map +1 -1
- package/dist/src/layout/scroll-area/types.d.ts +1 -3
- package/dist/src/layout/scroll-area/types.d.ts.map +1 -1
- package/dist/src/layout/separator/index.d.ts +2 -31666
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +32 -18
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js +33 -47
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +4 -0
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +9 -1
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/layout/stack/types.d.ts +10 -2
- package/dist/src/layout/stack/types.d.ts.map +1 -1
- package/dist/src/layout/stack/types.js +1 -1
- package/dist/src/layout/stack/types.js.map +1 -1
- package/dist/src/layout/sticky/index.d.ts +2 -31666
- package/dist/src/layout/sticky/index.d.ts.map +1 -1
- package/dist/src/layout/sticky/index.js +4 -4
- package/dist/src/layout/sticky/index.js.map +1 -1
- package/dist/src/layout/sticky/types.d.ts +1 -3
- package/dist/src/layout/sticky/types.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +18 -16
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +31 -60
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +26 -16
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +28 -52
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +3 -0
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +33 -27
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +33 -61
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +114 -42
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js +101 -60
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/menu/types.d.ts +37 -3
- package/dist/src/overlays/menu/types.d.ts.map +1 -1
- package/dist/src/overlays/menu/types.js +18 -4
- package/dist/src/overlays/menu/types.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +16 -16
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +22 -52
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +14 -14
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +18 -47
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +20 -15
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js +19 -28
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/dist/src/platform/hotkey/index.d.ts +3 -30
- package/dist/src/platform/hotkey/index.d.ts.map +1 -1
- package/dist/src/platform/hotkey/index.js +3 -28
- package/dist/src/platform/hotkey/index.js.map +1 -1
- package/dist/src/platform/hotkey/types.d.ts +37 -0
- package/dist/src/platform/hotkey/types.d.ts.map +1 -0
- package/dist/src/platform/hotkey/types.js +36 -0
- package/dist/src/platform/hotkey/types.js.map +1 -0
- package/dist/src/platform/slice/impl.d.ts +3 -2
- package/dist/src/platform/slice/impl.d.ts.map +1 -1
- package/dist/src/platform/slice/impl.js +23 -6
- package/dist/src/platform/slice/impl.js.map +1 -1
- package/dist/src/platform/slice/index.d.ts +1390 -135
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +52 -9
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/runtime/buttons/button-group.d.ts +41 -0
- package/dist/src/runtime/buttons/button-group.d.ts.map +1 -0
- package/dist/src/runtime/buttons/button-group.js +36 -0
- package/dist/src/runtime/buttons/button-group.js.map +1 -0
- package/dist/src/runtime/buttons/button.d.ts +36 -0
- package/dist/src/runtime/buttons/button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/button.js +32 -0
- package/dist/src/runtime/buttons/button.js.map +1 -0
- package/dist/src/runtime/buttons/close-button.d.ts +36 -0
- package/dist/src/runtime/buttons/close-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/close-button.js +34 -0
- package/dist/src/runtime/buttons/close-button.js.map +1 -0
- package/dist/src/runtime/buttons/copy-button.d.ts +37 -0
- package/dist/src/runtime/buttons/copy-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/copy-button.js +33 -0
- package/dist/src/runtime/buttons/copy-button.js.map +1 -0
- package/dist/src/runtime/buttons/icon-button.d.ts +40 -0
- package/dist/src/runtime/buttons/icon-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/icon-button.js +38 -0
- package/dist/src/runtime/buttons/icon-button.js.map +1 -0
- package/dist/src/runtime/buttons/index.d.ts +12 -0
- package/dist/src/runtime/buttons/index.d.ts.map +1 -0
- package/dist/src/runtime/buttons/index.js +12 -0
- package/dist/src/runtime/buttons/index.js.map +1 -0
- package/dist/src/runtime/buttons/toggle.d.ts +45 -0
- package/dist/src/runtime/buttons/toggle.d.ts.map +1 -0
- package/dist/src/runtime/buttons/toggle.js +41 -0
- package/dist/src/runtime/buttons/toggle.js.map +1 -0
- package/dist/src/runtime/charts/chart.d.ts +69 -0
- package/dist/src/runtime/charts/chart.d.ts.map +1 -0
- package/dist/src/runtime/charts/chart.js +66 -0
- package/dist/src/runtime/charts/chart.js.map +1 -0
- package/dist/src/runtime/charts/index.d.ts +8 -0
- package/dist/src/runtime/charts/index.d.ts.map +1 -0
- package/dist/src/runtime/charts/index.js +8 -0
- package/dist/src/runtime/charts/index.js.map +1 -0
- package/dist/src/runtime/charts/sparkline.d.ts +42 -0
- package/dist/src/runtime/charts/sparkline.d.ts.map +1 -0
- package/dist/src/runtime/charts/sparkline.js +40 -0
- package/dist/src/runtime/charts/sparkline.js.map +1 -0
- package/dist/src/runtime/children.d.ts +46 -0
- package/dist/src/runtime/children.d.ts.map +1 -0
- package/dist/src/runtime/children.js +73 -0
- package/dist/src/runtime/children.js.map +1 -0
- package/dist/src/runtime/collections/blend.d.ts +58 -0
- package/dist/src/runtime/collections/blend.d.ts.map +1 -0
- package/dist/src/runtime/collections/blend.js +58 -0
- package/dist/src/runtime/collections/blend.js.map +1 -0
- package/dist/src/runtime/collections/calendar.d.ts +49 -0
- package/dist/src/runtime/collections/calendar.d.ts.map +1 -0
- package/dist/src/runtime/collections/calendar.js +49 -0
- package/dist/src/runtime/collections/calendar.js.map +1 -0
- package/dist/src/runtime/collections/data-list.d.ts +41 -0
- package/dist/src/runtime/collections/data-list.d.ts.map +1 -0
- package/dist/src/runtime/collections/data-list.js +39 -0
- package/dist/src/runtime/collections/data-list.js.map +1 -0
- package/dist/src/runtime/collections/gantt.d.ts +67 -0
- package/dist/src/runtime/collections/gantt.d.ts.map +1 -0
- package/dist/src/runtime/collections/gantt.js +58 -0
- package/dist/src/runtime/collections/gantt.js.map +1 -0
- package/dist/src/runtime/collections/index.d.ts +18 -0
- package/dist/src/runtime/collections/index.d.ts.map +1 -0
- package/dist/src/runtime/collections/index.js +18 -0
- package/dist/src/runtime/collections/index.js.map +1 -0
- package/dist/src/runtime/collections/library.d.ts +56 -0
- package/dist/src/runtime/collections/library.d.ts.map +1 -0
- package/dist/src/runtime/collections/library.js +56 -0
- package/dist/src/runtime/collections/library.js.map +1 -0
- package/dist/src/runtime/collections/matrix.d.ts +71 -0
- package/dist/src/runtime/collections/matrix.d.ts.map +1 -0
- package/dist/src/runtime/collections/matrix.js +66 -0
- package/dist/src/runtime/collections/matrix.js.map +1 -0
- package/dist/src/runtime/collections/pagination.d.ts +44 -0
- package/dist/src/runtime/collections/pagination.d.ts.map +1 -0
- package/dist/src/runtime/collections/pagination.js +42 -0
- package/dist/src/runtime/collections/pagination.js.map +1 -0
- package/dist/src/runtime/collections/planner.d.ts +80 -0
- package/dist/src/runtime/collections/planner.d.ts.map +1 -0
- package/dist/src/runtime/collections/planner.js +76 -0
- package/dist/src/runtime/collections/planner.js.map +1 -0
- package/dist/src/runtime/collections/roster.d.ts +60 -0
- package/dist/src/runtime/collections/roster.d.ts.map +1 -0
- package/dist/src/runtime/collections/roster.js +59 -0
- package/dist/src/runtime/collections/roster.js.map +1 -0
- package/dist/src/runtime/collections/schematic.d.ts +62 -0
- package/dist/src/runtime/collections/schematic.d.ts.map +1 -0
- package/dist/src/runtime/collections/schematic.js +59 -0
- package/dist/src/runtime/collections/schematic.js.map +1 -0
- package/dist/src/runtime/collections/table.d.ts +70 -0
- package/dist/src/runtime/collections/table.d.ts.map +1 -0
- package/dist/src/runtime/collections/table.js +63 -0
- package/dist/src/runtime/collections/table.js.map +1 -0
- package/dist/src/runtime/collections/tree-view.d.ts +49 -0
- package/dist/src/runtime/collections/tree-view.d.ts.map +1 -0
- package/dist/src/runtime/collections/tree-view.js +46 -0
- package/dist/src/runtime/collections/tree-view.js.map +1 -0
- package/dist/src/runtime/combinators.d.ts +111 -0
- package/dist/src/runtime/combinators.d.ts.map +1 -0
- package/dist/src/runtime/combinators.js +106 -0
- package/dist/src/runtime/combinators.js.map +1 -0
- package/dist/src/runtime/container/card.d.ts +54 -0
- package/dist/src/runtime/container/card.d.ts.map +1 -0
- package/dist/src/runtime/container/card.js +51 -0
- package/dist/src/runtime/container/card.js.map +1 -0
- package/dist/src/runtime/container/index.d.ts +7 -0
- package/dist/src/runtime/container/index.d.ts.map +1 -0
- package/dist/src/runtime/container/index.js +7 -0
- package/dist/src/runtime/container/index.js.map +1 -0
- package/dist/src/runtime/disclosure/accordion.d.ts +54 -0
- package/dist/src/runtime/disclosure/accordion.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/accordion.js +51 -0
- package/dist/src/runtime/disclosure/accordion.js.map +1 -0
- package/dist/src/runtime/disclosure/carousel.d.ts +46 -0
- package/dist/src/runtime/disclosure/carousel.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/carousel.js +41 -0
- package/dist/src/runtime/disclosure/carousel.js.map +1 -0
- package/dist/src/runtime/disclosure/collapsible.d.ts +41 -0
- package/dist/src/runtime/disclosure/collapsible.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/collapsible.js +39 -0
- package/dist/src/runtime/disclosure/collapsible.js.map +1 -0
- package/dist/src/runtime/disclosure/index.d.ts +13 -0
- package/dist/src/runtime/disclosure/index.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/index.js +13 -0
- package/dist/src/runtime/disclosure/index.js.map +1 -0
- package/dist/src/runtime/disclosure/option-list.d.ts +58 -0
- package/dist/src/runtime/disclosure/option-list.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/option-list.js +55 -0
- package/dist/src/runtime/disclosure/option-list.js.map +1 -0
- package/dist/src/runtime/disclosure/segment-group.d.ts +52 -0
- package/dist/src/runtime/disclosure/segment-group.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/segment-group.js +49 -0
- package/dist/src/runtime/disclosure/segment-group.js.map +1 -0
- package/dist/src/runtime/disclosure/show-more.d.ts +38 -0
- package/dist/src/runtime/disclosure/show-more.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/show-more.js +36 -0
- package/dist/src/runtime/disclosure/show-more.js.map +1 -0
- package/dist/src/runtime/disclosure/tabs.d.ts +55 -0
- package/dist/src/runtime/disclosure/tabs.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/tabs.js +52 -0
- package/dist/src/runtime/disclosure/tabs.js.map +1 -0
- package/dist/src/runtime/display/avatar-group.d.ts +41 -0
- package/dist/src/runtime/display/avatar-group.d.ts.map +1 -0
- package/dist/src/runtime/display/avatar-group.js +37 -0
- package/dist/src/runtime/display/avatar-group.js.map +1 -0
- package/dist/src/runtime/display/avatar.d.ts +37 -0
- package/dist/src/runtime/display/avatar.d.ts.map +1 -0
- package/dist/src/runtime/display/avatar.js +35 -0
- package/dist/src/runtime/display/avatar.js.map +1 -0
- package/dist/src/runtime/display/badge.d.ts +40 -0
- package/dist/src/runtime/display/badge.d.ts.map +1 -0
- package/dist/src/runtime/display/badge.js +38 -0
- package/dist/src/runtime/display/badge.js.map +1 -0
- package/dist/src/runtime/display/bar-strip.d.ts +46 -0
- package/dist/src/runtime/display/bar-strip.d.ts.map +1 -0
- package/dist/src/runtime/display/bar-strip.js +42 -0
- package/dist/src/runtime/display/bar-strip.js.map +1 -0
- package/dist/src/runtime/display/chip-rail.d.ts +48 -0
- package/dist/src/runtime/display/chip-rail.d.ts.map +1 -0
- package/dist/src/runtime/display/chip-rail.js +43 -0
- package/dist/src/runtime/display/chip-rail.js.map +1 -0
- package/dist/src/runtime/display/editable-chip.d.ts +36 -0
- package/dist/src/runtime/display/editable-chip.d.ts.map +1 -0
- package/dist/src/runtime/display/editable-chip.js +34 -0
- package/dist/src/runtime/display/editable-chip.js.map +1 -0
- package/dist/src/runtime/display/icon.d.ts +36 -0
- package/dist/src/runtime/display/icon.d.ts.map +1 -0
- package/dist/src/runtime/display/icon.js +34 -0
- package/dist/src/runtime/display/icon.js.map +1 -0
- package/dist/src/runtime/display/index.d.ts +20 -0
- package/dist/src/runtime/display/index.d.ts.map +1 -0
- package/dist/src/runtime/display/index.js +20 -0
- package/dist/src/runtime/display/index.js.map +1 -0
- package/dist/src/runtime/display/kbd.d.ts +34 -0
- package/dist/src/runtime/display/kbd.d.ts.map +1 -0
- package/dist/src/runtime/display/kbd.js +32 -0
- package/dist/src/runtime/display/kbd.js.map +1 -0
- package/dist/src/runtime/display/meter.d.ts +36 -0
- package/dist/src/runtime/display/meter.d.ts.map +1 -0
- package/dist/src/runtime/display/meter.js +34 -0
- package/dist/src/runtime/display/meter.js.map +1 -0
- package/dist/src/runtime/display/metric-chip.d.ts +36 -0
- package/dist/src/runtime/display/metric-chip.d.ts.map +1 -0
- package/dist/src/runtime/display/metric-chip.js +34 -0
- package/dist/src/runtime/display/metric-chip.js.map +1 -0
- package/dist/src/runtime/display/segmented-meter.d.ts +43 -0
- package/dist/src/runtime/display/segmented-meter.d.ts.map +1 -0
- package/dist/src/runtime/display/segmented-meter.js +39 -0
- package/dist/src/runtime/display/segmented-meter.js.map +1 -0
- package/dist/src/runtime/display/stat.d.ts +38 -0
- package/dist/src/runtime/display/stat.d.ts.map +1 -0
- package/dist/src/runtime/display/stat.js +36 -0
- package/dist/src/runtime/display/stat.js.map +1 -0
- package/dist/src/runtime/display/tag.d.ts +39 -0
- package/dist/src/runtime/display/tag.d.ts.map +1 -0
- package/dist/src/runtime/display/tag.js +37 -0
- package/dist/src/runtime/display/tag.js.map +1 -0
- package/dist/src/runtime/display/trace.d.ts +50 -0
- package/dist/src/runtime/display/trace.d.ts.map +1 -0
- package/dist/src/runtime/display/trace.js +46 -0
- package/dist/src/runtime/display/trace.js.map +1 -0
- package/dist/src/runtime/feedback/banner.d.ts +44 -0
- package/dist/src/runtime/feedback/banner.d.ts.map +1 -0
- package/dist/src/runtime/feedback/banner.js +42 -0
- package/dist/src/runtime/feedback/banner.js.map +1 -0
- package/dist/src/runtime/feedback/empty-state.d.ts +43 -0
- package/dist/src/runtime/feedback/empty-state.d.ts.map +1 -0
- package/dist/src/runtime/feedback/empty-state.js +41 -0
- package/dist/src/runtime/feedback/empty-state.js.map +1 -0
- package/dist/src/runtime/feedback/index.d.ts +11 -0
- package/dist/src/runtime/feedback/index.d.ts.map +1 -0
- package/dist/src/runtime/feedback/index.js +11 -0
- package/dist/src/runtime/feedback/index.js.map +1 -0
- package/dist/src/runtime/feedback/progress.d.ts +37 -0
- package/dist/src/runtime/feedback/progress.d.ts.map +1 -0
- package/dist/src/runtime/feedback/progress.js +35 -0
- package/dist/src/runtime/feedback/progress.js.map +1 -0
- package/dist/src/runtime/feedback/skeleton.d.ts +39 -0
- package/dist/src/runtime/feedback/skeleton.d.ts.map +1 -0
- package/dist/src/runtime/feedback/skeleton.js +37 -0
- package/dist/src/runtime/feedback/skeleton.js.map +1 -0
- package/dist/src/runtime/feedback/status.d.ts +41 -0
- package/dist/src/runtime/feedback/status.d.ts.map +1 -0
- package/dist/src/runtime/feedback/status.js +39 -0
- package/dist/src/runtime/feedback/status.js.map +1 -0
- package/dist/src/runtime/forms/checkbox.d.ts +34 -0
- package/dist/src/runtime/forms/checkbox.d.ts.map +1 -0
- package/dist/src/runtime/forms/checkbox.js +32 -0
- package/dist/src/runtime/forms/checkbox.js.map +1 -0
- package/dist/src/runtime/forms/combobox.d.ts +50 -0
- package/dist/src/runtime/forms/combobox.d.ts.map +1 -0
- package/dist/src/runtime/forms/combobox.js +47 -0
- package/dist/src/runtime/forms/combobox.js.map +1 -0
- package/dist/src/runtime/forms/date-range-input.d.ts +38 -0
- package/dist/src/runtime/forms/date-range-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/date-range-input.js +36 -0
- package/dist/src/runtime/forms/date-range-input.js.map +1 -0
- package/dist/src/runtime/forms/field.d.ts +77 -0
- package/dist/src/runtime/forms/field.d.ts.map +1 -0
- package/dist/src/runtime/forms/field.js +62 -0
- package/dist/src/runtime/forms/field.js.map +1 -0
- package/dist/src/runtime/forms/file-upload.d.ts +35 -0
- package/dist/src/runtime/forms/file-upload.d.ts.map +1 -0
- package/dist/src/runtime/forms/file-upload.js +33 -0
- package/dist/src/runtime/forms/file-upload.js.map +1 -0
- package/dist/src/runtime/forms/index.d.ts +20 -0
- package/dist/src/runtime/forms/index.d.ts.map +1 -0
- package/dist/src/runtime/forms/index.js +20 -0
- package/dist/src/runtime/forms/index.js.map +1 -0
- package/dist/src/runtime/forms/input.d.ts +57 -0
- package/dist/src/runtime/forms/input.d.ts.map +1 -0
- package/dist/src/runtime/forms/input.js +57 -0
- package/dist/src/runtime/forms/input.js.map +1 -0
- package/dist/src/runtime/forms/radio-card-group.d.ts +44 -0
- package/dist/src/runtime/forms/radio-card-group.d.ts.map +1 -0
- package/dist/src/runtime/forms/radio-card-group.js +42 -0
- package/dist/src/runtime/forms/radio-card-group.js.map +1 -0
- package/dist/src/runtime/forms/radio-group.d.ts +44 -0
- package/dist/src/runtime/forms/radio-group.d.ts.map +1 -0
- package/dist/src/runtime/forms/radio-group.js +42 -0
- package/dist/src/runtime/forms/radio-group.js.map +1 -0
- package/dist/src/runtime/forms/select.d.ts +49 -0
- package/dist/src/runtime/forms/select.d.ts.map +1 -0
- package/dist/src/runtime/forms/select.js +46 -0
- package/dist/src/runtime/forms/select.js.map +1 -0
- package/dist/src/runtime/forms/slider.d.ts +36 -0
- package/dist/src/runtime/forms/slider.d.ts.map +1 -0
- package/dist/src/runtime/forms/slider.js +34 -0
- package/dist/src/runtime/forms/slider.js.map +1 -0
- package/dist/src/runtime/forms/switch.d.ts +34 -0
- package/dist/src/runtime/forms/switch.d.ts.map +1 -0
- package/dist/src/runtime/forms/switch.js +32 -0
- package/dist/src/runtime/forms/switch.js.map +1 -0
- package/dist/src/runtime/forms/tags-input.d.ts +37 -0
- package/dist/src/runtime/forms/tags-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/tags-input.js +35 -0
- package/dist/src/runtime/forms/tags-input.js.map +1 -0
- package/dist/src/runtime/forms/textarea.d.ts +36 -0
- package/dist/src/runtime/forms/textarea.d.ts.map +1 -0
- package/dist/src/runtime/forms/textarea.js +34 -0
- package/dist/src/runtime/forms/textarea.js.map +1 -0
- package/dist/src/runtime/forms/time-range-input.d.ts +38 -0
- package/dist/src/runtime/forms/time-range-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/time-range-input.js +36 -0
- package/dist/src/runtime/forms/time-range-input.js.map +1 -0
- package/dist/src/runtime/index.d.ts +42 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +41 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/layout/box.d.ts +38 -0
- package/dist/src/runtime/layout/box.d.ts.map +1 -0
- package/dist/src/runtime/layout/box.js +36 -0
- package/dist/src/runtime/layout/box.js.map +1 -0
- package/dist/src/runtime/layout/flex.d.ts +41 -0
- package/dist/src/runtime/layout/flex.d.ts.map +1 -0
- package/dist/src/runtime/layout/flex.js +39 -0
- package/dist/src/runtime/layout/flex.js.map +1 -0
- package/dist/src/runtime/layout/grid.d.ts +52 -0
- package/dist/src/runtime/layout/grid.d.ts.map +1 -0
- package/dist/src/runtime/layout/grid.js +49 -0
- package/dist/src/runtime/layout/grid.js.map +1 -0
- package/dist/src/runtime/layout/index.d.ts +14 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -0
- package/dist/src/runtime/layout/index.js +14 -0
- package/dist/src/runtime/layout/index.js.map +1 -0
- package/dist/src/runtime/layout/scroll-area.d.ts +44 -0
- package/dist/src/runtime/layout/scroll-area.d.ts.map +1 -0
- package/dist/src/runtime/layout/scroll-area.js +42 -0
- package/dist/src/runtime/layout/scroll-area.js.map +1 -0
- package/dist/src/runtime/layout/separator.d.ts +39 -0
- package/dist/src/runtime/layout/separator.d.ts.map +1 -0
- package/dist/src/runtime/layout/separator.js +37 -0
- package/dist/src/runtime/layout/separator.js.map +1 -0
- package/dist/src/runtime/layout/splitter.d.ts +53 -0
- package/dist/src/runtime/layout/splitter.d.ts.map +1 -0
- package/dist/src/runtime/layout/splitter.js +50 -0
- package/dist/src/runtime/layout/splitter.js.map +1 -0
- package/dist/src/runtime/layout/stack.d.ts +99 -0
- package/dist/src/runtime/layout/stack.d.ts.map +1 -0
- package/dist/src/runtime/layout/stack.js +93 -0
- package/dist/src/runtime/layout/stack.js.map +1 -0
- package/dist/src/runtime/layout/sticky.d.ts +44 -0
- package/dist/src/runtime/layout/sticky.d.ts.map +1 -0
- package/dist/src/runtime/layout/sticky.js +42 -0
- package/dist/src/runtime/layout/sticky.js.map +1 -0
- package/dist/src/runtime/navigation/breadcrumb.d.ts +41 -0
- package/dist/src/runtime/navigation/breadcrumb.d.ts.map +1 -0
- package/dist/src/runtime/navigation/breadcrumb.js +39 -0
- package/dist/src/runtime/navigation/breadcrumb.js.map +1 -0
- package/dist/src/runtime/navigation/index.d.ts +8 -0
- package/dist/src/runtime/navigation/index.d.ts.map +1 -0
- package/dist/src/runtime/navigation/index.js +8 -0
- package/dist/src/runtime/navigation/index.js.map +1 -0
- package/dist/src/runtime/navigation/nav-list.d.ts +54 -0
- package/dist/src/runtime/navigation/nav-list.d.ts.map +1 -0
- package/dist/src/runtime/navigation/nav-list.js +52 -0
- package/dist/src/runtime/navigation/nav-list.js.map +1 -0
- package/dist/src/runtime/overlays/action-bar.d.ts +45 -0
- package/dist/src/runtime/overlays/action-bar.d.ts.map +1 -0
- package/dist/src/runtime/overlays/action-bar.js +43 -0
- package/dist/src/runtime/overlays/action-bar.js.map +1 -0
- package/dist/src/runtime/overlays/command-palette.d.ts +45 -0
- package/dist/src/runtime/overlays/command-palette.d.ts.map +1 -0
- package/dist/src/runtime/overlays/command-palette.js +43 -0
- package/dist/src/runtime/overlays/command-palette.js.map +1 -0
- package/dist/src/runtime/overlays/dialog.d.ts +47 -0
- package/dist/src/runtime/overlays/dialog.d.ts.map +1 -0
- package/dist/src/runtime/overlays/dialog.js +44 -0
- package/dist/src/runtime/overlays/dialog.js.map +1 -0
- package/dist/src/runtime/overlays/drawer.d.ts +46 -0
- package/dist/src/runtime/overlays/drawer.d.ts.map +1 -0
- package/dist/src/runtime/overlays/drawer.js +43 -0
- package/dist/src/runtime/overlays/drawer.js.map +1 -0
- package/dist/src/runtime/overlays/hover-card.d.ts +43 -0
- package/dist/src/runtime/overlays/hover-card.d.ts.map +1 -0
- package/dist/src/runtime/overlays/hover-card.js +41 -0
- package/dist/src/runtime/overlays/hover-card.js.map +1 -0
- package/dist/src/runtime/overlays/index.d.ts +15 -0
- package/dist/src/runtime/overlays/index.d.ts.map +1 -0
- package/dist/src/runtime/overlays/index.js +15 -0
- package/dist/src/runtime/overlays/index.js.map +1 -0
- package/dist/src/runtime/overlays/menu.d.ts +49 -0
- package/dist/src/runtime/overlays/menu.d.ts.map +1 -0
- package/dist/src/runtime/overlays/menu.js +46 -0
- package/dist/src/runtime/overlays/menu.js.map +1 -0
- package/dist/src/runtime/overlays/popover.d.ts +37 -0
- package/dist/src/runtime/overlays/popover.d.ts.map +1 -0
- package/dist/src/runtime/overlays/popover.js +35 -0
- package/dist/src/runtime/overlays/popover.js.map +1 -0
- package/dist/src/runtime/overlays/toggle-tip.d.ts +44 -0
- package/dist/src/runtime/overlays/toggle-tip.d.ts.map +1 -0
- package/dist/src/runtime/overlays/toggle-tip.js +42 -0
- package/dist/src/runtime/overlays/toggle-tip.js.map +1 -0
- package/dist/src/runtime/overlays/tooltip.d.ts +37 -0
- package/dist/src/runtime/overlays/tooltip.d.ts.map +1 -0
- package/dist/src/runtime/overlays/tooltip.js +35 -0
- package/dist/src/runtime/overlays/tooltip.js.map +1 -0
- package/dist/src/runtime/platform-hotkey.d.ts +41 -0
- package/dist/src/runtime/platform-hotkey.d.ts.map +1 -0
- package/dist/src/runtime/platform-hotkey.js +39 -0
- package/dist/src/runtime/platform-hotkey.js.map +1 -0
- package/dist/src/runtime/reactive/index.d.ts +8 -0
- package/dist/src/runtime/reactive/index.d.ts.map +1 -0
- package/dist/src/runtime/reactive/index.js +7 -0
- package/dist/src/runtime/reactive/index.js.map +1 -0
- package/dist/src/runtime/reactive/reactive.d.ts +59 -0
- package/dist/src/runtime/reactive/reactive.d.ts.map +1 -0
- package/dist/src/runtime/reactive/reactive.js +53 -0
- package/dist/src/runtime/reactive/reactive.js.map +1 -0
- package/dist/src/runtime/runtime.d.ts +92 -0
- package/dist/src/runtime/runtime.d.ts.map +1 -0
- package/dist/src/runtime/runtime.js +47 -0
- package/dist/src/runtime/runtime.js.map +1 -0
- package/dist/src/runtime/slice.d.ts +84 -0
- package/dist/src/runtime/slice.d.ts.map +1 -0
- package/dist/src/runtime/slice.js +379 -0
- package/dist/src/runtime/slice.js.map +1 -0
- package/dist/src/runtime/typography/code-block.d.ts +38 -0
- package/dist/src/runtime/typography/code-block.d.ts.map +1 -0
- package/dist/src/runtime/typography/code-block.js +36 -0
- package/dist/src/runtime/typography/code-block.js.map +1 -0
- package/dist/src/runtime/typography/code.d.ts +36 -0
- package/dist/src/runtime/typography/code.d.ts.map +1 -0
- package/dist/src/runtime/typography/code.js +34 -0
- package/dist/src/runtime/typography/code.js.map +1 -0
- package/dist/src/runtime/typography/heading.d.ts +39 -0
- package/dist/src/runtime/typography/heading.d.ts.map +1 -0
- package/dist/src/runtime/typography/heading.js +37 -0
- package/dist/src/runtime/typography/heading.js.map +1 -0
- package/dist/src/runtime/typography/highlight.d.ts +37 -0
- package/dist/src/runtime/typography/highlight.d.ts.map +1 -0
- package/dist/src/runtime/typography/highlight.js +35 -0
- package/dist/src/runtime/typography/highlight.js.map +1 -0
- package/dist/src/runtime/typography/index.d.ts +16 -0
- package/dist/src/runtime/typography/index.d.ts.map +1 -0
- package/dist/src/runtime/typography/index.js +16 -0
- package/dist/src/runtime/typography/index.js.map +1 -0
- package/dist/src/runtime/typography/link.d.ts +37 -0
- package/dist/src/runtime/typography/link.d.ts.map +1 -0
- package/dist/src/runtime/typography/link.js +35 -0
- package/dist/src/runtime/typography/link.js.map +1 -0
- package/dist/src/runtime/typography/list.d.ts +42 -0
- package/dist/src/runtime/typography/list.d.ts.map +1 -0
- package/dist/src/runtime/typography/list.js +40 -0
- package/dist/src/runtime/typography/list.js.map +1 -0
- package/dist/src/runtime/typography/mark.d.ts +35 -0
- package/dist/src/runtime/typography/mark.d.ts.map +1 -0
- package/dist/src/runtime/typography/mark.js +33 -0
- package/dist/src/runtime/typography/mark.js.map +1 -0
- package/dist/src/runtime/typography/note.d.ts +38 -0
- package/dist/src/runtime/typography/note.d.ts.map +1 -0
- package/dist/src/runtime/typography/note.js +36 -0
- package/dist/src/runtime/typography/note.js.map +1 -0
- package/dist/src/runtime/typography/numeric.d.ts +43 -0
- package/dist/src/runtime/typography/numeric.d.ts.map +1 -0
- package/dist/src/runtime/typography/numeric.js +41 -0
- package/dist/src/runtime/typography/numeric.js.map +1 -0
- package/dist/src/runtime/typography/text.d.ts +94 -0
- package/dist/src/runtime/typography/text.d.ts.map +1 -0
- package/dist/src/runtime/typography/text.js +208 -0
- package/dist/src/runtime/typography/text.js.map +1 -0
- package/dist/src/slice/breakdown/index.d.ts +11 -4
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/index.js +4 -4
- package/dist/src/slice/breakdown/index.js.map +1 -1
- package/dist/src/slice/breakdown/types.d.ts +6 -1
- package/dist/src/slice/breakdown/types.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +12 -5
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.js +9 -9
- package/dist/src/slice/cohort/index.js.map +1 -1
- package/dist/src/slice/cohort/types.d.ts +6 -1
- package/dist/src/slice/cohort/types.d.ts.map +1 -1
- package/dist/src/slice/filter/index.d.ts +11 -5
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/index.js +6 -7
- package/dist/src/slice/filter/index.js.map +1 -1
- package/dist/src/slice/filter/types.d.ts +6 -1
- package/dist/src/slice/filter/types.d.ts.map +1 -1
- package/dist/src/slice/index.d.ts +687 -267
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/index.js +3 -6
- package/dist/src/slice/index.js.map +1 -1
- package/dist/src/slice/legend/index.d.ts +18 -4
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.js +4 -4
- package/dist/src/slice/legend/index.js.map +1 -1
- package/dist/src/slice/legend/types.d.ts +6 -1
- package/dist/src/slice/legend/types.d.ts.map +1 -1
- package/dist/src/slice/rail/index.d.ts +49 -0
- package/dist/src/slice/rail/index.d.ts.map +1 -0
- package/dist/src/slice/rail/index.js +39 -0
- package/dist/src/slice/rail/index.js.map +1 -0
- package/dist/src/slice/range/index.d.ts +10 -3
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/index.js +4 -4
- package/dist/src/slice/range/index.js.map +1 -1
- package/dist/src/slice/range/types.d.ts +6 -1
- package/dist/src/slice/range/types.d.ts.map +1 -1
- package/dist/src/slice/search/index.d.ts +11 -4
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/index.js +6 -6
- package/dist/src/slice/search/index.js.map +1 -1
- package/dist/src/slice/search/types.d.ts +6 -1
- package/dist/src/slice/search/types.d.ts.map +1 -1
- package/dist/src/slice/summary/index.d.ts +18 -4
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/index.js +4 -4
- package/dist/src/slice/summary/index.js.map +1 -1
- package/dist/src/slice/summary/types.d.ts +6 -1
- package/dist/src/slice/summary/types.d.ts.map +1 -1
- package/dist/src/typography/highlight/index.d.ts +13 -13
- package/dist/src/typography/highlight/index.d.ts.map +1 -1
- package/dist/src/typography/highlight/index.js +17 -20
- package/dist/src/typography/highlight/index.js.map +1 -1
- package/dist/src/typography/highlight/types.d.ts +5 -2
- package/dist/src/typography/highlight/types.d.ts.map +1 -1
- package/dist/src/typography/link/index.d.ts +9 -8
- package/dist/src/typography/link/index.d.ts.map +1 -1
- package/dist/src/typography/link/index.js +14 -12
- package/dist/src/typography/link/index.js.map +1 -1
- package/dist/src/typography/link/types.d.ts +4 -2
- package/dist/src/typography/link/types.d.ts.map +1 -1
- package/dist/src/typography/numeric/index.d.ts +1 -1
- package/dist/src/typography/numeric/index.d.ts.map +1 -1
- package/dist/src/typography/numeric/index.js +1 -1
- package/dist/src/typography/numeric/index.js.map +1 -1
- package/dist/src/typography/numeric/types.d.ts +1 -1
- package/dist/src/typography/numeric/types.js +1 -1
- package/dist/test/buttons/button-group.examples.d.ts.map +1 -1
- package/dist/test/buttons/button-group.examples.js +9 -20
- package/dist/test/buttons/button-group.examples.js.map +1 -1
- package/dist/test/buttons/button.examples.d.ts.map +1 -1
- package/dist/test/buttons/button.examples.js +16 -53
- package/dist/test/buttons/button.examples.js.map +1 -1
- package/dist/test/buttons/close-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/close-button.examples.js +10 -24
- package/dist/test/buttons/close-button.examples.js.map +1 -1
- package/dist/test/buttons/copy-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/copy-button.examples.js +7 -18
- package/dist/test/buttons/copy-button.examples.js.map +1 -1
- package/dist/test/buttons/icon-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/icon-button.examples.js +10 -27
- package/dist/test/buttons/icon-button.examples.js.map +1 -1
- package/dist/test/buttons/index.d.ts +12 -0
- package/dist/test/buttons/index.d.ts.map +1 -0
- package/dist/test/buttons/index.js +12 -0
- package/dist/test/buttons/index.js.map +1 -0
- package/dist/test/buttons/toggle.examples.d.ts.map +1 -1
- package/dist/test/buttons/toggle.examples.js +9 -21
- package/dist/test/buttons/toggle.examples.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +23 -0
- package/dist/test/charts/chart.examples.d.ts.map +1 -0
- package/dist/test/charts/chart.examples.js +325 -0
- package/dist/test/charts/chart.examples.js.map +1 -0
- package/dist/test/charts/index.d.ts +2 -7
- package/dist/test/charts/index.d.ts.map +1 -1
- package/dist/test/charts/index.js +2 -7
- package/dist/test/charts/index.js.map +1 -1
- package/dist/test/charts/sparkline.examples.d.ts +0 -4
- package/dist/test/charts/sparkline.examples.d.ts.map +1 -1
- package/dist/test/charts/sparkline.examples.js +15 -104
- package/dist/test/charts/sparkline.examples.js.map +1 -1
- package/dist/test/collections/blend.examples.d.ts +5 -0
- package/dist/test/collections/blend.examples.d.ts.map +1 -0
- package/dist/test/collections/blend.examples.js +105 -0
- package/dist/test/collections/blend.examples.js.map +1 -0
- package/dist/test/collections/calendar.examples.d.ts +4 -0
- package/dist/test/collections/calendar.examples.d.ts.map +1 -0
- package/dist/test/collections/calendar.examples.js +84 -0
- package/dist/test/collections/calendar.examples.js.map +1 -0
- package/dist/test/collections/data-list.examples.d.ts.map +1 -1
- package/dist/test/collections/data-list.examples.js +50 -55
- package/dist/test/collections/data-list.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +4 -13
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +203 -465
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/index.d.ts +3 -0
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +3 -0
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +4 -0
- package/dist/test/collections/library.examples.d.ts.map +1 -0
- package/dist/test/collections/library.examples.js +79 -0
- package/dist/test/collections/library.examples.js.map +1 -0
- package/dist/test/collections/matrix.examples.d.ts +43 -12
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +172 -592
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/pagination.examples.d.ts +0 -4
- package/dist/test/collections/pagination.examples.d.ts.map +1 -1
- package/dist/test/collections/pagination.examples.js +24 -33
- package/dist/test/collections/pagination.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +43 -27
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +149 -596
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +5 -0
- package/dist/test/collections/roster.examples.d.ts.map +1 -0
- package/dist/test/collections/roster.examples.js +115 -0
- package/dist/test/collections/roster.examples.js.map +1 -0
- package/dist/test/collections/schematic.examples.d.ts +5 -0
- package/dist/test/collections/schematic.examples.d.ts.map +1 -0
- package/dist/test/collections/schematic.examples.js +144 -0
- package/dist/test/collections/schematic.examples.js.map +1 -0
- package/dist/test/collections/table.examples.d.ts +0 -11
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +170 -495
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.d.ts.map +1 -1
- package/dist/test/collections/tree-view.examples.js +125 -156
- package/dist/test/collections/tree-view.examples.js.map +1 -1
- package/dist/test/container/card.examples.d.ts.map +1 -1
- package/dist/test/container/card.examples.js +26 -111
- package/dist/test/container/card.examples.js.map +1 -1
- package/dist/test/container/index.d.ts +7 -0
- package/dist/test/container/index.d.ts.map +1 -0
- package/dist/test/container/index.js +7 -0
- package/dist/test/container/index.js.map +1 -0
- package/dist/test/disclosure/accordion.examples.d.ts.map +1 -1
- package/dist/test/disclosure/accordion.examples.js +41 -106
- package/dist/test/disclosure/accordion.examples.js.map +1 -1
- package/dist/test/disclosure/carousel.examples.d.ts.map +1 -1
- package/dist/test/disclosure/carousel.examples.js +14 -104
- package/dist/test/disclosure/carousel.examples.js.map +1 -1
- package/dist/test/disclosure/collapsible.examples.d.ts.map +1 -1
- package/dist/test/disclosure/collapsible.examples.js +10 -22
- package/dist/test/disclosure/collapsible.examples.js.map +1 -1
- package/dist/test/disclosure/index.d.ts +5 -0
- package/dist/test/disclosure/index.d.ts.map +1 -1
- package/dist/test/disclosure/index.js +5 -0
- package/dist/test/disclosure/index.js.map +1 -1
- package/dist/test/disclosure/option-list.examples.d.ts.map +1 -1
- package/dist/test/disclosure/option-list.examples.js +21 -44
- package/dist/test/disclosure/option-list.examples.js.map +1 -1
- package/dist/test/disclosure/segment-group.examples.d.ts.map +1 -1
- package/dist/test/disclosure/segment-group.examples.js +29 -43
- package/dist/test/disclosure/segment-group.examples.js.map +1 -1
- package/dist/test/disclosure/show-more.examples.d.ts.map +1 -1
- package/dist/test/disclosure/show-more.examples.js +8 -8
- package/dist/test/disclosure/show-more.examples.js.map +1 -1
- package/dist/test/disclosure/tabs.examples.d.ts.map +1 -1
- package/dist/test/disclosure/tabs.examples.js +56 -146
- package/dist/test/disclosure/tabs.examples.js.map +1 -1
- package/dist/test/display/avatar-group.examples.d.ts +1 -4
- package/dist/test/display/avatar-group.examples.d.ts.map +1 -1
- package/dist/test/display/avatar-group.examples.js +18 -17
- package/dist/test/display/avatar-group.examples.js.map +1 -1
- package/dist/test/display/avatar.examples.d.ts +1 -0
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +21 -28
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/badge.examples.d.ts +1 -0
- package/dist/test/display/badge.examples.d.ts.map +1 -1
- package/dist/test/display/badge.examples.js +26 -64
- package/dist/test/display/badge.examples.js.map +1 -1
- package/dist/test/display/bar-strip.examples.d.ts +1 -4
- package/dist/test/display/bar-strip.examples.d.ts.map +1 -1
- package/dist/test/display/bar-strip.examples.js +41 -18
- package/dist/test/display/bar-strip.examples.js.map +1 -1
- package/dist/test/display/chip-rail.examples.d.ts +7 -0
- package/dist/test/display/chip-rail.examples.d.ts.map +1 -0
- package/dist/test/display/chip-rail.examples.js +59 -0
- package/dist/test/display/chip-rail.examples.js.map +1 -0
- package/dist/test/display/combine.examples.d.ts +2 -0
- package/dist/test/display/combine.examples.d.ts.map +1 -0
- package/dist/test/display/combine.examples.js +174 -0
- package/dist/test/display/combine.examples.js.map +1 -0
- package/dist/test/display/editable-chip.examples.d.ts +1 -4
- package/dist/test/display/editable-chip.examples.d.ts.map +1 -1
- package/dist/test/display/editable-chip.examples.js +22 -18
- package/dist/test/display/editable-chip.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +10 -25
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/display/index.d.ts +11 -0
- package/dist/test/display/index.d.ts.map +1 -1
- package/dist/test/display/index.js +11 -0
- package/dist/test/display/index.js.map +1 -1
- package/dist/test/display/kbd.examples.d.ts +1 -4
- package/dist/test/display/kbd.examples.d.ts.map +1 -1
- package/dist/test/display/kbd.examples.js +18 -8
- package/dist/test/display/kbd.examples.js.map +1 -1
- package/dist/test/display/meter.examples.d.ts +1 -4
- package/dist/test/display/meter.examples.d.ts.map +1 -1
- package/dist/test/display/meter.examples.js +19 -9
- package/dist/test/display/meter.examples.js.map +1 -1
- package/dist/test/display/metric-chip.examples.d.ts +1 -4
- package/dist/test/display/metric-chip.examples.d.ts.map +1 -1
- package/dist/test/display/metric-chip.examples.js +19 -9
- package/dist/test/display/metric-chip.examples.js.map +1 -1
- package/dist/test/display/segmented-meter.examples.d.ts +1 -4
- package/dist/test/display/segmented-meter.examples.d.ts.map +1 -1
- package/dist/test/display/segmented-meter.examples.js +40 -14
- package/dist/test/display/segmented-meter.examples.js.map +1 -1
- package/dist/test/display/stat.examples.d.ts +1 -0
- package/dist/test/display/stat.examples.d.ts.map +1 -1
- package/dist/test/display/stat.examples.js +22 -28
- package/dist/test/display/stat.examples.js.map +1 -1
- package/dist/test/display/tag.examples.d.ts +1 -0
- package/dist/test/display/tag.examples.d.ts.map +1 -1
- package/dist/test/display/tag.examples.js +25 -71
- package/dist/test/display/tag.examples.js.map +1 -1
- package/dist/test/display/trace.examples.d.ts +5 -0
- package/dist/test/display/trace.examples.d.ts.map +1 -0
- package/dist/test/display/trace.examples.js +62 -0
- package/dist/test/display/trace.examples.js.map +1 -0
- package/dist/test/extension.examples.d.ts +1 -27
- package/dist/test/extension.examples.d.ts.map +1 -1
- package/dist/test/extension.examples.js +34 -42
- package/dist/test/extension.examples.js.map +1 -1
- package/dist/test/feedback/banner.examples.d.ts.map +1 -1
- package/dist/test/feedback/banner.examples.js +13 -37
- package/dist/test/feedback/banner.examples.js.map +1 -1
- package/dist/test/feedback/empty-state.examples.d.ts.map +1 -1
- package/dist/test/feedback/empty-state.examples.js +7 -19
- package/dist/test/feedback/empty-state.examples.js.map +1 -1
- package/dist/test/feedback/index.d.ts +5 -0
- package/dist/test/feedback/index.d.ts.map +1 -1
- package/dist/test/feedback/index.js +5 -0
- package/dist/test/feedback/index.js.map +1 -1
- package/dist/test/feedback/progress.examples.d.ts +0 -1
- package/dist/test/feedback/progress.examples.d.ts.map +1 -1
- package/dist/test/feedback/progress.examples.js +13 -55
- package/dist/test/feedback/progress.examples.js.map +1 -1
- package/dist/test/feedback/skeleton.examples.d.ts.map +1 -1
- package/dist/test/feedback/skeleton.examples.js +7 -11
- package/dist/test/feedback/skeleton.examples.js.map +1 -1
- package/dist/test/feedback/status.examples.d.ts.map +1 -1
- package/dist/test/feedback/status.examples.js +8 -17
- package/dist/test/feedback/status.examples.js.map +1 -1
- package/dist/test/forms/checkbox.examples.d.ts.map +1 -1
- package/dist/test/forms/checkbox.examples.js +9 -23
- package/dist/test/forms/checkbox.examples.js.map +1 -1
- package/dist/test/forms/combobox.examples.d.ts.map +1 -1
- package/dist/test/forms/combobox.examples.js +69 -112
- package/dist/test/forms/combobox.examples.js.map +1 -1
- package/dist/test/forms/date-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/date-range-input.examples.js +16 -34
- package/dist/test/forms/date-range-input.examples.js.map +1 -1
- package/dist/test/forms/field.examples.d.ts.map +1 -1
- package/dist/test/forms/field.examples.js +8 -28
- package/dist/test/forms/field.examples.js.map +1 -1
- package/dist/test/forms/file-upload.examples.d.ts +1 -0
- package/dist/test/forms/file-upload.examples.d.ts.map +1 -1
- package/dist/test/forms/file-upload.examples.js +23 -49
- package/dist/test/forms/file-upload.examples.js.map +1 -1
- package/dist/test/forms/index.d.ts +5 -0
- package/dist/test/forms/index.d.ts.map +1 -1
- package/dist/test/forms/index.js +5 -0
- package/dist/test/forms/index.js.map +1 -1
- package/dist/test/forms/input.examples.d.ts +1 -0
- package/dist/test/forms/input.examples.d.ts.map +1 -1
- package/dist/test/forms/input.examples.js +30 -74
- package/dist/test/forms/input.examples.js.map +1 -1
- package/dist/test/forms/radio-card-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-card-group.examples.js +30 -36
- package/dist/test/forms/radio-card-group.examples.js.map +1 -1
- package/dist/test/forms/radio-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-group.examples.js +31 -37
- package/dist/test/forms/radio-group.examples.js.map +1 -1
- package/dist/test/forms/select.examples.d.ts.map +1 -1
- package/dist/test/forms/select.examples.js +32 -44
- package/dist/test/forms/select.examples.js.map +1 -1
- package/dist/test/forms/slider.examples.d.ts.map +1 -1
- package/dist/test/forms/slider.examples.js +11 -22
- package/dist/test/forms/slider.examples.js.map +1 -1
- package/dist/test/forms/switch.examples.d.ts.map +1 -1
- package/dist/test/forms/switch.examples.js +9 -23
- package/dist/test/forms/switch.examples.js.map +1 -1
- package/dist/test/forms/tags-input.examples.d.ts.map +1 -1
- package/dist/test/forms/tags-input.examples.js +14 -42
- package/dist/test/forms/tags-input.examples.js.map +1 -1
- package/dist/test/forms/textarea.examples.d.ts.map +1 -1
- package/dist/test/forms/textarea.examples.js +14 -46
- package/dist/test/forms/textarea.examples.js.map +1 -1
- package/dist/test/forms/time-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/time-range-input.examples.js +20 -38
- package/dist/test/forms/time-range-input.examples.js.map +1 -1
- package/dist/test/layout/box.examples.d.ts.map +1 -1
- package/dist/test/layout/box.examples.js +20 -180
- package/dist/test/layout/box.examples.js.map +1 -1
- package/dist/test/layout/flex.examples.d.ts.map +1 -1
- package/dist/test/layout/flex.examples.js +15 -133
- package/dist/test/layout/flex.examples.js.map +1 -1
- package/dist/test/layout/grid.examples.d.ts.map +1 -1
- package/dist/test/layout/grid.examples.js +66 -105
- package/dist/test/layout/grid.examples.js.map +1 -1
- package/dist/test/layout/index.d.ts +3 -0
- package/dist/test/layout/index.d.ts.map +1 -1
- package/dist/test/layout/index.js +3 -0
- package/dist/test/layout/index.js.map +1 -1
- package/dist/test/layout/scroll-area.examples.d.ts.map +1 -1
- package/dist/test/layout/scroll-area.examples.js +6 -14
- package/dist/test/layout/scroll-area.examples.js.map +1 -1
- package/dist/test/layout/separator.examples.d.ts.map +1 -1
- package/dist/test/layout/separator.examples.js +17 -74
- package/dist/test/layout/separator.examples.js.map +1 -1
- package/dist/test/layout/splitter.examples.d.ts.map +1 -1
- package/dist/test/layout/splitter.examples.js +41 -70
- package/dist/test/layout/splitter.examples.js.map +1 -1
- package/dist/test/layout/stack.examples.d.ts +1 -0
- package/dist/test/layout/stack.examples.d.ts.map +1 -1
- package/dist/test/layout/stack.examples.js +24 -93
- package/dist/test/layout/stack.examples.js.map +1 -1
- package/dist/test/layout/sticky.examples.d.ts.map +1 -1
- package/dist/test/layout/sticky.examples.js +6 -33
- package/dist/test/layout/sticky.examples.js.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.d.ts.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.js +30 -26
- package/dist/test/navigation/breadcrumb.examples.js.map +1 -1
- package/dist/test/navigation/index.d.ts +8 -0
- package/dist/test/navigation/index.d.ts.map +1 -0
- package/dist/test/navigation/index.js +8 -0
- package/dist/test/navigation/index.js.map +1 -0
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +58 -60
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/overlays/command-palette.examples.d.ts.map +1 -1
- package/dist/test/overlays/command-palette.examples.js +45 -47
- package/dist/test/overlays/command-palette.examples.js.map +1 -1
- package/dist/test/overlays/dialog.examples.d.ts.map +1 -1
- package/dist/test/overlays/dialog.examples.js +13 -41
- package/dist/test/overlays/dialog.examples.js.map +1 -1
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +15 -39
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/dist/test/overlays/hover-card.examples.d.ts.map +1 -1
- package/dist/test/overlays/hover-card.examples.js +13 -32
- package/dist/test/overlays/hover-card.examples.js.map +1 -1
- package/dist/test/overlays/index.d.ts +2 -0
- package/dist/test/overlays/index.d.ts.map +1 -1
- package/dist/test/overlays/index.js +2 -0
- package/dist/test/overlays/index.js.map +1 -1
- package/dist/test/overlays/menu.examples.d.ts.map +1 -1
- package/dist/test/overlays/menu.examples.js +26 -21
- package/dist/test/overlays/menu.examples.js.map +1 -1
- package/dist/test/overlays/popover.examples.d.ts.map +1 -1
- package/dist/test/overlays/popover.examples.js +17 -33
- package/dist/test/overlays/popover.examples.js.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.d.ts.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.js +9 -20
- package/dist/test/overlays/toggle-tip.examples.js.map +1 -1
- package/dist/test/overlays/tooltip.examples.d.ts.map +1 -1
- package/dist/test/overlays/tooltip.examples.js +8 -5
- package/dist/test/overlays/tooltip.examples.js.map +1 -1
- package/dist/test/platform/clipboard.examples.d.ts.map +1 -1
- package/dist/test/platform/clipboard.examples.js +10 -14
- package/dist/test/platform/clipboard.examples.js.map +1 -1
- package/dist/test/platform/download.examples.d.ts.map +1 -1
- package/dist/test/platform/download.examples.js +10 -11
- package/dist/test/platform/download.examples.js.map +1 -1
- package/dist/test/platform/index.d.ts +11 -0
- package/dist/test/platform/index.d.ts.map +1 -0
- package/dist/test/platform/index.js +11 -0
- package/dist/test/platform/index.js.map +1 -0
- package/dist/test/platform/share.examples.d.ts.map +1 -1
- package/dist/test/platform/share.examples.js +7 -6
- package/dist/test/platform/share.examples.js.map +1 -1
- package/dist/test/platform/slice.examples.d.ts.map +1 -1
- package/dist/test/platform/slice.examples.js +211 -214
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/platform/state.examples.d.ts.map +1 -1
- package/dist/test/platform/state.examples.js +7 -9
- package/dist/test/platform/state.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +10 -17
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +184 -483
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/dist/test/style.examples.d.ts.map +1 -1
- package/dist/test/style.examples.js +28 -74
- package/dist/test/style.examples.js.map +1 -1
- package/dist/test/typography/code-block.examples.d.ts.map +1 -1
- package/dist/test/typography/code-block.examples.js +16 -43
- package/dist/test/typography/code-block.examples.js.map +1 -1
- package/dist/test/typography/code.examples.d.ts.map +1 -1
- package/dist/test/typography/code.examples.js +14 -30
- package/dist/test/typography/code.examples.js.map +1 -1
- package/dist/test/typography/heading.examples.d.ts.map +1 -1
- package/dist/test/typography/heading.examples.js +15 -52
- package/dist/test/typography/heading.examples.js.map +1 -1
- package/dist/test/typography/highlight.examples.d.ts.map +1 -1
- package/dist/test/typography/highlight.examples.js +14 -16
- package/dist/test/typography/highlight.examples.js.map +1 -1
- package/dist/test/typography/index.d.ts +7 -4
- package/dist/test/typography/index.d.ts.map +1 -1
- package/dist/test/typography/index.js +7 -4
- package/dist/test/typography/index.js.map +1 -1
- package/dist/test/typography/link.examples.d.ts.map +1 -1
- package/dist/test/typography/link.examples.js +14 -30
- package/dist/test/typography/link.examples.js.map +1 -1
- package/dist/test/typography/list.examples.d.ts.map +1 -1
- package/dist/test/typography/list.examples.js +35 -79
- package/dist/test/typography/list.examples.js.map +1 -1
- package/dist/test/typography/mark.examples.d.ts.map +1 -1
- package/dist/test/typography/mark.examples.js +15 -33
- package/dist/test/typography/mark.examples.js.map +1 -1
- package/dist/test/typography/note.examples.d.ts.map +1 -1
- package/dist/test/typography/note.examples.js +8 -10
- package/dist/test/typography/note.examples.js.map +1 -1
- package/dist/test/typography/numeric.examples.d.ts.map +1 -1
- package/dist/test/typography/numeric.examples.js +10 -39
- package/dist/test/typography/numeric.examples.js.map +1 -1
- package/dist/test/typography/text.examples.d.ts.map +1 -1
- package/dist/test/typography/text.examples.js +25 -138
- package/dist/test/typography/text.examples.js.map +1 -1
- package/package.json +23 -15
- package/dist/src/charts/area/index.d.ts +0 -186
- package/dist/src/charts/area/index.d.ts.map +0 -1
- package/dist/src/charts/area/index.js +0 -419
- package/dist/src/charts/area/index.js.map +0 -1
- package/dist/src/charts/area/types.d.ts +0 -1816
- package/dist/src/charts/area/types.d.ts.map +0 -1
- package/dist/src/charts/area/types.js +0 -130
- package/dist/src/charts/area/types.js.map +0 -1
- package/dist/src/charts/bar/index.d.ts +0 -97
- package/dist/src/charts/bar/index.d.ts.map +0 -1
- package/dist/src/charts/bar/index.js +0 -228
- package/dist/src/charts/bar/index.js.map +0 -1
- package/dist/src/charts/bar/types.d.ts +0 -920
- package/dist/src/charts/bar/types.d.ts.map +0 -1
- package/dist/src/charts/bar/types.js +0 -62
- package/dist/src/charts/bar/types.js.map +0 -1
- package/dist/src/charts/composed/index.d.ts +0 -99
- package/dist/src/charts/composed/index.d.ts.map +0 -1
- package/dist/src/charts/composed/index.js +0 -317
- package/dist/src/charts/composed/index.js.map +0 -1
- package/dist/src/charts/composed/types.d.ts +0 -1246
- package/dist/src/charts/composed/types.d.ts.map +0 -1
- package/dist/src/charts/composed/types.js +0 -88
- package/dist/src/charts/composed/types.js.map +0 -1
- package/dist/src/charts/line/index.d.ts +0 -97
- package/dist/src/charts/line/index.d.ts.map +0 -1
- package/dist/src/charts/line/index.js +0 -221
- package/dist/src/charts/line/index.js.map +0 -1
- package/dist/src/charts/line/types.d.ts +0 -964
- package/dist/src/charts/line/types.d.ts.map +0 -1
- package/dist/src/charts/line/types.js +0 -95
- package/dist/src/charts/line/types.js.map +0 -1
- package/dist/src/charts/pie/index.d.ts +0 -36
- package/dist/src/charts/pie/index.d.ts.map +0 -1
- package/dist/src/charts/pie/index.js +0 -58
- package/dist/src/charts/pie/index.js.map +0 -1
- package/dist/src/charts/pie/types.d.ts +0 -129
- package/dist/src/charts/pie/types.d.ts.map +0 -1
- package/dist/src/charts/pie/types.js +0 -58
- package/dist/src/charts/pie/types.js.map +0 -1
- package/dist/src/charts/radar/index.d.ts +0 -44
- package/dist/src/charts/radar/index.d.ts.map +0 -1
- package/dist/src/charts/radar/index.js +0 -85
- package/dist/src/charts/radar/index.js.map +0 -1
- package/dist/src/charts/radar/types.d.ts +0 -144
- package/dist/src/charts/radar/types.d.ts.map +0 -1
- package/dist/src/charts/radar/types.js +0 -36
- package/dist/src/charts/radar/types.js.map +0 -1
- package/dist/src/charts/scatter/index.d.ts +0 -95
- package/dist/src/charts/scatter/index.d.ts.map +0 -1
- package/dist/src/charts/scatter/index.js +0 -167
- package/dist/src/charts/scatter/index.js.map +0 -1
- package/dist/src/charts/scatter/types.d.ts +0 -868
- package/dist/src/charts/scatter/types.d.ts.map +0 -1
- package/dist/src/charts/scatter/types.js +0 -55
- package/dist/src/charts/scatter/types.js.map +0 -1
- package/dist/src/charts/types.d.ts +0 -2476
- package/dist/src/charts/types.d.ts.map +0 -1
- package/dist/src/charts/types.js +0 -1732
- package/dist/src/charts/types.js.map +0 -1
- package/dist/src/forms/time-scale-control/index.d.ts +0 -54
- package/dist/src/forms/time-scale-control/index.d.ts.map +0 -1
- package/dist/src/forms/time-scale-control/index.js +0 -135
- package/dist/src/forms/time-scale-control/index.js.map +0 -1
- package/dist/src/forms/time-scale-control/types.d.ts +0 -206
- package/dist/src/forms/time-scale-control/types.d.ts.map +0 -1
- package/dist/src/forms/time-scale-control/types.js +0 -97
- package/dist/src/forms/time-scale-control/types.js.map +0 -1
- package/dist/src/layout/chip-rail/index.d.ts +0 -31771
- package/dist/src/layout/chip-rail/index.d.ts.map +0 -1
- package/dist/src/layout/chip-rail/index.js.map +0 -1
- package/dist/src/layout/chip-rail/types.d.ts.map +0 -1
- package/dist/src/layout/chip-rail/types.js.map +0 -1
- package/dist/src/slice/chart/index.d.ts +0 -201
- package/dist/src/slice/chart/index.d.ts.map +0 -1
- package/dist/src/slice/chart/index.js +0 -67
- package/dist/src/slice/chart/index.js.map +0 -1
- package/dist/src/slice/frame/index.d.ts +0 -77
- package/dist/src/slice/frame/index.d.ts.map +0 -1
- package/dist/src/slice/frame/index.js +0 -60
- package/dist/src/slice/frame/index.js.map +0 -1
- package/dist/test/charts/area.examples.d.ts +0 -30
- package/dist/test/charts/area.examples.d.ts.map +0 -1
- package/dist/test/charts/area.examples.js +0 -695
- package/dist/test/charts/area.examples.js.map +0 -1
- package/dist/test/charts/bar.examples.d.ts +0 -26
- package/dist/test/charts/bar.examples.d.ts.map +0 -1
- package/dist/test/charts/bar.examples.js +0 -561
- package/dist/test/charts/bar.examples.js.map +0 -1
- package/dist/test/charts/composed.examples.d.ts +0 -25
- package/dist/test/charts/composed.examples.d.ts.map +0 -1
- package/dist/test/charts/composed.examples.js +0 -616
- package/dist/test/charts/composed.examples.js.map +0 -1
- package/dist/test/charts/line.examples.d.ts +0 -29
- package/dist/test/charts/line.examples.d.ts.map +0 -1
- package/dist/test/charts/line.examples.js +0 -657
- package/dist/test/charts/line.examples.js.map +0 -1
- package/dist/test/charts/pie.examples.d.ts +0 -12
- package/dist/test/charts/pie.examples.d.ts.map +0 -1
- package/dist/test/charts/pie.examples.js +0 -137
- package/dist/test/charts/pie.examples.js.map +0 -1
- package/dist/test/charts/radar.examples.d.ts +0 -10
- package/dist/test/charts/radar.examples.d.ts.map +0 -1
- package/dist/test/charts/radar.examples.js +0 -123
- package/dist/test/charts/radar.examples.js.map +0 -1
- package/dist/test/charts/scatter.examples.d.ts +0 -22
- package/dist/test/charts/scatter.examples.d.ts.map +0 -1
- package/dist/test/charts/scatter.examples.js +0 -461
- package/dist/test/charts/scatter.examples.js.map +0 -1
- package/dist/test/forms/time-scale-control.examples.d.ts +0 -6
- package/dist/test/forms/time-scale-control.examples.d.ts.map +0 -1
- package/dist/test/forms/time-scale-control.examples.js +0 -70
- package/dist/test/forms/time-scale-control.examples.js.map +0 -1
- package/dist/test/layout/chip-rail.examples.d.ts +0 -4
- package/dist/test/layout/chip-rail.examples.d.ts.map +0 -1
- package/dist/test/layout/chip-rail.examples.js +0 -48
- package/dist/test/layout/chip-rail.examples.js.map +0 -1
|
@@ -2,149 +2,119 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { East, ArrayType,
|
|
6
|
-
import {
|
|
5
|
+
import { East, ArrayType, DictType, FloatType, FunctionType, NullType, OptionType, StringType, StructType, variant, some, none, } from "@elaraai/east";
|
|
6
|
+
import { AlignType, LabelInputType, FontWeightType, FontStyleType, SizeType, } from "../../style.js";
|
|
7
|
+
import { DensityType } from "../../style/interaction.js";
|
|
7
8
|
import { UIComponentType } from "../../component.js";
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
9
|
+
import { MatrixFillType, MatrixSegmentType, MatrixMarkerType, MatrixCornerType, MatrixOrientationType, MatrixLegendEntryType, MatrixCellClickEventType, MatrixSegmentClickEventType, MatrixSegmentChangeEventType, StatusValueType, } from "./types.js";
|
|
10
|
+
// Re-export the UIComp-free types so consumers can reach everything via this module.
|
|
11
|
+
export { MatrixFillType, MatrixSegmentType, MatrixMarkerType, MatrixCornerType, MatrixOrientationType, MatrixLegendEntryType, MatrixCellClickEventType, MatrixSegmentClickEventType, MatrixSegmentChangeEventType, } from "./types.js";
|
|
10
12
|
// ============================================================================
|
|
11
|
-
// Cell
|
|
13
|
+
// Cell / Row / Column (UIComp-coupled — cell carries free slot + popover)
|
|
12
14
|
// ============================================================================
|
|
13
15
|
/**
|
|
14
|
-
* East StructType for a cell
|
|
16
|
+
* East StructType for a Matrix cell.
|
|
15
17
|
*
|
|
16
18
|
* @remarks
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* A cell's body is a weighted **segment bar** (status-coloured), unless `slot`
|
|
20
|
+
* is set — then the free-slot UIComponent renders in its place. `markers` are
|
|
21
|
+
* status flags (the Matrix analogue of `Planner.marker`): each tints a corner
|
|
22
|
+
* ring and pins a status icon/badge over the bar. `orientation` overrides the
|
|
23
|
+
* matrix default for this cell. `popover` is the click-triggered rich body
|
|
24
|
+
* (popover-only, like the Planner event — no tooltip).
|
|
21
25
|
*
|
|
22
|
-
* @property
|
|
23
|
-
* @property
|
|
24
|
-
* @property
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
content: UIComponentType,
|
|
28
|
-
align: AlignType,
|
|
29
|
-
verticalAlign: AlignType,
|
|
30
|
-
});
|
|
31
|
-
// ============================================================================
|
|
32
|
-
// Cell
|
|
33
|
-
// ============================================================================
|
|
34
|
-
/**
|
|
35
|
-
* East StructType for a matrix cell.
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Cells live inside a `DictType(StringType, MatrixCellType)` keyed by
|
|
39
|
-
* column key, so the cell itself no longer needs a `columnKey` field.
|
|
40
|
-
* Emphasis is expressed by the presence of `emphasisColor` (nullable
|
|
41
|
-
* string) — no separate boolean flag.
|
|
42
|
-
*
|
|
43
|
-
* Two rich-content slots:
|
|
44
|
-
* - `tooltip` — hover-triggered, a Chakra Tooltip wraps the cell.
|
|
45
|
-
* - `popover` — click-triggered, a Chakra Popover wraps the cell.
|
|
46
|
-
*
|
|
47
|
-
* Both accept any UIComponent (Stat, Badge, mini chart, form, …).
|
|
48
|
-
* `popover` coexists with `onCellClick`: the click both fires the
|
|
49
|
-
* callback and opens the popover.
|
|
50
|
-
*
|
|
51
|
-
* @property segments - Horizontal / vertical segments (weighted, normalized)
|
|
52
|
-
* @property overlays - Overlay annotations
|
|
53
|
-
* @property emphasisColor - Presence = emphasized; value = ring colour override
|
|
54
|
-
* @property tooltip - Optional rich tooltip content (hover-triggered, UIComponent)
|
|
55
|
-
* @property popover - Optional rich popover content (click-triggered, UIComponent)
|
|
26
|
+
* @property segments - The weighted segment bar ({@link MatrixSegmentType})
|
|
27
|
+
* @property markers - Status flags layered over the bar ({@link MatrixMarkerType})
|
|
28
|
+
* @property orientation - Optional per-cell orientation override
|
|
29
|
+
* @property slot - Optional free-slot UIComponent (replaces the segment bar)
|
|
30
|
+
* @property popover - Optional click-triggered rich popover (UIComponent)
|
|
56
31
|
*/
|
|
57
32
|
export const MatrixCellType = StructType({
|
|
58
|
-
segments: ArrayType(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
33
|
+
segments: ArrayType(MatrixSegmentType),
|
|
34
|
+
markers: ArrayType(MatrixMarkerType),
|
|
35
|
+
orientation: OptionType(MatrixOrientationType),
|
|
36
|
+
slot: OptionType(UIComponentType),
|
|
62
37
|
popover: OptionType(UIComponentType),
|
|
63
38
|
});
|
|
64
|
-
// ============================================================================
|
|
65
|
-
// Row / Column
|
|
66
|
-
// ============================================================================
|
|
67
39
|
/**
|
|
68
|
-
* East StructType for a
|
|
40
|
+
* East StructType for a Matrix row.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* `value` is the row-header main text and `sublabel` its optional secondary
|
|
44
|
+
* line — the Planner row-header model (no avatar). `group` is the group-head
|
|
45
|
+
* band label (from `groupBy`, or a Slice breakdown). `cells` is keyed by
|
|
46
|
+
* column key.
|
|
69
47
|
*
|
|
70
|
-
* @property key -
|
|
71
|
-
* @property
|
|
48
|
+
* @property key - Stable row key
|
|
49
|
+
* @property value - Row-header main text (defaults to `key`)
|
|
50
|
+
* @property sublabel - Optional row-header secondary text
|
|
51
|
+
* @property group - Optional group-head label (groups consecutive rows)
|
|
72
52
|
* @property cells - Dict of column key → cell
|
|
73
53
|
*/
|
|
74
54
|
export const MatrixRowType = StructType({
|
|
75
55
|
key: StringType,
|
|
76
|
-
|
|
56
|
+
value: StringType,
|
|
57
|
+
sublabel: OptionType(StringType),
|
|
58
|
+
group: OptionType(StringType),
|
|
77
59
|
cells: DictType(StringType, MatrixCellType),
|
|
78
60
|
});
|
|
79
61
|
/**
|
|
80
|
-
* East StructType for a
|
|
62
|
+
* East StructType for a Matrix column.
|
|
81
63
|
*
|
|
82
|
-
* @
|
|
83
|
-
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* One x-axis column definition; cells are keyed against `key`, and `label`
|
|
66
|
+
* paints the centred mono column header (defaulting to the key when omitted).
|
|
67
|
+
*
|
|
68
|
+
* @property key - Stable column key (cells are keyed against it)
|
|
69
|
+
* @property label - Optional single header label (defaults to `key`)
|
|
84
70
|
*/
|
|
85
71
|
export const MatrixColumnType = StructType({
|
|
86
72
|
key: StringType,
|
|
87
|
-
|
|
88
|
-
});
|
|
89
|
-
// ============================================================================
|
|
90
|
-
// Legend entry
|
|
91
|
-
// ============================================================================
|
|
92
|
-
/**
|
|
93
|
-
* East StructType for a legend entry.
|
|
94
|
-
*
|
|
95
|
-
* @property category - Category name (matches segment.category)
|
|
96
|
-
* @property color - Swatch colour
|
|
97
|
-
* @property label - Optional human-readable label
|
|
98
|
-
*/
|
|
99
|
-
export const MatrixLegendEntryType = StructType({
|
|
100
|
-
category: StringType,
|
|
101
|
-
color: StringType,
|
|
102
|
-
label: OptionType(StringType),
|
|
73
|
+
label: OptionType(LabelInputType),
|
|
103
74
|
});
|
|
104
75
|
// ============================================================================
|
|
105
76
|
// Root
|
|
106
77
|
// ============================================================================
|
|
107
78
|
/**
|
|
108
|
-
* Standalone East StructType mirror of the inline `Matrix`
|
|
109
|
-
* `component.ts`.
|
|
79
|
+
* Standalone East StructType mirror of the inline `Matrix` arm in `component.ts`.
|
|
110
80
|
*
|
|
111
|
-
* @
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* @property
|
|
81
|
+
* @remarks
|
|
82
|
+
* The shape `Matrix.Root` produces and the renderer consumes: `rows` × `columns`
|
|
83
|
+
* with a status-coloured segment bar per cell, an optional `rowHeader` over the
|
|
84
|
+
* left identity column, a default `orientation`, an optional `legend`, and the
|
|
85
|
+
* `onCell/Segment*` callbacks. Pair it with a `Slice.Rail` for filter / search
|
|
86
|
+
* / breakdown / range.
|
|
87
|
+
*
|
|
88
|
+
* @property rows - Row data
|
|
89
|
+
* @property columns - Column definitions (the x-axis)
|
|
90
|
+
* @property rowHeader - Optional header label for the row-header (left) column
|
|
91
|
+
* @property orientation - Default cell orientation (per-cell overridable)
|
|
92
|
+
* @property legend - Optional explicit legend entries (omitted ⇒ auto-derived)
|
|
93
|
+
* @property minLabelSize - Optional min segment px below which in-bar labels hide
|
|
94
|
+
* @property density - Optional density preset (header/row rhythm)
|
|
95
|
+
* @property onCellClick - Optional cell-click callback
|
|
96
|
+
* @property onSegmentClick - Optional segment-click callback
|
|
97
|
+
* @property onSegmentChange - Optional segment drag-resize callback (presence ⇒ handles)
|
|
119
98
|
*/
|
|
120
99
|
export const MatrixRootType = StructType({
|
|
121
100
|
rows: ArrayType(MatrixRowType),
|
|
122
101
|
columns: ArrayType(MatrixColumnType),
|
|
102
|
+
rowHeader: OptionType(StringType),
|
|
103
|
+
orientation: MatrixOrientationType,
|
|
123
104
|
legend: OptionType(ArrayType(MatrixLegendEntryType)),
|
|
124
|
-
|
|
125
|
-
|
|
105
|
+
minLabelSize: OptionType(FloatType),
|
|
106
|
+
density: OptionType(DensityType),
|
|
107
|
+
onCellClick: OptionType(FunctionType([MatrixCellClickEventType], NullType)),
|
|
126
108
|
onSegmentClick: OptionType(FunctionType([MatrixSegmentClickEventType], NullType)),
|
|
127
109
|
onSegmentChange: OptionType(FunctionType([MatrixSegmentChangeEventType], NullType)),
|
|
128
|
-
style: OptionType(MatrixStyleType),
|
|
129
110
|
});
|
|
130
|
-
const CellAddressableHelper = {
|
|
131
|
-
cellId: (rowKey, columnKey) => `${rowKey}:${columnKey}`,
|
|
132
|
-
};
|
|
133
111
|
// ============================================================================
|
|
134
|
-
//
|
|
112
|
+
// Label helpers (shared shape with Gantt/Planner)
|
|
135
113
|
// ============================================================================
|
|
136
114
|
function buildAlign(a) {
|
|
137
|
-
|
|
138
|
-
return East.value(variant("center", null), AlignType);
|
|
139
|
-
if (typeof a === "string") {
|
|
140
|
-
return East.value(variant(a, null), AlignType);
|
|
141
|
-
}
|
|
142
|
-
return a;
|
|
115
|
+
return typeof a === "string" ? East.value(variant(a, null), AlignType) : a;
|
|
143
116
|
}
|
|
144
117
|
function isLabelInputObject(input) {
|
|
145
|
-
// LabelInput is a plain JS object with a `value` field. Strings, numbers,
|
|
146
|
-
// and East expressions (which are objects keyed by symbols + `type`) don't
|
|
147
|
-
// expose a `value` property.
|
|
148
118
|
return (typeof input === "object"
|
|
149
119
|
&& input !== null
|
|
150
120
|
&& !Array.isArray(input)
|
|
@@ -155,29 +125,19 @@ function buildLabel(input) {
|
|
|
155
125
|
if (!isLabelInputObject(input)) {
|
|
156
126
|
return East.value({
|
|
157
127
|
value: input,
|
|
158
|
-
align: none,
|
|
159
|
-
|
|
160
|
-
color: none,
|
|
161
|
-
fontWeight: none,
|
|
162
|
-
fontStyle: none,
|
|
163
|
-
fontSize: none,
|
|
128
|
+
align: none, verticalAlign: none, color: none,
|
|
129
|
+
fontWeight: none, fontStyle: none, fontSize: none,
|
|
164
130
|
}, LabelInputType);
|
|
165
131
|
}
|
|
166
132
|
const li = input;
|
|
167
133
|
const fontWeightValue = li.fontWeight !== undefined
|
|
168
|
-
? (typeof li.fontWeight === "string"
|
|
169
|
-
? East.value(variant(li.fontWeight, null), FontWeightType)
|
|
170
|
-
: li.fontWeight)
|
|
134
|
+
? (typeof li.fontWeight === "string" ? East.value(variant(li.fontWeight, null), FontWeightType) : li.fontWeight)
|
|
171
135
|
: undefined;
|
|
172
136
|
const fontStyleValue = li.fontStyle !== undefined
|
|
173
|
-
? (typeof li.fontStyle === "string"
|
|
174
|
-
? East.value(variant(li.fontStyle, null), FontStyleType)
|
|
175
|
-
: li.fontStyle)
|
|
137
|
+
? (typeof li.fontStyle === "string" ? East.value(variant(li.fontStyle, null), FontStyleType) : li.fontStyle)
|
|
176
138
|
: undefined;
|
|
177
139
|
const fontSizeValue = li.fontSize !== undefined
|
|
178
|
-
? (typeof li.fontSize === "string"
|
|
179
|
-
? East.value(variant(li.fontSize, null), SizeType)
|
|
180
|
-
: li.fontSize)
|
|
140
|
+
? (typeof li.fontSize === "string" ? East.value(variant(li.fontSize, null), SizeType) : li.fontSize)
|
|
181
141
|
: undefined;
|
|
182
142
|
return East.value({
|
|
183
143
|
value: li.value,
|
|
@@ -189,246 +149,532 @@ function buildLabel(input) {
|
|
|
189
149
|
fontSize: fontSizeValue ? some(fontSizeValue) : none,
|
|
190
150
|
}, LabelInputType);
|
|
191
151
|
}
|
|
192
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Builds a Matrix segment East value from flat input.
|
|
154
|
+
*
|
|
155
|
+
* @param input - Segment configuration ({@link MatrixSegmentInput})
|
|
156
|
+
* @returns An East expression of {@link MatrixSegmentType}
|
|
157
|
+
*
|
|
158
|
+
* @remarks
|
|
159
|
+
* Internal builder behind `Matrix.segment`; that namespace property carries the
|
|
160
|
+
* documented, test-validated `East.function` example.
|
|
161
|
+
*/
|
|
162
|
+
function createSegment(input) {
|
|
163
|
+
const fillValue = (input.fill === undefined || typeof input.fill === "string")
|
|
164
|
+
? variant((input.fill ?? "brand"), null)
|
|
165
|
+
: input.fill;
|
|
193
166
|
return East.value({
|
|
194
|
-
|
|
195
|
-
weight:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
min:
|
|
199
|
-
max:
|
|
200
|
-
step:
|
|
201
|
-
},
|
|
167
|
+
fill: fillValue,
|
|
168
|
+
weight: input.weight,
|
|
169
|
+
label: input.label !== undefined ? some(buildLabel(input.label)) : none,
|
|
170
|
+
color: input.color !== undefined ? some(input.color) : none,
|
|
171
|
+
min: input.min !== undefined ? some(input.min) : none,
|
|
172
|
+
max: input.max !== undefined ? some(input.max) : none,
|
|
173
|
+
step: input.step !== undefined ? some(input.step) : none,
|
|
174
|
+
}, MatrixSegmentType);
|
|
202
175
|
}
|
|
203
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Builds a Matrix marker (cell status flag) East value from flat input — the
|
|
178
|
+
* Matrix analogue of `Planner.marker`.
|
|
179
|
+
*
|
|
180
|
+
* @param input - Marker configuration ({@link MatrixMarkerInput})
|
|
181
|
+
* @returns An East expression of {@link MatrixMarkerType}
|
|
182
|
+
*
|
|
183
|
+
* @remarks
|
|
184
|
+
* Internal builder behind `Matrix.marker`; that namespace property carries the
|
|
185
|
+
* documented, test-validated `East.function` example.
|
|
186
|
+
*/
|
|
187
|
+
function createMarker(input) {
|
|
188
|
+
const atValue = (input.at === undefined || typeof input.at === "string")
|
|
189
|
+
? variant((input.at ?? "tr"), null)
|
|
190
|
+
: input.at;
|
|
191
|
+
const statusValue = (input.status === undefined || typeof input.status === "string")
|
|
192
|
+
? variant((input.status ?? "danger"), null)
|
|
193
|
+
: input.status;
|
|
204
194
|
return East.value({
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
195
|
+
at: atValue,
|
|
196
|
+
status: statusValue,
|
|
197
|
+
message: input.message,
|
|
198
|
+
label: input.label !== undefined ? some(input.label) : none,
|
|
199
|
+
}, MatrixMarkerType);
|
|
209
200
|
}
|
|
210
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Builds a Matrix cell East value from flat input.
|
|
203
|
+
*
|
|
204
|
+
* @param input - Cell configuration ({@link MatrixCellInput})
|
|
205
|
+
* @returns An East expression of {@link MatrixCellType}
|
|
206
|
+
*
|
|
207
|
+
* @remarks
|
|
208
|
+
* Internal builder behind `Matrix.cell`; that namespace property carries the
|
|
209
|
+
* documented, test-validated `East.function` example.
|
|
210
|
+
*/
|
|
211
|
+
function createCell(input) {
|
|
212
|
+
const orientationValue = input.orientation !== undefined
|
|
213
|
+
? (typeof input.orientation === "string" ? East.value(variant(input.orientation, null), MatrixOrientationType) : input.orientation)
|
|
214
|
+
: undefined;
|
|
211
215
|
return East.value({
|
|
212
|
-
segments: (
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
popover:
|
|
216
|
+
segments: East.value(input.segments ?? [], ArrayType(MatrixSegmentType)),
|
|
217
|
+
markers: East.value(input.markers ?? [], ArrayType(MatrixMarkerType)),
|
|
218
|
+
orientation: orientationValue !== undefined ? some(orientationValue) : none,
|
|
219
|
+
slot: input.slot !== undefined ? some(input.slot) : none,
|
|
220
|
+
popover: input.popover !== undefined ? some(input.popover) : none,
|
|
217
221
|
}, MatrixCellType);
|
|
218
222
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
function buildColumn(c) {
|
|
223
|
+
/**
|
|
224
|
+
* Builds a Matrix column (one x-axis pivot column) East value from flat input —
|
|
225
|
+
* the constructor for the `columns` array.
|
|
226
|
+
*
|
|
227
|
+
* @param input - Column configuration ({@link MatrixColumnInput})
|
|
228
|
+
* @returns An East expression of {@link MatrixColumnType}
|
|
229
|
+
*
|
|
230
|
+
* @remarks
|
|
231
|
+
* Internal builder behind `Matrix.column`; that namespace property carries the
|
|
232
|
+
* documented example. Because the result is an East value (not a TS object), a
|
|
233
|
+
* `columns` array of these is a genuine `ArrayType<MatrixColumnType>` — so the
|
|
234
|
+
* x-axis can be data-driven (built with `.map` from upstream data) just as
|
|
235
|
+
* readily as written out literally.
|
|
236
|
+
*/
|
|
237
|
+
function createColumn(input) {
|
|
235
238
|
return East.value({
|
|
236
|
-
key:
|
|
237
|
-
|
|
239
|
+
key: input.key,
|
|
240
|
+
label: input.label !== undefined ? some(buildLabel(input.label)) : none,
|
|
238
241
|
}, MatrixColumnType);
|
|
239
242
|
}
|
|
240
|
-
function autoColourForCategory(category, rows) {
|
|
241
|
-
for (const row of rows) {
|
|
242
|
-
for (const cell of Object.values(row.cells)) {
|
|
243
|
-
if (!cell)
|
|
244
|
-
continue;
|
|
245
|
-
const c = cell;
|
|
246
|
-
for (const seg of c.segments ?? []) {
|
|
247
|
-
if (seg.category === category && typeof seg.color === "string") {
|
|
248
|
-
return seg.color;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return undefined;
|
|
254
|
-
}
|
|
255
|
-
function buildLegend(entries, rows) {
|
|
256
|
-
return East.value(entries.map(e => East.value({
|
|
257
|
-
category: e.category,
|
|
258
|
-
color: e.color !== undefined
|
|
259
|
-
? e.color
|
|
260
|
-
: (autoColourForCategory(e.category, rows) ?? "gray.400"),
|
|
261
|
-
label: e.label !== undefined ? some(e.label) : none,
|
|
262
|
-
}, MatrixLegendEntryType)), ArrayType(MatrixLegendEntryType));
|
|
263
|
-
}
|
|
264
|
-
function buildBrushSelection(b) {
|
|
265
|
-
return East.value({
|
|
266
|
-
enabled: b.enabled,
|
|
267
|
-
selected: b.selected !== undefined ? some(b.selected) : none,
|
|
268
|
-
onChange: b.onChange !== undefined
|
|
269
|
-
? some(East.value(b.onChange, FunctionType([ArrayType(MatrixBrushCoordType)], NullType)))
|
|
270
|
-
: none,
|
|
271
|
-
}, MatrixBrushSelectionType);
|
|
272
|
-
}
|
|
273
|
-
function buildMatrixStyle(style) {
|
|
274
|
-
if (style === undefined)
|
|
275
|
-
return undefined;
|
|
276
|
-
const hasAny = style.size !== undefined
|
|
277
|
-
|| style.showGridLines !== undefined
|
|
278
|
-
|| style.gridColor !== undefined
|
|
279
|
-
|| style.headerBackground !== undefined
|
|
280
|
-
|| style.headerColor !== undefined
|
|
281
|
-
|| style.cellBackground !== undefined
|
|
282
|
-
|| style.cellBorderRadius !== undefined
|
|
283
|
-
|| style.rowHeaderWidth !== undefined
|
|
284
|
-
|| style.columnHeaderHeight !== undefined
|
|
285
|
-
|| style.legendPosition !== undefined
|
|
286
|
-
|| style.emphasisColor !== undefined
|
|
287
|
-
|| style.selectedBackground !== undefined
|
|
288
|
-
|| style.selectedBorderColor !== undefined
|
|
289
|
-
|| style.hoverHighlightColor !== undefined
|
|
290
|
-
|| style.cellOrientation !== undefined
|
|
291
|
-
|| style.segmentLabelColor !== undefined
|
|
292
|
-
|| style.segmentLabelFontSize !== undefined
|
|
293
|
-
|| style.segmentLabelFontWeight !== undefined
|
|
294
|
-
|| style.minLabelSize !== undefined;
|
|
295
|
-
if (!hasAny)
|
|
296
|
-
return undefined;
|
|
297
|
-
const sizeValue = style.size !== undefined
|
|
298
|
-
? (typeof style.size === "string"
|
|
299
|
-
? East.value(variant(style.size, null), SizeType)
|
|
300
|
-
: style.size)
|
|
301
|
-
: undefined;
|
|
302
|
-
const legendPositionValue = style.legendPosition !== undefined
|
|
303
|
-
? (typeof style.legendPosition === "string"
|
|
304
|
-
? East.value(variant(style.legendPosition, null), MatrixLegendPositionType)
|
|
305
|
-
: style.legendPosition)
|
|
306
|
-
: undefined;
|
|
307
|
-
const orientationValue = style.cellOrientation !== undefined
|
|
308
|
-
? (typeof style.cellOrientation === "string"
|
|
309
|
-
? East.value(variant(style.cellOrientation, null), MatrixCellOrientationType)
|
|
310
|
-
: style.cellOrientation)
|
|
311
|
-
: undefined;
|
|
312
|
-
return East.value({
|
|
313
|
-
size: sizeValue ? some(sizeValue) : none,
|
|
314
|
-
showGridLines: style.showGridLines !== undefined ? some(style.showGridLines) : none,
|
|
315
|
-
gridColor: style.gridColor !== undefined ? some(style.gridColor) : none,
|
|
316
|
-
headerBackground: style.headerBackground !== undefined ? some(style.headerBackground) : none,
|
|
317
|
-
headerColor: style.headerColor !== undefined ? some(style.headerColor) : none,
|
|
318
|
-
cellBackground: style.cellBackground !== undefined ? some(style.cellBackground) : none,
|
|
319
|
-
cellBorderRadius: style.cellBorderRadius !== undefined ? some(style.cellBorderRadius) : none,
|
|
320
|
-
rowHeaderWidth: style.rowHeaderWidth !== undefined ? some(style.rowHeaderWidth) : none,
|
|
321
|
-
columnHeaderHeight: style.columnHeaderHeight !== undefined ? some(style.columnHeaderHeight) : none,
|
|
322
|
-
legendPosition: legendPositionValue ? some(legendPositionValue) : none,
|
|
323
|
-
emphasisColor: style.emphasisColor !== undefined ? some(style.emphasisColor) : none,
|
|
324
|
-
selectedBackground: style.selectedBackground !== undefined ? some(style.selectedBackground) : none,
|
|
325
|
-
selectedBorderColor: style.selectedBorderColor !== undefined ? some(style.selectedBorderColor) : none,
|
|
326
|
-
hoverHighlightColor: style.hoverHighlightColor !== undefined ? some(style.hoverHighlightColor) : none,
|
|
327
|
-
cellOrientation: orientationValue ? some(orientationValue) : none,
|
|
328
|
-
segmentLabelColor: style.segmentLabelColor !== undefined ? some(style.segmentLabelColor) : none,
|
|
329
|
-
segmentLabelFontSize: style.segmentLabelFontSize !== undefined ? some(style.segmentLabelFontSize) : none,
|
|
330
|
-
segmentLabelFontWeight: style.segmentLabelFontWeight !== undefined ? some(style.segmentLabelFontWeight) : none,
|
|
331
|
-
minLabelSize: style.minLabelSize !== undefined ? some(style.minLabelSize) : none,
|
|
332
|
-
}, MatrixStyleType);
|
|
333
|
-
}
|
|
334
|
-
// ============================================================================
|
|
335
|
-
// Factory
|
|
336
|
-
// ============================================================================
|
|
337
243
|
/**
|
|
338
|
-
* Creates a Matrix
|
|
244
|
+
* Creates a Matrix — a row × column grid of status-coloured segment bars.
|
|
339
245
|
*
|
|
340
|
-
* @typeParam
|
|
341
|
-
* @param
|
|
342
|
-
* @param
|
|
343
|
-
* @
|
|
344
|
-
* @returns An East expression of type `UIComponentType`
|
|
246
|
+
* @typeParam T - The data array type
|
|
247
|
+
* @param data - The row data
|
|
248
|
+
* @param config - The Matrix configuration ({@link MatrixConfig})
|
|
249
|
+
* @returns An East expression of `UIComponentType`
|
|
345
250
|
*
|
|
346
251
|
* @remarks
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* edge matches the orientation — right in horizontal, bottom in
|
|
352
|
-
* vertical); `min` / `max` / `step` on segments act as resize
|
|
353
|
-
* constraints
|
|
354
|
-
*
|
|
355
|
-
* Brush selection is a controlled component: `brushSelection.selected`
|
|
356
|
-
* is the source of truth; the renderer syncs its local state to this
|
|
357
|
-
* value and fires `onChange` on drag-release.
|
|
358
|
-
*
|
|
359
|
-
* The DOM publishes `data-cell-id="{rowKey}:{columnKey}"` on every
|
|
360
|
-
* cell so consumer patterns (AssignmentBoard, RosterGrid) can
|
|
361
|
-
* address cells by coordinate — see `Matrix.CellAddressable.cellId`.
|
|
252
|
+
* Data + accessors (Planner parity): `columns` declares the x-axis, `cell`
|
|
253
|
+
* builds each `(row, column)` cell with `Matrix.cell(...)`, `groupBy` groups
|
|
254
|
+
* rows. Pair the result with a `Slice.Rail` to get filter / search /
|
|
255
|
+
* breakdown / range for free.
|
|
362
256
|
*
|
|
363
257
|
* @example
|
|
364
258
|
* ```ts
|
|
365
259
|
* import { East } from "@elaraai/east";
|
|
366
|
-
* import { Matrix,
|
|
260
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
367
261
|
*
|
|
368
|
-
* const example = East.function([], UIComponentType,
|
|
369
|
-
*
|
|
370
|
-
* [{
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
262
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
263
|
+
* Matrix.Root(
|
|
264
|
+
* [{ name: "Alice", booked: 0.7 }, { name: "Bob", booked: 0.4 }],
|
|
265
|
+
* {
|
|
266
|
+
* columns: [{ key: "mon", label: "Mon" }, { key: "tue", label: "Tue" }],
|
|
267
|
+
* rowKey: r => r.name,
|
|
268
|
+
* cell: (r, _col) => Matrix.cell({ segments: [
|
|
269
|
+
* Matrix.segment({ fill: "brand", weight: r.booked }),
|
|
270
|
+
* Matrix.segment({ fill: "free", weight: r.booked.subtract(1.0).multiply(-1.0) }),
|
|
271
|
+
* ]}),
|
|
272
|
+
* legend: [{ fill: "brand", label: "Booked" }, { fill: "free", label: "Free" }],
|
|
273
|
+
* },
|
|
274
|
+
* ));
|
|
378
275
|
* ```
|
|
379
276
|
*/
|
|
380
|
-
function createMatrix(
|
|
381
|
-
const
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
277
|
+
function createMatrix(data, config) {
|
|
278
|
+
const data_expr = East.value(data);
|
|
279
|
+
const cfg = config;
|
|
280
|
+
const columns_expr = East.value(cfg.columns, ArrayType(MatrixColumnType));
|
|
281
|
+
const rows = data_expr.map(($, row) => {
|
|
282
|
+
const cells = $.let(columns_expr.toDict(($, col) => col.key, ($, col) => East.value(cfg.cell(row, col), MatrixCellType)));
|
|
283
|
+
return East.value({
|
|
284
|
+
key: cfg.rowKey(row),
|
|
285
|
+
value: cfg.rowValue !== undefined ? cfg.rowValue(row) : cfg.rowKey(row),
|
|
286
|
+
sublabel: cfg.rowSublabel !== undefined ? some(cfg.rowSublabel(row)) : none,
|
|
287
|
+
group: cfg.groupBy !== undefined ? some(cfg.groupBy(row)) : none,
|
|
288
|
+
cells,
|
|
289
|
+
}, MatrixRowType);
|
|
290
|
+
});
|
|
291
|
+
const legend = cfg.legend !== undefined
|
|
292
|
+
? some(East.value(cfg.legend.map(e => East.value({
|
|
293
|
+
fill: typeof e.fill === "string" ? variant(e.fill, null) : e.fill,
|
|
294
|
+
label: e.label,
|
|
295
|
+
}, MatrixLegendEntryType)), ArrayType(MatrixLegendEntryType)))
|
|
296
|
+
: none;
|
|
297
|
+
const density = cfg.density !== undefined
|
|
298
|
+
? some(typeof cfg.density === "string" ? East.value(variant(cfg.density, null), DensityType) : cfg.density)
|
|
299
|
+
: none;
|
|
388
300
|
return East.value(variant("Matrix", {
|
|
389
|
-
rows
|
|
390
|
-
columns:
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
onSegmentChange: options?.onSegmentChange !== undefined
|
|
400
|
-
? some(East.value(options.onSegmentChange, FunctionType([MatrixSegmentChangeEventType], NullType)))
|
|
401
|
-
: none,
|
|
402
|
-
style: styleValue ? some(styleValue) : none,
|
|
301
|
+
rows,
|
|
302
|
+
columns: columns_expr,
|
|
303
|
+
rowHeader: cfg.rowHeader !== undefined ? some(cfg.rowHeader) : none,
|
|
304
|
+
orientation: variant(cfg.orientation ?? "horizontal", null),
|
|
305
|
+
legend,
|
|
306
|
+
minLabelSize: cfg.minLabelSize !== undefined ? some(cfg.minLabelSize) : none,
|
|
307
|
+
density,
|
|
308
|
+
onCellClick: cfg.onCellClick !== undefined ? some(cfg.onCellClick) : none,
|
|
309
|
+
onSegmentClick: cfg.onSegmentClick !== undefined ? some(cfg.onSegmentClick) : none,
|
|
310
|
+
onSegmentChange: cfg.onSegmentChange !== undefined ? some(cfg.onSegmentChange) : none,
|
|
403
311
|
}), UIComponentType);
|
|
404
312
|
}
|
|
313
|
+
const MatrixTypes = {
|
|
314
|
+
/**
|
|
315
|
+
* East StructType for the entire Matrix value — the root IR.
|
|
316
|
+
*
|
|
317
|
+
* @remarks
|
|
318
|
+
* The standalone mirror of the inline `Matrix` arm in `component.ts`; the
|
|
319
|
+
* shape `Matrix.Root` produces and the renderer consumes.
|
|
320
|
+
*
|
|
321
|
+
* @property rows - Row data
|
|
322
|
+
* @property columns - Column definitions (the x-axis)
|
|
323
|
+
* @property rowHeader - Optional header label for the row-header (left) column
|
|
324
|
+
* @property orientation - Default cell orientation (per-cell overridable)
|
|
325
|
+
* @property legend - Optional explicit legend entries (omitted ⇒ auto-derived)
|
|
326
|
+
* @property minLabelSize - Optional min segment px below which in-bar labels hide
|
|
327
|
+
* @property density - Optional density preset (header/row rhythm)
|
|
328
|
+
* @property onCellClick - Optional cell-click callback
|
|
329
|
+
* @property onSegmentClick - Optional segment-click callback
|
|
330
|
+
* @property onSegmentChange - Optional segment drag-resize callback (presence ⇒ handles)
|
|
331
|
+
*/
|
|
332
|
+
Root: MatrixRootType,
|
|
333
|
+
/**
|
|
334
|
+
* East StructType for a Matrix row.
|
|
335
|
+
*
|
|
336
|
+
* @remarks
|
|
337
|
+
* One row of the grid: `value` (main row-header text) + optional `sublabel`
|
|
338
|
+
* (secondary line) — the Planner row-header model — plus a dict of cells
|
|
339
|
+
* keyed by column key. `group` bands consecutive rows under a group head.
|
|
340
|
+
*
|
|
341
|
+
* @property key - Stable row key
|
|
342
|
+
* @property value - Row-header main text (defaults to `key`)
|
|
343
|
+
* @property sublabel - Optional row-header secondary text
|
|
344
|
+
* @property group - Optional group-head label (groups consecutive rows)
|
|
345
|
+
* @property cells - Dict of column key → cell
|
|
346
|
+
*/
|
|
347
|
+
Row: MatrixRowType,
|
|
348
|
+
/**
|
|
349
|
+
* East StructType for a Matrix column.
|
|
350
|
+
*
|
|
351
|
+
* @remarks
|
|
352
|
+
* One x-axis column definition; cells are keyed against `key`.
|
|
353
|
+
*
|
|
354
|
+
* @property key - Stable column key (cells are keyed against it)
|
|
355
|
+
* @property label - Optional single header label (defaults to `key`)
|
|
356
|
+
*/
|
|
357
|
+
Column: MatrixColumnType,
|
|
358
|
+
/**
|
|
359
|
+
* East StructType for a Matrix cell.
|
|
360
|
+
*
|
|
361
|
+
* @remarks
|
|
362
|
+
* A cell's body is a weighted segment bar (status-coloured) unless `slot` is
|
|
363
|
+
* set; `markers` are status flags that tint a corner ring and pin a status
|
|
364
|
+
* icon/badge, and `popover` is the click-triggered rich body.
|
|
365
|
+
*
|
|
366
|
+
* @property segments - The weighted segment bar ({@link MatrixSegmentType})
|
|
367
|
+
* @property markers - Status flags layered over the bar ({@link MatrixMarkerType})
|
|
368
|
+
* @property orientation - Optional per-cell orientation override
|
|
369
|
+
* @property slot - Optional free-slot UIComponent (replaces the segment bar)
|
|
370
|
+
* @property popover - Optional click-triggered rich popover (UIComponent)
|
|
371
|
+
*/
|
|
372
|
+
Cell: MatrixCellType,
|
|
373
|
+
/**
|
|
374
|
+
* East StructType for a single weighted slice of a cell's bar.
|
|
375
|
+
*
|
|
376
|
+
* @remarks
|
|
377
|
+
* Segments are weighted — the renderer normalises so sibling weights sum to
|
|
378
|
+
* the full cell axis. `fill` drives the colour from the theme; `min` / `max`
|
|
379
|
+
* / `step` only apply when the Matrix carries an `onSegmentChange` callback.
|
|
380
|
+
*
|
|
381
|
+
* @property fill - Status-leveraged fill ({@link MatrixFillType})
|
|
382
|
+
* @property weight - Proportional weight (normalised with sibling segments)
|
|
383
|
+
* @property label - Optional rich in-bar label (text + alignment + typography)
|
|
384
|
+
* @property color - Optional explicit colour override (bypasses `fill`)
|
|
385
|
+
* @property min - Optional minimum weight for drag-resize
|
|
386
|
+
* @property max - Optional maximum weight for drag-resize
|
|
387
|
+
* @property step - Optional snap increment for drag-resize
|
|
388
|
+
*/
|
|
389
|
+
Segment: MatrixSegmentType,
|
|
390
|
+
/**
|
|
391
|
+
* East VariantType for a segment fill — status-leveraged.
|
|
392
|
+
*
|
|
393
|
+
* @remarks
|
|
394
|
+
* A superset of {@link StatusValueType} (the semantic statuses, shared with
|
|
395
|
+
* Planner markers / Gantt task status) plus the three matrix-native fills
|
|
396
|
+
* (`brand`, `slack`, `free`).
|
|
397
|
+
*
|
|
398
|
+
* @property brand - Primary utilisation fill (brand teal — the "booked" segment)
|
|
399
|
+
* @property success - Positive / committed (green)
|
|
400
|
+
* @property warning - Caution / pending (gold)
|
|
401
|
+
* @property danger - Negative / at-risk (red)
|
|
402
|
+
* @property info - Informational (blue)
|
|
403
|
+
* @property neutral - Muted solid fill
|
|
404
|
+
* @property slack - Diagonal-hatched remainder (auto-fill slack)
|
|
405
|
+
* @property free - Transparent track — empty / available capacity
|
|
406
|
+
*/
|
|
407
|
+
Fill: MatrixFillType,
|
|
408
|
+
/**
|
|
409
|
+
* East StructType for a cell status marker — the Matrix analogue of
|
|
410
|
+
* `Planner.marker`.
|
|
411
|
+
*
|
|
412
|
+
* @remarks
|
|
413
|
+
* `status` drives the ring tint + paired corner icon from the shared status
|
|
414
|
+
* palette (reused from Planner markers); `message` is the hover tooltip;
|
|
415
|
+
* `label` (when set) replaces the status icon with custom badge text.
|
|
416
|
+
*
|
|
417
|
+
* @property at - Which corner the marker icon / badge sits in ({@link MatrixCornerType})
|
|
418
|
+
* @property status - The semantic status — drives the ring tint + paired corner icon ({@link StatusValueType})
|
|
419
|
+
* @property message - The marker text surfaced as a hover tooltip
|
|
420
|
+
* @property label - Optional custom badge text that replaces the status icon
|
|
421
|
+
*/
|
|
422
|
+
Marker: MatrixMarkerType,
|
|
423
|
+
/**
|
|
424
|
+
* East VariantType for the corner a cell marker icon / badge sits in.
|
|
425
|
+
*
|
|
426
|
+
* @remarks
|
|
427
|
+
* Selects which of the four cell corners a marker anchors to.
|
|
428
|
+
*
|
|
429
|
+
* @property tl - Top-left
|
|
430
|
+
* @property tr - Top-right
|
|
431
|
+
* @property bl - Bottom-left
|
|
432
|
+
* @property br - Bottom-right
|
|
433
|
+
*/
|
|
434
|
+
Corner: MatrixCornerType,
|
|
435
|
+
/**
|
|
436
|
+
* East VariantType for how a cell's segment bar is laid out.
|
|
437
|
+
*
|
|
438
|
+
* @remarks
|
|
439
|
+
* The matrix default (`Matrix.Root` `orientation`), overridable per cell.
|
|
440
|
+
*
|
|
441
|
+
* @property horizontal - Segments flow left-to-right, sized by width
|
|
442
|
+
* @property vertical - Segments stack bottom-to-top, sized by height (capacity bar)
|
|
443
|
+
*/
|
|
444
|
+
Orientation: MatrixOrientationType,
|
|
445
|
+
/**
|
|
446
|
+
* East StructType for one legend swatch — a fill paired with its label.
|
|
447
|
+
*
|
|
448
|
+
* @remarks
|
|
449
|
+
* Supplied explicitly via the `legend` config, or auto-derived from the
|
|
450
|
+
* fills the cells use.
|
|
451
|
+
*
|
|
452
|
+
* @property fill - The segment fill the swatch shows ({@link MatrixFillType})
|
|
453
|
+
* @property label - The displayed legend label
|
|
454
|
+
*/
|
|
455
|
+
LegendEntry: MatrixLegendEntryType,
|
|
456
|
+
/**
|
|
457
|
+
* East VariantType for a status colour — shared with Planner markers.
|
|
458
|
+
*
|
|
459
|
+
* @remarks
|
|
460
|
+
* The semantic status palette reused across the Matrix (marker ring tint +
|
|
461
|
+
* corner icon) and Planner / Status components.
|
|
462
|
+
*
|
|
463
|
+
* @property success - Success / up-to-date classification
|
|
464
|
+
* @property warning - Warning classification
|
|
465
|
+
* @property danger - Danger / error classification
|
|
466
|
+
* @property info - Informational classification
|
|
467
|
+
* @property neutral - Neutral / idle classification
|
|
468
|
+
*/
|
|
469
|
+
Status: StatusValueType,
|
|
470
|
+
/**
|
|
471
|
+
* East StructType for the `onCellClick` payload.
|
|
472
|
+
*
|
|
473
|
+
* @remarks
|
|
474
|
+
* Identifies which cell the user clicked by row and column key.
|
|
475
|
+
*
|
|
476
|
+
* @property row - Row key
|
|
477
|
+
* @property column - Column key
|
|
478
|
+
*/
|
|
479
|
+
CellClickEvent: MatrixCellClickEventType,
|
|
480
|
+
/**
|
|
481
|
+
* East StructType for the `onSegmentClick` payload.
|
|
482
|
+
*
|
|
483
|
+
* @remarks
|
|
484
|
+
* Identifies the clicked segment by its cell coordinates, index, and fill.
|
|
485
|
+
*
|
|
486
|
+
* @property row - Row key
|
|
487
|
+
* @property column - Column key
|
|
488
|
+
* @property segmentIndex - Index of the clicked segment within the cell (0-based)
|
|
489
|
+
* @property fill - Fill of the clicked segment
|
|
490
|
+
*/
|
|
491
|
+
SegmentClickEvent: MatrixSegmentClickEventType,
|
|
492
|
+
/**
|
|
493
|
+
* East StructType for the `onSegmentChange` payload.
|
|
494
|
+
*
|
|
495
|
+
* @remarks
|
|
496
|
+
* Fired when the user drags a segment boundary to a new weight; carries the
|
|
497
|
+
* post-snap, post-clamp weight for the resized segment.
|
|
498
|
+
*
|
|
499
|
+
* @property row - Row key
|
|
500
|
+
* @property column - Column key
|
|
501
|
+
* @property segmentIndex - Index of the resized segment within the cell (0-based)
|
|
502
|
+
* @property weight - New weight (post-snap, post-clamp)
|
|
503
|
+
*/
|
|
504
|
+
SegmentChangeEvent: MatrixSegmentChangeEventType,
|
|
505
|
+
};
|
|
405
506
|
/**
|
|
406
|
-
* Matrix — row
|
|
507
|
+
* Matrix namespace — a row × column grid of status-coloured segment bars.
|
|
407
508
|
*
|
|
408
509
|
* @remarks
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
510
|
+
* Build with `Matrix.Root(data, config)`; assemble cells with `Matrix.cell`,
|
|
511
|
+
* segments with `Matrix.segment`, status flags with `Matrix.marker`. Frame it
|
|
512
|
+
* with a `Slice.Rail` for filter / search / breakdown / range.
|
|
412
513
|
*/
|
|
413
|
-
|
|
514
|
+
const MatrixImpl = {
|
|
515
|
+
/**
|
|
516
|
+
* Creates a Matrix — a row × column grid of status-coloured segment bars.
|
|
517
|
+
*
|
|
518
|
+
* @typeParam T - The data array type
|
|
519
|
+
* @param data - The row data
|
|
520
|
+
* @param config - The Matrix configuration ({@link MatrixConfig})
|
|
521
|
+
* @returns An East expression of `UIComponentType`
|
|
522
|
+
*
|
|
523
|
+
* @remarks
|
|
524
|
+
* Data + accessors (Planner parity): `columns` declares the x-axis, `cell`
|
|
525
|
+
* builds each `(row, column)` cell with `Matrix.cell(...)`, `groupBy` groups
|
|
526
|
+
* rows. Pair the result with a `Slice.Rail` to get filter / search /
|
|
527
|
+
* breakdown / range for free.
|
|
528
|
+
*
|
|
529
|
+
* @example
|
|
530
|
+
* ```ts
|
|
531
|
+
* import { East } from "@elaraai/east";
|
|
532
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
533
|
+
*
|
|
534
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
535
|
+
* Matrix.Root(
|
|
536
|
+
* [{ name: "Alice", booked: 0.7 }, { name: "Bob", booked: 0.4 }],
|
|
537
|
+
* {
|
|
538
|
+
* columns: [Matrix.column({ key: "mon", label: "Mon" }), Matrix.column({ key: "tue", label: "Tue" })],
|
|
539
|
+
* rowKey: r => r.name,
|
|
540
|
+
* cell: (r, _col) => Matrix.cell({ segments: [
|
|
541
|
+
* Matrix.segment({ fill: "brand", weight: r.booked }),
|
|
542
|
+
* Matrix.segment({ fill: "free", weight: r.booked.subtract(1.0).multiply(-1.0) }),
|
|
543
|
+
* ]}),
|
|
544
|
+
* legend: [{ fill: "brand", label: "Booked" }, { fill: "free", label: "Free" }],
|
|
545
|
+
* },
|
|
546
|
+
* ));
|
|
547
|
+
* ```
|
|
548
|
+
*/
|
|
414
549
|
Root: createMatrix,
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
550
|
+
/**
|
|
551
|
+
* Builds a Matrix column (one x-axis pivot column) East value from flat input.
|
|
552
|
+
*
|
|
553
|
+
* @param input - Column configuration ({@link MatrixColumnInput})
|
|
554
|
+
* @returns An East expression of {@link MatrixColumnType}
|
|
555
|
+
*
|
|
556
|
+
* @remarks
|
|
557
|
+
* The constructor for the `columns` array. Because it returns an East value,
|
|
558
|
+
* the x-axis can be data-driven — `data.map(($, d) => Matrix.column({ key: d.id }))`
|
|
559
|
+
* — as readily as written out literally.
|
|
560
|
+
*
|
|
561
|
+
* @example
|
|
562
|
+
* ```ts
|
|
563
|
+
* import { East } from "@elaraai/east";
|
|
564
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
565
|
+
*
|
|
566
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
567
|
+
* Matrix.Root(
|
|
568
|
+
* [{ name: "Alice", booked: 0.7 }],
|
|
569
|
+
* {
|
|
570
|
+
* columns: [Matrix.column({ key: "mon", label: "Mon" })],
|
|
571
|
+
* rowKey: r => r.name,
|
|
572
|
+
* cell: (r, col) => Matrix.cell({ segments: [
|
|
573
|
+
* Matrix.segment({ fill: "brand", weight: r.booked }),
|
|
574
|
+
* ]}),
|
|
575
|
+
* },
|
|
576
|
+
* ));
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
579
|
+
column: createColumn,
|
|
580
|
+
/**
|
|
581
|
+
* Builds a Matrix segment East value from flat input.
|
|
582
|
+
*
|
|
583
|
+
* @param input - Segment configuration ({@link MatrixSegmentInput})
|
|
584
|
+
* @returns An East expression of {@link MatrixSegmentType}
|
|
585
|
+
*
|
|
586
|
+
* @remarks
|
|
587
|
+
* Segments are weighted slices of a cell's bar; the renderer normalises so
|
|
588
|
+
* sibling weights sum to the full cell axis. Assemble them into a cell with
|
|
589
|
+
* `Matrix.cell({ segments: [...] })`.
|
|
590
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
* ```ts
|
|
593
|
+
* import { East } from "@elaraai/east";
|
|
594
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
595
|
+
*
|
|
596
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
597
|
+
* Matrix.Root(
|
|
598
|
+
* [{ name: "Alice", booked: 0.7 }],
|
|
599
|
+
* {
|
|
600
|
+
* columns: [{ key: "mon", label: "Mon" }],
|
|
601
|
+
* rowKey: r => r.name,
|
|
602
|
+
* cell: (r, _col) => Matrix.cell({ segments: [
|
|
603
|
+
* Matrix.segment({ fill: "warning", weight: r.booked, label: "30%" }),
|
|
604
|
+
* ]}),
|
|
605
|
+
* },
|
|
606
|
+
* ));
|
|
607
|
+
* ```
|
|
608
|
+
*/
|
|
609
|
+
segment: createSegment,
|
|
610
|
+
/**
|
|
611
|
+
* Builds a Matrix marker (cell status flag) East value from flat input — the
|
|
612
|
+
* Matrix analogue of `Planner.marker`.
|
|
613
|
+
*
|
|
614
|
+
* @param input - Marker configuration ({@link MatrixMarkerInput})
|
|
615
|
+
* @returns An East expression of {@link MatrixMarkerType}
|
|
616
|
+
*
|
|
617
|
+
* @remarks
|
|
618
|
+
* Markers are status flags layered over a cell: each tints a corner ring and
|
|
619
|
+
* pins a status icon/badge, with `message` as the hover tooltip. Attach them
|
|
620
|
+
* to a cell with `Matrix.cell({ markers: [...] })`.
|
|
621
|
+
*
|
|
622
|
+
* @example
|
|
623
|
+
* ```ts
|
|
624
|
+
* import { East } from "@elaraai/east";
|
|
625
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
626
|
+
*
|
|
627
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
628
|
+
* Matrix.Root(
|
|
629
|
+
* [{ name: "Alice", booked: 0.7 }],
|
|
630
|
+
* {
|
|
631
|
+
* columns: [{ key: "mon", label: "Mon" }],
|
|
632
|
+
* rowKey: r => r.name,
|
|
633
|
+
* cell: (r, _col) => Matrix.cell({
|
|
634
|
+
* segments: [Matrix.segment({ fill: "brand", weight: r.booked })],
|
|
635
|
+
* markers: [Matrix.marker({ status: "danger", message: "Over capacity", at: "tr" })],
|
|
636
|
+
* }),
|
|
637
|
+
* },
|
|
638
|
+
* ));
|
|
639
|
+
* ```
|
|
640
|
+
*/
|
|
641
|
+
marker: createMarker,
|
|
642
|
+
/**
|
|
643
|
+
* Builds a Matrix cell East value from flat input.
|
|
644
|
+
*
|
|
645
|
+
* @param input - Cell configuration ({@link MatrixCellInput})
|
|
646
|
+
* @returns An East expression of {@link MatrixCellType}
|
|
647
|
+
*
|
|
648
|
+
* @remarks
|
|
649
|
+
* A cell's body is a weighted segment bar built from `Matrix.segment(...)`,
|
|
650
|
+
* unless `slot` is set. Layer status flags with `markers` (each tints a
|
|
651
|
+
* corner ring + pins a status icon), and attach a click-triggered rich body
|
|
652
|
+
* with `popover`. Return cells from the `cell` accessor in `Matrix.Root`.
|
|
653
|
+
*
|
|
654
|
+
* @example
|
|
655
|
+
* ```ts
|
|
656
|
+
* import { East } from "@elaraai/east";
|
|
657
|
+
* import { Matrix, UIComponentType } from "@elaraai/east-ui";
|
|
658
|
+
*
|
|
659
|
+
* const example = East.function([], UIComponentType, _$ =>
|
|
660
|
+
* Matrix.Root(
|
|
661
|
+
* [{ name: "Alice", booked: 0.7 }],
|
|
662
|
+
* {
|
|
663
|
+
* columns: [{ key: "mon", label: "Mon" }],
|
|
664
|
+
* rowKey: r => r.name,
|
|
665
|
+
* cell: (r, _col) => Matrix.cell({
|
|
666
|
+
* segments: [
|
|
667
|
+
* Matrix.segment({ fill: "brand", weight: r.booked }),
|
|
668
|
+
* Matrix.segment({ fill: "free", weight: r.booked.subtract(1.0).multiply(-1.0) }),
|
|
669
|
+
* ],
|
|
670
|
+
* markers: [Matrix.marker({ status: "danger", message: "Over capacity" })],
|
|
671
|
+
* }),
|
|
672
|
+
* },
|
|
673
|
+
* ));
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
676
|
+
cell: createCell,
|
|
677
|
+
Types: MatrixTypes,
|
|
433
678
|
};
|
|
679
|
+
export const Matrix = MatrixImpl;
|
|
434
680
|
//# sourceMappingURL=index.js.map
|