@ids-group-ltd/ids-design-system 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -0
- package/components.md +3 -1
- package/docs/agent/forms/ds-button.md +3 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +57 -40
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +12 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +17 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/migrations/0.12.3.json +83 -0
- package/package.json +1 -1
- package/styles/_control-line.scss +45 -0
- package/styles/_field-state.scss +14 -15
- package/styles/_focus.scss +31 -60
- package/styles/_tokens.scss +22 -31
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +8 -17
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +26 -29
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +10 -10
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +12 -2
|
@@ -66,7 +66,7 @@ class FieldGroupComponent {
|
|
|
66
66
|
provide: DS_FIELD_GROUP,
|
|
67
67
|
useExisting: forwardRef(() => FieldGroupComponent),
|
|
68
68
|
},
|
|
69
|
-
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";:host{--_field-group-bg-color: var(--ds-field-group-bg-color, var(--surface-default));--_field-group-border-color: var(--ds-field-group-border-color, var(--border-default));--_field-group-border-color-focus: var(--ds-field-group-border-color-focus, var(--accent));--_field-group-border-color-error: var(--ds-field-group-border-color-error, var(--error));--_field-group-radius: var(--ds-field-group-radius, var(--ds-radius-control));--_field-group-focus-shadow: var(--ds-field-group-focus-shadow, var(--ds-field-focus-shadow));--_field-group-divider-color: var(--ds-field-group-divider-color, var(--border-divider));display:inline-flex;align-items:stretch;width:fit-content;max-width:100%;background-color:var(--_field-group-bg-color);border:var(--border-width-default) solid var(--_field-group-border-color);border-radius:var(--_field-group-radius);overflow:hidden;transition:border-color var(--duration-fast) var(--ease-standard);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height)}:host(.sm){--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height)}:host(.lg){--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.full-width){display:flex;width:100%}:host(:hover:not(.disabled)){border-color:var(--border-strong)}:host(:focus-within:not(.disabled)){border-color:var(--_field-group-border-color-focus);box-shadow:var(--_field-group-focus-shadow)}:host(.invalid){border-color:var(--_field-group-border-color-error)}:host(.disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled)}:host ::ng-deep>*{flex:0 0 auto;min-width:0}:host ::ng-deep>[grow]{flex:1 1 0;min-width:0}:host ::ng-deep>*+*{border-left:var(--border-width-default) solid var(--_field-group-divider-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
|
+
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@charset \"UTF-8\";:host{--_field-group-bg-color: var(--ds-field-group-bg-color, var(--surface-default));--_field-group-border-color: var(--ds-field-group-border-color, var(--border-default));--_field-group-border-color-focus: var(--ds-field-group-border-color-focus, var(--accent));--_field-group-border-color-error: var(--ds-field-group-border-color-error, var(--error));--_field-group-radius: var(--ds-field-group-radius, var(--ds-radius-control));--_field-group-focus-shadow: var(--ds-field-group-focus-shadow, var(--ds-field-focus-shadow));--_field-group-focus-shadow-error: var(--ds-field-group-focus-shadow-error, var(--ds-field-focus-shadow-error));--_field-group-divider-color: var(--ds-field-group-divider-color, var(--border-divider));display:inline-flex;align-items:stretch;width:fit-content;max-width:100%;background-color:var(--_field-group-bg-color);border:var(--border-width-default) solid var(--_field-group-border-color);border-radius:var(--_field-group-radius);overflow:hidden;transition:border-color var(--duration-fast) var(--ease-standard);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height)}:host(.sm){--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height)}:host(.lg){--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.full-width){display:flex;width:100%}:host(:hover:not(.disabled,.invalid)){border-color:var(--border-strong)}:host(:focus-within:not(.disabled,.invalid)){border-color:var(--_field-group-border-color-focus);box-shadow:var(--_field-group-focus-shadow)}:host(.invalid:not(.disabled)){border-color:var(--_field-group-border-color-error)}:host(.invalid:not(.disabled):focus-within){box-shadow:var(--_field-group-focus-shadow-error)}:host(.disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled)}:host ::ng-deep>*{flex:0 0 auto;min-width:0}:host ::ng-deep>[grow]{flex:1 1 0;min-width:0}:host ::ng-deep>*+*{border-left:var(--border-width-default) solid var(--_field-group-divider-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
70
70
|
}
|
|
71
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FieldGroupComponent, decorators: [{
|
|
72
72
|
type: Component,
|
|
@@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
81
81
|
provide: DS_FIELD_GROUP,
|
|
82
82
|
useExisting: forwardRef(() => FieldGroupComponent),
|
|
83
83
|
},
|
|
84
|
-
], styles: ["@charset \"UTF-8\";:host{--_field-group-bg-color: var(--ds-field-group-bg-color, var(--surface-default));--_field-group-border-color: var(--ds-field-group-border-color, var(--border-default));--_field-group-border-color-focus: var(--ds-field-group-border-color-focus, var(--accent));--_field-group-border-color-error: var(--ds-field-group-border-color-error, var(--error));--_field-group-radius: var(--ds-field-group-radius, var(--ds-radius-control));--_field-group-focus-shadow: var(--ds-field-group-focus-shadow, var(--ds-field-focus-shadow));--_field-group-divider-color: var(--ds-field-group-divider-color, var(--border-divider));display:inline-flex;align-items:stretch;width:fit-content;max-width:100%;background-color:var(--_field-group-bg-color);border:var(--border-width-default) solid var(--_field-group-border-color);border-radius:var(--_field-group-radius);overflow:hidden;transition:border-color var(--duration-fast) var(--ease-standard);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height)}:host(.sm){--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height)}:host(.lg){--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.full-width){display:flex;width:100%}:host(:hover:not(.disabled)){border-color:var(--border-strong)}:host(:focus-within:not(.disabled)){border-color:var(--_field-group-border-color-focus);box-shadow:var(--_field-group-focus-shadow)}:host(.invalid){border-color:var(--_field-group-border-color-error)}:host(.disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled)}:host ::ng-deep>*{flex:0 0 auto;min-width:0}:host ::ng-deep>[grow]{flex:1 1 0;min-width:0}:host ::ng-deep>*+*{border-left:var(--border-width-default) solid var(--_field-group-divider-color)}\n"] }]
|
|
84
|
+
], styles: ["@charset \"UTF-8\";:host{--_field-group-bg-color: var(--ds-field-group-bg-color, var(--surface-default));--_field-group-border-color: var(--ds-field-group-border-color, var(--border-default));--_field-group-border-color-focus: var(--ds-field-group-border-color-focus, var(--accent));--_field-group-border-color-error: var(--ds-field-group-border-color-error, var(--error));--_field-group-radius: var(--ds-field-group-radius, var(--ds-radius-control));--_field-group-focus-shadow: var(--ds-field-group-focus-shadow, var(--ds-field-focus-shadow));--_field-group-focus-shadow-error: var(--ds-field-group-focus-shadow-error, var(--ds-field-focus-shadow-error));--_field-group-divider-color: var(--ds-field-group-divider-color, var(--border-divider));display:inline-flex;align-items:stretch;width:fit-content;max-width:100%;background-color:var(--_field-group-bg-color);border:var(--border-width-default) solid var(--_field-group-border-color);border-radius:var(--_field-group-radius);overflow:hidden;transition:border-color var(--duration-fast) var(--ease-standard);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height)}:host(.sm){--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height)}:host(.lg){--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.full-width){display:flex;width:100%}:host(:hover:not(.disabled,.invalid)){border-color:var(--border-strong)}:host(:focus-within:not(.disabled,.invalid)){border-color:var(--_field-group-border-color-focus);box-shadow:var(--_field-group-focus-shadow)}:host(.invalid:not(.disabled)){border-color:var(--_field-group-border-color-error)}:host(.invalid:not(.disabled):focus-within){box-shadow:var(--_field-group-focus-shadow-error)}:host(.disabled){background-color:var(--surface-disabled);border-color:var(--border-disabled)}:host ::ng-deep>*{flex:0 0 auto;min-width:0}:host ::ng-deep>[grow]{flex:1 1 0;min-width:0}:host ::ng-deep>*+*{border-left:var(--border-width-default) solid var(--_field-group-divider-color)}\n"] }]
|
|
85
85
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }] } });
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-field-group.mjs","sources":["../../../src/lib/components/field-group/field-group.token.ts","../../../src/lib/components/field-group/field-group.component.ts","../../../src/lib/components/field-group/ids-group-ltd-ids-design-system-components-field-group.ts"],"sourcesContent":["import { InjectionToken, inject } from '@angular/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n/** What a grouped control can read off the group that encloses it. */\nexport interface DsFieldGroupContext {\n /** The group's size, so a segment matches its neighbours without being told.\n * Resolved, not the raw input: `size` is unset by default and falls back to\n * `DS_CONFIG.control.size`, which a segment must not have to resolve again. */\n readonly sizeResolved: () => DsSize;\n}\n\n/**\n * Provided by `ds-field-group`, injected `{ optional: true }` by every control\n * that can be a segment.\n *\n * DI rather than a `[grouped]` input on each child: the alternative is manual,\n * and one segment where it was forgotten renders its own border and radius in\n * the middle of a glued row — a broken control that still looks deliberate.\n * Presence of the token IS the fact the child needs, and the consumer already\n * declared it by wrapping them.\n */\nexport const DS_FIELD_GROUP = new InjectionToken<DsFieldGroupContext>(\n 'DS_FIELD_GROUP',\n);\n\n/**\n * Whether this control is a segment of a `ds-field-group`. Call it in a field\n * component and bind the result to a host `.in-group` class; the component's own\n * `.in-group` block then strips the chrome the group has taken over.\n *\n * A function so the six supported controls share one line instead of six copies\n * of the same optional inject — and so the contract has one place to change.\n * @internal\n */\nexport function inFieldGroup(): boolean {\n return !!inject(DS_FIELD_GROUP, { optional: true });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n input,\n} from '@angular/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_FIELD_GROUP, type DsFieldGroupContext } from './field-group.token';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * One bordered control out of several: `select + input`, `search + button`,\n * `button + select`. The group owns the border, the radius, the focus ring and\n * the divider between segments; the controls inside render \"naked\".\n *\n * Segments are the direct children. Each hugs its content by default; mark the\n * one that should take the slack with `grow`:\n *\n * ```html\n * <ds-field-group>\n * <ds-select [options]=\"scopes\" />\n * <ds-input grow placeholder=\"Search…\" />\n * </ds-field-group>\n * ```\n *\n * A control knows it is a segment by injecting `DS_FIELD_GROUP` — see the token\n * for why that is DI and not an input. Grouped controls must not carry a `label`\n * or a `hint`: their own message row would break the glued line, so it is\n * suppressed and a group-level one is not built yet.\n */\n@Component({\n selector: 'ds-field-group',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './field-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n '[class]': 'sizeResolved()',\n '[class.invalid]': 'invalid()',\n '[class.disabled]': 'disabled()',\n '[class.full-width]': 'fullWidth()',\n },\n providers: [\n {\n provide: DS_FIELD_GROUP,\n useExisting: forwardRef(() => FieldGroupComponent),\n },\n ],\n})\nexport class FieldGroupComponent implements DsFieldGroupContext {\n /** Segment height — the field family's scale, so a group lines up with a\n * plain field beside it.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Draws the error border on the whole group. A single segment cannot be\n * invalid on its own: the border belongs to the group. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Dims the group. Disable the CONTROLS too — this is the chrome, not their\n * interactivity. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fills the container instead of hugging its segments. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAWA;;;;;;;;;AASG;MACU,cAAc,GAAG,IAAI,cAAc,CAC9C,gBAAgB;AAGlB;;;;;;;;AAQG;SACa,YAAY,GAAA;AAC1B,IAAA,OAAO,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrD;;ACxBA;;;;;;;;;;;;;;;;;;;AAmBG;MAsBU,mBAAmB,CAAA;AAC9B;;AAEiE;AACxD,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;AACD;AAC2D;IAClD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAChE;AACqB;IACZ,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAjBvD,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAA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components-field-group.mjs","sources":["../../../src/lib/components/field-group/field-group.token.ts","../../../src/lib/components/field-group/field-group.component.ts","../../../src/lib/components/field-group/ids-group-ltd-ids-design-system-components-field-group.ts"],"sourcesContent":["import { InjectionToken, inject } from '@angular/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n/** What a grouped control can read off the group that encloses it. */\nexport interface DsFieldGroupContext {\n /** The group's size, so a segment matches its neighbours without being told.\n * Resolved, not the raw input: `size` is unset by default and falls back to\n * `DS_CONFIG.control.size`, which a segment must not have to resolve again. */\n readonly sizeResolved: () => DsSize;\n}\n\n/**\n * Provided by `ds-field-group`, injected `{ optional: true }` by every control\n * that can be a segment.\n *\n * DI rather than a `[grouped]` input on each child: the alternative is manual,\n * and one segment where it was forgotten renders its own border and radius in\n * the middle of a glued row — a broken control that still looks deliberate.\n * Presence of the token IS the fact the child needs, and the consumer already\n * declared it by wrapping them.\n */\nexport const DS_FIELD_GROUP = new InjectionToken<DsFieldGroupContext>(\n 'DS_FIELD_GROUP',\n);\n\n/**\n * Whether this control is a segment of a `ds-field-group`. Call it in a field\n * component and bind the result to a host `.in-group` class; the component's own\n * `.in-group` block then strips the chrome the group has taken over.\n *\n * A function so the six supported controls share one line instead of six copies\n * of the same optional inject — and so the contract has one place to change.\n * @internal\n */\nexport function inFieldGroup(): boolean {\n return !!inject(DS_FIELD_GROUP, { optional: true });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef,\n input,\n} from '@angular/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_FIELD_GROUP, type DsFieldGroupContext } from './field-group.token';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * One bordered control out of several: `select + input`, `search + button`,\n * `button + select`. The group owns the border, the radius, the focus ring and\n * the divider between segments; the controls inside render \"naked\".\n *\n * Segments are the direct children. Each hugs its content by default; mark the\n * one that should take the slack with `grow`:\n *\n * ```html\n * <ds-field-group>\n * <ds-select [options]=\"scopes\" />\n * <ds-input grow placeholder=\"Search…\" />\n * </ds-field-group>\n * ```\n *\n * A control knows it is a segment by injecting `DS_FIELD_GROUP` — see the token\n * for why that is DI and not an input. Grouped controls must not carry a `label`\n * or a `hint`: their own message row would break the glued line, so it is\n * suppressed and a group-level one is not built yet.\n */\n@Component({\n selector: 'ds-field-group',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './field-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'group',\n '[class]': 'sizeResolved()',\n '[class.invalid]': 'invalid()',\n '[class.disabled]': 'disabled()',\n '[class.full-width]': 'fullWidth()',\n },\n providers: [\n {\n provide: DS_FIELD_GROUP,\n useExisting: forwardRef(() => FieldGroupComponent),\n },\n ],\n})\nexport class FieldGroupComponent implements DsFieldGroupContext {\n /** Segment height — the field family's scale, so a group lines up with a\n * plain field beside it.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Draws the error border on the whole group. A single segment cannot be\n * invalid on its own: the border belongs to the group. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Dims the group. Disable the CONTROLS too — this is the chrome, not their\n * interactivity. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fills the container instead of hugging its segments. */\n readonly fullWidth = input(false, { transform: booleanAttribute });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAWA;;;;;;;;;AASG;MACU,cAAc,GAAG,IAAI,cAAc,CAC9C,gBAAgB;AAGlB;;;;;;;;AAQG;SACa,YAAY,GAAA;AAC1B,IAAA,OAAO,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrD;;ACxBA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AA,EAAA,MAAA,EAAA,CAAA,0iEAAA,CAAA,EAAA;;;ACnDH;;AAEG;;;;"}
|
|
@@ -142,7 +142,7 @@ class FilterBarComponent {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
145
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.
|
|
145
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "routerLink", "href", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: ProjectionDroppedDirective, selector: "[dsProjectionDropped]", inputs: ["dsProjectionDropped", "reason"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
146
146
|
}
|
|
147
147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, decorators: [{
|
|
148
148
|
type: Component,
|
|
@@ -151,7 +151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
151
151
|
ButtonComponent,
|
|
152
152
|
PopoverComponent,
|
|
153
153
|
ProjectionDroppedDirective,
|
|
154
|
-
], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.
|
|
154
|
+
], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"] }]
|
|
155
155
|
}], ctorParameters: () => [], propDecorators: { moreLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabel", required: false }] }], panelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelLabel", required: false }] }], triggerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerSize", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => FilterItemDirective), { ...{
|
|
156
156
|
descendants: true,
|
|
157
157
|
}, isSignal: true }] }], row: [{ type: i0.ViewChild, args: ['row', { isSignal: true }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-filter-bar.mjs","sources":["../../../src/lib/components/filter-bar/filter-item.directive.ts","../../../src/lib/components/filter-bar/filter-bar.component.ts","../../../src/lib/components/filter-bar/filter-bar.component.html","../../../src/lib/components/filter-bar/ids-group-ltd-ids-design-system-components-filter-bar.ts"],"sourcesContent":["import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/** Width assumed for a filter that declares none — roughly a `ds-select`. */\nconst DEFAULT_ITEM_WIDTH = 180;\n\nfunction toWidth(value: unknown): number {\n const width = Number(value);\n\n return Number.isFinite(width) && width > 0 ? width : DEFAULT_ITEM_WIDTH;\n}\n\n/**\n * One filter inside `ds-filter-bar`, with the width it should occupy:\n * `<ng-template [dsFilterItem]=\"220\"> <ds-date-picker … /> </ng-template>`.\n *\n * A template rather than plain projection because the bar has to MOVE the filters\n * that do not fit into its overflow panel, and projected DOM cannot be relocated\n * — it renders where it was projected. The cost is that crossing the boundary\n * destroys and re-creates the view, so a control's internal state (an open panel,\n * focus) does not survive a resize that collapses it. Its VALUE does: that lives\n * in the consumer's own signal or form control.\n *\n * The width is a contract, not a hint — the bar sizes the slot to exactly this\n * and decides the split from it, so a control that would render wider is\n * narrowed rather than allowed to break the row.\n */\n@Directive({\n selector: 'ng-template[dsFilterItem]',\n standalone: true,\n})\nexport class FilterItemDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n\n /** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */\n readonly width = input(DEFAULT_ITEM_WIDTH, {\n alias: 'dsFilterItem',\n transform: toWidth,\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n input,\n isDevMode,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport { ProjectionDroppedDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FilterItemDirective } from './filter-item.directive';\n\n// Room kept for the \"+N more\" trigger, which only exists once something has\n// already collapsed. Measuring the real button would need it rendered first, and\n// its width then feeds back into the count that decides whether it renders at\n// all — a loop. A constant costs nothing: inline slots may shrink, so a longer\n// translation of the label takes space from them instead of breaking the row.\nconst MORE_TRIGGER_WIDTH = 132;\n\n/**\n * Priority+ filter row: renders as many filters as fit and collapses the rest\n * into a \"+N more\" panel. Every admin list past three filters hits the same wall\n * — the row wraps to a second line on a laptop, or the consumer hand-rolls this.\n *\n * The split is decided from each item's declared width plus one `ResizeObserver`\n * on the row, never by measuring the filters themselves: they would have to be in\n * the DOM to be measured, so anything that did not fit would flash before being\n * taken away. `[dsFilterItem]` carries the width.\n *\n * Anything marked `dsFilterBarTrailing` — search, a Clear button — sits at the\n * trailing edge and never collapses. Mark each control rather than wrapping them:\n * the bar owns that row's gap and alignment, and a projected wrapper would be a\n * plain block whose children stack. The trailing group is outside the measured\n * row, so flexbox subtracts its width before the row is measured and the\n * arithmetic needs no allowance for it.\n *\n * ```html\n * <ds-filter-bar>\n * <ng-template [dsFilterItem]=\"180\">\n * <ds-select label=\"Status\" … />\n * </ng-template>\n * <ng-template [dsFilterItem]=\"220\">\n * <ds-date-picker label=\"Opened\" … />\n * </ng-template>\n *\n * <ds-search dsFilterBarTrailing … />\n * <ds-button dsFilterBarTrailing variant=\"text\">Clear</ds-button>\n * </ds-filter-bar>\n * ```\n */\n@Component({\n selector: 'ds-filter-bar',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ButtonComponent,\n PopoverComponent,\n ProjectionDroppedDirective,\n ],\n templateUrl: './filter-bar.component.html',\n styleUrl: './filter-bar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FilterBarComponent {\n /** Trailing word of the trigger, after the count: \"+2 filters\". */\n readonly moreLabel = input<string>('more');\n /** Accessible name of the overflow panel. */\n readonly panelLabel = input<string>('More filters');\n /** Height of the \"+N\" trigger, to match the filters beside it. The bar cannot\n * infer this: `dsFilterItem` carries a WIDTH, and the filters are arbitrary\n * projected controls whose own `size` it never sees — so a row of `sm` filters\n * got an `md` trigger standing 8px taller under `align-items: flex-end`. */\n readonly triggerSize = input<DsSize>('md');\n\n protected readonly devMode = isDevMode();\n\n // descendants: true so a filter wrapped in @if or @for is still found — those\n // put it in an embedded view, which a direct-children query does not reach.\n protected readonly items = contentChildren(FilterItemDirective, {\n descendants: true,\n });\n\n private readonly row = viewChild<ElementRef<HTMLElement>>('row');\n private readonly rowWidth = signal(0);\n // Read off the row rather than hard-coded, so retuning --ds-filter-bar-gap\n // cannot silently desynchronise the arithmetic from what is rendered.\n private readonly gap = signal(0);\n\n protected readonly inlineCount = computed<number>(() => {\n const items = this.items();\n const available = this.rowWidth();\n if (!available) {\n return items.length;\n }\n\n const gap = this.gap();\n const total = items.reduce(\n (sum, item, index) => sum + (index > 0 ? gap : 0) + item.width(),\n 0,\n );\n if (total <= available) {\n return items.length;\n }\n\n // Only now is the trigger certain to render, so only now does it cost room.\n const budget = available - MORE_TRIGGER_WIDTH - gap;\n let used = 0;\n let count = 0;\n for (const item of items) {\n used += (count > 0 ? gap : 0) + item.width();\n if (used > budget) {\n break;\n }\n count++;\n }\n\n return count;\n });\n\n protected readonly inline = computed(() =>\n this.items().slice(0, this.inlineCount()),\n );\n\n /** The filters currently in the overflow panel. */\n readonly collapsed = computed(() => this.items().slice(this.inlineCount()));\n\n constructor() {\n effect((onCleanup) => {\n const row = this.row()?.nativeElement;\n if (!row) {\n return;\n }\n\n const measure = (): void => {\n this.rowWidth.set(row.clientWidth);\n this.gap.set(parseFloat(getComputedStyle(row).columnGap) || 0);\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(row);\n onCleanup(() => observer.disconnect());\n });\n }\n}\n","<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names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AA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,mBAAmB,CAAA,EAAA,EAAA,GAAE;AAC9D,4BAAA,WAAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEyD,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3FjE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-filter-bar.mjs","sources":["../../../src/lib/components/filter-bar/filter-item.directive.ts","../../../src/lib/components/filter-bar/filter-bar.component.ts","../../../src/lib/components/filter-bar/filter-bar.component.html","../../../src/lib/components/filter-bar/ids-group-ltd-ids-design-system-components-filter-bar.ts"],"sourcesContent":["import { Directive, TemplateRef, inject, input } from '@angular/core';\n\n/** Width assumed for a filter that declares none — roughly a `ds-select`. */\nconst DEFAULT_ITEM_WIDTH = 180;\n\nfunction toWidth(value: unknown): number {\n const width = Number(value);\n\n return Number.isFinite(width) && width > 0 ? width : DEFAULT_ITEM_WIDTH;\n}\n\n/**\n * One filter inside `ds-filter-bar`, with the width it should occupy:\n * `<ng-template [dsFilterItem]=\"220\"> <ds-date-picker … /> </ng-template>`.\n *\n * A template rather than plain projection because the bar has to MOVE the filters\n * that do not fit into its overflow panel, and projected DOM cannot be relocated\n * — it renders where it was projected. The cost is that crossing the boundary\n * destroys and re-creates the view, so a control's internal state (an open panel,\n * focus) does not survive a resize that collapses it. Its VALUE does: that lives\n * in the consumer's own signal or form control.\n *\n * The width is a contract, not a hint — the bar sizes the slot to exactly this\n * and decides the split from it, so a control that would render wider is\n * narrowed rather than allowed to break the row.\n */\n@Directive({\n selector: 'ng-template[dsFilterItem]',\n standalone: true,\n})\nexport class FilterItemDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n\n /** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */\n readonly width = input(DEFAULT_ITEM_WIDTH, {\n alias: 'dsFilterItem',\n transform: toWidth,\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n input,\n isDevMode,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport { ProjectionDroppedDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FilterItemDirective } from './filter-item.directive';\n\n// Room kept for the \"+N more\" trigger, which only exists once something has\n// already collapsed. Measuring the real button would need it rendered first, and\n// its width then feeds back into the count that decides whether it renders at\n// all — a loop. A constant costs nothing: inline slots may shrink, so a longer\n// translation of the label takes space from them instead of breaking the row.\nconst MORE_TRIGGER_WIDTH = 132;\n\n/**\n * Priority+ filter row: renders as many filters as fit and collapses the rest\n * into a \"+N more\" panel. Every admin list past three filters hits the same wall\n * — the row wraps to a second line on a laptop, or the consumer hand-rolls this.\n *\n * The split is decided from each item's declared width plus one `ResizeObserver`\n * on the row, never by measuring the filters themselves: they would have to be in\n * the DOM to be measured, so anything that did not fit would flash before being\n * taken away. `[dsFilterItem]` carries the width.\n *\n * Anything marked `dsFilterBarTrailing` — search, a Clear button — sits at the\n * trailing edge and never collapses. Mark each control rather than wrapping them:\n * the bar owns that row's gap and alignment, and a projected wrapper would be a\n * plain block whose children stack. The trailing group is outside the measured\n * row, so flexbox subtracts its width before the row is measured and the\n * arithmetic needs no allowance for it.\n *\n * ```html\n * <ds-filter-bar>\n * <ng-template [dsFilterItem]=\"180\">\n * <ds-select label=\"Status\" … />\n * </ng-template>\n * <ng-template [dsFilterItem]=\"220\">\n * <ds-date-picker label=\"Opened\" … />\n * </ng-template>\n *\n * <ds-search dsFilterBarTrailing … />\n * <ds-button dsFilterBarTrailing variant=\"text\">Clear</ds-button>\n * </ds-filter-bar>\n * ```\n */\n@Component({\n selector: 'ds-filter-bar',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ButtonComponent,\n PopoverComponent,\n ProjectionDroppedDirective,\n ],\n templateUrl: './filter-bar.component.html',\n styleUrl: './filter-bar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FilterBarComponent {\n /** Trailing word of the trigger, after the count: \"+2 filters\". */\n readonly moreLabel = input<string>('more');\n /** Accessible name of the overflow panel. */\n readonly panelLabel = input<string>('More filters');\n /** Height of the \"+N\" trigger, to match the filters beside it. The bar cannot\n * infer this: `dsFilterItem` carries a WIDTH, and the filters are arbitrary\n * projected controls whose own `size` it never sees — so a row of `sm` filters\n * got an `md` trigger standing 8px taller under `align-items: flex-end`. */\n readonly triggerSize = input<DsSize>('md');\n\n protected readonly devMode = isDevMode();\n\n // descendants: true so a filter wrapped in @if or @for is still found — those\n // put it in an embedded view, which a direct-children query does not reach.\n protected readonly items = contentChildren(FilterItemDirective, {\n descendants: true,\n });\n\n private readonly row = viewChild<ElementRef<HTMLElement>>('row');\n private readonly rowWidth = signal(0);\n // Read off the row rather than hard-coded, so retuning --ds-filter-bar-gap\n // cannot silently desynchronise the arithmetic from what is rendered.\n private readonly gap = signal(0);\n\n protected readonly inlineCount = computed<number>(() => {\n const items = this.items();\n const available = this.rowWidth();\n if (!available) {\n return items.length;\n }\n\n const gap = this.gap();\n const total = items.reduce(\n (sum, item, index) => sum + (index > 0 ? gap : 0) + item.width(),\n 0,\n );\n if (total <= available) {\n return items.length;\n }\n\n // Only now is the trigger certain to render, so only now does it cost room.\n const budget = available - MORE_TRIGGER_WIDTH - gap;\n let used = 0;\n let count = 0;\n for (const item of items) {\n used += (count > 0 ? gap : 0) + item.width();\n if (used > budget) {\n break;\n }\n count++;\n }\n\n return count;\n });\n\n protected readonly inline = computed(() =>\n this.items().slice(0, this.inlineCount()),\n );\n\n /** The filters currently in the overflow panel. */\n readonly collapsed = computed(() => this.items().slice(this.inlineCount()));\n\n constructor() {\n effect((onCleanup) => {\n const row = this.row()?.nativeElement;\n if (!row) {\n return;\n }\n\n const measure = (): void => {\n this.rowWidth.set(row.clientWidth);\n this.gap.set(parseFloat(getComputedStyle(row).columnGap) || 0);\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(row);\n onCleanup(() => observer.disconnect());\n });\n }\n}\n","<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;AACA,MAAM,kBAAkB,GAAG,GAAG;AAE9B,SAAS,OAAO,CAAC,KAAc,EAAA;AAC7B,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAE3B,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,kBAAkB;AACzE;AAEA;;;;;;;;;;;;;;AAcG;MAKU,mBAAmB,CAAA;AACrB,IAAA,QAAQ,GAAG,MAAM,CAAuB,WAAW,CAAC;;AAGpD,IAAA,KAAK,GAAG,KAAK,CAAC,kBAAkB,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,OAAA,EAAA,8BAAA,EAAA,CAAA,EACvC,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,OAAO,EAAA,CAClB;wGAPS,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B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,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,mBAAmB,CAAA,EAAA,EAAA,GAAE;AAC9D,4BAAA,WAAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEyD,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3FjE;;AAEG;;;;"}
|
|
@@ -193,7 +193,7 @@ class InputComponent extends DsControlValueAccessor {
|
|
|
193
193
|
useExisting: forwardRef(() => InputComponent),
|
|
194
194
|
multi: true,
|
|
195
195
|
},
|
|
196
|
-
], viewQueries: [{ propertyName: "control", first: true, predicate: ["control"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_input-bg-color: var(--ds-input-bg-color, var(--surface-default));--_input-border: var(--ds-input-border, var(--border-default));--_input-border-hover: var(--ds-input-border-hover, var(--border-strong));--_input-border-focus: var(--ds-input-border-focus, var(--accent));--_input-text-color: var(--ds-input-text-color, var(--text-primary));--_input-placeholder: var(--ds-input-placeholder, var(--text-tertiary));--_input-radius: var(--ds-input-radius, var(--ds-radius-control));--_input-pad-x: var(--ds-input-pad-x, var(--field-pad-x));--_input-pad-y: var(--ds-input-pad-y, var(--field-pad-y));--_input-focus-shadow: var(--ds-input-focus-shadow, var(--ds-field-focus-shadow));--_input-focus-shadow-error: var(--ds-input-focus-shadow-error, var(--ds-field-focus-shadow-error));--_input-border-error: var(--ds-input-border-error, var(--error));--_input-bg-color-error: var(--ds-input-bg-color-error, var(--error-subtitle));--_input-border-success: var(--ds-input-border-success, var(--success));--_input-bg-color-disabled: var(--ds-input-bg-color-disabled, var(--surface-disabled));--_input-label-color: var(--ds-input-label-color, var(--ds-field-label-color, var(--text-secondary)));--_input-label-fs: var(--ds-input-label-fs, var(--ds-field-label-font-size, var(--font-size-xs)));--_input-label-fw: var(--ds-input-label-fw, var(--ds-field-label-weight, var(--font-weight-bold)));--_input-fs: var(--ds-input-fs, var(--font-size-s));--_input-clear-color: var(--ds-input-clear-color, var(--text-secondary));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking);--_field-label-font-size: var(--_input-label-fs);--_field-label-weight: var(--_input-label-fw);--_field-label-color: var(--_input-label-color)}.field .label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.field .control{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_input-bg-color);border:var(--border-width-default) solid var(--_input-border);border-radius:var(--_input-radius);padding:var(--_input-pad-y) var(--_input-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.field .control input{flex:1;min-width:0;appearance:none;border:0}@media not (forced-colors:active){.field .control input{outline:none}}.field .control input{background:transparent;font:var(--font-weight-regular) var(--_input-fs)/var(--line-height-base) var(--font-sans);color:var(--_input-text-color)}.field .control input::placeholder{color:var(--_input-placeholder)}.field .control input[type=search]::-webkit-search-cancel-button,.field .control input[type=search]::-webkit-search-decoration{display:none;appearance:none}.field .control .clear-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);padding:0;border:0;background-color:var(--_input-clear-color);cursor:pointer;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard);-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat}.field .control .clear-btn:hover{background-color:var(--text-primary)}.field .control .clear-btn:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.field .control .password-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.field .control .password-toggle:hover{color:var(--text-primary)}.field .control .password-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control:hover{border-color:var(--_input-border-hover)}.field .control:focus-within{border-color:var(--_input-border-focus);box-shadow:var(--_input-focus-shadow)}@media not (forced-colors:active){.field .control input:where(:focus-visible){outline:none}}.field.disabled .control{background-color:var(--_input-bg-color-disabled);border-color:var(--border-disabled)}.field.disabled input{color:var(--text-disabled)}.field.read-only .control{background:var(--surface-secondary)}.field.read-only .control input{cursor:default}.field.sm .control{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.field.lg .control{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}.field .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.field .addon-slot:empty{display:none}.field ::ng-deep .addon{display:inline-flex;align-items:center;padding:0 var(--space-3);margin:calc(var(--field-affix-overlap) * -1);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);align-self:stretch;border-right:var(--border-width-default) solid var(--border-divider)}.field ::ng-deep .addon.right{border-right:0;border-left:var(--border-width-default) solid var(--border-divider)}.field:has(.addon-slot.prefix .addon) .control{padding-left:0}.field:has(.addon-slot.suffix .addon) .control{padding-right:0}.field .addon-slot.prefix ::ng-deep .addon{border-top-left-radius:var(--_input-radius);border-bottom-left-radius:var(--_input-radius)}.field .addon-slot.suffix ::ng-deep .addon.right{border-top-right-radius:var(--_input-radius);border-bottom-right-radius:var(--_input-radius)}.field .control ds-spinner{flex-shrink:0}.field .field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.field .char-counter{font-size:var(--font-size-xs);color:var(--text-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;margin-left:auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .control{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .control{border-color:var(--_input-border-error);background-color:var(--_input-bg-color-error)}:host([data-field-state=error]:not(.in-group)) .control:focus-within,:host([data-field-state=error]:not(.in-group)) .control:focus-visible{box-shadow:var(--_input-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .control{border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .control{border-color:var(--_input-border-success)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }, { kind: "directive", type: FieldClickFocusDirective, selector: "[dsFieldClickFocus]" }] });
|
|
196
|
+
], viewQueries: [{ propertyName: "control", first: true, predicate: ["control"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_input-bg-color: var(--ds-input-bg-color, var(--surface-default));--_input-border: var(--ds-input-border, var(--border-default));--_input-border-hover: var(--ds-input-border-hover, var(--border-strong));--_input-border-focus: var(--ds-input-border-focus, var(--accent));--_input-text-color: var(--ds-input-text-color, var(--text-primary));--_input-placeholder: var(--ds-input-placeholder, var(--text-tertiary));--_input-radius: var(--ds-input-radius, var(--ds-radius-control));--_input-pad-x: var(--ds-input-pad-x, var(--field-pad-x));--_input-pad-y: var(--ds-input-pad-y, var(--field-pad-y));--_input-focus-shadow: var(--ds-input-focus-shadow, var(--ds-field-focus-shadow));--_input-focus-shadow-error: var(--ds-input-focus-shadow-error, var(--ds-field-focus-shadow-error));--_input-border-error: var(--ds-input-border-error, var(--error));--_input-bg-color-error: var(--ds-input-bg-color-error, var(--error-subtitle));--_input-border-success: var(--ds-input-border-success, var(--success));--_input-bg-color-disabled: var(--ds-input-bg-color-disabled, var(--surface-disabled));--_input-label-color: var(--ds-input-label-color, var(--ds-field-label-color, var(--text-secondary)));--_input-label-fs: var(--ds-input-label-fs, var(--ds-field-label-font-size, var(--font-size-xs)));--_input-label-fw: var(--ds-input-label-fw, var(--ds-field-label-weight, var(--font-weight-bold)));--_input-fs: var(--ds-input-fs, var(--font-size-s));--_input-clear-color: var(--ds-input-clear-color, var(--text-secondary));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking);--_field-label-font-size: var(--_input-label-fs);--_field-label-weight: var(--_input-label-fw);--_field-label-color: var(--_input-label-color)}.field .label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.field .control{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_input-bg-color);border:var(--border-width-default) solid var(--_input-border);border-radius:var(--_input-radius);padding:var(--_input-pad-y) var(--_input-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.field .control input{flex:1;min-width:0;appearance:none;border:0}@media not (forced-colors:active){.field .control input{outline:none}}.field .control input{background:transparent;font:var(--font-weight-regular) var(--_input-fs)/var(--line-height-base) var(--font-sans);color:var(--_input-text-color)}.field .control input::placeholder{color:var(--_input-placeholder)}.field .control input[type=search]::-webkit-search-cancel-button,.field .control input[type=search]::-webkit-search-decoration{display:none;appearance:none}.field .control .clear-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);padding:0;border:0;background-color:var(--_input-clear-color);cursor:pointer;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard);-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat}.field .control .clear-btn:hover{background-color:var(--text-primary)}.field .control .clear-btn:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.field .control .password-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.field .control .password-toggle:hover{color:var(--text-primary)}.field .control .password-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control:hover{border-color:var(--_input-border-hover)}.field .control:focus-within{border-color:var(--_input-border-focus);box-shadow:var(--_input-focus-shadow)}@media not (forced-colors:active){.field .control input:where(:focus-visible){outline:none}}.field.disabled .control{background-color:var(--_input-bg-color-disabled);border-color:var(--border-disabled)}.field.disabled input{color:var(--text-disabled)}.field.read-only .control{background:var(--surface-secondary)}.field.read-only .control input{cursor:default}.field.sm .control{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.field.lg .control{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}.field .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.field .addon-slot:empty{display:none}.field ::ng-deep .addon{display:inline-flex;align-items:center;padding:0 var(--space-3);margin:calc(var(--field-affix-overlap) * -1);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);align-self:stretch;border-right:var(--border-width-default) solid var(--border-divider)}.field ::ng-deep .addon.right{border-right:0;border-left:var(--border-width-default) solid var(--border-divider)}.field:has(.addon-slot.prefix .addon) .control{padding-left:0}.field:has(.addon-slot.suffix .addon) .control{padding-right:0}.field .addon-slot.prefix ::ng-deep .addon{border-top-left-radius:var(--_input-radius);border-bottom-left-radius:var(--_input-radius)}.field .addon-slot.suffix ::ng-deep .addon.right{border-top-right-radius:var(--_input-radius);border-bottom-right-radius:var(--_input-radius)}.field .control ds-spinner{flex-shrink:0}.field .field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.field .char-counter{font-size:var(--font-size-xs);color:var(--text-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;margin-left:auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .control{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--_input-border-error);background-color:var(--_input-bg-color-error)}:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_input-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--_input-border-success)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }, { kind: "directive", type: FieldClickFocusDirective, selector: "[dsFieldClickFocus]" }] });
|
|
197
197
|
}
|
|
198
198
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: InputComponent, decorators: [{
|
|
199
199
|
type: Component,
|
|
@@ -212,7 +212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
212
212
|
useExisting: forwardRef(() => InputComponent),
|
|
213
213
|
multi: true,
|
|
214
214
|
},
|
|
215
|
-
], template: "<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_input-bg-color: var(--ds-input-bg-color, var(--surface-default));--_input-border: var(--ds-input-border, var(--border-default));--_input-border-hover: var(--ds-input-border-hover, var(--border-strong));--_input-border-focus: var(--ds-input-border-focus, var(--accent));--_input-text-color: var(--ds-input-text-color, var(--text-primary));--_input-placeholder: var(--ds-input-placeholder, var(--text-tertiary));--_input-radius: var(--ds-input-radius, var(--ds-radius-control));--_input-pad-x: var(--ds-input-pad-x, var(--field-pad-x));--_input-pad-y: var(--ds-input-pad-y, var(--field-pad-y));--_input-focus-shadow: var(--ds-input-focus-shadow, var(--ds-field-focus-shadow));--_input-focus-shadow-error: var(--ds-input-focus-shadow-error, var(--ds-field-focus-shadow-error));--_input-border-error: var(--ds-input-border-error, var(--error));--_input-bg-color-error: var(--ds-input-bg-color-error, var(--error-subtitle));--_input-border-success: var(--ds-input-border-success, var(--success));--_input-bg-color-disabled: var(--ds-input-bg-color-disabled, var(--surface-disabled));--_input-label-color: var(--ds-input-label-color, var(--ds-field-label-color, var(--text-secondary)));--_input-label-fs: var(--ds-input-label-fs, var(--ds-field-label-font-size, var(--font-size-xs)));--_input-label-fw: var(--ds-input-label-fw, var(--ds-field-label-weight, var(--font-weight-bold)));--_input-fs: var(--ds-input-fs, var(--font-size-s));--_input-clear-color: var(--ds-input-clear-color, var(--text-secondary));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking);--_field-label-font-size: var(--_input-label-fs);--_field-label-weight: var(--_input-label-fw);--_field-label-color: var(--_input-label-color)}.field .label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.field .control{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_input-bg-color);border:var(--border-width-default) solid var(--_input-border);border-radius:var(--_input-radius);padding:var(--_input-pad-y) var(--_input-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.field .control input{flex:1;min-width:0;appearance:none;border:0}@media not (forced-colors:active){.field .control input{outline:none}}.field .control input{background:transparent;font:var(--font-weight-regular) var(--_input-fs)/var(--line-height-base) var(--font-sans);color:var(--_input-text-color)}.field .control input::placeholder{color:var(--_input-placeholder)}.field .control input[type=search]::-webkit-search-cancel-button,.field .control input[type=search]::-webkit-search-decoration{display:none;appearance:none}.field .control .clear-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);padding:0;border:0;background-color:var(--_input-clear-color);cursor:pointer;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard);-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat}.field .control .clear-btn:hover{background-color:var(--text-primary)}.field .control .clear-btn:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.field .control .password-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.field .control .password-toggle:hover{color:var(--text-primary)}.field .control .password-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control:hover{border-color:var(--_input-border-hover)}.field .control:focus-within{border-color:var(--_input-border-focus);box-shadow:var(--_input-focus-shadow)}@media not (forced-colors:active){.field .control input:where(:focus-visible){outline:none}}.field.disabled .control{background-color:var(--_input-bg-color-disabled);border-color:var(--border-disabled)}.field.disabled input{color:var(--text-disabled)}.field.read-only .control{background:var(--surface-secondary)}.field.read-only .control input{cursor:default}.field.sm .control{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.field.lg .control{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}.field .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.field .addon-slot:empty{display:none}.field ::ng-deep .addon{display:inline-flex;align-items:center;padding:0 var(--space-3);margin:calc(var(--field-affix-overlap) * -1);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);align-self:stretch;border-right:var(--border-width-default) solid var(--border-divider)}.field ::ng-deep .addon.right{border-right:0;border-left:var(--border-width-default) solid var(--border-divider)}.field:has(.addon-slot.prefix .addon) .control{padding-left:0}.field:has(.addon-slot.suffix .addon) .control{padding-right:0}.field .addon-slot.prefix ::ng-deep .addon{border-top-left-radius:var(--_input-radius);border-bottom-left-radius:var(--_input-radius)}.field .addon-slot.suffix ::ng-deep .addon.right{border-top-right-radius:var(--_input-radius);border-bottom-right-radius:var(--_input-radius)}.field .control ds-spinner{flex-shrink:0}.field .field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.field .char-counter{font-size:var(--font-size-xs);color:var(--text-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;margin-left:auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .control{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .control{border-color:var(--_input-border-error);background-color:var(--_input-bg-color-error)}:host([data-field-state=error]:not(.in-group)) .control:focus-within,:host([data-field-state=error]:not(.in-group)) .control:focus-visible{box-shadow:var(--_input-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .control{border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .control{border-color:var(--_input-border-success)}\n"] }]
|
|
215
|
+
], template: "<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_input-bg-color: var(--ds-input-bg-color, var(--surface-default));--_input-border: var(--ds-input-border, var(--border-default));--_input-border-hover: var(--ds-input-border-hover, var(--border-strong));--_input-border-focus: var(--ds-input-border-focus, var(--accent));--_input-text-color: var(--ds-input-text-color, var(--text-primary));--_input-placeholder: var(--ds-input-placeholder, var(--text-tertiary));--_input-radius: var(--ds-input-radius, var(--ds-radius-control));--_input-pad-x: var(--ds-input-pad-x, var(--field-pad-x));--_input-pad-y: var(--ds-input-pad-y, var(--field-pad-y));--_input-focus-shadow: var(--ds-input-focus-shadow, var(--ds-field-focus-shadow));--_input-focus-shadow-error: var(--ds-input-focus-shadow-error, var(--ds-field-focus-shadow-error));--_input-border-error: var(--ds-input-border-error, var(--error));--_input-bg-color-error: var(--ds-input-bg-color-error, var(--error-subtitle));--_input-border-success: var(--ds-input-border-success, var(--success));--_input-bg-color-disabled: var(--ds-input-bg-color-disabled, var(--surface-disabled));--_input-label-color: var(--ds-input-label-color, var(--ds-field-label-color, var(--text-secondary)));--_input-label-fs: var(--ds-input-label-fs, var(--ds-field-label-font-size, var(--font-size-xs)));--_input-label-fw: var(--ds-input-label-fw, var(--ds-field-label-weight, var(--font-weight-bold)));--_input-fs: var(--ds-input-fs, var(--font-size-s));--_input-clear-color: var(--ds-input-clear-color, var(--text-secondary));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking);--_field-label-font-size: var(--_input-label-fs);--_field-label-weight: var(--_input-label-fw);--_field-label-color: var(--_input-label-color)}.field .label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.field .control{display:flex;align-items:center;gap:var(--space-2);background-color:var(--_input-bg-color);border:var(--border-width-default) solid var(--_input-border);border-radius:var(--_input-radius);padding:var(--_input-pad-y) var(--_input-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.field .control input{flex:1;min-width:0;appearance:none;border:0}@media not (forced-colors:active){.field .control input{outline:none}}.field .control input{background:transparent;font:var(--font-weight-regular) var(--_input-fs)/var(--line-height-base) var(--font-sans);color:var(--_input-text-color)}.field .control input::placeholder{color:var(--_input-placeholder)}.field .control input[type=search]::-webkit-search-cancel-button,.field .control input[type=search]::-webkit-search-decoration{display:none;appearance:none}.field .control .clear-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-md);height:var(--icon-md);padding:0;border:0;background-color:var(--_input-clear-color);cursor:pointer;flex-shrink:0;transition:background-color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard);-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>\") center/contain no-repeat}.field .control .clear-btn:hover{background-color:var(--text-primary)}.field .control .clear-btn:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.field .control .password-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;transition:color var(--duration-fast) var(--ease-standard),opacity var(--duration-fast) var(--ease-standard)}.field .control .password-toggle:hover{color:var(--text-primary)}.field .control .password-toggle:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--radius-sm)}.field .control:hover{border-color:var(--_input-border-hover)}.field .control:focus-within{border-color:var(--_input-border-focus);box-shadow:var(--_input-focus-shadow)}@media not (forced-colors:active){.field .control input:where(:focus-visible){outline:none}}.field.disabled .control{background-color:var(--_input-bg-color-disabled);border-color:var(--border-disabled)}.field.disabled input{color:var(--text-disabled)}.field.read-only .control{background:var(--surface-secondary)}.field.read-only .control input{cursor:default}.field.sm .control{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.field.lg .control{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}.field .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.field .addon-slot:empty{display:none}.field ::ng-deep .addon{display:inline-flex;align-items:center;padding:0 var(--space-3);margin:calc(var(--field-affix-overlap) * -1);background:var(--surface-secondary);color:var(--text-secondary);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);align-self:stretch;border-right:var(--border-width-default) solid var(--border-divider)}.field ::ng-deep .addon.right{border-right:0;border-left:var(--border-width-default) solid var(--border-divider)}.field:has(.addon-slot.prefix .addon) .control{padding-left:0}.field:has(.addon-slot.suffix .addon) .control{padding-right:0}.field .addon-slot.prefix ::ng-deep .addon{border-top-left-radius:var(--_input-radius);border-bottom-left-radius:var(--_input-radius)}.field .addon-slot.suffix ::ng-deep .addon.right{border-top-right-radius:var(--_input-radius);border-bottom-right-radius:var(--_input-radius)}.field .control ds-spinner{flex-shrink:0}.field .field-footer{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.field .char-counter{font-size:var(--font-size-xs);color:var(--text-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;margin-left:auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .control{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .control:hover,:host(.in-group) .control:focus,:host(.in-group) .control:focus-visible,:host(.in-group) .control:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--_input-border-error);background-color:var(--_input-bg-color-error)}:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .control:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_input-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .control:not(.disabled):not(:disabled){border-color:var(--_input-border-success)}\n"] }]
|
|
216
216
|
}], propDecorators: { control: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], enterKeyHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterKeyHint", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }], blurred: [{ type: i0.Output, args: ["blurred"] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], passwordToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordToggle", required: false }] }], passwordVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordVisible", required: false }] }, { type: i0.Output, args: ["passwordVisibleChange"] }] } });
|
|
217
217
|
|
|
218
218
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-input.mjs","sources":["../../../src/lib/components/input/input.component.ts","../../../src/lib/components/input/input.component.html","../../../src/lib/components/input/ids-group-ltd-ids-design-system-components-input.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { optionalBound } from '@ids-group-ltd/ids-design-system/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { InputType } from './input.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { inFieldGroup } from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-input',\n standalone: true,\n imports: [\n FormsModule,\n IconComponent,\n SpinnerComponent,\n FieldMessageComponent,\n FieldClickFocusDirective,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n },\n templateUrl: './input.component.html',\n styleUrl: './input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n})\nexport class InputComponent extends DsControlValueAccessor<string> {\n private readonly control = viewChild<ElementRef<HTMLInputElement>>('control');\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Native input type — also affects the default clear button and password toggle. */\n readonly type = input<InputType>('text');\n /** Field height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // The alias IS the point: signal forms binds by name, and the contract\n // spells it `readonly` where the DS spells it `readOnly`.\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a trailing spinner — e.g. async validation in flight. The input\n * stays editable; pair with a `hint` like \"Checking availability…\". */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Native `min` attribute — applies when `type=\"number\"`. */\n readonly min = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `max` attribute — applies when `type=\"number\"`. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `step` attribute — applies when `type=\"number\"`. */\n readonly step = input<number | null>(null);\n /** Native autocomplete token (e.g. \"email\", \"current-password\"). */\n readonly autocomplete = input<string | null>(null);\n /** Focuses the field automatically on render. */\n readonly autofocus = input(false, { transform: booleanAttribute });\n /** Accessible name when no visible `label` is provided (falls back to the\n * placeholder so the control is never unnamed). */\n readonly ariaLabel = input<string | null>(null);\n /** Extra element ids to describe the control with — a password-rule list, a\n * policy note. MERGED with the field's own message id rather than replacing\n * it, and it has to be an input because the attribute belongs on the inner\n * `<input>`: set on the host it lands on a wrapper no screen reader reads. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Hard character cap — applies the native maxlength attribute and shows a\n * live \"{current}/{max}\" counter below the field. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n // Signal forms binds these by name; without them a `pattern()` or `minLength()`\n // rule validated in the form model while the native element advertised nothing.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute — signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** Mobile keyboard hints — forwarded to the native input as attributes. */\n readonly enterKeyHint = input<\n 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null\n >(null);\n /** Native `inputmode` attribute — hints the on-screen keyboard layout. */\n readonly inputMode = input<\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | null\n >(null);\n /** Emits when the native input loses focus. */\n readonly blurred = output<void>();\n /**\n * Show an inline clear (×) button when the input has a non-empty value.\n * Mirrors the Material/PrimeNG pattern: explicit button (not native search\n * cancel) so the affordance is consistent across browsers and styled with\n * DS tokens. Defaults to true when type='search', false otherwise — pass\n * an explicit boolean to override.\n */\n readonly clearable = input<boolean | null>(null);\n\n /** Shows a show/hide button when `type=\"password\"`. */\n readonly passwordToggle = input(false, { transform: booleanAttribute });\n /** Whether the password is currently shown as plain text, two-way bound. */\n readonly passwordVisible = model<boolean>(false);\n\n protected readonly canClear = computed<boolean>(() => {\n const explicit = this.clearable();\n if (explicit !== null) {\n return explicit;\n }\n\n return this.type() === 'search';\n });\n\n /** A native `pattern` takes ONE expression; the schema can carry several, so\n * they are ANDed with lookaheads rather than silently dropping all but one. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-input');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n const ids = [this.hintId(), this.ariaDescribedBy()].filter(Boolean);\n\n return ids.length ? ids.join(' ') : null;\n });\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n /** Only name via aria-label when there's no visible `<label for>`. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n /** Effective disabled — own `disabled` input OR the reactive-forms state. */\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly showPasswordToggle = computed<boolean>(\n () =>\n this.passwordToggle() && this.type() === 'password' && !this.isDisabled(),\n );\n\n protected readonly effectiveType = computed<InputType>(() =>\n this.passwordToggle() &&\n this.type() === 'password' &&\n this.passwordVisible()\n ? 'text'\n : this.type(),\n );\n\n protected togglePassword(): void {\n this.passwordVisible.update((visible) => !visible);\n }\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n } else if (this.success().trim()) {\n parts.push('success');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.loading()) {\n parts.push('loading');\n }\n\n return parts.join(' ');\n });\n\n /** Move keyboard focus to the native input — public so a host can drive it\n * deliberately, e.g. focusing the first invalid field on a failed submit. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n\n protected clear(): void {\n this.value.set('');\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsDM,MAAO,cAAe,SAAQ,sBAA8B,CAAA;AAC/C,IAAA,OAAO,GAAG,SAAS,CAA+B,SAAS,8EAAC;AAC7E;AACwE;IACrD,OAAO,GAAG,YAAY,EAAE;;AAGlC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAY,MAAM,2EAAC;AACxC;AACiE;AACxD,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;AAEQ,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;IAE/B,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;;;AAGG;IACM,eAAe,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,8BAAA,EAA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,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvD9E;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-input.mjs","sources":["../../../src/lib/components/input/input.component.ts","../../../src/lib/components/input/input.component.html","../../../src/lib/components/input/ids-group-ltd-ids-design-system-components-input.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { optionalBound } from '@ids-group-ltd/ids-design-system/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { InputType } from './input.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { inFieldGroup } from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-input',\n standalone: true,\n imports: [\n FormsModule,\n IconComponent,\n SpinnerComponent,\n FieldMessageComponent,\n FieldClickFocusDirective,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n },\n templateUrl: './input.component.html',\n styleUrl: './input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n})\nexport class InputComponent extends DsControlValueAccessor<string> {\n private readonly control = viewChild<ElementRef<HTMLInputElement>>('control');\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Native input type — also affects the default clear button and password toggle. */\n readonly type = input<InputType>('text');\n /** Field height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // The alias IS the point: signal forms binds by name, and the contract\n // spells it `readonly` where the DS spells it `readOnly`.\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a trailing spinner — e.g. async validation in flight. The input\n * stays editable; pair with a `hint` like \"Checking availability…\". */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Native `min` attribute — applies when `type=\"number\"`. */\n readonly min = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `max` attribute — applies when `type=\"number\"`. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `step` attribute — applies when `type=\"number\"`. */\n readonly step = input<number | null>(null);\n /** Native autocomplete token (e.g. \"email\", \"current-password\"). */\n readonly autocomplete = input<string | null>(null);\n /** Focuses the field automatically on render. */\n readonly autofocus = input(false, { transform: booleanAttribute });\n /** Accessible name when no visible `label` is provided (falls back to the\n * placeholder so the control is never unnamed). */\n readonly ariaLabel = input<string | null>(null);\n /** Extra element ids to describe the control with — a password-rule list, a\n * policy note. MERGED with the field's own message id rather than replacing\n * it, and it has to be an input because the attribute belongs on the inner\n * `<input>`: set on the host it lands on a wrapper no screen reader reads. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Hard character cap — applies the native maxlength attribute and shows a\n * live \"{current}/{max}\" counter below the field. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n // Signal forms binds these by name; without them a `pattern()` or `minLength()`\n // rule validated in the form model while the native element advertised nothing.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute — signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** Mobile keyboard hints — forwarded to the native input as attributes. */\n readonly enterKeyHint = input<\n 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null\n >(null);\n /** Native `inputmode` attribute — hints the on-screen keyboard layout. */\n readonly inputMode = input<\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | null\n >(null);\n /** Emits when the native input loses focus. */\n readonly blurred = output<void>();\n /**\n * Show an inline clear (×) button when the input has a non-empty value.\n * Mirrors the Material/PrimeNG pattern: explicit button (not native search\n * cancel) so the affordance is consistent across browsers and styled with\n * DS tokens. Defaults to true when type='search', false otherwise — pass\n * an explicit boolean to override.\n */\n readonly clearable = input<boolean | null>(null);\n\n /** Shows a show/hide button when `type=\"password\"`. */\n readonly passwordToggle = input(false, { transform: booleanAttribute });\n /** Whether the password is currently shown as plain text, two-way bound. */\n readonly passwordVisible = model<boolean>(false);\n\n protected readonly canClear = computed<boolean>(() => {\n const explicit = this.clearable();\n if (explicit !== null) {\n return explicit;\n }\n\n return this.type() === 'search';\n });\n\n /** A native `pattern` takes ONE expression; the schema can carry several, so\n * they are ANDed with lookaheads rather than silently dropping all but one. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-input');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n const ids = [this.hintId(), this.ariaDescribedBy()].filter(Boolean);\n\n return ids.length ? ids.join(' ') : null;\n });\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n /** Only name via aria-label when there's no visible `<label for>`. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n /** Effective disabled — own `disabled` input OR the reactive-forms state. */\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly showPasswordToggle = computed<boolean>(\n () =>\n this.passwordToggle() && this.type() === 'password' && !this.isDisabled(),\n );\n\n protected readonly effectiveType = computed<InputType>(() =>\n this.passwordToggle() &&\n this.type() === 'password' &&\n this.passwordVisible()\n ? 'text'\n : this.type(),\n );\n\n protected togglePassword(): void {\n this.passwordVisible.update((visible) => !visible);\n }\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n } else if (this.success().trim()) {\n parts.push('success');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.loading()) {\n parts.push('loading');\n }\n\n return parts.join(' ');\n });\n\n /** Move keyboard focus to the native input — public so a host can drive it\n * deliberately, e.g. focusing the first invalid field on a failed submit. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n\n protected clear(): void {\n this.value.set('');\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear input\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible() ? 'Hide password' : 'Show password'\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n @if (loading()) {\n <ds-spinner size=\"sm\" />\n }\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsDM,MAAO,cAAe,SAAQ,sBAA8B,CAAA;AAC/C,IAAA,OAAO,GAAG,SAAS,CAA+B,SAAS,8EAAC;AAC7E;AACwE;IACrD,OAAO,GAAG,YAAY,EAAE;;AAGlC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAY,MAAM,2EAAC;AACxC;AACiE;AACxD,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;AAEQ,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;IAE/B,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;;;AAGG;IACM,eAAe,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,8BAAA,EAAA,CAAA;;;;AAIpC,QAAA,KAAK,EAAE,UAA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