@4sh/ui-kit 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +11 -10
- package/README.md +11 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +340 -16
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +10 -82
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +179 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +105 -7
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +605 -0
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +5 -29
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +5 -29
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +12 -12
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +12 -36
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +20 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +60 -2
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +486 -66
- package/mcp/data/ui-config.json +26605 -12458
- package/mcp/package.json +1 -1
- package/package.json +13 -1
- package/styles/component-vars.scss +1440 -721
- package/styles/settings/_ui-config.scss +45 -2
- package/styles/utils/_mixins.scss +32 -30
- package/styles/utils/_overlay.scss +1 -1
- package/types/4sh-ui-kit-base-ui-image.d.ts +151 -6
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +110 -0
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
- package/types/4sh-ui-kit-forms.d.ts +43 -1
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
- package/types/4sh-ui-kit-overlay.d.ts +35 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-forms.mjs","sources":["../../../projects/ui-kit/forms/src/lib/base-control-value-accessor.ts","../../../projects/ui-kit/forms/src/lib/base-form-field.ts","../../../projects/ui-kit/forms/src/lib/overlay-positions.ts","../../../projects/ui-kit/forms/src/lib/mask-engine.ts","../../../projects/ui-kit/forms/src/lib/option-resolver.ts","../../../projects/ui-kit/forms/src/lib/format-label.ts","../../../projects/ui-kit/forms/src/lib/warn-missing-accessible-name.ts","../../../projects/ui-kit/forms/src/public-api.ts","../../../projects/ui-kit/forms/src/4sh-ui-kit-forms.ts"],"sourcesContent":["import {\n afterNextRender,\n computed,\n DestroyRef,\n effect,\n inject,\n Injector,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n ControlValueAccessor,\n NgControl,\n PristineChangeEvent,\n StatusChangeEvent,\n TouchedChangeEvent,\n ValidationErrors,\n} from '@angular/forms';\n\n/**\n * Base class for form components (`ui-checkbox`, `ui-radio`, `ui-input`…).\n *\n * Implements `ControlValueAccessor` and mirrors the attached `NgControl` state\n * into signals, so templates/styles can react to it declaratively:\n *\n * - `touched` / `dirty` / `pristine` / `untouched` — interaction state\n * - `controlInvalid` / `controlErrors` — validation state\n * - `controlDisabled` — driven by `control.disable()`\n * - `showError` — invalid AND (touched or dirty),\n * the usual \"when to paint red\" rule\n *\n * The subscription is wired automatically after first render and cleaned up on\n * destroy. Subclasses only have to:\n * 1. implement `writeValue()` (form → view),\n * 2. call `emitChange(value)` on user interaction (view → form),\n * 3. call `emitTouch()` on blur,\n * 4. declare the DI provider:\n * `{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MyComponent), multi: true }`.\n *\n * Works with reactive forms, template-driven forms, or standalone (no form at\n * all — the signals simply keep their defaults).\n */\nexport abstract class BaseControlValueAccessor<T> implements ControlValueAccessor {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly dirty = signal(false);\n readonly pristine = signal(true);\n readonly touched = signal(false);\n readonly untouched = signal(true);\n /** Validation state of the attached control (false when no control). */\n readonly controlInvalid = signal(false);\n /** Validation errors of the attached control (null when valid / no control). */\n readonly controlErrors = signal<ValidationErrors | null>(null);\n /** Disabled state driven by the forms API (`control.disable()`), not by the `disabled` input. */\n readonly controlDisabled = signal(false);\n /** True when the error state should be surfaced to the user. */\n readonly showError = computed(() => this.controlInvalid() && (this.touched() || this.dirty()));\n\n protected onChange: (value: T) => void = () => {\n /* noop until registered */\n };\n protected onTouched: () => void = () => {\n /* noop until registered */\n };\n\n constructor() {\n // NgControl injects lazily (after the directive tree is built) to avoid\n // the classic NgControl ↔ value-accessor circular dependency.\n afterNextRender(() => this.watchNgControlEvents());\n }\n\n /** Write the form value into the component state (form → view). */\n abstract writeValue(value: T): void;\n\n registerOnChange(fn: (value: T) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.controlDisabled.set(isDisabled);\n }\n\n /** Propagate a user-driven value change to the form (view → form). */\n protected emitChange(value: T): void {\n this.onChange(value);\n }\n\n /** Mark the control as touched (call on blur). */\n protected emitTouch(): void {\n this.onTouched();\n this.touched.set(true);\n this.untouched.set(false);\n }\n\n /** Mirror the NgControl state into the signals. Wired automatically; safe to call once manually if needed. */\n protected watchNgControlEvents(): void {\n const control = this.injector.get(NgControl, null, { optional: true, self: true })?.control;\n if (!control) return;\n\n const mirror = () => {\n this.pristine.set(control.pristine);\n this.dirty.set(control.dirty);\n this.touched.set(control.touched);\n this.untouched.set(control.untouched);\n this.controlInvalid.set(control.invalid);\n this.controlErrors.set(control.errors);\n };\n\n // Signal-forms interop provides a fake NgControl without an `events`\n // stream, but its getters read the field's signals: mirroring inside\n // an effect tracks them and keeps the state live.\n if (!control.events) {\n effect(mirror, { injector: this.injector });\n return;\n }\n\n // Seed with the current state (events only fire on transitions).\n mirror();\n\n control.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {\n if (event instanceof PristineChangeEvent) {\n this.pristine.set(event.pristine);\n this.dirty.set(!event.pristine);\n } else if (event instanceof TouchedChangeEvent) {\n this.touched.set(event.touched);\n this.untouched.set(!event.touched);\n } else if (event instanceof StatusChangeEvent) {\n this.controlInvalid.set(event.status === 'INVALID');\n this.controlErrors.set(control.errors);\n }\n });\n }\n}\n","import { booleanAttribute, computed, Directive, input, signal } from '@angular/core';\nimport { BaseControlValueAccessor } from './base-control-value-accessor';\nimport { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\nexport type FieldSize = 'default' | 'small';\n/** Visual validation status (subset of `UiFeedbackLevel`, shared with `ui-helper`). */\nexport type FieldLevel = Extract<UiFeedbackLevel, 'default' | 'success' | 'error'>;\n/**\n * Placement of the floating label (\"float label\" mode):\n * - `over`: rises above the box, where a classic label sits,\n * - `in`: rises to a band reserved at the top **inside** the box,\n * - `on`: rises **onto** the top border, notching it.\n */\nexport type FieldFloatLabel = 'over' | 'in' | 'on';\n\nlet nextUid = 0;\n\n/**\n * Base class for every standalone form control (`ui-checkbox`, `ui-toggle`,\n * `ui-slider`, `ui-nudger`…): the CVA plumbing shared by all of them, without\n * any \"box\" chrome (no label/helper/error message rendering).\n *\n * Provides the common inputs (aria*, id/name, required/disabled/readonly/\n * invalid, tabindex), the auto-generated id machinery (`resolvedId`,\n * `messageId`), the `modelValue` signal with the default `writeValue`, and the\n * derived `isDisabled` / `isInvalid` states. Extends `BaseControlValueAccessor`:\n * subclasses call `emitChange` / `emitTouch` on user interaction.\n *\n * Decorated with `@Directive()` (no selector) so the signal inputs are inherited\n * correctly by the concrete components.\n */\n@Directive()\nexport abstract class BaseFieldControl<T> extends BaseControlValueAccessor<T> {\n /** Accessible name when no visible label is provided. */\n ariaLabel = input<string>();\n /** id of an external element that labels this control. */\n ariaLabelledBy = input<string>();\n /** id forwarded to the native input (auto-generated when omitted). */\n inputId = input<string>();\n /** name forwarded to the native input. */\n name = input<string>();\n /** Required marker (*) + native required attribute. */\n required = input(false, { transform: booleanAttribute });\n /** Disables the field (native attribute). */\n disabled = input(false, { transform: booleanAttribute });\n /** Read-only (native attribute). */\n readonly = input(false, { transform: booleanAttribute });\n /** Forces the error styling (automatic when the attached control is invalid and touched/dirty). */\n invalid = input(false, { transform: booleanAttribute });\n /** tabindex forwarded to the native input. */\n tabindex = input<number>();\n\n /** @ignore Auto-generated unique id (prefix branded via `uidPrefix`). */\n protected readonly uid = `${this.uidPrefix()}-${nextUid++}`;\n /** @ignore Current value (written by the form or by user input). */\n protected readonly modelValue = signal<T | undefined>(undefined);\n\n /** @ignore */\n protected readonly resolvedId = computed(() => this.inputId() ?? this.uid);\n /** @ignore id of the message (for aria-describedby). */\n protected readonly messageId = computed(() => `${this.resolvedId()}-message`);\n /** @ignore Input disabled OR control disabled (form API). */\n protected readonly isDisabled = computed(() => this.disabled() || this.controlDisabled());\n /** @ignore Explicit error OR invalid control worth surfacing. */\n protected readonly isInvalid = computed(() => this.invalid() || this.showError());\n\n writeValue(value: T): void {\n this.modelValue.set(value);\n }\n\n /** @ignore Prefix of the auto-generated id — override to brand it per component. */\n protected uidPrefix(): string {\n return 'ui-field';\n }\n}\n\n/**\n * Base class for \"box\" form fields (`ui-input`, `ui-input-number`,\n * `ui-input-mask`, `ui-textarea`…).\n *\n * Extends `BaseFieldControl` with the box-specific inputs (label, helper,\n * error, size, level) and the derived state (effective level, displayed\n * message/value). Subclasses only handle their own `<input>` (specific\n * parsing/formatting) and call `emitChange` / `emitTouch`.\n */\n@Directive()\nexport abstract class BaseFormField<T> extends BaseFieldControl<T> {\n /** Label (rendered via `ui-label`). */\n label = input<string>();\n /** Helper text under the field (rendered via `ui-helper`). */\n helperText = input<string>();\n /** Error message shown in place of the helper when the field is in error. */\n errorText = input<string>();\n /** Prefixes the message under the field (helper or error) with a decorative icon. */\n showMessageIcon = input(false, { transform: booleanAttribute });\n /** Overrides the glyph shown by `showMessageIcon`. */\n messageIcon = input<string>();\n /** Size. */\n size = input<FieldSize>('default');\n /** Explicit validation status (`error` is forced when the control is invalid + touched). */\n level = input<FieldLevel>('default');\n /**\n * Floating label placement. Unset = classic label above the box.\n *\n * The label then plays the placeholder role while at rest, so the native\n * `placeholder` is neutralised (see `hasFloatLabel`).\n */\n floatLabel = input<FieldFloatLabel>();\n\n /** @ignore There is a label to float: a `floatLabel` alone has nothing to move. */\n protected readonly hasFloatLabel = computed(() => !!this.floatLabel() && !!this.label());\n\n /** @ignore Effective level: error when invalid, otherwise the requested `level`. */\n protected readonly effectiveLevel = computed<FieldLevel>(() =>\n this.isInvalid() ? 'error' : this.level(),\n );\n /** @ignore Displayed message: errorText when in error (if provided), otherwise helperText. */\n protected readonly displayMessage = computed(() =>\n this.isInvalid() && this.errorText() ? this.errorText() : this.helperText(),\n );\n /** @ignore Value shown in the input (string). Override for specific formatting. */\n protected readonly displayValue = computed(() => {\n const v = this.modelValue();\n return v === undefined || v === null ? '' : String(v);\n });\n}\n","import { ConnectedPosition } from '@angular/cdk/overlay';\n\n/**\n * Standard dropdown-panel anchoring shared by the overlay form fields\n * (`ui-select`, `ui-autocomplete`, `ui-input-tags`, `ui-datepicker`):\n * below the field, flipped above when `autoFlip`, flipped horizontally\n * (right-aligned) whenever there isn't enough room on the right.\n */\nexport function dropdownOverlayPositions(autoFlip: boolean): ConnectedPosition[] {\n const belowStart: ConnectedPosition = {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: 8,\n };\n const belowEnd: ConnectedPosition = {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetY: 8,\n };\n const aboveStart: ConnectedPosition = {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -8,\n };\n const aboveEnd: ConnectedPosition = {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n offsetY: -8,\n };\n return autoFlip ? [belowStart, belowEnd, aboveStart, aboveEnd] : [belowStart, belowEnd];\n}\n","/**\n * Pure masking engine shared by `ui-input-mask` and `ui-datepicker` (auto-formatting the typed\n * date). Same precedent as `overlay-positions.ts` in this folder: framework-free functions, no\n * class/Directive/Component, reusable by any form component that needs literal-inserting input\n * masking. Extracted from `ui-input-mask.ts` — behavior is a byte-for-byte copy, only `this.mask()`\n * /`this.ranges()`/`this.slotChar()` become explicit parameters.\n */\n\n/** Mask tokens → accepted character class. */\nexport const MASK_TOKENS: Record<string, RegExp> = {\n '9': /[0-9]/, // digit\n a: /[a-zA-Z]/, // letter\n '*': /[a-zA-Z0-9]/, // alphanumeric\n};\n\nexport interface MaskBounds {\n min: number;\n max: number;\n}\n\nexport interface MaskSlot {\n char: string | null;\n rgx?: RegExp;\n bound?: MaskBounds & { pos: number; len: number };\n}\n\nexport interface MaskBuildResult {\n display: string;\n masked: string;\n data: string;\n tokenIndices: number[];\n}\n\n/** Parse the `ranges` input (`\"1-31 1-12 1900-2100\"`) into one bound per numeric segment. */\nexport function parseMaskRanges(ranges: string): (MaskBounds | null)[] {\n return ranges\n .trim()\n .split(/\\s+/)\n .map((part) => {\n const m = /^(\\d+)-(\\d+)$/.exec(part);\n return m ? { min: Number(m[1]), max: Number(m[2]) } : null;\n });\n}\n\n/**\n * Resolve the mask template into slots: literals, input slots, and the `ranges` bounds attached\n * to every slot of the numeric segment (consecutive `9` tokens) it belongs to.\n */\nexport function buildMaskSlots(\n mask: string,\n bounds: (MaskBounds | null)[],\n tokens: Record<string, RegExp> = MASK_TOKENS,\n): MaskSlot[] {\n const slots: MaskSlot[] = [];\n const segments: MaskSlot[][] = [];\n let segment: MaskSlot[] | null = null;\n\n for (const m of mask) {\n const rgx = tokens[m];\n const slot: MaskSlot = rgx ? { char: null, rgx } : { char: m };\n slots.push(slot);\n if (rgx && m === '9') {\n if (!segment) segments.push((segment = []));\n segment.push(slot);\n } else {\n segment = null;\n }\n }\n\n // Every segment gets a `.bound`, even unranged ones (±Infinity = no-op range): `pos`/`len` are\n // needed for `atSegmentEnd` regardless, else an unranged segment (e.g. ui-datepicker's year)\n // never auto-inserts its own following literal (FSHSP-118).\n segments.forEach((seg, i) => {\n const range = bounds[i] ?? { min: -Infinity, max: Infinity };\n seg.forEach((slot, pos) => (slot.bound = { ...range, pos, len: seg.length }));\n });\n\n return slots;\n}\n\n/** Keep only the data characters (alphanumeric) of a raw input string. */\nexport function extractMaskData(raw: string): string {\n return raw.replace(/[^a-zA-Z0-9]/g, '');\n}\n\n/**\n * Can `ch` fill this slot? It must match the token class and — when the segment is bounded\n * AND `enforceBounds` — the digits typed so far plus `ch` must still admit at least one in-range\n * completion of the remaining positions (`2` then `4` is refused on `0-23`, `2` then `3` is\n * accepted).\n *\n * `enforceBounds = false` skips that second check (still requires the token class to match):\n * meant for re-deriving the mask after characters were REMOVED, not typed. The bounds check\n * exists to reject an invalid *new* leading digit while typing forward (e.g. `8` can never start\n * a valid `1-31` day, so it's skipped rather than accepted) — applied instead to the digits left\n * over after a deletion, that same skip can discard a still-valid residual digit and misalign\n * every segment after it. See `autoFormatSegments`.\n */\nexport function acceptsMaskChar(\n slot: MaskSlot,\n segment: string,\n ch: string,\n enforceBounds = true,\n): boolean {\n if (!slot.rgx?.test(ch)) return false;\n const bound = slot.bound;\n if (!enforceBounds || !bound) return true;\n const scale = 10 ** (bound.len - bound.pos - 1);\n const low = Number(segment + ch) * scale;\n return low <= bound.max && low + scale - 1 >= bound.min;\n}\n\n/** Apply the mask template to a sequence of data characters (fills empty positions with `slotChar`). */\nexport function applyMaskTemplate(\n slots: MaskSlot[],\n data: string,\n slotChar: string,\n): MaskBuildResult {\n let di = 0;\n let display = '';\n let masked = '';\n let lastFilled = 0;\n let used = '';\n const tokenIndices: number[] = [];\n // Characters already accepted in the current numeric segment (drives the bounds check).\n let segment = '';\n\n for (const slot of slots) {\n if (slot.char !== null) {\n display += slot.char;\n masked += slot.char;\n continue;\n }\n tokenIndices.push(display.length); // index of this token position in `display`\n if (!slot.bound || slot.bound.pos === 0) segment = '';\n while (di < data.length && !acceptsMaskChar(slot, segment, data[di])) di++;\n if (di < data.length) {\n display += data[di];\n masked += data[di];\n used += data[di];\n if (slot.bound) segment += data[di];\n di++;\n lastFilled = masked.length;\n } else {\n display += slotChar;\n }\n }\n // Masked value = up to the last typed character (no trailing literals/slots).\n return { display, masked: masked.slice(0, lastFilled), data: used, tokenIndices };\n}\n\n/** Caret position for `n` typed data characters (literals skipped, end-of-text once all filled). */\nexport function caretForMask(tokenIndices: number[], n: number, length: number): number {\n if (n <= 0) return tokenIndices[0] ?? 0;\n if (n >= tokenIndices.length) return length; // all filled → end\n return tokenIndices[n]; // next input position (literals skipped)\n}\n\n/**\n * Auto-format-as-you-type variant of {@link applyMaskTemplate}: inserts a literal separator as\n * soon as the segment right before it is complete, without ever padding unfilled positions with\n * a filler character (unlike `applyMaskTemplate`, meant for a field that displays the full\n * template at rest). Used by `ui-datepicker`'s typeable trigger to auto-insert \"/\" as digits are\n * typed, the same way a card-expiry field auto-inserts its \"/\".\n */\nexport function autoFormatSegments(\n slots: MaskSlot[],\n data: string,\n { enforceBounds = true }: { enforceBounds?: boolean } = {},\n): { text: string; tokenIndices: number[]; dataEnd: number } {\n let di = 0;\n let text = '';\n let segment = '';\n let atSegmentEnd = false;\n const tokenIndices: number[] = [];\n // Position right after the last DATA character appended — unlike `text.length`, never lands\n // after a separator inserted eagerly (see the \"auto-insert\" doc above) with nothing typed past\n // it yet. Landing the caret there instead (see call sites) means a Backspace right after a\n // just-completed segment removes that segment's last digit, not the decorative separator —\n // which would otherwise be silently re-inserted next render, making Backspace look like it did\n // nothing (FSHSP-118).\n let dataEnd = 0;\n\n for (const slot of slots) {\n if (slot.char !== null) {\n // Append EVERY consecutive literal after a completed segment, not just the first — needed\n // for a multi-char separator like range's \" - \" (FSHSP-118). `atSegmentEnd` is left as-is\n // here; the next digit slot always resets it before it's read again.\n if (atSegmentEnd) text += slot.char;\n continue;\n }\n tokenIndices.push(text.length);\n if (!slot.bound || slot.bound.pos === 0) segment = '';\n while (di < data.length && !acceptsMaskChar(slot, segment, data[di], enforceBounds)) di++;\n if (di >= data.length) break; // no more data: stop, no filler\n text += data[di];\n dataEnd = text.length;\n if (slot.bound) segment += data[di];\n atSegmentEnd = !!slot.bound && slot.bound.pos === slot.bound.len - 1;\n di++;\n }\n return { text, tokenIndices, dataEnd };\n}\n","/**\n * Shared option-resolution helpers for list-based form fields\n * (`ui-select`, `ui-autocomplete`, `ui-input-tags`).\n *\n * Options can be primitives or objects; `optionValue` / `optionLabel` /\n * `optionDisabled` are (dot-path) fields read on object options, and `dataKey`\n * drives object equality. The accessors are passed as thunks so the resolver\n * stays reactive when bound to signal inputs.\n */\n\n/** Normalized option: resolved value/label/disabled + the original option. */\nexport interface OptionEntry {\n value: unknown;\n label: string;\n disabled: boolean;\n original: unknown;\n}\n\n/** Field accessors (typically the component's signal inputs). */\nexport interface OptionResolverFields {\n optionValue: () => string | undefined;\n optionLabel: () => string | undefined;\n optionDisabled: () => string | undefined;\n dataKey: () => string | undefined;\n}\n\nexport interface OptionResolver {\n /** Normalizes an option into an {@link OptionEntry}. */\n toEntry(option: unknown): OptionEntry;\n\n /** Reads a (dot-path) field from an object (`undefined` otherwise). */\n getField(target: unknown, path: string | undefined): unknown;\n\n /** Model value of an option (`optionValue` field, or the option itself). */\n resolveValue(option: unknown): unknown;\n\n /** Display label of an option (`optionLabel` field, `label` key, or text). */\n resolveLabel(option: unknown): string | null;\n\n /** Disabled flag of an option (`optionDisabled` field, or `disabled` key). */\n resolveDisabled(option: unknown): boolean;\n\n /** `String(value)`, or `null` for null/undefined. */\n asText(value: unknown): string | null;\n\n /** Value equality — by `dataKey` for objects, strict otherwise. */\n equals(a: unknown, b: unknown): boolean;\n}\n\nexport function createOptionResolver(fields: OptionResolverFields): OptionResolver {\n const isObject = (option: unknown): option is Record<string, unknown> =>\n typeof option === 'object' && option !== null;\n\n const getField = (target: unknown, path: string | undefined): unknown => {\n if (!path || !isObject(target)) return undefined;\n return path\n .split('.')\n .reduce<unknown>((acc, key) => (isObject(acc) ? acc[key] : undefined), target);\n };\n\n const asText = (value: unknown): string | null =>\n value === null || value === undefined ? null : String(value);\n\n const resolveValue = (option: unknown): unknown => {\n const field = fields.optionValue();\n if (field && isObject(option)) return getField(option, field);\n return option;\n };\n\n const resolveLabel = (option: unknown): string | null => {\n const field = fields.optionLabel();\n if (field && isObject(option)) return asText(getField(option, field));\n if (isObject(option) && 'label' in option) return asText(option['label']);\n return asText(option);\n };\n\n const resolveDisabled = (option: unknown): boolean => {\n const field = fields.optionDisabled();\n if (field && isObject(option)) return !!getField(option, field);\n if (isObject(option) && 'disabled' in option) return !!option['disabled'];\n return false;\n };\n\n const equals = (a: unknown, b: unknown): boolean => {\n const key = fields.dataKey();\n if (key && isObject(a) && isObject(b)) return a[key] === b[key];\n return a === b;\n };\n\n const toEntry = (option: unknown): OptionEntry => ({\n value: resolveValue(option),\n label: resolveLabel(option) ?? '',\n disabled: resolveDisabled(option),\n original: option,\n });\n\n return { toEntry, getField, resolveValue, resolveLabel, resolveDisabled, asText, equals };\n}\n","/**\n * Substitutes the `{0}` token of a (possibly user-overridden) label with a value.\n * Plain split/join — never interprets `$` sequences in `value` (unlike `String.replace`).\n */\nexport function formatLabel(template: string, value: string | number): string {\n return template.split('{0}').join(String(value));\n}\n","import { isDevMode } from '@angular/core';\n\n// Dev-only a11y guard shared by form controls that require an accessible name\n// (`ariaLabel`/`ariaLabelledBy`/`label`). Centralizes the \"how to warn\" (console + dev-mode\n// gating) so each component only supplies its own trigger condition and message text.\nexport function warnMissingAccessibleName(componentTag: string, message: string): void {\n if (isDevMode()) {\n console.warn(`[${componentTag}] ${message}`);\n }\n}\n","/*\n * Public API Surface of ui-kit/forms\n *\n * Shared form infrastructure: the base classes every `ui-*` field inherits\n * from, plus the helpers those fields rely on. Importing a field component\n * (e.g. `@4sh/ui-kit/forms/ui-input`) pulls this in automatically — you only import\n * from here directly when building your OWN field on top of the kit's\n * conventions.\n */\n\nexport * from './lib/base-control-value-accessor';\nexport * from './lib/base-form-field';\nexport * from './lib/overlay-positions';\nexport * from './lib/mask-engine';\nexport * from './lib/option-resolver';\nexport * from './lib/format-label';\nexport * from './lib/warn-missing-accessible-name';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MACmB,wBAAwB,CAAA;AAwB5C,IAAA,WAAA,GAAA;AAvBiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAEvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,IAAI;qFAAC;QACvB,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,KAAK;oFAAC;QACvB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,IAAI;sFAAC;;QAExB,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK;2FAAC;;QAE9B,IAAA,CAAA,aAAa,GAAG,MAAM,CAA0B,IAAI;0FAAC;;QAErD,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,KAAK;4FAAC;;QAE/B,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc,E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
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms.mjs","sources":["../../../projects/ui-kit/forms/src/lib/base-control-value-accessor.ts","../../../projects/ui-kit/forms/src/lib/base-form-field.ts","../../../projects/ui-kit/forms/src/lib/overlay-positions.ts","../../../projects/ui-kit/forms/src/lib/mask-engine.ts","../../../projects/ui-kit/forms/src/lib/date-utils.ts","../../../projects/ui-kit/forms/src/lib/option-resolver.ts","../../../projects/ui-kit/forms/src/lib/format-label.ts","../../../projects/ui-kit/forms/src/lib/warn-missing-accessible-name.ts","../../../projects/ui-kit/forms/src/public-api.ts","../../../projects/ui-kit/forms/src/4sh-ui-kit-forms.ts"],"sourcesContent":["import {\n afterNextRender,\n computed,\n DestroyRef,\n effect,\n inject,\n Injector,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n ControlValueAccessor,\n NgControl,\n PristineChangeEvent,\n StatusChangeEvent,\n TouchedChangeEvent,\n ValidationErrors,\n} from '@angular/forms';\n\n/**\n * Base class for form components (`ui-checkbox`, `ui-radio`, `ui-input`…).\n *\n * Implements `ControlValueAccessor` and mirrors the attached `NgControl` state\n * into signals, so templates/styles can react to it declaratively:\n *\n * - `touched` / `dirty` / `pristine` / `untouched` — interaction state\n * - `controlInvalid` / `controlErrors` — validation state\n * - `controlDisabled` — driven by `control.disable()`\n * - `showError` — invalid AND (touched or dirty),\n * the usual \"when to paint red\" rule\n *\n * The subscription is wired automatically after first render and cleaned up on\n * destroy. Subclasses only have to:\n * 1. implement `writeValue()` (form → view),\n * 2. call `emitChange(value)` on user interaction (view → form),\n * 3. call `emitTouch()` on blur,\n * 4. declare the DI provider:\n * `{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MyComponent), multi: true }`.\n *\n * Works with reactive forms, template-driven forms, or standalone (no form at\n * all — the signals simply keep their defaults).\n */\nexport abstract class BaseControlValueAccessor<T> implements ControlValueAccessor {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly dirty = signal(false);\n readonly pristine = signal(true);\n readonly touched = signal(false);\n readonly untouched = signal(true);\n /** Validation state of the attached control (false when no control). */\n readonly controlInvalid = signal(false);\n /** Validation errors of the attached control (null when valid / no control). */\n readonly controlErrors = signal<ValidationErrors | null>(null);\n /** Disabled state driven by the forms API (`control.disable()`), not by the `disabled` input. */\n readonly controlDisabled = signal(false);\n /** True when the error state should be surfaced to the user. */\n readonly showError = computed(() => this.controlInvalid() && (this.touched() || this.dirty()));\n\n protected onChange: (value: T) => void = () => {\n /* noop until registered */\n };\n protected onTouched: () => void = () => {\n /* noop until registered */\n };\n\n constructor() {\n // NgControl injects lazily (after the directive tree is built) to avoid\n // the classic NgControl ↔ value-accessor circular dependency.\n afterNextRender(() => this.watchNgControlEvents());\n }\n\n /** Write the form value into the component state (form → view). */\n abstract writeValue(value: T): void;\n\n registerOnChange(fn: (value: T) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.controlDisabled.set(isDisabled);\n }\n\n /** Propagate a user-driven value change to the form (view → form). */\n protected emitChange(value: T): void {\n this.onChange(value);\n }\n\n /** Mark the control as touched (call on blur). */\n protected emitTouch(): void {\n this.onTouched();\n this.touched.set(true);\n this.untouched.set(false);\n }\n\n /** Mirror the NgControl state into the signals. Wired automatically; safe to call once manually if needed. */\n protected watchNgControlEvents(): void {\n const control = this.injector.get(NgControl, null, { optional: true, self: true })?.control;\n if (!control) return;\n\n const mirror = () => {\n this.pristine.set(control.pristine);\n this.dirty.set(control.dirty);\n this.touched.set(control.touched);\n this.untouched.set(control.untouched);\n this.controlInvalid.set(control.invalid);\n this.controlErrors.set(control.errors);\n };\n\n // Signal-forms interop provides a fake NgControl without an `events`\n // stream, but its getters read the field's signals: mirroring inside\n // an effect tracks them and keeps the state live.\n if (!control.events) {\n effect(mirror, { injector: this.injector });\n return;\n }\n\n // Seed with the current state (events only fire on transitions).\n mirror();\n\n control.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {\n if (event instanceof PristineChangeEvent) {\n this.pristine.set(event.pristine);\n this.dirty.set(!event.pristine);\n } else if (event instanceof TouchedChangeEvent) {\n this.touched.set(event.touched);\n this.untouched.set(!event.touched);\n } else if (event instanceof StatusChangeEvent) {\n this.controlInvalid.set(event.status === 'INVALID');\n this.controlErrors.set(control.errors);\n }\n });\n }\n}\n","import { booleanAttribute, computed, Directive, input, signal } from '@angular/core';\nimport { BaseControlValueAccessor } from './base-control-value-accessor';\nimport { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\nexport type FieldSize = 'default' | 'small';\n/** Visual validation status (subset of `UiFeedbackLevel`, shared with `ui-helper`). */\nexport type FieldLevel = Extract<UiFeedbackLevel, 'default' | 'success' | 'error'>;\n/**\n * Placement of the floating label (\"float label\" mode):\n * - `over`: rises above the box, where a classic label sits,\n * - `in`: rises to a band reserved at the top **inside** the box,\n * - `on`: rises **onto** the top border, notching it.\n */\nexport type FieldFloatLabel = 'over' | 'in' | 'on';\n\nlet nextUid = 0;\n\n/**\n * Base class for every standalone form control (`ui-checkbox`, `ui-toggle`,\n * `ui-slider`, `ui-nudger`…): the CVA plumbing shared by all of them, without\n * any \"box\" chrome (no label/helper/error message rendering).\n *\n * Provides the common inputs (aria*, id/name, required/disabled/readonly/\n * invalid, tabindex), the auto-generated id machinery (`resolvedId`,\n * `messageId`), the `modelValue` signal with the default `writeValue`, and the\n * derived `isDisabled` / `isInvalid` states. Extends `BaseControlValueAccessor`:\n * subclasses call `emitChange` / `emitTouch` on user interaction.\n *\n * Decorated with `@Directive()` (no selector) so the signal inputs are inherited\n * correctly by the concrete components.\n */\n@Directive()\nexport abstract class BaseFieldControl<T> extends BaseControlValueAccessor<T> {\n /** Accessible name when no visible label is provided. */\n ariaLabel = input<string>();\n /** id of an external element that labels this control. */\n ariaLabelledBy = input<string>();\n /** id forwarded to the native input (auto-generated when omitted). */\n inputId = input<string>();\n /** name forwarded to the native input. */\n name = input<string>();\n /** Required marker (*) + native required attribute. */\n required = input(false, { transform: booleanAttribute });\n /** Disables the field (native attribute). */\n disabled = input(false, { transform: booleanAttribute });\n /** Read-only (native attribute). */\n readonly = input(false, { transform: booleanAttribute });\n /** Forces the error styling (automatic when the attached control is invalid and touched/dirty). */\n invalid = input(false, { transform: booleanAttribute });\n /** tabindex forwarded to the native input. */\n tabindex = input<number>();\n\n /** @ignore Auto-generated unique id (prefix branded via `uidPrefix`). */\n protected readonly uid = `${this.uidPrefix()}-${nextUid++}`;\n /** @ignore Current value (written by the form or by user input). */\n protected readonly modelValue = signal<T | undefined>(undefined);\n\n /** @ignore */\n protected readonly resolvedId = computed(() => this.inputId() ?? this.uid);\n /** @ignore id of the message (for aria-describedby). */\n protected readonly messageId = computed(() => `${this.resolvedId()}-message`);\n /** @ignore Input disabled OR control disabled (form API). */\n protected readonly isDisabled = computed(() => this.disabled() || this.controlDisabled());\n /** @ignore Explicit error OR invalid control worth surfacing. */\n protected readonly isInvalid = computed(() => this.invalid() || this.showError());\n\n writeValue(value: T): void {\n this.modelValue.set(value);\n }\n\n /** @ignore Prefix of the auto-generated id — override to brand it per component. */\n protected uidPrefix(): string {\n return 'ui-field';\n }\n}\n\n/**\n * Base class for \"box\" form fields (`ui-input`, `ui-input-number`,\n * `ui-input-mask`, `ui-textarea`…).\n *\n * Extends `BaseFieldControl` with the box-specific inputs (label, helper,\n * error, size, level) and the derived state (effective level, displayed\n * message/value). Subclasses only handle their own `<input>` (specific\n * parsing/formatting) and call `emitChange` / `emitTouch`.\n */\n@Directive()\nexport abstract class BaseFormField<T> extends BaseFieldControl<T> {\n /** Label (rendered via `ui-label`). */\n label = input<string>();\n /** Helper text under the field (rendered via `ui-helper`). */\n helperText = input<string>();\n /** Error message shown in place of the helper when the field is in error. */\n errorText = input<string>();\n /** Prefixes the message under the field (helper or error) with a decorative icon. */\n showMessageIcon = input(false, { transform: booleanAttribute });\n /** Overrides the glyph shown by `showMessageIcon`. */\n messageIcon = input<string>();\n /** Size. */\n size = input<FieldSize>('default');\n /** Explicit validation status (`error` is forced when the control is invalid + touched). */\n level = input<FieldLevel>('default');\n /**\n * Floating label placement. Unset = classic label above the box.\n *\n * The label then plays the placeholder role while at rest, so the native\n * `placeholder` is neutralised (see `hasFloatLabel`).\n */\n floatLabel = input<FieldFloatLabel>();\n\n /** @ignore There is a label to float: a `floatLabel` alone has nothing to move. */\n protected readonly hasFloatLabel = computed(() => !!this.floatLabel() && !!this.label());\n\n /** @ignore Effective level: error when invalid, otherwise the requested `level`. */\n protected readonly effectiveLevel = computed<FieldLevel>(() =>\n this.isInvalid() ? 'error' : this.level(),\n );\n /** @ignore Displayed message: errorText when in error (if provided), otherwise helperText. */\n protected readonly displayMessage = computed(() =>\n this.isInvalid() && this.errorText() ? this.errorText() : this.helperText(),\n );\n /** @ignore Value shown in the input (string). Override for specific formatting. */\n protected readonly displayValue = computed(() => {\n const v = this.modelValue();\n return v === undefined || v === null ? '' : String(v);\n });\n}\n","import { ConnectedPosition } from '@angular/cdk/overlay';\n\n/**\n * Standard dropdown-panel anchoring shared by the overlay form fields\n * (`ui-select`, `ui-autocomplete`, `ui-input-tags`, `ui-datepicker`):\n * below the field, flipped above when `autoFlip`, flipped horizontally\n * (right-aligned) whenever there isn't enough room on the right.\n */\nexport function dropdownOverlayPositions(autoFlip: boolean): ConnectedPosition[] {\n const belowStart: ConnectedPosition = {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n offsetY: 8,\n };\n const belowEnd: ConnectedPosition = {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n offsetY: 8,\n };\n const aboveStart: ConnectedPosition = {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n offsetY: -8,\n };\n const aboveEnd: ConnectedPosition = {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n offsetY: -8,\n };\n return autoFlip ? [belowStart, belowEnd, aboveStart, aboveEnd] : [belowStart, belowEnd];\n}\n","/**\n * Pure masking engine shared by `ui-input-mask` and `ui-datepicker` (auto-formatting the typed\n * date). Same precedent as `overlay-positions.ts` in this folder: framework-free functions, no\n * class/Directive/Component, reusable by any form component that needs literal-inserting input\n * masking. Extracted from `ui-input-mask.ts` — behavior is a byte-for-byte copy, only `this.mask()`\n * /`this.ranges()`/`this.slotChar()` become explicit parameters.\n */\n\n/** Mask tokens → accepted character class. */\nexport const MASK_TOKENS: Record<string, RegExp> = {\n '9': /[0-9]/, // digit\n a: /[a-zA-Z]/, // letter\n '*': /[a-zA-Z0-9]/, // alphanumeric\n};\n\nexport interface MaskBounds {\n min: number;\n max: number;\n}\n\nexport interface MaskSlot {\n char: string | null;\n rgx?: RegExp;\n bound?: MaskBounds & { pos: number; len: number };\n}\n\nexport interface MaskBuildResult {\n display: string;\n masked: string;\n data: string;\n tokenIndices: number[];\n}\n\n/** Parse the `ranges` input (`\"1-31 1-12 1900-2100\"`) into one bound per numeric segment. */\nexport function parseMaskRanges(ranges: string): (MaskBounds | null)[] {\n return ranges\n .trim()\n .split(/\\s+/)\n .map((part) => {\n const m = /^(\\d+)-(\\d+)$/.exec(part);\n return m ? { min: Number(m[1]), max: Number(m[2]) } : null;\n });\n}\n\n/**\n * Resolve the mask template into slots: literals, input slots, and the `ranges` bounds attached\n * to every slot of the numeric segment (consecutive `9` tokens) it belongs to.\n */\nexport function buildMaskSlots(\n mask: string,\n bounds: (MaskBounds | null)[],\n tokens: Record<string, RegExp> = MASK_TOKENS,\n): MaskSlot[] {\n const slots: MaskSlot[] = [];\n const segments: MaskSlot[][] = [];\n let segment: MaskSlot[] | null = null;\n\n for (const m of mask) {\n const rgx = tokens[m];\n const slot: MaskSlot = rgx ? { char: null, rgx } : { char: m };\n slots.push(slot);\n if (rgx && m === '9') {\n if (!segment) segments.push((segment = []));\n segment.push(slot);\n } else {\n segment = null;\n }\n }\n\n // Every segment gets a `.bound`, even unranged ones (±Infinity = no-op range): `pos`/`len` are\n // needed for `atSegmentEnd` regardless, else an unranged segment (e.g. ui-datepicker's year)\n // never auto-inserts its own following literal (FSHSP-118).\n segments.forEach((seg, i) => {\n const range = bounds[i] ?? { min: -Infinity, max: Infinity };\n seg.forEach((slot, pos) => (slot.bound = { ...range, pos, len: seg.length }));\n });\n\n return slots;\n}\n\n/** Keep only the data characters (alphanumeric) of a raw input string. */\nexport function extractMaskData(raw: string): string {\n return raw.replace(/[^a-zA-Z0-9]/g, '');\n}\n\n/**\n * Can `ch` fill this slot? It must match the token class and — when the segment is bounded\n * AND `enforceBounds` — the digits typed so far plus `ch` must still admit at least one in-range\n * completion of the remaining positions (`2` then `4` is refused on `0-23`, `2` then `3` is\n * accepted).\n *\n * `enforceBounds = false` skips that second check (still requires the token class to match):\n * meant for re-deriving the mask after characters were REMOVED, not typed. The bounds check\n * exists to reject an invalid *new* leading digit while typing forward (e.g. `8` can never start\n * a valid `1-31` day, so it's skipped rather than accepted) — applied instead to the digits left\n * over after a deletion, that same skip can discard a still-valid residual digit and misalign\n * every segment after it. See `autoFormatSegments`.\n */\nexport function acceptsMaskChar(\n slot: MaskSlot,\n segment: string,\n ch: string,\n enforceBounds = true,\n): boolean {\n if (!slot.rgx?.test(ch)) return false;\n const bound = slot.bound;\n if (!enforceBounds || !bound) return true;\n const scale = 10 ** (bound.len - bound.pos - 1);\n const low = Number(segment + ch) * scale;\n return low <= bound.max && low + scale - 1 >= bound.min;\n}\n\n/** Apply the mask template to a sequence of data characters (fills empty positions with `slotChar`). */\nexport function applyMaskTemplate(\n slots: MaskSlot[],\n data: string,\n slotChar: string,\n): MaskBuildResult {\n let di = 0;\n let display = '';\n let masked = '';\n let lastFilled = 0;\n let used = '';\n const tokenIndices: number[] = [];\n // Characters already accepted in the current numeric segment (drives the bounds check).\n let segment = '';\n\n for (const slot of slots) {\n if (slot.char !== null) {\n display += slot.char;\n masked += slot.char;\n continue;\n }\n tokenIndices.push(display.length); // index of this token position in `display`\n if (!slot.bound || slot.bound.pos === 0) segment = '';\n while (di < data.length && !acceptsMaskChar(slot, segment, data[di])) di++;\n if (di < data.length) {\n display += data[di];\n masked += data[di];\n used += data[di];\n if (slot.bound) segment += data[di];\n di++;\n lastFilled = masked.length;\n } else {\n display += slotChar;\n }\n }\n // Masked value = up to the last typed character (no trailing literals/slots).\n return { display, masked: masked.slice(0, lastFilled), data: used, tokenIndices };\n}\n\n/** Caret position for `n` typed data characters (literals skipped, end-of-text once all filled). */\nexport function caretForMask(tokenIndices: number[], n: number, length: number): number {\n if (n <= 0) return tokenIndices[0] ?? 0;\n if (n >= tokenIndices.length) return length; // all filled → end\n return tokenIndices[n]; // next input position (literals skipped)\n}\n\n/**\n * Auto-format-as-you-type variant of {@link applyMaskTemplate}: inserts a literal separator as\n * soon as the segment right before it is complete, without ever padding unfilled positions with\n * a filler character (unlike `applyMaskTemplate`, meant for a field that displays the full\n * template at rest). Used by `ui-datepicker`'s typeable trigger to auto-insert \"/\" as digits are\n * typed, the same way a card-expiry field auto-inserts its \"/\".\n */\nexport function autoFormatSegments(\n slots: MaskSlot[],\n data: string,\n { enforceBounds = true }: { enforceBounds?: boolean } = {},\n): { text: string; tokenIndices: number[]; dataEnd: number } {\n let di = 0;\n let text = '';\n let segment = '';\n let atSegmentEnd = false;\n const tokenIndices: number[] = [];\n // Position right after the last DATA character appended — unlike `text.length`, never lands\n // after a separator inserted eagerly (see the \"auto-insert\" doc above) with nothing typed past\n // it yet. Landing the caret there instead (see call sites) means a Backspace right after a\n // just-completed segment removes that segment's last digit, not the decorative separator —\n // which would otherwise be silently re-inserted next render, making Backspace look like it did\n // nothing (FSHSP-118).\n let dataEnd = 0;\n\n for (const slot of slots) {\n if (slot.char !== null) {\n // Append EVERY consecutive literal after a completed segment, not just the first — needed\n // for a multi-char separator like range's \" - \" (FSHSP-118). `atSegmentEnd` is left as-is\n // here; the next digit slot always resets it before it's read again.\n if (atSegmentEnd) text += slot.char;\n continue;\n }\n tokenIndices.push(text.length);\n if (!slot.bound || slot.bound.pos === 0) segment = '';\n while (di < data.length && !acceptsMaskChar(slot, segment, data[di], enforceBounds)) di++;\n if (di >= data.length) break; // no more data: stop, no filler\n text += data[di];\n dataEnd = text.length;\n if (slot.bound) segment += data[di];\n atSegmentEnd = !!slot.bound && slot.bound.pos === slot.bound.len - 1;\n di++;\n }\n return { text, tokenIndices, dataEnd };\n}\n","/**\n * Pure date helpers (no framework dependency), shared by every field that has to cross\n * the `Date` ↔ ISO-string boundary — `ui-datepicker`, which parses what the user types,\n * and `ui-input-date`, which reads what the browser's native picker hands back.\n *\n * They lived inside `ui-datepicker`'s entry point while it was the only caller (FSHSP-209\n * moved them here). Two entry points must never import each other, so the second caller\n * left one choice: the shared `forms/` entry point, which exists for exactly this — the\n * helpers a field is built on. Serializing a `Date` from its LOCAL components rather than\n * through `toISOString()` is the subtle part, and it must not be re-derived twice.\n */\n\nexport function startOfDay(d: Date): Date {\n const x = new Date(d);\n x.setHours(0, 0, 0, 0);\n return x;\n}\nexport function firstOfMonth(d: Date): Date {\n return new Date(d.getFullYear(), d.getMonth(), 1);\n}\nexport function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean {\n if (!a || !b) return false;\n return (\n a.getFullYear() === b.getFullYear() &&\n a.getMonth() === b.getMonth() &&\n a.getDate() === b.getDate()\n );\n}\nexport function addDays(d: Date, n: number): Date {\n const x = new Date(d);\n x.setDate(x.getDate() + n);\n return x;\n}\nexport function addMonths(d: Date, n: number): Date {\n return new Date(d.getFullYear(), d.getMonth() + n, 1);\n}\n/** Build a Date and reject overflowed components (e.g. 31 Feb). */\nexport function finalizeParsed(\n year: number,\n month: number,\n day: number,\n h: number,\n min: number,\n): Date | null {\n if (month < 0 || month > 11 || day < 1 || day > 31 || h > 23 || min > 59) return null;\n const d = new Date(year, month, day, h, min, 0, 0);\n if (d.getFullYear() !== year || d.getMonth() !== month || d.getDate() !== day) return null;\n return d;\n}\n\nconst ISO_DATE_RE = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst ISO_DATETIME_RE = /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})$/;\nconst ISO_TIME_RE = /^(\\d{2}):(\\d{2})$/;\n\nfunction pad2(n: number): string {\n return String(n).padStart(2, '0');\n}\n/** Serialize a `Date` to `\"yyyy-MM-dd\"` from its LOCAL components — never `toISOString()`\n * (which converts to UTC and can shift the day by ±1 depending on the timezone). */\nexport function toIsoDate(d: Date): string {\n return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;\n}\n/** `\"HH:mm\"` — the shape a native `<input type=\"time\">` reads and writes. */\nexport function toIsoTime(d: Date): string {\n return `${pad2(d.getHours())}:${pad2(d.getMinutes())}`;\n}\n/** `\"yyyy-MM-ddTHH:mm\"` — date part built the same local, never-UTC way as {@link toIsoDate}. */\nexport function toIsoDateTime(d: Date): string {\n return `${toIsoDate(d)}T${pad2(d.getHours())}:${pad2(d.getMinutes())}`;\n}\n/** Strict `\"yyyy-MM-dd\"` parser (rejects anything else, incl. overflowed dates via `finalizeParsed`). */\nexport function parseIsoDate(s: string): Date | null {\n const m = ISO_DATE_RE.exec(s);\n if (!m) return null;\n return finalizeParsed(Number(m[1]), Number(m[2]) - 1, Number(m[3]), 0, 0);\n}\n/** Strict `\"yyyy-MM-ddTHH:mm\"` parser (`showTime`/`timeOnly` round-trip). */\nexport function parseIsoDateTime(s: string): Date | null {\n const m = ISO_DATETIME_RE.exec(s);\n if (!m) return null;\n return finalizeParsed(Number(m[1]), Number(m[2]) - 1, Number(m[3]), Number(m[4]), Number(m[5]));\n}\n/**\n * Strict `\"HH:mm\"` parser, anchored on `reference` (default: today).\n *\n * A bare time is not a point in time; the caller has to say on which day it lands. Mirrors\n * what `ui-datepicker` does in `timeOnly` mode — it too carries a full `Date` — so both\n * components hand back the same shape.\n */\nexport function parseIsoTime(s: string, reference: Date = new Date()): Date | null {\n const m = ISO_TIME_RE.exec(s);\n if (!m) return null;\n return finalizeParsed(\n reference.getFullYear(),\n reference.getMonth(),\n reference.getDate(),\n Number(m[1]),\n Number(m[2]),\n );\n}\n/** Accepts a `Date` as-is, or parses a `\"yyyy-MM-dd\"` string — used to let config inputs\n * (`minDate`/`maxDate`/`disabledDates`) take either shape. Invalid strings degrade to `null`\n * (no constraint) rather than throwing: a malformed config shouldn't crash the picker. */\nexport function normalizeDateInput(v: Date | string | null | undefined): Date | null {\n if (!v) return null;\n return v instanceof Date ? v : parseIsoDate(v);\n}\n","/**\n * Shared option-resolution helpers for list-based form fields\n * (`ui-select`, `ui-autocomplete`, `ui-input-tags`).\n *\n * Options can be primitives or objects; `optionValue` / `optionLabel` /\n * `optionDisabled` are (dot-path) fields read on object options, and `dataKey`\n * drives object equality. The accessors are passed as thunks so the resolver\n * stays reactive when bound to signal inputs.\n */\n\n/** Normalized option: resolved value/label/disabled + the original option. */\nexport interface OptionEntry {\n value: unknown;\n label: string;\n disabled: boolean;\n original: unknown;\n}\n\n/** Field accessors (typically the component's signal inputs). */\nexport interface OptionResolverFields {\n optionValue: () => string | undefined;\n optionLabel: () => string | undefined;\n optionDisabled: () => string | undefined;\n dataKey: () => string | undefined;\n}\n\nexport interface OptionResolver {\n /** Normalizes an option into an {@link OptionEntry}. */\n toEntry(option: unknown): OptionEntry;\n\n /** Reads a (dot-path) field from an object (`undefined` otherwise). */\n getField(target: unknown, path: string | undefined): unknown;\n\n /** Model value of an option (`optionValue` field, or the option itself). */\n resolveValue(option: unknown): unknown;\n\n /** Display label of an option (`optionLabel` field, `label` key, or text). */\n resolveLabel(option: unknown): string | null;\n\n /** Disabled flag of an option (`optionDisabled` field, or `disabled` key). */\n resolveDisabled(option: unknown): boolean;\n\n /** `String(value)`, or `null` for null/undefined. */\n asText(value: unknown): string | null;\n\n /** Value equality — by `dataKey` for objects, strict otherwise. */\n equals(a: unknown, b: unknown): boolean;\n}\n\nexport function createOptionResolver(fields: OptionResolverFields): OptionResolver {\n const isObject = (option: unknown): option is Record<string, unknown> =>\n typeof option === 'object' && option !== null;\n\n const getField = (target: unknown, path: string | undefined): unknown => {\n if (!path || !isObject(target)) return undefined;\n return path\n .split('.')\n .reduce<unknown>((acc, key) => (isObject(acc) ? acc[key] : undefined), target);\n };\n\n const asText = (value: unknown): string | null =>\n value === null || value === undefined ? null : String(value);\n\n const resolveValue = (option: unknown): unknown => {\n const field = fields.optionValue();\n if (field && isObject(option)) return getField(option, field);\n return option;\n };\n\n const resolveLabel = (option: unknown): string | null => {\n const field = fields.optionLabel();\n if (field && isObject(option)) return asText(getField(option, field));\n if (isObject(option) && 'label' in option) return asText(option['label']);\n return asText(option);\n };\n\n const resolveDisabled = (option: unknown): boolean => {\n const field = fields.optionDisabled();\n if (field && isObject(option)) return !!getField(option, field);\n if (isObject(option) && 'disabled' in option) return !!option['disabled'];\n return false;\n };\n\n const equals = (a: unknown, b: unknown): boolean => {\n const key = fields.dataKey();\n if (key && isObject(a) && isObject(b)) return a[key] === b[key];\n return a === b;\n };\n\n const toEntry = (option: unknown): OptionEntry => ({\n value: resolveValue(option),\n label: resolveLabel(option) ?? '',\n disabled: resolveDisabled(option),\n original: option,\n });\n\n return { toEntry, getField, resolveValue, resolveLabel, resolveDisabled, asText, equals };\n}\n","/**\n * Substitutes the `{0}` token of a (possibly user-overridden) label with a value.\n * Plain split/join — never interprets `$` sequences in `value` (unlike `String.replace`).\n */\nexport function formatLabel(template: string, value: string | number): string {\n return template.split('{0}').join(String(value));\n}\n","import { isDevMode } from '@angular/core';\n\n// Dev-only a11y guard shared by form controls that require an accessible name\n// (`ariaLabel`/`ariaLabelledBy`/`label`). Centralizes the \"how to warn\" (console + dev-mode\n// gating) so each component only supplies its own trigger condition and message text.\nexport function warnMissingAccessibleName(componentTag: string, message: string): void {\n if (isDevMode()) {\n console.warn(`[${componentTag}] ${message}`);\n }\n}\n","/*\n * Public API Surface of ui-kit/forms\n *\n * Shared form infrastructure: the base classes every `ui-*` field inherits\n * from, plus the helpers those fields rely on. Importing a field component\n * (e.g. `@4sh/ui-kit/forms/ui-input`) pulls this in automatically — you only import\n * from here directly when building your OWN field on top of the kit's\n * conventions.\n */\n\nexport * from './lib/base-control-value-accessor';\nexport * from './lib/base-form-field';\nexport * from './lib/overlay-positions';\nexport * from './lib/mask-engine';\nexport * from './lib/date-utils';\nexport * from './lib/option-resolver';\nexport * from './lib/format-label';\nexport * from './lib/warn-missing-accessible-name';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MACmB,wBAAwB,CAAA;AAwB5C,IAAA,WAAA,GAAA;AAvBiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAEvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,IAAI;qFAAC;QACvB,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,KAAK;oFAAC;QACvB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,IAAI;sFAAC;;QAExB,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK;2FAAC;;QAE9B,IAAA,CAAA,aAAa,GAAG,MAAM,CAA0B,IAAI;0FAAC;;QAErD,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,KAAK;4FAAC;;QAE/B,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;sFAAC;QAEpF,IAAA,CAAA,QAAQ,GAAuB,MAAK;;AAE9C,QAAA,CAAC;QACS,IAAA,CAAA,SAAS,GAAe,MAAK;;AAEvC,QAAA,CAAC;;;QAKC,eAAe,CAAC,MAAM,IA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AC;IAC9C;AACF;;ACTA;;;;;;;;AAQG;;ACRH;;AAEG;;"}
|
|
@@ -16,10 +16,10 @@ let nextUid = 0;
|
|
|
16
16
|
* </ui-accordion-panel>
|
|
17
17
|
*/
|
|
18
18
|
class UiAccordionHeader {
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
20
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.5", type: UiAccordionHeader, isStandalone: true, selector: "[uiAccordionHeader], ui-accordion-header", ngImport: i0 }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionHeader, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{ selector: '[uiAccordionHeader], ui-accordion-header' }]
|
|
25
25
|
}] });
|
|
@@ -28,10 +28,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
28
28
|
* so this is only needed to disambiguate. Kept for symmetry with the header slot.
|
|
29
29
|
*/
|
|
30
30
|
class UiAccordionContent {
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.5", type: UiAccordionContent, isStandalone: true, selector: "[uiAccordionContent], ui-accordion-content", ngImport: i0 }); }
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionContent, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{ selector: '[uiAccordionContent], ui-accordion-content' }]
|
|
37
37
|
}] });
|
|
@@ -102,16 +102,16 @@ class UiAccordionPanel {
|
|
|
102
102
|
this.accordion.open(this.value(), event);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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(--ui-accordion-header-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));text-align:left;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-accordion-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-accordion-header-focus-ring-color, 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(--ui-accordion-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:var(--ui-accordion-control-size, 2.5rem);height:var(--ui-accordion-control-size, 2.5rem);border-radius:var(--radius-default);background-color:var(--ui-accordion-control-surface, var(--navigation-high-surface-default));color:var(--ui-accordion-control-color, var(--navigation-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-accordion-control-color-hover, var(--navigation-high-content-hover))}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-accordion-control-color-pressed, var(--navigation-high-content-pressed))}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-accordion-control-color-focus, var(--navigation-high-content-focused));box-shadow:inset 0 0 0 var(--stroke-default) var(--ui-accordion-control-stroke-focus, 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(--ui-accordion-content-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--ui-accordion-header-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-accordion-control-color-disabled, 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
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordionPanel, decorators: [{
|
|
109
109
|
type: Component,
|
|
110
110
|
args: [{ selector: 'ui-accordion-panel', imports: [UiIcon, UiSeparator], host: {
|
|
111
111
|
class: 'ui-accordion-panel',
|
|
112
112
|
'[class._active]': 'active()',
|
|
113
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(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-accordion-focus-ring-width, var(--ui-focus-ring-width, 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:var(--ui-accordion-control-size, 2.5rem);height:var(--ui-accordion-control-size, 2.5rem);border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, 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"] }]
|
|
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(--ui-accordion-header-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));text-align:left;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-accordion-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-accordion-header-focus-ring-color, 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(--ui-accordion-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:var(--ui-accordion-control-size, 2.5rem);height:var(--ui-accordion-control-size, 2.5rem);border-radius:var(--radius-default);background-color:var(--ui-accordion-control-surface, var(--navigation-high-surface-default));color:var(--ui-accordion-control-color, var(--navigation-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-accordion-control-color-hover, var(--navigation-high-content-hover))}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-accordion-control-color-pressed, var(--navigation-high-content-pressed))}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-accordion-control-color-focus, var(--navigation-high-content-focused));box-shadow:inset 0 0 0 var(--stroke-default) var(--ui-accordion-control-stroke-focus, 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(--ui-accordion-content-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--ui-accordion-header-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-accordion-control-color-disabled, var(--navigation-high-content-disabled))}\n"] }]
|
|
115
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
116
|
/**
|
|
117
117
|
* ui-accordion — container grouping a set of collapsible {@link UiAccordionPanel}s.
|
|
@@ -221,10 +221,10 @@ class UiAccordion {
|
|
|
221
221
|
}
|
|
222
222
|
items[next].focus();
|
|
223
223
|
}
|
|
224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", 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
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAccordion, decorators: [{
|
|
228
228
|
type: Component,
|
|
229
229
|
args: [{ selector: 'ui-accordion', template: '<ng-content />', host: {
|
|
230
230
|
class: 'ui-accordion',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-accordion.mjs","sources":["../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion.ts","../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion-panel.html","../../../projects/ui-kit/informative/ui-accordion/src/public-api.ts","../../../projects/ui-kit/informative/ui-accordion/src/4sh-ui-kit-informative-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/base/ui-icon';\nimport { UiSeparator } from '@4sh/ui-kit/informative/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 = UiAccordionValue | UiAccordionValue[] | null | 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(\n (p) => p.headerButton().nativeElement === document.activeElement,\n );\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':\n next = (current + 1) % items.length;\n break;\n case 'ArrowUp':\n next = (current - 1 + items.length) % items.length;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = items.length - 1;\n 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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BAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA,CAAA,CAAA;;2FAOf,WAAW,EAAA,UAAA,EAAA,CAAA;kBATvB,SAAS;+BACE,cAAc,EAAA,QAAA,EACd,gBAAgB,EAAA,IAAA,EAEpB;AACJ,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA;w/BA0ByC,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElL5D;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-accordion.mjs","sources":["../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion.ts","../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion-panel.html","../../../projects/ui-kit/informative/ui-accordion/src/public-api.ts","../../../projects/ui-kit/informative/ui-accordion/src/4sh-ui-kit-informative-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/base/ui-icon';\nimport { UiSeparator } from '@4sh/ui-kit/informative/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 = UiAccordionValue | UiAccordionValue[] | null | 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(\n (p) => p.headerButton().nativeElement === document.activeElement,\n );\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':\n next = (current + 1) % items.length;\n break;\n case 'ArrowUp':\n next = (current - 1 + items.length) % items.length;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = items.length - 1;\n 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":";;;;;AA6BA;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,YA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AAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA;w/BA0ByC,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElL5D;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -137,15 +137,15 @@ class UiAlert {
|
|
|
137
137
|
this.dismissed.set(true);
|
|
138
138
|
this.closed.emit();
|
|
139
139
|
}
|
|
140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
141
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--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(--ui-alert-icon-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(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-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(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-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(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-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:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, 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(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
142
142
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiAlert, decorators: [{
|
|
144
144
|
type: Component,
|
|
145
145
|
args: [{ selector: 'ui-alert', imports: [UiIcon], host: {
|
|
146
146
|
'[style.display]': "dismissed() ? 'none' : 'block'",
|
|
147
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(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);font-family:var(--fontfamily-base);min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--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(--ui-alert-icon-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(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-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(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-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(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-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:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, 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"] }]
|
|
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(--ui-alert-gap, var(--units-sm));box-sizing:border-box;width:100%;padding:var(--ui-alert-padding-y, var(--units-sm)) var(--ui-alert-padding-x, var(--units-md));border:var(--ui-alert-stroke-width, var(--stroke-default)) solid transparent;border-radius:var(--ui-alert-radius, var(--radius-default));background-color:var(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));font-family:var(--ui-alert-font-family, var(--fontfamily-base));min-height:var(--ui-alert-min-height, 3.5rem)}.ui-alert .ui-alert-title{font-size:var(--ui-alert-title-font-size, var(--size-typography-title-sm))}.ui-alert .ui-alert-text{font-size:var(--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(--ui-alert-icon-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(--ui-alert-content-gap, var(--units-2xs));padding-right:var(--ui-alert-content-padding-right, var(--units-sm))}.ui-alert-title{font-family:var(--ui-alert-title-font-family, var(--fontfamily-title));font-weight:var(--ui-alert-title-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--ui-alert-text-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(--ui-alert-close-radius, var(--radius-xs));background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:var(--ui-alert-close-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(--ui-alert-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:var(--ui-alert-focus-ring-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:var(--ui-alert-min-height-large, 4.125rem)}.ui-alert._large .ui-alert-title{font-size:var(--ui-alert-title-font-size-large, var(--size-typography-title-md))}.ui-alert._large .ui-alert-text{font-size:var(--ui-alert-text-font-size-large, 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(--ui-alert-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-alert-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaulthigh-stroke-default))}.ui-alert._default._low{background-color:var(--ui-alert-surface, var(--informative-defaultlow-surface-default));color:var(--ui-alert-color, var(--informative-defaultlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-defaultlow-stroke-default))}.ui-alert._highlight._high{background-color:var(--ui-alert-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-alert-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlighthigh-stroke-default))}.ui-alert._highlight._low{background-color:var(--ui-alert-surface, var(--informative-highlightlow-surface-default));color:var(--ui-alert-color, var(--informative-highlightlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-highlightlow-stroke-default))}.ui-alert._success._high{background-color:var(--ui-alert-surface, var(--informative-successhigh-surface-default));color:var(--ui-alert-color, var(--informative-successhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-successhigh-stroke-default))}.ui-alert._success._low{background-color:var(--ui-alert-surface, var(--informative-successlow-surface-default));color:var(--ui-alert-color, var(--informative-successlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-successlow-stroke-default))}.ui-alert._warning._high{background-color:var(--ui-alert-surface, var(--informative-warninghigh-surface-default));color:var(--ui-alert-color, var(--informative-warninghigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninghigh-stroke-default))}.ui-alert._warning._low{background-color:var(--ui-alert-surface, var(--informative-warninglow-surface-default));color:var(--ui-alert-color, var(--informative-warninglow-content-default));border-color:var(--ui-alert-stroke, var(--informative-warninglow-stroke-default))}.ui-alert._error._high{background-color:var(--ui-alert-surface, var(--informative-errorhigh-surface-default));color:var(--ui-alert-color, var(--informative-errorhigh-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorhigh-stroke-default))}.ui-alert._error._low{background-color:var(--ui-alert-surface, var(--informative-errorlow-surface-default));color:var(--ui-alert-color, var(--informative-errorlow-content-default));border-color:var(--ui-alert-stroke, var(--informative-errorlow-stroke-default))}\n"] }]
|
|
149
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
150
|
|
|
151
151
|
/*
|