snice 1.14.3 → 2.1.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/bin/templates/base/tsconfig.json +5 -4
- package/components/accordion/demo.html +403 -0
- package/components/accordion/snice-accordion-item.css +85 -0
- package/components/accordion/snice-accordion-item.ts +226 -0
- package/components/accordion/snice-accordion.css +31 -0
- package/components/accordion/snice-accordion.ts +182 -0
- package/components/accordion/snice-accordion.types.ts +32 -0
- package/components/alert/demo.html +445 -0
- package/components/alert/snice-alert.css +195 -0
- package/components/alert/snice-alert.ts +141 -0
- package/components/alert/snice-alert.types.ts +12 -0
- package/components/avatar/demo.html +598 -0
- package/components/avatar/snice-avatar.css +131 -0
- package/components/avatar/snice-avatar.ts +136 -0
- package/components/avatar/snice-avatar.types.ts +13 -0
- package/components/badge/demo.html +523 -0
- package/components/badge/snice-badge.css +161 -0
- package/components/badge/snice-badge.ts +117 -0
- package/components/badge/snice-badge.types.ts +16 -0
- package/components/breadcrumbs/demo.html +404 -0
- package/components/breadcrumbs/snice-breadcrumbs.css +133 -0
- package/components/breadcrumbs/snice-breadcrumbs.ts +191 -0
- package/components/breadcrumbs/snice-breadcrumbs.types.ts +26 -0
- package/components/breadcrumbs/snice-crumb.ts +26 -0
- package/components/button/demo.html +42 -0
- package/components/button/snice-button.css +230 -0
- package/components/button/snice-button.ts +169 -0
- package/components/button/snice-button.types.ts +25 -0
- package/components/card/demo.html +525 -0
- package/components/card/snice-card.css +140 -0
- package/components/card/snice-card.ts +102 -0
- package/components/card/snice-card.types.ts +10 -0
- package/components/checkbox/demo.html +253 -0
- package/components/checkbox/snice-checkbox.css +164 -0
- package/components/checkbox/snice-checkbox.ts +223 -0
- package/components/checkbox/snice-checkbox.types.ts +22 -0
- package/components/chip/demo.html +383 -0
- package/components/chip/snice-chip.css +195 -0
- package/components/chip/snice-chip.ts +139 -0
- package/components/chip/snice-chip.types.ts +15 -0
- package/components/date-picker/README.md +233 -0
- package/components/date-picker/demo.html +191 -0
- package/components/date-picker/snice-date-picker.css +330 -0
- package/components/date-picker/snice-date-picker.ts +777 -0
- package/components/date-picker/snice-date-picker.types.ts +83 -0
- package/components/divider/demo.html +233 -0
- package/components/divider/snice-divider.css +155 -0
- package/components/divider/snice-divider.ts +69 -0
- package/components/divider/snice-divider.types.ts +15 -0
- package/components/drawer/demo.html +328 -0
- package/components/drawer/snice-drawer.css +476 -0
- package/components/drawer/snice-drawer.ts +287 -0
- package/components/drawer/snice-drawer.types.ts +17 -0
- package/components/global.d.ts +14 -0
- package/components/input/demo.html +303 -0
- package/components/input/snice-input.css +257 -0
- package/components/input/snice-input.ts +442 -0
- package/components/input/snice-input.types.ts +59 -0
- package/components/input/test.html +77 -0
- package/components/layout/README.md +260 -0
- package/components/layout/demo.html +538 -0
- package/components/layout/snice-layout-blog.css +129 -0
- package/components/layout/snice-layout-blog.ts +48 -0
- package/components/layout/snice-layout-card.css +104 -0
- package/components/layout/snice-layout-card.ts +35 -0
- package/components/layout/snice-layout-centered.css +51 -0
- package/components/layout/snice-layout-centered.ts +22 -0
- package/components/layout/snice-layout-dashboard.css +98 -0
- package/components/layout/snice-layout-dashboard.ts +45 -0
- package/components/layout/snice-layout-fullscreen.css +72 -0
- package/components/layout/snice-layout-fullscreen.ts +34 -0
- package/components/layout/snice-layout-landing.css +92 -0
- package/components/layout/snice-layout-landing.ts +47 -0
- package/components/layout/snice-layout-minimal.css +16 -0
- package/components/layout/snice-layout-minimal.ts +19 -0
- package/components/layout/snice-layout-sidebar.css +117 -0
- package/components/layout/snice-layout-sidebar.ts +48 -0
- package/components/layout/snice-layout-split.css +103 -0
- package/components/layout/snice-layout-split.ts +29 -0
- package/components/layout/snice-layout.css +72 -0
- package/components/layout/snice-layout.ts +35 -0
- package/components/layout/snice-layout.types.ts +5 -0
- package/components/login/demo-auth-controller.ts +185 -0
- package/components/login/demo.html +470 -0
- package/components/login/snice-login.css +204 -0
- package/components/login/snice-login.ts +337 -0
- package/components/login/snice-login.types.ts +34 -0
- package/components/modal/demo.html +291 -0
- package/components/modal/snice-modal.css +203 -0
- package/components/modal/snice-modal.ts +233 -0
- package/components/modal/snice-modal.types.ts +21 -0
- package/components/pagination/demo.html +395 -0
- package/components/pagination/snice-pagination.ts +333 -0
- package/components/pagination/snice-pagination.types.ts +21 -0
- package/components/progress/demo.html +510 -0
- package/components/progress/snice-progress.css +267 -0
- package/components/progress/snice-progress.ts +247 -0
- package/components/progress/snice-progress.types.ts +19 -0
- package/components/radio/demo.html +287 -0
- package/components/radio/snice-radio.css +171 -0
- package/components/radio/snice-radio.ts +218 -0
- package/components/radio/snice-radio.types.ts +21 -0
- package/components/select/demo.html +511 -0
- package/components/select/snice-option.ts +52 -0
- package/components/select/snice-option.types.ts +14 -0
- package/components/select/snice-select.css +392 -0
- package/components/select/snice-select.ts +796 -0
- package/components/select/snice-select.types.ts +55 -0
- package/components/skeleton/demo.html +514 -0
- package/components/skeleton/snice-skeleton.css +109 -0
- package/components/skeleton/snice-skeleton.ts +126 -0
- package/components/skeleton/snice-skeleton.types.ts +11 -0
- package/components/switch/demo.html +284 -0
- package/components/switch/snice-switch.css +221 -0
- package/components/switch/snice-switch.ts +229 -0
- package/components/switch/snice-switch.types.ts +23 -0
- package/components/symbols.ts +23 -0
- package/components/table/demo-table-controller.ts +100 -0
- package/components/table/demo.html +480 -0
- package/components/table/snice-cell-boolean.ts +112 -0
- package/components/table/snice-cell-date.ts +210 -0
- package/components/table/snice-cell-duration.ts +91 -0
- package/components/table/snice-cell-filesize.ts +90 -0
- package/components/table/snice-cell-number.ts +165 -0
- package/components/table/snice-cell-progress.ts +83 -0
- package/components/table/snice-cell-rating.ts +82 -0
- package/components/table/snice-cell-sparkline.ts +253 -0
- package/components/table/snice-cell-text.ts +125 -0
- package/components/table/snice-cell.css +296 -0
- package/components/table/snice-cell.ts +473 -0
- package/components/table/snice-column.ts +353 -0
- package/components/table/snice-header.css +243 -0
- package/components/table/snice-header.ts +261 -0
- package/components/table/snice-progress.ts +66 -0
- package/components/table/snice-rating.ts +45 -0
- package/components/table/snice-row.css +255 -0
- package/components/table/snice-row.ts +331 -0
- package/components/table/snice-table.css +241 -0
- package/components/table/snice-table.ts +737 -0
- package/components/table/snice-table.types.ts +158 -0
- package/components/tabs/demo.html +487 -0
- package/components/tabs/snice-tab-panel.css +264 -0
- package/components/tabs/snice-tab-panel.ts +47 -0
- package/components/tabs/snice-tab.css +96 -0
- package/components/tabs/snice-tab.ts +65 -0
- package/components/tabs/snice-tabs.css +189 -0
- package/components/tabs/snice-tabs.ts +332 -0
- package/components/tabs/snice-tabs.types.ts +28 -0
- package/components/theme/theme.css +234 -0
- package/components/toast/demo.html +329 -0
- package/components/toast/snice-toast-container.ts +256 -0
- package/components/toast/snice-toast.css +213 -0
- package/components/toast/snice-toast.ts +276 -0
- package/components/toast/snice-toast.types.ts +35 -0
- package/components/tooltip/demo.html +350 -0
- package/components/tooltip/snice-tooltip-portal.css +79 -0
- package/components/tooltip/snice-tooltip.css +117 -0
- package/components/tooltip/snice-tooltip.ts +612 -0
- package/components/tooltip/snice-tooltip.types.ts +32 -0
- package/components/transitions.ts +94 -0
- package/components/tsconfig.json +18 -0
- package/dist/index.cjs +441 -329
- package/dist/index.cjs.map +1 -1
- package/dist/index.cjs.min.map +1 -1
- package/dist/index.esm.js +441 -329
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +3 -3
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +441 -329
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +3 -3
- package/dist/index.iife.min.js.map +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.esm.js +1 -1
- package/dist/types/controller.d.ts +1 -1
- package/dist/types/element.d.ts +10 -10
- package/dist/types/events.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/observe.d.ts +1 -1
- package/dist/types/request-response.d.ts +2 -3
- package/dist/types/router.d.ts +1 -1
- package/package.json +9 -3
- package/dist/index.cjs.min +0 -15
- package/dist/symbols.cjs +0 -103
- package/dist/transitions.cjs +0 -219
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* Cell Base */
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
min-height: 2.5rem; /* 40px */
|
|
6
|
+
height: 2.5rem; /* 40px */
|
|
7
|
+
min-width: 6.25rem; /* 100px */
|
|
8
|
+
flex: 1;
|
|
9
|
+
font-size: 0.875rem; /* 14px */
|
|
10
|
+
line-height: 1.25rem; /* 20px */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cell-content {
|
|
14
|
+
width: 100%;
|
|
15
|
+
min-width: 6.25rem; /* 100px */
|
|
16
|
+
min-height: 1.25rem; /* 20px */
|
|
17
|
+
word-wrap: break-word;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Text Alignment */
|
|
21
|
+
:host([align="left"]) {
|
|
22
|
+
text-align: left;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([align="center"]) {
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([align="right"]) {
|
|
30
|
+
text-align: right;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Type Specific Styles */
|
|
34
|
+
:host([type="number"]),
|
|
35
|
+
:host([type="currency"]),
|
|
36
|
+
:host([type="percent"]),
|
|
37
|
+
:host([type="accounting"]),
|
|
38
|
+
:host([type="scientific"]),
|
|
39
|
+
:host([type="fraction"]) {
|
|
40
|
+
font-variant-numeric: tabular-nums;
|
|
41
|
+
text-align: right;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([type="date"]) {
|
|
45
|
+
font-variant-numeric: tabular-nums;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([type="boolean"]) {
|
|
49
|
+
text-align: center;
|
|
50
|
+
font-size: 1rem; /* 16px */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([type="rating"]) {
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([type="progress"]) {
|
|
58
|
+
/* Remove padding */
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([type="sparkline"]) {
|
|
62
|
+
text-align: center;
|
|
63
|
+
/* Remove padding */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Text Content Specific */
|
|
67
|
+
.cell-content--text {
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cell-content--text[data-multiline="true"] {
|
|
74
|
+
white-space: pre-wrap;
|
|
75
|
+
word-wrap: break-word;
|
|
76
|
+
overflow-wrap: break-word;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Number Content Specific */
|
|
80
|
+
.cell-content--number {
|
|
81
|
+
font-feature-settings: 'tnum';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Date Content Specific */
|
|
85
|
+
.cell-content--date {
|
|
86
|
+
font-feature-settings: 'tnum';
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Boolean Content Styling */
|
|
90
|
+
:host([type="boolean"]) .cell-content {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Rating Content Styling */
|
|
97
|
+
:host([type="rating"]) .cell-content {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
gap: 0.125rem; /* 2px */
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Progress Content Styling */
|
|
105
|
+
.cell-content--progress {
|
|
106
|
+
width: 100%;
|
|
107
|
+
min-width: 4rem; /* 64px */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Sparkline Content Styling */
|
|
111
|
+
.cell-content--sparkline {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
min-width: 3rem; /* 48px */
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Conditional Formatting Support */
|
|
119
|
+
:host(.positive) {
|
|
120
|
+
color: var(--snice-color-success);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:host(.negative) {
|
|
124
|
+
color: var(--snice-color-danger);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.warning) {
|
|
128
|
+
color: var(--snice-color-warning);
|
|
129
|
+
background-color: rgb(var(--snice-color-yellow-100));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host(.danger) {
|
|
133
|
+
color: var(--snice-color-danger);
|
|
134
|
+
background-color: rgb(var(--snice-color-red-100));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host(.success) {
|
|
138
|
+
color: var(--snice-color-success);
|
|
139
|
+
background-color: rgb(var(--snice-color-green-100));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host(.info) {
|
|
143
|
+
color: var(--snice-color-primary);
|
|
144
|
+
background-color: rgb(var(--snice-color-blue-100));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Date-specific styling */
|
|
148
|
+
:host(.date--today) {
|
|
149
|
+
font-weight: var(--snice-font-weight-semibold);
|
|
150
|
+
color: var(--snice-color-primary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host(.date--past) {
|
|
154
|
+
color: var(--snice-color-text-secondary);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:host(.date--future) {
|
|
158
|
+
color: var(--snice-color-success);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Number-specific styling */
|
|
162
|
+
:host(.number--negative.number--negative-red) {
|
|
163
|
+
color: var(--snice-color-danger);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:host(.number--positive.number--highlighted) {
|
|
167
|
+
color: var(--snice-color-success);
|
|
168
|
+
font-weight: var(--snice-font-weight-semibold);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host(.number--zero) {
|
|
172
|
+
color: var(--snice-color-text-secondary);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Truncation Support */
|
|
176
|
+
:host([truncate]) .cell-content {
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Wrap Support */
|
|
183
|
+
:host([wrap]) .cell-content {
|
|
184
|
+
white-space: pre-wrap;
|
|
185
|
+
word-wrap: break-word;
|
|
186
|
+
overflow-wrap: break-word;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Empty State */
|
|
190
|
+
:host([value=""]) .cell-content,
|
|
191
|
+
:host(:not([value])) .cell-content {
|
|
192
|
+
color: #6c757d;
|
|
193
|
+
font-style: italic;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Loading State */
|
|
197
|
+
:host(.loading) {
|
|
198
|
+
position: relative;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host(.loading) .cell-content {
|
|
203
|
+
opacity: 0.6;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:host(.loading)::after {
|
|
207
|
+
content: '';
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 0;
|
|
210
|
+
left: 0;
|
|
211
|
+
right: 0;
|
|
212
|
+
bottom: 0;
|
|
213
|
+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
|
|
214
|
+
animation: cell-shimmer 1.5s infinite;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@keyframes cell-shimmer {
|
|
218
|
+
0% {
|
|
219
|
+
transform: translateX(-100%);
|
|
220
|
+
}
|
|
221
|
+
100% {
|
|
222
|
+
transform: translateX(100%);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Focus States */
|
|
227
|
+
:host(:focus-within) {
|
|
228
|
+
outline: 2px solid #007bff;
|
|
229
|
+
outline-offset: -2px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Interactive Elements */
|
|
233
|
+
.cell-content button,
|
|
234
|
+
.cell-content input,
|
|
235
|
+
.cell-content select {
|
|
236
|
+
font-size: inherit;
|
|
237
|
+
line-height: inherit;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.cell-content a {
|
|
241
|
+
color: #007bff;
|
|
242
|
+
text-decoration: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.cell-content a:hover {
|
|
246
|
+
text-decoration: underline;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Responsive Design */
|
|
250
|
+
@media (max-width: 768px) {
|
|
251
|
+
:host {
|
|
252
|
+
font-size: 0.75rem; /* 12px */
|
|
253
|
+
line-height: 1rem; /* 16px */
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host([type="boolean"]) {
|
|
257
|
+
font-size: 0.875rem; /* 14px */
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* Accessibility */
|
|
262
|
+
@media (prefers-reduced-motion: reduce) {
|
|
263
|
+
:host(.loading)::after {
|
|
264
|
+
animation: none;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* High Contrast Mode */
|
|
269
|
+
@media (prefers-contrast: high) {
|
|
270
|
+
:host(.positive) {
|
|
271
|
+
background-color: #d4edda;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:host(.negative) {
|
|
275
|
+
background-color: #f8d7da;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.cell-content a {
|
|
279
|
+
text-decoration: underline;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Print Styles */
|
|
284
|
+
@media print {
|
|
285
|
+
:host {
|
|
286
|
+
font-size: 0.75rem; /* 12px */
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:host(.loading)::after {
|
|
290
|
+
display: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.cell-content a {
|
|
294
|
+
text-decoration: underline;
|
|
295
|
+
}
|
|
296
|
+
}
|