@ids-group-ltd/ids-design-system 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +755 -0
- package/agent/INDEX.md +8 -7
- package/agent/charts/ds-scatter-chart.md +1 -1
- package/agent/feedback/ds-badge.md +2 -2
- package/agent/feedback/ds-chat-message.md +1 -1
- package/agent/feedback/ds-chat-step.md +2 -2
- package/agent/feedback/ds-chat-thread.md +1 -1
- package/agent/feedback/ds-stat.md +1 -1
- package/agent/feedback/ds-toast.md +2 -2
- package/agent/feedback/ds-tree.md +1 -1
- package/agent/forms/ds-button.md +3 -3
- package/agent/forms/ds-dropzone.md +1 -1
- package/agent/forms/ds-icon-button.md +3 -3
- package/agent/forms/ds-number-stepper.md +3 -3
- package/agent/forms/ds-search.md +1 -1
- package/agent/forms/ds-split-button.md +1 -1
- package/agent/foundations/tokens.md +4 -3
- package/agent/navigation/ds-app-layout.md +1 -1
- package/agent/navigation/ds-nav-divider.md +6 -0
- package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
- package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
- package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
- package/agent/navigation/ds-nav.md +15 -0
- package/agent/overlays/ds-drawer.md +1 -1
- package/agent/platform/toast-service.md +1 -1
- package/components/README.md +24 -24
- package/components.md +51 -45
- package/design-system.md +8 -7
- package/eslint/deprecated-api.json +108 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- 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 +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-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-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.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-breadcrumbs.mjs +5 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- 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-chart-tooltip.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +77 -18
- 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-definition-term.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.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-funnel-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.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-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
- 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-nav-footer.mjs +113 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
- 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-pagination.mjs +36 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
- 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-reveal.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
- 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 +33 -6
- 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-sidenav-footer.mjs +4 -98
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.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-tabs.mjs +41 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
- 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 +4 -4
- 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 +27 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.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 +8 -7
- 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 +21 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +11 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/1.1.1.json +14 -4
- package/migrations/1.1.2.json +11 -3
- package/migrations/1.2.0.json +1433 -0
- package/migrations/README.md +8 -1
- package/package.json +25 -1
- package/schematics/check-overrides/index.cjs +28 -3
- package/schematics/check-overrides/scan.cjs +151 -2
- package/schematics/check-overrides/schema.json +4 -0
- package/schematics/check-overrides/surface.json +389 -74
- package/schematics/collection.json +1 -1
- package/stylelint/deprecated-tokens.json +7 -0
- package/styles/_check-box.scss +4 -3
- package/styles/_dropdown-overlay.scss +6 -8
- package/styles/_ds-color.scss +7 -2
- package/styles/_field-state.scss +4 -2
- package/styles/_focus.scss +12 -5
- package/styles/_link.scss +4 -4
- package/styles/_optical-center.scss +29 -0
- package/styles/_reveal.scss +8 -0
- package/styles/_status.scss +17 -7
- package/styles/_step-marker.scss +192 -6
- package/styles/_surface-level.scss +16 -0
- package/styles/_text-shimmer.scss +21 -0
- package/styles/_theme-activation.scss +17 -4
- package/styles/_tokens.scss +26 -7
- package/styles/ds.scss +1 -0
- package/themes/README.md +16 -21
- package/themes/_semantic.scss +129 -64
- package/themes/dark/_theme.scss +17 -25
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +49 -4
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
- package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
- package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +9 -5
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +7 -4
- package/agent/navigation/ds-sidenav.md +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
-
import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
3
|
+
import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/nav';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Scaffold for the UNauthenticated screens (sign-in, forgot password, reset,
|
|
@@ -9,7 +9,7 @@ import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
|
9
9
|
* The host is the ONLY full-height box (a nested `100vh` wrapper would scroll a
|
|
10
10
|
* page whose content fits) and carries the safe-area insets.
|
|
11
11
|
*
|
|
12
|
-
* The brand row takes the same CONTRACT as `ds-
|
|
12
|
+
* The brand row takes the same CONTRACT as `ds-nav`: a `brand` string gets a
|
|
13
13
|
* letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`
|
|
14
14
|
* projects a two-tone wordmark (import `BrandNameDirective` alongside this
|
|
15
15
|
* component, or the attribute is inert and the wordmark lands in the card), and
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
type BadgeAppearance = 'default' | 'lozenge';
|
|
3
6
|
|
|
4
7
|
declare class BadgeComponent {
|
|
5
8
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
@@ -11,6 +14,13 @@ declare class BadgeComponent {
|
|
|
11
14
|
readonly withDotResolved: _angular_core.Signal<boolean>;
|
|
12
15
|
/** Solid accent fill instead of the default subtle background. */
|
|
13
16
|
readonly solid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/** `'lozenge'` draws a status lozenge: a 1px border in the status border colour, 14px regular
|
|
18
|
+
* text, 2px 4px padding, 20px high, a 12px icon. `'default'` is the bold 12px badge. */
|
|
19
|
+
readonly appearance: _angular_core.InputSignal<BadgeAppearance>;
|
|
20
|
+
/** Leading icon, decorative: the label carries the meaning. Drawn in the status icon colour,
|
|
21
|
+
* 12px in the lozenge and 16px otherwise. Not shown while `count` is set. */
|
|
22
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
23
|
+
protected readonly iconSize: _angular_core.Signal<12 | 16>;
|
|
14
24
|
/** Numeric count to display; overrides projected content when set. */
|
|
15
25
|
readonly count: _angular_core.InputSignal<number | null>;
|
|
16
26
|
/** Counts above this show as `"max+"`. */
|
|
@@ -19,11 +29,20 @@ declare class BadgeComponent {
|
|
|
19
29
|
* Unset falls back to `DS_INTL.badge.noun`. */
|
|
20
30
|
readonly countLabel: _angular_core.InputSignal<string | null>;
|
|
21
31
|
readonly countLabelResolved: _angular_core.Signal<string>;
|
|
32
|
+
/** When `count` changes, the digits that change roll to the new value and the badge eases to its new width:
|
|
33
|
+
* a rise comes in from the top, a fall from the bottom. Off under `prefers-reduced-motion: reduce`.
|
|
34
|
+
* Unset falls back to `DS_CONFIG.badge.animateCount`, then `true`. */
|
|
35
|
+
readonly animateCount: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
36
|
+
readonly animateCountResolved: _angular_core.Signal<boolean>;
|
|
37
|
+
private readonly reducedMotion;
|
|
38
|
+
protected readonly rolls: _angular_core.Signal<boolean>;
|
|
22
39
|
protected readonly countDisplay: _angular_core.Signal<string | null>;
|
|
23
40
|
protected readonly classes: _angular_core.Signal<string>;
|
|
24
41
|
protected readonly countAriaLabel: _angular_core.Signal<string | null>;
|
|
42
|
+
private watchReducedMotion;
|
|
25
43
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
26
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ds-badge", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "withDot": { "alias": "withDot"; "required": false; "isSignal": true; }; "solid": { "alias": "solid"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ds-badge", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "withDot": { "alias": "withDot"; "required": false; "isSignal": true; }; "solid": { "alias": "solid"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; "animateCount": { "alias": "animateCount"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
45
|
}
|
|
28
46
|
|
|
29
47
|
export { BadgeComponent };
|
|
48
|
+
export type { BadgeAppearance };
|
|
@@ -6,7 +6,7 @@ import { Params, QueryParamsHandling, IsActiveMatchOptions } from '@angular/rout
|
|
|
6
6
|
import { DsSize, IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
7
7
|
|
|
8
8
|
type ButtonColor = 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning';
|
|
9
|
-
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'text';
|
|
9
|
+
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'surface' | 'text';
|
|
10
10
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
11
11
|
type ButtonAlign = 'center' | 'between';
|
|
12
12
|
type ButtonLoadingMode = 'auto' | 'icon' | 'replace';
|
|
@@ -46,9 +46,9 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
46
46
|
/** How `routerLinkActive` decides the `active` class; prefix by default. It also bounds the
|
|
47
47
|
* announcement: with `{ exact: true }` a prefix match announces nothing rather than `true`.
|
|
48
48
|
* Pass `ariaCurrent` alongside to keep one. */
|
|
49
|
-
readonly routerLinkActiveOptions: _angular_core.InputSignal<{
|
|
49
|
+
readonly routerLinkActiveOptions: _angular_core.InputSignal<IsActiveMatchOptions | {
|
|
50
50
|
exact: boolean;
|
|
51
|
-
}
|
|
51
|
+
}>;
|
|
52
52
|
/** Overrides what the link announces. Unset, an exact match announces `page` and a prefix match
|
|
53
53
|
* `true`; `null` announces nothing; use `step` or `location` when the link is not a page. */
|
|
54
54
|
readonly ariaCurrent: _angular_core.InputSignal<DsAriaCurrent | null | undefined>;
|
|
@@ -95,6 +95,9 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
95
95
|
protected readonly destination: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsDestination>;
|
|
96
96
|
protected readonly linkModifiers: _angular_core.Signal<DsLinkModifiers>;
|
|
97
97
|
protected readonly ariaCurrentResolved: _angular_core.Signal<DsAriaCurrent | undefined>;
|
|
98
|
+
private readonly successText;
|
|
99
|
+
private successTimer;
|
|
100
|
+
protected readonly successLabel: _angular_core.Signal<string | null>;
|
|
98
101
|
protected readonly classes: _angular_core.Signal<string>;
|
|
99
102
|
protected readonly loadingIconSlot: _angular_core.Signal<"leading" | "trailing" | null>;
|
|
100
103
|
protected readonly softDisabled: _angular_core.Signal<boolean>;
|
|
@@ -105,7 +108,15 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
105
108
|
protected readonly hasMessageRow: _angular_core.Signal<boolean>;
|
|
106
109
|
private readonly fieldMessage;
|
|
107
110
|
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
111
|
+
private readonly injector;
|
|
112
|
+
private readonly tweenTarget;
|
|
113
|
+
private widthTween;
|
|
108
114
|
constructor();
|
|
115
|
+
/** Shows a check and `label` in the success colour for 1.5 s, and announces `label` politely. Call
|
|
116
|
+
* it once the work behind `loading` has succeeded; the button then returns to its own label. A
|
|
117
|
+
* second call restarts the 1.5 s, and `loading` hides it at once. */
|
|
118
|
+
showSuccess(label: string): void;
|
|
119
|
+
private tweenWidth;
|
|
109
120
|
protected onClick(event: MouseEvent): void;
|
|
110
121
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
111
122
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ds-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "fragment": { "alias": "fragment"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingMode": { "alias": "loadingMode"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*", "[dsButtonSubtext]"], true, never>;
|
|
@@ -115,6 +115,8 @@ declare class ChatMessageComponent {
|
|
|
115
115
|
stepWaiting: string;
|
|
116
116
|
stepFailed: string;
|
|
117
117
|
stepDetails: (heading: string) => string;
|
|
118
|
+
stepElapsed: (seconds: number) => string;
|
|
119
|
+
stepRetry: string;
|
|
118
120
|
}>;
|
|
119
121
|
protected readonly noticeIcon: _angular_core.Signal<IconName | null>;
|
|
120
122
|
protected readonly speaker: _angular_core.Signal<string>;
|
|
@@ -249,7 +251,8 @@ declare class ChatStepsComponent {
|
|
|
249
251
|
/**
|
|
250
252
|
* One step of an agent's work inside `ds-chat-steps`: a marker for its `status`, the heading, and
|
|
251
253
|
* optional content under it (such as Approve buttons on a `waiting` step). Slots: `[trailing]` at the
|
|
252
|
-
* end of the heading row (Stop, Retry), `[details]` behind a chevron (the step's log)
|
|
254
|
+
* end of the heading row (Stop, Retry), `[details]` behind a chevron (the step's log), `[actions]` in a
|
|
255
|
+
* row under the details (the way out of a failed step, such as Fix connection).
|
|
253
256
|
*/
|
|
254
257
|
declare class ChatStepComponent {
|
|
255
258
|
/** What the step does, such as "Run the build". */
|
|
@@ -258,8 +261,17 @@ declare class ChatStepComponent {
|
|
|
258
261
|
readonly time: _angular_core.InputSignal<string>;
|
|
259
262
|
/** Where the step is: draws the marker and is spoken before the heading. */
|
|
260
263
|
readonly status: _angular_core.InputSignal<ChatStepStatus | null>;
|
|
264
|
+
/** When the step started running, as a `Date`, an ISO string or epoch milliseconds. With it the
|
|
265
|
+
* heading row ends in the time the step has taken, counting up each second while it runs. */
|
|
266
|
+
readonly startedAt: _angular_core.InputSignal<string | number | Date | null>;
|
|
267
|
+
/** When the step finished. With `startedAt`, the heading row ends in the step's duration. */
|
|
268
|
+
readonly endedAt: _angular_core.InputSignal<string | number | Date | null>;
|
|
261
269
|
/** Whether the `[details]` area is open, two-way bound. */
|
|
262
270
|
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
271
|
+
/** A step with `status="error"` ends its `[actions]` row in a Retry button that emits `retry`. */
|
|
272
|
+
readonly retryable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
273
|
+
/** Retry was pressed on a failed `retryable` step. Run it again and move `status` to `'running'`. */
|
|
274
|
+
readonly retry: _angular_core.OutputEmitterRef<void>;
|
|
263
275
|
private readonly intl;
|
|
264
276
|
protected readonly steps: ChatStepsContract | null;
|
|
265
277
|
protected readonly detailsId: string;
|
|
@@ -267,17 +279,48 @@ declare class ChatStepComponent {
|
|
|
267
279
|
protected readonly shownStatus: _angular_core.WritableSignal<ChatStepStatus | null>;
|
|
268
280
|
private runningSince;
|
|
269
281
|
private settleTimer;
|
|
282
|
+
private readonly now;
|
|
283
|
+
private readonly startedAtMs;
|
|
284
|
+
private readonly endedAtMs;
|
|
285
|
+
private readonly ticking;
|
|
286
|
+
protected readonly settled: _angular_core.WritableSignal<boolean>;
|
|
270
287
|
constructor();
|
|
271
288
|
private show;
|
|
272
289
|
protected readonly isFirst: _angular_core.Signal<boolean>;
|
|
273
290
|
protected readonly isLast: _angular_core.Signal<boolean>;
|
|
274
|
-
protected readonly
|
|
275
|
-
|
|
291
|
+
protected readonly nodeIcons: _angular_core.Signal<readonly IconName[]>;
|
|
292
|
+
protected readonly wording: _angular_core.Signal<{
|
|
293
|
+
user: string;
|
|
294
|
+
assistant: string;
|
|
295
|
+
system: string;
|
|
296
|
+
thread: string;
|
|
297
|
+
working: string;
|
|
298
|
+
newMessages: (count: number) => string;
|
|
299
|
+
latest: string;
|
|
300
|
+
today: string;
|
|
301
|
+
yesterday: string;
|
|
302
|
+
sending: string;
|
|
303
|
+
sent: string;
|
|
304
|
+
notSent: string;
|
|
305
|
+
retry: string;
|
|
306
|
+
steps: (count: number) => string;
|
|
307
|
+
stepsFailed: (count: number) => string;
|
|
308
|
+
stepsFolded: (count: number, failed: number) => string;
|
|
309
|
+
stepDone: string;
|
|
310
|
+
stepRunning: string;
|
|
311
|
+
stepPending: string;
|
|
312
|
+
stepWaiting: string;
|
|
313
|
+
stepFailed: string;
|
|
314
|
+
stepDetails: (heading: string) => string;
|
|
315
|
+
stepElapsed: (seconds: number) => string;
|
|
316
|
+
stepRetry: string;
|
|
317
|
+
}>;
|
|
276
318
|
protected readonly statusLabel: _angular_core.Signal<string>;
|
|
319
|
+
protected readonly elapsed: _angular_core.Signal<string>;
|
|
277
320
|
protected readonly detailsLabel: _angular_core.Signal<string>;
|
|
278
321
|
protected toggle(): void;
|
|
279
322
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatStepComponent, never>;
|
|
280
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatStepComponent, "ds-chat-step", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "time": { "alias": "time"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[trailing]", "*", "[details]"], true, never>;
|
|
323
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatStepComponent, "ds-chat-step", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "time": { "alias": "time"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "startedAt": { "alias": "startedAt"; "required": false; "isSignal": true; }; "endedAt": { "alias": "endedAt"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "retryable": { "alias": "retryable"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; "retry": "retry"; }, never, ["[trailing]", "*", "[details]", "[actions]"], true, never>;
|
|
281
324
|
}
|
|
282
325
|
|
|
283
326
|
type ChatInputLayout = 'status-bar' | 'status-above' | 'split' | 'send-outside' | 'toolbar';
|
|
@@ -345,8 +388,10 @@ declare class ChatInputComponent {
|
|
|
345
388
|
protected readonly stopShown: _angular_core.Signal<boolean>;
|
|
346
389
|
protected readonly mainLabel: _angular_core.Signal<string>;
|
|
347
390
|
protected readonly mainIcon: _angular_core.Signal<"stop" | "list-plus" | "arrowUp">;
|
|
391
|
+
protected readonly iconSwaps: _angular_core.WritableSignal<boolean>;
|
|
348
392
|
protected readonly statusAbove: _angular_core.Signal<boolean>;
|
|
349
393
|
protected readonly statusText: _angular_core.Signal<string>;
|
|
394
|
+
constructor();
|
|
350
395
|
/** Emits `submitted` when `canSubmit`; for a send button rendered in the `[send]` slot. */
|
|
351
396
|
submit(): void;
|
|
352
397
|
private queue;
|
|
@@ -19,8 +19,16 @@ declare class DrawerComponent implements OnDestroy {
|
|
|
19
19
|
readonly placement: _angular_core.InputSignal<DrawerPlacement>;
|
|
20
20
|
/** Drawer title, shown in the header and used for `aria-labelledby`. */
|
|
21
21
|
readonly title: _angular_core.InputSignal<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Leaves the scrim clear over this element or viewport rect, so the thing the drawer is about stays
|
|
24
|
+
* bright. An element is followed through resize and scroll and the hole takes its corner radius; a
|
|
25
|
+
* `DOMRect` is a fixed, square-cornered hole in viewport coordinates. The hole still takes the
|
|
26
|
+
* scrim's pointer, so a click on it dismisses the drawer like any other scrim click.
|
|
27
|
+
*/
|
|
28
|
+
readonly scrimCutout: _angular_core.InputSignal<HTMLElement | DOMRect | null>;
|
|
22
29
|
/** Fires once the close (slide-out) animation finishes. */
|
|
23
30
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
31
|
+
private readonly scrim;
|
|
24
32
|
protected readonly titleId: string;
|
|
25
33
|
protected readonly rendered: _angular_core.WritableSignal<boolean>;
|
|
26
34
|
protected readonly closing: _angular_core.WritableSignal<boolean>;
|
|
@@ -34,7 +42,7 @@ declare class DrawerComponent implements OnDestroy {
|
|
|
34
42
|
private finishClose;
|
|
35
43
|
protected onEscape(): void;
|
|
36
44
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
37
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body], [body]", "*", "[drawer-footer], [actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ds-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "scrimCutout": { "alias": "scrimCutout"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["[drawer-body], [body]", "*", "[drawer-footer], [actions]"], true, [{ directive: typeof i1.DsStaticPreview; inputs: { "staticPreview": "staticPreview"; }; outputs: {}; }]>;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
export { DrawerComponent };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_field_message from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { DsFormControlBase } from '@ids-group-ltd/ids-design-system/components';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
5
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
7
|
|
|
4
8
|
type DropzoneFileState = 'queued' | 'uploading' | 'success' | 'error';
|
|
5
9
|
interface DropzoneFile {
|
|
@@ -12,7 +16,7 @@ interface DropzoneFile {
|
|
|
12
16
|
message?: string;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
declare class DropzoneComponent {
|
|
19
|
+
declare class DropzoneComponent extends DsFormControlBase implements ControlValueAccessor {
|
|
16
20
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
17
21
|
private readonly sizeFormat;
|
|
18
22
|
/** Native `accept`: comma-separated MIME types or extensions. */
|
|
@@ -23,12 +27,34 @@ declare class DropzoneComponent {
|
|
|
23
27
|
readonly files: _angular_core.ModelSignal<DropzoneFile[]>;
|
|
24
28
|
/** Blocks all file picking. */
|
|
25
29
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/** Label shown above the zone; also the file input's accessible name. */
|
|
31
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
32
|
+
/** Marks the field required - shows an asterisk and sets `aria-required`. */
|
|
33
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
34
|
protected readonly dragOver: _angular_core.WritableSignal<boolean>;
|
|
35
|
+
private readonly bridge;
|
|
36
|
+
private readonly picker;
|
|
37
|
+
protected readonly uid: string;
|
|
38
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
39
|
+
private readonly fieldMessage;
|
|
40
|
+
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
41
|
+
protected readonly invalidResolved: _angular_core.Signal<boolean>;
|
|
42
|
+
protected readonly controlState: _angular_core.Signal<_ids_group_ltd_ids_design_system_components_field_message.FieldMessageState | null>;
|
|
43
|
+
protected readonly pendingShown: _angular_core.Signal<boolean>;
|
|
44
|
+
protected readonly changedShown: _angular_core.Signal<boolean>;
|
|
45
|
+
protected readonly errorInZone: _angular_core.Signal<boolean>;
|
|
46
|
+
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
27
47
|
/** Fires with the raw files picked or dropped; the consumer adds them to `files`. */
|
|
28
48
|
readonly filesAdded: _angular_core.OutputEmitterRef<File[]>;
|
|
29
49
|
/** Fires when the user removes a file; the consumer removes the matching entry from `files`. */
|
|
30
50
|
readonly fileRemoved: _angular_core.OutputEmitterRef<DropzoneFile>;
|
|
31
51
|
protected readonly classes: _angular_core.Signal<string>;
|
|
52
|
+
constructor();
|
|
53
|
+
writeValue(files: DropzoneFile[] | null): void;
|
|
54
|
+
registerOnChange(fn: (files: DropzoneFile[]) => void): void;
|
|
55
|
+
registerOnTouched(fn: () => void): void;
|
|
56
|
+
setDisabledState(isDisabled: boolean): void;
|
|
57
|
+
protected onBlur(): void;
|
|
32
58
|
protected onDragOver(event: DragEvent): void;
|
|
33
59
|
protected onDragLeave(): void;
|
|
34
60
|
protected onDrop(event: DragEvent): void;
|
|
@@ -39,7 +65,7 @@ declare class DropzoneComponent {
|
|
|
39
65
|
protected formatSize(bytes: number): string;
|
|
40
66
|
protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error';
|
|
41
67
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
42
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropzoneComponent, "ds-dropzone", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesAdded": "filesAdded"; "fileRemoved": "fileRemoved"; }, never, ["[hint]"], true, never>;
|
|
68
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropzoneComponent, "ds-dropzone", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "files": "filesChange"; "filesAdded": "filesAdded"; "fileRemoved": "fileRemoved"; }, never, ["[hint]"], true, never>;
|
|
43
69
|
}
|
|
44
70
|
|
|
45
71
|
export { DropzoneComponent };
|
|
@@ -3,11 +3,12 @@ import { ElementRef } from '@angular/core';
|
|
|
3
3
|
import { IconName, DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
4
4
|
import { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';
|
|
5
5
|
|
|
6
|
-
type
|
|
6
|
+
type IconButtonColor = ButtonColor | 'inherit';
|
|
7
|
+
type IconButtonVariant = 'standard' | 'filled' | 'tonal' | 'outlined' | 'surface';
|
|
7
8
|
type IconButtonType = 'button' | 'submit' | 'reset';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
|
-
* Icon-only action button with variants (standard / filled / tonal / outlined) and an optional
|
|
11
|
+
* Icon-only action button with variants (standard / filled / tonal / outlined / surface) and an optional
|
|
11
12
|
* toggle (`selected`) state. Use `ds-button` for labelled actions. `ariaLabel` is required.
|
|
12
13
|
*/
|
|
13
14
|
declare class IconButtonComponent {
|
|
@@ -20,8 +21,10 @@ declare class IconButtonComponent {
|
|
|
20
21
|
readonly ariaDescribedBy: _angular_core.InputSignal<string | null>;
|
|
21
22
|
/** Fill style; `standard` is chromeless. */
|
|
22
23
|
readonly variant: _angular_core.InputSignal<IconButtonVariant>;
|
|
23
|
-
/** Brand/status hue family, shared with ds-button. `color` recolours the accent the fill uses.
|
|
24
|
-
|
|
24
|
+
/** Brand/status hue family, shared with ds-button. `color` recolours the accent the fill uses.
|
|
25
|
+
* `'inherit'` draws a `standard` button in the surrounding text colour, with its hover, press
|
|
26
|
+
* and focus ring in that colour, for a button on a surface filled with a colour. */
|
|
27
|
+
readonly color: _angular_core.InputSignal<IconButtonColor>;
|
|
25
28
|
/** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */
|
|
26
29
|
readonly size: _angular_core.InputSignal<DsSize | null>;
|
|
27
30
|
readonly sizeResolved: _angular_core.Signal<DsSize>;
|
|
@@ -51,4 +54,4 @@ declare class IconButtonComponent {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
export { IconButtonComponent };
|
|
54
|
-
export type { IconButtonType, IconButtonVariant };
|
|
57
|
+
export type { IconButtonColor, IconButtonType, IconButtonVariant };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A notification rendered in the nav Alerts popover.
|
|
7
|
+
*/
|
|
8
|
+
interface NavAlertItem {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly icon: IconName;
|
|
11
|
+
/** Tone of the leading icon chip (reuses the DS status palette). */
|
|
12
|
+
readonly variant: 'success' | 'warning' | 'error' | 'info';
|
|
13
|
+
readonly title: string;
|
|
14
|
+
readonly body: string;
|
|
15
|
+
/** Relative/display timestamp, e.g. "Jul 23". */
|
|
16
|
+
readonly at: string;
|
|
17
|
+
/** Optional router path to navigate to when the alert is clicked. */
|
|
18
|
+
readonly route?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A single global-search hit rendered in the nav Search popover, produced by a
|
|
22
|
+
* {@link NavSearchProvider}.
|
|
23
|
+
*/
|
|
24
|
+
interface NavSearchResult {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
/** Primary line (entity/section name). */
|
|
27
|
+
readonly label: string;
|
|
28
|
+
/** Optional secondary line (reference, email, type…). */
|
|
29
|
+
readonly sublabel?: string;
|
|
30
|
+
readonly icon?: IconName;
|
|
31
|
+
/** Group heading the hit is filed under, e.g. "Sections". */
|
|
32
|
+
readonly group: string;
|
|
33
|
+
/** Router path to navigate to on select. */
|
|
34
|
+
readonly route: string;
|
|
35
|
+
/** Optional query params, used to deep-open in-page detail views. */
|
|
36
|
+
readonly queryParams?: Record<string, string>;
|
|
37
|
+
}
|
|
38
|
+
/** A query -> results function supplied by the layout to the shared footer. */
|
|
39
|
+
type NavSearchProvider = (query: string) => readonly NavSearchResult[];
|
|
40
|
+
|
|
41
|
+
interface SearchGroup {
|
|
42
|
+
group: string;
|
|
43
|
+
items: NavSearchResult[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Bottom block of the app nav: quick actions (Search / Alerts / Collapse)
|
|
47
|
+
* and the signed-in user with an account menu (popover). Collapse and sign-out
|
|
48
|
+
* are delegated to the parent (`collapseToggled`, `signOutSelected`).
|
|
49
|
+
*/
|
|
50
|
+
declare class NavFooterComponent {
|
|
51
|
+
private readonly router;
|
|
52
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
53
|
+
/** Name shown in the footer's account row. */
|
|
54
|
+
readonly userName: _angular_core.InputSignal<string>;
|
|
55
|
+
/** Secondary line under the name (role / organisation). */
|
|
56
|
+
readonly userRole: _angular_core.InputSignal<string>;
|
|
57
|
+
/** Show the unread dot on the Alerts row. */
|
|
58
|
+
readonly alerts: _angular_core.InputSignal<boolean>;
|
|
59
|
+
/** Mirrors the rail's collapsed state: labels hide, the avatar + icons stay. */
|
|
60
|
+
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
61
|
+
/** When set, the Search row opens a live results popover; unset keeps it inert. */
|
|
62
|
+
readonly searchProvider: _angular_core.InputSignal<NavSearchProvider | null>;
|
|
63
|
+
/** When non-null (even empty) the Alerts row opens a list popover; null keeps it inert. */
|
|
64
|
+
readonly alertItems: _angular_core.InputSignal<readonly NavAlertItem[] | null>;
|
|
65
|
+
/** Route for the account menu's "Your profile"; empty = the item is a no-op. */
|
|
66
|
+
readonly profileRoute: _angular_core.InputSignal<string>;
|
|
67
|
+
/** The collapse control was activated; the footer does not collapse itself. */
|
|
68
|
+
readonly collapseToggled: _angular_core.OutputEmitterRef<void>;
|
|
69
|
+
/** Emitted when the Alerts popover is opened, so the layout can mark-all-read. */
|
|
70
|
+
readonly alertsOpened: _angular_core.OutputEmitterRef<void>;
|
|
71
|
+
/** Emitted when "Sign out" is chosen; the layout owns the actual logout flow. */
|
|
72
|
+
readonly signOutSelected: _angular_core.OutputEmitterRef<void>;
|
|
73
|
+
protected readonly query: _angular_core.WritableSignal<string>;
|
|
74
|
+
protected readonly initials: _angular_core.Signal<string>;
|
|
75
|
+
/** Run the provider for the current query, grouped by `group` for display. */
|
|
76
|
+
protected searchGroups(provider: NavSearchProvider): SearchGroup[];
|
|
77
|
+
protected goResult(result: NavSearchResult): void;
|
|
78
|
+
/** Activate the top result (Enter key). Returns whether a result was opened. */
|
|
79
|
+
protected goFirst(provider: NavSearchProvider): boolean;
|
|
80
|
+
protected goAlert(alert: NavAlertItem): void;
|
|
81
|
+
protected goProfile(): void;
|
|
82
|
+
constructor();
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavFooterComponent, never>;
|
|
84
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavFooterComponent, "ds-nav-footer, ds-sidenav-footer", never, { "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "userRole": { "alias": "userRole"; "required": false; "isSignal": true; }; "alerts": { "alias": "alerts"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "searchProvider": { "alias": "searchProvider"; "required": false; "isSignal": true; }; "alertItems": { "alias": "alertItems"; "required": false; "isSignal": true; }; "profileRoute": { "alias": "profileRoute"; "required": false; "isSignal": true; }; }, { "collapseToggled": "collapseToggled"; "alertsOpened": "alertsOpened"; "signOutSelected": "signOutSelected"; }, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { NavFooterComponent };
|
|
88
|
+
export type { NavAlertItem, NavSearchProvider, NavSearchResult };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
5
|
+
import { DsRouterLink, DsAriaCurrent } from '@ids-group-ltd/ids-design-system/components';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Marks projected wordmark markup for `ds-nav`: when present, the nav
|
|
9
|
+
* renders the projected content inside `.brand-name` instead of the plain
|
|
10
|
+
* `brand` text.
|
|
11
|
+
*
|
|
12
|
+
* It renders the brand row even without a string `brand`, but the letter-mark
|
|
13
|
+
* tile still comes from `logoLetter` (or the first letter of `brand`), so an
|
|
14
|
+
* empty `brand` + projection renders the wordmark with no tile.
|
|
15
|
+
*/
|
|
16
|
+
declare class BrandNameDirective {
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrandNameDirective, never>;
|
|
18
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrandNameDirective, "[dsBrandName]", never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Contract that ds-nav-item reads from its parent ds-nav. */
|
|
22
|
+
interface NavContract {
|
|
23
|
+
readonly collapsed: () => boolean;
|
|
24
|
+
/** Whether the active item draws its edge marker; an item can override it. */
|
|
25
|
+
readonly rail: () => boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const NAV: InjectionToken<NavContract>;
|
|
28
|
+
|
|
29
|
+
declare class NavComponent implements NavContract {
|
|
30
|
+
/** Collapses the rail to icon-only width; read by nested `ds-nav-item`/`ds-nav-group`. */
|
|
31
|
+
readonly collapsed: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/** Names the menu as a navigation landmark (`role="navigation"` with this `aria-label`). Set it
|
|
33
|
+
* on every menu of a page that has more than one, so a screen reader tells them apart. */
|
|
34
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
35
|
+
/** Whether the ACTIVE item draws its edge marker, for the whole nav; off by default, the
|
|
36
|
+
* active fill and label colour mark it. An individual `ds-nav-item` can override it with its own `rail`. */
|
|
37
|
+
readonly rail: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
/** `page` sets the menu inside a page as a card with denser rows and no brand row; `app` is the
|
|
39
|
+
* application's own side menu. */
|
|
40
|
+
readonly variant: _angular_core.InputSignal<"app" | "page">;
|
|
41
|
+
/** Brand text at the top of the rail (auto letter-mark + name). Unset falls back to
|
|
42
|
+
* `DS_CONFIG.brand.name`. Each field resolves on its own: `brand=""` drops the
|
|
43
|
+
* wordmark while a configured `logoLetter` still paints its tile. */
|
|
44
|
+
readonly brand: _angular_core.InputSignal<string | null>;
|
|
45
|
+
/** Letter-mark glyph when it differs from the brand's first letter. Empty = first letter of `brand`;
|
|
46
|
+
* unset falls back to `DS_CONFIG.brand.logoLetter`. */
|
|
47
|
+
readonly logoLetter: _angular_core.InputSignal<string | null>;
|
|
48
|
+
/** Route the brand row links to. Unset leaves the row non-interactive. `RouterLink` is
|
|
49
|
+
* instantiated only once this is set, so an app with no router still renders. */
|
|
50
|
+
readonly brandRoute: _angular_core.InputSignal<string | readonly unknown[] | null>;
|
|
51
|
+
/** Accessible name for the brand link; unset names it "<brand>, home". Ignored
|
|
52
|
+
* while `brandRoute` is unset. */
|
|
53
|
+
readonly brandLinkLabel: _angular_core.InputSignal<string | null>;
|
|
54
|
+
/** Read these, not the inputs: the config default lives here. */
|
|
55
|
+
readonly brandName: _angular_core.Signal<string>;
|
|
56
|
+
readonly letterGlyph: _angular_core.Signal<string>;
|
|
57
|
+
/** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */
|
|
58
|
+
protected readonly brandNameRef: _angular_core.Signal<BrandNameDirective | undefined>;
|
|
59
|
+
protected readonly hasBrandName: _angular_core.Signal<boolean>;
|
|
60
|
+
/** Spread, not `charAt(0)`: that splits an astral character's surrogate pair. */
|
|
61
|
+
protected readonly markGlyph: _angular_core.Signal<string>;
|
|
62
|
+
protected readonly brandAriaLabel: _angular_core.Signal<string>;
|
|
63
|
+
constructor();
|
|
64
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavComponent, never>;
|
|
65
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavComponent, "ds-nav, ds-sidenav", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "rail": { "alias": "rail"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "logoLetter": { "alias": "logoLetter"; "required": false; "isSignal": true; }; "brandRoute": { "alias": "brandRoute"; "required": false; "isSignal": true; }; "brandLinkLabel": { "alias": "brandLinkLabel"; "required": false; "isSignal": true; }; }, {}, ["brandNameRef"], ["[brand]", "[dsBrandName]", "*"], true, never>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class NavDividerComponent {
|
|
69
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavDividerComponent, never>;
|
|
70
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavDividerComponent, "ds-nav-divider", never, {}, {}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class NavGroupComponent {
|
|
74
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
75
|
+
/** Group heading text. */
|
|
76
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
77
|
+
/** Optional group icon; omit to project custom content via the `[ds-group-icon]` slot instead. */
|
|
78
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
79
|
+
/** When true, the label/icon row becomes a clickable header that expands/collapses the group. */
|
|
80
|
+
readonly expandable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
81
|
+
/** Makes the group a destination as well as a container: the header navigates here and the
|
|
82
|
+
* caret becomes a separate control. Unset, the whole header only expands. */
|
|
83
|
+
readonly routerLink: _angular_core.InputSignal<DsRouterLink>;
|
|
84
|
+
/** Overrides what the group header announces when it is itself a destination. Unset, the page
|
|
85
|
+
* the reader is on announces `page` and the section containing it announces `true`. */
|
|
86
|
+
readonly ariaCurrent: _angular_core.InputSignal<DsAriaCurrent | null | undefined>;
|
|
87
|
+
/** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */
|
|
88
|
+
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
89
|
+
/** A header that navigates hands the caret its own button; one that does not is the button. */
|
|
90
|
+
private readonly noModifiers;
|
|
91
|
+
protected readonly ariaCurrentResolved: _angular_core.Signal<DsAriaCurrent | undefined>;
|
|
92
|
+
protected readonly headerNavigates: _angular_core.Signal<boolean>;
|
|
93
|
+
protected toggle(): void;
|
|
94
|
+
constructor();
|
|
95
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavGroupComponent, never>;
|
|
96
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavGroupComponent, "ds-nav-group, ds-sidenav-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[ds-group-icon]", "*"], true, never>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class NavItemComponent {
|
|
100
|
+
/** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */
|
|
101
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
102
|
+
/** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */
|
|
103
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
104
|
+
/** Plain `href` target, used when `routerLink` is not set. */
|
|
105
|
+
readonly href: _angular_core.InputSignal<string>;
|
|
106
|
+
/** Angular `RouterLink` target, string or array form for dynamic segments. */
|
|
107
|
+
readonly routerLink: _angular_core.InputSignal<DsRouterLink>;
|
|
108
|
+
/** Applies the active style; also drives `aria-current` when not using `routerLink`. */
|
|
109
|
+
readonly active: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
/** Overrides what an active item announces. Unset, an exact match announces `page` and a prefix
|
|
111
|
+
* match announces `true` ("you are in this section"). */
|
|
112
|
+
readonly ariaCurrent: _angular_core.InputSignal<DsAriaCurrent | null | undefined>;
|
|
113
|
+
/** Numeric count shown at the end of the item. */
|
|
114
|
+
readonly badge: _angular_core.InputSignal<number | null>;
|
|
115
|
+
/** Short text at the end of the item, before the badge: a status such as "Beta" or "Off", a
|
|
116
|
+
* shortcut, a total that is not a count. Hidden while the rail is collapsed. */
|
|
117
|
+
readonly trailingText: _angular_core.InputSignal<string>;
|
|
118
|
+
/** Shows an alert dot alongside the badge. */
|
|
119
|
+
readonly hasAlert: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
120
|
+
/** Disables the item: non-navigable and styled as inactive. */
|
|
121
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
122
|
+
/** Emitted on click, carrying the `MouseEvent`. On an `href` item, `preventDefault()`
|
|
123
|
+
* intercepts navigation; a `routerLink` item navigates regardless (RouterLink ignores
|
|
124
|
+
* `defaultPrevented`). */
|
|
125
|
+
readonly activate: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
126
|
+
/** Whether THIS item draws its edge marker when active. Unset follows the parent `ds-nav`, then off. */
|
|
127
|
+
readonly rail: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
128
|
+
private readonly nav;
|
|
129
|
+
private readonly noModifiers;
|
|
130
|
+
protected readonly ariaCurrentResolved: _angular_core.Signal<DsAriaCurrent | undefined>;
|
|
131
|
+
protected readonly railResolved: _angular_core.Signal<boolean>;
|
|
132
|
+
protected onActivate(event: MouseEvent): void;
|
|
133
|
+
/** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */
|
|
134
|
+
protected readonly collapsedTooltip: _angular_core.Signal<string>;
|
|
135
|
+
protected readonly collapsedAriaLabel: _angular_core.Signal<string | null>;
|
|
136
|
+
protected readonly linkClasses: _angular_core.Signal<string>;
|
|
137
|
+
constructor();
|
|
138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavItemComponent, never>;
|
|
139
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavItemComponent, "ds-nav-item, ds-sidenav-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "trailingText": { "alias": "trailingText"; "required": false; "isSignal": true; }; "hasAlert": { "alias": "hasAlert"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rail": { "alias": "rail"; "required": false; "isSignal": true; }; }, { "activate": "activate"; }, never, ["[icon]", "[trailing]"], true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface NavItemModel {
|
|
143
|
+
id: string;
|
|
144
|
+
label: string;
|
|
145
|
+
href?: string;
|
|
146
|
+
active?: boolean;
|
|
147
|
+
badge?: number | null;
|
|
148
|
+
hasAlert?: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { BrandNameDirective, NAV, NavComponent, NavDividerComponent, NavGroupComponent, NavItemComponent };
|
|
152
|
+
export type { NavContract, NavItemModel };
|