@sixbell-telco/sdk 4.8.0 → 4.9.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 +24 -0
- package/components/accordion/README.md +1 -1
- package/components/accordion/src/accordion.component.d.ts +4 -0
- package/components/data-table/src/data-table.component.d.ts +2 -24
- package/components/dialog/README.md +4 -3
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +2 -1
- package/components/dialog/src/dialog.component.d.ts +10 -5
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -2
- package/components/forms/combobox/README.md +9 -0
- package/components/forms/combobox/src/combobox.component.d.ts +46 -2
- package/components/forms/date-picker/README.md +3 -1
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +2 -0
- package/components/forms/form-error/src/form-error.component.d.ts +17 -0
- package/components/forms/form-hint/README.md +2 -2
- package/components/forms/form-item/README.md +1 -0
- package/components/forms/form-item/src/form-item.component.d.ts +38 -6
- package/components/forms/input/README.md +7 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/README.md +8 -0
- package/components/forms/select/src/select.component.d.ts +40 -1
- package/components/forms/textarea/README.md +1 -0
- package/components/paginator/README.md +3 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/src/paginator.component.d.ts +2 -1
- package/components/table/src/table.component.d.ts +3 -23
- package/directives/only-numbers/src/only-numbers.directive.d.ts +27 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +5 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +30 -13
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +2 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +10 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.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 +74 -8
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +17 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +32 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +74 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +74 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +15 -11
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +5 -2
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +49 -4
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/i18n/sdk/en.json +7 -3
- package/i18n/sdk/es.json +7 -3
- package/i18n/sdk/pt.json +7 -3
- package/manifest.json +95 -15
- package/package.json +1 -1
- package/src/_index.css +19 -0
|
@@ -95,6 +95,10 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
95
95
|
private readonly generatedId;
|
|
96
96
|
/** @internal Id applied to the focusable control and referenced by its label */
|
|
97
97
|
protected readonly resolvedId: import("@angular/core").Signal<string>;
|
|
98
|
+
/** @internal Id of the options listbox, referenced by the trigger's `aria-controls` */
|
|
99
|
+
protected readonly listboxId: string;
|
|
100
|
+
/** @internal Id of the visually hidden label, which names the listbox */
|
|
101
|
+
protected readonly labelId: string;
|
|
98
102
|
/**
|
|
99
103
|
* Placeholder text when no option is selected
|
|
100
104
|
*/
|
|
@@ -121,6 +125,19 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
121
125
|
* Uses the entire object if not specified
|
|
122
126
|
*/
|
|
123
127
|
valueKey: import("@angular/core").InputSignal<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The object property that marks an option as disabled when truthy.
|
|
130
|
+
* A disabled option stays in the list (and in search results), is dimmed,
|
|
131
|
+
* carries `aria-disabled="true"` and cannot be chosen by click or keyboard.
|
|
132
|
+
* Leave empty to keep every option enabled.
|
|
133
|
+
*/
|
|
134
|
+
disabledKey: import("@angular/core").InputSignal<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The object property holding a secondary text shown under the option label
|
|
137
|
+
* (for example why it is disabled: "Already added"). It is part of the
|
|
138
|
+
* option's accessible name.
|
|
139
|
+
*/
|
|
140
|
+
descriptionKey: import("@angular/core").InputSignal<string>;
|
|
124
141
|
/**
|
|
125
142
|
* Whether to show a clear button next to the selected value
|
|
126
143
|
* @default true
|
|
@@ -177,6 +194,8 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
177
194
|
private readonly translateLabel;
|
|
178
195
|
/** @internal Name of the icon-only clear button. */
|
|
179
196
|
protected readonly clearSelectionLabel: import("@angular/core").Signal<string>;
|
|
197
|
+
/** @internal Text of the empty listbox */
|
|
198
|
+
protected readonly noOptionsLabel: import("@angular/core").Signal<string>;
|
|
180
199
|
/** Current animation state of the overlay */
|
|
181
200
|
private readonly animationState;
|
|
182
201
|
/** Set when the exit animation already ran the close cleanup, so the detach that follows does not repeat it */
|
|
@@ -390,6 +409,18 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
390
409
|
* @returns True if the option is active
|
|
391
410
|
*/
|
|
392
411
|
isActiveOption(index: number): boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Whether an option is disabled through `disabledKey`
|
|
414
|
+
* @param option - The option to check
|
|
415
|
+
* @returns True if the option cannot be chosen
|
|
416
|
+
*/
|
|
417
|
+
isOptionDisabled(option: any): boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Gets the secondary text for an option through `descriptionKey`
|
|
420
|
+
* @param option - The option to read
|
|
421
|
+
* @returns The secondary text, or an empty string
|
|
422
|
+
*/
|
|
423
|
+
getOptionDescription(option: any): string;
|
|
393
424
|
/**
|
|
394
425
|
* Gets the display value for an option
|
|
395
426
|
* @param option - The option to get display value for
|
|
@@ -410,6 +441,14 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
410
441
|
* Triggers blur event for form validation
|
|
411
442
|
*/
|
|
412
443
|
private triggerBlur;
|
|
444
|
+
/**
|
|
445
|
+
* Finds the next enabled option index, wrapping around the list
|
|
446
|
+
* @param options - The options being navigated
|
|
447
|
+
* @param from - The index to start from (exclusive)
|
|
448
|
+
* @param step - 1 to move down, -1 to move up
|
|
449
|
+
* @returns The index of the next enabled option, or -1 if every option is disabled
|
|
450
|
+
*/
|
|
451
|
+
private findEnabledIndex;
|
|
413
452
|
/**
|
|
414
453
|
* Sets the active option for keyboard navigation
|
|
415
454
|
* @param index - The index of the option to make active
|
|
@@ -424,6 +463,6 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
424
463
|
*/
|
|
425
464
|
private updateActiveOptionVisually;
|
|
426
465
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
427
|
-
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; }; "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>;
|
|
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>;
|
|
428
467
|
}
|
|
429
468
|
export {};
|
|
@@ -15,3 +15,4 @@ Multi-line field with optional character counter.
|
|
|
15
15
|
## Notes
|
|
16
16
|
|
|
17
17
|
- Prefer `(triggered)` instead of the old `(enterPressed)`.
|
|
18
|
+
- Validation errors: inside `st-form-item` with `st-form-errors`, the inner `<textarea>` gets `aria-invalid="true"` while its control is invalid and touched or dirty, and the error message id joins the hint ids in its `aria-describedby`. See [Form Error](../form-error/README.md).
|
|
@@ -16,3 +16,6 @@ Page controls. Bind `pages` and listen to `pageChanged`.
|
|
|
16
16
|
|
|
17
17
|
- Two-way `[(currentPage)]`. Prefer `(pageChanged)` over item-level activation outputs.
|
|
18
18
|
- Accessibility: the first/previous/next/last icon buttons are named from `sdk.pagination.first|previous|next|last`, and dot buttons from `sdk.pagination.page` ("Page 3"), in English when no translation is loaded. Numeric buttons are named by their number, and the current page has `aria-current="page"`. A standalone `st-pagination-item` with `variant="icon"` or `"dots"` needs `ariaLabel`.
|
|
19
|
+
- The paginator is a `<nav>` landmark named from `sdk.pagination.label` ("Pagination"). Each ellipsis hides its dots from screen readers and reads `sdk.pagination.more` ("More pages").
|
|
20
|
+
- `triggered` on `st-pagination-item` fires once per activation: Enter and Space reach it through the button's native click. `keyDownEnter` and `keyDownSpace` still emit on the key press.
|
|
21
|
+
- Below `sm` the first and last buttons hide and the gap tightens to fit a 375px phone. Dot buttons keep a hit area of at least 24x24px around the visible dot.
|
|
@@ -84,6 +84,7 @@ export declare class PaginationItemComponent {
|
|
|
84
84
|
/**
|
|
85
85
|
* Accessible name forwarded to the inner `<button>` as `aria-label`.
|
|
86
86
|
* Required for the `icon` and `dots` variants, which have no visible text.
|
|
87
|
+
* On the `ellipsis` variant it replaces the screen-reader text, which defaults to `sdk.pagination.more` ("More pages").
|
|
87
88
|
*/
|
|
88
89
|
ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
|
|
89
90
|
/**
|
|
@@ -99,9 +100,13 @@ export declare class PaginationItemComponent {
|
|
|
99
100
|
*/
|
|
100
101
|
keyDownSpace: import("@angular/core").OutputEmitterRef<KeyboardEvent>;
|
|
101
102
|
/**
|
|
102
|
-
* Event emitted
|
|
103
|
+
* Event emitted once per activation. Enter and Space reach it through the native button click
|
|
104
|
+
* they produce, so one key press or one mouse click emits it once.
|
|
103
105
|
*/
|
|
104
106
|
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
107
|
+
private readonly translateLabel;
|
|
108
|
+
/** @internal Screen-reader text for the `ellipsis` variant; the visible dots are hidden from assistive technology. */
|
|
109
|
+
protected readonly ellipsisLabel: import("@angular/core").Signal<string>;
|
|
105
110
|
/**
|
|
106
111
|
* @internal
|
|
107
112
|
* DaisyUI button geometry with paginator-owned semantic state colors.
|
|
@@ -118,12 +123,12 @@ export declare class PaginationItemComponent {
|
|
|
118
123
|
handleClick(event: MouseEvent): void;
|
|
119
124
|
/**
|
|
120
125
|
* @internal
|
|
121
|
-
*
|
|
126
|
+
* Report the Enter key. Activation comes from the click the native button fires next.
|
|
122
127
|
*/
|
|
123
128
|
handleKeyDownEnter(event: Event): void;
|
|
124
129
|
/**
|
|
125
130
|
* @internal
|
|
126
|
-
*
|
|
131
|
+
* Report the Space key. Activation comes from the click the native button fires on key up.
|
|
127
132
|
*/
|
|
128
133
|
handleKeyDownSpace(event: Event): void;
|
|
129
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationItemComponent, never>;
|
|
@@ -84,8 +84,9 @@ export declare class PaginatorComponent {
|
|
|
84
84
|
*/
|
|
85
85
|
iconDoubleArrowRight: string;
|
|
86
86
|
private readonly translateLabel;
|
|
87
|
-
/** @internal Names of the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */
|
|
87
|
+
/** @internal Names of the landmark and the icon-only navigation buttons, from `sdk.pagination.*` with English fallbacks. */
|
|
88
88
|
protected readonly navigationLabels: import("@angular/core").Signal<{
|
|
89
|
+
nav: string;
|
|
89
90
|
first: string;
|
|
90
91
|
previous: string;
|
|
91
92
|
next: string;
|
|
@@ -64,28 +64,6 @@ export interface TablePagination extends Pagination {
|
|
|
64
64
|
id: string;
|
|
65
65
|
search: string;
|
|
66
66
|
}
|
|
67
|
-
/**
|
|
68
|
-
* A feature-rich data table component with sorting, pagination, and row selection
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* Integrates with Tailwind CSS for styling and supports responsive layouts.
|
|
72
|
-
* Includes built-in pagination controls and checkbox selection functionality.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```html
|
|
76
|
-
* <st-table
|
|
77
|
-
* [data]="users"
|
|
78
|
-
* [totalItems]="100"
|
|
79
|
-
* [pagination]="{ currentPage: 1, itemsPerPage: 10 }"
|
|
80
|
-
* (pageChanged)="handlePageChange($event)"
|
|
81
|
-
* size="md"
|
|
82
|
-
* height="lg"
|
|
83
|
-
* zebra
|
|
84
|
-
* >
|
|
85
|
-
* <!-- Table columns and content -->
|
|
86
|
-
* </st-table>
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
67
|
export declare class TableComponent {
|
|
90
68
|
readonly translationService: TranslateService;
|
|
91
69
|
/**
|
|
@@ -177,6 +155,8 @@ export declare class TableComponent {
|
|
|
177
155
|
pageSizeChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
178
156
|
readonly ENTRIES: readonly [5, 10, 20, 50, 100];
|
|
179
157
|
private readonly translateLabel;
|
|
158
|
+
/** @internal Id of the items-per-page select, named by its visually hidden label */
|
|
159
|
+
protected readonly pageSizeSelectId: string;
|
|
180
160
|
readonly entriesPerPageOptions: import("@angular/core").Signal<{
|
|
181
161
|
value: 10 | 5 | 20 | 50 | 100;
|
|
182
162
|
text: string;
|
|
@@ -311,5 +291,5 @@ export declare class TableComponent {
|
|
|
311
291
|
/** @internal Clear all selections */
|
|
312
292
|
private clearList;
|
|
313
293
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
314
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingRows": { "alias": "loadingRows"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["customEmptyState", "header", "rows"], ["st-empty-state", "st-table-empty-actions", "thead", "tbody", "tfoot"], true, never>;
|
|
294
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingRows": { "alias": "loadingRows"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; "allowHeaderOverflow": { "alias": "allowHeaderOverflow"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; "checkedItems": "checkedItems"; }, ["customEmptyState", "header", "rows"], ["st-empty-state", "st-table-empty-actions", "caption, colgroup", "thead", "tbody", "tfoot"], true, never>;
|
|
315
295
|
}
|
|
@@ -3,12 +3,19 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Directive that restricts input to numeric characters only.
|
|
4
4
|
*
|
|
5
5
|
* Use the `stOnlyNumbers` selector to enable numeric-only input restriction.
|
|
6
|
+
* By default only digits are accepted. `stOnlyNumbersAllowNegative` accepts a
|
|
7
|
+
* leading `-` and `stOnlyNumbersAllowDecimal` accepts one `.` after at least
|
|
8
|
+
* one digit. With either option on, each keypress and paste is judged by the
|
|
9
|
+
* value it would leave in the field (the current value with the selection
|
|
10
|
+
* replaced). Half-typed values such as `-`, `4.` or `-0.` stay typeable;
|
|
11
|
+
* checking that the final value is complete is the form validator's job.
|
|
6
12
|
*
|
|
7
13
|
* @example
|
|
8
14
|
* ```html
|
|
9
15
|
* <!-- Modern usage (recommended) -->
|
|
10
16
|
* <input stOnlyNumbers />
|
|
11
17
|
* <input [stOnlyNumbers]="true" />
|
|
18
|
+
* <input stOnlyNumbers stOnlyNumbersAllowNegative stOnlyNumbersAllowDecimal />
|
|
12
19
|
* ```
|
|
13
20
|
*/
|
|
14
21
|
export declare class OnlyNumbersDirective {
|
|
@@ -17,8 +24,27 @@ export declare class OnlyNumbersDirective {
|
|
|
17
24
|
* @default false
|
|
18
25
|
*/
|
|
19
26
|
stOnlyNumbers: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Accept a single leading `-`. Only applies when `stOnlyNumbers` is on.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
stOnlyNumbersAllowNegative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Accept a single `.` as decimal separator, after at least one digit. Only applies when `stOnlyNumbers` is on.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
stOnlyNumbersAllowDecimal: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
37
|
blockPaste(event: ClipboardEvent): boolean;
|
|
21
38
|
onKeyPress(event: KeyboardEvent): boolean;
|
|
39
|
+
private hasExtendedOptions;
|
|
40
|
+
private isCandidateKey;
|
|
41
|
+
/**
|
|
42
|
+
* Pattern for a value that is complete or still being typed: an optional
|
|
43
|
+
* leading `-`, then digits with at most one `.` after the first digit.
|
|
44
|
+
*/
|
|
45
|
+
private partialPattern;
|
|
46
|
+
/** The field's value after replacing the current selection with `text`. */
|
|
47
|
+
private resultingValue;
|
|
22
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumbersDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers]", never, { "stOnlyNumbers": { "alias": "stOnlyNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlyNumbers]", never, { "stOnlyNumbers": { "alias": "stOnlyNumbers"; "required": false; "isSignal": true; }; "stOnlyNumbersAllowNegative": { "alias": "stOnlyNumbersAllowNegative"; "required": false; "isSignal": true; }; "stOnlyNumbersAllowDecimal": { "alias": "stOnlyNumbersAllowDecimal"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
50
|
}
|
|
@@ -4,8 +4,13 @@ import { TextDirective } from '@sixbell-telco/sdk/directives/text';
|
|
|
4
4
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
|
|
7
|
+
let nextAccordionId = 0;
|
|
7
8
|
class AccordionComponent {
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Group name shared by the item inputs. Defaults to a name unique to this accordion, so two
|
|
11
|
+
* `type="single"` accordions on one page do not close each other's items.
|
|
12
|
+
*/
|
|
13
|
+
name = input(`st-accordion-${nextAccordionId++}`);
|
|
9
14
|
type = input('default');
|
|
10
15
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
16
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: AccordionComponent, isStandalone: true, selector: "st-accordion", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'st-accordion',\n\timports: [],\n\ttemplateUrl: './accordion.component.html',\n})\nexport class AccordionComponent {\n\tname = input(
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\nlet nextAccordionId = 0;\n\n@Component({\n\tselector: 'st-accordion',\n\timports: [],\n\ttemplateUrl: './accordion.component.html',\n})\nexport class AccordionComponent {\n\t/**\n\t * Group name shared by the item inputs. Defaults to a name unique to this accordion, so two\n\t * `type=\"single\"` accordions on one page do not close each other's items.\n\t */\n\tname = input(`st-accordion-${nextAccordionId++}`);\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { booleanAttribute, Component, computed, inject, input } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['join-item border-neutral collapse border'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n\tselector: 'st-accordion-item',\n\timports: [TextDirective],\n\ttemplateUrl: './accordion-item.component.html',\n})\nexport class AccordionItemComponent {\n\theader = input('');\n\topened = input(false, { transform: booleanAttribute });\n\n\tvariant = input<AccordionVariantProps>();\n\tname: string;\n\ttype: string;\n\n\tprivate readonly accordion = inject(AccordionComponent, { host: true });\n\n\tconstructor() {\n\t\tthis.name = this.accordion.name();\n\t\tthis.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';\n\t}\n\n\tcomponentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));\n}\n","<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div stText=\"7\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAEA,IAAI,eAAe,GAAG,CAAC;MAOV,kBAAkB,CAAA;AAC9B;;;AAGG;IACH,IAAI,GAAG,KAAK,CAAC,CAAA,aAAA,EAAgB,eAAe,EAAE,CAAA,CAAE,CAAC;AACjD,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,CAAC;wGANjC,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,8TCT/B,kFAGA,EAAA,CAAA;;4FDMa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,WACf,EAAE,EAAA,QAAA,EAAA,kFAAA,EAAA;;;MEAC,sBAAsB,GAAG,GAAG,CAAC,CAAC,0CAA0C,CAAC,EAAE;AACvF,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,IAAI,EAAE,CAAC,eAAe,CAAC;AACvB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,KAAA;AACD,CAAA;MAaY,sBAAsB,CAAA;AAClC,IAAA,MAAM,GAAG,KAAK,CAAC,EAAE,CAAC;IAClB,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAEtD,OAAO,GAAG,KAAK,EAAyB;AACxC,IAAA,IAAI;AACJ,IAAA,IAAI;IAEa,SAAS,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEvE,IAAA,WAAA,GAAA;QACC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;AACjC,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,QAAQ,GAAG,OAAO,GAAG,UAAU;IACtE;IAEA,cAAc,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;wGAf5E,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BnC,qSAWA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDgBW,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,cAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,iBAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGX,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;+BACC,mBAAmB,EAAA,OAAA,EACpB,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,qSAAA,EAAA;;;AE3BzB;;AAEG;;;;"}
|
|
@@ -1082,6 +1082,7 @@ const dataTableContent = cva([
|
|
|
1082
1082
|
* </st-data-table>
|
|
1083
1083
|
* ```
|
|
1084
1084
|
*/
|
|
1085
|
+
let nextDataTablePageSizeId = 0;
|
|
1085
1086
|
class DataTableContainerComponent {
|
|
1086
1087
|
translationService = inject(TranslateService);
|
|
1087
1088
|
dataTableContext = inject(DataTableContextService);
|
|
@@ -1204,6 +1205,8 @@ class DataTableContainerComponent {
|
|
|
1204
1205
|
pageSizeChanged = output();
|
|
1205
1206
|
ENTRIES = [5, 10, 20, 50, 100];
|
|
1206
1207
|
translateLabel = injectLabelTranslator();
|
|
1208
|
+
/** @internal Id of the items-per-page select, named by its visually hidden label */
|
|
1209
|
+
pageSizeSelectId = `st-data-table-page-size-${nextDataTablePageSizeId++}`;
|
|
1207
1210
|
entriesPerPageOptions = computed(() => this.ENTRIES.map((n) => ({
|
|
1208
1211
|
value: n,
|
|
1209
1212
|
text: this.translateLabel({ key: 'sdk.dataTable.perPage', fallback: '{{count}} / page', params: { count: n } }),
|
|
@@ -1328,11 +1331,11 @@ class DataTableContainerComponent {
|
|
|
1328
1331
|
});
|
|
1329
1332
|
});
|
|
1330
1333
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1331
|
-
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<
|
|
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 });
|
|
1332
1335
|
}
|
|
1333
1336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, decorators: [{
|
|
1334
1337
|
type: Component,
|
|
1335
|
-
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<
|
|
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" }]
|
|
1336
1339
|
}], ctorParameters: () => [] });
|
|
1337
1340
|
|
|
1338
1341
|
/**
|