@sixbell-telco/sdk 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -1
- package/_index.css +97 -9
- package/components/forms/combobox/src/combobox.component.d.ts +9 -1
- package/components/forms/date-picker/src/date-picker.component.d.ts +6 -1
- package/components/forms/input/README.md +2 -0
- package/components/forms/input/src/input.component.d.ts +28 -1
- package/components/forms/range/src/range.component.d.ts +9 -1
- package/components/forms/select/src/select.component.d.ts +9 -1
- package/components/forms/textarea/src/textarea.component.d.ts +9 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +12 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +8 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +39 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +12 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +13 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +13 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +12 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/package.json +5 -5
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.2.0] - 2026-10-14
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Forms**: `inputId` input on `st-input`, `st-textarea`, `st-select`, `st-combobox`, `st-range` and `st-date-picker` to set the control id the label points at (a stable unique id is generated otherwise).
|
|
15
|
+
- **Input**: `passwordToggle` on `st-input type="password"` (see Fixed).
|
|
16
|
+
- **Theme**: `--color-{info,success,warning,error}-strong` tokens for status text on base surfaces (see Fixed).
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **Forms**: `st-input`, `st-textarea`, `st-select`, `st-combobox` and `st-range` now name their control from `label`. The hidden `<label for>` pointed at `name`, but the inner control never had that id, so screen readers announced the fields without a name. Each control now gets a stable unique id (`st-input-0`, `st-select-1`, …) or the new `inputId` input, and the label points at it; no hidden label is rendered when `label` is empty. `st-date-picker` gets `inputId` too (falls back to `name`) for the projected trigger and drops the dangling label when neither is set
|
|
21
|
+
- **Input**: `passwordToggle` input on `st-input type="password"` renders a built-in reveal button named from the new `sdk.input.showPassword` / `sdk.input.hidePassword` keys (added to the en, es and pt SDK bundles, English fallback), controlling the input
|
|
22
|
+
- **Theme**: status text on base surfaces now meets WCAG AA. Outline, ghost, soft and dash buttons at rest, link buttons, outline/dash/soft badges and `link-*` read the new `--color-info-strong`, `--color-success-strong`, `--color-warning-strong` and `--color-error-strong` tokens (also `text-*-strong` utilities) instead of the fill colors. Light `enghouse_networks`, on `base-200` (`base-100`): warning 1.75:1 (1.63) → 6.14:1 (5.72), info 2.82:1 (2.62) → 5.78:1 (5.38), success 2.71:1 (2.52) → 6.18:1 (5.75), error 5.38:1 (5.00) → 6.35:1 (5.91, so the soft tint also passes). Dark values equal the fills, which already passed (5.33:1 or more). Filled status buttons and badges are unchanged. Every theme root (`:root` and any `[data-theme]`) derives the tokens from its own colors, `color-mix(in oklab, var(--color-<status>) 40%, var(--color-base-content))`, so a custom light or dark theme without them still passes AA; only `enghouse_networks__light` / `__dark` (and the unthemed root) pin the tuned values. Themes can override the tokens in their own `[data-theme]` block
|
|
23
|
+
|
|
24
|
+
### Consumer upgrade
|
|
25
|
+
|
|
26
|
+
- Remove local label workarounds such as IRP's `appInputLabelFor` directive: `st-input` and the other form fields now associate their label themselves. Pass `inputId` where a test or `aria-describedby` needs a known id
|
|
27
|
+
- Replace app-built password reveal buttons inside `st-input` with `passwordToggle`, or give them an `aria-label`
|
|
28
|
+
- Consumer theme catalogs that copy `enghouse_networks` may add the four `--color-*-strong` tokens; without them the stylesheet's tuned values apply under the `enghouse_networks__*` theme names, and any other theme name gets the mix computed from that theme's own colors
|
|
29
|
+
|
|
30
|
+
## [4.1.2] - 2026-10-13
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **Theme**: switching the color scheme (for example Light → Dark from the user menu) now also updates overlays that are already open, such as the sidebar user menu, dropdowns, selects, comboboxes, tooltips and dialogs. Before, the page switched but an open overlay kept the previous scheme until it was closed and reopened.
|
|
35
|
+
|
|
10
36
|
## [4.1.1] - 2026-10-12
|
|
11
37
|
|
|
12
38
|
### Fixed
|
|
@@ -939,7 +965,9 @@ Each MFE (SBP host, aux-tables, audit, Herald, guas, ddt, bulkload) does the fol
|
|
|
939
965
|
- **ngx-pagination**: Removed dependency after migrating to internal PaginationPipe
|
|
940
966
|
- **Unused Exports**: Removed unused components and exports from public API
|
|
941
967
|
|
|
942
|
-
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.
|
|
968
|
+
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.2.0...HEAD
|
|
969
|
+
[4.2.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.2...4.2.0
|
|
970
|
+
[4.1.2]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.1...4.1.2
|
|
943
971
|
[4.1.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.0...4.1.1
|
|
944
972
|
[4.1.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.0.0...4.1.0
|
|
945
973
|
[4.0.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.3.1...4.0.0
|
package/_index.css
CHANGED
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
* shadow root inherits the host scheme instead of being reset to these fallbacks.
|
|
190
190
|
*/
|
|
191
191
|
--color-base-50: var(--color-base-50, color-mix(in oklch, var(--color-base-200) 97%, oklch(0% 0 0)));
|
|
192
|
+
--color-info-strong: var(--color-info-strong, color-mix(in oklab, var(--color-info) 40%, var(--color-base-content)));
|
|
193
|
+
--color-success-strong: var(--color-success-strong, color-mix(in oklab, var(--color-success) 40%, var(--color-base-content)));
|
|
194
|
+
--color-warning-strong: var(--color-warning-strong, color-mix(in oklab, var(--color-warning) 40%, var(--color-base-content)));
|
|
195
|
+
--color-error-strong: var(--color-error-strong, color-mix(in oklab, var(--color-error) 40%, var(--color-base-content)));
|
|
192
196
|
--color-primary-light: var(--color-primary-light, color-mix(in oklch, var(--color-primary) 78%, oklch(100% 0 0)));
|
|
193
197
|
--color-primary-gradient: var(--color-primary-gradient, color-mix(in oklch, var(--color-primary) 90%, var(--color-base-content)));
|
|
194
198
|
--color-primary-gradient-content: var(--color-primary-gradient-content, oklch(100% 0 0));
|
|
@@ -280,6 +284,45 @@
|
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
|
|
287
|
+
@layer base {
|
|
288
|
+
/*
|
|
289
|
+
* Status text on base surfaces (outline, ghost, soft, dash, link): WCAG AA 4.5:1 on base-100 and base-200.
|
|
290
|
+
* Every theme root derives the token from its own status and base-content colors; only the shipped
|
|
291
|
+
* enghouse_networks schemes pin tuned values. The daisyui/theme blocks must not define these tokens:
|
|
292
|
+
* the default theme is emitted on :where(:root), which every page matches.
|
|
293
|
+
*/
|
|
294
|
+
:where(:root, [data-theme]) {
|
|
295
|
+
--color-info-strong: color-mix(in oklab, var(--color-info) 40%, var(--color-base-content));
|
|
296
|
+
--color-success-strong: color-mix(in oklab, var(--color-success) 40%, var(--color-base-content));
|
|
297
|
+
--color-warning-strong: color-mix(in oklab, var(--color-warning) 40%, var(--color-base-content));
|
|
298
|
+
--color-error-strong: color-mix(in oklab, var(--color-error) 40%, var(--color-base-content));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:root:not([data-theme]),
|
|
302
|
+
[data-theme='enghouse_networks__light'] {
|
|
303
|
+
--color-info-strong: oklch(50% 0.12 235);
|
|
304
|
+
--color-success-strong: oklch(48% 0.13 145);
|
|
305
|
+
--color-warning-strong: oklch(50% 0.105 70);
|
|
306
|
+
--color-error-strong: oklch(51% 0.19 25);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
[data-theme='enghouse_networks__dark'] {
|
|
310
|
+
--color-info-strong: oklch(72% 0.12 235);
|
|
311
|
+
--color-success-strong: oklch(74% 0.16 145);
|
|
312
|
+
--color-warning-strong: oklch(82% 0.15 90);
|
|
313
|
+
--color-error-strong: oklch(68% 0.18 25);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@media (prefers-color-scheme: dark) {
|
|
317
|
+
:root:not([data-theme]) {
|
|
318
|
+
--color-info-strong: oklch(72% 0.12 235);
|
|
319
|
+
--color-success-strong: oklch(74% 0.16 145);
|
|
320
|
+
--color-warning-strong: oklch(82% 0.15 90);
|
|
321
|
+
--color-error-strong: oklch(68% 0.18 25);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
283
326
|
@layer base {
|
|
284
327
|
/* Standard scrollbars (Firefox, Chromium 121+): thin, theme-derived thumb, transparent track */
|
|
285
328
|
:where(html, :host, *) {
|
|
@@ -604,15 +647,6 @@
|
|
|
604
647
|
--btn-fg: var(--color-neutral-content);
|
|
605
648
|
}
|
|
606
649
|
|
|
607
|
-
.btn-disabled,
|
|
608
|
-
.btn:is(:disabled, [disabled], [aria-disabled='true']) {
|
|
609
|
-
color: var(--color-disabled-content, color-mix(in oklch, var(--color-base-content) 20%, transparent));
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
:is(.btn-disabled, .btn:is(:disabled, [disabled], [aria-disabled='true'])):not(.btn-link, .btn-ghost) {
|
|
613
|
-
background-color: var(--color-disabled, color-mix(in oklch, var(--color-base-content) 10%, transparent));
|
|
614
|
-
}
|
|
615
|
-
|
|
616
650
|
.badge-tertiary {
|
|
617
651
|
--badge-color: var(--color-tertiary);
|
|
618
652
|
--badge-fg: var(--color-tertiary-content);
|
|
@@ -639,6 +673,60 @@
|
|
|
639
673
|
box-shadow: none;
|
|
640
674
|
}
|
|
641
675
|
|
|
676
|
+
/*
|
|
677
|
+
* Status colors are tuned as fills. Where the status color is text on a base surface (outline, ghost,
|
|
678
|
+
* soft and dash buttons at rest, link buttons, outline/dash/soft badges, links), read the
|
|
679
|
+
* --color-<status>-strong token instead. Themes that do not define it get a mix toward base-content.
|
|
680
|
+
*/
|
|
681
|
+
.btn-info {
|
|
682
|
+
--btn-rest-fg: var(--color-info-strong, color-mix(in oklab, var(--color-info) 40%, var(--color-base-content)));
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.btn-link.btn-info,
|
|
686
|
+
.badge-info:is(.badge-outline, .badge-dash, .badge-soft),
|
|
687
|
+
.link-info {
|
|
688
|
+
color: var(--color-info-strong, color-mix(in oklab, var(--color-info) 40%, var(--color-base-content)));
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.btn-success {
|
|
692
|
+
--btn-rest-fg: var(--color-success-strong, color-mix(in oklab, var(--color-success) 40%, var(--color-base-content)));
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.btn-link.btn-success,
|
|
696
|
+
.badge-success:is(.badge-outline, .badge-dash, .badge-soft),
|
|
697
|
+
.link-success {
|
|
698
|
+
color: var(--color-success-strong, color-mix(in oklab, var(--color-success) 40%, var(--color-base-content)));
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.btn-warning {
|
|
702
|
+
--btn-rest-fg: var(--color-warning-strong, color-mix(in oklab, var(--color-warning) 40%, var(--color-base-content)));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.btn-link.btn-warning,
|
|
706
|
+
.badge-warning:is(.badge-outline, .badge-dash, .badge-soft),
|
|
707
|
+
.link-warning {
|
|
708
|
+
color: var(--color-warning-strong, color-mix(in oklab, var(--color-warning) 40%, var(--color-base-content)));
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.btn-error {
|
|
712
|
+
--btn-rest-fg: var(--color-error-strong, color-mix(in oklab, var(--color-error) 40%, var(--color-base-content)));
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.btn-link.btn-error,
|
|
716
|
+
.badge-error:is(.badge-outline, .badge-dash, .badge-soft),
|
|
717
|
+
.link-error {
|
|
718
|
+
color: var(--color-error-strong, color-mix(in oklab, var(--color-error) 40%, var(--color-base-content)));
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.btn-disabled,
|
|
722
|
+
.btn:is(:disabled, [disabled], [aria-disabled='true']) {
|
|
723
|
+
color: var(--color-disabled-content, color-mix(in oklch, var(--color-base-content) 20%, transparent));
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
:is(.btn-disabled, .btn:is(:disabled, [disabled], [aria-disabled='true'])):not(.btn-link, .btn-ghost) {
|
|
727
|
+
background-color: var(--color-disabled, color-mix(in oklch, var(--color-base-content) 10%, transparent));
|
|
728
|
+
}
|
|
729
|
+
|
|
642
730
|
.checkbox-tertiary {
|
|
643
731
|
@apply text-tertiary-content;
|
|
644
732
|
--input-color: var(--color-tertiary);
|
|
@@ -120,6 +120,14 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
120
120
|
* The HTML name attribute for the underlying form control
|
|
121
121
|
*/
|
|
122
122
|
name: import("@angular/core").InputSignal<string | null>;
|
|
123
|
+
/**
|
|
124
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
125
|
+
*/
|
|
126
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
127
|
+
/** @internal */
|
|
128
|
+
private readonly generatedId;
|
|
129
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
130
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
123
131
|
/**
|
|
124
132
|
* Placeholder text displayed when no option is selected
|
|
125
133
|
*/
|
|
@@ -564,6 +572,6 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
564
572
|
*/
|
|
565
573
|
private setupSearchQueryEmission;
|
|
566
574
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
567
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
575
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "st-combobox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "allowClearAll": { "alias": "allowClearAll"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "searchDebounced": { "alias": "searchDebounced"; "required": false; "isSignal": true; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "searchQuery": "searchQuery"; }, never, ["*"], true, never>;
|
|
568
576
|
}
|
|
569
577
|
export {};
|
|
@@ -123,6 +123,11 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
123
123
|
rangeValue: import("@angular/core").InputSignal<DateRange | null>;
|
|
124
124
|
/** Name attribute for associated input (useful when wrapping with st-input). */
|
|
125
125
|
name: import("@angular/core").InputSignal<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Id of the projected trigger control that the hidden label points to (falls back to `name`).
|
|
128
|
+
* Give the same id to the projected control, for example `<st-input [inputId]="...">`.
|
|
129
|
+
*/
|
|
130
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
126
131
|
/**
|
|
127
132
|
* Number of calendars to show in range mode
|
|
128
133
|
* @defaultValue 2
|
|
@@ -345,5 +350,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
345
350
|
onStartTimeChange(ev: Event): void;
|
|
346
351
|
onEndTimeChange(ev: Event): void;
|
|
347
352
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
348
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
353
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
349
354
|
}
|
|
@@ -16,3 +16,5 @@ Text field. Default `variant` is `base`.
|
|
|
16
16
|
|
|
17
17
|
- Supports `parentForm` / `formControlName`, `onlyNumbers`, `ghost`, `debounceTime`.
|
|
18
18
|
- Prefer `(triggered)` instead of the old `(enterPressed)`.
|
|
19
|
+
- `label` names the inner `<input>` through a generated id; pass `inputId` when you need a known id.
|
|
20
|
+
- `passwordToggle` on `type="password"` adds a reveal button named from `sdk.input.showPassword` / `sdk.input.hidePassword`.
|
|
@@ -71,6 +71,15 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
71
71
|
* HTML name attribute for the input
|
|
72
72
|
*/
|
|
73
73
|
name: import("@angular/core").InputSignal<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
* Id of the inner `<input>`, used by its label. A unique id is generated when omitted.
|
|
76
|
+
*/
|
|
77
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
78
|
+
/**
|
|
79
|
+
* Show a built-in button that reveals or hides the value when `type` is `password`
|
|
80
|
+
* @defaultValue false
|
|
81
|
+
*/
|
|
82
|
+
passwordToggle: import("@angular/core").InputSignal<boolean>;
|
|
74
83
|
/**
|
|
75
84
|
* Input placeholder text
|
|
76
85
|
*/
|
|
@@ -144,7 +153,25 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
144
153
|
private debounceAction$;
|
|
145
154
|
private debounceTimeEffect;
|
|
146
155
|
private value$;
|
|
156
|
+
private readonly generatedId;
|
|
157
|
+
private readonly translateLabel;
|
|
158
|
+
/** @internal Whether the password value is currently shown as plain text */
|
|
159
|
+
protected readonly passwordVisible: import("@angular/core").WritableSignal<boolean>;
|
|
160
|
+
/** @internal Id applied to the inner input and referenced by its label */
|
|
161
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
162
|
+
/** @internal Whether the built-in password reveal button is rendered */
|
|
163
|
+
protected readonly showPasswordToggle: import("@angular/core").Signal<boolean>;
|
|
164
|
+
/** @internal Native type applied to the inner input */
|
|
165
|
+
protected readonly nativeType: import("@angular/core").Signal<HTMLNativeInputType>;
|
|
166
|
+
/** @internal Name of the icon-only password reveal button */
|
|
167
|
+
protected readonly passwordToggleLabel: import("@angular/core").Signal<string>;
|
|
168
|
+
/** @internal */
|
|
169
|
+
protected readonly iconShowPassword = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 0 1 0 5a2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z\"></path></svg>";
|
|
170
|
+
/** @internal */
|
|
171
|
+
protected readonly iconHidePassword = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 6a9.77 9.77 0 0 1 8.82 5.5a9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42l1.41-1.41L3.42 2.45L2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 0 0-.36 1.78a4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z\"></path></svg>";
|
|
147
172
|
constructor();
|
|
173
|
+
/** @internal Toggles password visibility */
|
|
174
|
+
togglePasswordVisibility(): void;
|
|
148
175
|
/**
|
|
149
176
|
* @internal
|
|
150
177
|
* Computed base input classes
|
|
@@ -207,6 +234,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
207
234
|
*/
|
|
208
235
|
private setupDebounce;
|
|
209
236
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
210
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "clicked": "clicked"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "passwordToggle": { "alias": "passwordToggle"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "clicked": "clicked"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
211
238
|
}
|
|
212
239
|
export {};
|
|
@@ -65,6 +65,14 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
65
65
|
* HTML name attribute for the range slider
|
|
66
66
|
*/
|
|
67
67
|
name: import("@angular/core").InputSignal<string | null>;
|
|
68
|
+
/**
|
|
69
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
70
|
+
*/
|
|
71
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
private readonly generatedId;
|
|
74
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
75
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
68
76
|
/**
|
|
69
77
|
* Minimum value of the range slider
|
|
70
78
|
* @defaultValue 0
|
|
@@ -165,5 +173,5 @@ export declare class RangeComponent implements ControlValueAccessor {
|
|
|
165
173
|
*/
|
|
166
174
|
handlePointerDown(event: PointerEvent): void;
|
|
167
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<RangeComponent, never>;
|
|
168
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "pointerDown": "pointerDown"; "triggered": "triggered"; }, never, never, true, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RangeComponent, "st-range", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showRange": { "alias": "showRange"; "required": false; "isSignal": true; }; "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "pointerDown": "pointerDown"; "triggered": "triggered"; }, never, never, true, never>;
|
|
169
177
|
}
|
|
@@ -79,6 +79,14 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
79
79
|
* HTML name attribute for the select
|
|
80
80
|
*/
|
|
81
81
|
name: import("@angular/core").InputSignal<string | null>;
|
|
82
|
+
/**
|
|
83
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
84
|
+
*/
|
|
85
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
86
|
+
/** @internal */
|
|
87
|
+
private readonly generatedId;
|
|
88
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
89
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
82
90
|
/**
|
|
83
91
|
* Placeholder text when no option is selected
|
|
84
92
|
*/
|
|
@@ -402,6 +410,6 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
402
410
|
*/
|
|
403
411
|
private updateActiveOptionVisually;
|
|
404
412
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
405
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
413
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "st-select", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "displayKey": { "alias": "displayKey"; "required": false; "isSignal": true; }; "valueKey": { "alias": "valueKey"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "blurred": "blurred"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
406
414
|
}
|
|
407
415
|
export {};
|
|
@@ -71,6 +71,14 @@ export declare class TextareaComponent {
|
|
|
71
71
|
* HTML name attribute for the textarea
|
|
72
72
|
*/
|
|
73
73
|
name: import("@angular/core").InputSignal<string | null>;
|
|
74
|
+
/**
|
|
75
|
+
* Id of the focusable control, used by its label. A unique id is generated when omitted.
|
|
76
|
+
*/
|
|
77
|
+
inputId: import("@angular/core").InputSignal<string | null>;
|
|
78
|
+
/** @internal */
|
|
79
|
+
private readonly generatedId;
|
|
80
|
+
/** @internal Id applied to the focusable control and referenced by its label */
|
|
81
|
+
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
74
82
|
/**
|
|
75
83
|
* Placeholder text when empty
|
|
76
84
|
*/
|
|
@@ -244,5 +252,5 @@ export declare class TextareaComponent {
|
|
|
244
252
|
*/
|
|
245
253
|
private setupDebounce;
|
|
246
254
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
247
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "st-textarea", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "blurred": "blurred"; "value": "valueChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "valueDebounced": "valueDebounced"; }, never, ["*"], true, never>;
|
|
255
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "st-textarea", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxCharacters": { "alias": "maxCharacters"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "blurred": "blurred"; "value": "valueChange"; "keyDownEnter": "keyDownEnter"; "triggered": "triggered"; "valueDebounced": "valueDebounced"; }, never, ["*"], true, never>;
|
|
248
256
|
}
|
|
@@ -1327,7 +1327,7 @@ class DataTableContainerComponent {
|
|
|
1327
1327
|
});
|
|
1328
1328
|
});
|
|
1329
1329
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1330
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DataTableContainerComponent, isStandalone: true, selector: "st-data-table", inputs: { noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loading()) {\n\t\t\t{{ 'sdk.dataTable.loading' | translate }}\n\t\t}\n\t</span>\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (showNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\" [attr.aria-busy]=\"loading() || null\">\n\t\t\t\t\t<ng-content select=\"caption, colgroup\"></ng-content>\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loading()) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1330
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DataTableContainerComponent, isStandalone: true, selector: "st-data-table", inputs: { noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<span role=\"status\" class=\"sr-only\">\n\t\t@if (loading()) {\n\t\t\t{{ 'sdk.dataTable.loading' | translate }}\n\t\t}\n\t</span>\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full\">\n\t\t\t@if (showNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (showNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\" [attr.aria-busy]=\"loading() || null\">\n\t\t\t\t\t<ng-content select=\"caption, colgroup\"></ng-content>\n\t\t\t\t\t<ng-content select=\"thead\"></ng-content>\n\t\t\t\t\t@if (loading()) {\n\t\t\t\t\t\t<tbody data-st-skeleton aria-hidden=\"true\">\n\t\t\t\t\t\t\t@for (row of skeletonRows(); track row) {\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t@for (column of skeletonColumns(); track column) {\n\t\t\t\t\t\t\t\t\t\t<td><div [class]=\"skeletonClass()\"></div></td>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t\t}\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1331
1331
|
}
|
|
1332
1332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, decorators: [{
|
|
1333
1333
|
type: Component,
|