@sixbell-telco/sdk 4.2.0 → 4.3.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/CHANGELOG.md +81 -1
- package/README.md +98 -66
- package/_index.css +2 -1586
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/alert/README.md +27 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/public-api.d.ts +1 -0
- package/components/alert/src/alert.component.d.ts +85 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/button-play/button-play.component.d.ts +7 -7
- package/components/audio-player/src/audio-player.component.d.ts +2 -2
- package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
- package/components/avatar/README.md +1 -0
- package/components/avatar/src/avatar.component.d.ts +2 -2
- package/components/badge/src/badge.component.d.ts +4 -4
- package/components/button/README.md +5 -4
- package/components/button/src/button.component.d.ts +38 -16
- package/components/card/README.md +2 -0
- package/components/card/card-footer/card-footer.component.d.ts +37 -2
- package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +6 -6
- package/components/countdown/src/countdown.component.d.ts +4 -4
- package/components/data-table/README.md +26 -0
- package/components/data-table/expandable/expandable.component.d.ts +4 -4
- package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
- package/components/data-table/src/data-table.component.d.ts +15 -8
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
- package/components/description-list/README.md +27 -0
- package/components/description-list/index.d.ts +5 -0
- package/components/description-list/public-api.d.ts +1 -0
- package/components/description-list/src/description-list.component.d.ts +90 -0
- package/components/dialog/README.md +10 -6
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +27 -6
- package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
- package/components/divider/src/divider.component.d.ts +1 -1
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/README.md +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
- package/components/empty-state/README.md +40 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +1 -0
- package/components/empty-state/src/empty-state.component.d.ts +73 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/README.md +1 -0
- package/components/forms/combobox/src/combobox.component.d.ts +21 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +16 -9
- package/components/forms/form-hint/README.md +29 -0
- package/components/forms/form-hint/index.d.ts +5 -0
- package/components/forms/form-hint/public-api.d.ts +1 -0
- package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
- package/components/forms/form-item/src/form-item.component.d.ts +45 -1
- package/components/forms/input/src/input.component.d.ts +15 -8
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +18 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +20 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +12 -5
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/overlay/README.md +1 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +1 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/segmented-button/README.md +57 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +1 -0
- package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
- package/components/tab/src/tab.component.d.ts +2 -2
- package/components/table/README.md +51 -3
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +20 -13
- package/components/table/table-action/table-action.component.d.ts +14 -3
- package/components/table/table-actions/table-actions.component.d.ts +12 -1
- package/components/table/tokens/README.md +7 -0
- package/components/table/tokens/index.d.ts +5 -0
- package/components/table/tokens/public-api.d.ts +1 -0
- package/components/table/tokens/table-empty-state.d.ts +6 -0
- package/components/tooltip/README.md +22 -5
- package/components/tooltip/src/tooltip.component.d.ts +36 -4
- package/components/tree/README.md +73 -0
- package/components/tree/index.d.ts +5 -0
- package/components/tree/public-api.d.ts +1 -0
- package/components/tree/src/tree.component.d.ts +180 -0
- package/components/wizard/README.md +9 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
- package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
- package/directives/truncate/README.md +49 -0
- package/directives/truncate/index.d.ts +5 -0
- package/directives/truncate/public-api.d.ts +1 -0
- package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
- package/directives/truncate/src/truncate.directive.d.ts +96 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +71 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +23 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +27 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +29 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +51 -15
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +27 -22
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +156 -25
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +43 -35
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +234 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
- package/i18n/sdk/en.json +224 -0
- package/i18n/sdk/es.json +224 -0
- package/i18n/sdk/pt.json +224 -0
- package/layouts/README.md +11 -10
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
- package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
- package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
- package/package.json +51 -11
- package/src/_index.css +1616 -0
- package/utils/mfe/README.md +1 -0
- package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
- package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
- package/utils/theme/README.md +94 -1
- package/utils/theme/public-api.d.ts +2 -1
- package/utils/theme/src/models/theme.d.ts +32 -0
- package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
- package/utils/translation/README.md +61 -0
- package/utils/translation/testing/index.d.ts +5 -0
- package/utils/translation/testing/public-api.d.ts +2 -0
- package/utils/translation/testing/src/translation-testing.d.ts +96 -0
- package/utils/unsaved-changes/README.md +33 -0
- package/utils/unsaved-changes/index.d.ts +5 -0
- package/utils/unsaved-changes/public-api.d.ts +1 -0
- package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
- package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { input, ChangeDetectionStrategy, Component, numberAttribute, booleanAttribute, signal, computed, inject, ElementRef, Renderer2, DestroyRef, effect, afterNextRender, RendererStyleFlags2, Directive } from '@angular/core';
|
|
5
|
+
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
* Visual-only surface that shows the full text of a truncated `stTruncate` host.
|
|
10
|
+
* The host keeps the full text in the accessibility tree, so this copy is hidden from assistive technology.
|
|
11
|
+
*/
|
|
12
|
+
class TruncatePopoverComponent {
|
|
13
|
+
text = input('');
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncatePopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: TruncatePopoverComponent, isStandalone: true, selector: "st-truncate-popover", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "data-st-truncate-popover": "" }, classAttribute: "font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150" }, ngImport: i0, template: '{{ text() }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncatePopoverComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{
|
|
20
|
+
selector: 'st-truncate-popover',
|
|
21
|
+
standalone: true,
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
+
host: {
|
|
24
|
+
'aria-hidden': 'true',
|
|
25
|
+
'data-st-truncate-popover': '',
|
|
26
|
+
class: 'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150',
|
|
27
|
+
},
|
|
28
|
+
template: '{{ text() }}',
|
|
29
|
+
}]
|
|
30
|
+
}] });
|
|
31
|
+
|
|
32
|
+
const focusableSelector = 'a[href], area[href], button, input, select, textarea, summary, [contenteditable="true"], [tabindex]';
|
|
33
|
+
/**
|
|
34
|
+
* Ancestors that make a focusable descendant a nested interactive control (axe `nested-interactive`):
|
|
35
|
+
* native controls, positive or zero tabindex, and the roles whose children are presentational.
|
|
36
|
+
* `tabindex="-1"` containers (dialog containers, skip-link targets) are not interactive.
|
|
37
|
+
*/
|
|
38
|
+
const interactiveAncestorSelector = [
|
|
39
|
+
'button',
|
|
40
|
+
'a[href]',
|
|
41
|
+
'area[href]',
|
|
42
|
+
'input',
|
|
43
|
+
'select',
|
|
44
|
+
'textarea',
|
|
45
|
+
'summary',
|
|
46
|
+
'[contenteditable="true"]',
|
|
47
|
+
'[tabindex]:not([tabindex^="-"])',
|
|
48
|
+
...['button', 'checkbox', 'radio', 'switch', 'tab', 'option', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'slider', 'link'].map((role) => `[role="${role}"]`),
|
|
49
|
+
].join(', ');
|
|
50
|
+
const popoverPositions = [
|
|
51
|
+
{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
|
|
52
|
+
{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },
|
|
53
|
+
{ originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 4 },
|
|
54
|
+
{ originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -4 },
|
|
55
|
+
];
|
|
56
|
+
const normalizeText = (value) => (value ?? '').replace(/\s+/g, ' ').trim();
|
|
57
|
+
/**
|
|
58
|
+
* Truncates overflowing text with an ellipsis and reveals the full text in a popover,
|
|
59
|
+
* only while the text is actually cut off.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* - Single line by default; `stTruncateLines` > 1 clamps to that many lines.
|
|
63
|
+
* - Overflow is measured on the host itself, re-checked on resize, text changes and web-font load.
|
|
64
|
+
* Measuring only runs in the browser, so it is SSR-safe.
|
|
65
|
+
* - The popover opens on hover (after `stTruncateOpenDelay`), on keyboard focus and on touch tap.
|
|
66
|
+
* It is hoverable, stays open while hovered or focused, and closes on Escape, blur or pointer leave
|
|
67
|
+
* (WCAG 1.4.13 Content on Hover or Focus).
|
|
68
|
+
* - The host keeps its full text in the accessibility tree (CSS truncation hides nothing from screen
|
|
69
|
+
* readers), so the popover is `aria-hidden` and nothing is announced twice.
|
|
70
|
+
* - A truncated, non-focusable host becomes a tab stop (`tabindex="0"`) so keyboard users can reveal the
|
|
71
|
+
* hidden text (WCAG 2.1.1). Text that fits is never made focusable, nor is text inside an interactive
|
|
72
|
+
* ancestor (no nested tab stops); `stTruncateFocusable="false"` opts out, for example in dense tables.
|
|
73
|
+
* - The host needs a constrained width: give a flex or grid child `min-w-0`.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```html
|
|
77
|
+
* <p stTruncate>{{ product.description }}</p>
|
|
78
|
+
* <h1 stText="3" stTruncate>{{ title }}</h1>
|
|
79
|
+
* <td><span stTruncate [stTruncateLines]="2">{{ row.notes }}</span></td>
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @publicApi
|
|
83
|
+
*/
|
|
84
|
+
class TruncateDirective {
|
|
85
|
+
/**
|
|
86
|
+
* Number of visible lines before the text is cut off.
|
|
87
|
+
* @defaultValue 1
|
|
88
|
+
*/
|
|
89
|
+
stTruncateLines = input(1, { transform: numberAttribute });
|
|
90
|
+
/**
|
|
91
|
+
* Hover delay in milliseconds before the popover opens. Focus and touch open it immediately.
|
|
92
|
+
* @defaultValue 200
|
|
93
|
+
*/
|
|
94
|
+
stTruncateOpenDelay = input(200, { transform: numberAttribute });
|
|
95
|
+
/**
|
|
96
|
+
* Delay in milliseconds before the popover closes after the pointer leaves, so the pointer can move onto it.
|
|
97
|
+
* @defaultValue 120
|
|
98
|
+
*/
|
|
99
|
+
stTruncateCloseDelay = input(120, { transform: numberAttribute });
|
|
100
|
+
/**
|
|
101
|
+
* Whether a truncated, non-focusable host becomes a tab stop so keyboard users can reveal the full text.
|
|
102
|
+
* Set it to `false` in dense tables where the row or another control already exposes the text.
|
|
103
|
+
* The host never becomes a tab stop inside an interactive ancestor (button, link, form control, `tabindex` ≥ 0, or a role such as checkbox or tab).
|
|
104
|
+
* @defaultValue true
|
|
105
|
+
*/
|
|
106
|
+
stTruncateFocusable = input(true, { transform: booleanAttribute });
|
|
107
|
+
truncatedState = signal(false);
|
|
108
|
+
openState = signal(false);
|
|
109
|
+
/** Whether the text currently overflows its box. */
|
|
110
|
+
truncated = this.truncatedState.asReadonly();
|
|
111
|
+
/** Whether the full-text popover is open. */
|
|
112
|
+
isOpen = this.openState.asReadonly();
|
|
113
|
+
lines = computed(() => {
|
|
114
|
+
const lines = Math.floor(this.stTruncateLines());
|
|
115
|
+
return Number.isFinite(lines) && lines > 1 ? lines : 1;
|
|
116
|
+
});
|
|
117
|
+
host = inject(ElementRef).nativeElement;
|
|
118
|
+
renderer = inject(Renderer2);
|
|
119
|
+
overlay = inject(Overlay);
|
|
120
|
+
themeDom = inject(ThemeDomService);
|
|
121
|
+
destroyRef = inject(DestroyRef);
|
|
122
|
+
nativelyFocusable = this.host.matches(focusableSelector);
|
|
123
|
+
overlayRef = null;
|
|
124
|
+
popoverRef = null;
|
|
125
|
+
openTimer = null;
|
|
126
|
+
closeTimer = null;
|
|
127
|
+
pointerOverHost = false;
|
|
128
|
+
pointerOverPopover = false;
|
|
129
|
+
focused = false;
|
|
130
|
+
destroyed = false;
|
|
131
|
+
rendered = false;
|
|
132
|
+
inlineHost = false;
|
|
133
|
+
constructor() {
|
|
134
|
+
effect(() => this.applyTruncationStyles(this.lines()));
|
|
135
|
+
effect(() => {
|
|
136
|
+
const truncated = this.truncated();
|
|
137
|
+
if (!this.nativelyFocusable) {
|
|
138
|
+
if (truncated && this.stTruncateFocusable() && !this.hasInteractiveAncestor())
|
|
139
|
+
this.renderer.setAttribute(this.host, 'tabindex', '0');
|
|
140
|
+
else
|
|
141
|
+
this.renderer.removeAttribute(this.host, 'tabindex');
|
|
142
|
+
}
|
|
143
|
+
if (!truncated)
|
|
144
|
+
this.close();
|
|
145
|
+
});
|
|
146
|
+
afterNextRender(() => {
|
|
147
|
+
this.rendered = true;
|
|
148
|
+
if (getComputedStyle(this.host).display === 'inline') {
|
|
149
|
+
this.inlineHost = true;
|
|
150
|
+
this.applyTruncationStyles(this.lines());
|
|
151
|
+
}
|
|
152
|
+
this.observe();
|
|
153
|
+
this.measure();
|
|
154
|
+
});
|
|
155
|
+
this.destroyRef.onDestroy(() => {
|
|
156
|
+
this.destroyed = true;
|
|
157
|
+
this.clearTimers();
|
|
158
|
+
this.overlayRef?.dispose();
|
|
159
|
+
this.overlayRef = null;
|
|
160
|
+
this.popoverRef = null;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/** Re-measures the host. Call it after a layout change the directive cannot observe. */
|
|
164
|
+
measure() {
|
|
165
|
+
if (this.destroyed || !this.rendered)
|
|
166
|
+
return;
|
|
167
|
+
const overflow = this.lines() === 1 ? this.host.scrollWidth - this.host.clientWidth : this.host.scrollHeight - this.host.clientHeight;
|
|
168
|
+
this.truncatedState.set(overflow > 1);
|
|
169
|
+
this.popoverRef?.setInput('text', this.fullText());
|
|
170
|
+
}
|
|
171
|
+
/** Opens the popover now, if the text is truncated. */
|
|
172
|
+
open() {
|
|
173
|
+
this.clearTimers();
|
|
174
|
+
if (!this.truncated() || this.openState())
|
|
175
|
+
return;
|
|
176
|
+
const overlayRef = this.overlayRef ?? this.createOverlay();
|
|
177
|
+
const popoverRef = overlayRef.attach(new ComponentPortal(TruncatePopoverComponent));
|
|
178
|
+
popoverRef.setInput('text', this.fullText());
|
|
179
|
+
const popover = popoverRef.location.nativeElement;
|
|
180
|
+
this.themeDom.inheritTheme(this.host, popover);
|
|
181
|
+
popover.addEventListener('mouseenter', () => {
|
|
182
|
+
this.pointerOverPopover = true;
|
|
183
|
+
this.clearTimers();
|
|
184
|
+
});
|
|
185
|
+
popover.addEventListener('mouseleave', () => {
|
|
186
|
+
this.pointerOverPopover = false;
|
|
187
|
+
this.scheduleClose();
|
|
188
|
+
});
|
|
189
|
+
this.popoverRef = popoverRef;
|
|
190
|
+
this.openState.set(true);
|
|
191
|
+
overlayRef.updatePosition();
|
|
192
|
+
}
|
|
193
|
+
/** Closes the popover now. */
|
|
194
|
+
close() {
|
|
195
|
+
this.clearTimers();
|
|
196
|
+
this.pointerOverPopover = false;
|
|
197
|
+
if (!this.openState())
|
|
198
|
+
return;
|
|
199
|
+
this.overlayRef?.detach();
|
|
200
|
+
this.popoverRef = null;
|
|
201
|
+
this.openState.set(false);
|
|
202
|
+
}
|
|
203
|
+
onPointerEnter() {
|
|
204
|
+
this.pointerOverHost = true;
|
|
205
|
+
if (this.openState()) {
|
|
206
|
+
this.clearTimers();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (!this.truncated())
|
|
210
|
+
return;
|
|
211
|
+
this.clearTimers();
|
|
212
|
+
this.openTimer = setTimeout(() => this.open(), Math.max(0, this.stTruncateOpenDelay()));
|
|
213
|
+
}
|
|
214
|
+
onPointerLeave() {
|
|
215
|
+
this.pointerOverHost = false;
|
|
216
|
+
if (this.openTimer) {
|
|
217
|
+
clearTimeout(this.openTimer);
|
|
218
|
+
this.openTimer = null;
|
|
219
|
+
}
|
|
220
|
+
this.scheduleClose();
|
|
221
|
+
}
|
|
222
|
+
onFocus() {
|
|
223
|
+
this.focused = true;
|
|
224
|
+
this.open();
|
|
225
|
+
}
|
|
226
|
+
onBlur() {
|
|
227
|
+
this.focused = false;
|
|
228
|
+
if (!this.pointerOverHost && !this.pointerOverPopover)
|
|
229
|
+
this.close();
|
|
230
|
+
}
|
|
231
|
+
onPointerDown(event) {
|
|
232
|
+
if (event.pointerType === 'touch')
|
|
233
|
+
this.open();
|
|
234
|
+
}
|
|
235
|
+
scheduleClose() {
|
|
236
|
+
if (!this.openState() || this.focused)
|
|
237
|
+
return;
|
|
238
|
+
if (this.closeTimer)
|
|
239
|
+
clearTimeout(this.closeTimer);
|
|
240
|
+
this.closeTimer = setTimeout(() => {
|
|
241
|
+
this.closeTimer = null;
|
|
242
|
+
if (!this.pointerOverHost && !this.pointerOverPopover && !this.focused)
|
|
243
|
+
this.close();
|
|
244
|
+
}, Math.max(0, this.stTruncateCloseDelay()));
|
|
245
|
+
}
|
|
246
|
+
createOverlay() {
|
|
247
|
+
const overlayRef = this.overlay.create({
|
|
248
|
+
positionStrategy: this.overlay.position().flexibleConnectedTo(this.host).withPositions(popoverPositions).withPush(true).withViewportMargin(8),
|
|
249
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
250
|
+
});
|
|
251
|
+
overlayRef.keydownEvents().subscribe((event) => {
|
|
252
|
+
if (event.key === 'Escape') {
|
|
253
|
+
event.preventDefault();
|
|
254
|
+
this.close();
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
overlayRef.outsidePointerEvents().subscribe((event) => {
|
|
258
|
+
if (!(event.target instanceof Node) || !this.host.contains(event.target))
|
|
259
|
+
this.close();
|
|
260
|
+
});
|
|
261
|
+
this.overlayRef = overlayRef;
|
|
262
|
+
return overlayRef;
|
|
263
|
+
}
|
|
264
|
+
observe() {
|
|
265
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
266
|
+
const resizeObserver = new ResizeObserver(() => this.measure());
|
|
267
|
+
resizeObserver.observe(this.host);
|
|
268
|
+
this.destroyRef.onDestroy(() => resizeObserver.disconnect());
|
|
269
|
+
}
|
|
270
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
271
|
+
const mutationObserver = new MutationObserver(() => this.measure());
|
|
272
|
+
mutationObserver.observe(this.host, { characterData: true, childList: true, subtree: true });
|
|
273
|
+
this.destroyRef.onDestroy(() => mutationObserver.disconnect());
|
|
274
|
+
}
|
|
275
|
+
const fonts = this.host.ownerDocument.fonts;
|
|
276
|
+
void fonts?.ready.then(() => this.measure());
|
|
277
|
+
}
|
|
278
|
+
applyTruncationStyles(lines) {
|
|
279
|
+
const dashCase = RendererStyleFlags2.DashCase;
|
|
280
|
+
const style = (name, value) => {
|
|
281
|
+
if (value === null)
|
|
282
|
+
this.renderer.removeStyle(this.host, name, dashCase);
|
|
283
|
+
else
|
|
284
|
+
this.renderer.setStyle(this.host, name, value, dashCase);
|
|
285
|
+
};
|
|
286
|
+
const singleLine = lines === 1;
|
|
287
|
+
style('overflow', 'hidden');
|
|
288
|
+
style('min-width', '0');
|
|
289
|
+
style('text-overflow', singleLine ? 'ellipsis' : null);
|
|
290
|
+
style('white-space', singleLine ? 'nowrap' : null);
|
|
291
|
+
const singleLineDisplay = this.inlineHost ? 'inline-block' : null;
|
|
292
|
+
style('display', singleLine ? singleLineDisplay : '-webkit-box');
|
|
293
|
+
style('max-width', this.inlineHost ? '100%' : null);
|
|
294
|
+
style('vertical-align', this.inlineHost ? 'bottom' : null);
|
|
295
|
+
style('-webkit-box-orient', singleLine ? null : 'vertical');
|
|
296
|
+
style('-webkit-line-clamp', singleLine ? null : String(lines));
|
|
297
|
+
style('overflow-wrap', singleLine ? null : 'anywhere');
|
|
298
|
+
queueMicrotask(() => this.measure());
|
|
299
|
+
}
|
|
300
|
+
hasInteractiveAncestor() {
|
|
301
|
+
return !!this.host.parentElement?.closest(interactiveAncestorSelector);
|
|
302
|
+
}
|
|
303
|
+
fullText() {
|
|
304
|
+
return normalizeText(this.host.textContent);
|
|
305
|
+
}
|
|
306
|
+
clearTimers() {
|
|
307
|
+
if (this.openTimer)
|
|
308
|
+
clearTimeout(this.openTimer);
|
|
309
|
+
if (this.closeTimer)
|
|
310
|
+
clearTimeout(this.closeTimer);
|
|
311
|
+
this.openTimer = null;
|
|
312
|
+
this.closeTimer = null;
|
|
313
|
+
}
|
|
314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
315
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: TruncateDirective, isStandalone: true, selector: "[stTruncate]", inputs: { stTruncateLines: { classPropertyName: "stTruncateLines", publicName: "stTruncateLines", isSignal: true, isRequired: false, transformFunction: null }, stTruncateOpenDelay: { classPropertyName: "stTruncateOpenDelay", publicName: "stTruncateOpenDelay", isSignal: true, isRequired: false, transformFunction: null }, stTruncateCloseDelay: { classPropertyName: "stTruncateCloseDelay", publicName: "stTruncateCloseDelay", isSignal: true, isRequired: false, transformFunction: null }, stTruncateFocusable: { classPropertyName: "stTruncateFocusable", publicName: "stTruncateFocusable", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onPointerEnter()", "mouseleave": "onPointerLeave()", "focus": "onFocus()", "blur": "onBlur()", "pointerdown": "onPointerDown($event)" }, properties: { "attr.data-truncated": "truncated() ? \"\" : null" } }, exportAs: ["stTruncate"], ngImport: i0 });
|
|
316
|
+
}
|
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TruncateDirective, decorators: [{
|
|
318
|
+
type: Directive,
|
|
319
|
+
args: [{
|
|
320
|
+
selector: '[stTruncate]',
|
|
321
|
+
standalone: true,
|
|
322
|
+
exportAs: 'stTruncate',
|
|
323
|
+
host: {
|
|
324
|
+
'[attr.data-truncated]': 'truncated() ? "" : null',
|
|
325
|
+
'(mouseenter)': 'onPointerEnter()',
|
|
326
|
+
'(mouseleave)': 'onPointerLeave()',
|
|
327
|
+
'(focus)': 'onFocus()',
|
|
328
|
+
'(blur)': 'onBlur()',
|
|
329
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
330
|
+
},
|
|
331
|
+
}]
|
|
332
|
+
}], ctorParameters: () => [] });
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Generated bundle index. Do not edit.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
export { TruncateDirective };
|
|
339
|
+
//# sourceMappingURL=sixbell-telco-sdk-directives-truncate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-directives-truncate.mjs","sources":["../../../projects/sdk/directives/truncate/src/truncate-popover.component.ts","../../../projects/sdk/directives/truncate/src/truncate.directive.ts","../../../projects/sdk/directives/truncate/sixbell-telco-sdk-directives-truncate.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n/**\n * @internal\n * Visual-only surface that shows the full text of a truncated `stTruncate` host.\n * The host keeps the full text in the accessibility tree, so this copy is hidden from assistive technology.\n */\n@Component({\n\tselector: 'st-truncate-popover',\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'aria-hidden': 'true',\n\t\t'data-st-truncate-popover': '',\n\t\tclass:\n\t\t\t'font-body bg-base-300 text-base-content border-base-content/10 rounded-box block max-h-72 max-w-[min(28rem,calc(100vw-1rem))] overflow-y-auto overscroll-contain border px-3 py-2 text-sm leading-normal wrap-break-word shadow-sm motion-safe:animate-fade-in motion-safe:animate-duration-150',\n\t},\n\ttemplate: '{{ text() }}',\n})\nexport class TruncatePopoverComponent {\n\treadonly text = input('');\n}\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tComponentRef,\n\tcomputed,\n\tDestroyRef,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tnumberAttribute,\n\tRenderer2,\n\tRendererStyleFlags2,\n\tsignal,\n} from '@angular/core';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { TruncatePopoverComponent } from './truncate-popover.component';\n\nconst focusableSelector = 'a[href], area[href], button, input, select, textarea, summary, [contenteditable=\"true\"], [tabindex]';\n/**\n * Ancestors that make a focusable descendant a nested interactive control (axe `nested-interactive`):\n * native controls, positive or zero tabindex, and the roles whose children are presentational.\n * `tabindex=\"-1\"` containers (dialog containers, skip-link targets) are not interactive.\n */\nconst interactiveAncestorSelector = [\n\t'button',\n\t'a[href]',\n\t'area[href]',\n\t'input',\n\t'select',\n\t'textarea',\n\t'summary',\n\t'[contenteditable=\"true\"]',\n\t'[tabindex]:not([tabindex^=\"-\"])',\n\t...['button', 'checkbox', 'radio', 'switch', 'tab', 'option', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'slider', 'link'].map(\n\t\t(role) => `[role=\"${role}\"]`,\n\t),\n].join(', ');\n\nconst popoverPositions: ConnectedPosition[] = [\n\t{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n\t{ originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: 4 },\n\t{ originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -4 },\n];\n\nconst normalizeText = (value: string | null | undefined): string => (value ?? '').replace(/\\s+/g, ' ').trim();\n\n/**\n * Truncates overflowing text with an ellipsis and reveals the full text in a popover,\n * only while the text is actually cut off.\n *\n * @remarks\n * - Single line by default; `stTruncateLines` > 1 clamps to that many lines.\n * - Overflow is measured on the host itself, re-checked on resize, text changes and web-font load.\n * Measuring only runs in the browser, so it is SSR-safe.\n * - The popover opens on hover (after `stTruncateOpenDelay`), on keyboard focus and on touch tap.\n * It is hoverable, stays open while hovered or focused, and closes on Escape, blur or pointer leave\n * (WCAG 1.4.13 Content on Hover or Focus).\n * - The host keeps its full text in the accessibility tree (CSS truncation hides nothing from screen\n * readers), so the popover is `aria-hidden` and nothing is announced twice.\n * - A truncated, non-focusable host becomes a tab stop (`tabindex=\"0\"`) so keyboard users can reveal the\n * hidden text (WCAG 2.1.1). Text that fits is never made focusable, nor is text inside an interactive\n * ancestor (no nested tab stops); `stTruncateFocusable=\"false\"` opts out, for example in dense tables.\n * - The host needs a constrained width: give a flex or grid child `min-w-0`.\n *\n * @example\n * ```html\n * <p stTruncate>{{ product.description }}</p>\n * <h1 stText=\"3\" stTruncate>{{ title }}</h1>\n * <td><span stTruncate [stTruncateLines]=\"2\">{{ row.notes }}</span></td>\n * ```\n *\n * @publicApi\n */\n@Directive({\n\tselector: '[stTruncate]',\n\tstandalone: true,\n\texportAs: 'stTruncate',\n\thost: {\n\t\t'[attr.data-truncated]': 'truncated() ? \"\" : null',\n\t\t'(mouseenter)': 'onPointerEnter()',\n\t\t'(mouseleave)': 'onPointerLeave()',\n\t\t'(focus)': 'onFocus()',\n\t\t'(blur)': 'onBlur()',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t},\n})\nexport class TruncateDirective {\n\t/**\n\t * Number of visible lines before the text is cut off.\n\t * @defaultValue 1\n\t */\n\treadonly stTruncateLines = input(1, { transform: numberAttribute });\n\n\t/**\n\t * Hover delay in milliseconds before the popover opens. Focus and touch open it immediately.\n\t * @defaultValue 200\n\t */\n\treadonly stTruncateOpenDelay = input(200, { transform: numberAttribute });\n\n\t/**\n\t * Delay in milliseconds before the popover closes after the pointer leaves, so the pointer can move onto it.\n\t * @defaultValue 120\n\t */\n\treadonly stTruncateCloseDelay = input(120, { transform: numberAttribute });\n\n\t/**\n\t * Whether a truncated, non-focusable host becomes a tab stop so keyboard users can reveal the full text.\n\t * Set it to `false` in dense tables where the row or another control already exposes the text.\n\t * The host never becomes a tab stop inside an interactive ancestor (button, link, form control, `tabindex` ≥ 0, or a role such as checkbox or tab).\n\t * @defaultValue true\n\t */\n\treadonly stTruncateFocusable = input(true, { transform: booleanAttribute });\n\n\tprivate readonly truncatedState = signal(false);\n\tprivate readonly openState = signal(false);\n\n\t/** Whether the text currently overflows its box. */\n\treadonly truncated = this.truncatedState.asReadonly();\n\n\t/** Whether the full-text popover is open. */\n\treadonly isOpen = this.openState.asReadonly();\n\n\tprivate readonly lines = computed(() => {\n\t\tconst lines = Math.floor(this.stTruncateLines());\n\t\treturn Number.isFinite(lines) && lines > 1 ? lines : 1;\n\t});\n\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\tprivate readonly renderer = inject(Renderer2);\n\tprivate readonly overlay = inject(Overlay);\n\tprivate readonly themeDom = inject(ThemeDomService);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\n\tprivate readonly nativelyFocusable = this.host.matches(focusableSelector);\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate popoverRef: ComponentRef<TruncatePopoverComponent> | null = null;\n\tprivate openTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate closeTimer: ReturnType<typeof setTimeout> | null = null;\n\tprivate pointerOverHost = false;\n\tprivate pointerOverPopover = false;\n\tprivate focused = false;\n\tprivate destroyed = false;\n\tprivate rendered = false;\n\tprivate inlineHost = false;\n\n\tconstructor() {\n\t\teffect(() => this.applyTruncationStyles(this.lines()));\n\n\t\teffect(() => {\n\t\t\tconst truncated = this.truncated();\n\t\t\tif (!this.nativelyFocusable) {\n\t\t\t\tif (truncated && this.stTruncateFocusable() && !this.hasInteractiveAncestor()) this.renderer.setAttribute(this.host, 'tabindex', '0');\n\t\t\t\telse this.renderer.removeAttribute(this.host, 'tabindex');\n\t\t\t}\n\t\t\tif (!truncated) this.close();\n\t\t});\n\n\t\tafterNextRender(() => {\n\t\t\tthis.rendered = true;\n\t\t\tif (getComputedStyle(this.host).display === 'inline') {\n\t\t\t\tthis.inlineHost = true;\n\t\t\t\tthis.applyTruncationStyles(this.lines());\n\t\t\t}\n\t\t\tthis.observe();\n\t\t\tthis.measure();\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.destroyed = true;\n\t\t\tthis.clearTimers();\n\t\t\tthis.overlayRef?.dispose();\n\t\t\tthis.overlayRef = null;\n\t\t\tthis.popoverRef = null;\n\t\t});\n\t}\n\n\t/** Re-measures the host. Call it after a layout change the directive cannot observe. */\n\tmeasure(): void {\n\t\tif (this.destroyed || !this.rendered) return;\n\t\tconst overflow = this.lines() === 1 ? this.host.scrollWidth - this.host.clientWidth : this.host.scrollHeight - this.host.clientHeight;\n\t\tthis.truncatedState.set(overflow > 1);\n\t\tthis.popoverRef?.setInput('text', this.fullText());\n\t}\n\n\t/** Opens the popover now, if the text is truncated. */\n\topen(): void {\n\t\tthis.clearTimers();\n\t\tif (!this.truncated() || this.openState()) return;\n\t\tconst overlayRef = this.overlayRef ?? this.createOverlay();\n\t\tconst popoverRef = overlayRef.attach(new ComponentPortal(TruncatePopoverComponent));\n\t\tpopoverRef.setInput('text', this.fullText());\n\t\tconst popover = popoverRef.location.nativeElement as HTMLElement;\n\t\tthis.themeDom.inheritTheme(this.host, popover);\n\t\tpopover.addEventListener('mouseenter', () => {\n\t\t\tthis.pointerOverPopover = true;\n\t\t\tthis.clearTimers();\n\t\t});\n\t\tpopover.addEventListener('mouseleave', () => {\n\t\t\tthis.pointerOverPopover = false;\n\t\t\tthis.scheduleClose();\n\t\t});\n\t\tthis.popoverRef = popoverRef;\n\t\tthis.openState.set(true);\n\t\toverlayRef.updatePosition();\n\t}\n\n\t/** Closes the popover now. */\n\tclose(): void {\n\t\tthis.clearTimers();\n\t\tthis.pointerOverPopover = false;\n\t\tif (!this.openState()) return;\n\t\tthis.overlayRef?.detach();\n\t\tthis.popoverRef = null;\n\t\tthis.openState.set(false);\n\t}\n\n\tprotected onPointerEnter(): void {\n\t\tthis.pointerOverHost = true;\n\t\tif (this.openState()) {\n\t\t\tthis.clearTimers();\n\t\t\treturn;\n\t\t}\n\t\tif (!this.truncated()) return;\n\t\tthis.clearTimers();\n\t\tthis.openTimer = setTimeout(() => this.open(), Math.max(0, this.stTruncateOpenDelay()));\n\t}\n\n\tprotected onPointerLeave(): void {\n\t\tthis.pointerOverHost = false;\n\t\tif (this.openTimer) {\n\t\t\tclearTimeout(this.openTimer);\n\t\t\tthis.openTimer = null;\n\t\t}\n\t\tthis.scheduleClose();\n\t}\n\n\tprotected onFocus(): void {\n\t\tthis.focused = true;\n\t\tthis.open();\n\t}\n\n\tprotected onBlur(): void {\n\t\tthis.focused = false;\n\t\tif (!this.pointerOverHost && !this.pointerOverPopover) this.close();\n\t}\n\n\tprotected onPointerDown(event: PointerEvent): void {\n\t\tif (event.pointerType === 'touch') this.open();\n\t}\n\n\tprivate scheduleClose(): void {\n\t\tif (!this.openState() || this.focused) return;\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.closeTimer = setTimeout(\n\t\t\t() => {\n\t\t\t\tthis.closeTimer = null;\n\t\t\t\tif (!this.pointerOverHost && !this.pointerOverPopover && !this.focused) this.close();\n\t\t\t},\n\t\t\tMath.max(0, this.stTruncateCloseDelay()),\n\t\t);\n\t}\n\n\tprivate createOverlay(): OverlayRef {\n\t\tconst overlayRef = this.overlay.create({\n\t\t\tpositionStrategy: this.overlay.position().flexibleConnectedTo(this.host).withPositions(popoverPositions).withPush(true).withViewportMargin(8),\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.reposition(),\n\t\t});\n\t\toverlayRef.keydownEvents().subscribe((event) => {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t});\n\t\toverlayRef.outsidePointerEvents().subscribe((event) => {\n\t\t\tif (!(event.target instanceof Node) || !this.host.contains(event.target)) this.close();\n\t\t});\n\t\tthis.overlayRef = overlayRef;\n\t\treturn overlayRef;\n\t}\n\n\tprivate observe(): void {\n\t\tif (typeof ResizeObserver !== 'undefined') {\n\t\t\tconst resizeObserver = new ResizeObserver(() => this.measure());\n\t\t\tresizeObserver.observe(this.host);\n\t\t\tthis.destroyRef.onDestroy(() => resizeObserver.disconnect());\n\t\t}\n\t\tif (typeof MutationObserver !== 'undefined') {\n\t\t\tconst mutationObserver = new MutationObserver(() => this.measure());\n\t\t\tmutationObserver.observe(this.host, { characterData: true, childList: true, subtree: true });\n\t\t\tthis.destroyRef.onDestroy(() => mutationObserver.disconnect());\n\t\t}\n\t\tconst fonts = (this.host.ownerDocument as Document & { fonts?: FontFaceSet }).fonts;\n\t\tvoid fonts?.ready.then(() => this.measure());\n\t}\n\n\tprivate applyTruncationStyles(lines: number): void {\n\t\tconst dashCase = RendererStyleFlags2.DashCase;\n\t\tconst style = (name: string, value: string | null) => {\n\t\t\tif (value === null) this.renderer.removeStyle(this.host, name, dashCase);\n\t\t\telse this.renderer.setStyle(this.host, name, value, dashCase);\n\t\t};\n\t\tconst singleLine = lines === 1;\n\t\tstyle('overflow', 'hidden');\n\t\tstyle('min-width', '0');\n\t\tstyle('text-overflow', singleLine ? 'ellipsis' : null);\n\t\tstyle('white-space', singleLine ? 'nowrap' : null);\n\t\tconst singleLineDisplay = this.inlineHost ? 'inline-block' : null;\n\t\tstyle('display', singleLine ? singleLineDisplay : '-webkit-box');\n\t\tstyle('max-width', this.inlineHost ? '100%' : null);\n\t\tstyle('vertical-align', this.inlineHost ? 'bottom' : null);\n\t\tstyle('-webkit-box-orient', singleLine ? null : 'vertical');\n\t\tstyle('-webkit-line-clamp', singleLine ? null : String(lines));\n\t\tstyle('overflow-wrap', singleLine ? null : 'anywhere');\n\t\tqueueMicrotask(() => this.measure());\n\t}\n\n\tprivate hasInteractiveAncestor(): boolean {\n\t\treturn !!this.host.parentElement?.closest(interactiveAncestorSelector);\n\t}\n\n\tprivate fullText(): string {\n\t\treturn normalizeText(this.host.textContent);\n\t}\n\n\tprivate clearTimers(): void {\n\t\tif (this.openTimer) clearTimeout(this.openTimer);\n\t\tif (this.closeTimer) clearTimeout(this.closeTimer);\n\t\tthis.openTimer = null;\n\t\tthis.closeTimer = null;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEA;;;;AAIG;MAaU,wBAAwB,CAAA;AAC3B,IAAA,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;wGADb,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,olBAF1B,cAAc,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEZ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAZpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,0BAA0B,EAAE,EAAE;AAC9B,wBAAA,KAAK,EACJ,iSAAiS;AAClS,qBAAA;AACD,oBAAA,QAAQ,EAAE,cAAc;AACxB,iBAAA;;;ACGD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