@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
|
@@ -6,24 +6,24 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
7
7
|
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
8
8
|
const TAILWIND_DEPS = [
|
|
9
|
-
{ name:
|
|
10
|
-
{ name:
|
|
11
|
-
{ name:
|
|
9
|
+
{ name: 'tailwindcss', version: '^3.4.0', type: dependencies_1.NodeDependencyType.Dev },
|
|
10
|
+
{ name: 'postcss', version: '^8.4.0', type: dependencies_1.NodeDependencyType.Dev },
|
|
11
|
+
{ name: 'autoprefixer', version: '^10.4.0', type: dependencies_1.NodeDependencyType.Dev },
|
|
12
12
|
];
|
|
13
|
-
const LIB_PACKAGE =
|
|
13
|
+
const LIB_PACKAGE = '@seniorsistemas/scala-ng';
|
|
14
14
|
const LIB_STYLES = `node_modules/${LIB_PACKAGE}/styles.scss`;
|
|
15
15
|
// The components' classes live in the compiled package, which Tailwind only sees through `content`.
|
|
16
16
|
// `fesm2022` alone has every class; the unbundled `esm2022` copy would only slow the scan down.
|
|
17
17
|
const LIB_CONTENT_GLOB = `./node_modules/${LIB_PACKAGE}/fesm2022/**/*.mjs`;
|
|
18
|
-
const DEFAULT_TAILWIND_CONFIG_FILE =
|
|
18
|
+
const DEFAULT_TAILWIND_CONFIG_FILE = 'tailwind.config.js';
|
|
19
19
|
// Every config file name Tailwind 3 auto-detects, so an existing non-.js config isn't shadowed by a new one.
|
|
20
20
|
const TAILWIND_CONFIG_FILES = [
|
|
21
21
|
DEFAULT_TAILWIND_CONFIG_FILE,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
'tailwind.config.cjs',
|
|
23
|
+
'tailwind.config.mjs',
|
|
24
|
+
'tailwind.config.ts',
|
|
25
|
+
'tailwind.config.cts',
|
|
26
|
+
'tailwind.config.mts',
|
|
27
27
|
];
|
|
28
28
|
const TAILWIND_DIRECTIVES = `@tailwind base;\n@tailwind components;\n@tailwind utilities;\n`;
|
|
29
29
|
const DEFAULT_TAILWIND_CONFIG = `const { scalaPreset } = require('@seniorsistemas/scala-ng/styles/tailwind-preset');
|
|
@@ -39,7 +39,7 @@ function addDependencies() {
|
|
|
39
39
|
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
40
40
|
type: dependencies_1.NodeDependencyType.Default,
|
|
41
41
|
name: LIB_PACKAGE,
|
|
42
|
-
version:
|
|
42
|
+
version: 'latest',
|
|
43
43
|
overwrite: false,
|
|
44
44
|
});
|
|
45
45
|
for (const dep of TAILWIND_DEPS) {
|
|
@@ -66,8 +66,8 @@ function setupTailwindConfig() {
|
|
|
66
66
|
if (!contentBuffer) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
const content = contentBuffer.toString(
|
|
70
|
-
if (content.includes(
|
|
69
|
+
const content = contentBuffer.toString('utf-8');
|
|
70
|
+
if (content.includes('scala-ng/styles/tailwind-preset')) {
|
|
71
71
|
context.logger.info(`ℹ️ ${configPath} já importa o preset do scala-ng. Nenhuma alteração feita.`);
|
|
72
72
|
if (!content.includes(`node_modules/${LIB_PACKAGE}`)) {
|
|
73
73
|
context.logger.warn(`⚠️ O content do ${configPath} não inclui os componentes do scala-ng, então as classes usadas por eles não são geradas.`);
|
|
@@ -77,12 +77,12 @@ function setupTailwindConfig() {
|
|
|
77
77
|
else {
|
|
78
78
|
context.logger.warn(`⚠️ ${configPath} já existe mas não importa o preset do @seniorsistemas/scala-ng.`);
|
|
79
79
|
context.logger.warn(` Adicione manualmente ao seu ${configPath}:`);
|
|
80
|
-
context.logger.warn(
|
|
80
|
+
context.logger.warn('');
|
|
81
81
|
context.logger.warn(` const { scalaPreset } = require('@seniorsistemas/scala-ng/styles/tailwind-preset');`);
|
|
82
|
-
context.logger.warn(
|
|
83
|
-
context.logger.warn(
|
|
82
|
+
context.logger.warn(' module.exports = {');
|
|
83
|
+
context.logger.warn(' presets: [scalaPreset],');
|
|
84
84
|
context.logger.warn(` content: ['./src/**/*.{html,ts,scss}', '${LIB_CONTENT_GLOB}'],`);
|
|
85
|
-
context.logger.warn(
|
|
85
|
+
context.logger.warn(' };');
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -92,8 +92,8 @@ function injectTailwindIntoStyleFile(tree, context, globalStyles, projectName) {
|
|
|
92
92
|
context.logger.warn(`⚠️ Arquivo ${globalStyles} não pôde ser lido.`);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
const content = contentBuffer.toString(
|
|
96
|
-
if (content.includes(
|
|
95
|
+
const content = contentBuffer.toString('utf-8');
|
|
96
|
+
if (content.includes('@tailwind')) {
|
|
97
97
|
context.logger.info(`ℹ️ ${globalStyles} já contém diretivas @tailwind. Nenhuma alteração feita.`);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
@@ -101,9 +101,9 @@ function injectTailwindIntoStyleFile(tree, context, globalStyles, projectName) {
|
|
|
101
101
|
context.logger.info(`✅ Diretivas @tailwind adicionadas em ${globalStyles} (projeto "${projectName}")`);
|
|
102
102
|
}
|
|
103
103
|
function updateStylesForProject(tree, context, projectName, styles) {
|
|
104
|
-
const globalStyles = styles.find((s) => typeof s ===
|
|
105
|
-
!s.startsWith(
|
|
106
|
-
(s.endsWith(
|
|
104
|
+
const globalStyles = styles.find((s) => typeof s === 'string' &&
|
|
105
|
+
!s.startsWith('node_modules/') &&
|
|
106
|
+
(s.endsWith('styles.scss') || s.endsWith('styles.css')));
|
|
107
107
|
if (!globalStyles) {
|
|
108
108
|
context.logger.warn(`⚠️ Nenhum styles.scss/styles.css global encontrado para o projeto "${projectName}". Adicione @tailwind manualmente.`);
|
|
109
109
|
return;
|
|
@@ -118,10 +118,10 @@ function updateStyles() {
|
|
|
118
118
|
return async (tree, context) => {
|
|
119
119
|
const workspace = await (0, workspace_1.getWorkspace)(tree);
|
|
120
120
|
for (const [projectName, project] of workspace.projects.entries()) {
|
|
121
|
-
if (project.extensions[
|
|
122
|
-
const buildTarget = project.targets.get(
|
|
121
|
+
if (project.extensions['projectType'] === 'application') {
|
|
122
|
+
const buildTarget = project.targets.get('build');
|
|
123
123
|
if (buildTarget?.options) {
|
|
124
|
-
const styles = buildTarget.options[
|
|
124
|
+
const styles = buildTarget.options['styles'] ?? [];
|
|
125
125
|
updateStylesForProject(tree, context, projectName, styles);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -132,17 +132,17 @@ function ensureLibStylesInBuildTarget(buildTarget) {
|
|
|
132
132
|
if (!buildTarget.options) {
|
|
133
133
|
buildTarget.options = {};
|
|
134
134
|
}
|
|
135
|
-
const styles = buildTarget.options[
|
|
135
|
+
const styles = buildTarget.options['styles'] ?? [];
|
|
136
136
|
if (!styles.includes(LIB_STYLES)) {
|
|
137
|
-
buildTarget.options[
|
|
137
|
+
buildTarget.options['styles'] = [LIB_STYLES, ...styles];
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
function addLibStyles() {
|
|
141
141
|
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
142
142
|
for (const projectEntries of workspace.projects.entries()) {
|
|
143
143
|
const project = projectEntries[1];
|
|
144
|
-
if (project.extensions[
|
|
145
|
-
const buildTarget = project.targets.get(
|
|
144
|
+
if (project.extensions['projectType'] === 'application') {
|
|
145
|
+
const buildTarget = project.targets.get('build');
|
|
146
146
|
if (buildTarget) {
|
|
147
147
|
ensureLibStylesInBuildTarget(buildTarget);
|
|
148
148
|
}
|
package/select/README.md
CHANGED
|
@@ -164,7 +164,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
164
164
|
Importe o componente diretamente no seu standalone component:
|
|
165
165
|
|
|
166
166
|
```typescript
|
|
167
|
-
import { SdsSelectComponent } from
|
|
167
|
+
import { SdsSelectComponent } from '@seniorsistemas/scala-ng/select';
|
|
168
168
|
|
|
169
169
|
@Component({
|
|
170
170
|
imports: [SdsSelectComponent],
|
|
@@ -227,7 +227,7 @@ export class MyComponent {}
|
|
|
227
227
|
### Uso básico com strings
|
|
228
228
|
|
|
229
229
|
```typescript
|
|
230
|
-
import { SdsSelectComponent } from
|
|
230
|
+
import { SdsSelectComponent } from '@seniorsistemas/scala-ng/select';
|
|
231
231
|
|
|
232
232
|
@Component({
|
|
233
233
|
imports: [SdsSelectComponent],
|
|
@@ -245,8 +245,8 @@ export class MyComponent {}
|
|
|
245
245
|
### Com objetos e Reactive Forms
|
|
246
246
|
|
|
247
247
|
```typescript
|
|
248
|
-
import { SdsSelectComponent, SelectOption } from
|
|
249
|
-
import { FormControl, ReactiveFormsModule, Validators } from
|
|
248
|
+
import { SdsSelectComponent, SelectOption } from '@seniorsistemas/scala-ng/select';
|
|
249
|
+
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
250
250
|
|
|
251
251
|
interface Country {
|
|
252
252
|
id: number;
|
|
@@ -270,8 +270,8 @@ export class MyComponent {
|
|
|
270
270
|
control = new FormControl<Country | null>(null, Validators.required);
|
|
271
271
|
|
|
272
272
|
countries: SelectOption<Country>[] = [
|
|
273
|
-
{ label:
|
|
274
|
-
{ label:
|
|
273
|
+
{ label: 'Brasil', value: { id: 1, name: 'Brasil' } },
|
|
274
|
+
{ label: 'Argentina', value: { id: 2, name: 'Argentina' } },
|
|
275
275
|
];
|
|
276
276
|
|
|
277
277
|
compareById = (a: Country, b: Country) => a.id === b.id;
|
|
@@ -294,10 +294,10 @@ export class MyComponent {
|
|
|
294
294
|
})
|
|
295
295
|
export class MyComponent {
|
|
296
296
|
cities: SelectOption<string>[] = [
|
|
297
|
-
{ label:
|
|
298
|
-
{ label:
|
|
299
|
-
{ label:
|
|
300
|
-
{ label:
|
|
297
|
+
{ label: 'São Paulo', value: 'SP', group: 'Sudeste' },
|
|
298
|
+
{ label: 'Rio de Janeiro', value: 'RJ', group: 'Sudeste' },
|
|
299
|
+
{ label: 'Curitiba', value: 'CWB', group: 'Sul' },
|
|
300
|
+
{ label: 'Porto Alegre', value: 'POA', group: 'Sul' },
|
|
301
301
|
];
|
|
302
302
|
}
|
|
303
303
|
```
|
|
@@ -305,8 +305,8 @@ export class MyComponent {
|
|
|
305
305
|
### Seleção múltipla
|
|
306
306
|
|
|
307
307
|
```typescript
|
|
308
|
-
import { SdsSelectComponent, type SelectOption } from
|
|
309
|
-
import { FormControl, ReactiveFormsModule } from
|
|
308
|
+
import { SdsSelectComponent, type SelectOption } from '@seniorsistemas/scala-ng/select';
|
|
309
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
310
310
|
|
|
311
311
|
@Component({
|
|
312
312
|
imports: [SdsSelectComponent, ReactiveFormsModule],
|
|
@@ -322,9 +322,9 @@ import { FormControl, ReactiveFormsModule } from "@angular/forms";
|
|
|
322
322
|
})
|
|
323
323
|
export class MyComponent {
|
|
324
324
|
frameworks: SelectOption<string>[] = [
|
|
325
|
-
{ label:
|
|
326
|
-
{ label:
|
|
327
|
-
{ label:
|
|
325
|
+
{ label: 'Angular', value: 'angular' },
|
|
326
|
+
{ label: 'React', value: 'react' },
|
|
327
|
+
{ label: 'Vue', value: 'vue' },
|
|
328
328
|
];
|
|
329
329
|
|
|
330
330
|
// O contrato de valor em multiple é sempre T[] — inicialize com [], nunca null.
|
|
@@ -390,6 +390,10 @@ export class MyComponent {
|
|
|
390
390
|
|
|
391
391
|
### [Unreleased] — 2026-10-07
|
|
392
392
|
|
|
393
|
+
#### Changed
|
|
394
|
+
|
|
395
|
+
- O spinner do painel em carregamento passa a usar `sds-loading-spinner` (com trilho), no lugar do `sds-spinner` depreciado.
|
|
396
|
+
|
|
393
397
|
#### Fixed
|
|
394
398
|
|
|
395
399
|
- `ArrowDown` após `ArrowUp` no campo de busca continua da opção destacada, não de um índice antigo
|
package/select/public-api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SdsSelectComponent } from
|
|
2
|
-
export type { SelectOption } from
|
|
1
|
+
export { SdsSelectComponent } from './src/select/select.component';
|
|
2
|
+
export type { SelectOption } from './src/select/select.models';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager, FocusKeyManager, Highlightable } from
|
|
2
|
-
import { ConnectedPosition } from
|
|
3
|
-
import { OnInit, TemplateRef } from
|
|
4
|
-
import { AbstractControl, ControlValueAccessor, NgControl } from
|
|
5
|
-
import { FocusableItemAdapter } from
|
|
6
|
-
import { SdsFilterTagComponent } from
|
|
7
|
-
import { type FieldState } from
|
|
8
|
-
import { SdsSelectionChipComponent } from
|
|
9
|
-
import type { SelectOption } from
|
|
1
|
+
import { ActiveDescendantKeyManager, FocusKeyManager, Highlightable } from '@angular/cdk/a11y';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
4
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
5
|
+
import { FocusableItemAdapter } from '@seniorsistemas/scala-ng';
|
|
6
|
+
import { SdsFilterTagComponent } from '@seniorsistemas/scala-ng/filter-tag';
|
|
7
|
+
import { type FieldState } from '@seniorsistemas/scala-ng/form-field';
|
|
8
|
+
import { SdsSelectionChipComponent } from '@seniorsistemas/scala-ng/selection-chip';
|
|
9
|
+
import type { SelectOption } from './select.models';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
type TaggedOption<T> = SelectOption<T> & {
|
|
12
12
|
readonly _trackId: string;
|
|
@@ -14,11 +14,11 @@ type TaggedOption<T> = SelectOption<T> & {
|
|
|
14
14
|
type FieldType<T> = T | T[] | null;
|
|
15
15
|
type DisplayRow<T> = {
|
|
16
16
|
trackId: string;
|
|
17
|
-
type:
|
|
17
|
+
type: 'header';
|
|
18
18
|
label: string;
|
|
19
19
|
} | {
|
|
20
20
|
trackId: string;
|
|
21
|
-
type:
|
|
21
|
+
type: 'option';
|
|
22
22
|
option: TaggedOption<T>;
|
|
23
23
|
optionIndex: number;
|
|
24
24
|
};
|
package/select-button/README.md
CHANGED
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
SdsSelectButtonComponent,
|
|
99
99
|
type SelectButtonItem,
|
|
100
100
|
type SelectButtonRefinementOption,
|
|
101
|
-
} from
|
|
101
|
+
} from '@seniorsistemas/scala-ng/select-button';
|
|
102
102
|
|
|
103
103
|
@Component({
|
|
104
104
|
imports: [SdsSelectButtonComponent],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SdsSelectButtonComponent } from
|
|
2
|
-
export { type SelectButtonItem, type SelectButtonRefinementOption, } from
|
|
1
|
+
export { SdsSelectButtonComponent } from './src/select-button/select-button.component';
|
|
2
|
+
export { type SelectButtonItem, type SelectButtonRefinementOption, } from './src/select-button/select-button.models';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FocusableOption, FocusKeyManager } from
|
|
2
|
-
import { ConnectedPosition } from
|
|
3
|
-
import { ElementRef } from
|
|
4
|
-
import { ControlValueAccessor, NgControl } from
|
|
5
|
-
import type { SelectButtonItem, SelectButtonRefinementOption } from
|
|
1
|
+
import { FocusableOption, FocusKeyManager } from '@angular/cdk/a11y';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
+
import { ElementRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
5
|
+
import type { SelectButtonItem, SelectButtonRefinementOption } from './select-button.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Adapts a visible segment `<button>` to CDK's `FocusableOption` for roving tabindex. Carries the
|
|
@@ -17,10 +17,10 @@ declare class SegmentFocusItem<T> implements FocusableOption {
|
|
|
17
17
|
getLabel(): string;
|
|
18
18
|
}
|
|
19
19
|
type OpenPanel<T> = {
|
|
20
|
-
kind:
|
|
20
|
+
kind: 'refinement';
|
|
21
21
|
value: T;
|
|
22
22
|
} | {
|
|
23
|
-
kind:
|
|
23
|
+
kind: 'overflow';
|
|
24
24
|
};
|
|
25
25
|
type TaggedItem<T, R> = SelectButtonItem<T, R> & {
|
|
26
26
|
readonly _trackId: string;
|
package/selection-chip/README.md
CHANGED
|
@@ -94,7 +94,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
94
94
|
Importe o componente diretamente no seu standalone component:
|
|
95
95
|
|
|
96
96
|
```typescript
|
|
97
|
-
import { SdsSelectionChipComponent } from
|
|
97
|
+
import { SdsSelectionChipComponent } from '@seniorsistemas/scala-ng/selection-chip';
|
|
98
98
|
|
|
99
99
|
@Component({
|
|
100
100
|
imports: [SdsSelectionChipComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SdsSelectionChipComponent } from
|
|
1
|
+
export { SdsSelectionChipComponent } from './src/selection-chip/selection-chip.component';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ChipBaseVisualState, stopChipActivationKeys } from
|
|
1
|
+
import { type ChipBaseVisualState, stopChipActivationKeys } from '@seniorsistemas/scala-ng';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export type SdsSelectionChipKind =
|
|
4
|
-
type SelectionChipVisualState = ChipBaseVisualState |
|
|
3
|
+
export type SdsSelectionChipKind = 'selection' | 'action';
|
|
4
|
+
type SelectionChipVisualState = ChipBaseVisualState | 'selected';
|
|
5
5
|
export declare class SdsSelectionChipComponent {
|
|
6
6
|
private readonly containerRef;
|
|
7
7
|
private readonly removeButtonRef;
|
package/slider/README.md
CHANGED
|
@@ -116,7 +116,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
116
116
|
Importe o componente diretamente no seu standalone component:
|
|
117
117
|
|
|
118
118
|
```typescript
|
|
119
|
-
import { SdsSliderComponent } from
|
|
119
|
+
import { SdsSliderComponent } from '@seniorsistemas/scala-ng/slider';
|
|
120
120
|
|
|
121
121
|
@Component({
|
|
122
122
|
imports: [SdsSliderComponent, ReactiveFormsModule],
|
|
@@ -161,12 +161,12 @@ export class MyComponent {}
|
|
|
161
161
|
### Valor único com validação
|
|
162
162
|
|
|
163
163
|
```typescript
|
|
164
|
-
import { Component } from
|
|
165
|
-
import { FormControl, ReactiveFormsModule, Validators } from
|
|
166
|
-
import { SdsSliderComponent } from
|
|
164
|
+
import { Component } from '@angular/core';
|
|
165
|
+
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
166
|
+
import { SdsSliderComponent } from '@seniorsistemas/scala-ng/slider';
|
|
167
167
|
|
|
168
168
|
@Component({
|
|
169
|
-
selector:
|
|
169
|
+
selector: 'app-example',
|
|
170
170
|
standalone: true,
|
|
171
171
|
imports: [SdsSliderComponent, ReactiveFormsModule],
|
|
172
172
|
template: `<sds-slider
|
|
@@ -178,7 +178,7 @@ import { SdsSliderComponent } from "@seniorsistemas/scala-ng/slider";
|
|
|
178
178
|
})
|
|
179
179
|
export class ExampleComponent {
|
|
180
180
|
alertLimit = new FormControl(60, [Validators.max(80)]);
|
|
181
|
-
errorMessages = { max:
|
|
181
|
+
errorMessages = { max: 'O limite não pode passar de 80%.' };
|
|
182
182
|
}
|
|
183
183
|
```
|
|
184
184
|
|
package/slider/public-api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SdsSliderComponent } from
|
|
2
|
-
export type { SdsSliderLayout, SdsSliderType, SdsSliderValue } from
|
|
1
|
+
export { SdsSliderComponent } from './src/slider/slider.component';
|
|
2
|
+
export type { SdsSliderLayout, SdsSliderType, SdsSliderValue } from './src/slider/slider.types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbstractControl, ControlValueAccessor, FormControl, NgControl } from
|
|
2
|
-
import type { FieldState } from
|
|
3
|
-
import type { SdsSliderLayout, SdsSliderType, SdsSliderValue, SliderThumbKey } from
|
|
1
|
+
import { AbstractControl, ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
2
|
+
import type { FieldState } from '@seniorsistemas/scala-ng/form-field';
|
|
3
|
+
import type { SdsSliderLayout, SdsSliderType, SdsSliderValue, SliderThumbKey } from './slider.types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
interface SliderThumbVisual {
|
|
6
6
|
halo: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type SdsSliderLayout =
|
|
2
|
-
export type SdsSliderType =
|
|
1
|
+
export type SdsSliderLayout = 'stacked' | 'row';
|
|
2
|
+
export type SdsSliderType = 'single' | 'range';
|
|
3
3
|
/** `number` for `type="single"`, `[start, end]` for `type="range"`. */
|
|
4
4
|
export type SdsSliderValue = number | [number, number] | null;
|
|
5
|
-
export type SliderThumbKey =
|
|
5
|
+
export type SliderThumbKey = 'start' | 'end';
|
package/spinner/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Indicador de carregamento animado, puramente visual — um ícone giratório sem nenhum significado semântico próprio. Usado internamente por `SdsSelectComponent` e `SdsAutocompleteComponent` para sinalizar carregamento assíncrono, e disponível para o mesmo uso em qualquer tela.
|
|
6
6
|
|
|
7
|
+
> **Depreciado:** use `*sdsLoadingState` (`@seniorsistemas/scala-ng/loading-state`). O `SdsSpinnerComponent` será removido na v3.0.0. Há uma migration automática: `ng update @seniorsistemas/scala-ng`.
|
|
8
|
+
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
## Usage
|
|
@@ -80,7 +82,7 @@ npm install @seniorsistemas/scala-ng
|
|
|
80
82
|
Importe o componente diretamente no seu standalone component:
|
|
81
83
|
|
|
82
84
|
```typescript
|
|
83
|
-
import { SdsSpinnerComponent } from
|
|
85
|
+
import { SdsSpinnerComponent } from '@seniorsistemas/scala-ng/spinner';
|
|
84
86
|
|
|
85
87
|
@Component({
|
|
86
88
|
imports: [SdsSpinnerComponent],
|
|
@@ -134,6 +136,12 @@ export class MyComponent {}
|
|
|
134
136
|
|
|
135
137
|
## Patch Notes
|
|
136
138
|
|
|
139
|
+
### [1.1.0] — 2026-11-17
|
|
140
|
+
|
|
141
|
+
#### Deprecated
|
|
142
|
+
|
|
143
|
+
- `SdsSpinnerComponent` — use `*sdsLoadingState`; remoção prevista para a v3.0.0.
|
|
144
|
+
|
|
137
145
|
### [1.0.0] — 2026-09-22
|
|
138
146
|
|
|
139
147
|
#### Added
|
package/spinner/public-api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SdsSpinnerComponent } from
|
|
1
|
+
export { SdsSpinnerComponent } from './src/spinner/spinner.component';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `*sdsLoadingState` instead. It will be removed in v3.0.0.
|
|
4
|
+
*/
|
|
2
5
|
export declare class SdsSpinnerComponent {
|
|
3
6
|
/** Spinner width and height, in pixels. */
|
|
4
7
|
readonly size: import("@angular/core").InputSignal<number>;
|