@sixbell-telco/sdk 1.2.1 → 1.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 +60 -0
- package/README.md +183 -70
- package/_index.css +132 -53
- package/components/data-table/expandable/expandable.component.d.ts +129 -0
- package/components/data-table/index.d.ts +5 -0
- package/components/data-table/public-api.d.ts +7 -0
- package/components/data-table/selection/selection.component.d.ts +41 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +61 -0
- package/components/data-table/src/data-table-context.service.d.ts +18 -0
- package/components/data-table/src/data-table.component.d.ts +158 -0
- package/components/data-table/src/models.d.ts +58 -0
- package/components/data-table/sub-component-toggle/index.d.ts +1 -0
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +12 -0
- package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +1 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +2 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +2 -2
- package/components/forms/datepicker/constants/datepicker.constants.d.ts +5 -0
- package/components/forms/datepicker/public-api.d.ts +2 -1
- package/components/forms/datepicker/src/datepicker.component.d.ts +155 -44
- package/components/forms/datepicker/types/datepicker.types.d.ts +7 -0
- package/components/overlay/index.d.ts +5 -0
- package/components/overlay/overlay-content/overlay-content.component.d.ts +23 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +48 -0
- package/components/overlay/public-api.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +158 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/pipes/pagination.pipe.d.ts +40 -0
- package/components/paginator/public-api.d.ts +1 -0
- package/components/paginator/src/paginator.component.d.ts +14 -12
- package/components/table/src/table.component.d.ts +9 -6
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +103 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1091 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +12 -10
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +439 -164
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +408 -0
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +150 -35
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +15 -6
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +154 -0
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +84 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -0
- package/package.json +56 -35
- package/utils/date/index.d.ts +5 -0
- package/utils/date/public-api.d.ts +1 -0
- package/utils/date/src/date-utils.d.ts +81 -0
- package/utils/sync/index.d.ts +5 -0
- package/utils/sync/public-api.d.ts +1 -0
- package/utils/sync/src/sync.d.ts +37 -0
- package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +0 -10
package/_index.css
CHANGED
|
@@ -4,18 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
@plugin "@midudev/tailwind-animations";
|
|
6
6
|
@plugin "@tailwindcss/typography";
|
|
7
|
-
@plugin 'tailwind-scrollbar';
|
|
8
7
|
@plugin "daisyui" {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
vivid_elegance_dark --prefers-dark;
|
|
8
|
+
exclude: rootscrollgutter, rootscrolllock, scrollbar;
|
|
9
|
+
themes: false;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
@plugin "daisyui/theme" {
|
|
15
13
|
name: 'sixbell_telco__light';
|
|
16
14
|
default: true;
|
|
17
15
|
prefersdark: false;
|
|
18
|
-
color-scheme:
|
|
16
|
+
color-scheme: light;
|
|
19
17
|
|
|
20
18
|
/* Daisy UI Colors */
|
|
21
19
|
--color-base-100: oklch(96.65% 0.0045 258.32);
|
|
@@ -58,6 +56,7 @@
|
|
|
58
56
|
|
|
59
57
|
/* Custom Colors */
|
|
60
58
|
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
59
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 60%, #fff 40%);
|
|
61
60
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
62
61
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
63
62
|
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
@@ -75,8 +74,9 @@
|
|
|
75
74
|
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
76
75
|
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
--shadow-
|
|
77
|
+
/* Shadow color tokens */
|
|
78
|
+
--color-shadow-primary: oklch(0.8975 0 0);
|
|
79
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
80
80
|
|
|
81
81
|
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
82
82
|
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
@@ -87,13 +87,15 @@
|
|
|
87
87
|
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
88
88
|
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
89
89
|
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
90
|
+
|
|
91
|
+
--color-scroll-thumb: oklch(75% 0 0);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
@plugin "daisyui/theme" {
|
|
93
95
|
name: 'sixbell_telco__dark';
|
|
94
96
|
default: false;
|
|
95
97
|
prefersdark: true;
|
|
96
|
-
color-scheme:
|
|
98
|
+
color-scheme: dark;
|
|
97
99
|
|
|
98
100
|
/* Daisy UI Colors */
|
|
99
101
|
--color-base-100: oklch(18.22% 0 0);
|
|
@@ -135,6 +137,7 @@
|
|
|
135
137
|
|
|
136
138
|
/* Custom Colors */
|
|
137
139
|
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
140
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 60%, #fff 40%);
|
|
138
141
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
139
142
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
140
143
|
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
@@ -152,8 +155,9 @@
|
|
|
152
155
|
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
153
156
|
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
154
157
|
|
|
155
|
-
|
|
156
|
-
--shadow-
|
|
158
|
+
/* Shadow color tokens */
|
|
159
|
+
--color-shadow-primary: oklch(0 0 0);
|
|
160
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
157
161
|
|
|
158
162
|
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
159
163
|
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
@@ -164,50 +168,51 @@
|
|
|
164
168
|
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
165
169
|
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
166
170
|
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
171
|
+
|
|
172
|
+
--color-scroll-thumb: oklch(35% 0 0);
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
@theme {
|
|
170
|
-
|
|
171
|
-
--color-
|
|
172
|
-
--color-primary-
|
|
173
|
-
--color-
|
|
174
|
-
--color-
|
|
175
|
-
--color-
|
|
176
|
-
--color-
|
|
177
|
-
--color-
|
|
178
|
-
--color-
|
|
179
|
-
--color-
|
|
180
|
-
--color-
|
|
181
|
-
--color-
|
|
182
|
-
--color-
|
|
183
|
-
--color-neutral-
|
|
184
|
-
--color-neutral-
|
|
185
|
-
--color-
|
|
186
|
-
--color-
|
|
187
|
-
--
|
|
188
|
-
|
|
189
|
-
--color-metrics-increase:
|
|
190
|
-
--color-metrics-decrease:
|
|
191
|
-
--color-metrics-neutral:
|
|
192
|
-
|
|
193
|
-
--color-metrics-intensity-
|
|
194
|
-
--color-metrics-intensity-
|
|
195
|
-
--color-metrics-intensity-
|
|
196
|
-
--color-metrics-intensity-
|
|
197
|
-
--color-
|
|
176
|
+
/* Color tokens registered for Tailwind utilities; values provided in theme plugin blocks */
|
|
177
|
+
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
178
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 60%, #fff 40%);
|
|
179
|
+
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
180
|
+
--color-primary-gradient-content: oklch(100% 0 0);
|
|
181
|
+
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
182
|
+
--color-secondary-gradient-content: oklch(13.49% 0.0024 286.07);
|
|
183
|
+
--color-tertiary-gradient: color-mix(in oklch, var(--color-tertiary) 60%, #121212);
|
|
184
|
+
--color-tertiary-gradient-content: oklch(13.49% 0.0024 286.07);
|
|
185
|
+
--color-accent-gradient: color-mix(in oklch, var(--color-accent) 60%, #121212);
|
|
186
|
+
--color-accent-gradient-content: oklch(100% 0 0);
|
|
187
|
+
--color-tertiary: oklch(72.52% 0 0);
|
|
188
|
+
--color-tertiary-content: oklch(13.49% 0.0024 286.07);
|
|
189
|
+
--color-neutral-secondary: oklch(73.97% 0.0115 280.4);
|
|
190
|
+
--color-neutral-secondary-content: oklch(100% 0 0);
|
|
191
|
+
--color-neutral-tertiary: oklch(100% 0 0);
|
|
192
|
+
--color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
|
|
193
|
+
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
194
|
+
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
195
|
+
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
196
|
+
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
197
|
+
--color-metrics-neutral: oklch(62.99% 0.0152 202.37);
|
|
198
|
+
--color-metrics-intensity-highest: oklch(65.64% 0.1155 219.3);
|
|
199
|
+
--color-metrics-intensity-high: oklch(68.62% 0.0925 226.08);
|
|
200
|
+
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
201
|
+
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
202
|
+
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
203
|
+
--color-scroll-thumb: oklch(75% 0 0);
|
|
204
|
+
--color-shadow-primary: oklch(0.8975 0 0);
|
|
205
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
198
206
|
|
|
207
|
+
/* Non-color design tokens (kept for convenience) */
|
|
199
208
|
--font-poppins: Poppins, sans-serif;
|
|
200
209
|
--font-heading: Poppins, sans-serif;
|
|
201
210
|
--font-body: Poppins, sans-serif;
|
|
202
|
-
|
|
203
211
|
--shadow-main: 0px 0px 4px 0px var(--shadow-primary);
|
|
204
212
|
--shadow-backdrop: 0px 25px 50px -12px var(--shadow-backdrop);
|
|
205
|
-
|
|
206
213
|
--font-weight-inherit: inherit;
|
|
207
|
-
|
|
208
214
|
--ease-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
209
215
|
--ease-ease-in-and-out-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
210
|
-
|
|
211
216
|
--animate-slide-in: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
212
217
|
--animate-slide-out: slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
213
218
|
--animate-toast-slide-out: toastSlideOut 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
@@ -216,7 +221,6 @@
|
|
|
216
221
|
--animate-wave: wave 1s linear infinite;
|
|
217
222
|
--animate-enter: enter 0.15s ease 0s 1 normal none;
|
|
218
223
|
--animate-exit: exit 0.15s ease 0s 1 normal none;
|
|
219
|
-
|
|
220
224
|
--text-xxs: 0.625rem;
|
|
221
225
|
--text-xxs--line-height: 0.625rem;
|
|
222
226
|
|
|
@@ -254,22 +258,33 @@
|
|
|
254
258
|
}
|
|
255
259
|
|
|
256
260
|
@layer base {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
padding: 0;
|
|
260
|
-
@apply scrollbar-thin overscroll-contain scroll-smooth;
|
|
261
|
+
html {
|
|
262
|
+
scrollbar-color: var(--color-scroll-thumb);
|
|
261
263
|
}
|
|
262
|
-
|
|
263
264
|
*,
|
|
264
265
|
*::before,
|
|
265
266
|
*::after {
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
/* Firefox */
|
|
268
|
+
scrollbar-width: thin;
|
|
269
|
+
scrollbar-color: var(--color-scroll-thumb);
|
|
268
270
|
}
|
|
269
271
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
/* Chrome / Safari / Edge */
|
|
273
|
+
*::-webkit-scrollbar {
|
|
274
|
+
width: 8px;
|
|
275
|
+
height: 8px;
|
|
276
|
+
}
|
|
277
|
+
*::-webkit-scrollbar-track {
|
|
278
|
+
background: transparent;
|
|
279
|
+
}
|
|
280
|
+
*::-webkit-scrollbar-thumb {
|
|
281
|
+
background-color: var(--color-scroll-thumb);
|
|
282
|
+
border: 0;
|
|
283
|
+
border-radius: 6px;
|
|
284
|
+
background-clip: padding-box;
|
|
285
|
+
}
|
|
286
|
+
*::-webkit-scrollbar-corner {
|
|
287
|
+
background: transparent;
|
|
273
288
|
}
|
|
274
289
|
|
|
275
290
|
body {
|
|
@@ -389,6 +404,70 @@
|
|
|
389
404
|
.animate-wave {
|
|
390
405
|
animation-delay: calc(1s - var(--i));
|
|
391
406
|
}
|
|
407
|
+
|
|
408
|
+
calendar-range {
|
|
409
|
+
svg {
|
|
410
|
+
height: 16px;
|
|
411
|
+
width: 16px;
|
|
412
|
+
fill: none;
|
|
413
|
+
stroke: currentColor;
|
|
414
|
+
stroke-width: 1.5;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
path {
|
|
418
|
+
stroke-linecap: round;
|
|
419
|
+
stroke-linejoin: round;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
&::part(previous) {
|
|
423
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&::part(next) {
|
|
427
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
calendar-month {
|
|
432
|
+
--color-accent: var(--color-primary);
|
|
433
|
+
--color-text-on-accent: var(--color-primary-content);
|
|
434
|
+
|
|
435
|
+
@apply font-body;
|
|
436
|
+
|
|
437
|
+
&::part(button):hover {
|
|
438
|
+
@apply bg-primary text-primary-content;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
&::part(button) {
|
|
442
|
+
@apply rounded-selector transition-colors duration-150 ease-linear;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&::part(range-inner) {
|
|
446
|
+
@apply bg-primary/80 text-primary-content rounded-none;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
&::part(range-start) {
|
|
450
|
+
@apply rounded-tr-none rounded-br-none;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
&::part(range-end) {
|
|
454
|
+
@apply rounded-tl-none rounded-bl-none;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
&::part(range-start range-end) {
|
|
458
|
+
@apply rounded-selector;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
calendar-date {
|
|
463
|
+
&::part(previous) {
|
|
464
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
&::part(next) {
|
|
468
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
392
471
|
}
|
|
393
472
|
|
|
394
473
|
@layer components {
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ButtonSizeProps } from '@sixbell-telco/sdk/components/button';
|
|
2
|
+
import { IconSizeProps } from '@sixbell-telco/sdk/components/icon';
|
|
3
|
+
import { RowData, type CellContext, type HeaderContext, type Row } from '@tanstack/angular-table';
|
|
4
|
+
import { DataTableContextService } from '../src/data-table-context.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Expandable cell component that shows row data and expand/collapse toggle
|
|
8
|
+
*/
|
|
9
|
+
export declare class DataTableExpandableCellComponent<T extends RowData> {
|
|
10
|
+
/**
|
|
11
|
+
* TanStack Table context injected by flexRender
|
|
12
|
+
*/
|
|
13
|
+
context: CellContext<T, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Data table context for size synchronization
|
|
16
|
+
*/
|
|
17
|
+
dataTableContext: DataTableContextService;
|
|
18
|
+
/**
|
|
19
|
+
* Get the row instance from context
|
|
20
|
+
*/
|
|
21
|
+
get row(): Row<T>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
readonly iconChevronDown = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z\"></path></svg>";
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* Computes button size based on data table size
|
|
27
|
+
*/
|
|
28
|
+
readonly buttonSize: import("@angular/core").Signal<ButtonSizeProps>;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* Computes icon size based on data table size
|
|
32
|
+
*/
|
|
33
|
+
readonly iconSize: import("@angular/core").Signal<IconSizeProps>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableExpandableCellComponent<any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableExpandableCellComponent<any>, "st-data-table-expandable-cell", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Expandable header cell component with sorting capability and expand all functionality
|
|
39
|
+
*/
|
|
40
|
+
export declare class DataTableExpandableHeaderCellComponent<T extends RowData> {
|
|
41
|
+
/**
|
|
42
|
+
* TanStack Table context injected by flexRender
|
|
43
|
+
*/
|
|
44
|
+
readonly context: HeaderContext<T, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Data table context for size synchronization
|
|
47
|
+
*/
|
|
48
|
+
readonly dataTableContext: DataTableContextService;
|
|
49
|
+
/**
|
|
50
|
+
* Display label for the column
|
|
51
|
+
*/
|
|
52
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Whether this column can be sorted
|
|
55
|
+
*/
|
|
56
|
+
readonly canSort: import("@angular/core").InputSignal<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* Current sort state of the column
|
|
59
|
+
*/
|
|
60
|
+
readonly sortState: import("@angular/core").InputSignal<false | "asc" | "desc">;
|
|
61
|
+
/**
|
|
62
|
+
* Event emitted when sort toggle is requested
|
|
63
|
+
*/
|
|
64
|
+
readonly sortToggle: import("@angular/core").OutputEmitterRef<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the table instance from context
|
|
67
|
+
*/
|
|
68
|
+
get table(): import("@tanstack/table-core").Table<T>;
|
|
69
|
+
/** @internal */
|
|
70
|
+
readonly iconChevronDown = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z\"></path></svg>";
|
|
71
|
+
/** @internal */
|
|
72
|
+
readonly iconDefaultSort = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z\"></path></svg>";
|
|
73
|
+
/** @internal */
|
|
74
|
+
readonly iconAscending = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z\"></path></svg>";
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* Computes button size based on data table size
|
|
78
|
+
*/
|
|
79
|
+
readonly buttonSize: import("@angular/core").Signal<ButtonSizeProps>;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* Computes icon size based on data table size
|
|
83
|
+
*/
|
|
84
|
+
readonly iconSize: import("@angular/core").Signal<IconSizeProps>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* Computes the appropriate icon based on current sort state
|
|
88
|
+
*/
|
|
89
|
+
readonly currentSortIcon: import("@angular/core").Signal<"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z\"></path></svg>" | "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z\"></path></svg>">;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* Computes aria-sort attribute for accessibility
|
|
93
|
+
*/
|
|
94
|
+
readonly computedAriaSortAttribute: import("@angular/core").Signal<"ascending" | "descending" | "none">;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableExpandableHeaderCellComponent<any>, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableExpandableHeaderCellComponent<any>, "st-data-table-expandable-header-cell", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "canSort": { "alias": "canSort"; "required": false; "isSignal": true; }; "sortState": { "alias": "sortState"; "required": false; "isSignal": true; }; }, { "sortToggle": "sortToggle"; }, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Sub-component toggle cell for controlling custom sub-component visibility
|
|
100
|
+
*/
|
|
101
|
+
export declare class DataTableSubToggleCellComponent {
|
|
102
|
+
/**
|
|
103
|
+
* The table row instance
|
|
104
|
+
*/
|
|
105
|
+
readonly row: import("@angular/core").InputSignal<Row<unknown>>;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the sub-component is currently expanded
|
|
108
|
+
*/
|
|
109
|
+
readonly isExpanded: import("@angular/core").InputSignal<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Whether this row can toggle a sub-component
|
|
112
|
+
*/
|
|
113
|
+
readonly canToggleSubComponent: import("@angular/core").InputSignal<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Event emitted when toggle is clicked
|
|
116
|
+
*/
|
|
117
|
+
readonly toggled: import("@angular/core").OutputEmitterRef<string>;
|
|
118
|
+
/** @internal */
|
|
119
|
+
readonly expandIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z\"></path></svg>";
|
|
120
|
+
/** @internal */
|
|
121
|
+
readonly infoIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z\"></path></svg>";
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
* Handles the toggle click
|
|
125
|
+
*/
|
|
126
|
+
handleToggle(): void;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableSubToggleCellComponent, never>;
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableSubToggleCellComponent, "st-data-table-sub-toggle-cell", never, { "row": { "alias": "row"; "required": true; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "canToggleSubComponent": { "alias": "canToggleSubComponent"; "required": false; "isSignal": true; }; }, { "toggled": "toggled"; }, never, never, true, never>;
|
|
129
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from '@tanstack/angular-table';
|
|
2
|
+
export * from './expandable/expandable.component';
|
|
3
|
+
export * from './selection/selection.component';
|
|
4
|
+
export * from './sortable-header/sortable-header.component';
|
|
5
|
+
export * from './src/data-table.component';
|
|
6
|
+
export * from './src/models';
|
|
7
|
+
export * from './sub-component-toggle/sub-component-toggle.component';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type CellContext, type HeaderContext, RowData } from '@tanstack/angular-table';
|
|
2
|
+
import { DataTableContextService } from '../src/data-table-context.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Header checkbox component for selecting/deselecting all rows on current page
|
|
6
|
+
*/
|
|
7
|
+
export declare class DataTableHeadSelectionComponent<T extends RowData> {
|
|
8
|
+
/**
|
|
9
|
+
* TanStack Table context injected by flexRender
|
|
10
|
+
*/
|
|
11
|
+
context: HeaderContext<T, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Data table context for size synchronization
|
|
14
|
+
*/
|
|
15
|
+
readonly dataTableContext: DataTableContextService;
|
|
16
|
+
/**
|
|
17
|
+
* Computed checkbox size based on table size
|
|
18
|
+
*/
|
|
19
|
+
readonly checkboxSize: import("@angular/core").Signal<"xs" | "sm" | "md" | "lg">;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableHeadSelectionComponent<any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableHeadSelectionComponent<any>, "st-data-table-head-selection", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Row checkbox component for individual row selection
|
|
25
|
+
*/
|
|
26
|
+
export declare class DataTableRowSelectionComponent<T extends RowData> {
|
|
27
|
+
/**
|
|
28
|
+
* TanStack Table context injected by flexRender
|
|
29
|
+
*/
|
|
30
|
+
context: CellContext<T, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Data table context for size synchronization
|
|
33
|
+
*/
|
|
34
|
+
readonly dataTableContext: DataTableContextService;
|
|
35
|
+
/**
|
|
36
|
+
* Computed checkbox size based on table size
|
|
37
|
+
*/
|
|
38
|
+
readonly checkboxSize: import("@angular/core").Signal<"xs" | "sm" | "md" | "lg">;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableRowSelectionComponent<any>, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableRowSelectionComponent<any>, "st-data-table-row-selection", never, {}, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ButtonSizeProps } from '@sixbell-telco/sdk/components/button';
|
|
2
|
+
import { IconSizeProps } from '@sixbell-telco/sdk/components/icon';
|
|
3
|
+
import { DataTableContextService } from '../src/data-table-context.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Sortable header component for data table columns
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* flexRenderComponent(DataTableSortableHeaderComponent, {
|
|
11
|
+
* inputs: {
|
|
12
|
+
* label: 'Column Name',
|
|
13
|
+
* sortState: column.getIsSorted(),
|
|
14
|
+
* },
|
|
15
|
+
* outputs: {
|
|
16
|
+
* sortToggle: () => column.toggleSorting(),
|
|
17
|
+
* },
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class DataTableSortableHeaderComponent {
|
|
22
|
+
readonly dataTableContext: DataTableContextService;
|
|
23
|
+
/**
|
|
24
|
+
* Display label for the column
|
|
25
|
+
*/
|
|
26
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Current sort state of the column
|
|
29
|
+
*/
|
|
30
|
+
readonly sortState: import("@angular/core").InputSignal<false | "asc" | "desc">;
|
|
31
|
+
/**
|
|
32
|
+
* Event emitted when sort toggle is requested
|
|
33
|
+
*/
|
|
34
|
+
readonly sortToggle: import("@angular/core").OutputEmitterRef<void>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
readonly iconDefaultSort = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z\"></path></svg>";
|
|
37
|
+
/** @internal */
|
|
38
|
+
readonly iconAscending = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z\"></path></svg>";
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* Computes button size based on data table size
|
|
42
|
+
*/
|
|
43
|
+
readonly buttonSize: import("@angular/core").Signal<ButtonSizeProps>;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Computes icon size based on data table size
|
|
47
|
+
*/
|
|
48
|
+
readonly iconSize: import("@angular/core").Signal<IconSizeProps>;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* Computes the appropriate icon based on current sort state
|
|
52
|
+
*/
|
|
53
|
+
readonly currentSortIcon: import("@angular/core").Signal<"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z\"></path></svg>" | "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z\"></path></svg>">;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Computes aria-sort attribute for accessibility
|
|
57
|
+
*/
|
|
58
|
+
readonly computedAriaSortAttribute: import("@angular/core").Signal<"ascending" | "descending" | "none">;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableSortableHeaderComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableSortableHeaderComponent, "st-data-table-sortable-header", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "sortState": { "alias": "sortState"; "required": false; "isSignal": true; }; }, { "sortToggle": "sortToggle"; }, never, never, true, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TableContentSizeProps } from '@sixbell-telco/sdk/components/table';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Context service to share data table configuration with sub-components
|
|
5
|
+
* This allows sub-components to automatically sync their sizes with the parent data table
|
|
6
|
+
*/
|
|
7
|
+
export declare class DataTableContextService {
|
|
8
|
+
/**
|
|
9
|
+
* Current table size that sub-components can subscribe to
|
|
10
|
+
*/
|
|
11
|
+
readonly size: import("@angular/core").WritableSignal<TableContentSizeProps>;
|
|
12
|
+
/**
|
|
13
|
+
* Update the table size - called by the main data table component
|
|
14
|
+
*/
|
|
15
|
+
setSize(size: TableContentSizeProps): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableContextService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataTableContextService>;
|
|
18
|
+
}
|