@sixbell-telco/sdk 1.2.1 → 1.4.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 +93 -0
- package/README.md +210 -70
- package/_index.css +232 -55
- package/assets/styles/toast.css +8 -0
- package/components/data-table/expandable/expandable.component.d.ts +129 -0
- package/components/{forms/datepicker → data-table}/index.d.ts +1 -1
- 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/date-picker/constants/date-picker.constants.d.ts +13 -0
- package/components/forms/date-picker/index.d.ts +5 -0
- package/components/forms/date-picker/public-api.d.ts +3 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +323 -0
- package/components/forms/date-picker/types/date-picker.types.d.ts +39 -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/sonner/index.d.ts +5 -0
- package/components/sonner/public-api.d.ts +2 -0
- package/components/sonner/src/sonner.component.d.ts +39 -0
- package/components/sonner/toaster/index.d.ts +5 -0
- package/components/sonner/toaster/public-api.d.ts +1 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +89 -0
- package/components/table/src/table.component.d.ts +9 -6
- package/components/toast/public-api.d.ts +9 -0
- package/components/toast/services/toast.service.d.ts +3 -0
- package/components/toast/toast-message/toast-message.component.d.ts +3 -0
- package/components/toast/toasts-container/toasts-container.component.d.ts +3 -0
- 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-date-picker.mjs +885 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -0
- 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-sonner-toaster.mjs +132 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +179 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -0
- 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-components-toast.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +242 -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 +77 -47
- 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 +125 -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/public-api.d.ts +0 -2
- package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +0 -10
- package/components/forms/datepicker/src/datepicker.component.d.ts +0 -54
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -212
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +0 -1
package/_index.css
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
@import 'tailwindcss' source('../');
|
|
2
2
|
@import '@angular/cdk/overlay-prebuilt.css';
|
|
3
|
+
/* Legacy toast system (deprecated) + Sonner relies on component classes */
|
|
3
4
|
@import './assets/styles/toast.css';
|
|
4
5
|
|
|
5
6
|
@plugin "@midudev/tailwind-animations";
|
|
6
7
|
@plugin "@tailwindcss/typography";
|
|
7
|
-
@plugin 'tailwind-scrollbar';
|
|
8
8
|
@plugin "daisyui" {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
vivid_elegance_dark --prefers-dark;
|
|
9
|
+
exclude: rootscrollgutter, rootscrolllock, scrollbar;
|
|
10
|
+
themes: false;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
@plugin "daisyui/theme" {
|
|
15
14
|
name: 'sixbell_telco__light';
|
|
16
15
|
default: true;
|
|
17
16
|
prefersdark: false;
|
|
18
|
-
color-scheme:
|
|
17
|
+
color-scheme: light;
|
|
19
18
|
|
|
20
19
|
/* Daisy UI Colors */
|
|
21
20
|
--color-base-100: oklch(96.65% 0.0045 258.32);
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
|
|
59
58
|
/* Custom Colors */
|
|
60
59
|
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
60
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #fff);
|
|
61
61
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
62
62
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
63
63
|
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
@@ -75,8 +75,9 @@
|
|
|
75
75
|
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
76
76
|
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
--shadow-
|
|
78
|
+
/* Shadow color tokens */
|
|
79
|
+
--color-shadow-primary: oklch(0.8975 0 0);
|
|
80
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
80
81
|
|
|
81
82
|
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
82
83
|
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
@@ -87,13 +88,15 @@
|
|
|
87
88
|
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
88
89
|
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
89
90
|
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
91
|
+
|
|
92
|
+
--color-scroll-thumb: oklch(75% 0 0);
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
@plugin "daisyui/theme" {
|
|
93
96
|
name: 'sixbell_telco__dark';
|
|
94
97
|
default: false;
|
|
95
98
|
prefersdark: true;
|
|
96
|
-
color-scheme:
|
|
99
|
+
color-scheme: dark;
|
|
97
100
|
|
|
98
101
|
/* Daisy UI Colors */
|
|
99
102
|
--color-base-100: oklch(18.22% 0 0);
|
|
@@ -135,6 +138,7 @@
|
|
|
135
138
|
|
|
136
139
|
/* Custom Colors */
|
|
137
140
|
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
141
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #000);
|
|
138
142
|
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
139
143
|
--color-primary-gradient-content: oklch(100% 0 0);
|
|
140
144
|
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
@@ -152,8 +156,9 @@
|
|
|
152
156
|
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
153
157
|
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
154
158
|
|
|
155
|
-
|
|
156
|
-
--shadow-
|
|
159
|
+
/* Shadow color tokens */
|
|
160
|
+
--color-shadow-primary: oklch(0 0 0);
|
|
161
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
157
162
|
|
|
158
163
|
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
159
164
|
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
@@ -164,50 +169,54 @@
|
|
|
164
169
|
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
165
170
|
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
166
171
|
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
172
|
+
|
|
173
|
+
--color-scroll-thumb: oklch(35% 0 0);
|
|
167
174
|
}
|
|
168
175
|
|
|
169
176
|
@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-
|
|
177
|
+
/* Color tokens registered for Tailwind utilities; values provided in theme plugin blocks */
|
|
178
|
+
--color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
|
|
179
|
+
--color-primary-light: color-mix(in oklch, var(--color-primary) 75%, #fff);
|
|
180
|
+
--color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
|
|
181
|
+
--color-primary-gradient-content: oklch(100% 0 0);
|
|
182
|
+
--color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
|
|
183
|
+
--color-secondary-gradient-content: oklch(13.49% 0.0024 286.07);
|
|
184
|
+
--color-tertiary-gradient: color-mix(in oklch, var(--color-tertiary) 60%, #121212);
|
|
185
|
+
--color-tertiary-gradient-content: oklch(13.49% 0.0024 286.07);
|
|
186
|
+
--color-accent-gradient: color-mix(in oklch, var(--color-accent) 60%, #121212);
|
|
187
|
+
--color-accent-gradient-content: oklch(100% 0 0);
|
|
188
|
+
--color-tertiary: oklch(72.52% 0 0);
|
|
189
|
+
--color-tertiary-content: oklch(13.49% 0.0024 286.07);
|
|
190
|
+
--color-neutral-secondary: oklch(73.97% 0.0115 280.4);
|
|
191
|
+
--color-neutral-secondary-content: oklch(100% 0 0);
|
|
192
|
+
--color-neutral-tertiary: oklch(100% 0 0);
|
|
193
|
+
--color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
|
|
194
|
+
--color-base-placeholder: oklch(51.6% 0.0073 255.51);
|
|
195
|
+
--color-backdrop: oklch(0% 0 0/ 0.4);
|
|
196
|
+
--color-metrics-increase: oklch(74.59% 0.1812 152.33);
|
|
197
|
+
--color-metrics-decrease: oklch(63.07% 0.194 29.44);
|
|
198
|
+
--color-metrics-neutral: oklch(62.99% 0.0152 202.37);
|
|
199
|
+
--color-metrics-intensity-highest: oklch(65.64% 0.1155 219.3);
|
|
200
|
+
--color-metrics-intensity-high: oklch(68.62% 0.0925 226.08);
|
|
201
|
+
--color-metrics-intensity-medium: oklch(68.62% 0.0925 226.08);
|
|
202
|
+
--color-metrics-intensity-low: oklch(76.18% 0.0656 213.66);
|
|
203
|
+
--color-metrics-intensity-lowest: oklch(78% 0.0473 211.88);
|
|
204
|
+
--color-scroll-thumb: oklch(75% 0 0);
|
|
205
|
+
--color-shadow-primary: oklch(0.8975 0 0);
|
|
206
|
+
--color-shadow-backdrop: oklch(0% 0 0/ 0.25);
|
|
198
207
|
|
|
208
|
+
/* Non-color design tokens (kept for convenience) */
|
|
199
209
|
--font-poppins: Poppins, sans-serif;
|
|
200
210
|
--font-heading: Poppins, sans-serif;
|
|
201
211
|
--font-body: Poppins, sans-serif;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
212
|
+
--shadow-main:
|
|
213
|
+
var(--color-shadow-primary) 0px 0px 0px 0px, var(--color-shadow-primary) 0px 0px 0px 0px, var(--color-shadow-primary) 0px 0px 0px 0px,
|
|
214
|
+
var(--color-shadow-primary) 0px 0px 0px 0px, var(--color-shadow-primary) 0px 4px 6px -1px, var(--color-shadow-primary) 0px 2px 4px -2px;
|
|
215
|
+
--shadow-main-lg: 0 4px 12px var(--color-shadow-primary);
|
|
216
|
+
--shadow-backdrop: 0px 25px 50px -12px var(--color-shadow-backdrop);
|
|
206
217
|
--font-weight-inherit: inherit;
|
|
207
|
-
|
|
208
218
|
--ease-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
209
219
|
--ease-ease-in-and-out-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
210
|
-
|
|
211
220
|
--animate-slide-in: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
212
221
|
--animate-slide-out: slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
213
222
|
--animate-toast-slide-out: toastSlideOut 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
@@ -216,7 +225,6 @@
|
|
|
216
225
|
--animate-wave: wave 1s linear infinite;
|
|
217
226
|
--animate-enter: enter 0.15s ease 0s 1 normal none;
|
|
218
227
|
--animate-exit: exit 0.15s ease 0s 1 normal none;
|
|
219
|
-
|
|
220
228
|
--text-xxs: 0.625rem;
|
|
221
229
|
--text-xxs--line-height: 0.625rem;
|
|
222
230
|
|
|
@@ -254,22 +262,33 @@
|
|
|
254
262
|
}
|
|
255
263
|
|
|
256
264
|
@layer base {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
padding: 0;
|
|
260
|
-
@apply scrollbar-thin overscroll-contain scroll-smooth;
|
|
265
|
+
html {
|
|
266
|
+
scrollbar-color: var(--color-scroll-thumb);
|
|
261
267
|
}
|
|
262
|
-
|
|
263
268
|
*,
|
|
264
269
|
*::before,
|
|
265
270
|
*::after {
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
/* Firefox */
|
|
272
|
+
scrollbar-width: thin;
|
|
273
|
+
scrollbar-color: var(--color-scroll-thumb);
|
|
268
274
|
}
|
|
269
275
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
/* Chrome / Safari / Edge */
|
|
277
|
+
*::-webkit-scrollbar {
|
|
278
|
+
width: 8px;
|
|
279
|
+
height: 8px;
|
|
280
|
+
}
|
|
281
|
+
*::-webkit-scrollbar-track {
|
|
282
|
+
background: transparent;
|
|
283
|
+
}
|
|
284
|
+
*::-webkit-scrollbar-thumb {
|
|
285
|
+
background-color: var(--color-scroll-thumb);
|
|
286
|
+
border: 0;
|
|
287
|
+
border-radius: 6px;
|
|
288
|
+
background-clip: padding-box;
|
|
289
|
+
}
|
|
290
|
+
*::-webkit-scrollbar-corner {
|
|
291
|
+
background: transparent;
|
|
273
292
|
}
|
|
274
293
|
|
|
275
294
|
body {
|
|
@@ -290,6 +309,10 @@
|
|
|
290
309
|
max-width: 100%;
|
|
291
310
|
}
|
|
292
311
|
|
|
312
|
+
input[type='time']::-webkit-calendar-picker-indicator {
|
|
313
|
+
background: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
293
316
|
@media (prefers-reduced-motion: reduce) {
|
|
294
317
|
* {
|
|
295
318
|
animation-duration: 0.01ms !important;
|
|
@@ -389,6 +412,82 @@
|
|
|
389
412
|
.animate-wave {
|
|
390
413
|
animation-delay: calc(1s - var(--i));
|
|
391
414
|
}
|
|
415
|
+
|
|
416
|
+
calendar-range {
|
|
417
|
+
svg {
|
|
418
|
+
height: 16px;
|
|
419
|
+
width: 16px;
|
|
420
|
+
fill: none;
|
|
421
|
+
stroke: currentColor;
|
|
422
|
+
stroke-width: 1.5;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
path {
|
|
426
|
+
stroke-linecap: round;
|
|
427
|
+
stroke-linejoin: round;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&::part(previous) {
|
|
431
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&::part(next) {
|
|
435
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
calendar-month {
|
|
440
|
+
--color-accent: var(--color-primary);
|
|
441
|
+
--color-text-on-accent: var(--color-primary-content);
|
|
442
|
+
|
|
443
|
+
@apply font-body;
|
|
444
|
+
&::part(button) {
|
|
445
|
+
@apply rounded-selector transition-colors duration-150 ease-linear;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&::part(range-inner) {
|
|
449
|
+
@apply bg-primary-light text-primary-content rounded-none;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
&::part(range-start) {
|
|
453
|
+
@apply rounded-tr-none rounded-br-none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&::part(range-end) {
|
|
457
|
+
@apply rounded-tl-none rounded-bl-none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
&::part(range-start range-end) {
|
|
461
|
+
@apply rounded-selector;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
&::part(today) {
|
|
465
|
+
color: var(--color-primary);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
&::part(today selected),
|
|
469
|
+
&::part(today):focus-visible {
|
|
470
|
+
@apply text-primary-content;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* Hover outline only for non-selected day buttons; selected part overrides this */
|
|
474
|
+
&::part(button):hover {
|
|
475
|
+
@apply bg-base-50 text-base-content;
|
|
476
|
+
}
|
|
477
|
+
&::part(button selected):hover {
|
|
478
|
+
@apply bg-primary text-primary-content;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
calendar-date {
|
|
483
|
+
&::part(previous) {
|
|
484
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
&::part(next) {
|
|
488
|
+
@apply btn btn-ghost btn-sm btn-square;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
392
491
|
}
|
|
393
492
|
|
|
394
493
|
@layer components {
|
|
@@ -506,4 +605,82 @@
|
|
|
506
605
|
@apply border-base-300 bg-base-300 placeholder-base-content text-base-content/40 cursor-not-allowed;
|
|
507
606
|
}
|
|
508
607
|
}
|
|
608
|
+
|
|
609
|
+
.hide-x-scrollbar {
|
|
610
|
+
scrollbar-width: none; /* Firefox */
|
|
611
|
+
-ms-overflow-style: none; /* IE 10+ */
|
|
612
|
+
}
|
|
613
|
+
.hide-x-scrollbar::-webkit-scrollbar {
|
|
614
|
+
height: 0 !important; /* Chrome/Safari */
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/* Auto-hide/show scrollbars on hover (overlay-like, no reserved gutter) */
|
|
618
|
+
.scrollbar-x-auto-hide {
|
|
619
|
+
overflow-x: auto;
|
|
620
|
+
scrollbar-gutter: auto; /* don't reserve space */
|
|
621
|
+
-ms-overflow-style: none; /* IE/Edge */
|
|
622
|
+
scrollbar-width: thin; /* Firefox: keep thickness constant */
|
|
623
|
+
scrollbar-color: transparent transparent; /* invisible by default */
|
|
624
|
+
}
|
|
625
|
+
/* WebKit: keep thickness constant; toggle visibility via color */
|
|
626
|
+
.scrollbar-x-auto-hide::-webkit-scrollbar {
|
|
627
|
+
height: 8px;
|
|
628
|
+
background: transparent;
|
|
629
|
+
}
|
|
630
|
+
.scrollbar-x-auto-hide::-webkit-scrollbar-thumb {
|
|
631
|
+
background-color: transparent;
|
|
632
|
+
border-radius: 4px;
|
|
633
|
+
}
|
|
634
|
+
.scrollbar-x-auto-hide:hover {
|
|
635
|
+
scrollbar-color: var(--color-scroll-thumb) transparent;
|
|
636
|
+
}
|
|
637
|
+
.scrollbar-x-auto-hide:hover::-webkit-scrollbar-thumb {
|
|
638
|
+
background-color: var(--color-scroll-thumb);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.scrollbar-y-auto-hide {
|
|
642
|
+
overflow-y: auto;
|
|
643
|
+
scrollbar-gutter: auto; /* don't reserve space */
|
|
644
|
+
-ms-overflow-style: none; /* IE/Edge */
|
|
645
|
+
scrollbar-width: thin; /* Firefox */
|
|
646
|
+
scrollbar-color: transparent transparent; /* invisible by default */
|
|
647
|
+
}
|
|
648
|
+
.scrollbar-y-auto-hide::-webkit-scrollbar {
|
|
649
|
+
width: 8px;
|
|
650
|
+
background: transparent;
|
|
651
|
+
}
|
|
652
|
+
.scrollbar-y-auto-hide::-webkit-scrollbar-thumb {
|
|
653
|
+
background-color: transparent;
|
|
654
|
+
border-radius: 4px;
|
|
655
|
+
}
|
|
656
|
+
.scrollbar-y-auto-hide:hover {
|
|
657
|
+
scrollbar-color: var(--color-scroll-thumb) transparent;
|
|
658
|
+
}
|
|
659
|
+
.scrollbar-y-auto-hide:hover::-webkit-scrollbar-thumb {
|
|
660
|
+
background-color: var(--color-scroll-thumb);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* Both axes */
|
|
664
|
+
.scrollbar-auto-hide {
|
|
665
|
+
overflow: auto;
|
|
666
|
+
scrollbar-gutter: auto;
|
|
667
|
+
-ms-overflow-style: none;
|
|
668
|
+
scrollbar-width: thin; /* Firefox */
|
|
669
|
+
scrollbar-color: transparent transparent; /* invisible by default */
|
|
670
|
+
}
|
|
671
|
+
.scrollbar-auto-hide::-webkit-scrollbar {
|
|
672
|
+
width: 8px;
|
|
673
|
+
height: 8px;
|
|
674
|
+
background: transparent;
|
|
675
|
+
}
|
|
676
|
+
.scrollbar-auto-hide::-webkit-scrollbar-thumb {
|
|
677
|
+
background-color: transparent;
|
|
678
|
+
border-radius: 4px;
|
|
679
|
+
}
|
|
680
|
+
.scrollbar-auto-hide:hover {
|
|
681
|
+
scrollbar-color: var(--color-scroll-thumb) transparent;
|
|
682
|
+
}
|
|
683
|
+
.scrollbar-auto-hide:hover::-webkit-scrollbar-thumb {
|
|
684
|
+
background-color: var(--color-scroll-thumb);
|
|
685
|
+
}
|
|
509
686
|
}
|
package/assets/styles/toast.css
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/* DEPRECATED: Legacy toast system styles
|
|
2
|
+
* --------------------------------------------------
|
|
3
|
+
* Retained for backward compatibility while migrating
|
|
4
|
+
* to ngx-sonner based toasts. Do not modify stacking
|
|
5
|
+
* logic; new styling lives inside Sonner component via
|
|
6
|
+
* Tailwind utility classes. Remove this file only when
|
|
7
|
+
* all consumers have switched to the new API.
|
|
8
|
+
*/
|
|
1
9
|
@use 'tailwindcss/base';
|
|
2
10
|
|
|
3
11
|
.toast-container > st-toast-message:nth-child(n + 4) > .toast-message {
|
|
@@ -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
|
+
}
|