@smartsoft001/angular 2.115.0 → 2.117.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.
|
@@ -31,6 +31,781 @@ import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
|
31
31
|
import * as i1$3 from '@ngrx/store';
|
|
32
32
|
import { Guid } from 'guid-typescript';
|
|
33
33
|
|
|
34
|
+
// All classes MUST be explicit strings - NO template literals
|
|
35
|
+
// This ensures Tailwind JIT content scanning detects them
|
|
36
|
+
const COMPONENT_COLORS = {
|
|
37
|
+
slate: {
|
|
38
|
+
primary: [
|
|
39
|
+
'smart:bg-slate-600',
|
|
40
|
+
'smart:text-white',
|
|
41
|
+
'hover:smart:bg-slate-500',
|
|
42
|
+
'focus-visible:smart:outline-2',
|
|
43
|
+
'focus-visible:smart:outline-offset-2',
|
|
44
|
+
'focus-visible:smart:outline-slate-600',
|
|
45
|
+
'dark:smart:bg-slate-500',
|
|
46
|
+
'dark:smart:shadow-none',
|
|
47
|
+
'dark:hover:smart:bg-slate-400',
|
|
48
|
+
'dark:focus-visible:smart:outline-slate-500',
|
|
49
|
+
],
|
|
50
|
+
secondary: [
|
|
51
|
+
'smart:bg-white',
|
|
52
|
+
'smart:text-gray-900',
|
|
53
|
+
'smart:inset-ring',
|
|
54
|
+
'smart:inset-ring-gray-300',
|
|
55
|
+
'hover:smart:bg-gray-50',
|
|
56
|
+
'dark:smart:bg-white/10',
|
|
57
|
+
'dark:smart:text-white',
|
|
58
|
+
'dark:smart:shadow-none',
|
|
59
|
+
'dark:smart:inset-ring-white/5',
|
|
60
|
+
'dark:hover:smart:bg-white/20',
|
|
61
|
+
],
|
|
62
|
+
soft: [
|
|
63
|
+
'smart:bg-slate-50',
|
|
64
|
+
'smart:text-slate-600',
|
|
65
|
+
'hover:smart:bg-slate-100',
|
|
66
|
+
'dark:smart:bg-slate-500/20',
|
|
67
|
+
'dark:smart:text-slate-400',
|
|
68
|
+
'dark:smart:shadow-none',
|
|
69
|
+
'dark:hover:smart:bg-slate-500/30',
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
gray: {
|
|
73
|
+
primary: [
|
|
74
|
+
'smart:bg-gray-600',
|
|
75
|
+
'smart:text-white',
|
|
76
|
+
'hover:smart:bg-gray-500',
|
|
77
|
+
'focus-visible:smart:outline-2',
|
|
78
|
+
'focus-visible:smart:outline-offset-2',
|
|
79
|
+
'focus-visible:smart:outline-gray-600',
|
|
80
|
+
'dark:smart:bg-gray-500',
|
|
81
|
+
'dark:smart:shadow-none',
|
|
82
|
+
'dark:hover:smart:bg-gray-400',
|
|
83
|
+
'dark:focus-visible:smart:outline-gray-500',
|
|
84
|
+
],
|
|
85
|
+
secondary: [
|
|
86
|
+
'smart:bg-white',
|
|
87
|
+
'smart:text-gray-900',
|
|
88
|
+
'smart:inset-ring',
|
|
89
|
+
'smart:inset-ring-gray-300',
|
|
90
|
+
'hover:smart:bg-gray-50',
|
|
91
|
+
'dark:smart:bg-white/10',
|
|
92
|
+
'dark:smart:text-white',
|
|
93
|
+
'dark:smart:shadow-none',
|
|
94
|
+
'dark:smart:inset-ring-white/5',
|
|
95
|
+
'dark:hover:smart:bg-white/20',
|
|
96
|
+
],
|
|
97
|
+
soft: [
|
|
98
|
+
'smart:bg-gray-50',
|
|
99
|
+
'smart:text-gray-600',
|
|
100
|
+
'hover:smart:bg-gray-100',
|
|
101
|
+
'dark:smart:bg-gray-500/20',
|
|
102
|
+
'dark:smart:text-gray-400',
|
|
103
|
+
'dark:smart:shadow-none',
|
|
104
|
+
'dark:hover:smart:bg-gray-500/30',
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
zinc: {
|
|
108
|
+
primary: [
|
|
109
|
+
'smart:bg-zinc-600',
|
|
110
|
+
'smart:text-white',
|
|
111
|
+
'hover:smart:bg-zinc-500',
|
|
112
|
+
'focus-visible:smart:outline-2',
|
|
113
|
+
'focus-visible:smart:outline-offset-2',
|
|
114
|
+
'focus-visible:smart:outline-zinc-600',
|
|
115
|
+
'dark:smart:bg-zinc-500',
|
|
116
|
+
'dark:smart:shadow-none',
|
|
117
|
+
'dark:hover:smart:bg-zinc-400',
|
|
118
|
+
'dark:focus-visible:smart:outline-zinc-500',
|
|
119
|
+
],
|
|
120
|
+
secondary: [
|
|
121
|
+
'smart:bg-white',
|
|
122
|
+
'smart:text-gray-900',
|
|
123
|
+
'smart:inset-ring',
|
|
124
|
+
'smart:inset-ring-gray-300',
|
|
125
|
+
'hover:smart:bg-gray-50',
|
|
126
|
+
'dark:smart:bg-white/10',
|
|
127
|
+
'dark:smart:text-white',
|
|
128
|
+
'dark:smart:shadow-none',
|
|
129
|
+
'dark:smart:inset-ring-white/5',
|
|
130
|
+
'dark:hover:smart:bg-white/20',
|
|
131
|
+
],
|
|
132
|
+
soft: [
|
|
133
|
+
'smart:bg-zinc-50',
|
|
134
|
+
'smart:text-zinc-600',
|
|
135
|
+
'hover:smart:bg-zinc-100',
|
|
136
|
+
'dark:smart:bg-zinc-500/20',
|
|
137
|
+
'dark:smart:text-zinc-400',
|
|
138
|
+
'dark:smart:shadow-none',
|
|
139
|
+
'dark:hover:smart:bg-zinc-500/30',
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
neutral: {
|
|
143
|
+
primary: [
|
|
144
|
+
'smart:bg-neutral-600',
|
|
145
|
+
'smart:text-white',
|
|
146
|
+
'hover:smart:bg-neutral-500',
|
|
147
|
+
'focus-visible:smart:outline-2',
|
|
148
|
+
'focus-visible:smart:outline-offset-2',
|
|
149
|
+
'focus-visible:smart:outline-neutral-600',
|
|
150
|
+
'dark:smart:bg-neutral-500',
|
|
151
|
+
'dark:smart:shadow-none',
|
|
152
|
+
'dark:hover:smart:bg-neutral-400',
|
|
153
|
+
'dark:focus-visible:smart:outline-neutral-500',
|
|
154
|
+
],
|
|
155
|
+
secondary: [
|
|
156
|
+
'smart:bg-white',
|
|
157
|
+
'smart:text-gray-900',
|
|
158
|
+
'smart:inset-ring',
|
|
159
|
+
'smart:inset-ring-gray-300',
|
|
160
|
+
'hover:smart:bg-gray-50',
|
|
161
|
+
'dark:smart:bg-white/10',
|
|
162
|
+
'dark:smart:text-white',
|
|
163
|
+
'dark:smart:shadow-none',
|
|
164
|
+
'dark:smart:inset-ring-white/5',
|
|
165
|
+
'dark:hover:smart:bg-white/20',
|
|
166
|
+
],
|
|
167
|
+
soft: [
|
|
168
|
+
'smart:bg-neutral-50',
|
|
169
|
+
'smart:text-neutral-600',
|
|
170
|
+
'hover:smart:bg-neutral-100',
|
|
171
|
+
'dark:smart:bg-neutral-500/20',
|
|
172
|
+
'dark:smart:text-neutral-400',
|
|
173
|
+
'dark:smart:shadow-none',
|
|
174
|
+
'dark:hover:smart:bg-neutral-500/30',
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
stone: {
|
|
178
|
+
primary: [
|
|
179
|
+
'smart:bg-stone-600',
|
|
180
|
+
'smart:text-white',
|
|
181
|
+
'hover:smart:bg-stone-500',
|
|
182
|
+
'focus-visible:smart:outline-2',
|
|
183
|
+
'focus-visible:smart:outline-offset-2',
|
|
184
|
+
'focus-visible:smart:outline-stone-600',
|
|
185
|
+
'dark:smart:bg-stone-500',
|
|
186
|
+
'dark:smart:shadow-none',
|
|
187
|
+
'dark:hover:smart:bg-stone-400',
|
|
188
|
+
'dark:focus-visible:smart:outline-stone-500',
|
|
189
|
+
],
|
|
190
|
+
secondary: [
|
|
191
|
+
'smart:bg-white',
|
|
192
|
+
'smart:text-gray-900',
|
|
193
|
+
'smart:inset-ring',
|
|
194
|
+
'smart:inset-ring-gray-300',
|
|
195
|
+
'hover:smart:bg-gray-50',
|
|
196
|
+
'dark:smart:bg-white/10',
|
|
197
|
+
'dark:smart:text-white',
|
|
198
|
+
'dark:smart:shadow-none',
|
|
199
|
+
'dark:smart:inset-ring-white/5',
|
|
200
|
+
'dark:hover:smart:bg-white/20',
|
|
201
|
+
],
|
|
202
|
+
soft: [
|
|
203
|
+
'smart:bg-stone-50',
|
|
204
|
+
'smart:text-stone-600',
|
|
205
|
+
'hover:smart:bg-stone-100',
|
|
206
|
+
'dark:smart:bg-stone-500/20',
|
|
207
|
+
'dark:smart:text-stone-400',
|
|
208
|
+
'dark:smart:shadow-none',
|
|
209
|
+
'dark:hover:smart:bg-stone-500/30',
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
red: {
|
|
213
|
+
primary: [
|
|
214
|
+
'smart:bg-red-600',
|
|
215
|
+
'smart:text-white',
|
|
216
|
+
'hover:smart:bg-red-500',
|
|
217
|
+
'focus-visible:smart:outline-2',
|
|
218
|
+
'focus-visible:smart:outline-offset-2',
|
|
219
|
+
'focus-visible:smart:outline-red-600',
|
|
220
|
+
'dark:smart:bg-red-500',
|
|
221
|
+
'dark:smart:shadow-none',
|
|
222
|
+
'dark:hover:smart:bg-red-400',
|
|
223
|
+
'dark:focus-visible:smart:outline-red-500',
|
|
224
|
+
],
|
|
225
|
+
secondary: [
|
|
226
|
+
'smart:bg-white',
|
|
227
|
+
'smart:text-gray-900',
|
|
228
|
+
'smart:inset-ring',
|
|
229
|
+
'smart:inset-ring-gray-300',
|
|
230
|
+
'hover:smart:bg-gray-50',
|
|
231
|
+
'dark:smart:bg-white/10',
|
|
232
|
+
'dark:smart:text-white',
|
|
233
|
+
'dark:smart:shadow-none',
|
|
234
|
+
'dark:smart:inset-ring-white/5',
|
|
235
|
+
'dark:hover:smart:bg-white/20',
|
|
236
|
+
],
|
|
237
|
+
soft: [
|
|
238
|
+
'smart:bg-red-50',
|
|
239
|
+
'smart:text-red-600',
|
|
240
|
+
'hover:smart:bg-red-100',
|
|
241
|
+
'dark:smart:bg-red-500/20',
|
|
242
|
+
'dark:smart:text-red-400',
|
|
243
|
+
'dark:smart:shadow-none',
|
|
244
|
+
'dark:hover:smart:bg-red-500/30',
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
orange: {
|
|
248
|
+
primary: [
|
|
249
|
+
'smart:bg-orange-600',
|
|
250
|
+
'smart:text-white',
|
|
251
|
+
'hover:smart:bg-orange-500',
|
|
252
|
+
'focus-visible:smart:outline-2',
|
|
253
|
+
'focus-visible:smart:outline-offset-2',
|
|
254
|
+
'focus-visible:smart:outline-orange-600',
|
|
255
|
+
'dark:smart:bg-orange-500',
|
|
256
|
+
'dark:smart:shadow-none',
|
|
257
|
+
'dark:hover:smart:bg-orange-400',
|
|
258
|
+
'dark:focus-visible:smart:outline-orange-500',
|
|
259
|
+
],
|
|
260
|
+
secondary: [
|
|
261
|
+
'smart:bg-white',
|
|
262
|
+
'smart:text-gray-900',
|
|
263
|
+
'smart:inset-ring',
|
|
264
|
+
'smart:inset-ring-gray-300',
|
|
265
|
+
'hover:smart:bg-gray-50',
|
|
266
|
+
'dark:smart:bg-white/10',
|
|
267
|
+
'dark:smart:text-white',
|
|
268
|
+
'dark:smart:shadow-none',
|
|
269
|
+
'dark:smart:inset-ring-white/5',
|
|
270
|
+
'dark:hover:smart:bg-white/20',
|
|
271
|
+
],
|
|
272
|
+
soft: [
|
|
273
|
+
'smart:bg-orange-50',
|
|
274
|
+
'smart:text-orange-600',
|
|
275
|
+
'hover:smart:bg-orange-100',
|
|
276
|
+
'dark:smart:bg-orange-500/20',
|
|
277
|
+
'dark:smart:text-orange-400',
|
|
278
|
+
'dark:smart:shadow-none',
|
|
279
|
+
'dark:hover:smart:bg-orange-500/30',
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
amber: {
|
|
283
|
+
primary: [
|
|
284
|
+
'smart:bg-amber-600',
|
|
285
|
+
'smart:text-white',
|
|
286
|
+
'hover:smart:bg-amber-500',
|
|
287
|
+
'focus-visible:smart:outline-2',
|
|
288
|
+
'focus-visible:smart:outline-offset-2',
|
|
289
|
+
'focus-visible:smart:outline-amber-600',
|
|
290
|
+
'dark:smart:bg-amber-500',
|
|
291
|
+
'dark:smart:shadow-none',
|
|
292
|
+
'dark:hover:smart:bg-amber-400',
|
|
293
|
+
'dark:focus-visible:smart:outline-amber-500',
|
|
294
|
+
],
|
|
295
|
+
secondary: [
|
|
296
|
+
'smart:bg-white',
|
|
297
|
+
'smart:text-gray-900',
|
|
298
|
+
'smart:inset-ring',
|
|
299
|
+
'smart:inset-ring-gray-300',
|
|
300
|
+
'hover:smart:bg-gray-50',
|
|
301
|
+
'dark:smart:bg-white/10',
|
|
302
|
+
'dark:smart:text-white',
|
|
303
|
+
'dark:smart:shadow-none',
|
|
304
|
+
'dark:smart:inset-ring-white/5',
|
|
305
|
+
'dark:hover:smart:bg-white/20',
|
|
306
|
+
],
|
|
307
|
+
soft: [
|
|
308
|
+
'smart:bg-amber-50',
|
|
309
|
+
'smart:text-amber-600',
|
|
310
|
+
'hover:smart:bg-amber-100',
|
|
311
|
+
'dark:smart:bg-amber-500/20',
|
|
312
|
+
'dark:smart:text-amber-400',
|
|
313
|
+
'dark:smart:shadow-none',
|
|
314
|
+
'dark:hover:smart:bg-amber-500/30',
|
|
315
|
+
],
|
|
316
|
+
},
|
|
317
|
+
yellow: {
|
|
318
|
+
primary: [
|
|
319
|
+
'smart:bg-yellow-600',
|
|
320
|
+
'smart:text-white',
|
|
321
|
+
'hover:smart:bg-yellow-500',
|
|
322
|
+
'focus-visible:smart:outline-2',
|
|
323
|
+
'focus-visible:smart:outline-offset-2',
|
|
324
|
+
'focus-visible:smart:outline-yellow-600',
|
|
325
|
+
'dark:smart:bg-yellow-500',
|
|
326
|
+
'dark:smart:shadow-none',
|
|
327
|
+
'dark:hover:smart:bg-yellow-400',
|
|
328
|
+
'dark:focus-visible:smart:outline-yellow-500',
|
|
329
|
+
],
|
|
330
|
+
secondary: [
|
|
331
|
+
'smart:bg-white',
|
|
332
|
+
'smart:text-gray-900',
|
|
333
|
+
'smart:inset-ring',
|
|
334
|
+
'smart:inset-ring-gray-300',
|
|
335
|
+
'hover:smart:bg-gray-50',
|
|
336
|
+
'dark:smart:bg-white/10',
|
|
337
|
+
'dark:smart:text-white',
|
|
338
|
+
'dark:smart:shadow-none',
|
|
339
|
+
'dark:smart:inset-ring-white/5',
|
|
340
|
+
'dark:hover:smart:bg-white/20',
|
|
341
|
+
],
|
|
342
|
+
soft: [
|
|
343
|
+
'smart:bg-yellow-50',
|
|
344
|
+
'smart:text-yellow-600',
|
|
345
|
+
'hover:smart:bg-yellow-100',
|
|
346
|
+
'dark:smart:bg-yellow-500/20',
|
|
347
|
+
'dark:smart:text-yellow-400',
|
|
348
|
+
'dark:smart:shadow-none',
|
|
349
|
+
'dark:hover:smart:bg-yellow-500/30',
|
|
350
|
+
],
|
|
351
|
+
},
|
|
352
|
+
lime: {
|
|
353
|
+
primary: [
|
|
354
|
+
'smart:bg-lime-600',
|
|
355
|
+
'smart:text-white',
|
|
356
|
+
'hover:smart:bg-lime-500',
|
|
357
|
+
'focus-visible:smart:outline-2',
|
|
358
|
+
'focus-visible:smart:outline-offset-2',
|
|
359
|
+
'focus-visible:smart:outline-lime-600',
|
|
360
|
+
'dark:smart:bg-lime-500',
|
|
361
|
+
'dark:smart:shadow-none',
|
|
362
|
+
'dark:hover:smart:bg-lime-400',
|
|
363
|
+
'dark:focus-visible:smart:outline-lime-500',
|
|
364
|
+
],
|
|
365
|
+
secondary: [
|
|
366
|
+
'smart:bg-white',
|
|
367
|
+
'smart:text-gray-900',
|
|
368
|
+
'smart:inset-ring',
|
|
369
|
+
'smart:inset-ring-gray-300',
|
|
370
|
+
'hover:smart:bg-gray-50',
|
|
371
|
+
'dark:smart:bg-white/10',
|
|
372
|
+
'dark:smart:text-white',
|
|
373
|
+
'dark:smart:shadow-none',
|
|
374
|
+
'dark:smart:inset-ring-white/5',
|
|
375
|
+
'dark:hover:smart:bg-white/20',
|
|
376
|
+
],
|
|
377
|
+
soft: [
|
|
378
|
+
'smart:bg-lime-50',
|
|
379
|
+
'smart:text-lime-600',
|
|
380
|
+
'hover:smart:bg-lime-100',
|
|
381
|
+
'dark:smart:bg-lime-500/20',
|
|
382
|
+
'dark:smart:text-lime-400',
|
|
383
|
+
'dark:smart:shadow-none',
|
|
384
|
+
'dark:hover:smart:bg-lime-500/30',
|
|
385
|
+
],
|
|
386
|
+
},
|
|
387
|
+
green: {
|
|
388
|
+
primary: [
|
|
389
|
+
'smart:bg-green-600',
|
|
390
|
+
'smart:text-white',
|
|
391
|
+
'hover:smart:bg-green-500',
|
|
392
|
+
'focus-visible:smart:outline-2',
|
|
393
|
+
'focus-visible:smart:outline-offset-2',
|
|
394
|
+
'focus-visible:smart:outline-green-600',
|
|
395
|
+
'dark:smart:bg-green-500',
|
|
396
|
+
'dark:smart:shadow-none',
|
|
397
|
+
'dark:hover:smart:bg-green-400',
|
|
398
|
+
'dark:focus-visible:smart:outline-green-500',
|
|
399
|
+
],
|
|
400
|
+
secondary: [
|
|
401
|
+
'smart:bg-white',
|
|
402
|
+
'smart:text-gray-900',
|
|
403
|
+
'smart:inset-ring',
|
|
404
|
+
'smart:inset-ring-gray-300',
|
|
405
|
+
'hover:smart:bg-gray-50',
|
|
406
|
+
'dark:smart:bg-white/10',
|
|
407
|
+
'dark:smart:text-white',
|
|
408
|
+
'dark:smart:shadow-none',
|
|
409
|
+
'dark:smart:inset-ring-white/5',
|
|
410
|
+
'dark:hover:smart:bg-white/20',
|
|
411
|
+
],
|
|
412
|
+
soft: [
|
|
413
|
+
'smart:bg-green-50',
|
|
414
|
+
'smart:text-green-600',
|
|
415
|
+
'hover:smart:bg-green-100',
|
|
416
|
+
'dark:smart:bg-green-500/20',
|
|
417
|
+
'dark:smart:text-green-400',
|
|
418
|
+
'dark:smart:shadow-none',
|
|
419
|
+
'dark:hover:smart:bg-green-500/30',
|
|
420
|
+
],
|
|
421
|
+
},
|
|
422
|
+
emerald: {
|
|
423
|
+
primary: [
|
|
424
|
+
'smart:bg-emerald-600',
|
|
425
|
+
'smart:text-white',
|
|
426
|
+
'hover:smart:bg-emerald-500',
|
|
427
|
+
'focus-visible:smart:outline-2',
|
|
428
|
+
'focus-visible:smart:outline-offset-2',
|
|
429
|
+
'focus-visible:smart:outline-emerald-600',
|
|
430
|
+
'dark:smart:bg-emerald-500',
|
|
431
|
+
'dark:smart:shadow-none',
|
|
432
|
+
'dark:hover:smart:bg-emerald-400',
|
|
433
|
+
'dark:focus-visible:smart:outline-emerald-500',
|
|
434
|
+
],
|
|
435
|
+
secondary: [
|
|
436
|
+
'smart:bg-white',
|
|
437
|
+
'smart:text-gray-900',
|
|
438
|
+
'smart:inset-ring',
|
|
439
|
+
'smart:inset-ring-gray-300',
|
|
440
|
+
'hover:smart:bg-gray-50',
|
|
441
|
+
'dark:smart:bg-white/10',
|
|
442
|
+
'dark:smart:text-white',
|
|
443
|
+
'dark:smart:shadow-none',
|
|
444
|
+
'dark:smart:inset-ring-white/5',
|
|
445
|
+
'dark:hover:smart:bg-white/20',
|
|
446
|
+
],
|
|
447
|
+
soft: [
|
|
448
|
+
'smart:bg-emerald-50',
|
|
449
|
+
'smart:text-emerald-600',
|
|
450
|
+
'hover:smart:bg-emerald-100',
|
|
451
|
+
'dark:smart:bg-emerald-500/20',
|
|
452
|
+
'dark:smart:text-emerald-400',
|
|
453
|
+
'dark:smart:shadow-none',
|
|
454
|
+
'dark:hover:smart:bg-emerald-500/30',
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
teal: {
|
|
458
|
+
primary: [
|
|
459
|
+
'smart:bg-teal-600',
|
|
460
|
+
'smart:text-white',
|
|
461
|
+
'hover:smart:bg-teal-500',
|
|
462
|
+
'focus-visible:smart:outline-2',
|
|
463
|
+
'focus-visible:smart:outline-offset-2',
|
|
464
|
+
'focus-visible:smart:outline-teal-600',
|
|
465
|
+
'dark:smart:bg-teal-500',
|
|
466
|
+
'dark:smart:shadow-none',
|
|
467
|
+
'dark:hover:smart:bg-teal-400',
|
|
468
|
+
'dark:focus-visible:smart:outline-teal-500',
|
|
469
|
+
],
|
|
470
|
+
secondary: [
|
|
471
|
+
'smart:bg-white',
|
|
472
|
+
'smart:text-gray-900',
|
|
473
|
+
'smart:inset-ring',
|
|
474
|
+
'smart:inset-ring-gray-300',
|
|
475
|
+
'hover:smart:bg-gray-50',
|
|
476
|
+
'dark:smart:bg-white/10',
|
|
477
|
+
'dark:smart:text-white',
|
|
478
|
+
'dark:smart:shadow-none',
|
|
479
|
+
'dark:smart:inset-ring-white/5',
|
|
480
|
+
'dark:hover:smart:bg-white/20',
|
|
481
|
+
],
|
|
482
|
+
soft: [
|
|
483
|
+
'smart:bg-teal-50',
|
|
484
|
+
'smart:text-teal-600',
|
|
485
|
+
'hover:smart:bg-teal-100',
|
|
486
|
+
'dark:smart:bg-teal-500/20',
|
|
487
|
+
'dark:smart:text-teal-400',
|
|
488
|
+
'dark:smart:shadow-none',
|
|
489
|
+
'dark:hover:smart:bg-teal-500/30',
|
|
490
|
+
],
|
|
491
|
+
},
|
|
492
|
+
cyan: {
|
|
493
|
+
primary: [
|
|
494
|
+
'smart:bg-cyan-600',
|
|
495
|
+
'smart:text-white',
|
|
496
|
+
'hover:smart:bg-cyan-500',
|
|
497
|
+
'focus-visible:smart:outline-2',
|
|
498
|
+
'focus-visible:smart:outline-offset-2',
|
|
499
|
+
'focus-visible:smart:outline-cyan-600',
|
|
500
|
+
'dark:smart:bg-cyan-500',
|
|
501
|
+
'dark:smart:shadow-none',
|
|
502
|
+
'dark:hover:smart:bg-cyan-400',
|
|
503
|
+
'dark:focus-visible:smart:outline-cyan-500',
|
|
504
|
+
],
|
|
505
|
+
secondary: [
|
|
506
|
+
'smart:bg-white',
|
|
507
|
+
'smart:text-gray-900',
|
|
508
|
+
'smart:inset-ring',
|
|
509
|
+
'smart:inset-ring-gray-300',
|
|
510
|
+
'hover:smart:bg-gray-50',
|
|
511
|
+
'dark:smart:bg-white/10',
|
|
512
|
+
'dark:smart:text-white',
|
|
513
|
+
'dark:smart:shadow-none',
|
|
514
|
+
'dark:smart:inset-ring-white/5',
|
|
515
|
+
'dark:hover:smart:bg-white/20',
|
|
516
|
+
],
|
|
517
|
+
soft: [
|
|
518
|
+
'smart:bg-cyan-50',
|
|
519
|
+
'smart:text-cyan-600',
|
|
520
|
+
'hover:smart:bg-cyan-100',
|
|
521
|
+
'dark:smart:bg-cyan-500/20',
|
|
522
|
+
'dark:smart:text-cyan-400',
|
|
523
|
+
'dark:smart:shadow-none',
|
|
524
|
+
'dark:hover:smart:bg-cyan-500/30',
|
|
525
|
+
],
|
|
526
|
+
},
|
|
527
|
+
sky: {
|
|
528
|
+
primary: [
|
|
529
|
+
'smart:bg-sky-600',
|
|
530
|
+
'smart:text-white',
|
|
531
|
+
'hover:smart:bg-sky-500',
|
|
532
|
+
'focus-visible:smart:outline-2',
|
|
533
|
+
'focus-visible:smart:outline-offset-2',
|
|
534
|
+
'focus-visible:smart:outline-sky-600',
|
|
535
|
+
'dark:smart:bg-sky-500',
|
|
536
|
+
'dark:smart:shadow-none',
|
|
537
|
+
'dark:hover:smart:bg-sky-400',
|
|
538
|
+
'dark:focus-visible:smart:outline-sky-500',
|
|
539
|
+
],
|
|
540
|
+
secondary: [
|
|
541
|
+
'smart:bg-white',
|
|
542
|
+
'smart:text-gray-900',
|
|
543
|
+
'smart:inset-ring',
|
|
544
|
+
'smart:inset-ring-gray-300',
|
|
545
|
+
'hover:smart:bg-gray-50',
|
|
546
|
+
'dark:smart:bg-white/10',
|
|
547
|
+
'dark:smart:text-white',
|
|
548
|
+
'dark:smart:shadow-none',
|
|
549
|
+
'dark:smart:inset-ring-white/5',
|
|
550
|
+
'dark:hover:smart:bg-white/20',
|
|
551
|
+
],
|
|
552
|
+
soft: [
|
|
553
|
+
'smart:bg-sky-50',
|
|
554
|
+
'smart:text-sky-600',
|
|
555
|
+
'hover:smart:bg-sky-100',
|
|
556
|
+
'dark:smart:bg-sky-500/20',
|
|
557
|
+
'dark:smart:text-sky-400',
|
|
558
|
+
'dark:smart:shadow-none',
|
|
559
|
+
'dark:hover:smart:bg-sky-500/30',
|
|
560
|
+
],
|
|
561
|
+
},
|
|
562
|
+
blue: {
|
|
563
|
+
primary: [
|
|
564
|
+
'smart:bg-blue-600',
|
|
565
|
+
'smart:text-white',
|
|
566
|
+
'hover:smart:bg-blue-500',
|
|
567
|
+
'focus-visible:smart:outline-2',
|
|
568
|
+
'focus-visible:smart:outline-offset-2',
|
|
569
|
+
'focus-visible:smart:outline-blue-600',
|
|
570
|
+
'dark:smart:bg-blue-500',
|
|
571
|
+
'dark:smart:shadow-none',
|
|
572
|
+
'dark:hover:smart:bg-blue-400',
|
|
573
|
+
'dark:focus-visible:smart:outline-blue-500',
|
|
574
|
+
],
|
|
575
|
+
secondary: [
|
|
576
|
+
'smart:bg-white',
|
|
577
|
+
'smart:text-gray-900',
|
|
578
|
+
'smart:inset-ring',
|
|
579
|
+
'smart:inset-ring-gray-300',
|
|
580
|
+
'hover:smart:bg-gray-50',
|
|
581
|
+
'dark:smart:bg-white/10',
|
|
582
|
+
'dark:smart:text-white',
|
|
583
|
+
'dark:smart:shadow-none',
|
|
584
|
+
'dark:smart:inset-ring-white/5',
|
|
585
|
+
'dark:hover:smart:bg-white/20',
|
|
586
|
+
],
|
|
587
|
+
soft: [
|
|
588
|
+
'smart:bg-blue-50',
|
|
589
|
+
'smart:text-blue-600',
|
|
590
|
+
'hover:smart:bg-blue-100',
|
|
591
|
+
'dark:smart:bg-blue-500/20',
|
|
592
|
+
'dark:smart:text-blue-400',
|
|
593
|
+
'dark:smart:shadow-none',
|
|
594
|
+
'dark:hover:smart:bg-blue-500/30',
|
|
595
|
+
],
|
|
596
|
+
},
|
|
597
|
+
indigo: {
|
|
598
|
+
primary: [
|
|
599
|
+
'smart:bg-indigo-600',
|
|
600
|
+
'smart:text-white',
|
|
601
|
+
'hover:smart:bg-indigo-500',
|
|
602
|
+
'focus-visible:smart:outline-2',
|
|
603
|
+
'focus-visible:smart:outline-offset-2',
|
|
604
|
+
'focus-visible:smart:outline-indigo-600',
|
|
605
|
+
'dark:smart:bg-indigo-500',
|
|
606
|
+
'dark:smart:shadow-none',
|
|
607
|
+
'dark:hover:smart:bg-indigo-400',
|
|
608
|
+
'dark:focus-visible:smart:outline-indigo-500',
|
|
609
|
+
],
|
|
610
|
+
secondary: [
|
|
611
|
+
'smart:bg-white',
|
|
612
|
+
'smart:text-gray-900',
|
|
613
|
+
'smart:inset-ring',
|
|
614
|
+
'smart:inset-ring-gray-300',
|
|
615
|
+
'hover:smart:bg-gray-50',
|
|
616
|
+
'dark:smart:bg-white/10',
|
|
617
|
+
'dark:smart:text-white',
|
|
618
|
+
'dark:smart:shadow-none',
|
|
619
|
+
'dark:smart:inset-ring-white/5',
|
|
620
|
+
'dark:hover:smart:bg-white/20',
|
|
621
|
+
],
|
|
622
|
+
soft: [
|
|
623
|
+
'smart:bg-indigo-50',
|
|
624
|
+
'smart:text-indigo-600',
|
|
625
|
+
'hover:smart:bg-indigo-100',
|
|
626
|
+
'dark:smart:bg-indigo-500/20',
|
|
627
|
+
'dark:smart:text-indigo-400',
|
|
628
|
+
'dark:smart:shadow-none',
|
|
629
|
+
'dark:hover:smart:bg-indigo-500/30',
|
|
630
|
+
],
|
|
631
|
+
},
|
|
632
|
+
violet: {
|
|
633
|
+
primary: [
|
|
634
|
+
'smart:bg-violet-600',
|
|
635
|
+
'smart:text-white',
|
|
636
|
+
'hover:smart:bg-violet-500',
|
|
637
|
+
'focus-visible:smart:outline-2',
|
|
638
|
+
'focus-visible:smart:outline-offset-2',
|
|
639
|
+
'focus-visible:smart:outline-violet-600',
|
|
640
|
+
'dark:smart:bg-violet-500',
|
|
641
|
+
'dark:smart:shadow-none',
|
|
642
|
+
'dark:hover:smart:bg-violet-400',
|
|
643
|
+
'dark:focus-visible:smart:outline-violet-500',
|
|
644
|
+
],
|
|
645
|
+
secondary: [
|
|
646
|
+
'smart:bg-white',
|
|
647
|
+
'smart:text-gray-900',
|
|
648
|
+
'smart:inset-ring',
|
|
649
|
+
'smart:inset-ring-gray-300',
|
|
650
|
+
'hover:smart:bg-gray-50',
|
|
651
|
+
'dark:smart:bg-white/10',
|
|
652
|
+
'dark:smart:text-white',
|
|
653
|
+
'dark:smart:shadow-none',
|
|
654
|
+
'dark:smart:inset-ring-white/5',
|
|
655
|
+
'dark:hover:smart:bg-white/20',
|
|
656
|
+
],
|
|
657
|
+
soft: [
|
|
658
|
+
'smart:bg-violet-50',
|
|
659
|
+
'smart:text-violet-600',
|
|
660
|
+
'hover:smart:bg-violet-100',
|
|
661
|
+
'dark:smart:bg-violet-500/20',
|
|
662
|
+
'dark:smart:text-violet-400',
|
|
663
|
+
'dark:smart:shadow-none',
|
|
664
|
+
'dark:hover:smart:bg-violet-500/30',
|
|
665
|
+
],
|
|
666
|
+
},
|
|
667
|
+
purple: {
|
|
668
|
+
primary: [
|
|
669
|
+
'smart:bg-purple-600',
|
|
670
|
+
'smart:text-white',
|
|
671
|
+
'hover:smart:bg-purple-500',
|
|
672
|
+
'focus-visible:smart:outline-2',
|
|
673
|
+
'focus-visible:smart:outline-offset-2',
|
|
674
|
+
'focus-visible:smart:outline-purple-600',
|
|
675
|
+
'dark:smart:bg-purple-500',
|
|
676
|
+
'dark:smart:shadow-none',
|
|
677
|
+
'dark:hover:smart:bg-purple-400',
|
|
678
|
+
'dark:focus-visible:smart:outline-purple-500',
|
|
679
|
+
],
|
|
680
|
+
secondary: [
|
|
681
|
+
'smart:bg-white',
|
|
682
|
+
'smart:text-gray-900',
|
|
683
|
+
'smart:inset-ring',
|
|
684
|
+
'smart:inset-ring-gray-300',
|
|
685
|
+
'hover:smart:bg-gray-50',
|
|
686
|
+
'dark:smart:bg-white/10',
|
|
687
|
+
'dark:smart:text-white',
|
|
688
|
+
'dark:smart:shadow-none',
|
|
689
|
+
'dark:smart:inset-ring-white/5',
|
|
690
|
+
'dark:hover:smart:bg-white/20',
|
|
691
|
+
],
|
|
692
|
+
soft: [
|
|
693
|
+
'smart:bg-purple-50',
|
|
694
|
+
'smart:text-purple-600',
|
|
695
|
+
'hover:smart:bg-purple-100',
|
|
696
|
+
'dark:smart:bg-purple-500/20',
|
|
697
|
+
'dark:smart:text-purple-400',
|
|
698
|
+
'dark:smart:shadow-none',
|
|
699
|
+
'dark:hover:smart:bg-purple-500/30',
|
|
700
|
+
],
|
|
701
|
+
},
|
|
702
|
+
fuchsia: {
|
|
703
|
+
primary: [
|
|
704
|
+
'smart:bg-fuchsia-600',
|
|
705
|
+
'smart:text-white',
|
|
706
|
+
'hover:smart:bg-fuchsia-500',
|
|
707
|
+
'focus-visible:smart:outline-2',
|
|
708
|
+
'focus-visible:smart:outline-offset-2',
|
|
709
|
+
'focus-visible:smart:outline-fuchsia-600',
|
|
710
|
+
'dark:smart:bg-fuchsia-500',
|
|
711
|
+
'dark:smart:shadow-none',
|
|
712
|
+
'dark:hover:smart:bg-fuchsia-400',
|
|
713
|
+
'dark:focus-visible:smart:outline-fuchsia-500',
|
|
714
|
+
],
|
|
715
|
+
secondary: [
|
|
716
|
+
'smart:bg-white',
|
|
717
|
+
'smart:text-gray-900',
|
|
718
|
+
'smart:inset-ring',
|
|
719
|
+
'smart:inset-ring-gray-300',
|
|
720
|
+
'hover:smart:bg-gray-50',
|
|
721
|
+
'dark:smart:bg-white/10',
|
|
722
|
+
'dark:smart:text-white',
|
|
723
|
+
'dark:smart:shadow-none',
|
|
724
|
+
'dark:smart:inset-ring-white/5',
|
|
725
|
+
'dark:hover:smart:bg-white/20',
|
|
726
|
+
],
|
|
727
|
+
soft: [
|
|
728
|
+
'smart:bg-fuchsia-50',
|
|
729
|
+
'smart:text-fuchsia-600',
|
|
730
|
+
'hover:smart:bg-fuchsia-100',
|
|
731
|
+
'dark:smart:bg-fuchsia-500/20',
|
|
732
|
+
'dark:smart:text-fuchsia-400',
|
|
733
|
+
'dark:smart:shadow-none',
|
|
734
|
+
'dark:hover:smart:bg-fuchsia-500/30',
|
|
735
|
+
],
|
|
736
|
+
},
|
|
737
|
+
pink: {
|
|
738
|
+
primary: [
|
|
739
|
+
'smart:bg-pink-600',
|
|
740
|
+
'smart:text-white',
|
|
741
|
+
'hover:smart:bg-pink-500',
|
|
742
|
+
'focus-visible:smart:outline-2',
|
|
743
|
+
'focus-visible:smart:outline-offset-2',
|
|
744
|
+
'focus-visible:smart:outline-pink-600',
|
|
745
|
+
'dark:smart:bg-pink-500',
|
|
746
|
+
'dark:smart:shadow-none',
|
|
747
|
+
'dark:hover:smart:bg-pink-400',
|
|
748
|
+
'dark:focus-visible:smart:outline-pink-500',
|
|
749
|
+
],
|
|
750
|
+
secondary: [
|
|
751
|
+
'smart:bg-white',
|
|
752
|
+
'smart:text-gray-900',
|
|
753
|
+
'smart:inset-ring',
|
|
754
|
+
'smart:inset-ring-gray-300',
|
|
755
|
+
'hover:smart:bg-gray-50',
|
|
756
|
+
'dark:smart:bg-white/10',
|
|
757
|
+
'dark:smart:text-white',
|
|
758
|
+
'dark:smart:shadow-none',
|
|
759
|
+
'dark:smart:inset-ring-white/5',
|
|
760
|
+
'dark:hover:smart:bg-white/20',
|
|
761
|
+
],
|
|
762
|
+
soft: [
|
|
763
|
+
'smart:bg-pink-50',
|
|
764
|
+
'smart:text-pink-600',
|
|
765
|
+
'hover:smart:bg-pink-100',
|
|
766
|
+
'dark:smart:bg-pink-500/20',
|
|
767
|
+
'dark:smart:text-pink-400',
|
|
768
|
+
'dark:smart:shadow-none',
|
|
769
|
+
'dark:hover:smart:bg-pink-500/30',
|
|
770
|
+
],
|
|
771
|
+
},
|
|
772
|
+
rose: {
|
|
773
|
+
primary: [
|
|
774
|
+
'smart:bg-rose-600',
|
|
775
|
+
'smart:text-white',
|
|
776
|
+
'hover:smart:bg-rose-500',
|
|
777
|
+
'focus-visible:smart:outline-2',
|
|
778
|
+
'focus-visible:smart:outline-offset-2',
|
|
779
|
+
'focus-visible:smart:outline-rose-600',
|
|
780
|
+
'dark:smart:bg-rose-500',
|
|
781
|
+
'dark:smart:shadow-none',
|
|
782
|
+
'dark:hover:smart:bg-rose-400',
|
|
783
|
+
'dark:focus-visible:smart:outline-rose-500',
|
|
784
|
+
],
|
|
785
|
+
secondary: [
|
|
786
|
+
'smart:bg-white',
|
|
787
|
+
'smart:text-gray-900',
|
|
788
|
+
'smart:inset-ring',
|
|
789
|
+
'smart:inset-ring-gray-300',
|
|
790
|
+
'hover:smart:bg-gray-50',
|
|
791
|
+
'dark:smart:bg-white/10',
|
|
792
|
+
'dark:smart:text-white',
|
|
793
|
+
'dark:smart:shadow-none',
|
|
794
|
+
'dark:smart:inset-ring-white/5',
|
|
795
|
+
'dark:hover:smart:bg-white/20',
|
|
796
|
+
],
|
|
797
|
+
soft: [
|
|
798
|
+
'smart:bg-rose-50',
|
|
799
|
+
'smart:text-rose-600',
|
|
800
|
+
'hover:smart:bg-rose-100',
|
|
801
|
+
'dark:smart:bg-rose-500/20',
|
|
802
|
+
'dark:smart:text-rose-400',
|
|
803
|
+
'dark:smart:shadow-none',
|
|
804
|
+
'dark:hover:smart:bg-rose-500/30',
|
|
805
|
+
],
|
|
806
|
+
},
|
|
807
|
+
};
|
|
808
|
+
|
|
34
809
|
var PaginationMode;
|
|
35
810
|
(function (PaginationMode) {
|
|
36
811
|
PaginationMode["infiniteScroll"] = "infiniteScroll";
|
|
@@ -1618,12 +2393,36 @@ function CreateDynamicComponent(type) {
|
|
|
1618
2393
|
return Component;
|
|
1619
2394
|
}
|
|
1620
2395
|
|
|
2396
|
+
class IconComponent {
|
|
2397
|
+
name = input.required(...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
2398
|
+
cssClass = input('', ...(ngDevMode ? [{ debugName: "cssClass" }] : []));
|
|
2399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2400
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: IconComponent, isStandalone: true, selector: "smart-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@switch (name()) {\n @case ('spinner') {\n <svg\n [class]=\"'smart:animate-spin smart:size-5 ' + cssClass()\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n >\n <circle\n class=\"smart:opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n ></circle>\n <path\n class=\"smart:opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n }\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2401
|
+
}
|
|
2402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: IconComponent, decorators: [{
|
|
2403
|
+
type: Component,
|
|
2404
|
+
args: [{ selector: 'smart-icon', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@switch (name()) {\n @case ('spinner') {\n <svg\n [class]=\"'smart:animate-spin smart:size-5 ' + cssClass()\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n >\n <circle\n class=\"smart:opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n ></circle>\n <path\n class=\"smart:opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n }\n}\n" }]
|
|
2405
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cssClass", required: false }] }] } });
|
|
2406
|
+
|
|
1621
2407
|
class ButtonBaseComponent {
|
|
1622
2408
|
static smartType = 'button';
|
|
1623
2409
|
mode = signal('default', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
1624
2410
|
options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
1625
2411
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2412
|
+
cssClass = input('', ...(ngDevMode ? [{ debugName: "cssClass" }] : []));
|
|
1626
2413
|
contentTpl = viewChild('contentTpl', ...(ngDevMode ? [{ debugName: "contentTpl" }] : []));
|
|
2414
|
+
variantClasses = computed(() => {
|
|
2415
|
+
const opts = this.options();
|
|
2416
|
+
const variant = opts?.variant ?? 'primary';
|
|
2417
|
+
const color = opts?.color ?? 'indigo';
|
|
2418
|
+
const classes = ['smart:font-semibold', 'smart:shadow-xs'];
|
|
2419
|
+
const colorEntry = COMPONENT_COLORS[color] ?? COMPONENT_COLORS['indigo'];
|
|
2420
|
+
classes.push(...colorEntry[variant]);
|
|
2421
|
+
if (this.disabled()) {
|
|
2422
|
+
classes.push('smart:opacity-50', 'smart:cursor-not-allowed');
|
|
2423
|
+
}
|
|
2424
|
+
return classes;
|
|
2425
|
+
}, ...(ngDevMode ? [{ debugName: "variantClasses" }] : []));
|
|
1627
2426
|
invoke() {
|
|
1628
2427
|
if (!this.options())
|
|
1629
2428
|
return;
|
|
@@ -1646,24 +2445,110 @@ class ButtonBaseComponent {
|
|
|
1646
2445
|
this.mode.set('default');
|
|
1647
2446
|
}
|
|
1648
2447
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1649
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.1", type: ButtonBaseComponent, isStandalone: true, inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }], ngImport: i0 });
|
|
2448
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.1", type: ButtonBaseComponent, isStandalone: true, inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }], ngImport: i0 });
|
|
1650
2449
|
}
|
|
1651
2450
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonBaseComponent, decorators: [{
|
|
1652
2451
|
type: Directive
|
|
1653
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }] } });
|
|
2452
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "cssClass", required: false }] }], contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }] } });
|
|
2453
|
+
|
|
2454
|
+
class ButtonCircularComponent extends ButtonBaseComponent {
|
|
2455
|
+
buttonClasses = computed(() => {
|
|
2456
|
+
const size = this.options()?.size ?? 'md';
|
|
2457
|
+
const classes = [...this.variantClasses(), 'smart:rounded-full'];
|
|
2458
|
+
if (size === 'xs' || size === 'sm')
|
|
2459
|
+
classes.push('smart:p-1');
|
|
2460
|
+
else if (size === 'md')
|
|
2461
|
+
classes.push('smart:p-1.5');
|
|
2462
|
+
else
|
|
2463
|
+
classes.push('smart:p-2');
|
|
2464
|
+
const extra = this.cssClass();
|
|
2465
|
+
if (extra)
|
|
2466
|
+
classes.push(extra);
|
|
2467
|
+
return classes.join(' ');
|
|
2468
|
+
}, ...(ngDevMode ? [{ debugName: "buttonClasses" }] : []));
|
|
2469
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonCircularComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2470
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonCircularComponent, isStandalone: true, selector: "smart-button-circular", usesInheritance: true, ngImport: i0, template: "@let loading = options()?.loading?.();\n<button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n>\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n</button>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "smart-icon", inputs: ["name", "cssClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2471
|
+
}
|
|
2472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonCircularComponent, decorators: [{
|
|
2473
|
+
type: Component,
|
|
2474
|
+
args: [{ selector: 'smart-button-circular', encapsulation: ViewEncapsulation.None, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let loading = options()?.loading?.();\n<button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n>\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n</button>\n" }]
|
|
2475
|
+
}] });
|
|
2476
|
+
|
|
2477
|
+
class ButtonRoundedComponent extends ButtonBaseComponent {
|
|
2478
|
+
buttonClasses = computed(() => {
|
|
2479
|
+
const size = this.options()?.size ?? 'md';
|
|
2480
|
+
const classes = [
|
|
2481
|
+
...this.variantClasses(),
|
|
2482
|
+
'smart:rounded-full',
|
|
2483
|
+
'smart:inline-flex',
|
|
2484
|
+
'smart:items-center',
|
|
2485
|
+
'smart:justify-center',
|
|
2486
|
+
];
|
|
2487
|
+
if (size === 'xs')
|
|
2488
|
+
classes.push('smart:px-2.5', 'smart:py-1', 'smart:text-xs');
|
|
2489
|
+
else if (size === 'sm')
|
|
2490
|
+
classes.push('smart:px-2.5', 'smart:py-1', 'smart:text-sm');
|
|
2491
|
+
else if (size === 'md')
|
|
2492
|
+
classes.push('smart:px-3', 'smart:py-1.5', 'smart:text-sm');
|
|
2493
|
+
else if (size === 'lg')
|
|
2494
|
+
classes.push('smart:px-3.5', 'smart:py-2', 'smart:text-sm');
|
|
2495
|
+
else
|
|
2496
|
+
classes.push('smart:px-4', 'smart:py-2.5', 'smart:text-sm');
|
|
2497
|
+
const extra = this.cssClass();
|
|
2498
|
+
if (extra)
|
|
2499
|
+
classes.push(extra);
|
|
2500
|
+
return classes.join(' ');
|
|
2501
|
+
}, ...(ngDevMode ? [{ debugName: "buttonClasses" }] : []));
|
|
2502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonRoundedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2503
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonRoundedComponent, isStandalone: true, selector: "smart-button-rounded", usesInheritance: true, ngImport: i0, template: "@if (mode() !== 'confirm') {\n @let loading = options()?.loading?.();\n <button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n >\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n </button>\n} @else {\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-white smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-gray-900 smart:shadow-xs smart:inset-ring smart:inset-ring-gray-300 hover:smart:bg-gray-50 dark:smart:bg-white/10 dark:smart:text-white dark:smart:shadow-none dark:smart:inset-ring-white/5 dark:hover:smart:bg-white/20\"\n (click)=\"confirmCancel()\"\n >\n {{ 'cancel' | translate }}\n </button>\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-indigo-600 smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-white smart:shadow-xs hover:smart:bg-indigo-500 focus-visible:smart:outline-2 focus-visible:smart:outline-offset-2 focus-visible:smart:outline-indigo-600 dark:smart:bg-indigo-500 dark:smart:shadow-none dark:hover:smart:bg-indigo-400 dark:focus-visible:smart:outline-indigo-500\"\n (click)=\"confirmInvoke()\"\n >\n {{ 'confirm' | translate }}\n </button>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "smart-icon", inputs: ["name", "cssClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2504
|
+
}
|
|
2505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonRoundedComponent, decorators: [{
|
|
2506
|
+
type: Component,
|
|
2507
|
+
args: [{ selector: 'smart-button-rounded', encapsulation: ViewEncapsulation.None, imports: [TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (mode() !== 'confirm') {\n @let loading = options()?.loading?.();\n <button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n >\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n </button>\n} @else {\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-white smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-gray-900 smart:shadow-xs smart:inset-ring smart:inset-ring-gray-300 hover:smart:bg-gray-50 dark:smart:bg-white/10 dark:smart:text-white dark:smart:shadow-none dark:smart:inset-ring-white/5 dark:hover:smart:bg-white/20\"\n (click)=\"confirmCancel()\"\n >\n {{ 'cancel' | translate }}\n </button>\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-indigo-600 smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-white smart:shadow-xs hover:smart:bg-indigo-500 focus-visible:smart:outline-2 focus-visible:smart:outline-offset-2 focus-visible:smart:outline-indigo-600 dark:smart:bg-indigo-500 dark:smart:shadow-none dark:hover:smart:bg-indigo-400 dark:focus-visible:smart:outline-indigo-500\"\n (click)=\"confirmInvoke()\"\n >\n {{ 'confirm' | translate }}\n </button>\n}\n" }]
|
|
2508
|
+
}] });
|
|
1654
2509
|
|
|
1655
2510
|
class ButtonStandardComponent extends ButtonBaseComponent {
|
|
2511
|
+
buttonClasses = computed(() => {
|
|
2512
|
+
const size = this.options()?.size ?? 'md';
|
|
2513
|
+
const classes = [
|
|
2514
|
+
...this.variantClasses(),
|
|
2515
|
+
'smart:inline-flex',
|
|
2516
|
+
'smart:items-center',
|
|
2517
|
+
'smart:justify-center',
|
|
2518
|
+
];
|
|
2519
|
+
if (size === 'xs' || size === 'sm') {
|
|
2520
|
+
classes.push('smart:rounded-sm');
|
|
2521
|
+
}
|
|
2522
|
+
else {
|
|
2523
|
+
classes.push('smart:rounded-md');
|
|
2524
|
+
}
|
|
2525
|
+
if (size === 'xs')
|
|
2526
|
+
classes.push('smart:px-2', 'smart:py-1', 'smart:text-xs');
|
|
2527
|
+
else if (size === 'sm')
|
|
2528
|
+
classes.push('smart:px-2', 'smart:py-1', 'smart:text-sm');
|
|
2529
|
+
else if (size === 'md')
|
|
2530
|
+
classes.push('smart:px-2.5', 'smart:py-1.5', 'smart:text-sm');
|
|
2531
|
+
else if (size === 'lg')
|
|
2532
|
+
classes.push('smart:px-3', 'smart:py-2', 'smart:text-sm');
|
|
2533
|
+
else
|
|
2534
|
+
classes.push('smart:px-3.5', 'smart:py-2.5', 'smart:text-sm');
|
|
2535
|
+
const extra = this.cssClass();
|
|
2536
|
+
if (extra)
|
|
2537
|
+
classes.push(extra);
|
|
2538
|
+
return classes.join(' ');
|
|
2539
|
+
}, ...(ngDevMode ? [{ debugName: "buttonClasses" }] : []));
|
|
1656
2540
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1657
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonStandardComponent, isStandalone: true, selector: "smart-button-standard", usesInheritance: true, ngImport: i0, template: "@if (mode()
|
|
2541
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonStandardComponent, isStandalone: true, selector: "smart-button-standard", usesInheritance: true, ngImport: i0, template: "@if (mode() !== 'confirm') {\n @let loading = options()?.loading?.();\n <button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n >\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n </button>\n} @else {\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-white smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-gray-900 smart:shadow-xs smart:inset-ring smart:inset-ring-gray-300 hover:smart:bg-gray-50 dark:smart:bg-white/10 dark:smart:text-white dark:smart:shadow-none dark:smart:inset-ring-white/5 dark:hover:smart:bg-white/20\"\n (click)=\"confirmCancel()\"\n >\n {{ 'cancel' | translate }}\n </button>\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-indigo-600 smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-white smart:shadow-xs hover:smart:bg-indigo-500 focus-visible:smart:outline-2 focus-visible:smart:outline-offset-2 focus-visible:smart:outline-indigo-600 dark:smart:bg-indigo-500 dark:smart:shadow-none dark:hover:smart:bg-indigo-400 dark:focus-visible:smart:outline-indigo-500\"\n (click)=\"confirmInvoke()\"\n >\n {{ 'confirm' | translate }}\n </button>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "smart-icon", inputs: ["name", "cssClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1658
2542
|
}
|
|
1659
2543
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonStandardComponent, decorators: [{
|
|
1660
2544
|
type: Component,
|
|
1661
|
-
args: [{ selector: 'smart-button-standard', encapsulation: ViewEncapsulation.None, imports: [TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (mode()
|
|
2545
|
+
args: [{ selector: 'smart-button-standard', encapsulation: ViewEncapsulation.None, imports: [TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (mode() !== 'confirm') {\n @let loading = options()?.loading?.();\n <button\n [type]=\"options()?.type ?? 'button'\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled() || loading\"\n (click)=\"invoke()\"\n >\n @if (loading) {\n <smart-icon name=\"spinner\" />\n } @else {\n <ng-content></ng-content>\n }\n </button>\n} @else {\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-white smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-gray-900 smart:shadow-xs smart:inset-ring smart:inset-ring-gray-300 hover:smart:bg-gray-50 dark:smart:bg-white/10 dark:smart:text-white dark:smart:shadow-none dark:smart:inset-ring-white/5 dark:hover:smart:bg-white/20\"\n (click)=\"confirmCancel()\"\n >\n {{ 'cancel' | translate }}\n </button>\n <button\n type=\"button\"\n class=\"smart:rounded-md smart:bg-indigo-600 smart:px-3 smart:py-2 smart:text-sm smart:font-semibold smart:text-white smart:shadow-xs hover:smart:bg-indigo-500 focus-visible:smart:outline-2 focus-visible:smart:outline-offset-2 focus-visible:smart:outline-indigo-600 dark:smart:bg-indigo-500 dark:smart:shadow-none dark:hover:smart:bg-indigo-400 dark:focus-visible:smart:outline-indigo-500\"\n (click)=\"confirmInvoke()\"\n >\n {{ 'confirm' | translate }}\n </button>\n}\n" }]
|
|
1662
2546
|
}] });
|
|
1663
2547
|
|
|
1664
2548
|
class ButtonComponent extends CreateDynamicComponent('button') {
|
|
1665
2549
|
options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
1666
2550
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2551
|
+
cssClass = input('', { ...(ngDevMode ? { debugName: "cssClass" } : {}), alias: 'class' });
|
|
1667
2552
|
contentTpl = viewChild('contentTpl', ...(ngDevMode ? [{ debugName: "contentTpl" }] : []));
|
|
1668
2553
|
dynamicContents = viewChildren(DynamicContentDirective, ...(ngDevMode ? [{ debugName: "dynamicContents" }] : []));
|
|
1669
2554
|
constructor() {
|
|
@@ -1677,19 +2562,42 @@ class ButtonComponent extends CreateDynamicComponent('button') {
|
|
|
1677
2562
|
refreshProperties() {
|
|
1678
2563
|
this.baseInstance.options = this.options;
|
|
1679
2564
|
this.baseInstance.disabled = this.disabled;
|
|
2565
|
+
this.baseInstance.cssClass = this.cssClass;
|
|
1680
2566
|
}
|
|
1681
2567
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1682
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2568
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ButtonComponent, isStandalone: true, selector: "smart-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1683
2569
|
@if (template() === 'default') {
|
|
1684
|
-
|
|
1685
|
-
<
|
|
1686
|
-
|
|
2570
|
+
@if (options().circular) {
|
|
2571
|
+
<smart-button-circular
|
|
2572
|
+
[options]="options()"
|
|
2573
|
+
[disabled]="disabled()"
|
|
2574
|
+
[cssClass]="cssClass()"
|
|
2575
|
+
>
|
|
2576
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2577
|
+
</smart-button-circular>
|
|
2578
|
+
} @else if (options().rounded) {
|
|
2579
|
+
<smart-button-rounded
|
|
2580
|
+
[options]="options()"
|
|
2581
|
+
[disabled]="disabled()"
|
|
2582
|
+
[cssClass]="cssClass()"
|
|
2583
|
+
>
|
|
2584
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2585
|
+
</smart-button-rounded>
|
|
2586
|
+
} @else {
|
|
2587
|
+
<smart-button-standard
|
|
2588
|
+
[options]="options()"
|
|
2589
|
+
[disabled]="disabled()"
|
|
2590
|
+
[cssClass]="cssClass()"
|
|
2591
|
+
>
|
|
2592
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2593
|
+
</smart-button-standard>
|
|
2594
|
+
}
|
|
1687
2595
|
}
|
|
1688
2596
|
<ng-template #contentTpl>
|
|
1689
2597
|
<ng-content></ng-content>
|
|
1690
2598
|
</ng-template>
|
|
1691
2599
|
<div class="dynamic-content"></div>
|
|
1692
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonStandardComponent, selector: "smart-button-standard" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2600
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonStandardComponent, selector: "smart-button-standard" }, { kind: "component", type: ButtonRoundedComponent, selector: "smart-button-rounded" }, { kind: "component", type: ButtonCircularComponent, selector: "smart-button-circular" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1693
2601
|
}
|
|
1694
2602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1695
2603
|
type: Component,
|
|
@@ -1697,9 +2605,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1697
2605
|
selector: 'smart-button',
|
|
1698
2606
|
template: `
|
|
1699
2607
|
@if (template() === 'default') {
|
|
1700
|
-
|
|
1701
|
-
<
|
|
1702
|
-
|
|
2608
|
+
@if (options().circular) {
|
|
2609
|
+
<smart-button-circular
|
|
2610
|
+
[options]="options()"
|
|
2611
|
+
[disabled]="disabled()"
|
|
2612
|
+
[cssClass]="cssClass()"
|
|
2613
|
+
>
|
|
2614
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2615
|
+
</smart-button-circular>
|
|
2616
|
+
} @else if (options().rounded) {
|
|
2617
|
+
<smart-button-rounded
|
|
2618
|
+
[options]="options()"
|
|
2619
|
+
[disabled]="disabled()"
|
|
2620
|
+
[cssClass]="cssClass()"
|
|
2621
|
+
>
|
|
2622
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2623
|
+
</smart-button-rounded>
|
|
2624
|
+
} @else {
|
|
2625
|
+
<smart-button-standard
|
|
2626
|
+
[options]="options()"
|
|
2627
|
+
[disabled]="disabled()"
|
|
2628
|
+
[cssClass]="cssClass()"
|
|
2629
|
+
>
|
|
2630
|
+
<ng-container [ngTemplateOutlet]="contentTpl"></ng-container>
|
|
2631
|
+
</smart-button-standard>
|
|
2632
|
+
}
|
|
1703
2633
|
}
|
|
1704
2634
|
<ng-template #contentTpl>
|
|
1705
2635
|
<ng-content></ng-content>
|
|
@@ -1707,10 +2637,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1707
2637
|
<div class="dynamic-content"></div>
|
|
1708
2638
|
`,
|
|
1709
2639
|
encapsulation: ViewEncapsulation.None,
|
|
1710
|
-
imports: [
|
|
2640
|
+
imports: [
|
|
2641
|
+
ButtonStandardComponent,
|
|
2642
|
+
ButtonRoundedComponent,
|
|
2643
|
+
ButtonCircularComponent,
|
|
2644
|
+
NgTemplateOutlet,
|
|
2645
|
+
],
|
|
1711
2646
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1712
2647
|
}]
|
|
1713
|
-
}], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }], dynamicContents: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => DynamicContentDirective), { isSignal: true }] }] } });
|
|
2648
|
+
}], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], cssClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], contentTpl: [{ type: i0.ViewChild, args: ['contentTpl', { isSignal: true }] }], dynamicContents: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => DynamicContentDirective), { isSignal: true }] }] } });
|
|
1714
2649
|
|
|
1715
2650
|
class FormFactory {
|
|
1716
2651
|
fb = inject(UntypedFormBuilder);
|
|
@@ -2658,7 +3593,7 @@ class InputFileComponent extends InputBaseComponent {
|
|
|
2658
3593
|
/>
|
|
2659
3594
|
{{ control.value?.name }}
|
|
2660
3595
|
}
|
|
2661
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
3596
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2662
3597
|
}
|
|
2663
3598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputFileComponent, decorators: [{
|
|
2664
3599
|
type: Component,
|
|
@@ -2930,7 +3865,7 @@ class InputArrayComponent extends InputBaseComponent {
|
|
|
2930
3865
|
: getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey);
|
|
2931
3866
|
}
|
|
2932
3867
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputArrayComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2933
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputArrayComponent, isStandalone: true, selector: "smart-input-array", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"static\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text>-->\n <!-- </ion-label>-->\n <!-- <ion-list-->\n <!-- class=\"max-w-full block overflow-hidden py-0 min-h-14 rounded\"-->\n <!-- cdkDropList-->\n <!-- [cdkDropListDisabled]=\"fieldOptions?.possibilities?.static\"-->\n <!-- (cdkDropListDropped)=\"drop($event)\"-->\n <!-- >-->\n @for (option of childOptions; track option) {\n @let index = $index;\n <!-- <ion-item class=\"array-box p-0 flex flex-row items-center justify-between box-border text-sm bg-transparent shadow-none\" lines=\"none\" cdkDrag>-->\n @if (!fieldOptions()?.possibilities?.static) {\n <!-- <ion-card class=\"w-full p-0 m-1\">-->\n <smart-accordion [(show)]=\"option.show\">\n <smart-accordion-header class=\"cursor-move\">\n <!-- <ion-card-header class=\"m-0 p-0\">-->\n <!-- <ion-item class=\"m-0\" lines=\"none\">-->\n @if (\n !option.show &&\n option?.modelOptions?.titleKey &&\n option.control?.value[option.modelOptions!.titleKey!]\n ) {\n <!-- <ion-label>-->\n {{\n option?.control?.value[option.modelOptions!.titleKey!] | translate\n }}\n <!-- </ion-label>-->\n }\n <!-- <ion-button-->\n <!-- (click)=\"onRemove(index)\"-->\n <!-- size=\"small\"-->\n <!-- fill=\"outline\"-->\n <!-- slot=\"end\"-->\n <!-- >-->\n <!-- <ion-icon name=\"close-outline\"></ion-icon>-->\n <!-- </ion-button>-->\n <!-- </ion-item>-->\n <!-- </ion-card-header>-->\n </smart-accordion-header>\n <smart-accordion-body>\n <!-- <ion-card-content class=\"p-0\">-->\n <!-- TODO: refactor usage of FormComponent and styles-->\n <ng-template\n [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: option }\"\n ></ng-template>\n <!-- </ion-card-content>-->\n </smart-accordion-body>\n </smart-accordion>\n <!-- </ion-card>-->\n } @else {\n <!-- <ion-card class=\"w-full p-0 m-1\">-->\n <!-- <ion-card-content class=\"p-0\">-->\n <ng-template\n [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: option }\"\n ></ng-template>\n <!-- </ion-card-content>-->\n <!-- </ion-card>-->\n }\n <!-- </ion-item>-->\n }\n <!-- </ion-list>-->\n @if (!fieldOptions()?.possibilities?.static) {\n <smart-button [options]=\"addButtonOptions\" class=\"float-right\">\n <span style=\"font-weight: 300\"\n >{{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n > </span\n ><b>{{ 'add' | translate }}</b>\n </smart-button>\n }\n}\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: DynamicIoDirective, selector: "[ndcDynamicInputs],[ndcDynamicOutputs]", inputs: ["ndcDynamicInputs", "ndcDynamicOutputs"], exportAs: ["ndcDynamicIo"] }, { kind: "component", type: AccordionComponent, selector: "smart-accordion", inputs: ["show"], outputs: ["showChange"] }, { kind: "component", type: AccordionHeaderComponent, selector: "smart-accordion-header" }, { kind: "component", type: AccordionBodyComponent, selector: "smart-accordion-body" }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
3868
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputArrayComponent, isStandalone: true, selector: "smart-input-array", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"static\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text>-->\n <!-- </ion-label>-->\n <!-- <ion-list-->\n <!-- class=\"max-w-full block overflow-hidden py-0 min-h-14 rounded\"-->\n <!-- cdkDropList-->\n <!-- [cdkDropListDisabled]=\"fieldOptions?.possibilities?.static\"-->\n <!-- (cdkDropListDropped)=\"drop($event)\"-->\n <!-- >-->\n @for (option of childOptions; track option) {\n @let index = $index;\n <!-- <ion-item class=\"array-box p-0 flex flex-row items-center justify-between box-border text-sm bg-transparent shadow-none\" lines=\"none\" cdkDrag>-->\n @if (!fieldOptions()?.possibilities?.static) {\n <!-- <ion-card class=\"w-full p-0 m-1\">-->\n <smart-accordion [(show)]=\"option.show\">\n <smart-accordion-header class=\"cursor-move\">\n <!-- <ion-card-header class=\"m-0 p-0\">-->\n <!-- <ion-item class=\"m-0\" lines=\"none\">-->\n @if (\n !option.show &&\n option?.modelOptions?.titleKey &&\n option.control?.value[option.modelOptions!.titleKey!]\n ) {\n <!-- <ion-label>-->\n {{\n option?.control?.value[option.modelOptions!.titleKey!] | translate\n }}\n <!-- </ion-label>-->\n }\n <!-- <ion-button-->\n <!-- (click)=\"onRemove(index)\"-->\n <!-- size=\"small\"-->\n <!-- fill=\"outline\"-->\n <!-- slot=\"end\"-->\n <!-- >-->\n <!-- <ion-icon name=\"close-outline\"></ion-icon>-->\n <!-- </ion-button>-->\n <!-- </ion-item>-->\n <!-- </ion-card-header>-->\n </smart-accordion-header>\n <smart-accordion-body>\n <!-- <ion-card-content class=\"p-0\">-->\n <!-- TODO: refactor usage of FormComponent and styles-->\n <ng-template\n [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: option }\"\n ></ng-template>\n <!-- </ion-card-content>-->\n </smart-accordion-body>\n </smart-accordion>\n <!-- </ion-card>-->\n } @else {\n <!-- <ion-card class=\"w-full p-0 m-1\">-->\n <!-- <ion-card-content class=\"p-0\">-->\n <ng-template\n [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: option }\"\n ></ng-template>\n <!-- </ion-card-content>-->\n <!-- </ion-card>-->\n }\n <!-- </ion-item>-->\n }\n <!-- </ion-list>-->\n @if (!fieldOptions()?.possibilities?.static) {\n <smart-button [options]=\"addButtonOptions\" class=\"float-right\">\n <span style=\"font-weight: 300\"\n >{{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n > </span\n ><b>{{ 'add' | translate }}</b>\n </smart-button>\n }\n}\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: DynamicIoDirective, selector: "[ndcDynamicInputs],[ndcDynamicOutputs]", inputs: ["ndcDynamicInputs", "ndcDynamicOutputs"], exportAs: ["ndcDynamicIo"] }, { kind: "component", type: AccordionComponent, selector: "smart-accordion", inputs: ["show"], outputs: ["showChange"] }, { kind: "component", type: AccordionHeaderComponent, selector: "smart-accordion-header" }, { kind: "component", type: AccordionBodyComponent, selector: "smart-accordion-body" }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2934
3869
|
}
|
|
2935
3870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputArrayComponent, decorators: [{
|
|
2936
3871
|
type: Component,
|
|
@@ -3029,7 +3964,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3029
3964
|
|
|
3030
3965
|
class InputAttachmentComponent extends InputFileBaseComponent {
|
|
3031
3966
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputAttachmentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3032
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputAttachmentComponent, isStandalone: true, selector: "smart-input-attachment", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"showButtonOptions\">{{\n 'download' | translate\n }}</smart-button>\n }\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n}\n<input\n type=\"file\"\n [attr.accept]=\"fieldOptions()?.possibilities\"\n [hidden]=\"true\"\n #inputObj\n/>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3967
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputAttachmentComponent, isStandalone: true, selector: "smart-input-attachment", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"showButtonOptions\">{{\n 'download' | translate\n }}</smart-button>\n }\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n}\n<input\n type=\"file\"\n [attr.accept]=\"fieldOptions()?.possibilities\"\n [hidden]=\"true\"\n #inputObj\n/>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3033
3968
|
}
|
|
3034
3969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputAttachmentComponent, decorators: [{
|
|
3035
3970
|
type: Component,
|
|
@@ -3592,7 +4527,7 @@ class InputImageComponent extends InputFileBaseComponent {
|
|
|
3592
4527
|
this.cd.detectChanges();
|
|
3593
4528
|
}
|
|
3594
4529
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputImageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3595
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputImageComponent, isStandalone: true, selector: "smart-input-image", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\"-->\n >\\\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n <!-- <ion-progress-bar [value]=\"(percent() ?? 0) / 100\"></ion-progress-bar>-->\n }\n\n @if (imageUrl) {\n <!-- <ion-img-->\n <!-- style=\"max-width: 400px; max-height: 400px\"-->\n <!-- [src]=\"imageUrl\"-->\n <!-- ></ion-img>-->\n <br />\n }\n}\n<input type=\"file\" accept=\".jpg,.png,.jpeg\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4530
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputImageComponent, isStandalone: true, selector: "smart-input-image", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\"-->\n >\\\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n <!-- <ion-progress-bar [value]=\"(percent() ?? 0) / 100\"></ion-progress-bar>-->\n }\n\n @if (imageUrl) {\n <!-- <ion-img-->\n <!-- style=\"max-width: 400px; max-height: 400px\"-->\n <!-- [src]=\"imageUrl\"-->\n <!-- ></ion-img>-->\n <br />\n }\n}\n<input type=\"file\" accept=\".jpg,.png,.jpeg\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3596
4531
|
}
|
|
3597
4532
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputImageComponent, decorators: [{
|
|
3598
4533
|
type: Component,
|
|
@@ -4149,7 +5084,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
4149
5084
|
|
|
4150
5085
|
class InputPdfComponent extends InputFileBaseComponent {
|
|
4151
5086
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputPdfComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4152
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputPdfComponent, isStandalone: true, selector: "smart-input-pdf", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"showButtonOptions\">{{\n 'show' | translate\n }}</smart-button>\n }\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n}\n<input type=\"file\" accept=\".pdf\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5087
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputPdfComponent, isStandalone: true, selector: "smart-input-pdf", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value) {\n <smart-button [options]=\"showButtonOptions\">{{\n 'show' | translate\n }}</smart-button>\n }\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n}\n<input type=\"file\" accept=\".pdf\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4153
5088
|
}
|
|
4154
5089
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputPdfComponent, decorators: [{
|
|
4155
5090
|
type: Component,
|
|
@@ -4493,7 +5428,7 @@ class InputVideoComponent extends InputFileBaseComponent {
|
|
|
4493
5428
|
});
|
|
4494
5429
|
}
|
|
4495
5430
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputVideoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4496
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputVideoComponent, isStandalone: true, selector: "smart-input-video", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value && !play) {\n <smart-button [options]=\"playButtonOptions\">{{\n 'play' | translate\n }}</smart-button>\n }\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n\n @if (url && play) {\n <video style=\"width: 100%\" controls controlsList=\"nodownload\">\n <source type=\"video/mp4\" [src]=\"url\" />\n Your browser does not support the video tag.\n </video>\n }\n}\n<input type=\"file\" accept=\".mp4\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5431
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: InputVideoComponent, isStandalone: true, selector: "smart-input-video", usesInheritance: true, ngImport: i0, template: "@if (control) {\n <!-- <ion-label position=\"floating\">-->\n {{\n control?.parent?.value\n | smartModelLabel\n : internalOptions.fieldKey\n : internalOptions?.model?.constructor\n | async\n }}\n @if (control.value) {\n {{ control.value.fileName }}\n }\n <!-- <ion-text color=\"danger\">-->\n @if (required) {\n <span>*</span>\n }\n <!-- </ion-text> -->\n <!-- </ion-label-->\n ><br />\n <smart-button [options]=\"addButtonOptions\">{{\n (control.value ? 'change' : 'add') | translate\n }}</smart-button>\n\n @if (control.value && !play) {\n <smart-button [options]=\"playButtonOptions\">{{\n 'play' | translate\n }}</smart-button>\n }\n\n @if (control.value) {\n <smart-button [options]=\"deleteButtonOptions\">{{\n 'delete' | translate\n }}</smart-button>\n }\n\n @if (loading()) {\n @let percentage = percent();\n <!-- <ion-progress-bar [value]=\"(percentage ?? 0) / 100\"></ion-progress-bar>-->\n }\n\n @if (url && play) {\n <video style=\"width: 100%\" controls controlsList=\"nodownload\">\n <source type=\"video/mp4\" [src]=\"url\" />\n Your browser does not support the video tag.\n </video>\n }\n}\n<input type=\"file\" accept=\".mp4\" [hidden]=\"true\" #inputObj />\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: ModelLabelPipe, name: "smartModelLabel" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4497
5432
|
}
|
|
4498
5433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: InputVideoComponent, decorators: [{
|
|
4499
5434
|
type: Component,
|
|
@@ -5365,7 +6300,7 @@ class DetailAttachmentComponent extends DetailBaseComponent {
|
|
|
5365
6300
|
{{ 'download' | translate }}
|
|
5366
6301
|
</smart-button>
|
|
5367
6302
|
}
|
|
5368
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
6303
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
5369
6304
|
}
|
|
5370
6305
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DetailAttachmentComponent, decorators: [{
|
|
5371
6306
|
type: Component,
|
|
@@ -5698,7 +6633,7 @@ class DetailPdfComponent extends DetailBaseComponent {
|
|
|
5698
6633
|
{{ 'show' | translate }}
|
|
5699
6634
|
</smart-button>
|
|
5700
6635
|
}
|
|
5701
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
6636
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "smart-button", inputs: ["options", "disabled", "class"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
5702
6637
|
}
|
|
5703
6638
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DetailPdfComponent, decorators: [{
|
|
5704
6639
|
type: Component,
|
|
@@ -7381,5 +8316,5 @@ function SmartNgModuleDecorator(options) {
|
|
|
7381
8316
|
* Generated bundle index. Do not edit.
|
|
7382
8317
|
*/
|
|
7383
8318
|
|
|
7384
|
-
export { AUTH_TOKEN, AccordionBodyComponent, AccordionComponent, AccordionHeaderComponent, AlertService, AppBaseComponent, AppService, AuthService, BaseComponent, ButtonBaseComponent, ButtonComponent, ButtonStandardComponent, CalendarService, CardComponent, CreateDynamicComponent, DYNAMIC_COMPONENTS_STORE, DateEditComponent, DateRangeComponent, DateRangeModalComponent, DetailAddressComponent, DetailArrayComponent, DetailAttachmentComponent, DetailBaseComponent, DetailColorComponent, DetailComponent, DetailDateRangeComponent, DetailEmailComponent, DetailEnumComponent, DetailFlagComponent, DetailImageComponent, DetailLogoComponent, DetailObjectComponent, DetailPdfComponent, DetailPhoneNumberPlComponent, DetailTextComponent, DetailVideoComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EnumToListPipe, ErrorService, ExportComponent, FILE_SERVICE_CONFIG, FileService, FileUrlPipe, FormBaseComponent, FormComponent, FormFactory, FormStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, ImportComponent, InfoComponent, InfoModalComponent, InputAddressComponent, InputArrayComponent, InputAttachmentComponent, InputBaseComponent, InputCheckComponent, InputColorComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputDateWithEditComponent, InputEmailComponent, InputEnumComponent, InputErrorComponent, InputFileComponent, InputFlagComponent, InputFloatComponent, InputImageComponent, InputIntComponent, InputIntsComponent, InputLogoComponent, InputLongTextComponent, InputNipComponent, InputObjectComponent, InputPasswordComponent, InputPdfComponent, InputPeselComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputRadioComponent, InputStringsComponent, InputTextComponent, InputVideoComponent, ListBaseComponent, ListCellPipe, ListComponent, ListDesktopComponent, ListHeaderPipe, ListMasonryGridComponent, ListMobileComponent, ListMode, LoaderComponent, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MenuService, ModalService, ModelLabelPipe, NgrxSharedModule, NgrxStoreService, PIPES, PageBaseComponent, PageComponent, PageStandardComponent, PaginationMode, PagingComponent, PasswordStrengthComponent, PopoverService, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SearchbarComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StorageService, StyleService, ToastService, TrustHtmlPipe, UIService, fastPropGetter };
|
|
8319
|
+
export { AUTH_TOKEN, AccordionBodyComponent, AccordionComponent, AccordionHeaderComponent, AlertService, AppBaseComponent, AppService, AuthService, BaseComponent, ButtonBaseComponent, ButtonCircularComponent, ButtonComponent, ButtonRoundedComponent, ButtonStandardComponent, COMPONENT_COLORS, CalendarService, CardComponent, CreateDynamicComponent, DYNAMIC_COMPONENTS_STORE, DateEditComponent, DateRangeComponent, DateRangeModalComponent, DetailAddressComponent, DetailArrayComponent, DetailAttachmentComponent, DetailBaseComponent, DetailColorComponent, DetailComponent, DetailDateRangeComponent, DetailEmailComponent, DetailEnumComponent, DetailFlagComponent, DetailImageComponent, DetailLogoComponent, DetailObjectComponent, DetailPdfComponent, DetailPhoneNumberPlComponent, DetailTextComponent, DetailVideoComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EnumToListPipe, ErrorService, ExportComponent, FILE_SERVICE_CONFIG, FileService, FileUrlPipe, FormBaseComponent, FormComponent, FormFactory, FormStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, IconComponent, ImportComponent, InfoComponent, InfoModalComponent, InputAddressComponent, InputArrayComponent, InputAttachmentComponent, InputBaseComponent, InputCheckComponent, InputColorComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputDateWithEditComponent, InputEmailComponent, InputEnumComponent, InputErrorComponent, InputFileComponent, InputFlagComponent, InputFloatComponent, InputImageComponent, InputIntComponent, InputIntsComponent, InputLogoComponent, InputLongTextComponent, InputNipComponent, InputObjectComponent, InputPasswordComponent, InputPdfComponent, InputPeselComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputRadioComponent, InputStringsComponent, InputTextComponent, InputVideoComponent, ListBaseComponent, ListCellPipe, ListComponent, ListDesktopComponent, ListHeaderPipe, ListMasonryGridComponent, ListMobileComponent, ListMode, LoaderComponent, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MenuService, ModalService, ModelLabelPipe, NgrxSharedModule, NgrxStoreService, PIPES, PageBaseComponent, PageComponent, PageStandardComponent, PaginationMode, PagingComponent, PasswordStrengthComponent, PopoverService, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SearchbarComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StorageService, StyleService, ToastService, TrustHtmlPipe, UIService, fastPropGetter };
|
|
7385
8320
|
//# sourceMappingURL=smartsoft001-angular.mjs.map
|