@visitwonders/assembly 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/action/button-group.d.ts +5 -8
- package/declarations/action/button-group.d.ts.map +1 -1
- package/declarations/action/button.d.ts.map +1 -1
- package/declarations/action/index.d.ts.map +1 -1
- package/declarations/action/link.d.ts.map +1 -1
- package/declarations/data/index.d.ts +1 -0
- package/declarations/data/index.d.ts.map +1 -1
- package/declarations/data/pagination-cluster.d.ts +21 -0
- package/declarations/data/pagination-cluster.d.ts.map +1 -0
- package/declarations/data/pagination.d.ts +101 -0
- package/declarations/data/pagination.d.ts.map +1 -0
- package/declarations/data/sortable-list.d.ts.map +1 -1
- package/declarations/data/table.d.ts +4 -11
- package/declarations/data/table.d.ts.map +1 -1
- package/declarations/form/calendar.d.ts +19 -12
- package/declarations/form/calendar.d.ts.map +1 -1
- package/declarations/form/checkbox-group.d.ts +2 -8
- package/declarations/form/checkbox-group.d.ts.map +1 -1
- package/declarations/form/checkbox.d.ts +4 -8
- package/declarations/form/checkbox.d.ts.map +1 -1
- package/declarations/form/combobox-field.d.ts +1 -1
- package/declarations/form/combobox-field.d.ts.map +1 -1
- package/declarations/form/combobox.d.ts +1 -1
- package/declarations/form/combobox.d.ts.map +1 -1
- package/declarations/form/control.d.ts.map +1 -1
- package/declarations/form/country-select-field.d.ts.map +1 -1
- package/declarations/form/country-select.d.ts.map +1 -1
- package/declarations/form/date-picker-field.d.ts +4 -3
- package/declarations/form/date-picker-field.d.ts.map +1 -1
- package/declarations/form/date-picker.d.ts +11 -8
- package/declarations/form/date-picker.d.ts.map +1 -1
- package/declarations/form/date-range-picker-field.d.ts +4 -3
- package/declarations/form/date-range-picker-field.d.ts.map +1 -1
- package/declarations/form/date-range-picker.d.ts +6 -9
- package/declarations/form/date-range-picker.d.ts.map +1 -1
- package/declarations/form/display-field.d.ts.map +1 -1
- package/declarations/form/error-message.d.ts.map +1 -1
- package/declarations/form/field.d.ts.map +1 -1
- package/declarations/form/fieldset.d.ts.map +1 -1
- package/declarations/form/form.d.ts.map +1 -1
- package/declarations/form/help-text.d.ts.map +1 -1
- package/declarations/form/index.d.ts.map +1 -1
- package/declarations/form/input.d.ts +1 -4
- package/declarations/form/input.d.ts.map +1 -1
- package/declarations/form/label.d.ts.map +1 -1
- package/declarations/form/listbox.d.ts.map +1 -1
- package/declarations/form/money-field.d.ts +13 -3
- package/declarations/form/money-field.d.ts.map +1 -1
- package/declarations/form/multi-combobox-field.d.ts +1 -1
- package/declarations/form/multi-combobox-field.d.ts.map +1 -1
- package/declarations/form/multi-combobox.d.ts +1 -1
- package/declarations/form/multi-combobox.d.ts.map +1 -1
- package/declarations/form/multi-select.d.ts.map +1 -1
- package/declarations/form/number-field.d.ts.map +1 -1
- package/declarations/form/option-group.d.ts.map +1 -1
- package/declarations/form/option.d.ts.map +1 -1
- package/declarations/form/radio-group.d.ts.map +1 -1
- package/declarations/form/radio.d.ts +3 -5
- package/declarations/form/radio.d.ts.map +1 -1
- package/declarations/form/search-input.d.ts +2 -1
- package/declarations/form/search-input.d.ts.map +1 -1
- package/declarations/form/select-field.d.ts.map +1 -1
- package/declarations/form/select.d.ts.map +1 -1
- package/declarations/form/text-field.d.ts +1 -7
- package/declarations/form/text-field.d.ts.map +1 -1
- package/declarations/form/textarea.d.ts +1 -7
- package/declarations/form/textarea.d.ts.map +1 -1
- package/declarations/form/time-picker-field.d.ts.map +1 -1
- package/declarations/form/time-picker.d.ts.map +1 -1
- package/declarations/form/toggle-field.d.ts +2 -4
- package/declarations/form/toggle-field.d.ts.map +1 -1
- package/declarations/form/toggle-group.d.ts.map +1 -1
- package/declarations/form/toggle.d.ts +3 -9
- package/declarations/form/toggle.d.ts.map +1 -1
- package/declarations/layout/divider.d.ts +1 -1
- package/declarations/layout/divider.d.ts.map +1 -1
- package/declarations/layout/grid-item.d.ts.map +1 -1
- package/declarations/layout/grid.d.ts.map +1 -1
- package/declarations/layout/h-stack.d.ts.map +1 -1
- package/declarations/layout/index.d.ts.map +1 -1
- package/declarations/layout/panel.d.ts.map +1 -1
- package/declarations/layout/stack.d.ts +2 -2
- package/declarations/layout/stack.d.ts.map +1 -1
- package/declarations/layout/v-stack.d.ts.map +1 -1
- package/declarations/media/icon.d.ts.map +1 -1
- package/declarations/media/image.d.ts +1 -1
- package/declarations/media/image.d.ts.map +1 -1
- package/declarations/media/index.d.ts.map +1 -1
- package/declarations/overlay/blanket.d.ts.map +1 -1
- package/declarations/overlay/drawer.d.ts +10 -9
- package/declarations/overlay/drawer.d.ts.map +1 -1
- package/declarations/overlay/index.d.ts.map +1 -1
- package/declarations/overlay/modal.d.ts +10 -10
- package/declarations/overlay/modal.d.ts.map +1 -1
- package/declarations/overlay/popover.d.ts +9 -8
- package/declarations/overlay/popover.d.ts.map +1 -1
- package/declarations/overlay/toast.d.ts.map +1 -1
- package/declarations/overlay/tooltip.d.ts +9 -8
- package/declarations/overlay/tooltip.d.ts.map +1 -1
- package/declarations/status/badge.d.ts.map +1 -1
- package/declarations/status/index.d.ts.map +1 -1
- package/declarations/status/skeleton-avatar.d.ts.map +1 -1
- package/declarations/status/skeleton-button.d.ts.map +1 -1
- package/declarations/status/skeleton-image.d.ts.map +1 -1
- package/declarations/status/skeleton-text.d.ts.map +1 -1
- package/declarations/status/skeleton.d.ts.map +1 -1
- package/declarations/status/tag.d.ts.map +1 -1
- package/declarations/typography/heading.d.ts +16 -29
- package/declarations/typography/heading.d.ts.map +1 -1
- package/declarations/typography/index.d.ts.map +1 -1
- package/declarations/typography/text.d.ts +1 -1
- package/declarations/typography/text.d.ts.map +1 -1
- package/declarations/ui/index.d.ts.map +1 -1
- package/dist/action/button-group.js +2 -25
- package/dist/data/pagination.js +10 -24
- package/dist/data/table.js +9 -71
- package/dist/form/calendar.js +29 -57
- package/dist/form/checkbox-group.js +3 -23
- package/dist/form/checkbox.js +3 -17
- package/dist/form/combobox-field.js.map +1 -1
- package/dist/form/date-picker-field.js +1 -1
- package/dist/form/date-picker-field.js.map +1 -1
- package/dist/form/date-picker.js +10 -28
- package/dist/form/date-range-picker-field.js +1 -1
- package/dist/form/date-range-picker-field.js.map +1 -1
- package/dist/form/date-range-picker.js +8 -31
- package/dist/form/input.js +1 -6
- package/dist/form/money-field.js +23 -22
- package/dist/form/multi-combobox-field.js.map +1 -1
- package/dist/form/radio.js +3 -4
- package/dist/form/search-input.js +6 -9
- package/dist/form/text-field.js +3 -22
- package/dist/form/textarea.js +2 -17
- package/dist/form/toggle-field.js +1 -1
- package/dist/form/toggle.js +4 -18
- package/dist/overlay/drawer.js +6 -26
- package/dist/overlay/modal.js +5 -29
- package/dist/overlay/popover.js +15 -16
- package/dist/overlay/tooltip.js +14 -16
- package/package.json +2 -2
- package/declarations/components/form/checkbox.d.ts +0 -0
- package/declarations/components/form/checkbox.d.ts.map +0 -1
- package/declarations/components/form/control.d.ts +0 -0
- package/declarations/components/form/control.d.ts.map +0 -1
- package/declarations/components/form/error-message.d.ts +0 -0
- package/declarations/components/form/error-message.d.ts.map +0 -1
- package/declarations/components/form/field.d.ts +0 -0
- package/declarations/components/form/field.d.ts.map +0 -1
- package/declarations/components/form/form.d.ts +0 -0
- package/declarations/components/form/form.d.ts.map +0 -1
- package/declarations/components/form/help-text.d.ts +0 -0
- package/declarations/components/form/help-text.d.ts.map +0 -1
- package/declarations/components/form/index.d.ts +0 -0
- package/declarations/components/form/index.d.ts.map +0 -1
- package/declarations/components/form/input.d.ts +0 -0
- package/declarations/components/form/input.d.ts.map +0 -1
- package/declarations/components/form/label.d.ts +0 -0
- package/declarations/components/form/label.d.ts.map +0 -1
- package/declarations/components/form/radio-group.d.ts +0 -0
- package/declarations/components/form/radio-group.d.ts.map +0 -1
- package/declarations/components/form/radio.d.ts +0 -0
- package/declarations/components/form/radio.d.ts.map +0 -1
- package/declarations/components/form/search-input.d.ts +0 -0
- package/declarations/components/form/search-input.d.ts.map +0 -1
- package/declarations/components/form/select.d.ts +0 -0
- package/declarations/components/form/select.d.ts.map +0 -1
- package/declarations/components/form/test.d.ts +0 -0
- package/declarations/components/form/test.d.ts.map +0 -1
- package/declarations/components/form/textarea.d.ts +0 -0
- package/declarations/components/form/textarea.d.ts.map +0 -1
- package/declarations/components/form/toggle.d.ts +0 -0
- package/declarations/components/form/toggle.d.ts.map +0 -1
- package/declarations/components/primitives/grid-item.d.ts +0 -0
- package/declarations/components/primitives/grid-item.d.ts.map +0 -1
- package/declarations/components/primitives/grid.d.ts +0 -0
- package/declarations/components/primitives/grid.d.ts.map +0 -1
- package/declarations/components/primitives/h-stack.d.ts +0 -0
- package/declarations/components/primitives/h-stack.d.ts.map +0 -1
- package/declarations/components/primitives/heading.d.ts +0 -0
- package/declarations/components/primitives/heading.d.ts.map +0 -1
- package/declarations/components/primitives/image.d.ts +0 -0
- package/declarations/components/primitives/image.d.ts.map +0 -1
- package/declarations/components/primitives/index.d.ts +0 -0
- package/declarations/components/primitives/index.d.ts.map +0 -1
- package/declarations/components/primitives/link.d.ts +0 -0
- package/declarations/components/primitives/link.d.ts.map +0 -1
- package/declarations/components/primitives/stack.d.ts +0 -0
- package/declarations/components/primitives/stack.d.ts.map +0 -1
- package/declarations/components/primitives/text.d.ts +0 -0
- package/declarations/components/primitives/text.d.ts.map +0 -1
- package/declarations/components/primitives/v-stack.d.ts +0 -0
- package/declarations/components/primitives/v-stack.d.ts.map +0 -1
- package/declarations/components/ui/badge.d.ts +0 -0
- package/declarations/components/ui/badge.d.ts.map +0 -1
- package/declarations/components/ui/button.d.ts +0 -0
- package/declarations/components/ui/button.d.ts.map +0 -1
- package/declarations/components/ui/card.d.ts +0 -0
- package/declarations/components/ui/card.d.ts.map +0 -1
- package/declarations/components/ui/description-list.d.ts +0 -0
- package/declarations/components/ui/description-list.d.ts.map +0 -1
- package/declarations/components/ui/drawer.d.ts +0 -0
- package/declarations/components/ui/drawer.d.ts.map +0 -1
- package/declarations/components/ui/icon-button.d.ts +0 -0
- package/declarations/components/ui/icon-button.d.ts.map +0 -1
- package/declarations/components/ui/icon.d.ts +0 -0
- package/declarations/components/ui/icon.d.ts.map +0 -1
- package/declarations/components/ui/index.d.ts +0 -0
- package/declarations/components/ui/index.d.ts.map +0 -1
- package/declarations/components/ui/modal.d.ts +0 -0
- package/declarations/components/ui/modal.d.ts.map +0 -1
- package/declarations/components/ui/page-header.d.ts +0 -0
- package/declarations/components/ui/page-header.d.ts.map +0 -1
- package/declarations/components/ui/skeleton-card.d.ts +0 -0
- package/declarations/components/ui/skeleton-card.d.ts.map +0 -1
- package/declarations/components/ui/skeleton-text.d.ts +0 -0
- package/declarations/components/ui/skeleton-text.d.ts.map +0 -1
- package/declarations/components/ui/skeleton.d.ts +0 -0
- package/declarations/components/ui/skeleton.d.ts.map +0 -1
- package/declarations/components/ui/spinner.d.ts +0 -0
- package/declarations/components/ui/spinner.d.ts.map +0 -1
- package/declarations/components/ui/tab-nav/index.d.ts +0 -0
- package/declarations/components/ui/tab-nav/index.d.ts.map +0 -1
- package/declarations/components/ui/table/body.d.ts +0 -0
- package/declarations/components/ui/table/body.d.ts.map +0 -1
- package/declarations/components/ui/table/caption.d.ts +0 -0
- package/declarations/components/ui/table/caption.d.ts.map +0 -1
- package/declarations/components/ui/table/cell.d.ts +0 -0
- package/declarations/components/ui/table/cell.d.ts.map +0 -1
- package/declarations/components/ui/table/footer.d.ts +0 -0
- package/declarations/components/ui/table/footer.d.ts.map +0 -1
- package/declarations/components/ui/table/header-cell.d.ts +0 -0
- package/declarations/components/ui/table/header-cell.d.ts.map +0 -1
- package/declarations/components/ui/table/header.d.ts +0 -0
- package/declarations/components/ui/table/header.d.ts.map +0 -1
- package/declarations/components/ui/table/index.d.ts +0 -0
- package/declarations/components/ui/table/index.d.ts.map +0 -1
- package/declarations/components/ui/table/row.d.ts +0 -0
- package/declarations/components/ui/table/row.d.ts.map +0 -1
- package/declarations/components/ui/table_old.d.ts +0 -0
- package/declarations/components/ui/table_old.d.ts.map +0 -1
- package/declarations/form/test.d.ts +0 -0
- package/declarations/form/test.d.ts.map +0 -1
- package/declarations/primitives/grid-item.d.ts +0 -0
- package/declarations/primitives/grid-item.d.ts.map +0 -1
- package/declarations/primitives/grid.d.ts +0 -0
- package/declarations/primitives/grid.d.ts.map +0 -1
- package/declarations/primitives/h-stack.d.ts +0 -0
- package/declarations/primitives/h-stack.d.ts.map +0 -1
- package/declarations/primitives/heading.d.ts +0 -0
- package/declarations/primitives/heading.d.ts.map +0 -1
- package/declarations/primitives/image.d.ts +0 -0
- package/declarations/primitives/image.d.ts.map +0 -1
- package/declarations/primitives/index.d.ts +0 -0
- package/declarations/primitives/index.d.ts.map +0 -1
- package/declarations/primitives/link.d.ts +0 -0
- package/declarations/primitives/link.d.ts.map +0 -1
- package/declarations/primitives/stack.d.ts +0 -0
- package/declarations/primitives/stack.d.ts.map +0 -1
- package/declarations/primitives/text.d.ts +0 -0
- package/declarations/primitives/text.d.ts.map +0 -1
- package/declarations/primitives/v-stack.d.ts +0 -0
- package/declarations/primitives/v-stack.d.ts.map +0 -1
- package/declarations/typography/link.d.ts +0 -0
- package/declarations/typography/link.d.ts.map +0 -1
- package/declarations/ui/button.d.ts +0 -0
- package/declarations/ui/button.d.ts.map +0 -1
- package/declarations/ui/icon.d.ts +0 -0
- package/declarations/ui/icon.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-avatar.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-avatar.
|
|
1
|
+
{"version":3,"file":"skeleton-avatar.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-avatar.gts"],"names":[],"mappings":"AAqDA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,kBAAkB;QAClB,IAAI,CAAC,EAAE,kBAAkB,CAAC;QAE1B,kDAAkD;QAClD,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,sBAAsB;QACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IAC5E,IAAI,IAAI,IAAI,kBAAkB,CAE7B;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAI9B;CA4BF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-button.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-button.
|
|
1
|
+
{"version":3,"file":"skeleton-button.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-button.gts"],"names":[],"mappings":"AAgDA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,mDAAmD;QACnD,IAAI,CAAC,EAAE,kBAAkB,CAAC;QAE1B,+BAA+B;QAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,sBAAsB;QACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IAC5E,IAAI,IAAI,IAAI,kBAAkB,CAE7B;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAG9B;CA4BF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-image.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-image.
|
|
1
|
+
{"version":3,"file":"skeleton-image.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-image.gts"],"names":[],"mappings":"AAyDA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,uBAAuB,CAAC;AAE/B,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,8CAA8C;QAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,+CAA+C;QAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,gDAAgD;QAChD,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,sBAAsB;QACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAC1E,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,KAAK,IAAI,MAAM,CAgBlB;CA0BF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-text.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-text.
|
|
1
|
+
{"version":3,"file":"skeleton-text.d.ts","sourceRoot":"","sources":["../../src/status/skeleton-text.gts"],"names":[],"mappings":"AAsEA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,uBAAuB,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,qCAAqC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,oCAAoC;QACpC,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,uDAAuD;QACvD,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,sBAAsB;QACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACxE,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,GAAG,IAAI,MAAM,CAEhB;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,WAAW,IAAI,MAAM,EAAE,CAE1B;IAED,IAAI,KAAK,IAAI,MAAM,CAUlB;CAuCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/status/skeleton.
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/status/skeleton.gts"],"names":[],"mappings":"AA4FA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,uBAAuB,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,6DAA6D;QAC7D,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB,8DAA8D;QAC9D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAEzB,oBAAoB;QACpB,OAAO,CAAC,EAAE,eAAe,CAAC;QAE1B,6BAA6B;QAC7B,MAAM,CAAC,EAAE,cAAc,CAAC;QAExB,sBAAsB;QACtB,SAAS,CAAC,EAAE,iBAAiB,CAAC;QAE9B,uDAAuD;QACvD,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAUD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAChE,IAAI,OAAO,IAAI,eAAe,CAE7B;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,MAAM,IAAI,cAAc,GAAG,SAAS,CAEvC;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,KAAK,IAAI,MAAM,CAclB;CAgCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/status/tag.
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/status/tag.gts"],"names":[],"mappings":"AAqNA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,MAAM,MAAM,OAAO,GACf,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,MAAM,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE;QACJ,iBAAiB;QACjB,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf,mBAAmB;QACnB,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf,6CAA6C;QAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QAEtB,gEAAgE;QAChE,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,mBAAmB;QACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;QAEhB,2DAA2D;QAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QAErB,yCAAyC;QACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,qBAAqB;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,iDAAiD;QACjD,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,sCAAsC;QACtC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,SAAS,CAAC,YAAY,CAAC;IACtD,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,IAAI,QAAQ,IAAI,IAAI,GAAG,IAAI,CAE1B;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAKpC;IAED,IAAI,eAAe,IAAI,OAAO,CAK7B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAKpC;IAED,WAAW,UAAW,KAAK,KAAG,IAAI,CAMhC;IAEF,YAAY,UAAW,KAAK,KAAG,IAAI,CAMjC;IAEF,aAAa,UAAW,aAAa,KAAG,IAAI,CAW1C;CA6MH"}
|
|
@@ -3,7 +3,7 @@ export interface HeadingSignature {
|
|
|
3
3
|
Element: HTMLHeadingElement;
|
|
4
4
|
Args: {
|
|
5
5
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'display';
|
|
7
7
|
weight?: 'regular' | 'medium' | 'semibold' | 'bold';
|
|
8
8
|
tone?: 'primary' | 'secondary' | 'muted' | 'inherit';
|
|
9
9
|
align?: 'left' | 'center' | 'right';
|
|
@@ -16,36 +16,23 @@ export interface HeadingSignature {
|
|
|
16
16
|
}
|
|
17
17
|
export default class Heading extends Component<HeadingSignature> {
|
|
18
18
|
get level(): 2 | 1 | 3 | 4 | 5 | 6;
|
|
19
|
-
get levelDefaults(): {
|
|
20
|
-
readonly tag: "h1";
|
|
21
|
-
readonly size: "4xl";
|
|
22
|
-
readonly weight: "medium";
|
|
23
|
-
} | {
|
|
24
|
-
readonly tag: "h2";
|
|
25
|
-
readonly size: "3xl";
|
|
26
|
-
readonly weight: "medium";
|
|
27
|
-
} | {
|
|
28
|
-
readonly tag: "h3";
|
|
29
|
-
readonly size: "2xl";
|
|
30
|
-
readonly weight: "medium";
|
|
31
|
-
} | {
|
|
32
|
-
readonly tag: "h4";
|
|
33
|
-
readonly size: "xl";
|
|
34
|
-
readonly weight: "medium";
|
|
35
|
-
} | {
|
|
36
|
-
readonly tag: "h5";
|
|
37
|
-
readonly size: "lg";
|
|
38
|
-
readonly weight: "medium";
|
|
39
|
-
} | {
|
|
40
|
-
readonly tag: "h6";
|
|
41
|
-
readonly size: "md";
|
|
42
|
-
readonly weight: "medium";
|
|
43
|
-
};
|
|
44
19
|
get tag(): "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Role drives the bundled typography role tokens
|
|
22
|
+
* (--typography-heading-{role}-{size|weight|leading|tracking}).
|
|
23
|
+
* `@size` overrides the visual scale without changing the semantic level -
|
|
24
|
+
* when set, the data-size rule below wins via document order.
|
|
25
|
+
*/
|
|
26
|
+
get role(): "section" | "page" | "subsection";
|
|
27
|
+
get size(): "sm" | "md" | "lg" | "xl" | "display" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Weight is left undefined when the consumer doesn't pass `@weight` so the
|
|
30
|
+
* data-weight rule below stays absent and the role-bundled weight wins.
|
|
31
|
+
* Explicit `@weight` overrides the role default via document-order tie-break.
|
|
32
|
+
*/
|
|
33
|
+
get weight(): "bold" | "medium" | "semibold" | "regular" | undefined;
|
|
47
34
|
get tone(): "primary" | "secondary" | "muted" | "inherit";
|
|
48
|
-
get align(): "
|
|
35
|
+
get align(): "right" | "left" | "center";
|
|
49
36
|
get truncate(): boolean;
|
|
50
37
|
get wrap(): "normal" | "nowrap" | "balance" | "pretty";
|
|
51
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/typography/heading.
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/typography/heading.gts"],"names":[],"mappings":"AAoPA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,SAAS,CAAC;QACd,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;QACpD,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;QACrD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;KACnD,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAoBD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC9D,IAAI,KAAK,0BAER;IAED,IAAI,GAAG,4CAEN;IAED;;;;;OAKG;IACH,IAAI,IAAI,sCAEP;IAED,IAAI,IAAI,sFAEP;IAED;;;;OAIG;IACH,IAAI,MAAM,2DAET;IAED,IAAI,IAAI,kDAEP;IAED,IAAI,KAAK,gCAER;IAED,IAAI,QAAQ,YAEX;IAED,IAAI,IAAI,+CAEP;CA+CF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.gts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -43,7 +43,7 @@ export default class Text extends Component<TextSignature> {
|
|
|
43
43
|
get weight(): "bold" | "medium" | "semibold" | "regular";
|
|
44
44
|
get monospace(): boolean;
|
|
45
45
|
get tone(): "primary" | "critical" | "success" | "warning" | "secondary" | "muted" | "inherit";
|
|
46
|
-
get align(): "
|
|
46
|
+
get align(): "right" | "left" | "center";
|
|
47
47
|
get truncate(): boolean;
|
|
48
48
|
get wrap(): "normal" | "nowrap" | "balance" | "pretty";
|
|
49
49
|
get decoration(): "none" | "underline" | "line-through";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/typography/text.
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/typography/text.gts"],"names":[],"mappings":"AA0QA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;QACjC,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;QACpD,IAAI,CAAC,EACD,SAAS,GACT,WAAW,GACX,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,CAAC;QACd,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC;QACtD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;QAClD,UAAU,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,cAAc,CAAC;QACnD,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;KAC/D,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAWD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IACxD,IAAI,eAAe;;;;;;;;;;;;;;;;;;MAElB;IAED,IAAI,IAAI,8BAEP;IAED,IAAI,MAAM,+CAET;IAED,IAAI,SAAS,YAEZ;IAED,IAAI,IAAI,uFAEP;IAED,IAAI,KAAK,gCAER;IAED,IAAI,QAAQ,YAEX;IAED,IAAI,IAAI,+CAEP;IAED,IAAI,UAAU,0CAEb;IAED,IAAI,SAAS,sDAEZ;CAqDF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.gts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,38 +1,21 @@
|
|
|
1
1
|
import "./button-group.css"
|
|
2
2
|
import Component from '@glimmer/component';
|
|
3
|
-
import { tracked } from '@glimmer/tracking';
|
|
4
3
|
import { action } from '@ember/object';
|
|
5
4
|
import { on } from '@ember/modifier';
|
|
6
5
|
import { fn, hash } from '@ember/helper';
|
|
7
6
|
import Button from './button.js';
|
|
8
7
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
9
8
|
import { setComponentTemplate } from '@ember/component';
|
|
10
|
-
import {
|
|
9
|
+
import { n } from 'decorator-transforms/runtime';
|
|
11
10
|
|
|
12
11
|
;
|
|
13
12
|
|
|
14
13
|
class ButtonGroup extends Component {
|
|
15
|
-
static {
|
|
16
|
-
g(this.prototype, "internalValue", [tracked]);
|
|
17
|
-
}
|
|
18
|
-
#internalValue = (i(this, "internalValue"), void 0);
|
|
19
|
-
constructor(owner, args) {
|
|
20
|
-
super(owner, args);
|
|
21
|
-
const defaultVal = args.defaultValue;
|
|
22
|
-
if (this.selectionType === 'multiple') {
|
|
23
|
-
this.internalValue = Array.isArray(defaultVal) ? [...defaultVal] : defaultVal ? [defaultVal] : [];
|
|
24
|
-
} else {
|
|
25
|
-
this.internalValue = Array.isArray(defaultVal) ? defaultVal[0] ?? '' : defaultVal ?? '';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
14
|
get selectionType() {
|
|
29
15
|
return this.args.type ?? 'single';
|
|
30
16
|
}
|
|
31
|
-
get isControlled() {
|
|
32
|
-
return this.args.value !== undefined;
|
|
33
|
-
}
|
|
34
17
|
get selectedValue() {
|
|
35
|
-
return this.
|
|
18
|
+
return this.args.value;
|
|
36
19
|
}
|
|
37
20
|
get variant() {
|
|
38
21
|
return this.args.variant ?? 'outline';
|
|
@@ -74,15 +57,9 @@ class ButtonGroup extends Component {
|
|
|
74
57
|
} else {
|
|
75
58
|
newValues = [...currentArray, value];
|
|
76
59
|
}
|
|
77
|
-
if (!this.isControlled) {
|
|
78
|
-
this.internalValue = newValues;
|
|
79
|
-
}
|
|
80
60
|
this.args.onChange?.(newValues);
|
|
81
61
|
} else {
|
|
82
62
|
if (this.selectedValue === value) return;
|
|
83
|
-
if (!this.isControlled) {
|
|
84
|
-
this.internalValue = value;
|
|
85
|
-
}
|
|
86
63
|
this.args.onChange?.(value);
|
|
87
64
|
}
|
|
88
65
|
}
|
package/dist/data/pagination.js
CHANGED
|
@@ -20,13 +20,6 @@ import { g, i } from 'decorator-transforms/runtime';
|
|
|
20
20
|
// Component
|
|
21
21
|
// ============================================================================
|
|
22
22
|
class Pagination extends Component {
|
|
23
|
-
static {
|
|
24
|
-
g(this.prototype, "internalCurrentPage", [tracked], function () {
|
|
25
|
-
return 1;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
#internalCurrentPage = (i(this, "internalCurrentPage"), void 0); // Uncontrolled-mode state. When the consumer passes `@currentPage`, this
|
|
29
|
-
// value is ignored; otherwise it tracks page locally.
|
|
30
23
|
// Tracked snapshot of the last seen totalPages so the refresh-clamp modifier
|
|
31
24
|
// can detect a shrink-under-the-user without scheduling its own runloop.
|
|
32
25
|
previousTotalPages = null;
|
|
@@ -86,15 +79,10 @@ class Pagination extends Component {
|
|
|
86
79
|
return this.args.showJumpTo ?? false;
|
|
87
80
|
}
|
|
88
81
|
// ============================================================================
|
|
89
|
-
//
|
|
90
|
-
// Note: unlike Table, @onChange fires in BOTH modes — Pagination models a
|
|
91
|
-
// navigation event. See spec §Behaviour > Callback contract.
|
|
82
|
+
// Current page (the consumer owns it)
|
|
92
83
|
// ============================================================================
|
|
93
|
-
get isControlled() {
|
|
94
|
-
return this.args.currentPage !== undefined;
|
|
95
|
-
}
|
|
96
84
|
get currentPage() {
|
|
97
|
-
return this.args.currentPage
|
|
85
|
+
return this.args.currentPage;
|
|
98
86
|
}
|
|
99
87
|
// ============================================================================
|
|
100
88
|
// Derived counts
|
|
@@ -182,14 +170,11 @@ class Pagination extends Component {
|
|
|
182
170
|
// ============================================================================
|
|
183
171
|
// Navigation
|
|
184
172
|
// ============================================================================
|
|
185
|
-
// Single
|
|
186
|
-
//
|
|
187
|
-
// Spec §Behaviour > Callback contract.
|
|
173
|
+
// Single navigation path. Clamps to [1, totalPages] and fires @onChange with
|
|
174
|
+
// the result; the consumer advances @currentPage. The component never writes
|
|
175
|
+
// its own page. Spec §Behaviour > Callback contract.
|
|
188
176
|
goToPage(page) {
|
|
189
177
|
const clamped = Math.max(1, Math.min(this.totalPages, page));
|
|
190
|
-
if (!this.isControlled) {
|
|
191
|
-
this.internalCurrentPage = clamped;
|
|
192
|
-
}
|
|
193
178
|
this.args.onChange(clamped);
|
|
194
179
|
}
|
|
195
180
|
handlePageClick = page => {
|
|
@@ -253,10 +238,11 @@ class Pagination extends Component {
|
|
|
253
238
|
// assumed to be valid.
|
|
254
239
|
if (previous === null) return;
|
|
255
240
|
// Only clamp on shrink-past-current. Growth never re-fires.
|
|
256
|
-
//
|
|
257
|
-
//
|
|
258
|
-
//
|
|
259
|
-
//
|
|
241
|
+
// @onChange is deferred to a microtask: the modifier reads `currentPage`
|
|
242
|
+
// (i.e. @currentPage), and firing @onChange drives the consumer to update
|
|
243
|
+
// that same arg. Glimmer rejects mutating a tracked value read in the
|
|
244
|
+
// same computation, so we punt the fire to the next microtask. Tests
|
|
245
|
+
// flush it with `await settled()`.
|
|
260
246
|
if (totalPages < previous && currentPage > totalPages) {
|
|
261
247
|
void Promise.resolve().then(() => this.goToPage(totalPages));
|
|
262
248
|
}
|
package/dist/data/table.js
CHANGED
|
@@ -54,18 +54,6 @@ class Table extends Component {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
#focusedRowIndex = (i(this, "focusedRowIndex"), void 0);
|
|
57
|
-
static {
|
|
58
|
-
g(this.prototype, "internalSortState", [tracked], function () {
|
|
59
|
-
return null;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
#internalSortState = (i(this, "internalSortState"), void 0);
|
|
63
|
-
static {
|
|
64
|
-
g(this.prototype, "internalSelectedIds", [tracked], function () {
|
|
65
|
-
return [];
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
#internalSelectedIds = (i(this, "internalSelectedIds"), void 0);
|
|
69
57
|
static {
|
|
70
58
|
g(this.prototype, "lastSelectedIndex", [tracked], function () {
|
|
71
59
|
return null;
|
|
@@ -92,60 +80,18 @@ class Table extends Component {
|
|
|
92
80
|
get visibleColumns() {
|
|
93
81
|
return this.args.columns.filter(col => !col.hidden);
|
|
94
82
|
}
|
|
95
|
-
get isControlledSelection() {
|
|
96
|
-
return this.args.selectedIds !== undefined;
|
|
97
|
-
}
|
|
98
83
|
get selectedIds() {
|
|
99
|
-
return this.
|
|
100
|
-
}
|
|
101
|
-
get isControlledSort() {
|
|
102
|
-
return this.args.sortBy !== undefined || this.args.onSortChange !== undefined;
|
|
84
|
+
return this.args.selectedIds ?? [];
|
|
103
85
|
}
|
|
104
86
|
get sortState() {
|
|
105
|
-
return this.
|
|
106
|
-
}
|
|
107
|
-
get sortedData() {
|
|
108
|
-
const data = this.args.data ?? [];
|
|
109
|
-
const sort = this.sortState;
|
|
110
|
-
if (!sort) return data;
|
|
111
|
-
const column = this.args.columns.find(col => col.id === sort.columnId);
|
|
112
|
-
if (!column) return data;
|
|
113
|
-
const sorted = [...data];
|
|
114
|
-
sorted.sort((a, b) => {
|
|
115
|
-
// Use custom sort function if provided
|
|
116
|
-
if (column.sortFn) {
|
|
117
|
-
const result = column.sortFn(a, b);
|
|
118
|
-
return sort.direction === 'desc' ? -result : result;
|
|
119
|
-
}
|
|
120
|
-
// Default sort using accessor
|
|
121
|
-
const aVal = this.getCellValue(a, column);
|
|
122
|
-
const bVal = this.getCellValue(b, column);
|
|
123
|
-
let result = 0;
|
|
124
|
-
if (aVal === bVal) {
|
|
125
|
-
result = 0;
|
|
126
|
-
} else if (aVal === null || aVal === undefined) {
|
|
127
|
-
result = 1;
|
|
128
|
-
} else if (bVal === null || bVal === undefined) {
|
|
129
|
-
result = -1;
|
|
130
|
-
} else if (typeof aVal === 'string' && typeof bVal === 'string') {
|
|
131
|
-
result = aVal.localeCompare(bVal);
|
|
132
|
-
} else if (typeof aVal === 'number' && typeof bVal === 'number') {
|
|
133
|
-
result = aVal - bVal;
|
|
134
|
-
} else {
|
|
135
|
-
// Handle other types by converting to string safely
|
|
136
|
-
const aStr = stringifyValue(aVal);
|
|
137
|
-
const bStr = stringifyValue(bVal);
|
|
138
|
-
result = aStr.localeCompare(bStr);
|
|
139
|
-
}
|
|
140
|
-
return sort.direction === 'desc' ? -result : result;
|
|
141
|
-
});
|
|
142
|
-
return sorted;
|
|
87
|
+
return this.args.sortBy ?? null;
|
|
143
88
|
}
|
|
89
|
+
// The table renders @data in the order it is given and never sorts it. The
|
|
90
|
+
// consumer owns the sort: @sortBy drives the header indicator and
|
|
91
|
+
// @onSortChange reports a click; the consumer reorders the data.
|
|
92
|
+
// See docs/decisions/0003-sorting-model.md.
|
|
144
93
|
get displayData() {
|
|
145
|
-
|
|
146
|
-
return [];
|
|
147
|
-
}
|
|
148
|
-
return this.sortedData;
|
|
94
|
+
return this.args.isLoading ? [] : this.args.data ?? [];
|
|
149
95
|
}
|
|
150
96
|
get isEmpty() {
|
|
151
97
|
return !this.args.isLoading && this.displayData.length === 0;
|
|
@@ -229,18 +175,10 @@ class Table extends Component {
|
|
|
229
175
|
return 'none';
|
|
230
176
|
};
|
|
231
177
|
updateSelection(newIds) {
|
|
232
|
-
|
|
233
|
-
this.args.onSelectionChange?.(newIds);
|
|
234
|
-
} else {
|
|
235
|
-
this.internalSelectedIds = newIds;
|
|
236
|
-
}
|
|
178
|
+
this.args.onSelectionChange?.(newIds);
|
|
237
179
|
}
|
|
238
180
|
updateSort(newSort) {
|
|
239
|
-
|
|
240
|
-
this.args.onSortChange?.(newSort);
|
|
241
|
-
} else {
|
|
242
|
-
this.internalSortState = newSort;
|
|
243
|
-
}
|
|
181
|
+
this.args.onSortChange?.(newSort);
|
|
244
182
|
}
|
|
245
183
|
moveFocus(direction) {
|
|
246
184
|
const rows = this.displayData;
|
package/dist/form/calendar.js
CHANGED
|
@@ -18,35 +18,26 @@ import { g, i } from 'decorator-transforms/runtime';
|
|
|
18
18
|
// ============================================================================
|
|
19
19
|
class Calendar extends Component {
|
|
20
20
|
static {
|
|
21
|
-
g(this.prototype, "
|
|
21
|
+
g(this.prototype, "_navigationMonth", [tracked], function () {
|
|
22
22
|
return new Date();
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
#
|
|
25
|
+
#_navigationMonth = (i(this, "_navigationMonth"), void 0);
|
|
26
|
+
/**
|
|
27
|
+
* The month the calendar is currently showing. This is the calendar's own
|
|
28
|
+
* navigation mechanics, not the consumer's domain state: the user pages
|
|
29
|
+
* through months to find a date. It seeds to the current month and the prev
|
|
30
|
+
* and next buttons (and keyboard month paging) drive it. When the consumer
|
|
31
|
+
* passes `@month`, that override wins and this field is bypassed.
|
|
32
|
+
*/
|
|
26
33
|
static {
|
|
27
34
|
g(this.prototype, "focusedDate", [tracked], function () {
|
|
28
35
|
return null;
|
|
29
36
|
});
|
|
30
37
|
}
|
|
31
|
-
#focusedDate = (i(this, "focusedDate"), void 0);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return null;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
#internalValue = (i(this, "internalValue"), void 0);
|
|
38
|
-
static {
|
|
39
|
-
g(this.prototype, "internalMultiValue", [tracked], function () {
|
|
40
|
-
return [];
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
#internalMultiValue = (i(this, "internalMultiValue"), void 0);
|
|
44
|
-
static {
|
|
45
|
-
g(this.prototype, "internalRangeValue", [tracked], function () {
|
|
46
|
-
return null;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
#internalRangeValue = (i(this, "internalRangeValue"), void 0);
|
|
38
|
+
#focusedDate = (i(this, "focusedDate"), void 0); // Ephemeral UI mechanics the calendar owns: which day has keyboard focus,
|
|
39
|
+
// which day is hovered during a range drag, and the first-click anchor of an
|
|
40
|
+
// in-progress range before the second click lands.
|
|
50
41
|
static {
|
|
51
42
|
g(this.prototype, "rangeSelectionStart", [tracked], function () {
|
|
52
43
|
return null;
|
|
@@ -78,46 +69,32 @@ class Calendar extends Component {
|
|
|
78
69
|
get showToday() {
|
|
79
70
|
return this.args.showToday ?? true;
|
|
80
71
|
}
|
|
81
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* The month on screen. The `@month` override wins when present; otherwise the
|
|
74
|
+
* calendar's own navigation state drives. Writing it (via the prev and next
|
|
75
|
+
* buttons or keyboard month paging) updates the navigation state and reports
|
|
76
|
+
* the new month up. The override is left untouched — when it is in play the
|
|
77
|
+
* consumer updates it in response to `onMonthChange`, exactly as it owns the
|
|
78
|
+
* selection.
|
|
79
|
+
*/
|
|
82
80
|
get currentMonth() {
|
|
83
|
-
|
|
84
|
-
return this.args.month;
|
|
85
|
-
}
|
|
86
|
-
if (this.args.defaultMonth !== undefined && !this.hasInternalMonthChanged) {
|
|
87
|
-
return this.args.defaultMonth;
|
|
88
|
-
}
|
|
89
|
-
return this.internalMonth;
|
|
81
|
+
return this.args.month ?? this._navigationMonth;
|
|
90
82
|
}
|
|
91
|
-
hasInternalMonthChanged = false;
|
|
92
|
-
hasInternalValueChanged = false;
|
|
93
83
|
set currentMonth(value) {
|
|
94
|
-
this.
|
|
95
|
-
this.internalMonth = value;
|
|
84
|
+
this._navigationMonth = value;
|
|
96
85
|
this.args.onMonthChange?.(value);
|
|
97
86
|
}
|
|
98
|
-
/** Selected value for single mode
|
|
87
|
+
/** Selected value for single mode, owned by the consumer via `@value`. */
|
|
99
88
|
get selectedValue() {
|
|
100
|
-
|
|
101
|
-
return this.args.value;
|
|
102
|
-
}
|
|
103
|
-
if (this.args.defaultValue !== undefined && !this.hasInternalValueChanged) {
|
|
104
|
-
return this.args.defaultValue;
|
|
105
|
-
}
|
|
106
|
-
return this.internalValue;
|
|
89
|
+
return this.args.value ?? null;
|
|
107
90
|
}
|
|
108
|
-
/** Selected values for multiple mode */
|
|
91
|
+
/** Selected values for multiple mode, owned by the consumer via `@multiValue`. */
|
|
109
92
|
get selectedMultiValue() {
|
|
110
|
-
|
|
111
|
-
return this.args.multiValue;
|
|
112
|
-
}
|
|
113
|
-
return this.internalMultiValue;
|
|
93
|
+
return this.args.multiValue ?? [];
|
|
114
94
|
}
|
|
115
|
-
/** Selected range for range mode */
|
|
95
|
+
/** Selected range for range mode, owned by the consumer via `@rangeValue`. */
|
|
116
96
|
get selectedRange() {
|
|
117
|
-
|
|
118
|
-
return this.args.rangeValue;
|
|
119
|
-
}
|
|
120
|
-
return this.internalRangeValue;
|
|
97
|
+
return this.args.rangeValue ?? null;
|
|
121
98
|
}
|
|
122
99
|
/** Weekday labels starting from weekStartsOn */
|
|
123
100
|
get weekdayLabels() {
|
|
@@ -278,8 +255,6 @@ class Calendar extends Component {
|
|
|
278
255
|
selectDate = date => {
|
|
279
256
|
if (this.isDateDisabled(date)) return;
|
|
280
257
|
if (this.mode === 'single') {
|
|
281
|
-
this.hasInternalValueChanged = true;
|
|
282
|
-
this.internalValue = date;
|
|
283
258
|
this.args.onChange?.(date);
|
|
284
259
|
} else if (this.mode === 'multiple') {
|
|
285
260
|
const current = [...this.selectedMultiValue];
|
|
@@ -291,13 +266,11 @@ class Calendar extends Component {
|
|
|
291
266
|
} else {
|
|
292
267
|
current.push(date);
|
|
293
268
|
}
|
|
294
|
-
this.internalMultiValue = current;
|
|
295
269
|
this.args.onMultiChange?.(current);
|
|
296
270
|
} else if (this.mode === 'range') {
|
|
297
271
|
if (!this.rangeSelectionStart) {
|
|
298
|
-
// First click: set range start and clear
|
|
272
|
+
// First click: set range start (ephemeral anchor) and clear the range.
|
|
299
273
|
this.rangeSelectionStart = date;
|
|
300
|
-
this.internalRangeValue = null;
|
|
301
274
|
this.args.onRangeChange?.(null);
|
|
302
275
|
} else {
|
|
303
276
|
// Second click: complete range
|
|
@@ -312,7 +285,6 @@ class Calendar extends Component {
|
|
|
312
285
|
};
|
|
313
286
|
this.rangeSelectionStart = null;
|
|
314
287
|
this.hoveredDate = null;
|
|
315
|
-
this.internalRangeValue = range;
|
|
316
288
|
this.args.onRangeChange?.(range);
|
|
317
289
|
}
|
|
318
290
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "./checkbox-group.css"
|
|
2
2
|
import Component from '@glimmer/component';
|
|
3
|
-
import { tracked } from '@glimmer/tracking';
|
|
4
3
|
import { action } from '@ember/object';
|
|
5
4
|
import { on } from '@ember/modifier';
|
|
6
5
|
import { hash } from '@ember/helper';
|
|
@@ -9,25 +8,14 @@ import Checkbox from './checkbox.js';
|
|
|
9
8
|
import ErrorMessage from './error-message.js';
|
|
10
9
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
11
10
|
import { setComponentTemplate } from '@ember/component';
|
|
12
|
-
import {
|
|
11
|
+
import { n } from 'decorator-transforms/runtime';
|
|
13
12
|
|
|
14
13
|
;
|
|
15
14
|
|
|
16
15
|
class CheckboxGroup extends Component {
|
|
17
|
-
static {
|
|
18
|
-
g(this.prototype, "internalValues", [tracked]);
|
|
19
|
-
}
|
|
20
|
-
#internalValues = (i(this, "internalValues"), void 0);
|
|
21
|
-
constructor(owner, args) {
|
|
22
|
-
super(owner, args);
|
|
23
|
-
this.internalValues = [...(args.defaultValue ?? [])];
|
|
24
|
-
}
|
|
25
16
|
guid = guidFor(this);
|
|
26
|
-
get isControlled() {
|
|
27
|
-
return this.args.value !== undefined;
|
|
28
|
-
}
|
|
29
17
|
get selectedValues() {
|
|
30
|
-
return this.
|
|
18
|
+
return this.args.value;
|
|
31
19
|
}
|
|
32
20
|
get orientation() {
|
|
33
21
|
return this.args.orientation ?? 'vertical';
|
|
@@ -48,15 +36,7 @@ class CheckboxGroup extends Component {
|
|
|
48
36
|
return this.selectedValues.includes(value);
|
|
49
37
|
};
|
|
50
38
|
handleCheckboxChange(value, isChecked) {
|
|
51
|
-
|
|
52
|
-
if (isChecked) {
|
|
53
|
-
newValues = [...this.selectedValues, value];
|
|
54
|
-
} else {
|
|
55
|
-
newValues = this.selectedValues.filter(v => v !== value);
|
|
56
|
-
}
|
|
57
|
-
if (!this.isControlled) {
|
|
58
|
-
this.internalValues = newValues;
|
|
59
|
-
}
|
|
39
|
+
const newValues = isChecked ? [...this.selectedValues, value] : this.selectedValues.filter(v => v !== value);
|
|
60
40
|
this.args.onChange?.(newValues);
|
|
61
41
|
}
|
|
62
42
|
static {
|
package/dist/form/checkbox.js
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import "./checkbox.css"
|
|
2
2
|
import Component from '@glimmer/component';
|
|
3
|
-
import { tracked } from '@glimmer/tracking';
|
|
4
3
|
import { action } from '@ember/object';
|
|
5
4
|
import { on } from '@ember/modifier';
|
|
6
5
|
import { modifier } from 'ember-modifier';
|
|
7
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
8
7
|
import { setComponentTemplate } from '@ember/component';
|
|
9
|
-
import {
|
|
8
|
+
import { n } from 'decorator-transforms/runtime';
|
|
10
9
|
|
|
11
10
|
;
|
|
12
11
|
|
|
13
12
|
class Checkbox extends Component {
|
|
14
|
-
static {
|
|
15
|
-
g(this.prototype, "internalChecked", [tracked]);
|
|
16
|
-
}
|
|
17
|
-
#internalChecked = (i(this, "internalChecked"), void 0);
|
|
18
|
-
constructor(owner, args) {
|
|
19
|
-
super(owner, args);
|
|
20
|
-
this.internalChecked = args.defaultChecked ?? false;
|
|
21
|
-
}
|
|
22
13
|
get size() {
|
|
23
14
|
return this.args.size ?? 'md';
|
|
24
15
|
}
|
|
25
|
-
get isControlled() {
|
|
26
|
-
return this.args.isChecked !== undefined;
|
|
27
|
-
}
|
|
28
16
|
get checked() {
|
|
29
|
-
return this.
|
|
17
|
+
return this.args.isChecked;
|
|
30
18
|
}
|
|
31
19
|
get ariaChecked() {
|
|
32
20
|
if (this.args.isIndeterminate) {
|
|
@@ -49,9 +37,7 @@ class Checkbox extends Component {
|
|
|
49
37
|
});
|
|
50
38
|
handleChange(event) {
|
|
51
39
|
const target = event.target;
|
|
52
|
-
|
|
53
|
-
this.internalChecked = target.checked;
|
|
54
|
-
}
|
|
40
|
+
this.args.onChange?.(target.checked, event);
|
|
55
41
|
}
|
|
56
42
|
static {
|
|
57
43
|
n(this.prototype, "handleChange", [action]);
|