@seniorsistemas/scala-ng 2.4.0 → 2.5.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/README.md +9 -6
- package/autocomplete/README.md +5 -1
- package/autocomplete/public-api.d.ts +2 -2
- package/autocomplete/src/autocomplete/autocomplete.component.d.ts +6 -6
- package/autocomplete/src/autocomplete/autocomplete.models.d.ts +2 -2
- package/autocomplete/src/autocomplete/panel/autocomplete-panel.component.d.ts +1 -1
- package/avatar-summary/README.md +1 -1
- package/avatar-summary/public-api.d.ts +2 -2
- package/avatar-summary/src/avatar-summary/avatar-summary.component.d.ts +1 -1
- package/avatar-summary/src/avatar-summary/avatar-summary.models.d.ts +3 -3
- package/avatar-summary/src/avatar-summary/avatar-summary.tokens.d.ts +1 -1
- package/avatar-summary/src/avatar-summary/avatar-summary.utils.d.ts +1 -1
- package/badge/README.md +1 -1
- package/badge/public-api.d.ts +1 -1
- package/badge/src/badge/badge.component.d.ts +1 -1
- package/banner/README.md +1 -1
- package/banner/public-api.d.ts +3 -3
- package/banner/src/banner/banner.component.d.ts +2 -2
- package/banner/src/banner/banner.models.d.ts +1 -1
- package/banner/src/banner-trigger/banner-trigger.directive.d.ts +2 -2
- package/breadcrumb/README.md +7 -7
- package/breadcrumb/public-api.d.ts +5 -5
- package/breadcrumb/src/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.d.ts +2 -2
- package/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.d.ts +3 -3
- package/button/README.md +5 -1
- package/button/public-api.d.ts +1 -1
- package/button/src/button/button.component.d.ts +1 -1
- package/card/README.md +1 -1
- package/card/public-api.d.ts +1 -1
- package/card/src/card/card.component.d.ts +4 -4
- package/checkbox/README.md +5 -5
- package/checkbox/public-api.d.ts +1 -1
- package/checkbox/src/checkbox/checkbox.component.d.ts +1 -1
- package/content-lifecycle/README.md +2 -2
- package/content-lifecycle/public-api.d.ts +2 -2
- package/content-lifecycle/src/content-lifecycle/content-lifecycle.component.d.ts +2 -2
- package/content-lifecycle/src/content-lifecycle/content-lifecycle.models.d.ts +2 -2
- package/date-picker/README.md +6 -6
- package/date-picker/public-api.d.ts +3 -3
- package/date-picker/src/date-picker/date-format.utils.d.ts +2 -2
- package/date-picker/src/date-picker/datepicker.component.d.ts +7 -7
- package/display-tag/README.md +2 -2
- package/display-tag/public-api.d.ts +2 -2
- package/display-tag/src/display-tag/display-tag.component.d.ts +5 -5
- package/drawer/README.md +9 -9
- package/drawer/public-api.d.ts +1 -1
- package/drawer/src/drawer/drawer.component.d.ts +4 -4
- package/empty-state/README.md +1 -1
- package/empty-state/public-api.d.ts +2 -2
- package/empty-state/src/empty-state/empty-state.component.d.ts +1 -1
- package/empty-state/src/empty-state/empty-state.models.d.ts +2 -2
- package/esm2022/autocomplete/public-api.mjs +2 -2
- package/esm2022/autocomplete/src/autocomplete/autocomplete.component.mjs +55 -55
- package/esm2022/autocomplete/src/autocomplete/autocomplete.models.mjs +1 -1
- package/esm2022/autocomplete/src/autocomplete/panel/autocomplete-panel.component.mjs +12 -12
- package/esm2022/avatar-summary/public-api.mjs +2 -2
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.component.mjs +24 -24
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.models.mjs +1 -1
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.tokens.mjs +46 -46
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.utils.mjs +4 -4
- package/esm2022/badge/public-api.mjs +2 -2
- package/esm2022/badge/src/badge/badge.component.mjs +25 -25
- package/esm2022/banner/public-api.mjs +3 -3
- package/esm2022/banner/src/banner/banner.component.mjs +33 -33
- package/esm2022/banner/src/banner/banner.models.mjs +1 -1
- package/esm2022/banner/src/banner-trigger/banner-trigger.directive.mjs +11 -11
- package/esm2022/breadcrumb/public-api.mjs +3 -3
- package/esm2022/breadcrumb/src/breadcrumb/breadcrumb.component.mjs +13 -13
- package/esm2022/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.mjs +13 -13
- package/esm2022/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.mjs +11 -11
- package/esm2022/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.mjs +24 -24
- package/esm2022/button/public-api.mjs +2 -2
- package/esm2022/button/src/button/button.component.mjs +23 -23
- package/esm2022/card/public-api.mjs +2 -2
- package/esm2022/card/src/card/card.component.mjs +37 -37
- package/esm2022/checkbox/public-api.mjs +2 -2
- package/esm2022/checkbox/src/checkbox/checkbox.component.mjs +5 -5
- package/esm2022/content-lifecycle/public-api.mjs +2 -2
- package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.component.mjs +15 -15
- package/esm2022/content-lifecycle/src/content-lifecycle/content-lifecycle.models.mjs +1 -1
- package/esm2022/date-picker/public-api.mjs +3 -3
- package/esm2022/date-picker/src/date-picker/date-format.utils.mjs +39 -39
- package/esm2022/date-picker/src/date-picker/date.utils.mjs +15 -15
- package/esm2022/date-picker/src/date-picker/datepicker.component.mjs +122 -122
- package/esm2022/display-tag/public-api.mjs +2 -2
- package/esm2022/display-tag/src/display-tag/display-tag.component.mjs +36 -36
- package/esm2022/drawer/public-api.mjs +2 -2
- package/esm2022/drawer/src/drawer/drawer.component.mjs +37 -37
- package/esm2022/empty-state/public-api.mjs +2 -2
- package/esm2022/empty-state/src/empty-state/empty-state.component.mjs +26 -26
- package/esm2022/empty-state/src/empty-state/empty-state.models.mjs +1 -1
- package/esm2022/filter-tag/public-api.mjs +2 -2
- package/esm2022/filter-tag/src/filter-tag/filter-tag.component.mjs +12 -12
- package/esm2022/form-field/public-api.mjs +2 -2
- package/esm2022/form-field/src/form-field/form-field.component.mjs +26 -26
- package/esm2022/input/public-api.mjs +2 -2
- package/esm2022/input/src/input/input.component.mjs +55 -44
- package/esm2022/input-feedback/public-api.mjs +2 -2
- package/esm2022/input-feedback/src/input-feedback/input-feedback.component.mjs +12 -12
- package/esm2022/item-strip/public-api.mjs +2 -2
- package/esm2022/item-strip/src/item-strip/item-strip.component.mjs +14 -14
- package/esm2022/item-strip/src/item-strip-item/item-strip-item.component.mjs +37 -37
- package/esm2022/item-strip/src/item-strip-item/item-strip-item.mjs +1 -1
- package/esm2022/lib/a11y/focusable-item.utils.mjs +2 -2
- package/esm2022/lib/chip/chip.utils.mjs +15 -15
- package/esm2022/lib/combobox/combobox.utils.mjs +8 -8
- package/esm2022/lib/forms/control-state.utils.mjs +4 -4
- package/esm2022/lib/overlay/aria-hide.utils.mjs +10 -10
- package/esm2022/lib/overlay/exclusive-dialog.utils.mjs +22 -0
- package/esm2022/lib/overlay/scroll-lock.utils.mjs +5 -5
- package/esm2022/lib/overlay/scrollable-region.utils.mjs +34 -0
- package/esm2022/lib/theme/create-theme.mjs +7 -7
- package/esm2022/lib/theme/semantic-tokens.mjs +1 -1
- package/esm2022/lib/theme/theme.service.mjs +15 -15
- package/esm2022/list/public-api.mjs +2 -2
- package/esm2022/list/src/list/list-id-generator.mjs +4 -4
- package/esm2022/list/src/list/list.component.mjs +16 -16
- package/esm2022/list/src/list/list.models.mjs +2 -2
- package/esm2022/list/src/list/list.tokens.mjs +30 -30
- package/esm2022/list/src/list-group/list-group.component.mjs +7 -7
- package/esm2022/list/src/list-item/list-item-title.utils.mjs +3 -3
- package/esm2022/list/src/list-item/list-item.component.mjs +47 -47
- package/esm2022/loading-state/public-api.mjs +4 -0
- package/esm2022/loading-state/seniorsistemas-scala-ng-loading-state.mjs +5 -0
- package/esm2022/loading-state/src/loading-state/loading-state.directive.mjs +203 -0
- package/esm2022/loading-state/src/loading-state/loading-state.types.mjs +2 -0
- package/esm2022/loading-state/src/loading-state/loading-visibility.utils.mjs +60 -0
- package/esm2022/loading-state/src/pulse/pulse.component.mjs +71 -0
- package/esm2022/loading-state/src/pulse/senior-isotype.component.mjs +11 -0
- package/esm2022/loading-state/src/spinner/loading-spinner.component.mjs +13 -0
- package/esm2022/locale/fallback.mjs +135 -129
- package/esm2022/locale/public-api.mjs +2 -2
- package/esm2022/mask/public-api.mjs +5 -5
- package/esm2022/mask/src/mask/mask.directive.mjs +67 -67
- package/esm2022/mask/src/mask/mask.pipe.mjs +10 -10
- package/esm2022/mask/src/mask/mask.tokens.mjs +16 -16
- package/esm2022/mask/src/mask/mask.utils.mjs +25 -25
- package/esm2022/modal/public-api.mjs +4 -0
- package/esm2022/modal/seniorsistemas-scala-ng-modal.mjs +5 -0
- package/esm2022/modal/src/modal/modal-ref.mjs +84 -0
- package/esm2022/modal/src/modal/modal.component.mjs +262 -0
- package/esm2022/modal/src/modal/modal.service.mjs +119 -0
- package/esm2022/page-header/public-api.mjs +2 -2
- package/esm2022/page-header/src/page-header/page-header.component.mjs +14 -14
- package/esm2022/paginator/public-api.mjs +2 -2
- package/esm2022/paginator/src/paginator/paginator.component.mjs +29 -29
- package/esm2022/panel/public-api.mjs +2 -2
- package/esm2022/panel/src/panel/panel.component.mjs +21 -21
- package/esm2022/progress-bar/public-api.mjs +3 -3
- package/esm2022/progress-bar/src/progress-bar/progress-bar.component.mjs +33 -33
- package/esm2022/progress-bar/src/progress-bar/progress-bar.utils.mjs +5 -5
- package/esm2022/public-api.mjs +11 -9
- package/esm2022/radio-button/public-api.mjs +3 -3
- package/esm2022/radio-button/src/radio-button/radio-button.component.mjs +7 -7
- package/esm2022/radio-button/src/radio-button-group/radio-button-group-error.token.mjs +3 -3
- package/esm2022/radio-button/src/radio-button-group/radio-button-group.component.mjs +7 -7
- package/esm2022/radio-button/src/services/radio-button-registry.service.mjs +4 -4
- package/esm2022/select/public-api.mjs +2 -2
- package/esm2022/select/src/select/select.component.mjs +89 -89
- package/esm2022/select-button/public-api.mjs +2 -2
- package/esm2022/select-button/src/select-button/select-button.component.mjs +131 -131
- package/esm2022/selection-chip/public-api.mjs +2 -2
- package/esm2022/selection-chip/src/selection-chip/selection-chip.component.mjs +24 -24
- package/esm2022/slider/public-api.mjs +2 -2
- package/esm2022/slider/src/slider/slider.component.mjs +82 -82
- package/esm2022/slider/src/slider/slider.types.mjs +1 -1
- package/esm2022/spinner/public-api.mjs +2 -2
- package/esm2022/spinner/src/spinner/spinner.component.mjs +6 -3
- package/esm2022/split-button/public-api.mjs +2 -0
- package/esm2022/split-button/seniorsistemas-scala-ng-split-button.mjs +5 -0
- package/esm2022/split-button/src/split-button/split-button.component.mjs +71 -0
- package/esm2022/stats-card/public-api.mjs +2 -2
- package/esm2022/stats-card/src/stats-card/stats-card.component.mjs +63 -63
- package/esm2022/stats-card/src/stats-card/stats-card.models.mjs +1 -1
- package/esm2022/switch/public-api.mjs +2 -2
- package/esm2022/switch/src/switch/switch.component.mjs +8 -8
- package/esm2022/table/public-api.mjs +3 -3
- package/esm2022/table/src/components/actions-cell/table-actions-cell.component.mjs +7 -7
- package/esm2022/table/src/components/expand-cell/table-expand-cell.component.mjs +4 -4
- package/esm2022/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.mjs +4 -4
- package/esm2022/table/src/components/fields/base-table-field-config.mjs +1 -1
- package/esm2022/table/src/components/fields/date-field-table/date-field-table.component.mjs +11 -11
- package/esm2022/table/src/components/fields/number-field-table/number-field-table.component.mjs +3 -3
- package/esm2022/table/src/components/fields/rich-field-table/rich-field-table.component.mjs +9 -9
- package/esm2022/table/src/components/fields/string-field-table/string-field-table.component.mjs +3 -3
- package/esm2022/table/src/components/filter-row/table-filter-row.component.mjs +10 -10
- package/esm2022/table/src/components/row-group-header/table-row-group-header.component.mjs +6 -6
- package/esm2022/table/src/components/selection-cell/table-selection-cell.component.mjs +10 -10
- package/esm2022/table/src/components/toolbar/table-toolbar.component.mjs +18 -18
- package/esm2022/table/src/directives/table-actions-column.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-body.directive.mjs +3 -3
- package/esm2022/table/src/directives/table-cell.directive.mjs +9 -9
- package/esm2022/table/src/directives/table-container.directive.mjs +5 -5
- package/esm2022/table/src/directives/table-field.directive.mjs +10 -10
- package/esm2022/table/src/directives/table-grid.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-header-cell.directive.mjs +17 -17
- package/esm2022/table/src/directives/table-header-row.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-paginator-container.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-row-detail-cell.directive.mjs +4 -4
- package/esm2022/table/src/directives/table-row.directive.mjs +10 -10
- package/esm2022/table/src/fields/avatar-summary-table-header.mjs +1 -1
- package/esm2022/table/src/fields/date-table-header.mjs +1 -1
- package/esm2022/table/src/fields/date-utc.utils.mjs +6 -6
- package/esm2022/table/src/fields/number-table-header.mjs +1 -1
- package/esm2022/table/src/fields/rich-table-header.mjs +1 -1
- package/esm2022/table/src/fields/string-table-header.mjs +1 -1
- package/esm2022/table/src/fields/table-header.mjs +1 -1
- package/esm2022/table/src/registry/built-in-field-types.mjs +11 -11
- package/esm2022/table/src/registry/table-field-registry.mjs +7 -7
- package/esm2022/table/src/table/table-toolbar.models.mjs +1 -1
- package/esm2022/table/src/table/table.component.mjs +58 -58
- package/esm2022/table/src/table/table.models.mjs +1 -1
- package/esm2022/table/src/utils/table-filter.utils.mjs +7 -7
- package/esm2022/table/src/utils/table-group.utils.mjs +6 -6
- package/esm2022/table/src/utils/table-lazy-event.utils.mjs +2 -2
- package/esm2022/table/src/utils/table-selection.utils.mjs +4 -4
- package/esm2022/table/src/utils/table-sort.utils.mjs +9 -9
- package/esm2022/tiered-menu/public-api.mjs +2 -2
- package/esm2022/tiered-menu/src/tiered-menu-item-row/tiered-menu-item-row.directive.mjs +8 -8
- package/esm2022/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.mjs +16 -16
- package/esm2022/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.mjs +10 -10
- package/esm2022/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.mjs +18 -18
- package/esm2022/toast/public-api.mjs +3 -3
- package/esm2022/toast/src/toast/toast.component.mjs +16 -16
- package/esm2022/toast/src/toast/toast.models.mjs +1 -1
- package/esm2022/toast/src/toast-container/toast-container.component.mjs +20 -20
- package/esm2022/toast/src/toast.service.mjs +31 -31
- package/esm2022/tooltip/public-api.mjs +2 -2
- package/esm2022/tooltip/src/tooltip/tooltip-collision-registry.service.mjs +4 -4
- package/esm2022/tooltip/src/tooltip/tooltip-focus-origin.service.mjs +5 -5
- package/esm2022/tooltip/src/tooltip/tooltip.types.mjs +1 -1
- package/esm2022/tooltip/src/tooltip-panel/tooltip-panel.component.mjs +23 -23
- package/esm2022/tooltip/src/tooltip-trigger/tooltip-trigger.directive.mjs +93 -93
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs +51 -51
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs +64 -64
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-badge.mjs +22 -22
- package/fesm2022/seniorsistemas-scala-ng-badge.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs +32 -32
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs +33 -33
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-button.mjs +21 -21
- package/fesm2022/seniorsistemas-scala-ng-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-card.mjs +30 -30
- package/fesm2022/seniorsistemas-scala-ng-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs +1 -1
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs +12 -12
- package/fesm2022/seniorsistemas-scala-ng-content-lifecycle.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs +159 -159
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs +33 -33
- package/fesm2022/seniorsistemas-scala-ng-display-tag.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs +29 -29
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs +23 -23
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs +7 -7
- package/fesm2022/seniorsistemas-scala-ng-filter-tag.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-form-field.mjs +22 -22
- package/fesm2022/seniorsistemas-scala-ng-form-field.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs +10 -10
- package/fesm2022/seniorsistemas-scala-ng-input-feedback.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input.mjs +49 -38
- package/fesm2022/seniorsistemas-scala-ng-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs +39 -39
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-list.mjs +84 -84
- package/fesm2022/seniorsistemas-scala-ng-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs +354 -0
- package/fesm2022/seniorsistemas-scala-ng-loading-state.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs +134 -128
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-mask.mjs +106 -106
- package/fesm2022/seniorsistemas-scala-ng-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-modal.mjs +466 -0
- package/fesm2022/seniorsistemas-scala-ng-modal.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs +9 -9
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs +20 -20
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs +14 -14
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs +31 -31
- package/fesm2022/seniorsistemas-scala-ng-progress-bar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs +6 -6
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs +122 -122
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select.mjs +76 -76
- package/fesm2022/seniorsistemas-scala-ng-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs +19 -19
- package/fesm2022/seniorsistemas-scala-ng-selection-chip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-slider.mjs +72 -72
- package/fesm2022/seniorsistemas-scala-ng-slider.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-spinner.mjs +4 -1
- package/fesm2022/seniorsistemas-scala-ng-spinner.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-split-button.mjs +78 -0
- package/fesm2022/seniorsistemas-scala-ng-split-button.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs +58 -58
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs +4 -4
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs.map +1 -1
- package/fesm2022/{seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs → seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs} +2 -2
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-D_eZKncd.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs +27 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-C0Y1KaWD.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs +68 -0
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-C9s1ObGb.mjs.map +1 -0
- package/fesm2022/seniorsistemas-scala-ng-table.mjs +138 -138
- package/fesm2022/seniorsistemas-scala-ng-table.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs +35 -35
- package/fesm2022/seniorsistemas-scala-ng-tiered-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-toast.mjs +54 -54
- package/fesm2022/seniorsistemas-scala-ng-toast.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs +110 -110
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng.mjs +110 -54
- package/fesm2022/seniorsistemas-scala-ng.mjs.map +1 -1
- package/filter-tag/README.md +1 -1
- package/filter-tag/public-api.d.ts +1 -1
- package/filter-tag/src/filter-tag/filter-tag.component.d.ts +1 -1
- package/form-field/public-api.d.ts +2 -2
- package/form-field/src/form-field/form-field.component.d.ts +14 -14
- package/input/README.md +13 -10
- package/input/public-api.d.ts +1 -1
- package/input/src/input/input.component.d.ts +8 -5
- package/input-feedback/README.md +7 -7
- package/input-feedback/public-api.d.ts +1 -1
- package/input-feedback/src/input-feedback/input-feedback.component.d.ts +2 -2
- package/item-strip/README.md +1 -1
- package/item-strip/public-api.d.ts +2 -2
- package/item-strip/src/item-strip/item-strip.component.d.ts +1 -1
- package/item-strip/src/item-strip-item/item-strip-item.component.d.ts +27 -27
- package/item-strip/src/item-strip-item/item-strip-item.d.ts +1 -1
- package/lib/a11y/focusable-item.utils.d.ts +1 -1
- package/lib/chip/chip.utils.d.ts +3 -3
- package/lib/combobox/combobox.utils.d.ts +2 -2
- package/lib/forms/control-state.utils.d.ts +2 -2
- package/lib/overlay/exclusive-dialog.utils.d.ts +7 -0
- package/lib/overlay/scrollable-region.utils.d.ts +5 -0
- package/lib/theme/create-theme.d.ts +2 -2
- package/lib/theme/semantic-tokens.d.ts +1 -1
- package/lib/theme/theme.service.d.ts +1 -1
- package/list/README.md +1 -1
- package/list/public-api.d.ts +2 -2
- package/list/src/list/list.component.d.ts +1 -1
- package/list/src/list/list.models.d.ts +5 -5
- package/list/src/list/list.tokens.d.ts +1 -1
- package/list/src/list-group/list-group.component.d.ts +1 -1
- package/list/src/list-item/list-item.component.d.ts +11 -11
- package/loading-state/README.md +60 -0
- package/loading-state/index.d.ts +5 -0
- package/loading-state/package.json +3 -0
- package/loading-state/public-api.d.ts +5 -0
- package/loading-state/src/loading-state/loading-state.directive.d.ts +37 -0
- package/loading-state/src/loading-state/loading-state.types.d.ts +3 -0
- package/loading-state/src/loading-state/loading-visibility.utils.d.ts +11 -0
- package/loading-state/src/pulse/pulse.component.d.ts +27 -0
- package/loading-state/src/pulse/senior-isotype.component.d.ts +5 -0
- package/loading-state/src/spinner/loading-spinner.component.d.ts +8 -0
- package/locale/public-api.d.ts +1 -1
- package/mask/README.md +1 -1
- package/mask/public-api.d.ts +4 -4
- package/mask/src/mask/mask.directive.d.ts +2 -2
- package/mask/src/mask/mask.pipe.d.ts +2 -2
- package/mask/src/mask/mask.utils.d.ts +1 -1
- package/modal/README.md +435 -0
- package/modal/index.d.ts +5 -0
- package/modal/package.json +3 -0
- package/modal/public-api.d.ts +3 -0
- package/modal/src/modal/modal-ref.d.ts +51 -0
- package/modal/src/modal/modal.component.d.ts +82 -0
- package/modal/src/modal/modal.service.d.ts +62 -0
- package/package.json +22 -1
- package/page-header/README.md +1 -1
- package/page-header/public-api.d.ts +1 -1
- package/page-header/src/page-header/page-header.component.d.ts +2 -2
- package/paginator/public-api.d.ts +2 -2
- package/paginator/src/paginator/paginator.component.d.ts +3 -3
- package/panel/README.md +1 -1
- package/panel/public-api.d.ts +1 -1
- package/panel/src/panel/panel.component.d.ts +3 -3
- package/progress-bar/README.md +4 -4
- package/progress-bar/public-api.d.ts +4 -4
- package/progress-bar/src/progress-bar/progress-bar.component.d.ts +3 -3
- package/progress-bar/src/progress-bar/progress-bar.utils.d.ts +1 -1
- package/public-api.d.ts +11 -9
- package/radio-button/README.md +1 -1
- package/radio-button/public-api.d.ts +3 -3
- package/radio-button/src/radio-button/radio-button.component.d.ts +2 -2
- package/radio-button/src/radio-button-group/radio-button-group-error.token.d.ts +1 -1
- package/radio-button/src/radio-button-group/radio-button-group.component.d.ts +3 -3
- package/radio-button/src/services/radio-button-registry.service.d.ts +1 -1
- package/schematics/migrate-spinner-to-loading-state/index.js +75 -0
- package/schematics/migrate-spinner-to-loading-state/index.js.map +1 -0
- package/schematics/migrations.json +10 -0
- package/schematics/ng-add/index.js +29 -29
- package/select/README.md +19 -15
- package/select/public-api.d.ts +2 -2
- package/select/src/select/select.component.d.ts +11 -11
- package/select-button/README.md +1 -1
- package/select-button/public-api.d.ts +2 -2
- package/select-button/src/select-button/select-button.component.d.ts +7 -7
- package/selection-chip/README.md +1 -1
- package/selection-chip/public-api.d.ts +1 -1
- package/selection-chip/src/selection-chip/selection-chip.component.d.ts +3 -3
- package/slider/README.md +6 -6
- package/slider/public-api.d.ts +2 -2
- package/slider/src/slider/slider.component.d.ts +3 -3
- package/slider/src/slider/slider.types.d.ts +3 -3
- package/spinner/README.md +9 -1
- package/spinner/public-api.d.ts +1 -1
- package/spinner/src/spinner/spinner.component.d.ts +3 -0
- package/split-button/README.md +208 -0
- package/split-button/index.d.ts +5 -0
- package/split-button/package.json +3 -0
- package/split-button/public-api.d.ts +1 -0
- package/split-button/src/split-button/split-button.component.d.ts +29 -0
- package/stats-card/README.md +1 -1
- package/stats-card/public-api.d.ts +2 -2
- package/stats-card/src/stats-card/stats-card.component.d.ts +415 -415
- package/stats-card/src/stats-card/stats-card.models.d.ts +3 -3
- package/styles/tailwind-preset.js +30 -13
- package/styles/tailwind-tokens.js +286 -286
- package/styles/tokens/index.scss +7 -7
- package/styles/tokens/semantic-colors.scss +4 -2
- package/styles.scss +7 -7
- package/switch/README.md +5 -5
- package/switch/public-api.d.ts +1 -1
- package/switch/src/switch/switch.component.d.ts +1 -1
- package/table/README.md +21 -21
- package/table/public-api.d.ts +12 -12
- package/table/src/components/actions-cell/table-actions-cell.component.d.ts +2 -2
- package/table/src/components/fields/avatar-summary-field-table/avatar-summary-field-table.component.d.ts +2 -2
- package/table/src/components/fields/base-table-field-config.d.ts +2 -2
- package/table/src/components/fields/date-field-table/date-field-table.component.d.ts +2 -2
- package/table/src/components/fields/number-field-table/number-field-table.component.d.ts +2 -2
- package/table/src/components/fields/rich-field-table/rich-field-table.component.d.ts +2 -2
- package/table/src/components/fields/string-field-table/string-field-table.component.d.ts +2 -2
- package/table/src/components/filter-row/table-filter-row.component.d.ts +1 -1
- package/table/src/components/selection-cell/table-selection-cell.component.d.ts +2 -2
- package/table/src/components/toolbar/table-toolbar.component.d.ts +3 -3
- package/table/src/directives/table-field.directive.d.ts +1 -1
- package/table/src/fields/avatar-summary-table-header.d.ts +4 -4
- package/table/src/fields/date-table-header.d.ts +3 -3
- package/table/src/fields/number-table-header.d.ts +3 -3
- package/table/src/fields/rich-table-header.d.ts +4 -4
- package/table/src/fields/string-table-header.d.ts +4 -4
- package/table/src/fields/table-header.d.ts +2 -2
- package/table/src/registry/built-in-field-types.d.ts +1 -1
- package/table/src/registry/table-field-registry.d.ts +4 -4
- package/table/src/table/table-toolbar.models.d.ts +1 -1
- package/table/src/table/table.component.d.ts +11 -11
- package/table/src/table/table.models.d.ts +2 -2
- package/table/src/utils/table-filter.utils.d.ts +1 -1
- package/table/src/utils/table-group.utils.d.ts +4 -4
- package/table/src/utils/table-lazy-event.utils.d.ts +3 -3
- package/table/src/utils/table-selection.utils.d.ts +2 -2
- package/table/src/utils/table-sort.utils.d.ts +2 -2
- package/tiered-menu/README.md +2 -2
- package/tiered-menu/public-api.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-panel/tiered-menu-panel.component.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-panel-host/tiered-menu-panel-host.component.d.ts +2 -2
- package/tiered-menu/src/tiered-menu-trigger/tiered-menu-trigger.directive.d.ts +2 -2
- package/toast/README.md +17 -17
- package/toast/public-api.d.ts +3 -3
- package/toast/src/toast/toast.component.d.ts +1 -1
- package/toast/src/toast/toast.models.d.ts +3 -3
- package/toast/src/toast-container/toast-container.component.d.ts +1 -1
- package/toast/src/toast.service.d.ts +5 -5
- package/tooltip/README.md +1 -1
- package/tooltip/public-api.d.ts +2 -2
- package/tooltip/src/tooltip/tooltip-focus-origin.service.d.ts +2 -2
- package/tooltip/src/tooltip/tooltip.types.d.ts +3 -3
- package/tooltip/src/tooltip-panel/tooltip-panel.component.d.ts +4 -4
- package/tooltip/src/tooltip-trigger/tooltip-trigger.directive.d.ts +2 -2
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-DTzDhrMk.mjs.map +0 -1
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs +0 -27
- package/fesm2022/seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs.map +0 -1
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs +0 -68
- package/fesm2022/seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs.map +0 -1
package/styles/tokens/index.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
1
|
+
@import './primitive-colors.scss';
|
|
2
|
+
@import './semantic-colors.scss';
|
|
3
|
+
@import './typography.scss';
|
|
4
|
+
@import './spacing.scss';
|
|
5
|
+
@import './radius.scss';
|
|
6
|
+
@import './grid.scss';
|
|
7
|
+
@import './motion.scss';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Semantic color tokens. :root = light (default); [data-mode="light"] forces it inside a dark scope. [data-mode="dark"] overrides only the tokens that differ. */
|
|
2
2
|
:root,
|
|
3
|
-
[data-mode=
|
|
3
|
+
[data-mode='light'] {
|
|
4
|
+
color-scheme: light;
|
|
4
5
|
--sds-color-background-brand: var(--sds-light-solid-teal-9);
|
|
5
6
|
--sds-color-background-destructive: var(--sds-light-solid-red-4);
|
|
6
7
|
--sds-color-background-destructive-bold: var(--sds-light-solid-red-9);
|
|
@@ -186,7 +187,8 @@
|
|
|
186
187
|
--sds-surface-sunken: var(--sds-light-solid-olive-3);
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
[data-mode=
|
|
190
|
+
[data-mode='dark'] {
|
|
191
|
+
color-scheme: dark;
|
|
190
192
|
--sds-color-background-brand: var(--sds-dark-solid-teal-9);
|
|
191
193
|
--sds-color-background-destructive: var(--sds-dark-solid-red-4);
|
|
192
194
|
--sds-color-background-destructive-bold: var(--sds-dark-solid-red-9);
|
package/styles.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './styles/tokens/index.scss';
|
|
2
2
|
|
|
3
3
|
// One import per --sds-font-weight-* token; the package root only ships 400 and the browser would fake the others.
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
4
|
+
@import '@fontsource/inter/400.css';
|
|
5
|
+
@import '@fontsource/inter/500.css';
|
|
6
|
+
@import '@fontsource/inter/600.css';
|
|
7
|
+
@import '@fontsource/inter/700.css';
|
|
8
8
|
|
|
9
|
-
@import
|
|
9
|
+
@import '@angular/cdk/overlay-prebuilt.css';
|
|
10
10
|
// Hides the focus trap anchors (`.cdk-visually-hidden`) used by Drawer, Banner and DatePicker.
|
|
11
|
-
@import
|
|
11
|
+
@import '@angular/cdk/a11y-prebuilt.css';
|
package/switch/README.md
CHANGED
|
@@ -88,7 +88,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
88
88
|
Importe o componente diretamente no seu standalone component:
|
|
89
89
|
|
|
90
90
|
```typescript
|
|
91
|
-
import { SdsSwitchComponent } from
|
|
91
|
+
import { SdsSwitchComponent } from '@seniorsistemas/scala-ng/switch';
|
|
92
92
|
|
|
93
93
|
@Component({
|
|
94
94
|
imports: [SdsSwitchComponent, ReactiveFormsModule],
|
|
@@ -134,12 +134,12 @@ export class MyComponent {}
|
|
|
134
134
|
### Com formControl e validação
|
|
135
135
|
|
|
136
136
|
```typescript
|
|
137
|
-
import { Component } from
|
|
138
|
-
import { FormControl, ReactiveFormsModule, Validators } from
|
|
139
|
-
import { SdsSwitchComponent } from
|
|
137
|
+
import { Component } from '@angular/core';
|
|
138
|
+
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
139
|
+
import { SdsSwitchComponent } from '@seniorsistemas/scala-ng/switch';
|
|
140
140
|
|
|
141
141
|
@Component({
|
|
142
|
-
selector:
|
|
142
|
+
selector: 'app-example',
|
|
143
143
|
standalone: true,
|
|
144
144
|
imports: [SdsSwitchComponent, ReactiveFormsModule],
|
|
145
145
|
template: `<sds-switch
|
package/switch/public-api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SdsSwitchComponent } from
|
|
1
|
+
export { SdsSwitchComponent } from './src/switch/switch.component';
|
package/table/README.md
CHANGED
|
@@ -90,7 +90,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
90
90
|
Importe o componente diretamente no seu standalone component:
|
|
91
91
|
|
|
92
92
|
```typescript
|
|
93
|
-
import { SdsTableComponent } from
|
|
93
|
+
import { SdsTableComponent } from '@seniorsistemas/scala-ng/table';
|
|
94
94
|
|
|
95
95
|
@Component({
|
|
96
96
|
imports: [SdsTableComponent],
|
|
@@ -247,14 +247,14 @@ Quem usa só os tipos nativos não precisa de provider. Para um tipo próprio (e
|
|
|
247
247
|
1. Declarar o header e fazer o merge em `TableHeaderTypeMap` (só tipagem):
|
|
248
248
|
|
|
249
249
|
```typescript
|
|
250
|
-
import type { BaseTableHeader } from
|
|
250
|
+
import type { BaseTableHeader } from '@seniorsistemas/scala-ng/table';
|
|
251
251
|
|
|
252
252
|
export interface BadgeTableHeader<T> extends BaseTableHeader<T> {
|
|
253
|
-
type:
|
|
253
|
+
type: 'badge';
|
|
254
254
|
field: keyof T;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
declare module
|
|
257
|
+
declare module '@seniorsistemas/scala-ng/table' {
|
|
258
258
|
interface TableHeaderTypeMap<T> {
|
|
259
259
|
badge: BadgeTableHeader<T>;
|
|
260
260
|
}
|
|
@@ -266,7 +266,7 @@ declare module "@seniorsistemas/scala-ng/table" {
|
|
|
266
266
|
3. Registrar o componente com `provideSdsTable`, nos `providers` da aplicação, de uma rota ou de um componente:
|
|
267
267
|
|
|
268
268
|
```typescript
|
|
269
|
-
import { provideSdsTable, withFieldTypes } from
|
|
269
|
+
import { provideSdsTable, withFieldTypes } from '@seniorsistemas/scala-ng/table';
|
|
270
270
|
|
|
271
271
|
bootstrapApplication(AppComponent, {
|
|
272
272
|
providers: [provideSdsTable(withFieldTypes({ badge: BadgeFieldTableComponent }))],
|
|
@@ -282,9 +282,9 @@ O guia completo do mecanismo, com o componente e o teste de exemplo, está em [`
|
|
|
282
282
|
### Uso básico com ações por linha
|
|
283
283
|
|
|
284
284
|
```typescript
|
|
285
|
-
import { Component, signal } from
|
|
286
|
-
import type { ActionButton, TableHeader } from
|
|
287
|
-
import { SdsTableComponent } from
|
|
285
|
+
import { Component, signal } from '@angular/core';
|
|
286
|
+
import type { ActionButton, TableHeader } from '@seniorsistemas/scala-ng/table';
|
|
287
|
+
import { SdsTableComponent } from '@seniorsistemas/scala-ng/table';
|
|
288
288
|
|
|
289
289
|
interface Employee {
|
|
290
290
|
name: string;
|
|
@@ -303,26 +303,26 @@ interface Employee {
|
|
|
303
303
|
})
|
|
304
304
|
export class MyComponent {
|
|
305
305
|
protected readonly headers: TableHeader<Employee>[] = [
|
|
306
|
-
{ type:
|
|
307
|
-
{ type:
|
|
306
|
+
{ type: 'string', field: 'name', label: 'Nome', sortable: true },
|
|
307
|
+
{ type: 'number', field: 'age', label: 'Idade', sortable: true },
|
|
308
308
|
];
|
|
309
309
|
|
|
310
310
|
protected readonly data: Employee[] = [
|
|
311
|
-
{ name:
|
|
312
|
-
{ name:
|
|
311
|
+
{ name: 'Carlos Miguel', age: 27 },
|
|
312
|
+
{ name: 'Gustavo Gómez', age: 33 },
|
|
313
313
|
];
|
|
314
314
|
|
|
315
315
|
protected readonly lastAction = signal<string | null>(null);
|
|
316
316
|
|
|
317
317
|
protected readonly rowActions: ActionButton<Employee>[] = [
|
|
318
318
|
{
|
|
319
|
-
icon:
|
|
320
|
-
label:
|
|
319
|
+
icon: 'fa-solid fa-pen',
|
|
320
|
+
label: 'Editar',
|
|
321
321
|
onClick: (row) => this.lastAction.set(`Editar: ${row.name}`),
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
icon:
|
|
325
|
-
label:
|
|
324
|
+
icon: 'fa-solid fa-trash',
|
|
325
|
+
label: 'Excluir',
|
|
326
326
|
onClick: (row) => this.lastAction.set(`Excluir: ${row.name}`),
|
|
327
327
|
},
|
|
328
328
|
];
|
|
@@ -332,9 +332,9 @@ export class MyComponent {
|
|
|
332
332
|
### Modo lazy com filtro e paginação server-side
|
|
333
333
|
|
|
334
334
|
```typescript
|
|
335
|
-
import { Component, signal } from
|
|
336
|
-
import type { TableHeader, TableLazyLoadEvent } from
|
|
337
|
-
import { SdsTableComponent } from
|
|
335
|
+
import { Component, signal } from '@angular/core';
|
|
336
|
+
import type { TableHeader, TableLazyLoadEvent } from '@seniorsistemas/scala-ng/table';
|
|
337
|
+
import { SdsTableComponent } from '@seniorsistemas/scala-ng/table';
|
|
338
338
|
|
|
339
339
|
interface Employee {
|
|
340
340
|
name: string;
|
|
@@ -357,8 +357,8 @@ interface Employee {
|
|
|
357
357
|
})
|
|
358
358
|
export class MyComponent {
|
|
359
359
|
protected readonly headers: TableHeader<Employee>[] = [
|
|
360
|
-
{ type:
|
|
361
|
-
{ type:
|
|
360
|
+
{ type: 'string', field: 'name', label: 'Nome', sortable: true, filter: { type: 'text' } },
|
|
361
|
+
{ type: 'number', field: 'age', label: 'Idade', sortable: true },
|
|
362
362
|
];
|
|
363
363
|
|
|
364
364
|
protected readonly data = signal<Employee[]>([]);
|
package/table/public-api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type { TableToolbarAction, TableToolbarConfig, TableToolbarSelectionConfig, } from
|
|
2
|
-
export { SdsTableComponent } from
|
|
3
|
-
export type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent, } from
|
|
4
|
-
export type { AvatarSummaryTableHeader } from
|
|
5
|
-
export type { DateTableHeader } from
|
|
6
|
-
export type { NumberTableHeader } from
|
|
7
|
-
export type { RichTableHeader, RichTableHeaderAvatar } from
|
|
8
|
-
export type { StringTableHeader } from
|
|
9
|
-
export type { BaseTableHeader, KeyOfPrimitive, TableField, TableHeader, TableHeaderFilter, TableHeaderFilterOption, TableHeaderTypeMap, } from
|
|
10
|
-
export type { BaseTableFieldConfig } from
|
|
11
|
-
export { provideSdsTable, TABLE_FIELD_REGISTRY, TableFieldRegistry, withFieldTypes, } from
|
|
12
|
-
export type { TableFeature, TableFieldTypes } from
|
|
1
|
+
export type { TableToolbarAction, TableToolbarConfig, TableToolbarSelectionConfig, } from './src/table/table-toolbar.models';
|
|
2
|
+
export { SdsTableComponent } from './src/table/table.component';
|
|
3
|
+
export type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent, } from './src/table/table.models';
|
|
4
|
+
export type { AvatarSummaryTableHeader } from './src/fields/avatar-summary-table-header';
|
|
5
|
+
export type { DateTableHeader } from './src/fields/date-table-header';
|
|
6
|
+
export type { NumberTableHeader } from './src/fields/number-table-header';
|
|
7
|
+
export type { RichTableHeader, RichTableHeaderAvatar } from './src/fields/rich-table-header';
|
|
8
|
+
export type { StringTableHeader } from './src/fields/string-table-header';
|
|
9
|
+
export type { BaseTableHeader, KeyOfPrimitive, TableField, TableHeader, TableHeaderFilter, TableHeaderFilterOption, TableHeaderTypeMap, } from './src/fields/table-header';
|
|
10
|
+
export type { BaseTableFieldConfig } from './src/components/fields/base-table-field-config';
|
|
11
|
+
export { provideSdsTable, TABLE_FIELD_REGISTRY, TableFieldRegistry, withFieldTypes, } from './src/registry/table-field-registry';
|
|
12
|
+
export type { TableFeature, TableFieldTypes } from './src/registry/table-field-registry';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SdsTieredMenuItem } from
|
|
2
|
-
import type { ActionButton } from
|
|
1
|
+
import { type SdsTieredMenuItem } from '@seniorsistemas/scala-ng/tiered-menu';
|
|
2
|
+
import type { ActionButton } from '../../table/table.models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const TABLE_ACTIONS_MAX_INLINE = 3;
|
|
5
5
|
export declare class SdsTableActionsCellComponent<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AvatarSummaryTableHeader } from
|
|
2
|
-
import type { BaseTableFieldConfig } from
|
|
1
|
+
import type { AvatarSummaryTableHeader } from '../../../fields/avatar-summary-table-header';
|
|
2
|
+
import type { BaseTableFieldConfig } from '../base-table-field-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsAvatarSummaryFieldTableComponent<T> implements BaseTableFieldConfig<T, string> {
|
|
5
5
|
readonly field: import("@angular/core").InputSignal<AvatarSummaryTableHeader<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Signal } from
|
|
2
|
-
import type { TableHeader } from
|
|
1
|
+
import type { Signal } from '@angular/core';
|
|
2
|
+
import type { TableHeader } from '../../fields/table-header';
|
|
3
3
|
export interface BaseTableFieldConfig<T, TValue = unknown> {
|
|
4
4
|
field: Signal<TableHeader<T>>;
|
|
5
5
|
cell?: Signal<TValue | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DateTableHeader } from
|
|
2
|
-
import type { BaseTableFieldConfig } from
|
|
1
|
+
import type { DateTableHeader } from '../../../fields/date-table-header';
|
|
2
|
+
import type { BaseTableFieldConfig } from '../base-table-field-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsDateFieldTableComponent<T> implements BaseTableFieldConfig<T, string> {
|
|
5
5
|
readonly field: import("@angular/core").InputSignal<DateTableHeader<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NumberTableHeader } from
|
|
2
|
-
import type { BaseTableFieldConfig } from
|
|
1
|
+
import type { NumberTableHeader } from '../../../fields/number-table-header';
|
|
2
|
+
import type { BaseTableFieldConfig } from '../base-table-field-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsNumberFieldTableComponent<T> implements BaseTableFieldConfig<T, number> {
|
|
5
5
|
readonly field: import("@angular/core").InputSignal<NumberTableHeader<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RichTableHeader } from
|
|
2
|
-
import type { BaseTableFieldConfig } from
|
|
1
|
+
import type { RichTableHeader } from '../../../fields/rich-table-header';
|
|
2
|
+
import type { BaseTableFieldConfig } from '../base-table-field-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsRichFieldTableComponent<T> implements BaseTableFieldConfig<T, string> {
|
|
5
5
|
readonly field: import("@angular/core").InputSignal<RichTableHeader<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StringTableHeader } from
|
|
2
|
-
import type { BaseTableFieldConfig } from
|
|
1
|
+
import type { StringTableHeader } from '../../../fields/string-table-header';
|
|
2
|
+
import type { BaseTableFieldConfig } from '../base-table-field-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SdsStringFieldTableComponent<T> implements BaseTableFieldConfig<T, string> {
|
|
5
5
|
readonly field: import("@angular/core").InputSignal<StringTableHeader<T>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TableRowKey } from
|
|
1
|
+
import type { TableRowKey } from '../../table/table.models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export type TableSelectionCellMode =
|
|
3
|
+
export type TableSelectionCellMode = 'checkbox' | 'radio' | 'drag';
|
|
4
4
|
export declare class SdsTableSelectionCellComponent {
|
|
5
5
|
readonly mode: import("@angular/core").InputSignal<TableSelectionCellMode>;
|
|
6
6
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type SdsTieredMenuItem } from
|
|
2
|
-
import type { TableToolbarAction, TableToolbarConfig } from
|
|
1
|
+
import { type SdsTieredMenuItem } from '@seniorsistemas/scala-ng/tiered-menu';
|
|
2
|
+
import type { TableToolbarAction, TableToolbarConfig } from '../../table/table-toolbar.models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type TableToolbarMode =
|
|
4
|
+
export type TableToolbarMode = 'default' | 'selectionActive' | 'allSelected';
|
|
5
5
|
export declare class SdsTableToolbarComponent {
|
|
6
6
|
readonly config: import("@angular/core").InputSignal<TableToolbarConfig>;
|
|
7
7
|
readonly mode: import("@angular/core").InputSignal<TableToolbarMode>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SdsAvatarSummarySize, SdsAvatarSummaryType } from
|
|
2
|
-
import type { BaseTableHeader, KeyOfType } from
|
|
1
|
+
import type { SdsAvatarSummarySize, SdsAvatarSummaryType } from '@seniorsistemas/scala-ng/avatar-summary';
|
|
2
|
+
import type { BaseTableHeader, KeyOfType } from './table-header';
|
|
3
3
|
export interface AvatarSummaryTableHeader<T> extends BaseTableHeader<T> {
|
|
4
|
-
type:
|
|
4
|
+
type: 'avatarSummary';
|
|
5
5
|
field: KeyOfType<T, string>;
|
|
6
6
|
/** Pessoa (círculo) ou Entidade/time (quadrado). Fixo para toda a coluna. */
|
|
7
7
|
avatarType?: SdsAvatarSummaryType;
|
|
@@ -12,7 +12,7 @@ export interface AvatarSummaryTableHeader<T> extends BaseTableHeader<T> {
|
|
|
12
12
|
/** Propriedade de T com a classe do FontAwesome do ícone customizado de cada linha (entity). */
|
|
13
13
|
iconField?: KeyOfType<T, string>;
|
|
14
14
|
}
|
|
15
|
-
declare module
|
|
15
|
+
declare module './table-header' {
|
|
16
16
|
interface TableHeaderTypeMap<T> {
|
|
17
17
|
avatarSummary: AvatarSummaryTableHeader<T>;
|
|
18
18
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { BaseTableHeader, KeyOfType } from
|
|
1
|
+
import type { BaseTableHeader, KeyOfType } from './table-header';
|
|
2
2
|
export interface DateTableHeader<T> extends BaseTableHeader<T> {
|
|
3
|
-
type:
|
|
3
|
+
type: 'date';
|
|
4
4
|
/** Propriedade de T com a data em UTC (ISO 8601, ex.: `"2026-01-30T15:00:00Z"`), como enviada pelo servidor. */
|
|
5
5
|
field: KeyOfType<T, string>;
|
|
6
6
|
/** Fuso IANA usado para exibir a data (ex.: `"America/Sao_Paulo"`). Padrão: fuso do navegador. */
|
|
7
7
|
timeZone?: string;
|
|
8
8
|
}
|
|
9
|
-
declare module
|
|
9
|
+
declare module './table-header' {
|
|
10
10
|
interface TableHeaderTypeMap<T> {
|
|
11
11
|
date: DateTableHeader<T>;
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseTableHeader, KeyOfType } from
|
|
1
|
+
import type { BaseTableHeader, KeyOfType } from './table-header';
|
|
2
2
|
export interface NumberTableHeader<T> extends BaseTableHeader<T> {
|
|
3
|
-
type:
|
|
3
|
+
type: 'number';
|
|
4
4
|
field: KeyOfType<T, number>;
|
|
5
5
|
}
|
|
6
|
-
declare module
|
|
6
|
+
declare module './table-header' {
|
|
7
7
|
interface TableHeaderTypeMap<T> {
|
|
8
8
|
number: NumberTableHeader<T>;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SdsAvatarSummaryType } from
|
|
2
|
-
import type { BaseTableHeader, KeyOfType } from
|
|
1
|
+
import type { SdsAvatarSummaryType } from '@seniorsistemas/scala-ng/avatar-summary';
|
|
2
|
+
import type { BaseTableHeader, KeyOfType } from './table-header';
|
|
3
3
|
export interface RichTableHeaderAvatar<T> {
|
|
4
4
|
/** Pessoa (círculo) ou Entidade (quadrado arredondado). Fixo para toda a coluna. */
|
|
5
5
|
type: SdsAvatarSummaryType;
|
|
@@ -9,7 +9,7 @@ export interface RichTableHeaderAvatar<T> {
|
|
|
9
9
|
iconField?: KeyOfType<T, string>;
|
|
10
10
|
}
|
|
11
11
|
export interface RichTableHeader<T> extends BaseTableHeader<T> {
|
|
12
|
-
type:
|
|
12
|
+
type: 'rich';
|
|
13
13
|
/** Propriedade de T com o texto principal; também é a base de ordenação, busca e filtro. */
|
|
14
14
|
field: KeyOfType<T, string>;
|
|
15
15
|
/** Propriedade de T com o texto de apoio exibido abaixo do principal. */
|
|
@@ -17,7 +17,7 @@ export interface RichTableHeader<T> extends BaseTableHeader<T> {
|
|
|
17
17
|
/** Avatar exibido à esquerda do texto. Omitido, a célula não mostra avatar. */
|
|
18
18
|
avatar?: RichTableHeaderAvatar<T>;
|
|
19
19
|
}
|
|
20
|
-
declare module
|
|
20
|
+
declare module './table-header' {
|
|
21
21
|
interface TableHeaderTypeMap<T> {
|
|
22
22
|
rich: RichTableHeader<T>;
|
|
23
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { BaseTableHeader, KeyOfType } from
|
|
1
|
+
import type { BaseTableHeader, KeyOfType } from './table-header';
|
|
2
2
|
export interface StringTableHeader<T> extends BaseTableHeader<T> {
|
|
3
|
-
type:
|
|
3
|
+
type: 'string';
|
|
4
4
|
field: KeyOfType<T, string>;
|
|
5
|
-
format?:
|
|
5
|
+
format?: 'upper' | 'lower' | 'capitalize';
|
|
6
6
|
}
|
|
7
|
-
declare module
|
|
7
|
+
declare module './table-header' {
|
|
8
8
|
interface TableHeaderTypeMap<T> {
|
|
9
9
|
string: StringTableHeader<T>;
|
|
10
10
|
}
|
|
@@ -7,14 +7,14 @@ export interface TableHeaderFilterOption {
|
|
|
7
7
|
value: string;
|
|
8
8
|
}
|
|
9
9
|
export interface TableHeaderFilter {
|
|
10
|
-
type:
|
|
10
|
+
type: 'text' | 'select';
|
|
11
11
|
options?: TableHeaderFilterOption[];
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
}
|
|
14
14
|
export interface BaseTableHeader<T> {
|
|
15
15
|
label: string;
|
|
16
16
|
sortable?: boolean;
|
|
17
|
-
textAlign?:
|
|
17
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
18
18
|
filter?: TableHeaderFilter;
|
|
19
19
|
}
|
|
20
20
|
export interface TableHeaderTypeMap<T> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Type } from
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
2
|
export declare const BUILT_IN_FIELD_TYPES: ReadonlyMap<string, Type<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Provider, Type } from
|
|
2
|
-
import { InjectionToken } from
|
|
3
|
-
import type { TableField } from
|
|
1
|
+
import type { Provider, Type } from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import type { TableField } from '../fields/table-header';
|
|
4
4
|
/** Map of `header.type` to the component that renders the cell. */
|
|
5
5
|
export type TableFieldTypes = Partial<Record<TableField<any>, Type<unknown>>> & Record<string, Type<unknown>>;
|
|
6
6
|
/** Resolves the cell component of each header type, falling back to the parent injector's registry. */
|
|
@@ -15,7 +15,7 @@ export declare class TableFieldRegistry {
|
|
|
15
15
|
export declare const TABLE_FIELD_REGISTRY: InjectionToken<TableFieldRegistry>;
|
|
16
16
|
/** Optional feature of `provideSdsTable`. */
|
|
17
17
|
export interface TableFeature {
|
|
18
|
-
readonly kind:
|
|
18
|
+
readonly kind: 'fieldTypes';
|
|
19
19
|
readonly fieldTypes: TableFieldTypes;
|
|
20
20
|
}
|
|
21
21
|
/** Registers cell components for custom header types or overrides the built-in ones. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { CdkDragDrop } from
|
|
2
|
-
import { TemplateRef } from
|
|
3
|
-
import type { PaginatorPageEvent } from
|
|
4
|
-
import type { TableSelectionCellMode } from
|
|
5
|
-
import type { TableToolbarMode } from
|
|
6
|
-
import type { KeyOfPrimitive, TableHeader } from
|
|
7
|
-
import type { RenderRow } from
|
|
8
|
-
import type { ActiveSort } from
|
|
9
|
-
import type { TableToolbarConfig } from
|
|
10
|
-
import type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent } from
|
|
1
|
+
import type { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import type { PaginatorPageEvent } from '@seniorsistemas/scala-ng/paginator';
|
|
4
|
+
import type { TableSelectionCellMode } from '../components/selection-cell/table-selection-cell.component';
|
|
5
|
+
import type { TableToolbarMode } from '../components/toolbar/table-toolbar.component';
|
|
6
|
+
import type { KeyOfPrimitive, TableHeader } from '../fields/table-header';
|
|
7
|
+
import type { RenderRow } from '../utils/table-group.utils';
|
|
8
|
+
import type { ActiveSort } from '../utils/table-sort.utils';
|
|
9
|
+
import type { TableToolbarConfig } from './table-toolbar.models';
|
|
10
|
+
import type { ActionButton, SelectionMode, TableLazyLoadEvent, TablePaginatorConfig, TableRowKey, TableRowReorderEvent } from './table.models';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
type RequireKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
13
13
|
export declare class SdsTableComponent<T> {
|
|
@@ -126,7 +126,7 @@ export declare class SdsTableComponent<T> {
|
|
|
126
126
|
protected _onExpandAllToggle(): void;
|
|
127
127
|
protected _onDrop(event: CdkDragDrop<T[]>): void;
|
|
128
128
|
protected _onPaginatorChange(event: PaginatorPageEvent): void;
|
|
129
|
-
protected _ariaSortFor(header: TableHeader<T>):
|
|
129
|
+
protected _ariaSortFor(header: TableHeader<T>): 'ascending' | 'descending' | 'none' | null;
|
|
130
130
|
protected _sortIconFor(header: TableHeader<T>): string;
|
|
131
131
|
private _keyOf;
|
|
132
132
|
private _pageDataKeys;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TableLazyLoadEvent<T> {
|
|
2
2
|
sortField?: keyof T;
|
|
3
|
-
sortOrder?:
|
|
3
|
+
sortOrder?: 'asc' | 'desc';
|
|
4
4
|
filters?: Partial<Record<keyof T, string>>;
|
|
5
5
|
/** Termo digitado na busca da toolbar. */
|
|
6
6
|
search?: string;
|
|
@@ -32,7 +32,7 @@ export interface ActionButton<T = unknown> {
|
|
|
32
32
|
}
|
|
33
33
|
/** Chave primitiva usada para identificar uma linha (valor do campo apontado por `dataKey`). */
|
|
34
34
|
export type TableRowKey = string | number;
|
|
35
|
-
export type SelectionMode =
|
|
35
|
+
export type SelectionMode = 'none' | 'single' | 'multiple';
|
|
36
36
|
/** Configuração do `sds-paginator` exibido pela tabela quando `paginator` é `true`. */
|
|
37
37
|
export interface TablePaginatorConfig {
|
|
38
38
|
/** Opções do seletor "Itens por página". Padrão: `[10, 25, 50, 100]`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableHeader } from
|
|
1
|
+
import type { TableHeader } from '../fields/table-header';
|
|
2
2
|
export type FilterValues = Partial<Record<PropertyKey, string>>;
|
|
3
3
|
export declare function normalizeSearchText(value: unknown): string;
|
|
4
4
|
/** Returns only the filters with a non-empty value, or `undefined` when there is none. */
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { TableRowKey } from
|
|
1
|
+
import type { TableRowKey } from '../table/table.models';
|
|
2
2
|
export type RenderRow<T> = {
|
|
3
|
-
kind:
|
|
3
|
+
kind: 'row';
|
|
4
4
|
key: TableRowKey | undefined;
|
|
5
5
|
data: T;
|
|
6
6
|
rowIndex: number;
|
|
7
7
|
} | {
|
|
8
|
-
kind:
|
|
8
|
+
kind: 'group';
|
|
9
9
|
key: string;
|
|
10
10
|
label: string;
|
|
11
11
|
count: number;
|
|
12
12
|
collapsed: boolean;
|
|
13
13
|
};
|
|
14
14
|
export type RenderDataRow<T> = Extract<RenderRow<T>, {
|
|
15
|
-
kind:
|
|
15
|
+
kind: 'row';
|
|
16
16
|
}>;
|
|
17
17
|
export declare function isDataRow<T>(item: RenderRow<T>): item is RenderDataRow<T>;
|
|
18
18
|
export interface BuildRenderRowsOptions<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TableLazyLoadEvent } from
|
|
2
|
-
import type { FilterValues } from
|
|
3
|
-
import type { ActiveSort } from
|
|
1
|
+
import type { TableLazyLoadEvent } from '../table/table.models';
|
|
2
|
+
import type { FilterValues } from './table-filter.utils';
|
|
3
|
+
import type { ActiveSort } from './table-sort.utils';
|
|
4
4
|
export interface BuildLazyLoadEventOptions {
|
|
5
5
|
sort: ActiveSort | null;
|
|
6
6
|
filterValues: FilterValues;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TableRowKey } from
|
|
2
|
-
export type HeaderSelectionState =
|
|
1
|
+
import type { TableRowKey } from '../table/table.models';
|
|
2
|
+
export type HeaderSelectionState = 'checked' | 'unchecked' | 'indeterminate';
|
|
3
3
|
export declare function getHeaderSelectionState(allSelected: boolean, selectedKeys: Set<TableRowKey>, pageKeys: TableRowKey[]): HeaderSelectionState;
|
|
4
4
|
/** True when the selection already covers every record that exists, so there is nothing left to "select all matching". */
|
|
5
5
|
export declare function coversAllRecords(selectedCount: number, totalRecords: number | undefined): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TableHeader } from
|
|
2
|
-
export type SortOrder =
|
|
1
|
+
import type { TableHeader } from '../fields/table-header';
|
|
2
|
+
export type SortOrder = 'asc' | 'desc';
|
|
3
3
|
export interface ActiveSort {
|
|
4
4
|
field: PropertyKey;
|
|
5
5
|
order: SortOrder;
|
package/tiered-menu/README.md
CHANGED
|
@@ -82,8 +82,8 @@ npm install @seniorsistemas/scala-ng
|
|
|
82
82
|
Importe a diretiva diretamente no seu standalone component:
|
|
83
83
|
|
|
84
84
|
```typescript
|
|
85
|
-
import { SdsTieredMenuDirective } from
|
|
86
|
-
import type { SdsTieredMenuItem } from
|
|
85
|
+
import { SdsTieredMenuDirective } from '@seniorsistemas/scala-ng/tiered-menu';
|
|
86
|
+
import type { SdsTieredMenuItem } from '@seniorsistemas/scala-ng/tiered-menu';
|
|
87
87
|
|
|
88
88
|
@Component({
|
|
89
89
|
imports: [SdsTieredMenuDirective],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SdsTieredMenuDirective } from
|
|
2
|
-
export type { SdsTieredMenuItem } from
|
|
1
|
+
export { SdsTieredMenuDirective } from './src/tiered-menu-trigger/tiered-menu-trigger.directive';
|
|
2
|
+
export type { SdsTieredMenuItem } from './src/tiered-menu/tiered-menu-item';
|