@sixbell-telco/sdk 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/components/alert/src/alert.component.d.ts +8 -1
- package/components/data-table/README.md +1 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +12 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +6 -0
- package/components/forms/combobox/README.md +41 -1
- package/components/forms/combobox/src/combobox.component.d.ts +134 -3
- package/components/forms/select/README.md +41 -1
- package/components/forms/select/src/select.component.d.ts +119 -3
- package/components/forms/textarea/src/textarea.component.d.ts +6 -1
- package/components/progress/src/progress.component.d.ts +17 -3
- package/components/table/README.md +2 -0
- package/components/table/src/table.component.d.ts +13 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +32 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +204 -21
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +189 -17
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +11 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +22 -4
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +39 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/i18n/sdk/en.json +7 -1
- package/i18n/sdk/es.json +7 -1
- package/i18n/sdk/pt.json +7 -1
- package/manifest.json +95 -9
- package/package.json +1 -1
|
@@ -15,6 +15,10 @@ export type SelectProps = {
|
|
|
15
15
|
variant?: SelectVariantProps;
|
|
16
16
|
size?: SelectSizeProps;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* How wide the options panel is: `'trigger'` copies the control's width, `'content'` grows to the widest option
|
|
20
|
+
*/
|
|
21
|
+
export type SelectPanelWidth = 'trigger' | 'content';
|
|
18
22
|
/** Animation states for the select overlay */
|
|
19
23
|
type AnimationState = 'closed' | 'opening' | 'open' | 'closing';
|
|
20
24
|
/**
|
|
@@ -133,16 +137,48 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
133
137
|
*/
|
|
134
138
|
disabledKey: import("@angular/core").InputSignal<string>;
|
|
135
139
|
/**
|
|
136
|
-
* The object property holding a secondary text shown
|
|
140
|
+
* The object property holding a secondary text shown right-aligned on the option row
|
|
137
141
|
* (for example why it is disabled: "Already added"). It is part of the
|
|
138
142
|
* option's accessible name.
|
|
139
143
|
*/
|
|
140
144
|
descriptionKey: import("@angular/core").InputSignal<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The object property naming the group an option belongs to. Options that share a value are listed
|
|
147
|
+
* together under one header showing that value, groups in the order they first appear, each group
|
|
148
|
+
* named by its header for assistive technology. Options without the property are listed first,
|
|
149
|
+
* ungrouped. Headers cannot be chosen and the arrow keys skip them. Leave empty for a flat list.
|
|
150
|
+
*/
|
|
151
|
+
groupKey: import("@angular/core").InputSignal<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The object property that marks an option as already taken outside this field when truthy (for
|
|
154
|
+
* example a country added earlier). The option shows the check icon, in the option's own color, but
|
|
155
|
+
* it is not part of the value and never appears in the trigger. Pair it with `disabledKey` so it is
|
|
156
|
+
* dimmed, check included, and cannot be chosen again.
|
|
157
|
+
*/
|
|
158
|
+
checkedKey: import("@angular/core").InputSignal<string>;
|
|
141
159
|
/**
|
|
142
160
|
* Whether to show a clear button next to the selected value
|
|
143
161
|
* @default true
|
|
144
162
|
*/
|
|
145
163
|
allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
164
|
+
/**
|
|
165
|
+
* Width of the options panel.
|
|
166
|
+
* - `'trigger'`: as wide as the control; a long option wraps onto more lines.
|
|
167
|
+
* - `'content'`: at least as wide as the control and wider when an option needs it, up to
|
|
168
|
+
* `min(28rem, 100vw - 2rem)`. Options stay on one line; past that cap the description, then the label,
|
|
169
|
+
* end in an ellipsis and the row shows its full text as a tooltip. Near the viewport edge the panel
|
|
170
|
+
* aligns to the control's end instead of overflowing.
|
|
171
|
+
* @defaultValue 'trigger'
|
|
172
|
+
*/
|
|
173
|
+
panelWidth: import("@angular/core").InputSignal<SelectPanelWidth>;
|
|
174
|
+
/**
|
|
175
|
+
* Size the closed control to its widest option or the placeholder, measured with the option row's own
|
|
176
|
+
* font, padding and check icon for the current `size`. A selected value never truncates and the control
|
|
177
|
+
* keeps its width between selections. The panel then follows its options as with `panelWidth="content"`.
|
|
178
|
+
* The control does not shrink in a flex row (`shrink-0`); `min-w-*` and `w-*` classes on the element still apply.
|
|
179
|
+
* @defaultValue false
|
|
180
|
+
*/
|
|
181
|
+
fitOptions: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
146
182
|
/**
|
|
147
183
|
* Parent form group for reactive forms
|
|
148
184
|
*/
|
|
@@ -218,6 +254,27 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
218
254
|
private readonly currentPosition;
|
|
219
255
|
/** Overlay positions with a symmetric 4px trigger gap (below first, flip above) */
|
|
220
256
|
readonly overlayPositions: ConnectedPosition[];
|
|
257
|
+
/** @internal Content-width panel positions: a panel wider than the control aligns to its end near the viewport edge */
|
|
258
|
+
private readonly contentOverlayPositions;
|
|
259
|
+
/** @internal Whether the panel sizes to its options (`panelWidth="content"` or `fitOptions`) */
|
|
260
|
+
protected readonly contentPanel: import("@angular/core").Signal<boolean>;
|
|
261
|
+
/** @internal Positions bound to the overlay */
|
|
262
|
+
protected readonly activeOverlayPositions: import("@angular/core").Signal<ConnectedPosition[]>;
|
|
263
|
+
/** @internal Fixed overlay width: the trigger width, or none when the panel sizes to its options */
|
|
264
|
+
protected readonly overlayWidth: import("@angular/core").Signal<string | number>;
|
|
265
|
+
/** @internal Classes of the panel box */
|
|
266
|
+
protected readonly panelClass: import("@angular/core").Signal<string>;
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
* Classes of the hidden option sizer: the panel's menu size, so rows measure alike, plus a reserved scrollbar
|
|
270
|
+
* gutter, so a list that scrolls keeps the width of one that does not; capped like the panel, so a long
|
|
271
|
+
* option cannot widen the control past the panel
|
|
272
|
+
*/
|
|
273
|
+
protected readonly optionSizerClass: import("@angular/core").Signal<string>;
|
|
274
|
+
/** @internal Classes of an option row */
|
|
275
|
+
protected readonly optionRowClass = "group-[.cdk-option-active]:bg-base-300 font-body flex w-full items-center justify-between rounded-none px-4 py-2 text-left leading-normal font-normal text-pretty transition-colors duration-150 ease-in-out group-data-disabled:cursor-not-allowed group-data-disabled:bg-transparent group-data-disabled:text-(--color-disabled-content) group-data-disabled:hover:bg-transparent";
|
|
276
|
+
/** @internal Texts the closed control must fit with `fitOptions`: the placeholder and every option label */
|
|
277
|
+
protected readonly valueSizerLabels: import("@angular/core").Signal<any[]>;
|
|
221
278
|
/** Real placement of the open panel, bound to `data-side` / `data-align`; null until the CDK places it */
|
|
222
279
|
readonly placement: import("@angular/core").Signal<PopoverPlacement | null>;
|
|
223
280
|
/**
|
|
@@ -298,11 +355,30 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
298
355
|
* @internal
|
|
299
356
|
*/
|
|
300
357
|
validationClass: import("@angular/core").Signal<string>;
|
|
358
|
+
/**
|
|
359
|
+
* @internal
|
|
360
|
+
* Options in the order they are listed: ungrouped first, then each `groupKey` group
|
|
361
|
+
*/
|
|
362
|
+
protected readonly optionSections: import("@angular/core").Signal<{
|
|
363
|
+
label: string | null;
|
|
364
|
+
headerId: string | null;
|
|
365
|
+
options: {
|
|
366
|
+
option: any;
|
|
367
|
+
index: number;
|
|
368
|
+
}[];
|
|
369
|
+
}[]>;
|
|
370
|
+
/**
|
|
371
|
+
* @internal
|
|
372
|
+
* Options in the order they are listed, which keyboard navigation and `data-option-index` follow
|
|
373
|
+
*/
|
|
374
|
+
protected readonly orderedOptions: import("@angular/core").Signal<any[]>;
|
|
301
375
|
/**
|
|
302
376
|
* CSS classes for the options menu
|
|
303
377
|
* @internal
|
|
304
378
|
*/
|
|
305
379
|
menuClass: import("@angular/core").Signal<string>;
|
|
380
|
+
/** @internal Menu size modifier shared by the options list and the option sizer */
|
|
381
|
+
private readonly menuSizeClass;
|
|
306
382
|
/**
|
|
307
383
|
* Updates the trigger width for proper overlay positioning
|
|
308
384
|
*/
|
|
@@ -415,6 +491,12 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
415
491
|
* @returns True if the option cannot be chosen
|
|
416
492
|
*/
|
|
417
493
|
isOptionDisabled(option: any): boolean;
|
|
494
|
+
/**
|
|
495
|
+
* Whether an option is marked as already taken through `checkedKey`
|
|
496
|
+
* @param option - The option to check
|
|
497
|
+
* @returns True if the option shows the check without being part of the value
|
|
498
|
+
*/
|
|
499
|
+
isOptionChecked(option: any): boolean;
|
|
418
500
|
/**
|
|
419
501
|
* Gets the secondary text for an option through `descriptionKey`
|
|
420
502
|
* @param option - The option to read
|
|
@@ -431,12 +513,45 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
431
513
|
* Updates the trigger button width for overlay positioning
|
|
432
514
|
*/
|
|
433
515
|
private updateTriggerWidth;
|
|
516
|
+
/**
|
|
517
|
+
* @internal
|
|
518
|
+
* On hover of a single-line option, shows its full text as a tooltip when its label or description is cut off
|
|
519
|
+
* @param event - The pointer event on the option row
|
|
520
|
+
* @param option - The option the row shows
|
|
521
|
+
*/
|
|
522
|
+
protected syncOptionTitle(event: Event, option: any): void;
|
|
523
|
+
/**
|
|
524
|
+
* Sets the full-text tooltip of an option row when its label or description is cut off, or removes it;
|
|
525
|
+
* runs on hover and when the row becomes the keyboard-active one
|
|
526
|
+
* @param row - The option row
|
|
527
|
+
* @param option - The option the row shows
|
|
528
|
+
*/
|
|
529
|
+
private syncRowTitle;
|
|
530
|
+
/**
|
|
531
|
+
* Gets the full text of an option: its label, then its description when it has one
|
|
532
|
+
* @param option - The option to read
|
|
533
|
+
* @returns The text shown as the tooltip of a truncated option
|
|
534
|
+
*/
|
|
535
|
+
private getOptionFullText;
|
|
434
536
|
/**
|
|
435
537
|
* Gets the value property from an option
|
|
436
538
|
* @param option - The option to get value from
|
|
437
539
|
* @returns The option value
|
|
438
540
|
*/
|
|
439
541
|
private getOptionValue;
|
|
542
|
+
/**
|
|
543
|
+
* Gets the group an option belongs to through `groupKey`
|
|
544
|
+
* @param option - The option to read
|
|
545
|
+
* @returns The group name, or null when the option is ungrouped
|
|
546
|
+
*/
|
|
547
|
+
private getOptionGroup;
|
|
548
|
+
/**
|
|
549
|
+
* Splits options into the ungrouped run, listed first, and one section per group in first-appearance order.
|
|
550
|
+
* `index` is the option's position in the listed order; `headerId` is unique per instance.
|
|
551
|
+
* @param options - The options to list
|
|
552
|
+
* @returns The sections to render
|
|
553
|
+
*/
|
|
554
|
+
private groupOptions;
|
|
440
555
|
/**
|
|
441
556
|
* Triggers blur event for form validation
|
|
442
557
|
*/
|
|
@@ -455,7 +570,8 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
455
570
|
*/
|
|
456
571
|
private setActiveOption;
|
|
457
572
|
/**
|
|
458
|
-
*
|
|
573
|
+
* Makes the selected option active when the panel opens, so the highlight and the check sit on the same row;
|
|
574
|
+
* without an enabled selected option, the first enabled one
|
|
459
575
|
*/
|
|
460
576
|
private setDefaultActiveOption;
|
|
461
577
|
/**
|
|
@@ -463,6 +579,6 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
463
579
|
*/
|
|
464
580
|
private updateActiveOptionVisually;
|
|
465
581
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
466
|
-
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; }; "required": { "alias": "required"; "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; }; "disabledKey": { "alias": "disabledKey"; "required": false; "isSignal": true; }; "descriptionKey": { "alias": "descriptionKey"; "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>;
|
|
582
|
+
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; }; "required": { "alias": "required"; "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; }; "disabledKey": { "alias": "disabledKey"; "required": false; "isSignal": true; }; "descriptionKey": { "alias": "descriptionKey"; "required": false; "isSignal": true; }; "groupKey": { "alias": "groupKey"; "required": false; "isSignal": true; }; "checkedKey": { "alias": "checkedKey"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "fitOptions": { "alias": "fitOptions"; "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>;
|
|
467
583
|
}
|
|
468
584
|
export {};
|
|
@@ -86,6 +86,10 @@ export declare class TextareaComponent {
|
|
|
86
86
|
private readonly generatedId;
|
|
87
87
|
/** @internal Id applied to the focusable control and referenced by its label */
|
|
88
88
|
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
89
|
+
/** @internal Id of the character counter, referenced by the textarea's `aria-describedby`. */
|
|
90
|
+
protected readonly counterId: import("@angular/core").Signal<string>;
|
|
91
|
+
/** @internal Hint and error ids from `st-form-item`, plus the counter id while a `maxCharacters` limit is set. */
|
|
92
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
89
93
|
/**
|
|
90
94
|
* Placeholder text when empty
|
|
91
95
|
*/
|
|
@@ -116,7 +120,8 @@ export declare class TextareaComponent {
|
|
|
116
120
|
*/
|
|
117
121
|
value: import("@angular/core").ModelSignal<string>;
|
|
118
122
|
/**
|
|
119
|
-
* Maximum allowed character count
|
|
123
|
+
* Maximum allowed character count. When set, the counter is shown, the textarea references it
|
|
124
|
+
* through `aria-describedby`, and the native `maxlength` stops typing past the limit.
|
|
120
125
|
* @defaultValue 0 (unlimited)
|
|
121
126
|
*/
|
|
122
127
|
maxCharacters: import("@angular/core").InputSignal<number>;
|
|
@@ -45,8 +45,8 @@ export declare class ProgressComponent {
|
|
|
45
45
|
*/
|
|
46
46
|
variant: import("@angular/core").InputSignal<ProgressVariantProps>;
|
|
47
47
|
/**
|
|
48
|
-
* Current progress value
|
|
49
|
-
* @defaultValue -1 (
|
|
48
|
+
* Current progress value, from 0 to `max`
|
|
49
|
+
* @defaultValue -1 (no value label and no `aria-valuenow` while value < 0)
|
|
50
50
|
*/
|
|
51
51
|
value: import("@angular/core").InputSignal<number>;
|
|
52
52
|
/**
|
|
@@ -64,11 +64,25 @@ export declare class ProgressComponent {
|
|
|
64
64
|
* @defaultValue 'none'
|
|
65
65
|
*/
|
|
66
66
|
labelPosition: import("@angular/core").InputSignal<ProgressLabelPositionProps>;
|
|
67
|
+
/**
|
|
68
|
+
* Accessible name of the progress bar. Defaults to `sdk.progress.label` ("Progress").
|
|
69
|
+
*/
|
|
70
|
+
ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
private readonly translateLabel;
|
|
73
|
+
/** @internal Name announced for the progress bar. */
|
|
74
|
+
protected readonly accessibleName: import("@angular/core").Signal<string>;
|
|
75
|
+
/** @internal Whether a value is shown and announced. */
|
|
76
|
+
protected readonly determinate: import("@angular/core").Signal<boolean>;
|
|
77
|
+
/** @internal Value clamped to `0..max`, as the native progress element does. */
|
|
78
|
+
protected readonly clampedValue: import("@angular/core").Signal<number>;
|
|
79
|
+
/** @internal Value as a whole percentage of `max`. */
|
|
80
|
+
protected readonly percentage: import("@angular/core").Signal<number>;
|
|
67
81
|
/**
|
|
68
82
|
* @internal
|
|
69
83
|
* Computed class string for the progress bar container
|
|
70
84
|
*/
|
|
71
85
|
componentClass: import("@angular/core").Signal<string>;
|
|
72
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressComponent, "st-progress", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressComponent, "st-progress", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
88
|
}
|
|
@@ -45,6 +45,8 @@ actions: TableActionConfig[] = [
|
|
|
45
45
|
- `st-table-action` tooltip default `tooltipVariant` is `base`; override per action when needed.
|
|
46
46
|
- Accessible names: an `st-table-action` uses its translated `tooltip` as the button's `aria-label`, so give icon-only actions a `tooltip` (or a `tooltip` in each `TableActionConfig`). The `dropdown` mode trigger is named by the `sdk.table.actions` key.
|
|
47
47
|
- Row context: set `contextLabel` (on `st-table-action` or `st-table-actions`) to the row's name so each row's actions are told apart. The accessible name becomes "<tooltip> <contextLabel>" ("Editar producto ABC"), starting with the visible tooltip as WCAG 2.5.3 requires, while the tooltip still shows "Editar". In `dropdown` mode the trigger becomes "<actions label> <contextLabel>".
|
|
48
|
+
- Horizontal scroll: the table container fades its start and end edges (`scroll-fade-x`) while there is more to scroll. Only while the table is wider than its container, the container becomes `role="region"` with `tabindex="0"` and the `sdk.table.scrollRegion` name, so keyboard users can focus it and scroll with the arrow keys; a table that fits adds no tab stop. The focus ring is inset.
|
|
49
|
+
- Items per page: the footer `st-select` uses `fitOptions`, so it is as wide as its longest option ("100 / página") and the chosen value never wraps.
|
|
48
50
|
|
|
49
51
|
```html
|
|
50
52
|
<st-table-action variant="warning" [icon]="editIcon" tooltip="Editar" [contextLabel]="'producto ' + row.name" (triggered)="edit(row)" />
|
|
@@ -157,6 +157,19 @@ export declare class TableComponent {
|
|
|
157
157
|
private readonly translateLabel;
|
|
158
158
|
/** @internal Id of the items-per-page select, named by its visually hidden label */
|
|
159
159
|
protected readonly pageSizeSelectId: string;
|
|
160
|
+
/** @internal The horizontal scroll container */
|
|
161
|
+
private readonly scrollContainer;
|
|
162
|
+
/** @internal The table, observed so a wider column re-measures the overflow */
|
|
163
|
+
private readonly tableElement;
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* Whether the table is wider than its container. Only then the container is a named, focusable region,
|
|
167
|
+
* so keyboard users can scroll it; a table that fits adds no tab stop
|
|
168
|
+
*/
|
|
169
|
+
protected readonly overflowsX: import("@angular/core").WritableSignal<boolean>;
|
|
170
|
+
/** @internal Accessible name of the scroll container while it overflows */
|
|
171
|
+
protected readonly scrollRegionLabel: import("@angular/core").Signal<string>;
|
|
172
|
+
constructor();
|
|
160
173
|
readonly entriesPerPageOptions: import("@angular/core").Signal<{
|
|
161
174
|
value: 10 | 5 | 20 | 50 | 100;
|
|
162
175
|
text: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, output, signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, output, signal, computed, ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
3
3
|
import { heroXCircle, heroExclamationTriangle, heroCheckCircle, heroInformationCircle, heroXMark } from '@ng-icons/heroicons/outline';
|
|
4
4
|
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
5
5
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
@@ -14,7 +14,7 @@ const DISMISS_LABEL = { key: 'sdk.alert.dismiss', fallback: 'Dismiss alert' };
|
|
|
14
14
|
* Soft status callout classes. Body text stays on `base-content`; the icon and title read the
|
|
15
15
|
* `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.
|
|
16
16
|
*/
|
|
17
|
-
const alertComponent = cva(['alert', 'alert-soft', 'flex', 'w-full', 'items-start', 'gap-3', 'text-base-content'], {
|
|
17
|
+
const alertComponent = cva(['alert', 'alert-soft', '@container', 'flex', 'w-full', 'flex-wrap', 'items-start', 'gap-3', 'text-base-content'], {
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
20
20
|
info: ['alert-info'],
|
|
@@ -127,10 +127,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
127
127
|
'[attr.hidden]': 'isDismissed() ? "" : null',
|
|
128
128
|
}, template: "@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n" }]
|
|
129
129
|
}] });
|
|
130
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Action area of `st-alert`. From a 28rem wide alert up it sits after the body on the same row;
|
|
132
|
+
* below that it wraps to its own row under the text, so the text keeps its width on phones.
|
|
133
|
+
*/
|
|
131
134
|
class AlertActionsComponent {
|
|
135
|
+
/** @internal */
|
|
136
|
+
alert = inject(AlertComponent, { optional: true });
|
|
137
|
+
/** @internal Under the text on narrow alerts (indented past the icon), after it from `@md`. */
|
|
138
|
+
componentClass = computed(() => cn('order-last flex shrink-0 basis-full flex-wrap items-center gap-2 self-center @md:order-0 @md:basis-auto', (this.alert?.showIcon() ?? false) && 'ps-8 @md:ps-0'));
|
|
132
139
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: AlertActionsComponent, isStandalone: true, selector: "st-alert-actions", host: {
|
|
140
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: AlertActionsComponent, isStandalone: true, selector: "st-alert-actions", host: { properties: { "class": "componentClass()" } }, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
134
141
|
}
|
|
135
142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AlertActionsComponent, decorators: [{
|
|
136
143
|
type: Component,
|
|
@@ -139,7 +146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
139
146
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
147
|
template: '<ng-content />',
|
|
141
148
|
host: {
|
|
142
|
-
class: '
|
|
149
|
+
'[class]': 'componentClass()',
|
|
143
150
|
},
|
|
144
151
|
}]
|
|
145
152
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-alert.mjs","sources":["../../../projects/sdk/components/alert/src/alert.component.ts","../../../projects/sdk/components/alert/src/alert.component.html","../../../projects/sdk/components/alert/sixbell-telco-sdk-components-alert.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output, signal } from '@angular/core';\nimport { heroCheckCircle, heroExclamationTriangle, heroInformationCircle, heroXCircle, heroXMark } from '@ng-icons/heroicons/outline';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\nconst DISMISS_LABEL = { key: 'sdk.alert.dismiss', fallback: 'Dismiss alert' };\n\n/**\n * @internal\n * Soft status callout classes. Body text stays on `base-content`; the icon and title read the\n * `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.\n */\nexport const alertComponent = cva(['alert', 'alert-soft', 'flex', 'w-full', 'items-start', 'gap-3', 'text-base-content'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['alert-info'],\n\t\t\tsuccess: ['alert-success'],\n\t\t\twarning: ['alert-warning'],\n\t\t\terror: ['alert-error'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\nconst accentClass = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['text-info-strong'],\n\t\t\tsuccess: ['text-success-strong'],\n\t\t\twarning: ['text-warning-strong'],\n\t\t\terror: ['text-error-strong'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\n/** Status of the callout */\nexport type AlertVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\nconst VARIANT_ICONS: Record<NonNullable<AlertVariantProps>, string> = {\n\tinfo: heroInformationCircle,\n\tsuccess: heroCheckCircle,\n\twarning: heroExclamationTriangle,\n\terror: heroXCircle,\n};\n\n/**\n * Inline status callout: icon, optional heading, projected body, optional actions and dismiss.\n *\n * @remarks\n * The host is the live region. `info`, `success` and `warning` use `role=\"status\"` (polite);\n * `error` uses `role=\"alert\"` (assertive), and `assertive` forces `role=\"alert\"` for any variant.\n * Set `id` to reference the callout from a control's `aria-describedby`.\n *\n * @example\n * ```html\n * <st-alert variant=\"warning\" heading=\"Pending distribution groups\">\n * Add at least one rule before publishing.\n * <st-alert-actions>\n * <st-button variant=\"warning\" size=\"sm\" [outline]=\"true\">Review</st-button>\n * </st-alert-actions>\n * </st-alert>\n * ```\n */\n@Component({\n\tselector: 'st-alert',\n\timports: [IconComponent, ButtonComponent, TextDirective],\n\ttemplateUrl: './alert.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class]': 'componentClass()',\n\t\t'[attr.id]': 'id() || null',\n\t\t'[attr.role]': 'role()',\n\t\t'[attr.hidden]': 'isDismissed() ? \"\" : null',\n\t},\n})\nexport class AlertComponent {\n\t/**\n\t * Status of the callout\n\t * @defaultValue 'info'\n\t */\n\tvariant = input<AlertVariantProps>('info');\n\n\t/** Short heading rendered above the projected body. Nothing is rendered when empty. */\n\theading = input<string>('');\n\n\t/** Id set on the host, so a control can point at the callout with `aria-describedby`. */\n\tid = input<string | null>(null);\n\n\t/**\n\t * Show the status icon\n\t * @defaultValue true\n\t */\n\tshowIcon = input(true, { transform: booleanAttribute });\n\n\t/** Icon override (an SVG string from `@sixbell-telco/sdk/components/icon/*`). Defaults to the variant icon. */\n\ticon = input<string | null | undefined>();\n\n\t/**\n\t * Render a close button that hides the callout and emits `dismissed`\n\t * @defaultValue false\n\t */\n\tdismissible = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Announce with `role=\"alert\"` whatever the variant\n\t * @defaultValue false\n\t */\n\tassertive = input(false, { transform: booleanAttribute });\n\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** Emits after the close button hides the callout */\n\tdismissed = output<void>();\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal */\n\tprotected readonly isDismissed = signal(false);\n\n\t/** @internal */\n\tprotected readonly dismissIcon = heroXMark;\n\n\t/** @internal */\n\tprotected readonly dismissLabel = computed(() => this.translateLabel(DISMISS_LABEL));\n\n\t/** @internal */\n\treadonly role = computed(() => (this.assertive() || this.variant() === 'error' ? 'alert' : 'status'));\n\n\t/** @internal */\n\tprotected readonly resolvedIcon = computed(() => this.icon() || VARIANT_ICONS[this.variant() ?? 'info']);\n\n\t/** @internal */\n\tprotected readonly accentClass = computed(() => accentClass({ variant: this.variant() }));\n\n\t/** @internal */\n\treadonly componentClass = computed(() => cn(alertComponent({ variant: this.variant() }), this.class()));\n\n\t/** Hides the callout and emits `dismissed`. */\n\tdismiss(): void {\n\t\tthis.isDismissed.set(true);\n\t\tthis.dismissed.emit();\n\t}\n}\n\n/** Action area of `st-alert`, aligned after the body. */\n@Component({\n\tselector: 'st-alert-actions',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: '<ng-content />',\n\thost: {\n\t\tclass: 'flex shrink-0 flex-wrap items-center gap-2 self-center',\n\t},\n})\nexport class AlertActionsComponent {}\n","@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AASA,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE7E;;;;AAIG;MACU,cAAc,GAAG,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;AACzH,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,KAAK,EAAE,CAAC,aAAa,CAAC;AACtB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,KAAA;AACD,CAAA;AAED,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;AAC3B,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,IAAI,EAAE,CAAC,kBAAkB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ources":["../../../projects/sdk/components/alert/src/alert.component.ts","../../../projects/sdk/components/alert/src/alert.component.html","../../../projects/sdk/components/alert/sixbell-telco-sdk-components-alert.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, output, signal } from '@angular/core';\nimport { heroCheckCircle, heroExclamationTriangle, heroInformationCircle, heroXCircle, heroXMark } from '@ng-icons/heroicons/outline';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\n\nconst DISMISS_LABEL = { key: 'sdk.alert.dismiss', fallback: 'Dismiss alert' };\n\n/**\n * @internal\n * Soft status callout classes. Body text stays on `base-content`; the icon and title read the\n * `--color-<status>-strong` token so they meet 4.5:1 on the soft tint.\n */\nexport const alertComponent = cva(['alert', 'alert-soft', '@container', 'flex', 'w-full', 'flex-wrap', 'items-start', 'gap-3', 'text-base-content'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['alert-info'],\n\t\t\tsuccess: ['alert-success'],\n\t\t\twarning: ['alert-warning'],\n\t\t\terror: ['alert-error'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\nconst accentClass = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tinfo: ['text-info-strong'],\n\t\t\tsuccess: ['text-success-strong'],\n\t\t\twarning: ['text-warning-strong'],\n\t\t\terror: ['text-error-strong'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'info',\n\t},\n});\n\n/** Status of the callout */\nexport type AlertVariantProps = 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\nconst VARIANT_ICONS: Record<NonNullable<AlertVariantProps>, string> = {\n\tinfo: heroInformationCircle,\n\tsuccess: heroCheckCircle,\n\twarning: heroExclamationTriangle,\n\terror: heroXCircle,\n};\n\n/**\n * Inline status callout: icon, optional heading, projected body, optional actions and dismiss.\n *\n * @remarks\n * The host is the live region. `info`, `success` and `warning` use `role=\"status\"` (polite);\n * `error` uses `role=\"alert\"` (assertive), and `assertive` forces `role=\"alert\"` for any variant.\n * Set `id` to reference the callout from a control's `aria-describedby`.\n *\n * @example\n * ```html\n * <st-alert variant=\"warning\" heading=\"Pending distribution groups\">\n * Add at least one rule before publishing.\n * <st-alert-actions>\n * <st-button variant=\"warning\" size=\"sm\" [outline]=\"true\">Review</st-button>\n * </st-alert-actions>\n * </st-alert>\n * ```\n */\n@Component({\n\tselector: 'st-alert',\n\timports: [IconComponent, ButtonComponent, TextDirective],\n\ttemplateUrl: './alert.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class]': 'componentClass()',\n\t\t'[attr.id]': 'id() || null',\n\t\t'[attr.role]': 'role()',\n\t\t'[attr.hidden]': 'isDismissed() ? \"\" : null',\n\t},\n})\nexport class AlertComponent {\n\t/**\n\t * Status of the callout\n\t * @defaultValue 'info'\n\t */\n\tvariant = input<AlertVariantProps>('info');\n\n\t/** Short heading rendered above the projected body. Nothing is rendered when empty. */\n\theading = input<string>('');\n\n\t/** Id set on the host, so a control can point at the callout with `aria-describedby`. */\n\tid = input<string | null>(null);\n\n\t/**\n\t * Show the status icon\n\t * @defaultValue true\n\t */\n\tshowIcon = input(true, { transform: booleanAttribute });\n\n\t/** Icon override (an SVG string from `@sixbell-telco/sdk/components/icon/*`). Defaults to the variant icon. */\n\ticon = input<string | null | undefined>();\n\n\t/**\n\t * Render a close button that hides the callout and emits `dismissed`\n\t * @defaultValue false\n\t */\n\tdismissible = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Announce with `role=\"alert\"` whatever the variant\n\t * @defaultValue false\n\t */\n\tassertive = input(false, { transform: booleanAttribute });\n\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** Emits after the close button hides the callout */\n\tdismissed = output<void>();\n\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal */\n\tprotected readonly isDismissed = signal(false);\n\n\t/** @internal */\n\tprotected readonly dismissIcon = heroXMark;\n\n\t/** @internal */\n\tprotected readonly dismissLabel = computed(() => this.translateLabel(DISMISS_LABEL));\n\n\t/** @internal */\n\treadonly role = computed(() => (this.assertive() || this.variant() === 'error' ? 'alert' : 'status'));\n\n\t/** @internal */\n\tprotected readonly resolvedIcon = computed(() => this.icon() || VARIANT_ICONS[this.variant() ?? 'info']);\n\n\t/** @internal */\n\tprotected readonly accentClass = computed(() => accentClass({ variant: this.variant() }));\n\n\t/** @internal */\n\treadonly componentClass = computed(() => cn(alertComponent({ variant: this.variant() }), this.class()));\n\n\t/** Hides the callout and emits `dismissed`. */\n\tdismiss(): void {\n\t\tthis.isDismissed.set(true);\n\t\tthis.dismissed.emit();\n\t}\n}\n\n/**\n * Action area of `st-alert`. From a 28rem wide alert up it sits after the body on the same row;\n * below that it wraps to its own row under the text, so the text keeps its width on phones.\n */\n@Component({\n\tselector: 'st-alert-actions',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: '<ng-content />',\n\thost: {\n\t\t'[class]': 'componentClass()',\n\t},\n})\nexport class AlertActionsComponent {\n\t/** @internal */\n\tprivate readonly alert = inject(AlertComponent, { optional: true });\n\n\t/** @internal Under the text on narrow alerts (indented past the icon), after it from `@md`. */\n\tprotected readonly componentClass = computed(() =>\n\t\tcn(\n\t\t\t'order-last flex shrink-0 basis-full flex-wrap items-center gap-2 self-center @md:order-0 @md:basis-auto',\n\t\t\t(this.alert?.showIcon() ?? false) && 'ps-8 @md:ps-0',\n\t\t),\n\t);\n}\n","@let headingVar = heading();\n@if (showIcon()) {\n\t<span class=\"flex shrink-0 pt-0.5\" [class]=\"accentClass()\">\n\t\t<st-icon [icon]=\"resolvedIcon()\" size=\"sm\"></st-icon>\n\t</span>\n}\n<div class=\"flex min-w-0 flex-1 flex-col gap-0.5 self-center\">\n\t@if (headingVar) {\n\t\t<p stText=\"7\" stTextWeight=\"semibold\" [stTextClass]=\"accentClass()\">{{ headingVar }}</p>\n\t}\n\t<div stText=\"7\" class=\"empty:hidden\"><ng-content /></div>\n</div>\n<ng-content select=\"st-alert-actions\" />\n@if (dismissible()) {\n\t<st-button\n\t\tclass=\"-my-1 shrink-0\"\n\t\tsize=\"sm\"\n\t\t[ghost]=\"true\"\n\t\t[circle]=\"true\"\n\t\t[icon]=\"dismissIcon\"\n\t\t[ariaLabel]=\"dismissLabel()\"\n\t\t(clicked)=\"dismiss()\"\n\t/>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AASA,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE;AAE7E;;;;AAIG;AACI,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;AACpJ,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,KAAK,EAAE,CAAC,aAAa,CAAC;AACtB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,KAAA;AACD,CAAA;AAED,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,EAAE;AAC3B,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,IAAI,EAAE,CAAC,kBAAkB,CAAC;YAC1B,OAAO,EAAE,CAAC,qBAAqB,CAAC;YAChC,OAAO,EAAE,CAAC,qB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B;AAC1B,oBAAA,IAAI,EAAE;AACL,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,qBAAA;AACD,iBAAA;;;AErKD;;AAEG;;;;"}
|
|
@@ -1331,11 +1331,11 @@ class DataTableContainerComponent {
|
|
|
1331
1331
|
});
|
|
1332
1332
|
});
|
|
1333
1333
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1334
|
-
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], queries: [{ propertyName: "customEmptyState", first: true, predicate: TABLE_EMPTY_STATE, isSignal: true }], 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 (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else 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-muted\">\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-muted\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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-muted\">\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-muted\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.dataTable.entriesByPage' | translate }}</label>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\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", "required", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "disabledKey", "descriptionKey", "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 });
|
|
1334
|
+
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], queries: [{ propertyName: "customEmptyState", first: true, predicate: TABLE_EMPTY_STATE, isSignal: true }], 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 (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else 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-muted\">\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-muted\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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-muted\">\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-muted\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.dataTable.entriesByPage' | translate }}</label>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\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\tfitOptions\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", "required", "ghost", "name", "inputId", "placeholder", "label", "value", "options", "displayKey", "valueKey", "disabledKey", "descriptionKey", "groupKey", "checkedKey", "allowClear", "panelWidth", "fitOptions", "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 });
|
|
1335
1335
|
}
|
|
1336
1336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, decorators: [{
|
|
1337
1337
|
type: Component,
|
|
1338
|
-
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DataTableContextService], 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 (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else 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-muted\">\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-muted\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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-muted\">\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-muted\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.dataTable.entriesByPage' | translate }}</label>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\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" }]
|
|
1338
|
+
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DataTableContextService], 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 (customEmptyState() && (showNoData() || showNoResults())) {\n\t\t\t\t<ng-content select=\"st-empty-state\"></ng-content>\n\t\t\t} @else 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-muted\">\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-muted\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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-muted\">\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-muted\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content-muted\">{{ '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<label class=\"sr-only\" [for]=\"pageSizeSelectId\">{{ 'sdk.dataTable.entriesByPage' | translate }}</label>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[inputId]=\"pageSizeSelectId\"\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\tfitOptions\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" }]
|
|
1339
1339
|
}], ctorParameters: () => [] });
|
|
1340
1340
|
|
|
1341
1341
|
/**
|