@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,18 +6,18 @@ import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
|
6
6
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
7
|
|
|
8
8
|
const ARROW_EDGE = {
|
|
9
|
-
top:
|
|
10
|
-
bottom:
|
|
11
|
-
left:
|
|
12
|
-
right:
|
|
9
|
+
top: 'bottom',
|
|
10
|
+
bottom: 'top',
|
|
11
|
+
left: 'right',
|
|
12
|
+
right: 'left',
|
|
13
13
|
};
|
|
14
14
|
// The 14x7 triangle overlaps the bubble by 1px (the negative margin keeps it centered), so a
|
|
15
15
|
// fractional browser zoom cannot round a hairline gap between the arrow and the bubble.
|
|
16
16
|
const ARROW_EDGE_CLASSES = {
|
|
17
|
-
top:
|
|
18
|
-
bottom:
|
|
19
|
-
left:
|
|
20
|
-
right:
|
|
17
|
+
top: '-top-[6px] -ml-[1px] border-x-[7px] border-x-transparent border-b-[7px] border-b-color-background-inverse',
|
|
18
|
+
bottom: '-bottom-[6px] -ml-[1px] border-x-[7px] border-x-transparent border-t-[7px] border-t-color-background-inverse',
|
|
19
|
+
left: '-left-[6px] -mt-[1px] border-y-[7px] border-y-transparent border-r-[7px] border-r-color-background-inverse',
|
|
20
|
+
right: '-right-[6px] -mt-[1px] border-y-[7px] border-y-transparent border-l-[7px] border-l-color-background-inverse',
|
|
21
21
|
};
|
|
22
22
|
let panelIdCounter = 0;
|
|
23
23
|
class SdsTooltipPanelComponent {
|
|
@@ -28,32 +28,32 @@ class SdsTooltipPanelComponent {
|
|
|
28
28
|
/** Context for a template `content`. */
|
|
29
29
|
context = input(null);
|
|
30
30
|
/** Title of the rich variant; empty renders the plain variant. */
|
|
31
|
-
tooltipTitle = input(
|
|
31
|
+
tooltipTitle = input('');
|
|
32
32
|
/** Whether to show the arrow. */
|
|
33
33
|
showArrow = input(true);
|
|
34
34
|
/** Side of the trigger where the CDK placed the bubble. */
|
|
35
|
-
resolvedPosition = input(
|
|
35
|
+
resolvedPosition = input('top');
|
|
36
36
|
/** Arrow offset in px along the bubble edge, so it points at the trigger. */
|
|
37
37
|
arrowOffsetPx = input(0);
|
|
38
38
|
contentAsString = computed(() => {
|
|
39
39
|
const value = this.content();
|
|
40
|
-
return typeof value ===
|
|
40
|
+
return typeof value === 'string' ? value : null;
|
|
41
41
|
});
|
|
42
42
|
contentAsTemplate = computed(() => {
|
|
43
43
|
const value = this.content();
|
|
44
44
|
return value instanceof TemplateRef ? value : null;
|
|
45
45
|
});
|
|
46
|
-
contentType = computed(() => this.tooltipTitle() ?
|
|
46
|
+
contentType = computed(() => this.tooltipTitle() ? 'rich' : 'plain');
|
|
47
47
|
containerClasses = computed(() => ({
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
'max-w-[320px]': this.contentType() === 'rich',
|
|
49
|
+
'max-w-[288px]': this.contentType() === 'plain',
|
|
50
50
|
}));
|
|
51
51
|
arrowEdge = computed(() => ARROW_EDGE[this.resolvedPosition()]);
|
|
52
52
|
arrowClasses = computed(() => ARROW_EDGE_CLASSES[this.arrowEdge()]);
|
|
53
53
|
/** Arrow on the top/bottom edge, so the offset runs along X. */
|
|
54
54
|
arrowOnHorizontalEdge = computed(() => {
|
|
55
55
|
const edge = this.arrowEdge();
|
|
56
|
-
return edge ===
|
|
56
|
+
return edge === 'top' || edge === 'bottom';
|
|
57
57
|
});
|
|
58
58
|
arrowLeftPx = computed(() => this.arrowOnHorizontalEdge() ? this.arrowOffsetPx() : null);
|
|
59
59
|
arrowTopPx = computed(() => this.arrowOnHorizontalEdge() ? null : this.arrowOffsetPx());
|
|
@@ -62,11 +62,11 @@ class SdsTooltipPanelComponent {
|
|
|
62
62
|
}
|
|
63
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipPanelComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
|
-
args: [{ selector:
|
|
66
|
-
role:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class:
|
|
65
|
+
args: [{ selector: 'sds-tooltip-panel', standalone: true, imports: [NgClass, NgTemplateOutlet], host: {
|
|
66
|
+
role: 'tooltip',
|
|
67
|
+
'[id]': 'panelId',
|
|
68
|
+
'[attr.data-position]': 'resolvedPosition()',
|
|
69
|
+
class: 'block',
|
|
70
70
|
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"relative flex w-max flex-col items-start gap-space-0-50 rounded-radius-xlarge bg-color-background-inverse p-space-2 text-color-text-inverse\"\n [ngClass]=\"containerClasses()\"\n>\n @if (tooltipTitle(); as title) {\n <p class=\"text-font-size-2 font-font-weight-medium leading-line-height-125\">{{ title }}</p>\n }\n @if (contentAsTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"context()\"\n />\n } @else {\n @if (contentAsString(); as text) {\n <p class=\"text-font-size-2 font-font-weight-regular leading-line-height-150\">{{ text }}</p>\n }\n }\n @if (showArrow()) {\n <span\n aria-hidden=\"true\"\n class=\"absolute h-0 w-0\"\n [class]=\"arrowClasses()\"\n [attr.data-offset]=\"arrowOffsetPx()\"\n [style.left.px]=\"arrowLeftPx()\"\n [style.top.px]=\"arrowTopPx()\"\n ></span>\n }\n</div>\n" }]
|
|
71
71
|
}] });
|
|
72
72
|
|
|
@@ -105,11 +105,11 @@ class SdsTooltipCollisionRegistryService {
|
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
107
107
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipCollisionRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
108
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipCollisionRegistryService, providedIn:
|
|
108
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipCollisionRegistryService, providedIn: 'root' });
|
|
109
109
|
}
|
|
110
110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipCollisionRegistryService, decorators: [{
|
|
111
111
|
type: Injectable,
|
|
112
|
-
args: [{ providedIn:
|
|
112
|
+
args: [{ providedIn: 'root' }]
|
|
113
113
|
}] });
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -134,11 +134,11 @@ class SdsTooltipFocusOriginService {
|
|
|
134
134
|
this.focusMonitor.stopMonitoring(element);
|
|
135
135
|
}
|
|
136
136
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipFocusOriginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
137
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipFocusOriginService, providedIn:
|
|
137
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipFocusOriginService, providedIn: 'root' });
|
|
138
138
|
}
|
|
139
139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipFocusOriginService, decorators: [{
|
|
140
140
|
type: Injectable,
|
|
141
|
-
args: [{ providedIn:
|
|
141
|
+
args: [{ providedIn: 'root' }]
|
|
142
142
|
}] });
|
|
143
143
|
|
|
144
144
|
/** Gap between the bubble and the trigger, per Figma. */
|
|
@@ -148,82 +148,82 @@ const ARROW_HALF_WIDTH_PX = 6;
|
|
|
148
148
|
/** Bubble radius (`sds-radius-xlarge`); keeps the arrow off the rounded corners. */
|
|
149
149
|
const RADIUS_PX = 12;
|
|
150
150
|
function buildVerticalCandidate(side) {
|
|
151
|
-
return side ===
|
|
151
|
+
return side === 'top'
|
|
152
152
|
? {
|
|
153
|
-
originX:
|
|
154
|
-
originY:
|
|
155
|
-
overlayX:
|
|
156
|
-
overlayY:
|
|
153
|
+
originX: 'center',
|
|
154
|
+
originY: 'top',
|
|
155
|
+
overlayX: 'center',
|
|
156
|
+
overlayY: 'bottom',
|
|
157
157
|
offsetY: -GAP_PX,
|
|
158
158
|
}
|
|
159
159
|
: {
|
|
160
|
-
originX:
|
|
161
|
-
originY:
|
|
162
|
-
overlayX:
|
|
163
|
-
overlayY:
|
|
160
|
+
originX: 'center',
|
|
161
|
+
originY: 'bottom',
|
|
162
|
+
overlayX: 'center',
|
|
163
|
+
overlayY: 'top',
|
|
164
164
|
offsetY: GAP_PX,
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
function buildHorizontalCandidate(side) {
|
|
168
|
-
return side ===
|
|
169
|
-
? { originX:
|
|
170
|
-
: { originX:
|
|
168
|
+
return side === 'left'
|
|
169
|
+
? { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -GAP_PX }
|
|
170
|
+
: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: GAP_PX };
|
|
171
171
|
}
|
|
172
172
|
const TOUCH_MOUSE_COMPAT_WINDOW_MS = 1000;
|
|
173
173
|
const TOUCH_TAP_SLOP_PX = 10;
|
|
174
|
-
const NATIVELY_FOCUSABLE_TAGS = new Set([
|
|
175
|
-
const FOCUSABLE_ANCESTOR_SELECTOR =
|
|
174
|
+
const NATIVELY_FOCUSABLE_TAGS = new Set(['button', 'input', 'select', 'textarea']);
|
|
175
|
+
const FOCUSABLE_ANCESTOR_SELECTOR = 'a, button, input, select, textarea, [tabindex]';
|
|
176
176
|
function isNativelyFocusable(element) {
|
|
177
177
|
const tagName = element.tagName.toLowerCase();
|
|
178
|
-
if (tagName ===
|
|
179
|
-
return element.hasAttribute(
|
|
178
|
+
if (tagName === 'a') {
|
|
179
|
+
return element.hasAttribute('href');
|
|
180
180
|
}
|
|
181
|
-
return NATIVELY_FOCUSABLE_TAGS.has(tagName) || element.hasAttribute(
|
|
181
|
+
return NATIVELY_FOCUSABLE_TAGS.has(tagName) || element.hasAttribute('tabindex');
|
|
182
182
|
}
|
|
183
183
|
class SdsTooltipDirective {
|
|
184
184
|
/** Tooltip content: plain text or a `TemplateRef` for custom content. */
|
|
185
|
-
content = input.required({ alias:
|
|
185
|
+
content = input.required({ alias: 'sdsTooltip' });
|
|
186
186
|
/** Context passed to a `TemplateRef` content (`$implicit` and named `let-` variables). */
|
|
187
|
-
context = input(null, { alias:
|
|
187
|
+
context = input(null, { alias: 'sdsTooltipContext' });
|
|
188
188
|
/** When set, enables the rich variant (title plus `content` as supporting text, up to 320px). */
|
|
189
|
-
title = input(
|
|
189
|
+
title = input('', { alias: 'sdsTooltipTitle' });
|
|
190
190
|
/** Bubble position relative to the trigger; `"auto"` picks the best available side. */
|
|
191
|
-
position = input(
|
|
191
|
+
position = input('auto', { alias: 'sdsTooltipPosition' });
|
|
192
192
|
/** Whether to show the arrow. */
|
|
193
|
-
showArrow = input(true, { alias:
|
|
193
|
+
showArrow = input(true, { alias: 'sdsTooltipShowArrow' });
|
|
194
194
|
/** Delay in ms before opening on hover/touch; keyboard focus always opens immediately. */
|
|
195
|
-
openDelay = input(150, { alias:
|
|
195
|
+
openDelay = input(150, { alias: 'sdsTooltipOpenDelay' });
|
|
196
196
|
/**
|
|
197
197
|
* Touch only: `"outside"` opens on tap or hold and stays until a tap outside; `"release"` shows
|
|
198
198
|
* the tooltip only while the finger is held and closes when it lifts.
|
|
199
199
|
*/
|
|
200
|
-
touchDismiss = input(
|
|
201
|
-
alias:
|
|
200
|
+
touchDismiss = input('outside', {
|
|
201
|
+
alias: 'sdsTooltipTouchDismiss',
|
|
202
202
|
});
|
|
203
203
|
/** Disables the tooltip entirely. */
|
|
204
|
-
disabled = input(false, { alias:
|
|
204
|
+
disabled = input(false, { alias: 'sdsTooltipDisabled' });
|
|
205
205
|
/** When `true`, only opens if the trigger's text overflows (e.g. `text-overflow: ellipsis`). */
|
|
206
|
-
checkTruncatedText = input(false, { alias:
|
|
206
|
+
checkTruncatedText = input(false, { alias: 'sdsTooltipCheckTruncatedText' });
|
|
207
207
|
/**
|
|
208
208
|
* When `false`, never adds `tabindex="0"` to a non-focusable host. Use when the host is already
|
|
209
209
|
* inside a focusable element, to avoid a nested Tab stop.
|
|
210
210
|
*/
|
|
211
|
-
focusable = input(true, { alias:
|
|
211
|
+
focusable = input(true, { alias: 'sdsTooltipFocusable' });
|
|
212
212
|
/**
|
|
213
213
|
* When `false`, never sets `aria-describedby` on the host. Use when the host already exposes the
|
|
214
214
|
* tooltip text to assistive technology, so it isn't read twice.
|
|
215
215
|
*/
|
|
216
|
-
describeHost = input(true, { alias:
|
|
216
|
+
describeHost = input(true, { alias: 'sdsTooltipDescribeHost' });
|
|
217
217
|
/**
|
|
218
218
|
* Element the bubble is positioned against and its arrow points to; defaults to the host. Use when
|
|
219
219
|
* the visible target is only part of the host (e.g. the thumb of a full-width native slider).
|
|
220
220
|
*/
|
|
221
|
-
anchor = input(null, { alias:
|
|
221
|
+
anchor = input(null, { alias: 'sdsTooltipAnchor' });
|
|
222
222
|
/**
|
|
223
223
|
* When `true`, pressing the host with the mouse does not close an open bubble. Use for hosts that
|
|
224
224
|
* are dragged, so the bubble stays visible during the drag.
|
|
225
225
|
*/
|
|
226
|
-
keepOpenOnPress = input(false, { alias:
|
|
226
|
+
keepOpenOnPress = input(false, { alias: 'sdsTooltipKeepOpenOnPress' });
|
|
227
227
|
elementRef = inject(ElementRef);
|
|
228
228
|
overlay = inject(Overlay);
|
|
229
229
|
destroyRef = inject(DestroyRef);
|
|
@@ -232,7 +232,7 @@ class SdsTooltipDirective {
|
|
|
232
232
|
/** Panel id this directive added to the host's `aria-describedby`, if any. */
|
|
233
233
|
describedById = null;
|
|
234
234
|
/** Tabindex the host declares itself; the binding below would otherwise remove it (`null`). */
|
|
235
|
-
ownTabIndex = this.elementRef.nativeElement.getAttribute(
|
|
235
|
+
ownTabIndex = this.elementRef.nativeElement.getAttribute('tabindex');
|
|
236
236
|
/** Makes non-focusable hosts reachable by Tab; `computed()` since inputs are unset in the constructor. */
|
|
237
237
|
hostTabIndex = computed(() => {
|
|
238
238
|
if (this.ownTabIndex !== null) {
|
|
@@ -267,10 +267,10 @@ class SdsTooltipDirective {
|
|
|
267
267
|
this.close();
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
this.panelRef?.setInput(
|
|
271
|
-
this.panelRef?.setInput(
|
|
272
|
-
this.panelRef?.setInput(
|
|
273
|
-
this.panelRef?.setInput(
|
|
270
|
+
this.panelRef?.setInput('content', content);
|
|
271
|
+
this.panelRef?.setInput('context', context);
|
|
272
|
+
this.panelRef?.setInput('tooltipTitle', title);
|
|
273
|
+
this.panelRef?.setInput('showArrow', showArrow);
|
|
274
274
|
if (this.panelRef) {
|
|
275
275
|
// The anchor may have moved with the new content (e.g. a value shown over a slider thumb);
|
|
276
276
|
// a microtask runs after the host's bindings in this change detection pass are rendered.
|
|
@@ -292,7 +292,7 @@ class SdsTooltipDirective {
|
|
|
292
292
|
if (origin === null) {
|
|
293
293
|
this.handleBlur();
|
|
294
294
|
}
|
|
295
|
-
else if (origin ===
|
|
295
|
+
else if (origin === 'keyboard') {
|
|
296
296
|
this.handleFocus();
|
|
297
297
|
}
|
|
298
298
|
});
|
|
@@ -321,7 +321,7 @@ class SdsTooltipDirective {
|
|
|
321
321
|
}
|
|
322
322
|
/** Touch is excluded: a tap's pointerdown would cancel the touch-triggered open. */
|
|
323
323
|
handlePointerDown(event) {
|
|
324
|
-
if (event.pointerType ===
|
|
324
|
+
if (event.pointerType === 'touch' || this.keepOpenOnPress()) {
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
327
|
this.close();
|
|
@@ -355,7 +355,7 @@ class SdsTooltipDirective {
|
|
|
355
355
|
/** A quick tap lifts the finger before `openDelay`, so the tooltip opens right away instead of being lost. */
|
|
356
356
|
handleTouchEnd(event) {
|
|
357
357
|
this.lastTouchTimestamp = Date.now();
|
|
358
|
-
if (this.touchDismiss() ===
|
|
358
|
+
if (this.touchDismiss() === 'release') {
|
|
359
359
|
this.clearOpenTimeout();
|
|
360
360
|
this.close();
|
|
361
361
|
return;
|
|
@@ -435,10 +435,10 @@ class SdsTooltipDirective {
|
|
|
435
435
|
hasBackdrop: false,
|
|
436
436
|
});
|
|
437
437
|
this.panelRef = this.overlayRef.attach(new ComponentPortal(SdsTooltipPanelComponent));
|
|
438
|
-
this.panelRef.setInput(
|
|
439
|
-
this.panelRef.setInput(
|
|
440
|
-
this.panelRef.setInput(
|
|
441
|
-
this.panelRef.setInput(
|
|
438
|
+
this.panelRef.setInput('content', this.content());
|
|
439
|
+
this.panelRef.setInput('context', this.context());
|
|
440
|
+
this.panelRef.setInput('tooltipTitle', this.title());
|
|
441
|
+
this.panelRef.setInput('showArrow', this.showArrow());
|
|
442
442
|
// `attach()` does not run change detection, so the bubble is still 0x0. Render it so the arrow
|
|
443
443
|
// offset and collision checks measure the real size, then re-emit positionChanges.
|
|
444
444
|
this.panelRef.changeDetectorRef.detectChanges();
|
|
@@ -446,8 +446,8 @@ class SdsTooltipDirective {
|
|
|
446
446
|
// A tooltip that repeats the host's aria-label is only a visual label; describing the host with
|
|
447
447
|
// it too would make screen readers read the same text twice.
|
|
448
448
|
const content = this.content();
|
|
449
|
-
const repeatsAccessibleName = typeof content ===
|
|
450
|
-
content === this.elementRef.nativeElement.getAttribute(
|
|
449
|
+
const repeatsAccessibleName = typeof content === 'string' &&
|
|
450
|
+
content === this.elementRef.nativeElement.getAttribute('aria-label');
|
|
451
451
|
if (this.describeHost() && !repeatsAccessibleName) {
|
|
452
452
|
this.addHostDescription(this.panelRef.instance.panelId);
|
|
453
453
|
}
|
|
@@ -461,8 +461,8 @@ class SdsTooltipDirective {
|
|
|
461
461
|
/** Appends to the host's own `aria-describedby` instead of replacing it (e.g. a field's helper text). */
|
|
462
462
|
addHostDescription(panelId) {
|
|
463
463
|
const host = this.elementRef.nativeElement;
|
|
464
|
-
const ids = (host.getAttribute(
|
|
465
|
-
host.setAttribute(
|
|
464
|
+
const ids = (host.getAttribute('aria-describedby') ?? '').split(' ').filter(Boolean);
|
|
465
|
+
host.setAttribute('aria-describedby', [...ids, panelId].join(' '));
|
|
466
466
|
this.describedById = panelId;
|
|
467
467
|
}
|
|
468
468
|
removeHostDescription() {
|
|
@@ -472,20 +472,20 @@ class SdsTooltipDirective {
|
|
|
472
472
|
}
|
|
473
473
|
this.describedById = null;
|
|
474
474
|
const host = this.elementRef.nativeElement;
|
|
475
|
-
const remainingIds = (host.getAttribute(
|
|
476
|
-
.split(
|
|
475
|
+
const remainingIds = (host.getAttribute('aria-describedby') ?? '')
|
|
476
|
+
.split(' ')
|
|
477
477
|
.filter((id) => id && id !== panelId);
|
|
478
478
|
if (remainingIds.length > 0) {
|
|
479
|
-
host.setAttribute(
|
|
479
|
+
host.setAttribute('aria-describedby', remainingIds.join(' '));
|
|
480
480
|
}
|
|
481
481
|
else {
|
|
482
|
-
host.removeAttribute(
|
|
482
|
+
host.removeAttribute('aria-describedby');
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
/** Blank text has nothing to show: an empty bubble (and its `aria-describedby`) would only be noise. */
|
|
486
486
|
hasNoContent() {
|
|
487
487
|
const content = this.content();
|
|
488
|
-
return typeof content ===
|
|
488
|
+
return typeof content === 'string' && content.trim() === '';
|
|
489
489
|
}
|
|
490
490
|
close() {
|
|
491
491
|
this.clearOpenTimeout();
|
|
@@ -521,31 +521,31 @@ class SdsTooltipDirective {
|
|
|
521
521
|
buildPositionCandidates() {
|
|
522
522
|
const requestedPosition = this.position();
|
|
523
523
|
const top = {
|
|
524
|
-
side:
|
|
525
|
-
connectedPosition: buildVerticalCandidate(
|
|
524
|
+
side: 'top',
|
|
525
|
+
connectedPosition: buildVerticalCandidate('top'),
|
|
526
526
|
};
|
|
527
527
|
const bottom = {
|
|
528
|
-
side:
|
|
529
|
-
connectedPosition: buildVerticalCandidate(
|
|
528
|
+
side: 'bottom',
|
|
529
|
+
connectedPosition: buildVerticalCandidate('bottom'),
|
|
530
530
|
};
|
|
531
531
|
const left = {
|
|
532
|
-
side:
|
|
533
|
-
connectedPosition: buildHorizontalCandidate(
|
|
532
|
+
side: 'left',
|
|
533
|
+
connectedPosition: buildHorizontalCandidate('left'),
|
|
534
534
|
};
|
|
535
535
|
const right = {
|
|
536
|
-
side:
|
|
537
|
-
connectedPosition: buildHorizontalCandidate(
|
|
536
|
+
side: 'right',
|
|
537
|
+
connectedPosition: buildHorizontalCandidate('right'),
|
|
538
538
|
};
|
|
539
539
|
switch (requestedPosition) {
|
|
540
|
-
case
|
|
540
|
+
case 'top':
|
|
541
541
|
return [top, bottom];
|
|
542
|
-
case
|
|
542
|
+
case 'bottom':
|
|
543
543
|
return [bottom, top];
|
|
544
|
-
case
|
|
544
|
+
case 'left':
|
|
545
545
|
return [left, right];
|
|
546
|
-
case
|
|
546
|
+
case 'right':
|
|
547
547
|
return [right, left];
|
|
548
|
-
case
|
|
548
|
+
case 'auto':
|
|
549
549
|
default:
|
|
550
550
|
// Inline triggers avoid lateral sides, which could cover neighboring words.
|
|
551
551
|
return this.isInlineTrigger() ? [top, bottom] : [top, bottom, right, left];
|
|
@@ -602,7 +602,7 @@ class SdsTooltipDirective {
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
isInlineTrigger() {
|
|
605
|
-
return getComputedStyle(this.elementRef.nativeElement).display ===
|
|
605
|
+
return getComputedStyle(this.elementRef.nativeElement).display === 'inline';
|
|
606
606
|
}
|
|
607
607
|
get contentIsTruncated() {
|
|
608
608
|
const element = this.elementRef.nativeElement;
|
|
@@ -615,7 +615,7 @@ class SdsTooltipDirective {
|
|
|
615
615
|
candidate.connectedPosition.overlayY === pair.overlayY);
|
|
616
616
|
const resolvedSide = matched?.side ?? candidates[0].side;
|
|
617
617
|
this.resolvedSide = resolvedSide;
|
|
618
|
-
this.panelRef?.setInput(
|
|
618
|
+
this.panelRef?.setInput('resolvedPosition', resolvedSide);
|
|
619
619
|
this.recomputeArrowOffset(resolvedSide);
|
|
620
620
|
}
|
|
621
621
|
/** Points the arrow at the trigger even when the CDK shifts the bubble to fit the viewport. */
|
|
@@ -625,7 +625,7 @@ class SdsTooltipDirective {
|
|
|
625
625
|
}
|
|
626
626
|
const triggerRect = this.anchorElement().getBoundingClientRect();
|
|
627
627
|
const panelRect = this.overlayRef.overlayElement.getBoundingClientRect();
|
|
628
|
-
const isVertical = resolvedSide ===
|
|
628
|
+
const isVertical = resolvedSide === 'top' || resolvedSide === 'bottom';
|
|
629
629
|
const triggerCenter = isVertical
|
|
630
630
|
? triggerRect.left + triggerRect.width / 2
|
|
631
631
|
: triggerRect.top + triggerRect.height / 2;
|
|
@@ -634,7 +634,7 @@ class SdsTooltipDirective {
|
|
|
634
634
|
const minCenter = RADIUS_PX + ARROW_HALF_WIDTH_PX;
|
|
635
635
|
const maxCenter = Math.max(panelSize - RADIUS_PX - ARROW_HALF_WIDTH_PX, minCenter);
|
|
636
636
|
const clampedCenter = Math.min(Math.max(triggerCenter - panelStart, minCenter), maxCenter);
|
|
637
|
-
this.panelRef.setInput(
|
|
637
|
+
this.panelRef.setInput('arrowOffsetPx', clampedCenter - ARROW_HALF_WIDTH_PX);
|
|
638
638
|
}
|
|
639
639
|
attachPanelPointerListeners(panelElement) {
|
|
640
640
|
const handleEnter = () => {
|
|
@@ -645,21 +645,21 @@ class SdsTooltipDirective {
|
|
|
645
645
|
this.isHoveringPanel = false;
|
|
646
646
|
this.scheduleCloseIfIdle();
|
|
647
647
|
};
|
|
648
|
-
panelElement.addEventListener(
|
|
649
|
-
panelElement.addEventListener(
|
|
648
|
+
panelElement.addEventListener('mouseenter', handleEnter);
|
|
649
|
+
panelElement.addEventListener('mouseleave', handleLeave);
|
|
650
650
|
this.panelPointerCleanup = () => {
|
|
651
|
-
panelElement.removeEventListener(
|
|
652
|
-
panelElement.removeEventListener(
|
|
651
|
+
panelElement.removeEventListener('mouseenter', handleEnter);
|
|
652
|
+
panelElement.removeEventListener('mouseleave', handleLeave);
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
655
|
attachDocumentEscapeListener() {
|
|
656
656
|
const handleKeydown = (event) => {
|
|
657
|
-
if (event.key ===
|
|
657
|
+
if (event.key === 'Escape') {
|
|
658
658
|
this.close();
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
document.addEventListener(
|
|
662
|
-
this.documentEscapeCleanup = () => document.removeEventListener(
|
|
661
|
+
document.addEventListener('keydown', handleKeydown);
|
|
662
|
+
this.documentEscapeCleanup = () => document.removeEventListener('keydown', handleKeydown);
|
|
663
663
|
}
|
|
664
664
|
attachOutsideTouchListener() {
|
|
665
665
|
const handleDocumentTouch = (event) => {
|
|
@@ -670,8 +670,8 @@ class SdsTooltipDirective {
|
|
|
670
670
|
this.close();
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
|
-
document.addEventListener(
|
|
674
|
-
this.documentTouchCleanup = () => document.removeEventListener(
|
|
673
|
+
document.addEventListener('touchstart', handleDocumentTouch);
|
|
674
|
+
this.documentTouchCleanup = () => document.removeEventListener('touchstart', handleDocumentTouch);
|
|
675
675
|
}
|
|
676
676
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
677
677
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.14", type: SdsTooltipDirective, isStandalone: true, selector: "[sdsTooltip]", inputs: { content: { classPropertyName: "content", publicName: "sdsTooltip", isSignal: true, isRequired: true, transformFunction: null }, context: { classPropertyName: "context", publicName: "sdsTooltipContext", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "sdsTooltipTitle", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "sdsTooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "sdsTooltipShowArrow", isSignal: true, isRequired: false, transformFunction: null }, openDelay: { classPropertyName: "openDelay", publicName: "sdsTooltipOpenDelay", isSignal: true, isRequired: false, transformFunction: null }, touchDismiss: { classPropertyName: "touchDismiss", publicName: "sdsTooltipTouchDismiss", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "sdsTooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, checkTruncatedText: { classPropertyName: "checkTruncatedText", publicName: "sdsTooltipCheckTruncatedText", isSignal: true, isRequired: false, transformFunction: null }, focusable: { classPropertyName: "focusable", publicName: "sdsTooltipFocusable", isSignal: true, isRequired: false, transformFunction: null }, describeHost: { classPropertyName: "describeHost", publicName: "sdsTooltipDescribeHost", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "sdsTooltipAnchor", isSignal: true, isRequired: false, transformFunction: null }, keepOpenOnPress: { classPropertyName: "keepOpenOnPress", publicName: "sdsTooltipKeepOpenOnPress", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "handlePointerEnter()", "mouseleave": "handlePointerLeave()", "pointerdown": "handlePointerDown($event)", "touchstart": "handleTouchStart($event)", "touchend": "handleTouchEnd($event)", "touchcancel": "handleTouchCancel()" }, properties: { "attr.tabindex": "hostTabIndex()" } }, ngImport: i0 });
|
|
@@ -679,16 +679,16 @@ class SdsTooltipDirective {
|
|
|
679
679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTooltipDirective, decorators: [{
|
|
680
680
|
type: Directive,
|
|
681
681
|
args: [{
|
|
682
|
-
selector:
|
|
682
|
+
selector: '[sdsTooltip]',
|
|
683
683
|
standalone: true,
|
|
684
684
|
host: {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
685
|
+
'(mouseenter)': 'handlePointerEnter()',
|
|
686
|
+
'(mouseleave)': 'handlePointerLeave()',
|
|
687
|
+
'(pointerdown)': 'handlePointerDown($event)',
|
|
688
|
+
'(touchstart)': 'handleTouchStart($event)',
|
|
689
|
+
'(touchend)': 'handleTouchEnd($event)',
|
|
690
|
+
'(touchcancel)': 'handleTouchCancel()',
|
|
691
|
+
'[attr.tabindex]': 'hostTabIndex()',
|
|
692
692
|
},
|
|
693
693
|
}]
|
|
694
694
|
}], ctorParameters: () => [] });
|