@sixbell-telco/sdk 3.2.1 → 3.3.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 +21 -1
- package/_index.css +17 -17
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +7 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +5 -9
- package/components/table/README.md +1 -0
- package/components/table/table-action/table-action.component.d.ts +7 -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 +8 -3
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +20 -85
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +10 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.3.0] - 2026-09-15
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Table Action**: add `tooltipVariant` input (default `base`) for the action tooltip
|
|
15
|
+
- **File Dropzone**: add `tooltipVariant` input (default `base`) for the file-action tooltips
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Table Action**: default the action tooltip to `base` instead of `secondary`
|
|
20
|
+
- **File Dropzone**: default the file-action tooltips to `base` instead of `secondary`
|
|
21
|
+
- **Table / Data Table**: default the footer page-size select to `base` instead of `secondary`
|
|
22
|
+
- **Pagination Item**: use controlled semantic rest, hover, focus, current, and disabled states on the DaisyUI button primitive
|
|
23
|
+
- **Theme**: reduce dark-mode surface chroma so neutral surfaces read near-gray while brand accents stay chromatic
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- **File Dropzone**: truncate long file names and preserve spacing before file-action controls
|
|
28
|
+
|
|
10
29
|
## [3.2.1] - 2026-09-14
|
|
11
30
|
|
|
12
31
|
### Fixed
|
|
@@ -774,7 +793,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
774
793
|
- **ngx-pagination**: Removed dependency after migrating to internal PaginationPipe
|
|
775
794
|
- **Unused Exports**: Removed unused components and exports from public API
|
|
776
795
|
|
|
777
|
-
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.
|
|
796
|
+
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.3.0...HEAD
|
|
797
|
+
[3.3.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.2.1...3.3.0
|
|
778
798
|
[3.2.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.2.0...3.2.1
|
|
779
799
|
[3.2.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.1.1...3.2.0
|
|
780
800
|
[3.1.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.1.0...3.1.1
|
package/_index.css
CHANGED
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
color-scheme: dark;
|
|
101
101
|
|
|
102
102
|
/* Daisy UI Colors */
|
|
103
|
-
--color-base-100: oklch(18.5% 0.
|
|
104
|
-
--color-base-200: oklch(23.5% 0.
|
|
105
|
-
--color-base-300: oklch(30% 0.
|
|
106
|
-
--color-base-content: oklch(94% 0.
|
|
107
|
-
--color-disabled: oklch(30% 0.
|
|
108
|
-
--color-disabled-content: oklch(68% 0.
|
|
103
|
+
--color-base-100: oklch(18.5% 0.003 260);
|
|
104
|
+
--color-base-200: oklch(23.5% 0.003 260);
|
|
105
|
+
--color-base-300: oklch(30% 0.004 260);
|
|
106
|
+
--color-base-content: oklch(94% 0.002 255);
|
|
107
|
+
--color-disabled: oklch(30% 0.004 260);
|
|
108
|
+
--color-disabled-content: oklch(68% 0.003 255);
|
|
109
109
|
--color-primary: oklch(62% 0.17 255);
|
|
110
110
|
--color-primary-content: oklch(15% 0.01 260);
|
|
111
111
|
--color-secondary: oklch(68% 0.03 255);
|
|
112
112
|
--color-secondary-content: oklch(18% 0.01 260);
|
|
113
113
|
--color-accent: oklch(73% 0.11 226);
|
|
114
114
|
--color-accent-content: oklch(18% 0.01 260);
|
|
115
|
-
--color-neutral: oklch(29% 0.
|
|
115
|
+
--color-neutral: oklch(29% 0.004 260);
|
|
116
116
|
--color-neutral-content: oklch(100% 0 0);
|
|
117
117
|
--color-info: oklch(72% 0.12 235);
|
|
118
118
|
--color-info-content: oklch(15% 0.01 260);
|
|
@@ -151,13 +151,13 @@
|
|
|
151
151
|
--color-tertiary-gradient-content: oklch(18% 0.01 260);
|
|
152
152
|
--color-accent-gradient: color-mix(in oklch, var(--color-accent) 90%, var(--color-base-content));
|
|
153
153
|
--color-accent-gradient-content: oklch(18% 0.01 260);
|
|
154
|
-
--color-tertiary: oklch(63% 0.
|
|
155
|
-
--color-tertiary-content: oklch(18% 0.
|
|
156
|
-
--color-neutral-secondary: oklch(40% 0.
|
|
154
|
+
--color-tertiary: oklch(63% 0.004 255);
|
|
155
|
+
--color-tertiary-content: oklch(18% 0.003 260);
|
|
156
|
+
--color-neutral-secondary: oklch(40% 0.004 260);
|
|
157
157
|
--color-neutral-secondary-content: oklch(100% 0 0);
|
|
158
|
-
--color-neutral-tertiary: oklch(30% 0.
|
|
159
|
-
--color-neutral-tertiary-content: oklch(94% 0.
|
|
160
|
-
--color-base-placeholder: oklch(68% 0.
|
|
158
|
+
--color-neutral-tertiary: oklch(30% 0.004 260);
|
|
159
|
+
--color-neutral-tertiary-content: oklch(94% 0.002 255);
|
|
160
|
+
--color-base-placeholder: oklch(68% 0.003 255);
|
|
161
161
|
--color-backdrop: oklch(0% 0 0 / 0.62);
|
|
162
162
|
|
|
163
163
|
/* Shadow color tokens */
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
|
|
167
167
|
--color-metrics-increase: oklch(74% 0.16 145);
|
|
168
168
|
--color-metrics-decrease: oklch(68% 0.18 25);
|
|
169
|
-
--color-metrics-neutral: oklch(74% 0.
|
|
169
|
+
--color-metrics-neutral: oklch(74% 0.003 255);
|
|
170
170
|
|
|
171
171
|
--color-metrics-intensity-highest: oklch(82% 0.1 225);
|
|
172
172
|
--color-metrics-intensity-high: oklch(73% 0.12 235);
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
--color-metrics-intensity-low: oklch(54% 0.1 250);
|
|
175
175
|
--color-metrics-intensity-lowest: oklch(44% 0.07 255);
|
|
176
176
|
|
|
177
|
-
--color-scroll-thumb: oklch(74% 0.
|
|
177
|
+
--color-scroll-thumb: oklch(74% 0.003 255);
|
|
178
178
|
--color-scroll-track: transparent;
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
--color-neutral-tertiary: oklch(100% 0 0);
|
|
198
198
|
--color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
|
|
199
199
|
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
200
|
-
--color-backdrop: oklch(0% 0 0/
|
|
200
|
+
--color-backdrop: oklch(0% 0 0/0.4);
|
|
201
201
|
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
202
202
|
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
203
203
|
--color-metrics-neutral: oklch(62.99% 0.0152 202.37);
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
--color-scroll-thumb: oklch(75% 0 0);
|
|
210
210
|
--color-scroll-track: transparent;
|
|
211
211
|
--color-shadow-primary: oklch(0.8975 0 0);
|
|
212
|
-
--color-shadow-backdrop: oklch(0% 0 0/
|
|
212
|
+
--color-shadow-backdrop: oklch(0% 0 0/0.25);
|
|
213
213
|
|
|
214
214
|
/* Non-color design tokens (kept for convenience) */
|
|
215
215
|
--font-nunito-sans: Nunito Sans, sans-serif;
|
|
@@ -2,6 +2,7 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { AudioPlayerService, Track } from '@sixbell-telco/sdk/components/audio-player';
|
|
5
|
+
import { TooltipVariantProps } from '@sixbell-telco/sdk/components/tooltip';
|
|
5
6
|
import { FileExtension } from '../shared/types/file-upload';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
@@ -104,6 +105,11 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
104
105
|
* @defaultValue false
|
|
105
106
|
*/
|
|
106
107
|
stopPropagation: import("@angular/core").InputSignal<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Color variant for the file-action tooltips (play, download, remove)
|
|
110
|
+
* @defaultValue 'base'
|
|
111
|
+
*/
|
|
112
|
+
tooltipVariant: import("@angular/core").InputSignal<TooltipVariantProps>;
|
|
107
113
|
/**
|
|
108
114
|
* Event emitted on click
|
|
109
115
|
*/
|
|
@@ -295,5 +301,5 @@ export declare class DropzoneComponent implements ControlValueAccessor {
|
|
|
295
301
|
*/
|
|
296
302
|
dropzoneClass: import("@angular/core").Signal<string>;
|
|
297
303
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
298
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "fileDropped": "fileDropped"; "fileRemoved": "fileRemoved"; "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
304
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "st-file-dropzone", never, { "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "showFiles": { "alias": "showFiles"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": true; "isSignal": true; }; "uploading": { "alias": "uploading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "tooltipVariant": { "alias": "tooltipVariant"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "fileDropped": "fileDropped"; "fileRemoved": "fileRemoved"; "clicked": "clicked"; "pointerDown": "pointerDown"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
299
305
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { TextPreset } from '@sixbell-telco/sdk/directives/text';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* Generates base pagination item classes with style variants
|
|
7
|
-
*/
|
|
8
|
-
export declare const paginationItemComponent: (props?: ({
|
|
9
|
-
variant?: "numeric" | "icon" | "dots" | "ellipsis" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
4
|
/** Possible pagination item style variants */
|
|
12
5
|
export type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | 'ellipsis' | null | undefined;
|
|
13
6
|
/** Configuration object for pagination item styling */
|
|
@@ -18,7 +11,8 @@ export type PaginationItemProps = {
|
|
|
18
11
|
* A compact pagination control component with interactive states
|
|
19
12
|
*
|
|
20
13
|
* @remarks
|
|
21
|
-
*
|
|
14
|
+
* Uses DaisyUI's button primitive with paginator-specific interaction states:
|
|
15
|
+
* neutral surfaces at rest and solid `primary` for the current page.
|
|
22
16
|
* Supports three variants: numeric pages, navigation icons, and dot indicators.
|
|
23
17
|
* Provides visual feedback for active and hover states.
|
|
24
18
|
*
|
|
@@ -104,9 +98,11 @@ export declare class PaginationItemComponent {
|
|
|
104
98
|
triggered: import("@angular/core").OutputEmitterRef<void>;
|
|
105
99
|
/**
|
|
106
100
|
* @internal
|
|
107
|
-
*
|
|
101
|
+
* DaisyUI button geometry with paginator-owned semantic state colors.
|
|
108
102
|
*/
|
|
109
103
|
componentClass: import("@angular/core").Signal<string>;
|
|
104
|
+
/** @internal Visual dot kept separate from its accessible hit target. */
|
|
105
|
+
dotClass: import("@angular/core").Signal<string>;
|
|
110
106
|
textPreset: import("@angular/core").Signal<TextPreset>;
|
|
111
107
|
iconSize: import("@angular/core").Signal<"xs" | "sm" | "md">;
|
|
112
108
|
/**
|
|
@@ -18,3 +18,4 @@ Data table with optional pagination, footer, and row actions.
|
|
|
18
18
|
|
|
19
19
|
- `st-table-actions` supports `inline` or `dropdown` modes, or projected `st-table-action` children.
|
|
20
20
|
- `st-table-action` default `variant` is `base`. Prefer `(triggered)` or `(clicked)`.
|
|
21
|
+
- `st-table-action` tooltip default `tooltipVariant` is `base`; override per action when needed.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonSizeProps, ButtonVariantProps } from '@sixbell-telco/sdk/components/button';
|
|
2
|
+
import { TooltipVariantProps } from '@sixbell-telco/sdk/components/tooltip';
|
|
2
3
|
import { TextPreset } from '@sixbell-telco/sdk/directives/text';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
|
|
@@ -26,6 +27,11 @@ export declare class TableActionComponent {
|
|
|
26
27
|
* Tooltip text (optional).
|
|
27
28
|
*/
|
|
28
29
|
tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Tooltip color variant.
|
|
32
|
+
* @defaultValue 'base'
|
|
33
|
+
*/
|
|
34
|
+
tooltipVariant: import("@angular/core").InputSignal<TooltipVariantProps>;
|
|
29
35
|
/**
|
|
30
36
|
* Icon name (optional).
|
|
31
37
|
*/
|
|
@@ -64,5 +70,5 @@ export declare class TableActionComponent {
|
|
|
64
70
|
*/
|
|
65
71
|
onClicked(event: MouseEvent): void;
|
|
66
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableActionComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "st-table-action", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionComponent, "st-table-action", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipVariant": { "alias": "tooltipVariant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "triggered": "triggered"; }, never, ["*"], true, never>;
|
|
68
74
|
}
|
|
@@ -1169,11 +1169,11 @@ class DataTableContainerComponent {
|
|
|
1169
1169
|
'gap-5 pb-5': this.size() === 'xl',
|
|
1170
1170
|
}));
|
|
1171
1171
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1172
|
-
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 }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"
|
|
1172
|
+
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 }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1173
1173
|
}
|
|
1174
1174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DataTableContainerComponent, decorators: [{
|
|
1175
1175
|
type: Component,
|
|
1176
|
-
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DataTableContextService], template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"
|
|
1176
|
+
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DataTableContextService], template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
1177
1177
|
}], ctorParameters: () => [] });
|
|
1178
1178
|
|
|
1179
1179
|
class DataTableSubComponentToggleCellComponent {
|