@ids-group-ltd/ids-design-system 1.1.0 → 1.1.2
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 +289 -0
- package/agent/INDEX.md +1 -1
- package/agent/feedback/ds-alert.md +3 -2
- package/agent/feedback/ds-chat-message.md +3 -3
- package/agent/feedback/ds-chat-step.md +1 -1
- package/agent/feedback/ds-chat-steps.md +1 -1
- package/agent/feedback/ds-chat-thread.md +2 -2
- package/agent/feedback/ds-empty-state.md +2 -1
- package/agent/feedback/ds-tree.md +4 -2
- package/agent/forms/ds-chat-input.md +3 -3
- package/agent/foundations/tokens.md +2 -2
- package/agent/navigation/ds-splitter.md +1 -1
- package/components.md +22 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +184 -72
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +14 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +23 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +116 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +4 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +84 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +31 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +33 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.2.json +1 -0
- package/migrations/1.0.1.json +4 -0
- package/migrations/1.0.2.json +9 -1
- package/migrations/1.1.0.json +25 -0
- package/migrations/1.1.1.json +190 -0
- package/migrations/1.1.2.json +135 -0
- package/migrations/README.md +9 -7
- package/package.json +4 -1
- package/schematics/check-overrides/surface.json +29 -3
- package/stylelint/index.mjs +17 -3
- package/stylelint/known-tokens.mjs +139 -0
- package/stylelint/report.mjs +185 -0
- package/stylelint/tokens.mjs +160 -0
- package/stylelint/use-tokens.mjs +397 -0
- package/styles/_check-box.scss +2 -2
- package/styles/_dropdown-overlay.scss +5 -2
- package/styles/_field-box.scss +2 -2
- package/styles/_tokens.scss +8 -0
- package/themes/README.md +1 -1
- package/themes/_semantic.scss +13 -0
- package/themes/dark/_theme.scss +15 -3
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +58 -5
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +7 -2
- package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +15 -1
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +57 -3
- package/types/ids-group-ltd-ids-design-system-components.d.ts +8 -4
- package/types/ids-group-ltd-ids-design-system-core.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -46,7 +46,7 @@ class TimelineItemComponent {
|
|
|
46
46
|
this.expanded.set(!this.expanded());
|
|
47
47
|
}
|
|
48
48
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimelineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimelineItemComponent, isStandalone: true, selector: "ds-timeline-item", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-tone": "tone()", "attr.data-status": "status()", "class.is-first": "isFirst()", "class.is-last": "isLast()", "class.is-expanded": "expanded()", "class.outside-timeline": "!timeline" } }, ngImport: i0, template: "<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_timeline-node-size: var(--ds-timeline-node-size, var(--timeline-node-size));--_timeline-spine-width: var(--ds-timeline-spine-width, var(--timeline-spine-w));--_timeline-gap: var(--ds-timeline-gap, var(--timeline-gap));--_timeline-node-bg-color: var(--ds-timeline-node-bg-color, var(--surface-secondary));--_timeline-node-color: var(--ds-timeline-node-color, var(--text-tertiary));--_timeline-node-border-color: var(--ds-timeline-node-border-color, var(--text-tertiary));--_timeline-spine-color: var(--ds-timeline-spine-color, var(--border-divider));--_timeline-toggle-icon-color: var(--ds-timeline-toggle-icon-color, var(--icon-default));--_timeline-toggle-icon-color-hover: var(--ds-timeline-toggle-icon-color-hover, var(--icon-strong));--_timeline-open-bg-color: var(--ds-timeline-open-bg-color, var(--surface-secondary));display:grid;grid-template-columns:var(--_timeline-node-size) 1fr;column-gap:var(--space-4)}.node-col{grid-area:1/1;display:flex;flex-direction:column;align-items:center}.node{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--_timeline-node-size);height:var(--_timeline-node-size);border-radius:var(--radius-pill);background-color:var(--_timeline-node-bg-color);color:var(--_timeline-node-color);border:var(--border-width-strong) solid var(--_timeline-node-border-color)}.spine{flex:1;width:var(--_timeline-spine-width);margin-top:var(--space-1);background-color:var(--_timeline-spine-color)}.lead{margin-top:0;margin-bottom:var(--space-1)}.tail{grid-area:2/1;justify-self:center;margin-top:0}.text{grid-area:1/2;display:flex;flex-direction:column;align-self:center;gap:var(--space-0-5);min-width:0}.rest{grid-area:2/2;padding-bottom:var(--_timeline-gap);min-width:0}:host(.is-last) .spine:not(.lead),:host(.outside-timeline:last-child) .spine:not(.lead){visibility:hidden}:host(.is-last) .rest,:host(.outside-timeline:last-child) .rest{padding-bottom:0}:host(.is-first) .lead,:host(.outside-timeline:first-child) .lead{visibility:hidden}.head{position:relative;display:flex;align-items:flex-start;gap:var(--space-2);min-width:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.trailing{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:none;height:calc(var(--font-size-s) * var(--line-height-base))}.head:has(.trailing>:not(.toggle)){align-items:center;margin-bottom:var(--space-1-5);padding-top:var(--space-2)}.head:has(.trailing>:not(.toggle)) .trailing{height:auto}.toggle{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toggle{position:relative}.toggle:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.toggle:focus-visible{outline-style:none}.toggle:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toggle{color:var(--_timeline-toggle-icon-color)}.toggle:hover{color:var(--_timeline-toggle-icon-color-hover)}.toggle .chev{transition:transform var(--duration-base) var(--ease-standard)}.toggle[aria-expanded=true] .chev{transform:rotate(180deg)}:host:not(:has(.details-body>*)) .toggle{display:none}:host(.is-expanded){isolation:isolate}:host(.is-expanded):before{content:\"\";grid-area:1/1/3/3;z-index:-1;margin:0 calc(-1 * var(--space-2)) var(--_timeline-gap);border-radius:var(--ds-radius-control);background-color:var(--_timeline-open-bg-color)}:host(.is-expanded.is-last):before,:host(.is-expanded.outside-timeline:last-child):before{margin-bottom:0}.details{display:grid;grid-template-rows:0fr;min-width:0;visibility:hidden;transition:grid-template-rows var(--duration-slow) var(--ease-decelerate),visibility var(--duration-slow) allow-discrete}.details:not(:has(.details-body>*)){display:none}:host(.is-expanded) .details{grid-template-rows:1fr;visibility:visible}.details-content{min-height:0;overflow:hidden}.details-body{padding-top:var(--space-1)}.heading{color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.time{color:var(--text-tertiary);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host([data-tone=primary]){--_timeline-node-bg-color: var(--accent);--_timeline-node-color: var(--text-on-primary);--_timeline-node-border-color: var(--accent)}:host([data-tone=success]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-tone=warning]){--_timeline-node-bg-color: var(--warning);--_timeline-node-color: var(--text-on-warning);--_timeline-node-border-color: var(--warning)}:host([data-tone=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-tone=muted]){--_timeline-node-bg-color: var(--surface-secondary);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=done]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-status=running]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--accent);--_timeline-node-border-color: var(--accent)}:host([data-status=pending]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-status=pending]) .node{border-style:dashed}:host([data-status=pending]) .heading{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimelineItemComponent, isStandalone: true, selector: "ds-timeline-item", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { attributes: { "role": "listitem" }, properties: { "attr.data-tone": "tone()", "attr.data-status": "status()", "class.is-first": "isFirst()", "class.is-last": "isLast()", "class.is-expanded": "expanded()", "class.outside-timeline": "!timeline" } }, ngImport: i0, template: "<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_timeline-node-size: var(--ds-timeline-node-size, var(--timeline-node-size));--_timeline-spine-width: var(--ds-timeline-spine-width, var(--timeline-spine-w));--_timeline-gap: var(--ds-timeline-gap, var(--timeline-gap));--_timeline-node-bg-color: var(--ds-timeline-node-bg-color, var(--surface-secondary));--_timeline-node-color: var(--ds-timeline-node-color, var(--text-tertiary));--_timeline-node-border-color: var(--ds-timeline-node-border-color, var(--text-tertiary));--_timeline-spine-color: var(--ds-timeline-spine-color, var(--border-divider));--_timeline-toggle-icon-color: var(--ds-timeline-toggle-icon-color, var(--icon-default));--_timeline-toggle-icon-color-hover: var(--ds-timeline-toggle-icon-color-hover, var(--icon-strong));--_timeline-open-bg-color: var(--ds-timeline-open-bg-color, var(--surface-secondary));display:grid;grid-template-columns:var(--_timeline-node-size) 1fr;column-gap:var(--space-4)}.node-col{grid-area:1/1;display:flex;flex-direction:column;align-items:center}.node{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--_timeline-node-size);height:var(--_timeline-node-size);border-radius:var(--radius-pill);background-color:var(--_timeline-node-bg-color);color:var(--_timeline-node-color);border:var(--border-width-strong) solid var(--_timeline-node-border-color)}.spine{flex:1;width:var(--_timeline-spine-width);margin-top:var(--space-1);background-color:var(--_timeline-spine-color)}.lead{margin-top:0;margin-bottom:var(--space-1)}.tail{grid-area:2/1;justify-self:center;margin-top:0}.text{grid-area:1/2;display:flex;flex-direction:column;align-self:center;gap:var(--space-0-5);min-width:0}.rest{grid-area:2/2;padding-bottom:var(--_timeline-gap);min-width:0}:host(.is-last) .spine:not(.lead),:host(.outside-timeline:last-child) .spine:not(.lead){visibility:hidden}:host(.is-last) .rest,:host(.outside-timeline:last-child) .rest{padding-bottom:0}:host(.is-first) .lead,:host(.outside-timeline:first-child) .lead{visibility:hidden}.head{position:relative;display:flex;align-items:flex-start;gap:var(--space-2);min-width:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.trailing{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:none;height:calc(var(--font-size-s) * var(--line-height-base))}.head:has(.trailing>:not(.toggle)){align-items:center;margin-bottom:var(--space-1-5);padding-top:var(--space-2)}.head:has(.trailing>:not(.toggle)) .trailing{height:auto}.toggle{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toggle{position:relative}.toggle:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.toggle:focus-visible{outline-style:none}.toggle:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toggle{color:var(--_timeline-toggle-icon-color)}.toggle:hover{color:var(--_timeline-toggle-icon-color-hover)}.toggle .chev{transition:transform var(--duration-base) var(--ease-standard)}.toggle[aria-expanded=true] .chev{transform:rotate(180deg)}:host:not(:has(.details-body>*)) .toggle{display:none}:host(.is-expanded){isolation:isolate}:host(.is-expanded):before{content:\"\";grid-area:1/1/3/3;z-index:-1;margin:0 calc(-1 * var(--space-2)) var(--_timeline-gap);border-radius:var(--ds-radius-control);background-color:var(--_timeline-open-bg-color)}:host(.is-expanded.is-last):before,:host(.is-expanded.outside-timeline:last-child):before{margin-bottom:0}.details{display:grid;grid-template-rows:0fr;min-width:0;visibility:hidden;transition:grid-template-rows var(--duration-slow) var(--ease-decelerate),visibility var(--duration-slow) allow-discrete}.details:not(:has(.details-body>*)){display:none}:host(.is-expanded) .details{grid-template-rows:1fr;visibility:visible}.details-content{min-height:0;overflow:hidden}.details-body{padding-top:var(--space-1)}.heading{color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.time{color:var(--text-tertiary);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host([data-tone=primary]){--_timeline-node-bg-color: var(--accent);--_timeline-node-color: var(--text-on-primary);--_timeline-node-border-color: var(--accent)}:host([data-tone=success]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-tone=warning]){--_timeline-node-bg-color: var(--warning);--_timeline-node-color: var(--text-on-warning);--_timeline-node-border-color: var(--warning)}:host([data-tone=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-tone=muted]){--_timeline-node-bg-color: var(--surface-secondary);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=done]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-status=running]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--accent);--_timeline-node-border-color: var(--accent)}:host([data-status=pending]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-status=pending]) .node{border-style:dashed}:host([data-status=pending]) .heading{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}:host:has(>.text>.head~*){--_timeline-heading-centre: calc(var(--font-size-s) * var(--line-height-base) / 2)}:host:has(>.text>.head~*) .text{align-self:start;padding-top:max(0px,var(--_timeline-node-size) / 2 + var(--space-1) - var(--_timeline-heading-centre))}:host:has(>.text>.head~*) .lead{flex:none;height:max(0px,var(--_timeline-heading-centre) - var(--_timeline-node-size) / 2 - var(--space-1))}:host:has(>.text>.head>.trailing>:not(.toggle)){--_timeline-heading-centre: calc( var(--space-2) + max(var(--font-size-s) * var(--line-height-base), var(--field-h-sm)) / 2 )}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
|
|
50
50
|
}
|
|
51
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimelineItemComponent, decorators: [{
|
|
52
52
|
type: Component,
|
|
@@ -58,7 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
58
58
|
'[class.is-last]': 'isLast()',
|
|
59
59
|
'[class.is-expanded]': 'expanded()',
|
|
60
60
|
'[class.outside-timeline]': '!timeline',
|
|
61
|
-
}, template: "<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_timeline-node-size: var(--ds-timeline-node-size, var(--timeline-node-size));--_timeline-spine-width: var(--ds-timeline-spine-width, var(--timeline-spine-w));--_timeline-gap: var(--ds-timeline-gap, var(--timeline-gap));--_timeline-node-bg-color: var(--ds-timeline-node-bg-color, var(--surface-secondary));--_timeline-node-color: var(--ds-timeline-node-color, var(--text-tertiary));--_timeline-node-border-color: var(--ds-timeline-node-border-color, var(--text-tertiary));--_timeline-spine-color: var(--ds-timeline-spine-color, var(--border-divider));--_timeline-toggle-icon-color: var(--ds-timeline-toggle-icon-color, var(--icon-default));--_timeline-toggle-icon-color-hover: var(--ds-timeline-toggle-icon-color-hover, var(--icon-strong));--_timeline-open-bg-color: var(--ds-timeline-open-bg-color, var(--surface-secondary));display:grid;grid-template-columns:var(--_timeline-node-size) 1fr;column-gap:var(--space-4)}.node-col{grid-area:1/1;display:flex;flex-direction:column;align-items:center}.node{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--_timeline-node-size);height:var(--_timeline-node-size);border-radius:var(--radius-pill);background-color:var(--_timeline-node-bg-color);color:var(--_timeline-node-color);border:var(--border-width-strong) solid var(--_timeline-node-border-color)}.spine{flex:1;width:var(--_timeline-spine-width);margin-top:var(--space-1);background-color:var(--_timeline-spine-color)}.lead{margin-top:0;margin-bottom:var(--space-1)}.tail{grid-area:2/1;justify-self:center;margin-top:0}.text{grid-area:1/2;display:flex;flex-direction:column;align-self:center;gap:var(--space-0-5);min-width:0}.rest{grid-area:2/2;padding-bottom:var(--_timeline-gap);min-width:0}:host(.is-last) .spine:not(.lead),:host(.outside-timeline:last-child) .spine:not(.lead){visibility:hidden}:host(.is-last) .rest,:host(.outside-timeline:last-child) .rest{padding-bottom:0}:host(.is-first) .lead,:host(.outside-timeline:first-child) .lead{visibility:hidden}.head{position:relative;display:flex;align-items:flex-start;gap:var(--space-2);min-width:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.trailing{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:none;height:calc(var(--font-size-s) * var(--line-height-base))}.head:has(.trailing>:not(.toggle)){align-items:center;margin-bottom:var(--space-1-5);padding-top:var(--space-2)}.head:has(.trailing>:not(.toggle)) .trailing{height:auto}.toggle{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toggle{position:relative}.toggle:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.toggle:focus-visible{outline-style:none}.toggle:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toggle{color:var(--_timeline-toggle-icon-color)}.toggle:hover{color:var(--_timeline-toggle-icon-color-hover)}.toggle .chev{transition:transform var(--duration-base) var(--ease-standard)}.toggle[aria-expanded=true] .chev{transform:rotate(180deg)}:host:not(:has(.details-body>*)) .toggle{display:none}:host(.is-expanded){isolation:isolate}:host(.is-expanded):before{content:\"\";grid-area:1/1/3/3;z-index:-1;margin:0 calc(-1 * var(--space-2)) var(--_timeline-gap);border-radius:var(--ds-radius-control);background-color:var(--_timeline-open-bg-color)}:host(.is-expanded.is-last):before,:host(.is-expanded.outside-timeline:last-child):before{margin-bottom:0}.details{display:grid;grid-template-rows:0fr;min-width:0;visibility:hidden;transition:grid-template-rows var(--duration-slow) var(--ease-decelerate),visibility var(--duration-slow) allow-discrete}.details:not(:has(.details-body>*)){display:none}:host(.is-expanded) .details{grid-template-rows:1fr;visibility:visible}.details-content{min-height:0;overflow:hidden}.details-body{padding-top:var(--space-1)}.heading{color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.time{color:var(--text-tertiary);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host([data-tone=primary]){--_timeline-node-bg-color: var(--accent);--_timeline-node-color: var(--text-on-primary);--_timeline-node-border-color: var(--accent)}:host([data-tone=success]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-tone=warning]){--_timeline-node-bg-color: var(--warning);--_timeline-node-color: var(--text-on-warning);--_timeline-node-border-color: var(--warning)}:host([data-tone=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-tone=muted]){--_timeline-node-bg-color: var(--surface-secondary);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=done]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-status=running]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--accent);--_timeline-node-border-color: var(--accent)}:host([data-status=pending]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-status=pending]) .node{border-style:dashed}:host([data-status=pending]) .heading{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}\n"] }]
|
|
61
|
+
}, template: "<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_timeline-node-size: var(--ds-timeline-node-size, var(--timeline-node-size));--_timeline-spine-width: var(--ds-timeline-spine-width, var(--timeline-spine-w));--_timeline-gap: var(--ds-timeline-gap, var(--timeline-gap));--_timeline-node-bg-color: var(--ds-timeline-node-bg-color, var(--surface-secondary));--_timeline-node-color: var(--ds-timeline-node-color, var(--text-tertiary));--_timeline-node-border-color: var(--ds-timeline-node-border-color, var(--text-tertiary));--_timeline-spine-color: var(--ds-timeline-spine-color, var(--border-divider));--_timeline-toggle-icon-color: var(--ds-timeline-toggle-icon-color, var(--icon-default));--_timeline-toggle-icon-color-hover: var(--ds-timeline-toggle-icon-color-hover, var(--icon-strong));--_timeline-open-bg-color: var(--ds-timeline-open-bg-color, var(--surface-secondary));display:grid;grid-template-columns:var(--_timeline-node-size) 1fr;column-gap:var(--space-4)}.node-col{grid-area:1/1;display:flex;flex-direction:column;align-items:center}.node{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--_timeline-node-size);height:var(--_timeline-node-size);border-radius:var(--radius-pill);background-color:var(--_timeline-node-bg-color);color:var(--_timeline-node-color);border:var(--border-width-strong) solid var(--_timeline-node-border-color)}.spine{flex:1;width:var(--_timeline-spine-width);margin-top:var(--space-1);background-color:var(--_timeline-spine-color)}.lead{margin-top:0;margin-bottom:var(--space-1)}.tail{grid-area:2/1;justify-self:center;margin-top:0}.text{grid-area:1/2;display:flex;flex-direction:column;align-self:center;gap:var(--space-0-5);min-width:0}.rest{grid-area:2/2;padding-bottom:var(--_timeline-gap);min-width:0}:host(.is-last) .spine:not(.lead),:host(.outside-timeline:last-child) .spine:not(.lead){visibility:hidden}:host(.is-last) .rest,:host(.outside-timeline:last-child) .rest{padding-bottom:0}:host(.is-first) .lead,:host(.outside-timeline:first-child) .lead{visibility:hidden}.head{position:relative;display:flex;align-items:flex-start;gap:var(--space-2);min-width:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.trailing{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:none;height:calc(var(--font-size-s) * var(--line-height-base))}.head:has(.trailing>:not(.toggle)){align-items:center;margin-bottom:var(--space-1-5);padding-top:var(--space-2)}.head:has(.trailing>:not(.toggle)) .trailing{height:auto}.toggle{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.toggle{position:relative}.toggle:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.toggle:focus-visible{outline-style:none}.toggle:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.toggle{color:var(--_timeline-toggle-icon-color)}.toggle:hover{color:var(--_timeline-toggle-icon-color-hover)}.toggle .chev{transition:transform var(--duration-base) var(--ease-standard)}.toggle[aria-expanded=true] .chev{transform:rotate(180deg)}:host:not(:has(.details-body>*)) .toggle{display:none}:host(.is-expanded){isolation:isolate}:host(.is-expanded):before{content:\"\";grid-area:1/1/3/3;z-index:-1;margin:0 calc(-1 * var(--space-2)) var(--_timeline-gap);border-radius:var(--ds-radius-control);background-color:var(--_timeline-open-bg-color)}:host(.is-expanded.is-last):before,:host(.is-expanded.outside-timeline:last-child):before{margin-bottom:0}.details{display:grid;grid-template-rows:0fr;min-width:0;visibility:hidden;transition:grid-template-rows var(--duration-slow) var(--ease-decelerate),visibility var(--duration-slow) allow-discrete}.details:not(:has(.details-body>*)){display:none}:host(.is-expanded) .details{grid-template-rows:1fr;visibility:visible}.details-content{min-height:0;overflow:hidden}.details-body{padding-top:var(--space-1)}.heading{color:var(--text-primary);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.time{color:var(--text-tertiary);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host([data-tone=primary]){--_timeline-node-bg-color: var(--accent);--_timeline-node-color: var(--text-on-primary);--_timeline-node-border-color: var(--accent)}:host([data-tone=success]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-tone=warning]){--_timeline-node-bg-color: var(--warning);--_timeline-node-color: var(--text-on-warning);--_timeline-node-border-color: var(--warning)}:host([data-tone=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-tone=muted]){--_timeline-node-bg-color: var(--surface-secondary);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=done]){--_timeline-node-bg-color: var(--success);--_timeline-node-color: var(--text-on-success);--_timeline-node-border-color: var(--success)}:host([data-status=running]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--accent);--_timeline-node-border-color: var(--accent)}:host([data-status=pending]){--_timeline-node-bg-color: var(--surface-default);--_timeline-node-color: var(--text-tertiary);--_timeline-node-border-color: var(--text-tertiary)}:host([data-status=error]){--_timeline-node-bg-color: var(--error);--_timeline-node-color: var(--text-on-error);--_timeline-node-border-color: var(--error)}:host([data-status=pending]) .node{border-style:dashed}:host([data-status=pending]) .heading{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}:host:has(>.text>.head~*){--_timeline-heading-centre: calc(var(--font-size-s) * var(--line-height-base) / 2)}:host:has(>.text>.head~*) .text{align-self:start;padding-top:max(0px,var(--_timeline-node-size) / 2 + var(--space-1) - var(--_timeline-heading-centre))}:host:has(>.text>.head~*) .lead{flex:none;height:max(0px,var(--_timeline-heading-centre) - var(--_timeline-node-size) / 2 - var(--space-1))}:host:has(>.text>.head>.trailing>:not(.toggle)){--_timeline-heading-centre: calc( var(--space-2) + max(var(--font-size-s) * var(--line-height-base), var(--field-h-sm)) / 2 )}\n"] }]
|
|
62
62
|
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], time: [{ type: i0.Input, args: [{ isSignal: true, alias: "time", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }] } });
|
|
63
63
|
|
|
64
64
|
class TimelineComponent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-timeline.mjs","sources":["../../../src/lib/components/timeline/timeline.token.ts","../../../src/lib/components/timeline/timeline-item.component.ts","../../../src/lib/components/timeline/timeline-item.component.html","../../../src/lib/components/timeline/timeline.component.ts","../../../src/lib/components/timeline/ids-group-ltd-ids-design-system-components-timeline.ts"],"sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\n/** Contract that ds-timeline-item reads from its parent ds-timeline. */\nexport interface TimelineContract {\n /** The item that draws no connector above it. */\n readonly firstItem: Signal<object | undefined>;\n /** The item that draws no connector below it. */\n readonly lastItem: Signal<object | undefined>;\n}\n\nexport const TIMELINE = new InjectionToken<TimelineContract>('TIMELINE');\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n type IconName,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { TIMELINE } from './timeline.token';\n\nexport type TimelineTone =\n | 'default'\n | 'primary'\n | 'success'\n | 'warning'\n | 'error'\n | 'muted';\n\nexport type TimelineStatus = 'done' | 'running' | 'pending' | 'error';\n\nconst STATUS_ICONS: Partial<Record<TimelineStatus, IconName>> = {\n done: 'check',\n error: 'x',\n};\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-timeline-item',\n standalone: true,\n imports: [IconComponent, SpinnerComponent],\n templateUrl: './timeline-item.component.html',\n styleUrl: './timeline-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.data-tone]': 'tone()',\n '[attr.data-status]': 'status()',\n '[class.is-first]': 'isFirst()',\n '[class.is-last]': 'isLast()',\n '[class.is-expanded]': 'expanded()',\n '[class.outside-timeline]': '!timeline',\n },\n})\nexport class TimelineItemComponent {\n /** Primary text for the entry. */\n readonly heading = input<string>('');\n /** Timestamp or date label below the content. */\n readonly time = input<string>('');\n /** Marker icon; omit for a plain dot. Ignored while `status` is set. */\n readonly icon = input<IconName | null>(null);\n /** Semantic accent color for the marker. Ignored while `status` is set. */\n readonly tone = input<TimelineTone>('default');\n /** Step state: draws the marker and is spoken before the heading. `null` leaves `icon` and `tone` in charge. */\n readonly status = input<TimelineStatus | null>(null);\n /** Whether the `[details]` area is open, two-way bound. */\n readonly expanded = model<boolean>(false);\n\n private readonly intl = inject(DS_INTL);\n protected readonly timeline = inject(TIMELINE, { optional: true });\n\n protected readonly detailsId = `ds-timeline-item-${++nextId}-details`;\n\n protected readonly isFirst = computed(\n () => this.timeline?.firstItem() === this,\n );\n\n protected readonly isLast = computed(\n () => this.timeline?.lastItem() === this,\n );\n\n protected readonly nodeIcon = computed<IconName | null>(() => {\n const status = this.status();\n\n return status ? (STATUS_ICONS[status] ?? null) : this.icon();\n });\n\n private readonly wording = computed(() => ({\n ...DS_INTL_DEFAULTS.timeline,\n ...this.intl().timeline,\n }));\n\n protected readonly statusLabel = computed(() => {\n const status = this.status();\n\n return status ? this.wording()[status] : '';\n });\n\n protected readonly detailsLabel = computed(() =>\n this.wording().details(this.heading()),\n );\n\n protected toggle(): void {\n this.expanded.set(!this.expanded());\n }\n}\n","<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n contentChildren,\n forwardRef,\n} from '@angular/core';\nimport { TIMELINE } from './timeline.token';\nimport { TimelineItemComponent } from './timeline-item.component';\n\n@Component({\n selector: 'ds-timeline',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './timeline.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n },\n providers: [\n {\n provide: TIMELINE,\n useExisting: forwardRef(() => TimelineComponent),\n },\n ],\n})\nexport class TimelineComponent {\n // Descendants, so an item inside a wrapper element or an @for block still counts.\n private readonly items = contentChildren(TimelineItemComponent, {\n descendants: true,\n });\n\n /** The item that draws no connector above it. */\n readonly firstItem = computed<object | undefined>(() => this.items().at(0));\n\n /** The item that draws no connector below it. */\n readonly lastItem = computed<object | undefined>(() => this.items().at(-1));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAUO,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAmB,UAAU,CAAC;;ACiBxE,MAAM,YAAY,GAA8C;AAC9D,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,KAAK,EAAE,GAAG;CACX;AAED,IAAI,MAAM,GAAG,CAAC;MAmBD,qBAAqB,CAAA;;AAEvB,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,8EAAC;;AAE3B,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,IAAI,GAAG,KAAK,CAAe,SAAS,2EAAC;;AAErC,IAAA,MAAM,GAAG,KAAK,CAAwB,IAAI,6EAAC;;AAE3C,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAExB,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;IACpB,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE/C,IAAA,SAAS,GAAG,CAAA,iBAAA,EAA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AAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC9BH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-timeline.mjs","sources":["../../../src/lib/components/timeline/timeline.token.ts","../../../src/lib/components/timeline/timeline-item.component.ts","../../../src/lib/components/timeline/timeline-item.component.html","../../../src/lib/components/timeline/timeline.component.ts","../../../src/lib/components/timeline/ids-group-ltd-ids-design-system-components-timeline.ts"],"sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\n/** Contract that ds-timeline-item reads from its parent ds-timeline. */\nexport interface TimelineContract {\n /** The item that draws no connector above it. */\n readonly firstItem: Signal<object | undefined>;\n /** The item that draws no connector below it. */\n readonly lastItem: Signal<object | undefined>;\n}\n\nexport const TIMELINE = new InjectionToken<TimelineContract>('TIMELINE');\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n type IconName,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { TIMELINE } from './timeline.token';\n\nexport type TimelineTone =\n | 'default'\n | 'primary'\n | 'success'\n | 'warning'\n | 'error'\n | 'muted';\n\nexport type TimelineStatus = 'done' | 'running' | 'pending' | 'error';\n\nconst STATUS_ICONS: Partial<Record<TimelineStatus, IconName>> = {\n done: 'check',\n error: 'x',\n};\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-timeline-item',\n standalone: true,\n imports: [IconComponent, SpinnerComponent],\n templateUrl: './timeline-item.component.html',\n styleUrl: './timeline-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.data-tone]': 'tone()',\n '[attr.data-status]': 'status()',\n '[class.is-first]': 'isFirst()',\n '[class.is-last]': 'isLast()',\n '[class.is-expanded]': 'expanded()',\n '[class.outside-timeline]': '!timeline',\n },\n})\nexport class TimelineItemComponent {\n /** Primary text for the entry. */\n readonly heading = input<string>('');\n /** Timestamp or date label below the content. */\n readonly time = input<string>('');\n /** Marker icon; omit for a plain dot. Ignored while `status` is set. */\n readonly icon = input<IconName | null>(null);\n /** Semantic accent color for the marker. Ignored while `status` is set. */\n readonly tone = input<TimelineTone>('default');\n /** Step state: draws the marker and is spoken before the heading. `null` leaves `icon` and `tone` in charge. */\n readonly status = input<TimelineStatus | null>(null);\n /** Whether the `[details]` area is open, two-way bound. */\n readonly expanded = model<boolean>(false);\n\n private readonly intl = inject(DS_INTL);\n protected readonly timeline = inject(TIMELINE, { optional: true });\n\n protected readonly detailsId = `ds-timeline-item-${++nextId}-details`;\n\n protected readonly isFirst = computed(\n () => this.timeline?.firstItem() === this,\n );\n\n protected readonly isLast = computed(\n () => this.timeline?.lastItem() === this,\n );\n\n protected readonly nodeIcon = computed<IconName | null>(() => {\n const status = this.status();\n\n return status ? (STATUS_ICONS[status] ?? null) : this.icon();\n });\n\n private readonly wording = computed(() => ({\n ...DS_INTL_DEFAULTS.timeline,\n ...this.intl().timeline,\n }));\n\n protected readonly statusLabel = computed(() => {\n const status = this.status();\n\n return status ? this.wording()[status] : '';\n });\n\n protected readonly detailsLabel = computed(() =>\n this.wording().details(this.heading()),\n );\n\n protected toggle(): void {\n this.expanded.set(!this.expanded());\n }\n}\n","<div\n class=\"node-col\"\n aria-hidden=\"true\">\n <span class=\"spine lead\"></span>\n\n <span class=\"node\">\n @if (status() === 'running') {\n <ds-spinner size=\"md\" />\n } @else if (nodeIcon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"16\"\n [stroke]=\"3\" />\n }\n </span>\n\n <span class=\"spine\"></span>\n</div>\n\n<div class=\"text\">\n <div class=\"head\">\n @if (statusLabel()) {\n <span class=\"visually-hidden\">\n {{ statusLabel() }}:\n </span>\n }\n\n @if (heading()) {\n <span class=\"heading\">\n {{ heading() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n\n <button\n type=\"button\"\n class=\"toggle\"\n [attr.aria-label]=\"detailsLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"detailsId\"\n (click)=\"toggle()\">\n <ds-icon\n class=\"chev\"\n name=\"chevronDown\"\n [size]=\"16\" />\n </button>\n </span>\n </div>\n\n <ng-content></ng-content>\n\n @if (time()) {\n <span class=\"time\">\n {{ time() }}\n </span>\n }\n</div>\n\n<span\n class=\"spine tail\"\n aria-hidden=\"true\">\n</span>\n\n<div class=\"rest\">\n <div\n class=\"details\"\n [id]=\"detailsId\"\n [attr.inert]=\"expanded() ? null : ''\">\n <div class=\"details-content\">\n <div class=\"details-body\">\n <ng-content select=\"[details]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n contentChildren,\n forwardRef,\n} from '@angular/core';\nimport { TIMELINE } from './timeline.token';\nimport { TimelineItemComponent } from './timeline-item.component';\n\n@Component({\n selector: 'ds-timeline',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './timeline.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n },\n providers: [\n {\n provide: TIMELINE,\n useExisting: forwardRef(() => TimelineComponent),\n },\n ],\n})\nexport class TimelineComponent {\n // Descendants, so an item inside a wrapper element or an @for block still counts.\n private readonly items = contentChildren(TimelineItemComponent, {\n descendants: true,\n });\n\n /** The item that draws no connector above it. */\n readonly firstItem = computed<object | undefined>(() => this.items().at(0));\n\n /** The item that draws no connector below it. */\n readonly lastItem = computed<object | undefined>(() => this.items().at(-1));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAUO,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAmB,UAAU,CAAC;;ACiBxE,MAAM,YA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AAA,CAAA,EAAA,CAAA;;4FAa1B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhB7B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,MAAM;qBACb,EAAA,SAAA,EACU;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,QAAQ;AACjB,4BAAA,WAAW,EAAE,UAAU,CAAC,uBAAuB,CAAC;AACjD,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,gpBAAA,CAAA,EAAA;AAIwC,SAAA,CAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,qBAAqB,CAAA,EAAA,EAAA,GAAE;AAC9D,4BAAA,WAAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC9BH;;AAEG;;;;"}
|
|
@@ -18,11 +18,11 @@ class ToggleButtonComponent {
|
|
|
18
18
|
this.pressed.update((value) => !value);
|
|
19
19
|
}
|
|
20
20
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToggleButtonComponent, isStandalone: true, selector: "ds-toggle-button", inputs: { pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressedChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex;--_toggle-button-bg-color: var(--ds-toggle-button-bg-color, var(--surface-default));--_toggle-button-border-color: var(--ds-toggle-button-border-color, var(--border-
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ToggleButtonComponent, isStandalone: true, selector: "ds-toggle-button", inputs: { pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressedChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex;--_toggle-button-bg-color: var(--ds-toggle-button-bg-color, var(--surface-default));--_toggle-button-border-color: var(--ds-toggle-button-border-color, var(--border-field));--_toggle-button-color: var(--ds-toggle-button-color, var(--text-secondary));--_toggle-button-selected-bg-color: var(--ds-toggle-button-selected-bg-color, var(--accent-subtitle));--_toggle-button-selected-border-color: var(--ds-toggle-button-selected-border-color, var(--accent));--_toggle-button-selected-color: var(--ds-toggle-button-selected-color, var(--accent-strong))}.button-toggle{display:inline-flex;align-items:center;gap:var(--space-2);height:var(--hit-min);padding:0 var(--space-3);border:var(--border-width-default) solid var(--_toggle-button-border-color);border-radius:var(--radius-md);background:var(--_toggle-button-bg-color);color:var(--_toggle-button-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.button-toggle:hover{background:var(--surface-secondary);border-color:var(--border-field-hover);color:var(--text-primary)}.button-toggle[aria-pressed=true]{background:var(--_toggle-button-selected-bg-color);border-color:var(--_toggle-button-selected-border-color);color:var(--_toggle-button-selected-color)}.button-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.button-toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.button-toggle:disabled{cursor:not-allowed;opacity:var(--opacity-disabled)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ToggleButtonComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
|
-
args: [{ selector: 'ds-toggle-button', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex;--_toggle-button-bg-color: var(--ds-toggle-button-bg-color, var(--surface-default));--_toggle-button-border-color: var(--ds-toggle-button-border-color, var(--border-
|
|
25
|
+
args: [{ selector: 'ds-toggle-button', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex;--_toggle-button-bg-color: var(--ds-toggle-button-bg-color, var(--surface-default));--_toggle-button-border-color: var(--ds-toggle-button-border-color, var(--border-field));--_toggle-button-color: var(--ds-toggle-button-color, var(--text-secondary));--_toggle-button-selected-bg-color: var(--ds-toggle-button-selected-bg-color, var(--accent-subtitle));--_toggle-button-selected-border-color: var(--ds-toggle-button-selected-border-color, var(--accent));--_toggle-button-selected-color: var(--ds-toggle-button-selected-color, var(--accent-strong))}.button-toggle{display:inline-flex;align-items:center;gap:var(--space-2);height:var(--hit-min);padding:0 var(--space-3);border:var(--border-width-default) solid var(--_toggle-button-border-color);border-radius:var(--radius-md);background:var(--_toggle-button-bg-color);color:var(--_toggle-button-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;transition:background var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.button-toggle:hover{background:var(--surface-secondary);border-color:var(--border-field-hover);color:var(--text-primary)}.button-toggle[aria-pressed=true]{background:var(--_toggle-button-selected-bg-color);border-color:var(--_toggle-button-selected-border-color);color:var(--_toggle-button-selected-color)}.button-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.button-toggle:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.button-toggle:disabled{cursor:not-allowed;opacity:var(--opacity-disabled)}\n"] }]
|
|
26
26
|
}], propDecorators: { pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }, { type: i0.Output, args: ["pressedChange"] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-toggle-button.mjs","sources":["../../../src/lib/components/toggle-button/toggle-button.component.ts","../../../src/lib/components/toggle-button/toggle-button.component.html","../../../src/lib/components/toggle-button/ids-group-ltd-ids-design-system-components-toggle-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n/** A standalone on/off toggle button with an optional leading icon and a projected label.\n * For a one-of-many choice use `ds-segmented`. */\n@Component({\n selector: 'ds-toggle-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './toggle-button.component.html',\n styleUrl: './toggle-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToggleButtonComponent {\n /** Pressed (on/off) state; two-way bound. */\n readonly pressed = model<boolean>(false);\n /** Optional leading icon name. */\n readonly icon = input<string>('');\n /** Disables the toggle. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.update((value) => !value);\n }\n}\n","<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA;AACmD;MAStC,qBAAqB,CAAA;;AAEvB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAEvD,MAAM,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACnB;QACF;AACA,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;IACxC;wGAbW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnBlC,2RAcA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-toggle-button.mjs","sources":["../../../src/lib/components/toggle-button/toggle-button.component.ts","../../../src/lib/components/toggle-button/toggle-button.component.html","../../../src/lib/components/toggle-button/ids-group-ltd-ids-design-system-components-toggle-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n/** A standalone on/off toggle button with an optional leading icon and a projected label.\n * For a one-of-many choice use `ds-segmented`. */\n@Component({\n selector: 'ds-toggle-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './toggle-button.component.html',\n styleUrl: './toggle-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ToggleButtonComponent {\n /** Pressed (on/off) state; two-way bound. */\n readonly pressed = model<boolean>(false);\n /** Optional leading icon name. */\n readonly icon = input<string>('');\n /** Disables the toggle. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected toggle(): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.update((value) => !value);\n }\n}\n","<button\n type=\"button\"\n class=\"button-toggle\"\n [attr.aria-pressed]=\"pressed()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"14\" />\n }\n\n <ng-content></ng-content>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA;AACmD;MAStC,qBAAqB,CAAA;;AAEvB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;IAExB,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAEvD,MAAM,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACnB;QACF;AACA,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;IACxC;wGAbW,qBAAqB,EAA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overlay } from '@angular/cdk/overlay';
|
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
5
|
import { retainStyles, isTextClipped, DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';
|
|
6
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
7
|
-
import { listenForEscape, prepareOverlayEnter, closeOnScroll, overlayPlacementOf } from '@ids-group-ltd/ids-design-system/components';
|
|
7
|
+
import { listenForEscape, prepareOverlayEnter, closeOnScroll, overlayPlacementOf, pointArrowAtHost } from '@ids-group-ltd/ids-design-system/components';
|
|
8
8
|
|
|
9
9
|
const TOKEN = /(\\\*\\\*|\*\*)/;
|
|
10
10
|
const ESCAPED = '\\*\\*';
|
|
@@ -81,7 +81,7 @@ class TooltipPanelComponent {
|
|
|
81
81
|
<span [textContent]="segment.text"></span>
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`, isInline: true, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--surface-secondary: var(--surface-overlay-raised-secondary);--surface-muted: var(--surface-overlay-raised-muted);--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--
|
|
84
|
+
`, isInline: true, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--surface-secondary: var(--surface-overlay-raised-secondary);--surface-muted: var(--surface-overlay-raised-muted);--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_overlay-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_overlay-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}:host:after{content:\"\";box-sizing:border-box;position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
85
85
|
}
|
|
86
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TooltipPanelComponent, decorators: [{
|
|
87
87
|
type: Component,
|
|
@@ -105,7 +105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
105
105
|
'[class.left]': "placement() === 'left'",
|
|
106
106
|
'[class.right]': "placement() === 'right'",
|
|
107
107
|
'[class.no-arrow]': '!arrow()',
|
|
108
|
-
}, encapsulation: ViewEncapsulation.Emulated, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--surface-secondary: var(--surface-overlay-raised-secondary);--surface-muted: var(--surface-overlay-raised-muted);--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--
|
|
108
|
+
}, encapsulation: ViewEncapsulation.Emulated, styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_tooltip-bg-color: var(--ds-tooltip-bg-color, var(--tooltip-bg-color));--_tooltip-text-color: var(--ds-tooltip-text-color, var(--tooltip-text-color));--_tooltip-border-color: var(--ds-tooltip-border-color, var(--tooltip-border-color));--surface-secondary: var(--surface-overlay-raised-secondary);--surface-muted: var(--surface-overlay-raised-muted);--_tooltip-radius: var(--ds-tooltip-radius, var(--ds-radius-control));--_tooltip-shadow: var(--ds-tooltip-shadow, var(--ds-elevation-overlay));--_tooltip-max-width: var(--ds-tooltip-max-width, var(--tooltip-maxw));--_tooltip-padding: var(--ds-tooltip-padding, var(--space-1-5) var(--space-2-5));--_tooltip-arrow-inset: calc(var(--_tooltip-radius) + var(--tooltip-arrow));--_tooltip-arrow-left: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_overlay-arrow-x, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));--_tooltip-arrow-top: clamp(min(var(--_tooltip-arrow-inset), 50%), var(--_overlay-arrow-y, 50%), max(100% - var(--_tooltip-arrow-inset), 50%));display:block;position:relative;background:var(--_tooltip-bg-color);color:var(--_tooltip-text-color);border:var(--border-width-default) solid var(--_tooltip-border-color);font:var(--font-weight-medium) var(--font-size-xs)/var(--line-height-base) var(--font-sans);padding:var(--_tooltip-padding);border-radius:var(--_tooltip-radius);max-width:var(--_tooltip-max-width);overflow-wrap:anywhere;white-space:pre-line;z-index:var(--layer-tooltip);box-shadow:var(--_tooltip-shadow)}:host strong{font-weight:var(--font-weight-bold)}:host:after{content:\"\";box-sizing:border-box;position:absolute;width:var(--space-2);height:var(--space-2);background:var(--_tooltip-bg-color);border:0 solid var(--_tooltip-border-color);transform:rotate(45deg)}:host(.no-arrow):after{display:none}:host(.bottom):after{top:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-left-width:var(--border-width-default)}:host(.top):after{bottom:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));left:var(--_tooltip-arrow-left);margin-left:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.left):after{right:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-top-width:var(--border-width-default);border-right-width:var(--border-width-default)}:host(.right):after{left:calc(var(--tooltip-arrow) / -2 - var(--border-width-default));top:var(--_tooltip-arrow-top);margin-top:calc(var(--tooltip-arrow) / -2);border-bottom-width:var(--border-width-default);border-left-width:var(--border-width-default)}\n"] }]
|
|
109
109
|
}], ctorParameters: () => [], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: false }] }], panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }] } });
|
|
110
110
|
|
|
111
111
|
const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';
|
|
@@ -347,21 +347,6 @@ function positionFor(placement) {
|
|
|
347
347
|
function positionsFor(placement) {
|
|
348
348
|
return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];
|
|
349
349
|
}
|
|
350
|
-
// positionChanges skips a re-apply that only pushes the pane; the styles CDK writes do not.
|
|
351
|
-
// The pane is measured, not the panel: the panel's enter animation scales it.
|
|
352
|
-
function pointArrowAtHost(ref, panel, host) {
|
|
353
|
-
const pane = ref.overlayElement;
|
|
354
|
-
const point = () => {
|
|
355
|
-
const trigger = host.getBoundingClientRect();
|
|
356
|
-
const box = pane.getBoundingClientRect();
|
|
357
|
-
panel.style.setProperty('--_tooltip-arrow-x', `${trigger.left + trigger.width / 2 - box.left - panel.clientLeft}px`);
|
|
358
|
-
panel.style.setProperty('--_tooltip-arrow-y', `${trigger.top + trigger.height / 2 - box.top - panel.clientTop}px`);
|
|
359
|
-
};
|
|
360
|
-
const observer = new MutationObserver(point);
|
|
361
|
-
observer.observe(ref.hostElement, { attributeFilter: ['style'] });
|
|
362
|
-
observer.observe(pane, { attributeFilter: ['style'] });
|
|
363
|
-
ref.detachments().subscribe({ complete: () => observer.disconnect() });
|
|
364
|
-
}
|
|
365
350
|
|
|
366
351
|
const toOptionalBoolean = (value) => value == null ? null : booleanAttribute(value);
|
|
367
352
|
const PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';
|
|
@@ -638,7 +623,7 @@ ${given}`;
|
|
|
638
623
|
cmpRef.setInput('text', tip);
|
|
639
624
|
cmpRef.setInput('placement', placement);
|
|
640
625
|
cmpRef.setInput('arrow', this.arrow());
|
|
641
|
-
positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair
|
|
626
|
+
positionStrategy.positionChanges.subscribe(({ connectionPair }) => cmpRef.setInput('placement', overlayPlacementOf(connectionPair)));
|
|
642
627
|
cmpRef.setInput('panelId', this.tipId);
|
|
643
628
|
pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);
|
|
644
629
|
this.ref.detachments().subscribe(() => this.unpin?.());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport {\n retainStyles,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n\n constructor() {\n retainStyles(TooltipPanelComponent);\n }\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\n// Any other tab stop (a scroll region, a panel) opens nothing unless it opts in with dsTooltipAncestor.\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}, [dsTooltipAncestor]`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\nlet resizedNextFrame: Set<Node> | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n// A tabindex written inside the ResizeObserver callback makes Firefox report \"ResizeObserver loop\n// completed with undelivered notifications\" for hosts under `content-visibility: auto`.\nfunction syncResizedNextFrame(targets: Node[]): void {\n if (!resizedNextFrame) {\n resizedNextFrame = new Set();\n requestAnimationFrame(() => {\n const resized = [...(resizedNextFrame ?? [])];\n resizedNextFrame = null;\n syncAll(resized);\n });\n }\n targets.forEach((target) => resizedNextFrame?.add(target));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncResizedNextFrame(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n if (element === null) {\n return false;\n }\n\n return isTextClipped(element) || isClippedByLines(element);\n}\n\n// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow\n// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.\nfunction isClippedByLines(element: HTMLElement): boolean {\n if (element.scrollHeight <= element.clientHeight + 1) {\n return false;\n }\n const overflow = getComputedStyle(element).overflowY;\n\n return overflow === 'hidden' || overflow === 'clip';\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { OverlayRef } from '@angular/cdk/overlay';\nimport type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/core';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n\n// positionChanges skips a re-apply that only pushes the pane; the styles CDK writes do not.\n// The pane is measured, not the panel: the panel's enter animation scales it.\nexport function pointArrowAtHost(\n ref: OverlayRef,\n panel: HTMLElement,\n host: HTMLElement,\n): void {\n const pane = ref.overlayElement;\n const point = () => {\n const trigger = host.getBoundingClientRect();\n const box = pane.getBoundingClientRect();\n panel.style.setProperty(\n '--_tooltip-arrow-x',\n `${trigger.left + trigger.width / 2 - box.left - panel.clientLeft}px`,\n );\n panel.style.setProperty(\n '--_tooltip-arrow-y',\n `${trigger.top + trigger.height / 2 - box.top - panel.clientTop}px`,\n );\n };\n const observer = new MutationObserver(point);\n observer.observe(ref.hostElement, { attributeFilter: ['style'] });\n observer.observe(pane, { attributeFilter: ['style'] });\n ref.detachments().subscribe({ complete: () => observer.disconnect() });\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n VIEWPORT_MARGIN_PX,\n pointArrowAtHost,\n positionsFor,\n} from './tooltip-position';\nimport {\n DS_CONFIG,\n type DsConfig,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsTooltipConfig } from './tooltip.types';\n\ntype TooltipOptions = NonNullable<DsConfig['tooltip']>;\n\nconst toOptionalBoolean = (value: unknown): boolean | null =>\n value == null ? null : booleanAttribute(value);\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(DS_CONFIG);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls\n * back to `DsConfig.tooltip`, then the built-in default. */\n readonly dsTooltipConfig = input<DsTooltipConfig | null>(null);\n /** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.\n * @deprecated Use `[dsTooltipConfig]=\"{ placement }\"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */\n readonly dsTooltipPlacement = input<TooltipPlacement | null>(null);\n /** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.\n * @deprecated Use `[dsTooltipConfig]=\"{ delay }\"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */\n readonly dsTooltipDelay = input<number | null>(null);\n /** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.\n * @deprecated Use `[dsTooltipConfig]=\"{ arrow }\"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */\n readonly dsTooltipArrow = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n /** Show the tip only while the host shows less text than it holds: cut by width, or by lines\n * under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.\n * Wins over `dsTooltipConfig.pinOnClick`.\n * @deprecated Use `[dsTooltipConfig]=\"{ pinOnClick: true }\"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */\n readonly dsTooltipPinOnClick = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n\n private readonly placement = this.resolve(\n this.dsTooltipPlacement,\n 'placement',\n 'top',\n );\n private readonly delay = this.resolve(this.dsTooltipDelay, 'delay', 120);\n private readonly arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);\n private readonly pinOnClick = this.resolve(\n this.dsTooltipPinOnClick,\n 'pinOnClick',\n false,\n );\n private readonly whenClipped = computed(\n () =>\n this.dsTooltipWhenClipped() ??\n toClipTarget(this.dsTooltipConfig()?.whenClipped),\n );\n\n private resolve<K extends keyof TooltipOptions>(\n deprecatedInput: Signal<TooltipOptions[K] | null>,\n key: K,\n fallback: NonNullable<TooltipOptions[K]>,\n ): Signal<NonNullable<TooltipOptions[K]>> {\n return computed(\n () =>\n deprecatedInput() ??\n this.dsTooltipConfig()?.[key] ??\n this.config.tooltip?.[key] ??\n fallback,\n );\n }\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.whenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.pinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(clipElement(this.hostElement, this.whenClipped()));\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.whenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.whenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.whenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const host = this.hostElement;\n if (\n this.whenClipped() &&\n host.matches(FOCUSABLE) &&\n (event.target !== host || !host.matches(':focus-visible'))\n ) {\n return;\n }\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.whenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.delay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.whenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.placement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.arrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput(\n 'placement',\n overlayPlacementOf(connectionPair.overlayY, connectionPair.overlayX),\n ),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAAG,IAAI;AAEjB;AACM,SAAU,kBAAkB,CAAC,IAAY,EAAA;IAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;AAChC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,CAAC,MAAM;IACnE,MAAM,aAAa,GAAG,WAAW,IAAI,WAAW,GAAG,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAqB,EAAE;IACrC,IAAI,IAAI,GAAG,KAAK;IAChB,IAAI,IAAI,GAAG,CAAC;AACZ,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,KAAK,GAAG,KAAK;AACjB,QAAA,IAAI,KAAK,KAAK,OAAO,EAAE;YACrB,KAAK,GAAG,IAAI;QACd;aAAO,IAAI,KAAK,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,aAAa,EAAE;YACnD,IAAI,GAAG,CAAC,IAAI;YACZ;QACF;QACA,IAAI,CAAC,KAAK,EAAE;YACV;QACF;QACA,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C,QAAA,IAAI,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE;AACvB,YAAA,IAAI,CAAC,IAAI,IAAI,KAAK;QACpB;aAAO;YACL,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACtC;IACF;A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,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,mBAAA,EAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,SAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAmLE,YAAY;uBAAC,YAAY;;sBAMzB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;sBAgBlC,YAAY;uBAAC,UAAU;;sBAyBvB,YAAY;uBAAC,YAAY;;sBAQzB,YAAY;uBAAC,OAAO;;sBAoEpB,YAAY;uBAAC,SAAS;;sBAOtB,YAAY;uBAAC,gBAAgB;;;AC9XhC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-tooltip.mjs","sources":["../../../src/lib/components/tooltip/tooltip-markup.ts","../../../src/lib/components/tooltip/tooltip-panel.component.ts","../../../src/lib/components/tooltip/tooltip-ancestor-focus.ts","../../../src/lib/components/tooltip/tooltip-clip.ts","../../../src/lib/components/tooltip/tooltip-position.ts","../../../src/lib/components/tooltip/tooltip.directive.ts","../../../src/lib/components/tooltip/ids-group-ltd-ids-design-system-components-tooltip.ts"],"sourcesContent":["export interface TooltipSegment {\n text: string;\n bold: boolean;\n}\n\nconst TOKEN = /(\\\\\\*\\\\\\*|\\*\\*)/;\nconst ESCAPED = '\\\\*\\\\*';\nconst BOLD = '**';\n\n/** Splits tip text on `**` into plain and bold runs. `\\*\\*` is a literal `**`; an unpaired `**` is literal too. */\nexport function parseTooltipMarkup(text: string): TooltipSegment[] {\n const tokens = text.split(TOKEN);\n const markerCount = tokens.filter((token) => token === BOLD).length;\n const pairedMarkers = markerCount - (markerCount % 2);\n const segments: TooltipSegment[] = [];\n let bold = false;\n let seen = 0;\n for (const token of tokens) {\n let piece = token;\n if (token === ESCAPED) {\n piece = BOLD;\n } else if (token === BOLD && seen++ < pairedMarkers) {\n bold = !bold;\n continue;\n }\n if (!piece) {\n continue;\n }\n const last = segments[segments.length - 1];\n if (last?.bold === bold) {\n last.text += piece;\n } else {\n segments.push({ text: piece, bold });\n }\n }\n\n return segments;\n}\n\nexport function escapeTooltipMarkup(text: string): string {\n return text.replaceAll(BOLD, ESCAPED);\n}\n\nexport function plainTooltipText(text: string): string {\n return parseTooltipMarkup(text)\n .map((segment) => segment.text)\n .join('');\n}\n","import {\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n} from '@angular/core';\nimport {\n retainStyles,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { parseTooltipMarkup } from './tooltip-markup';\n\n@Component({\n selector: 'ds-tooltip-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n @if (template(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n }\n\n @for (segment of segments(); track $index) {\n @if (segment.bold) {\n <strong [textContent]=\"segment.text\"></strong>\n } @else {\n <span [textContent]=\"segment.text\"></span>\n }\n }\n `,\n styleUrl: './tooltip-panel.component.scss',\n host: {\n role: 'tooltip',\n '[attr.id]': 'panelId()',\n '[class.top]': \"placement() === 'top'\",\n '[class.bottom]': \"placement() === 'bottom'\",\n '[class.left]': \"placement() === 'left'\",\n '[class.right]': \"placement() === 'right'\",\n '[class.no-arrow]': '!arrow()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class TooltipPanelComponent {\n /** Tooltip text, where `**bold**` runs render bold; or a template, rendered as given. */\n readonly text = input.required<string | TemplateRef<unknown>>();\n protected readonly template = computed(() => {\n const text = this.text();\n\n return text instanceof TemplateRef ? text : null;\n });\n protected readonly segments = computed(() => {\n const text = this.text();\n\n return typeof text === 'string' ? parseTooltipMarkup(text) : [];\n });\n /** Side of the trigger the panel is positioned on; also drives the arrow class. */\n readonly placement = input.required<TooltipPlacement>();\n /** Whether the arrow pointing at the trigger is drawn. */\n readonly arrow = input(true);\n /** Element `id`, referenced by the trigger's `aria-describedby`. */\n readonly panelId = input<string>('');\n\n constructor() {\n retainStyles(TooltipPanelComponent);\n }\n}\n","const NATIVELY_FOCUSABLE = 'a[href], button, input, select, textarea, summary';\nexport const FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]`;\nconst KEYBOARD_FOCUSABLE = `${NATIVELY_FOCUSABLE}, [tabindex]:not([tabindex^=\"-\"])`;\nconst WIDGET_ROLES = [\n 'button',\n 'link',\n 'tab',\n 'option',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n 'row',\n 'gridcell',\n 'combobox',\n 'checkbox',\n 'radio',\n 'switch',\n 'treeitem',\n]\n .map((role) => `[role=\"${role}\"]`)\n .join(', ');\n// Any other tab stop (a scroll region, a panel) opens nothing unless it opts in with dsTooltipAncestor.\nconst INTERACTIVE = `${NATIVELY_FOCUSABLE}, tr:not([role]), ${WIDGET_ROLES}, [dsTooltipAncestor]`;\n// A widget role owns its focus (a listbox moves it by `aria-activedescendant`), and a hidden subtree must hold no tab stop.\nconst REACHED_OR_HIDDEN = `${NATIVELY_FOCUSABLE}, tr[tabindex]:not([role]), ${WIDGET_ROLES}, [aria-hidden=\"true\"], [inert]`;\n\nexport interface AncestorFocusTrigger {\n readonly host: HTMLElement;\n isClipped(): boolean;\n openFor(ancestor: HTMLElement): void;\n close(): void;\n}\n\nconst clippedHostsByAncestor = new WeakMap<\n HTMLElement,\n Set<AncestorFocusTrigger>\n>();\n\nfunction firstClippedHost(\n triggers: Set<AncestorFocusTrigger>,\n): AncestorFocusTrigger | undefined {\n return [...triggers]\n .sort((a, b) =>\n a.host.compareDocumentPosition(b.host) & Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n )\n .find((trigger) => trigger.isClipped());\n}\n\n/**\n * A clipped host that is not focusable itself opens its tip when its focusable ancestor takes\n * keyboard focus. `:focus-visible` keeps a click from opening it. Only the first clipped host of\n * one ancestor opens. Returns the teardown, or null when the host needs no listening.\n */\nexport function watchFocusableAncestor(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE)) {\n return null;\n }\n const ancestor = host.parentElement?.closest<HTMLElement>(FOCUSABLE);\n if (!ancestor?.matches(INTERACTIVE)) {\n return null;\n }\n let triggers = clippedHostsByAncestor.get(ancestor);\n if (!triggers) {\n triggers = new Set();\n clippedHostsByAncestor.set(ancestor, triggers);\n }\n triggers.add(trigger);\n const open = (event: FocusEvent) => {\n if (\n event.target !== ancestor ||\n // Tested here, not at registration: a disabled trigger carries tabindex=\"-1\" until enabled.\n !ancestor.matches(KEYBOARD_FOCUSABLE) ||\n !ancestor.matches(':focus-visible') ||\n firstClippedHost(triggers) !== trigger\n ) {\n return;\n }\n trigger.openFor(ancestor);\n };\n const close = () => trigger.close();\n ancestor.addEventListener('focusin', open);\n ancestor.addEventListener('focusout', close);\n ancestor.addEventListener('click', close);\n ancestor.addEventListener('keydown', close);\n\n return () => {\n triggers.delete(trigger);\n ancestor.removeEventListener('focusin', open);\n ancestor.removeEventListener('focusout', close);\n ancestor.removeEventListener('click', close);\n ancestor.removeEventListener('keydown', close);\n };\n}\n\ninterface TabStopSync {\n isNeeded(): boolean;\n apply(needed: boolean): void;\n}\n\nconst tabStopSyncs = new Map<Node, TabStopSync>();\nlet resizes: ResizeObserver | null = null;\nlet mutations: MutationObserver | null = null;\nlet resizedNextFrame: Set<Node> | null = null;\n\nfunction syncOf(node: Node | null): TabStopSync | undefined {\n for (let current = node; current; current = current.parentElement) {\n const sync = tabStopSyncs.get(current);\n if (sync) {\n return sync;\n }\n }\n\n return undefined;\n}\n\n// Every isClipped() read forces layout once a tabindex write has dirtied it, so all reads go first.\nfunction syncAll(targets: Node[]): void {\n const syncs = [...new Set(targets.map(syncOf))].filter(\n (sync): sync is TabStopSync => sync !== undefined,\n );\n const decided = syncs.map((sync) => [sync, sync.isNeeded()] as const);\n decided.forEach(([sync, needed]) => sync.apply(needed));\n}\n\n// A tabindex written inside the ResizeObserver callback makes Firefox report \"ResizeObserver loop\n// completed with undelivered notifications\" for hosts under `content-visibility: auto`.\nfunction syncResizedNextFrame(targets: Node[]): void {\n if (!resizedNextFrame) {\n resizedNextFrame = new Set();\n requestAnimationFrame(() => {\n const resized = [...(resizedNextFrame ?? [])];\n resizedNextFrame = null;\n syncAll(resized);\n });\n }\n targets.forEach((target) => resizedNextFrame?.add(target));\n}\n\n/**\n * A clipped host that no keyboard path reaches - not focusable, inside no control or widget role,\n * holding no focusable descendant - takes `tabindex=\"0\"` while it is clipped, and loses it once its\n * text fits and it does not hold focus. A tabindex it did not write is never touched. One observer\n * pair serves every host. Returns the teardown, or null when the host is reached another way.\n */\nexport function tabStopWhileClipped(\n trigger: AncestorFocusTrigger,\n): (() => void) | null {\n const host = trigger.host;\n if (host.matches(FOCUSABLE) || host.closest(REACHED_OR_HIDDEN)) {\n return null;\n }\n let written = false;\n const isNeeded = () =>\n trigger.isClipped() && !host.querySelector(KEYBOARD_FOCUSABLE);\n const apply = (needed: boolean) => {\n if (needed && !host.hasAttribute('tabindex')) {\n host.setAttribute('tabindex', '0');\n written = true;\n } else if (\n !needed &&\n written &&\n host.ownerDocument.activeElement !== host\n ) {\n written = false;\n if (host.getAttribute('tabindex') === '0') {\n host.removeAttribute('tabindex');\n }\n }\n };\n const sync = () => apply(isNeeded());\n resizes ??= new ResizeObserver((entries) =>\n syncResizedNextFrame(entries.map((entry) => entry.target)),\n );\n mutations ??= new MutationObserver((records) =>\n syncAll(records.map((record) => record.target)),\n );\n tabStopSyncs.set(host, { isNeeded, apply });\n resizes.observe(host);\n mutations.observe(host, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n host.addEventListener('focusout', sync);\n\n return () => {\n tabStopSyncs.delete(host);\n resizes?.unobserve(host);\n host.removeEventListener('focusout', sync);\n };\n}\n","import { isTextClipped } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface TooltipClipTarget {\n readonly selector: string | null;\n}\n\n/**\n * `''`, `true` and `'true'` test the host itself; any other string is a selector for the element\n * inside the host to test; `false`, `'false'`, `null` and `undefined` turn the test off.\n */\nexport function toClipTarget(\n value: boolean | string | null | undefined,\n): TooltipClipTarget | null {\n if (value === true || value === '' || value === 'true') {\n return { selector: null };\n }\n\n return !value || value === 'false' ? null : { selector: value };\n}\n\nexport function clipElement(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): HTMLElement | null {\n return target?.selector\n ? host.querySelector<HTMLElement>(target.selector)\n : host;\n}\n\nexport function isHostClipped(\n host: HTMLElement,\n target: TooltipClipTarget | null,\n): boolean {\n const element = clipElement(host, target);\n if (element === null) {\n return false;\n }\n\n return isTextClipped(element) || isClippedByLines(element);\n}\n\n// A line clamp hides whole lines, so the block never overflows its width. Only hidden overflow\n// counts: text in a scroll box can still be reached. The pixel absorbs sub-pixel line heights.\nfunction isClippedByLines(element: HTMLElement): boolean {\n if (element.scrollHeight <= element.clientHeight + 1) {\n return false;\n }\n const overflow = getComputedStyle(element).overflowY;\n\n return overflow === 'hidden' || overflow === 'clip';\n}\n\nexport function ownTextOf(element: HTMLElement | null): string {\n return (element?.textContent ?? '').trim();\n}\n\nexport function textContains(haystack: string, needle: string): boolean {\n const collapse = (value: string) => value.replace(/\\s+/g, ' ').trim();\n\n return collapse(haystack).includes(collapse(needle));\n}\n","import type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/core';\n\nconst TRIGGER_GAP_PX = 8;\nexport const VIEWPORT_MARGIN_PX = 8;\nconst OPPOSITE_PLACEMENT: Record<TooltipPlacement, TooltipPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nfunction positionFor(placement: TooltipPlacement) {\n switch (placement) {\n case 'top':\n return {\n originX: 'center' as const,\n originY: 'top' as const,\n overlayX: 'center' as const,\n overlayY: 'bottom' as const,\n offsetY: -TRIGGER_GAP_PX,\n };\n case 'bottom':\n return {\n originX: 'center' as const,\n originY: 'bottom' as const,\n overlayX: 'center' as const,\n overlayY: 'top' as const,\n offsetY: TRIGGER_GAP_PX,\n };\n case 'left':\n return {\n originX: 'start' as const,\n originY: 'center' as const,\n overlayX: 'end' as const,\n overlayY: 'center' as const,\n offsetX: -TRIGGER_GAP_PX,\n };\n case 'right':\n return {\n originX: 'end' as const,\n originY: 'center' as const,\n overlayX: 'start' as const,\n overlayY: 'center' as const,\n offsetX: TRIGGER_GAP_PX,\n };\n }\n}\n\nexport function positionsFor(placement: TooltipPlacement) {\n return [positionFor(placement), positionFor(OPPOSITE_PLACEMENT[placement])];\n}\n","import {\n DOCUMENT,\n Directive,\n ElementRef,\n HostListener,\n InjectionToken,\n OnDestroy,\n Signal,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { TooltipPanelComponent } from './tooltip-panel.component';\nimport { escapeTooltipMarkup, plainTooltipText } from './tooltip-markup';\nimport {\n FOCUSABLE,\n tabStopWhileClipped,\n watchFocusableAncestor,\n type AncestorFocusTrigger,\n} from './tooltip-ancestor-focus';\nimport {\n clipElement,\n isHostClipped,\n ownTextOf,\n textContains,\n toClipTarget,\n type TooltipClipTarget,\n} from './tooltip-clip';\nimport {\n closeOnScroll,\n listenForEscape,\n overlayPlacementOf,\n pointArrowAtHost,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { VIEWPORT_MARGIN_PX, positionsFor } from './tooltip-position';\nimport {\n DS_CONFIG,\n type DsConfig,\n type TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsTooltipConfig } from './tooltip.types';\n\ntype TooltipOptions = NonNullable<DsConfig['tooltip']>;\n\nconst toOptionalBoolean = (value: unknown): boolean | null =>\n value == null ? null : booleanAttribute(value);\n\nconst PINNED_ATTRIBUTE = 'data-ds-tooltip-pinned';\n\nlet nextId = 0;\n\n/** @internal Lets a component that hosts the tooltip make a clipped host lead the tip with its own text. */\nexport const TOOLTIP_LEADS_WITH_OWN_TEXT = new InjectionToken<boolean>(\n 'TOOLTIP_LEADS_WITH_OWN_TEXT',\n);\n\n/** @internal Lets a component that hosts the tooltip decide `dsTooltipPinOnClick` for it. */\nexport const TOOLTIP_PIN_ON_CLICK = new InjectionToken<Signal<boolean>>(\n 'TOOLTIP_PIN_ON_CLICK',\n);\n\n@Directive({\n selector: '[dsTooltip], [dsTooltipWhenClipped]',\n standalone: true,\n})\nexport class TooltipDirective implements OnDestroy {\n private readonly overlay = inject(Overlay);\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n private readonly config = inject(DS_CONFIG);\n private readonly hostPinOnClick = inject(TOOLTIP_PIN_ON_CLICK, {\n self: true,\n optional: true,\n });\n private readonly leadsWithOwnText =\n inject(TOOLTIP_LEADS_WITH_OWN_TEXT, { self: true, optional: true }) ??\n false;\n\n /** Tip text, or a template the panel renders as given. An empty string turns the tooltip off.\n * Keep a template's content non-interactive: the panel is `role=\"tooltip\"` and never takes focus. */\n readonly dsTooltip = input<string | TemplateRef<unknown>>('');\n /** Placement, delay, arrow, pin-on-click and the clipped test for this tip. An unset field falls\n * back to `DsConfig.tooltip`, then the built-in default. */\n readonly dsTooltipConfig = input<DsTooltipConfig | null>(null);\n /** Which side the tip opens on. Wins over `dsTooltipConfig.placement`.\n * @deprecated Use `[dsTooltipConfig]=\"{ placement }\"`, or `provideDsConfig({ tooltip: { placement } })` app-wide. */\n readonly dsTooltipPlacement = input<TooltipPlacement | null>(null);\n /** Milliseconds before the tip appears. Wins over `dsTooltipConfig.delay`.\n * @deprecated Use `[dsTooltipConfig]=\"{ delay }\"`, or `provideDsConfig({ tooltip: { delay } })` app-wide. */\n readonly dsTooltipDelay = input<number | null>(null);\n /** Draws the arrow that points at the host. Wins over `dsTooltipConfig.arrow`.\n * @deprecated Use `[dsTooltipConfig]=\"{ arrow }\"`, or `provideDsConfig({ tooltip: { arrow } })` app-wide. */\n readonly dsTooltipArrow = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n /** Show the tip only while the host shows less text than it holds: cut by width, or by lines\n * under `overflow: hidden` or `clip`, as with `line-clamp`. Re-tested on every open.\n * A boolean or the bare attribute tests the host. A selector tests the element it matches inside\n * the host and discloses that element's text; while nothing matches, no clipped tip opens.\n *\n * Applies the tooltip on its own: without a `dsTooltip` the tested text is disclosed. A tip\n * whose text the host already contains sets no `aria-describedby`; one given a `dsTooltip`\n * that says more than the host does describes it as usual.\n *\n * Keyboard focus opens it too: on the host, on a control or widget around it, or on a control\n * inside it. A clipped host that none of these reaches takes `tabindex=\"0\"` while it is clipped. */\n readonly dsTooltipWhenClipped = input<\n TooltipClipTarget | null,\n boolean | string | null | undefined\n >(null, { transform: toClipTarget });\n\n /** Opens the tip with no delay, and a click on the host keeps it open after the pointer leaves\n * until a click outside, `Escape` or blur; a second click closes it. Without it a click closes the tip.\n * While pinned the host carries `data-ds-tooltip-pinned`, a hook for styling the pinned trigger.\n * Wins over `dsTooltipConfig.pinOnClick`.\n * @deprecated Use `[dsTooltipConfig]=\"{ pinOnClick: true }\"`, or `provideDsConfig({ tooltip: { pinOnClick } })` app-wide. */\n readonly dsTooltipPinOnClick = input<boolean | null, unknown>(null, {\n transform: toOptionalBoolean,\n });\n\n private readonly placement = this.resolve(\n this.dsTooltipPlacement,\n 'placement',\n 'top',\n );\n private readonly delay = this.resolve(this.dsTooltipDelay, 'delay', 120);\n private readonly arrow = this.resolve(this.dsTooltipArrow, 'arrow', true);\n private readonly pinOnClick = this.resolve(\n this.dsTooltipPinOnClick,\n 'pinOnClick',\n false,\n );\n private readonly whenClipped = computed(\n () =>\n this.dsTooltipWhenClipped() ??\n toClipTarget(this.dsTooltipConfig()?.whenClipped),\n );\n\n private resolve<K extends keyof TooltipOptions>(\n deprecatedInput: Signal<TooltipOptions[K] | null>,\n key: K,\n fallback: NonNullable<TooltipOptions[K]>,\n ): Signal<NonNullable<TooltipOptions[K]>> {\n return computed(\n () =>\n deprecatedInput() ??\n this.dsTooltipConfig()?.[key] ??\n this.config.tooltip?.[key] ??\n fallback,\n );\n }\n\n private isClipped(): boolean {\n return isHostClipped(this.hostElement, this.whenClipped());\n }\n\n private get hostElement(): HTMLElement {\n return this.host.nativeElement;\n }\n\n private pinsOnClick(): boolean {\n return this.hostPinOnClick?.() ?? this.pinOnClick();\n }\n\n private ownText(): string {\n return ownTextOf(clipElement(this.hostElement, this.whenClipped()));\n }\n\n /** A host that leads with its own text puts it, in bold, above the tip while it is clipped, unless the tip already says it. */\n private tipContent(): string | TemplateRef<unknown> {\n const given = this.dsTooltip();\n if (given instanceof TemplateRef) {\n return given;\n }\n const own = this.ownText();\n if (!given) {\n return this.whenClipped() ? escapeTooltipMarkup(own) : '';\n }\n if (\n this.leadsWithOwnText &&\n own &&\n this.isClipped() &&\n !textContains(plainTooltipText(given), own)\n ) {\n return `**${escapeTooltipMarkup(own)}**\n${given}`;\n }\n\n return given;\n }\n\n /** A clipped host's full text is already in the DOM; describing it again would announce it twice. */\n private disclosesOwnText(text: string): boolean {\n if (!this.whenClipped()) {\n return false;\n }\n\n return textContains(this.ownText(), plainTooltipText(text));\n }\n\n private ref: OverlayRef | null = null;\n private timer: number | null = null;\n private unpin: (() => void) | null = null;\n private readonly tipId = `ds-tooltip-${++nextId}`;\n\n /**\n * Where `aria-describedby` belongs when focus is involved: a non-focusable host\n * (`ds-menu-item` is `role=\"none\"` around a real `<button>`) never reaches a screen\n * reader, so `focusin`'s target is recorded. A pointer-only open leaves it null.\n */\n private focusedTarget: HTMLElement | null = null;\n\n /**\n * Where `aria-describedby` was written, so teardown strips it from the same element\n * even if focus moved `focusedTarget` after the panel opened.\n */\n private describedElement: HTMLElement | null = null;\n\n private detachAncestor: (() => void) | null = null;\n\n private readonly ancestorFocusTrigger: AncestorFocusTrigger = {\n host: this.hostElement,\n isClipped: () => this.isClipped(),\n openFor: (ancestor) => {\n this.focusedTarget = ancestor;\n this.scheduleShow();\n },\n close: () => {\n this.focusedTarget = null;\n this.onClose();\n },\n };\n\n constructor() {\n afterNextRender(() => {\n if (this.whenClipped()) {\n this.detachAncestor =\n watchFocusableAncestor(this.ancestorFocusTrigger) ??\n tabStopWhileClipped(this.ancestorFocusTrigger);\n }\n });\n }\n\n @HostListener('mouseenter')\n protected onPointerEnter(): void {\n this.scheduleShow();\n }\n\n // Same rule as via a focusable ancestor: keyboard focus opens, a click's focus does not.\n @HostListener('focusin', ['$event'])\n protected onFocusIn(event: FocusEvent): void {\n const host = this.hostElement;\n if (\n this.whenClipped() &&\n host.matches(FOCUSABLE) &&\n (event.target !== host || !host.matches(':focus-visible'))\n ) {\n return;\n }\n if (event.target instanceof HTMLElement) {\n this.focusedTarget = event.target;\n }\n this.scheduleShow();\n }\n\n @HostListener('focusout')\n protected onFocusOut(): void {\n this.focusedTarget = null;\n this.onClose();\n }\n\n private scheduleShow(): void {\n if (this.unpin || !this.tipContent()) {\n return;\n }\n if (this.pinsOnClick() && this.ref?.hasAttached()) {\n return;\n }\n if (this.whenClipped() && !this.isClipped()) {\n return;\n }\n if (this.timer !== null) {\n clearTimeout(this.timer);\n }\n this.timer = window.setTimeout(\n () => this.show(),\n this.pinsOnClick() ? 0 : this.delay(),\n );\n }\n\n @HostListener('mouseleave')\n protected onPointerLeave(): void {\n if (!this.unpin) {\n this.onClose();\n }\n }\n\n // Close on click too: a re-rendered anchor under a stationary cursor fires no mouseleave.\n @HostListener('click')\n protected onClick(): void {\n if (this.pinsOnClick() && !this.unpin) {\n this.pin();\n } else {\n this.onClose();\n }\n }\n\n protected onClose(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n this.unpin?.();\n this.disposeRef();\n }\n\n private pin(): void {\n if (this.timer !== null) {\n clearTimeout(this.timer);\n this.timer = null;\n }\n if (!this.ref?.hasAttached()) {\n if (!this.tipContent()) {\n return;\n }\n this.show();\n }\n const closeOutside = (event: Event) => {\n const target = event.target as Node;\n if (\n !this.hostElement.contains(target) &&\n !this.ref?.overlayElement.contains(target)\n ) {\n this.onClose();\n }\n };\n this.document.addEventListener('pointerdown', closeOutside, true);\n const stopEscape = listenForEscape(this.document, () => this.onClose());\n this.hostElement.setAttribute(PINNED_ATTRIBUTE, '');\n this.unpin = () => {\n this.unpin = null;\n this.hostElement.removeAttribute(PINNED_ATTRIBUTE);\n this.document.removeEventListener('pointerdown', closeOutside, true);\n stopEscape();\n };\n }\n\n private disposeRef(): void {\n this.ref?.dispose();\n this.ref = null;\n const described = this.describedElement;\n if (!described) {\n return;\n }\n this.describedElement = null;\n const remaining = (described.getAttribute('aria-describedby') ?? '')\n .split(' ')\n .filter((id: string) => id && id !== this.tipId)\n .join(' ');\n if (remaining) {\n described.setAttribute('aria-describedby', remaining);\n } else {\n described.removeAttribute('aria-describedby');\n }\n }\n\n @HostListener('keydown')\n protected onKeydown(): void {\n if (this.whenClipped()) {\n this.onClose();\n }\n }\n\n @HostListener('keydown.escape')\n protected onEscape(): void {\n if (this.ref) {\n this.onClose();\n }\n }\n\n private show(): void {\n // show() can be re-entered with a panel open: dispose it first to avoid a leaked OverlayRef and a duplicate id.\n this.disposeRef();\n const placement = this.placement();\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(positionsFor(placement))\n .withViewportMargin(VIEWPORT_MARGIN_PX);\n\n this.ref = this.overlay.create({\n positionStrategy,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.close(),\n });\n prepareOverlayEnter(this.ref, this.host.nativeElement, positionStrategy);\n // The CDK strategy sees only the window and cdkScrollable ancestors, not a plain overflow container.\n const stopScrollClose = closeOnScroll(this.ref, () => this.onClose());\n this.ref.detachments().subscribe(stopScrollClose);\n\n const cmpRef = this.ref.attach(new ComponentPortal(TooltipPanelComponent));\n const tip = this.tipContent();\n cmpRef.setInput('text', tip);\n cmpRef.setInput('placement', placement);\n cmpRef.setInput('arrow', this.arrow());\n positionStrategy.positionChanges.subscribe(({ connectionPair }) =>\n cmpRef.setInput('placement', overlayPlacementOf(connectionPair)),\n );\n cmpRef.setInput('panelId', this.tipId);\n pointArrowAtHost(this.ref, cmpRef.location.nativeElement, this.hostElement);\n this.ref.detachments().subscribe(() => this.unpin?.());\n if (typeof tip === 'string' && this.disclosesOwnText(tip)) {\n return;\n }\n const described = this.focusedTarget ?? this.host.nativeElement;\n this.describedElement = described;\n const existing = described.getAttribute('aria-describedby');\n described.setAttribute(\n 'aria-describedby',\n existing ? `${existing} ${this.tipId}` : this.tipId,\n );\n }\n\n ngOnDestroy(): void {\n this.detachAncestor?.();\n this.onClose();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,KAAK,GAAG,iBAAiB;AAC/B,MAAM,OAAO,GAAG,QAAQ;AACxB,MAAM,IAAI,GAAG,IAAI;AAEjB;AACM,SAAU,kBAAkB,CAAC,IAAY,EAAA;IAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;AAChC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,CAAC,MAAM;IACnE,MAAM,aAAa,GAAG,WAAW,IAAI,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