@4sh/ui-kit 0.1.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/LICENSE +201 -0
- package/NOTICE +7 -0
- package/README.md +229 -0
- package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-types.mjs +12 -0
- package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
- package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
- package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
- package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
- package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
- package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
- package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
- package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
- package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
- package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
- package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
- package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
- package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
- package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
- package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
- package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
- package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
- package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
- package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
- package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
- package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
- package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
- package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
- package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit.mjs +16 -0
- package/fesm2022/4sh-ui-kit.mjs.map +1 -0
- package/package.json +287 -0
- package/styles/base/_base.scss +19 -0
- package/styles/base/_motion.scss +144 -0
- package/styles/base/_typography.scss +99 -0
- package/styles/generated/_tokens-breakpoint.scss +8 -0
- package/styles/generated/_tokens-metrics.scss +37 -0
- package/styles/generated/_tokens-primitives.scss +284 -0
- package/styles/generated/_tokens-responsive.scss +99 -0
- package/styles/generated/_tokens-semantics.scss +1274 -0
- package/styles/generated/_tokens-styles.scss +35 -0
- package/styles/generated/_tokens-transitions.scss +11 -0
- package/styles/generated/_tokens-typography.scss +14 -0
- package/styles/generated/_tokens.scss +10 -0
- package/styles/index.scss +25 -0
- package/styles/settings/_ui-config.scss +67 -0
- package/styles/utils/_functions.scss +67 -0
- package/styles/utils/_helpers.scss +129 -0
- package/styles/utils/_mixins.scss +186 -0
- package/styles/utils/_motion.scss +47 -0
- package/styles/utils/_overlay.scss +26 -0
- package/styles/utils.scss +15 -0
- package/styles.css +1 -0
- package/types/4sh-ui-kit-forms.d.ts +259 -0
- package/types/4sh-ui-kit-motion.d.ts +111 -0
- package/types/4sh-ui-kit-overlay.d.ts +31 -0
- package/types/4sh-ui-kit-theming.d.ts +54 -0
- package/types/4sh-ui-kit-types.d.ts +13 -0
- package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
- package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
- package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
- package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
- package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
- package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
- package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
- package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
- package/types/4sh-ui-kit-ui-button.d.ts +91 -0
- package/types/4sh-ui-kit-ui-card.d.ts +102 -0
- package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
- package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
- package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
- package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
- package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
- package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
- package/types/4sh-ui-kit-ui-field.d.ts +53 -0
- package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
- package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
- package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
- package/types/4sh-ui-kit-ui-image.d.ts +88 -0
- package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
- package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
- package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
- package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
- package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
- package/types/4sh-ui-kit-ui-input.d.ts +78 -0
- package/types/4sh-ui-kit-ui-label.d.ts +36 -0
- package/types/4sh-ui-kit-ui-link.d.ts +72 -0
- package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
- package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
- package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
- package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
- package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
- package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
- package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
- package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
- package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
- package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
- package/types/4sh-ui-kit-ui-select.d.ts +392 -0
- package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
- package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
- package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
- package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
- package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
- package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
- package/types/4sh-ui-kit-ui-table.d.ts +570 -0
- package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
- package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
- package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
- package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
- package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
- package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
- package/types/4sh-ui-kit.d.ts +4 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, input, booleanAttribute, inject, viewChild, computed, Component, model, output, contentChildren } from '@angular/core';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
4
|
+
import { UiSeparator } from '@4sh/ui-kit/ui-separator';
|
|
5
|
+
|
|
6
|
+
/** Process-wide counter for unique header/content ids (aria wiring). */
|
|
7
|
+
let nextUid = 0;
|
|
8
|
+
/**
|
|
9
|
+
* Header slot marker — apply it (attribute or element form) on the content that
|
|
10
|
+
* should sit in a panel's header. Optional: the `header` string input is a
|
|
11
|
+
* shorthand for a plain-text title.
|
|
12
|
+
*
|
|
13
|
+
* <ui-accordion-panel value="0">
|
|
14
|
+
* <span uiAccordionHeader>Rich <b>title</b></span>
|
|
15
|
+
* Body content (default slot)…
|
|
16
|
+
* </ui-accordion-panel>
|
|
17
|
+
*/
|
|
18
|
+
class UiAccordionHeader {
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: UiAccordionHeader, isStandalone: true, selector: "[uiAccordionHeader], ui-accordion-header", ngImport: i0 }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionHeader, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{ selector: '[uiAccordionHeader], ui-accordion-header' }]
|
|
25
|
+
}] });
|
|
26
|
+
/**
|
|
27
|
+
* Content slot marker (optional) — the panel body is the **default** projection,
|
|
28
|
+
* so this is only needed to disambiguate. Kept for symmetry with the header slot.
|
|
29
|
+
*/
|
|
30
|
+
class UiAccordionContent {
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: UiAccordionContent, isStandalone: true, selector: "[uiAccordionContent], ui-accordion-content", ngImport: i0 }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionContent, decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{ selector: '[uiAccordionContent], ui-accordion-content' }]
|
|
37
|
+
}] });
|
|
38
|
+
/**
|
|
39
|
+
* ui-accordion-panel — a single collapsible section of a {@link UiAccordion}.
|
|
40
|
+
*
|
|
41
|
+
* The whole header is a native `<button>` (WAI-ARIA accordion pattern): clicking
|
|
42
|
+
* anywhere on it toggles the panel; the chevron is a decorative affordance styled
|
|
43
|
+
* as the Figma control. The body region stays in the DOM but is `inert` and
|
|
44
|
+
* height-collapsed when closed (form state preserved, hidden from AT).
|
|
45
|
+
*
|
|
46
|
+
* Declared before {@link UiAccordion} so the container's content query can
|
|
47
|
+
* reference it without a temporal-dead-zone error at class-definition time.
|
|
48
|
+
*/
|
|
49
|
+
class UiAccordionPanel {
|
|
50
|
+
constructor() {
|
|
51
|
+
/** Unique identifier of the panel (matched against the accordion `value`). */
|
|
52
|
+
this.value = input.required(/* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
54
|
+
/** Plain-text header shorthand (use the `uiAccordionHeader` slot for rich content). */
|
|
55
|
+
this.header = input(/* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
|
|
57
|
+
/** Disable the panel (not toggleable, skipped by keyboard navigation). */
|
|
58
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
59
|
+
/** Per-panel override for the header divider (falls back to the group default). */
|
|
60
|
+
this.separator = input(undefined, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
62
|
+
/** Per-panel override for the chevron control (falls back to the group default). */
|
|
63
|
+
this.control = input(undefined, /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
|
|
65
|
+
/** @ignore Parent accordion (owns the open state + group defaults). */
|
|
66
|
+
this.accordion = inject(UiAccordion);
|
|
67
|
+
/** @ignore */
|
|
68
|
+
this.headerButton = viewChild.required('headerBtn', /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "headerButton" }] : /* istanbul ignore next */ []));
|
|
70
|
+
/** @ignore */
|
|
71
|
+
this.uid = ++nextUid;
|
|
72
|
+
/** @ignore */
|
|
73
|
+
this.headerId = `ui-accordion-header-${this.uid}`;
|
|
74
|
+
/** @ignore */
|
|
75
|
+
this.contentId = `ui-accordion-content-${this.uid}`;
|
|
76
|
+
/** @ignore */
|
|
77
|
+
this.active = computed(() => this.accordion.isActive(this.value()), /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
79
|
+
/** @ignore */
|
|
80
|
+
this.icon = computed(() => this.active() ? this.accordion.collapseIcon() : this.accordion.expandIcon(), /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
82
|
+
/** @ignore */
|
|
83
|
+
this.showSeparator = computed(() => this.separator() ?? this.accordion.separator(), /* @ts-ignore */
|
|
84
|
+
...(ngDevMode ? [{ debugName: "showSeparator" }] : /* istanbul ignore next */ []));
|
|
85
|
+
/** @ignore */
|
|
86
|
+
this.showControl = computed(() => this.control() ?? this.accordion.control(), /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "showControl" }] : /* istanbul ignore next */ []));
|
|
88
|
+
}
|
|
89
|
+
/** Move focus to this panel's header. */
|
|
90
|
+
focus() {
|
|
91
|
+
this.headerButton().nativeElement.focus();
|
|
92
|
+
}
|
|
93
|
+
/** @ignore */
|
|
94
|
+
toggle(event) {
|
|
95
|
+
if (this.disabled())
|
|
96
|
+
return;
|
|
97
|
+
this.accordion.toggle(this.value(), event);
|
|
98
|
+
}
|
|
99
|
+
/** @ignore */
|
|
100
|
+
onFocus(event) {
|
|
101
|
+
if (this.accordion.selectOnFocus() && !this.disabled()) {
|
|
102
|
+
this.accordion.open(this.value(), event);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiAccordionPanel, isStandalone: true, selector: "ui-accordion-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._active": "active()", "class._disabled": "disabled()" }, classAttribute: "ui-accordion-panel" }, viewQueries: [{ propertyName: "headerButton", first: true, predicate: ["headerBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n", styles: [":host{display:block;width:100%}.ui-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--units-md);width:100%;margin:0;padding:var(--units-sm) 0;border:0;border-radius:var(--radius-sm);background:none;color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);text-align:left;cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-accordion-header:disabled{cursor:not-allowed}.ui-accordion-header-slot{flex:1 1 auto;min-width:0;font-weight:var(--weight-bold);font-size:var(--size-typography-text-xl);line-height:1.2}.ui-accordion-header-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--stroke-default) var(--navigation-high-stroke-focused)}.ui-accordion-separator{width:100%}.ui-accordion-content{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-accordion-content._open{grid-template-rows:1fr;opacity:1}.ui-accordion-content._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-accordion-content{transition-duration:.01ms}}:root[data-motion=off] .ui-accordion-content{transition-duration:.01ms}.ui-accordion-content-inner{overflow:hidden;min-height:0}.ui-accordion-content-body{padding-block:var(--units-default);color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--navigation-high-content-disabled)}:host._disabled .ui-accordion-header-control{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSeparator, selector: "ui-separator", inputs: ["label", "orientation", "variant", "size", "labelAlign", "ariaLabel"] }] }); }
|
|
107
|
+
}
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordionPanel, decorators: [{
|
|
109
|
+
type: Component,
|
|
110
|
+
args: [{ selector: 'ui-accordion-panel', imports: [UiIcon, UiSeparator], host: {
|
|
111
|
+
class: 'ui-accordion-panel',
|
|
112
|
+
'[class._active]': 'active()',
|
|
113
|
+
'[class._disabled]': 'disabled()',
|
|
114
|
+
}, template: "<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n", styles: [":host{display:block;width:100%}.ui-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--units-md);width:100%;margin:0;padding:var(--units-sm) 0;border:0;border-radius:var(--radius-sm);background:none;color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);text-align:left;cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-accordion-header:disabled{cursor:not-allowed}.ui-accordion-header-slot{flex:1 1 auto;min-width:0;font-weight:var(--weight-bold);font-size:var(--size-typography-text-xl);line-height:1.2}.ui-accordion-header-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--stroke-default) var(--navigation-high-stroke-focused)}.ui-accordion-separator{width:100%}.ui-accordion-content{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-accordion-content._open{grid-template-rows:1fr;opacity:1}.ui-accordion-content._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-accordion-content{transition-duration:.01ms}}:root[data-motion=off] .ui-accordion-content{transition-duration:.01ms}.ui-accordion-content-inner{overflow:hidden;min-height:0}.ui-accordion-content-body{padding-block:var(--units-default);color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--navigation-high-content-disabled)}:host._disabled .ui-accordion-header-control{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}\n"] }]
|
|
115
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], control: [{ type: i0.Input, args: [{ isSignal: true, alias: "control", required: false }] }], headerButton: [{ type: i0.ViewChild, args: ['headerBtn', { isSignal: true }] }] } });
|
|
116
|
+
/**
|
|
117
|
+
* ui-accordion — container grouping a set of collapsible {@link UiAccordionPanel}s.
|
|
118
|
+
*
|
|
119
|
+
* Headless (composition API inspired by PrimeNG `p-accordion`): it owns the open
|
|
120
|
+
* state (`value` two-way model, `single` or `multiple`), roving-focus keyboard
|
|
121
|
+
* navigation across headers (Up/Down/Home/End), and the group-level defaults
|
|
122
|
+
* (`separator`, `control`, expand/collapse icons, `motion`).
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```html
|
|
126
|
+
* <ui-accordion [(value)]="open" [multiple]="true">
|
|
127
|
+
* <ui-accordion-panel value="a" header="Section A">Contenu A…</ui-accordion-panel>
|
|
128
|
+
* <ui-accordion-panel value="b" header="Section B">Contenu B…</ui-accordion-panel>
|
|
129
|
+
* </ui-accordion>
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
class UiAccordion {
|
|
133
|
+
constructor() {
|
|
134
|
+
/** Active panel value(s). Single mode: one value; `multiple`: an array. */
|
|
135
|
+
this.value = model(/* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
137
|
+
/** Allow several panels open at once (value becomes an array). */
|
|
138
|
+
this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
139
|
+
/** Open a panel as soon as its header receives focus. */
|
|
140
|
+
this.selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
141
|
+
/** Group default: render the divider under each header. Overridable per panel. */
|
|
142
|
+
this.separator = input(true, { ...(ngDevMode ? { debugName: "separator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
143
|
+
/** Group default: render the chevron control on each header. Overridable per panel. */
|
|
144
|
+
this.control = input(true, { ...(ngDevMode ? { debugName: "control" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
145
|
+
/** Icon shown on a collapsed panel. */
|
|
146
|
+
this.expandIcon = input('chevron-down', /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "expandIcon" }] : /* istanbul ignore next */ []));
|
|
148
|
+
/** Icon shown on an expanded panel. */
|
|
149
|
+
this.collapseIcon = input('chevron-up', /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "collapseIcon" }] : /* istanbul ignore next */ []));
|
|
151
|
+
/** Animate the expand/collapse transition (honours reduced-motion regardless). */
|
|
152
|
+
this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
153
|
+
/** Fired when a panel is expanded. */
|
|
154
|
+
this.opened = output();
|
|
155
|
+
/** Fired when a panel is collapsed. */
|
|
156
|
+
this.closed = output();
|
|
157
|
+
/** @ignore Projected panels (for keyboard roving focus). */
|
|
158
|
+
this.panels = contentChildren(UiAccordionPanel, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
|
|
160
|
+
}
|
|
161
|
+
/** @ignore Whether the given panel value is currently active. */
|
|
162
|
+
isActive(value) {
|
|
163
|
+
const v = this.value();
|
|
164
|
+
if (this.multiple())
|
|
165
|
+
return Array.isArray(v) && v.includes(value);
|
|
166
|
+
return v === value;
|
|
167
|
+
}
|
|
168
|
+
/** @ignore Toggle a panel (single mode allows closing the active one). */
|
|
169
|
+
toggle(value, event) {
|
|
170
|
+
const wasActive = this.isActive(value);
|
|
171
|
+
this.setActive(value, !wasActive);
|
|
172
|
+
(wasActive ? this.closed : this.opened).emit({ value, originalEvent: event });
|
|
173
|
+
}
|
|
174
|
+
/** @ignore Open a panel if it is not already open (used by `selectOnFocus`). */
|
|
175
|
+
open(value, event) {
|
|
176
|
+
if (this.isActive(value))
|
|
177
|
+
return;
|
|
178
|
+
this.setActive(value, true);
|
|
179
|
+
this.opened.emit({ value, originalEvent: event });
|
|
180
|
+
}
|
|
181
|
+
/** @ignore */
|
|
182
|
+
setActive(value, on) {
|
|
183
|
+
if (this.multiple()) {
|
|
184
|
+
const current = Array.isArray(this.value()) ? [...this.value()] : [];
|
|
185
|
+
const index = current.indexOf(value);
|
|
186
|
+
if (on && index === -1)
|
|
187
|
+
current.push(value);
|
|
188
|
+
else if (!on && index !== -1)
|
|
189
|
+
current.splice(index, 1);
|
|
190
|
+
this.value.set(current);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
this.value.set(on ? value : undefined);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/** @ignore Roving focus across enabled headers (WAI-ARIA accordion pattern). */
|
|
197
|
+
onKeydown(event) {
|
|
198
|
+
if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key))
|
|
199
|
+
return;
|
|
200
|
+
const items = this.panels().filter((p) => !p.disabled());
|
|
201
|
+
if (!items.length)
|
|
202
|
+
return;
|
|
203
|
+
const current = items.findIndex((p) => p.headerButton().nativeElement === document.activeElement);
|
|
204
|
+
if (current === -1)
|
|
205
|
+
return; // focus is not on a header — let the event through.
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
let next = current;
|
|
208
|
+
switch (event.key) {
|
|
209
|
+
case 'ArrowDown':
|
|
210
|
+
next = (current + 1) % items.length;
|
|
211
|
+
break;
|
|
212
|
+
case 'ArrowUp':
|
|
213
|
+
next = (current - 1 + items.length) % items.length;
|
|
214
|
+
break;
|
|
215
|
+
case 'Home':
|
|
216
|
+
next = 0;
|
|
217
|
+
break;
|
|
218
|
+
case 'End':
|
|
219
|
+
next = items.length - 1;
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
items[next].focus();
|
|
223
|
+
}
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: UiAccordion, isStandalone: true, selector: "ui-accordion", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, expandIcon: { classPropertyName: "expandIcon", publicName: "expandIcon", isSignal: true, isRequired: false, transformFunction: null }, collapseIcon: { classPropertyName: "collapseIcon", publicName: "collapseIcon", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, host: { listeners: { "keydown": "onKeydown($event)" }, classAttribute: "ui-accordion" }, queries: [{ propertyName: "panels", predicate: UiAccordionPanel, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}\n"] }); }
|
|
226
|
+
}
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAccordion, decorators: [{
|
|
228
|
+
type: Component,
|
|
229
|
+
args: [{ selector: 'ui-accordion', template: '<ng-content />', host: {
|
|
230
|
+
class: 'ui-accordion',
|
|
231
|
+
'(keydown)': 'onKeydown($event)',
|
|
232
|
+
}, styles: [":host{display:flex;flex-direction:column;width:100%}\n"] }]
|
|
233
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], control: [{ type: i0.Input, args: [{ isSignal: true, alias: "control", required: false }] }], expandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandIcon", required: false }] }], collapseIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseIcon", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => UiAccordionPanel), { isSignal: true }] }] } });
|
|
234
|
+
|
|
235
|
+
/*
|
|
236
|
+
* Public API Surface of ui-kit/ui-accordion
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Generated bundle index. Do not edit.
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
export { UiAccordion, UiAccordionContent, UiAccordionHeader, UiAccordionPanel };
|
|
244
|
+
//# sourceMappingURL=4sh-ui-kit-ui-accordion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-ui-accordion.mjs","sources":["../../../projects/ui-kit/ui-accordion/src/lib/ui-accordion.ts","../../../projects/ui-kit/ui-accordion/src/lib/ui-accordion-panel.html","../../../projects/ui-kit/ui-accordion/src/public-api.ts","../../../projects/ui-kit/ui-accordion/src/4sh-ui-kit-ui-accordion.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/ui-icon';\nimport { UiSeparator } from '@4sh/ui-kit/ui-separator';\n\n/** Identifier of a panel within an accordion (its `value`). */\nexport type UiAccordionValue = string | number;\n/** Active value(s): a single value (single mode) or an array (multiple mode). */\nexport type UiAccordionActiveValue =\n | UiAccordionValue\n | UiAccordionValue[]\n | null\n | undefined;\n\n/** Payload of the accordion open/close outputs. */\nexport interface UiAccordionChangeEvent {\n /** Value of the panel that opened or closed. */\n value: UiAccordionValue;\n /** Originating DOM event (click / keyboard / focus). */\n originalEvent: Event;\n}\n\n/** Process-wide counter for unique header/content ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * Header slot marker — apply it (attribute or element form) on the content that\n * should sit in a panel's header. Optional: the `header` string input is a\n * shorthand for a plain-text title.\n *\n * <ui-accordion-panel value=\"0\">\n * <span uiAccordionHeader>Rich <b>title</b></span>\n * Body content (default slot)…\n * </ui-accordion-panel>\n */\n@Directive({ selector: '[uiAccordionHeader], ui-accordion-header' })\nexport class UiAccordionHeader {}\n\n/**\n * Content slot marker (optional) — the panel body is the **default** projection,\n * so this is only needed to disambiguate. Kept for symmetry with the header slot.\n */\n@Directive({ selector: '[uiAccordionContent], ui-accordion-content' })\nexport class UiAccordionContent {}\n\n/**\n * ui-accordion-panel — a single collapsible section of a {@link UiAccordion}.\n *\n * The whole header is a native `<button>` (WAI-ARIA accordion pattern): clicking\n * anywhere on it toggles the panel; the chevron is a decorative affordance styled\n * as the Figma control. The body region stays in the DOM but is `inert` and\n * height-collapsed when closed (form state preserved, hidden from AT).\n *\n * Declared before {@link UiAccordion} so the container's content query can\n * reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-accordion-panel',\n templateUrl: './ui-accordion-panel.html',\n styleUrl: './ui-accordion-panel.scss',\n imports: [UiIcon, UiSeparator],\n host: {\n class: 'ui-accordion-panel',\n '[class._active]': 'active()',\n '[class._disabled]': 'disabled()',\n },\n})\nexport class UiAccordionPanel {\n /** Unique identifier of the panel (matched against the accordion `value`). */\n value = input.required<UiAccordionValue>();\n /** Plain-text header shorthand (use the `uiAccordionHeader` slot for rich content). */\n header = input<string>();\n /** Disable the panel (not toggleable, skipped by keyboard navigation). */\n disabled = input(false, { transform: booleanAttribute });\n /** Per-panel override for the header divider (falls back to the group default). */\n separator = input<boolean | undefined>(undefined);\n /** Per-panel override for the chevron control (falls back to the group default). */\n control = input<boolean | undefined>(undefined);\n\n /** @ignore Parent accordion (owns the open state + group defaults). */\n protected readonly accordion = inject(UiAccordion);\n\n /** @ignore */\n readonly headerButton = viewChild.required<ElementRef<HTMLButtonElement>>('headerBtn');\n\n /** @ignore */\n private readonly uid = ++nextUid;\n /** @ignore */\n protected readonly headerId = `ui-accordion-header-${this.uid}`;\n /** @ignore */\n protected readonly contentId = `ui-accordion-content-${this.uid}`;\n\n /** @ignore */\n protected readonly active = computed(() => this.accordion.isActive(this.value()));\n /** @ignore */\n protected readonly icon = computed(() =>\n this.active() ? this.accordion.collapseIcon() : this.accordion.expandIcon(),\n );\n /** @ignore */\n protected readonly showSeparator = computed(() => this.separator() ?? this.accordion.separator());\n /** @ignore */\n protected readonly showControl = computed(() => this.control() ?? this.accordion.control());\n\n /** Move focus to this panel's header. */\n focus(): void {\n this.headerButton().nativeElement.focus();\n }\n\n /** @ignore */\n protected toggle(event: Event): void {\n if (this.disabled()) return;\n this.accordion.toggle(this.value(), event);\n }\n\n /** @ignore */\n protected onFocus(event: FocusEvent): void {\n if (this.accordion.selectOnFocus() && !this.disabled()) {\n this.accordion.open(this.value(), event);\n }\n }\n}\n\n/**\n * ui-accordion — container grouping a set of collapsible {@link UiAccordionPanel}s.\n *\n * Headless (composition API inspired by PrimeNG `p-accordion`): it owns the open\n * state (`value` two-way model, `single` or `multiple`), roving-focus keyboard\n * navigation across headers (Up/Down/Home/End), and the group-level defaults\n * (`separator`, `control`, expand/collapse icons, `motion`).\n *\n * @example\n * ```html\n * <ui-accordion [(value)]=\"open\" [multiple]=\"true\">\n * <ui-accordion-panel value=\"a\" header=\"Section A\">Contenu A…</ui-accordion-panel>\n * <ui-accordion-panel value=\"b\" header=\"Section B\">Contenu B…</ui-accordion-panel>\n * </ui-accordion>\n * ```\n */\n@Component({\n selector: 'ui-accordion',\n template: '<ng-content />',\n styleUrl: './ui-accordion.scss',\n host: {\n class: 'ui-accordion',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiAccordion {\n /** Active panel value(s). Single mode: one value; `multiple`: an array. */\n value = model<UiAccordionActiveValue>();\n /** Allow several panels open at once (value becomes an array). */\n multiple = input(false, { transform: booleanAttribute });\n /** Open a panel as soon as its header receives focus. */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Group default: render the divider under each header. Overridable per panel. */\n separator = input(true, { transform: booleanAttribute });\n /** Group default: render the chevron control on each header. Overridable per panel. */\n control = input(true, { transform: booleanAttribute });\n /** Icon shown on a collapsed panel. */\n expandIcon = input<string>('chevron-down');\n /** Icon shown on an expanded panel. */\n collapseIcon = input<string>('chevron-up');\n /** Animate the expand/collapse transition (honours reduced-motion regardless). */\n motion = input(true, { transform: booleanAttribute });\n\n /** Fired when a panel is expanded. */\n opened = output<UiAccordionChangeEvent>();\n /** Fired when a panel is collapsed. */\n closed = output<UiAccordionChangeEvent>();\n\n /** @ignore Projected panels (for keyboard roving focus). */\n private readonly panels = contentChildren(UiAccordionPanel);\n\n /** @ignore Whether the given panel value is currently active. */\n isActive(value: UiAccordionValue): boolean {\n const v = this.value();\n if (this.multiple()) return Array.isArray(v) && v.includes(value);\n return v === value;\n }\n\n /** @ignore Toggle a panel (single mode allows closing the active one). */\n toggle(value: UiAccordionValue, event: Event): void {\n const wasActive = this.isActive(value);\n this.setActive(value, !wasActive);\n (wasActive ? this.closed : this.opened).emit({ value, originalEvent: event });\n }\n\n /** @ignore Open a panel if it is not already open (used by `selectOnFocus`). */\n open(value: UiAccordionValue, event: Event): void {\n if (this.isActive(value)) return;\n this.setActive(value, true);\n this.opened.emit({ value, originalEvent: event });\n }\n\n /** @ignore */\n private setActive(value: UiAccordionValue, on: boolean): void {\n if (this.multiple()) {\n const current = Array.isArray(this.value()) ? [...(this.value() as UiAccordionValue[])] : [];\n const index = current.indexOf(value);\n if (on && index === -1) current.push(value);\n else if (!on && index !== -1) current.splice(index, 1);\n this.value.set(current);\n } else {\n this.value.set(on ? value : undefined);\n }\n }\n\n /** @ignore Roving focus across enabled headers (WAI-ARIA accordion pattern). */\n protected onKeydown(event: KeyboardEvent): void {\n if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;\n const items = this.panels().filter((p) => !p.disabled());\n if (!items.length) return;\n const current = items.findIndex((p) => p.headerButton().nativeElement === document.activeElement);\n if (current === -1) return; // focus is not on a header — let the event through.\n\n event.preventDefault();\n let next = current;\n switch (event.key) {\n case 'ArrowDown': next = (current + 1) % items.length; break;\n case 'ArrowUp': next = (current - 1 + items.length) % items.length; break;\n case 'Home': next = 0; break;\n case 'End': next = items.length - 1; break;\n }\n items[next].focus();\n }\n}\n","<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-accordion\n */\n\nexport * from './lib/ui-accordion';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAiCA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;AASG;MAEU,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,SAAS;mBAAC,EAAE,QAAQ,EAAE,0CAA0C,EAAE;;AAGnE;;;AAGG;MAEU,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA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output, signal, computed, afterNextRender, Component } from '@angular/core';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Default leading icon per semantic level (FontAwesome names, from the Figma
|
|
7
|
+
* source). Overridable per instance through the `icon` input.
|
|
8
|
+
*/
|
|
9
|
+
const UI_ALERT_DEFAULT_ICONS = {
|
|
10
|
+
default: 'info-circle',
|
|
11
|
+
highlight: 'info-circle',
|
|
12
|
+
success: 'check',
|
|
13
|
+
warning: 'warning',
|
|
14
|
+
error: 'times',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* ui-alert — inline message for informational, success, warning or error feedback.
|
|
19
|
+
*
|
|
20
|
+
* Headless & fully token-driven (the `informative` category): surface, content
|
|
21
|
+
* and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma
|
|
22
|
+
* anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`
|
|
23
|
+
* in the content region for custom bodies or action buttons.
|
|
24
|
+
*
|
|
25
|
+
* The root carries `role="alert"` (implicit `aria-live="assertive"` +
|
|
26
|
+
* `aria-atomic="true"`), so screen readers announce it as soon as it appears —
|
|
27
|
+
* ideal for form validation summaries or transient status banners. Set `life`
|
|
28
|
+
* to auto-dismiss after a delay; the alert hides itself and emits `closed`.
|
|
29
|
+
*
|
|
30
|
+
* Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`
|
|
31
|
+
* is a plain inline block — drop it in the page flow, a form, or a `@for` loop.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```html
|
|
35
|
+
* <ui-alert level="error" title="Erreur" text="Le formulaire est invalide." />
|
|
36
|
+
* <ui-alert level="success" text="Enregistré." [life]="4000" (closed)="onClose()" />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class UiAlert {
|
|
40
|
+
constructor() {
|
|
41
|
+
this.destroyRef = inject(DestroyRef);
|
|
42
|
+
/** Bold heading line. */
|
|
43
|
+
this.title = input(/* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** Supporting body line. */
|
|
46
|
+
this.text = input(/* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** Semantic level — colours + default icon. */
|
|
49
|
+
this.level = input('default', /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
|
|
51
|
+
/** Hierarchical intensity (`high` = solid, `low` = subtle). */
|
|
52
|
+
this.subLevel = input('high', /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
|
|
54
|
+
/** Rendered scale (`default` | `large`). */
|
|
55
|
+
this.size = input('default', /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
57
|
+
/**
|
|
58
|
+
* Leading icon: a FontAwesome name to override the level default, `false`
|
|
59
|
+
* to hide it, or `true` (default) for the level's default icon.
|
|
60
|
+
*/
|
|
61
|
+
this.icon = input(true, /* @ts-ignore */
|
|
62
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
63
|
+
/** Show the dismiss button (default `true`). */
|
|
64
|
+
this.closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
65
|
+
/** FontAwesome name of the dismiss icon. */
|
|
66
|
+
this.closeIcon = input('times-circle', /* @ts-ignore */
|
|
67
|
+
...(ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []));
|
|
68
|
+
/** Accessible label of the dismiss button. */
|
|
69
|
+
this.closeAriaLabel = input('Fermer', /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
|
|
71
|
+
/** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */
|
|
72
|
+
this.life = input(0, { ...(ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
73
|
+
/** Accessible label of the alert region (screen readers). */
|
|
74
|
+
this.ariaLabel = input(/* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
76
|
+
/** id of the element labelling the alert region. */
|
|
77
|
+
this.ariaLabelledBy = input(/* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
79
|
+
/** Extra class(es) merged onto the alert root. */
|
|
80
|
+
this.styleClass = input(/* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
82
|
+
/** Emitted when the alert is dismissed (close button or `life` expiry). */
|
|
83
|
+
this.closed = output();
|
|
84
|
+
/** @ignore Hidden after a dismiss so the close button works standalone. */
|
|
85
|
+
this.dismissed = signal(false, /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "dismissed" }] : /* istanbul ignore next */ []));
|
|
87
|
+
/** @ignore Resolved leading icon name (null when hidden). */
|
|
88
|
+
this.iconName = computed(() => {
|
|
89
|
+
const icon = this.icon();
|
|
90
|
+
if (icon === false)
|
|
91
|
+
return null;
|
|
92
|
+
if (typeof icon === 'string')
|
|
93
|
+
return icon;
|
|
94
|
+
return UI_ALERT_DEFAULT_ICONS[this.level()];
|
|
95
|
+
}, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
|
|
97
|
+
/** @ignore Leading icon size follows the alert size (Figma). */
|
|
98
|
+
this.iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'), /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
100
|
+
/** @ignore Dismiss icon size follows the alert size (Figma). */
|
|
101
|
+
this.closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'), /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "closeIconSize" }] : /* istanbul ignore next */ []));
|
|
103
|
+
/** @ignore Alert has only a title (no text, no projected content). */
|
|
104
|
+
this.isTitleOnly = computed(() => !!this.title() && !this.text(), /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "isTitleOnly" }] : /* istanbul ignore next */ []));
|
|
106
|
+
/** @ignore */
|
|
107
|
+
this.classes = computed(() => {
|
|
108
|
+
const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];
|
|
109
|
+
if (this.size() !== 'default')
|
|
110
|
+
c.push(`_${this.size()}`);
|
|
111
|
+
if (this.isTitleOnly())
|
|
112
|
+
c.push('_title-only');
|
|
113
|
+
const sc = this.styleClass();
|
|
114
|
+
if (sc)
|
|
115
|
+
c.push(sc);
|
|
116
|
+
return c.join(' ');
|
|
117
|
+
}, /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
119
|
+
// Auto-dismiss timer (browser only). setTimeout — not rAF — so it still
|
|
120
|
+
// fires in a throttled/background tab. Cleared if destroyed first.
|
|
121
|
+
afterNextRender(() => {
|
|
122
|
+
const life = this.life();
|
|
123
|
+
if (life > 0) {
|
|
124
|
+
const id = setTimeout(() => this.dismiss(), life);
|
|
125
|
+
this.destroyRef.onDestroy(() => clearTimeout(id));
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/** @ignore */
|
|
130
|
+
onClose() {
|
|
131
|
+
this.dismiss();
|
|
132
|
+
}
|
|
133
|
+
/** @ignore Hide the alert and notify the parent. */
|
|
134
|
+
dismiss() {
|
|
135
|
+
if (this.dismissed())
|
|
136
|
+
return;
|
|
137
|
+
this.dismissed.set(true);
|
|
138
|
+
this.closed.emit();
|
|
139
|
+
}
|
|
140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiAlert, isStandalone: true, selector: "ui-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "dismissed() ? 'none' : 'block'", "style.width": "'100%'" } }, ngImport: i0, template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n", styles: [".ui-alert{display:flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);font-family:var(--fontfamily-base);min-height:3.5rem}.ui-alert .ui-alert-title{font-size:var(--size-typography-title-sm)}.ui-alert .ui-alert-text{font-size:var(--size-typography-text-md)}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-alert-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--weight-light);line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--units-2xs) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:4.125rem}.ui-alert._large .ui-alert-title{font-size:var(--size-typography-title-md)}.ui-alert._large .ui-alert-text{font-size:var(--size-typography-text-lg)}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-alert._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-alert._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-alert._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-alert._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-alert._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-alert._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-alert._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-alert._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-alert._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
142
|
+
}
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAlert, decorators: [{
|
|
144
|
+
type: Component,
|
|
145
|
+
args: [{ selector: 'ui-alert', imports: [UiIcon], host: {
|
|
146
|
+
'[style.display]': "dismissed() ? 'none' : 'block'",
|
|
147
|
+
'[style.width]': "'100%'",
|
|
148
|
+
}, template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n", styles: [".ui-alert{display:flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);font-family:var(--fontfamily-base);min-height:3.5rem}.ui-alert .ui-alert-title{font-size:var(--size-typography-title-sm)}.ui-alert .ui-alert-text{font-size:var(--size-typography-text-md)}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-alert-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-alert-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--weight-light);line-height:1.3;overflow-wrap:break-word}.ui-alert-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--units-2xs) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:4.125rem}.ui-alert._large .ui-alert-title{font-size:var(--size-typography-title-md)}.ui-alert._large .ui-alert-text{font-size:var(--size-typography-text-lg)}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-alert._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-alert._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-alert._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-alert._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-alert._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-alert._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-alert._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-alert._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-alert._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
|
|
149
|
+
}], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
* Public API Surface of ui-kit/ui-alert
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Generated bundle index. Do not edit.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
export { UI_ALERT_DEFAULT_ICONS, UiAlert };
|
|
160
|
+
//# sourceMappingURL=4sh-ui-kit-ui-alert.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-ui-alert.mjs","sources":["../../../projects/ui-kit/ui-alert/src/lib/ui-alert.types.ts","../../../projects/ui-kit/ui-alert/src/lib/ui-alert.ts","../../../projects/ui-kit/ui-alert/src/lib/ui-alert.html","../../../projects/ui-kit/ui-alert/src/public-api.ts","../../../projects/ui-kit/ui-alert/src/4sh-ui-kit-ui-alert.ts"],"sourcesContent":["import { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\n/** Rendered scale of an alert. `default` = base, `large` = comfortable. */\nexport type UiAlertSize = 'default' | 'large';\n\n/**\n * Default leading icon per semantic level (FontAwesome names, from the Figma\n * source). Overridable per instance through the `icon` input.\n */\nexport const UI_ALERT_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_ALERT_DEFAULT_ICONS, UiAlertSize } from './ui-alert.types';\n\n/**\n * ui-alert — inline message for informational, success, warning or error feedback.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * The root carries `role=\"alert\"` (implicit `aria-live=\"assertive\"` +\n * `aria-atomic=\"true\"`), so screen readers announce it as soon as it appears —\n * ideal for form validation summaries or transient status banners. Set `life`\n * to auto-dismiss after a delay; the alert hides itself and emits `closed`.\n *\n * Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`\n * is a plain inline block — drop it in the page flow, a form, or a `@for` loop.\n *\n * @example\n * ```html\n * <ui-alert level=\"error\" title=\"Erreur\" text=\"Le formulaire est invalide.\" />\n * <ui-alert level=\"success\" text=\"Enregistré.\" [life]=\"4000\" (closed)=\"onClose()\" />\n * ```\n */\n@Component({\n selector: 'ui-alert',\n imports: [UiIcon],\n templateUrl: './ui-alert.html',\n styleUrl: './ui-alert.scss',\n host: {\n '[style.display]': \"dismissed() ? 'none' : 'block'\",\n '[style.width]': \"'100%'\",\n },\n})\nexport class UiAlert {\n private readonly destroyRef = inject(DestroyRef);\n\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Rendered scale (`default` | `large`). */\n size = input<UiAlertSize>('default');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */\n life = input(0, { transform: numberAttribute });\n /** Accessible label of the alert region (screen readers). */\n ariaLabel = input<string>();\n /** id of the element labelling the alert region. */\n ariaLabelledBy = input<string>();\n /** Extra class(es) merged onto the alert root. */\n styleClass = input<string>();\n\n /** Emitted when the alert is dismissed (close button or `life` expiry). */\n closed = output<void>();\n\n /** @ignore Hidden after a dismiss so the close button works standalone. */\n protected readonly dismissed = signal(false);\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_ALERT_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore Leading icon size follows the alert size (Figma). */\n protected readonly iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'));\n\n /** @ignore Dismiss icon size follows the alert size (Figma). */\n protected readonly closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'));\n\n /** @ignore Alert has only a title (no text, no projected content). */\n protected readonly isTitleOnly = computed(() => !!this.title() && !this.text());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isTitleOnly()) c.push('_title-only');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n constructor() {\n // Auto-dismiss timer (browser only). setTimeout — not rAF — so it still\n // fires in a throttled/background tab. Cleared if destroyed first.\n afterNextRender(() => {\n const life = this.life();\n if (life > 0) {\n const id = setTimeout(() => this.dismiss(), life);\n this.destroyRef.onDestroy(() => clearTimeout(id));\n }\n });\n }\n\n /** @ignore */\n protected onClose(): void {\n this.dismiss();\n }\n\n /** @ignore Hide the alert and notify the parent. */\n private dismiss(): void {\n if (this.dismissed()) return;\n this.dismissed.set(true);\n this.closed.emit();\n }\n}\n","@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-alert\n */\n\nexport * from './lib/ui-alert';\nexport * from './lib/ui-alert.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAKA;;;AAGG;AACI,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;ACEhB;;;;;;;;;;;;;;;;;;;;;AAqBG;MAWU,OAAO,CAAA;AAkElB,IAAA,WAAA,GAAA;AAjEiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;AAGhD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAc,SAAS;iFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEvD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,cAAc;sFAAC;;QAEzC,IAAA,CAAA,cAAc,GAAG,KAAK,CAAS,QAAQ;2FAAC;;QAExC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;AAE/C,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAE3B,Q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