cic-kit 0.0.33 → 0.0.34

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/dist/index.mjs CHANGED
@@ -20521,7 +20521,8 @@ class Z9 extends T9 {
20521
20521
  }
20522
20522
  }
20523
20523
  hasPermission(e) {
20524
- return Array.isArray(this.permissions) && this.permissions.includes(e);
20524
+ const t = Array.isArray(e) ? e : [e];
20525
+ return t.length === 0 ? !0 : !Array.isArray(this.permissions) || this.permissions.length === 0 ? !1 : t.every((r) => this.permissions.includes(r));
20525
20526
  }
20526
20527
  hasAnyPermissions() {
20527
20528
  return Array.isArray(this.permissions) && this.permissions.length > 0;
@@ -26293,11 +26294,11 @@ function use(n) {
26293
26294
  return qr = t, zQ(t), t;
26294
26295
  }
26295
26296
  function yQ(n, e) {
26296
- const t = typeof n.meta.loginStatus == "boolean" ? n.meta.loginStatus : void 0;
26297
+ const t = typeof n.meta.loginStatus == "boolean" ? n.meta.loginStatus : void 0, r = n.meta.permission, s = typeof r == "string" || Array.isArray(r) && r.every((i) => typeof i == "string") ? r : void 0;
26297
26298
  if (e) {
26298
26299
  if (t === !1)
26299
26300
  return { name: "user" };
26300
- if (n.meta.permission && typeof n.meta.permission == "string" && !we.user?.hasPermission?.(n.meta.permission))
26301
+ if (s !== void 0 && !we.user?.hasPermission?.(s))
26301
26302
  return { name: "unauthorized", query: { from: n.fullPath } };
26302
26303
  } else if (t === !0)
26303
26304
  return { name: "login", query: { redirect: n.fullPath } };
@@ -0,0 +1,574 @@
1
+ @use './variables' as *;
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ ul,
10
+ ol,
11
+ menu {
12
+ list-style: none;
13
+ }
14
+
15
+ a {
16
+ color: currentColor;
17
+ text-decoration: none;
18
+ }
19
+
20
+ img {
21
+ max-width: 100%;
22
+ }
23
+
24
+ .d-contents {
25
+ display: contents;
26
+ }
27
+
28
+ .fs-7 {
29
+ font-size: 0.9rem;
30
+ }
31
+
32
+ .fs-8 {
33
+ font-size: 0.75rem;
34
+ }
35
+
36
+ .fs-9 {
37
+ font-size: 0.6rem;
38
+ }
39
+
40
+ .fs-10 {
41
+ font-size: 0.5rem;
42
+ }
43
+
44
+ .tooltip.bg-danger {
45
+ .tooltip-inner {
46
+ background-color: #dc3545;
47
+ color: white;
48
+ }
49
+
50
+ &.bs-tooltip-auto {
51
+ &[data-popper-placement^="top"] {
52
+ .tooltip-arrow::before {
53
+ border-top-color: #dc3545 !important;
54
+ }
55
+ }
56
+
57
+ &[data-popper-placement^="right"] {
58
+ .tooltip-arrow::before {
59
+ border-right-color: #dc3545 !important;
60
+ }
61
+ }
62
+
63
+ &[data-popper-placement^="bottom"] {
64
+ .tooltip-arrow::before {
65
+ border-bottom-color: #dc3545 !important;
66
+ }
67
+ }
68
+
69
+ &[data-popper-placement^="left"] {
70
+ .tooltip-arrow::before {
71
+ border-left-color: #dc3545 !important;
72
+ }
73
+ }
74
+ }
75
+ }
76
+
77
+ :root {
78
+ --header-h: 0; // viene settata in automatico da ResizeObserver in HeaderApp
79
+ }
80
+
81
+ body {
82
+ font-family: $font-stack;
83
+ }
84
+
85
+ @use './variables' as *;
86
+
87
+ body {
88
+ min-height: 100vh;
89
+ }
90
+
91
+ #app {
92
+ min-height: 100vh;
93
+ display: flex;
94
+ flex-direction: column;
95
+ }
96
+
97
+ header {
98
+ flex: 0 0 auto;
99
+ }
100
+
101
+ main {
102
+ display: flex;
103
+ min-height: 0;
104
+
105
+ height: calc(100dvh - var(--header-h, 3000px));
106
+ overflow: hidden;
107
+
108
+ // flex: 1 1 auto;
109
+ // overflow: auto;
110
+ // padding-bottom: 100px;
111
+ }
112
+
113
+
114
+ // google icon
115
+ /* fallback */
116
+ @font-face {
117
+ font-family: 'Material Symbols Outlined';
118
+ font-style: normal;
119
+ font-weight: 100 700;
120
+ src: url('../fonts/GoogleIcon/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2');
121
+ }
122
+
123
+ .material-symbols-outlined {
124
+ font-family: 'Material Symbols Outlined';
125
+ font-weight: normal;
126
+ font-style: normal;
127
+ font-size: 24px;
128
+ line-height: 1;
129
+ letter-spacing: normal;
130
+ text-transform: none;
131
+ display: inline-block;
132
+ white-space: nowrap;
133
+ word-wrap: normal;
134
+ direction: ltr;
135
+ -webkit-font-smoothing: antialiased;
136
+
137
+ vertical-align: sub;
138
+ padding: 0px;
139
+ font-variation-settings:
140
+ 'FILL' 0,
141
+ 'wght' 400,
142
+ 'GRAD' 0,
143
+ 'opsz' 24;
144
+ }
145
+
146
+
147
+ .material-symbols-outlined.fill {
148
+ font-variation-settings:
149
+ 'FILL' 1,
150
+ 'wght' 400,
151
+ 'GRAD' 0,
152
+ 'opsz' 24;
153
+ }
154
+
155
+ .p-input-icon {
156
+ padding-left: 1.8rem;
157
+ }
158
+
159
+ .p-input-group-icon {
160
+ padding-left: 1.8rem;
161
+ }
162
+
163
+ @font-face {
164
+ font-family: calSans;
165
+ src: url('../fonts/Cal_Sans/CalSans-Regular.ttf');
166
+ }
167
+
168
+ .f-calSans {
169
+ font-family: calSans, sans-serif;
170
+ font-weight: 400;
171
+ font-style: normal;
172
+ }
173
+
174
+ @font-face {
175
+ font-family: monoton;
176
+ src: url('../fonts/Monoton/Monoton-Regular.ttf');
177
+ }
178
+
179
+ .f-monoton {
180
+ font-family: monoton, sans-serif;
181
+ font-weight: 400;
182
+ font-style: normal;
183
+ }
184
+
185
+ .noselect {
186
+ -webkit-touch-callout: none;
187
+ /* iOS Safari */
188
+ -webkit-user-select: none;
189
+ /* Safari */
190
+ /* Konqueror HTML */
191
+ -moz-user-select: none;
192
+ /* Old versions of Firefox */
193
+ -ms-user-select: none;
194
+ /* Internet Explorer/Edge */
195
+ user-select: none;
196
+ /* Non-prefixed version, currently
197
+ supported by Chrome, Edge, Opera and Firefox */
198
+ }
199
+
200
+ .input-google-icon {
201
+ position: relative;
202
+
203
+ .icon {
204
+ position: absolute;
205
+ top: 50%;
206
+ left: 5px;
207
+ transform: translate(0, -50%);
208
+ cursor: default;
209
+ font-size: 1.25rem
210
+ }
211
+
212
+ input {
213
+ padding-left: 28px;
214
+ }
215
+ }
216
+
217
+ .logo-shadows {
218
+ will-change: filter;
219
+ transition: filter 300ms;
220
+ &:hover {
221
+ filter: drop-shadow(0 0 2em rgba(255, 255, 255, 0.3));
222
+ }
223
+ }
224
+
225
+
226
+ // ==================================================
227
+ // bg-glass ========================================
228
+ .bg-glass {
229
+ background: var(--colors-theme-bg-accent-hover-alpha, #00000006);
230
+ backdrop-filter: blur(40px);
231
+ &.shadow {
232
+ box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
233
+ }
234
+ }
235
+
236
+ // ==================================================
237
+ // text-loading ====================================
238
+ .text-loading {
239
+ position: absolute;
240
+ top: 50%;
241
+ left: 50%;
242
+ transform: translate(-50%, -50%);
243
+ padding: 12px 48px;
244
+ color: #fff;
245
+ background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
246
+ background-position: 0;
247
+ background-clip: text;
248
+ -webkit-background-clip: text;
249
+ -webkit-text-fill-color: transparent;
250
+ animation: shine 3s infinite linear;
251
+ animation-fill-mode: forwards;
252
+ -webkit-text-size-adjust: none;
253
+ font-weight: 600;
254
+ font-size: 16px;
255
+ text-decoration: none;
256
+ white-space: nowrap;
257
+ font-family: "Poppins", sans-serif;
258
+ }
259
+
260
+ @-moz-keyframes shine {
261
+ 0% {
262
+ background-position: 0;
263
+ }
264
+
265
+ 60% {
266
+ background-position: 180px;
267
+ }
268
+
269
+ 100% {
270
+ background-position: 180px;
271
+ }
272
+ }
273
+
274
+ @-webkit-keyframes shine {
275
+ 0% {
276
+ background-position: 0;
277
+ }
278
+
279
+ 60% {
280
+ background-position: 180px;
281
+ }
282
+
283
+ 100% {
284
+ background-position: 180px;
285
+ }
286
+ }
287
+
288
+ @-o-keyframes shine {
289
+ 0% {
290
+ background-position: 0;
291
+ }
292
+
293
+ 60% {
294
+ background-position: 180px;
295
+ }
296
+
297
+ 100% {
298
+ background-position: 180px;
299
+ }
300
+ }
301
+
302
+ @keyframes shine {
303
+ 0% {
304
+ background-position: 0;
305
+ }
306
+
307
+ 60% {
308
+ background-position: 180px;
309
+ }
310
+
311
+ 100% {
312
+ background-position: 180px;
313
+ }
314
+ }
315
+ // ----- CURSOR -----
316
+ .cursor-auto {
317
+ cursor: auto !important;
318
+ }
319
+
320
+ .cursor-default {
321
+ cursor: default !important;
322
+ }
323
+
324
+ .cursor-pointer {
325
+ cursor: pointer !important;
326
+ }
327
+
328
+ .cursor-wait {
329
+ cursor: wait !important;
330
+ }
331
+
332
+ .cursor-text {
333
+ cursor: text !important;
334
+ }
335
+
336
+ .cursor-move {
337
+ cursor: move !important;
338
+ }
339
+
340
+ .cursor-help {
341
+ cursor: help !important;
342
+ }
343
+
344
+ .cursor-not-allowed {
345
+ cursor: not-allowed !important;
346
+ }
347
+
348
+ .cursor-crosshair {
349
+ cursor: crosshair !important;
350
+ }
351
+
352
+ .cursor-progress {
353
+ cursor: progress !important;
354
+ }
355
+
356
+ .cursor-cell {
357
+ cursor: cell !important;
358
+ }
359
+
360
+ .cursor-alias {
361
+ cursor: alias !important;
362
+ }
363
+
364
+ .cursor-copy {
365
+ cursor: copy !important;
366
+ }
367
+
368
+ .cursor-no-drop {
369
+ cursor: no-drop !important;
370
+ }
371
+
372
+ .cursor-grab {
373
+ cursor: grab !important;
374
+ }
375
+
376
+ .cursor-grabbing {
377
+ cursor: grabbing !important;
378
+ }
379
+
380
+ .cursor-zoom-in {
381
+ cursor: zoom-in !important;
382
+ }
383
+
384
+ .cursor-zoom-out {
385
+ cursor: zoom-out !important;
386
+ }
387
+
388
+ .cursor-col-resize {
389
+ cursor: col-resize !important;
390
+ }
391
+
392
+ .cursor-row-resize {
393
+ cursor: row-resize !important;
394
+ }
395
+
396
+ .cursor-n-resize {
397
+ cursor: n-resize !important;
398
+ }
399
+
400
+ .cursor-s-resize {
401
+ cursor: s-resize !important;
402
+ }
403
+
404
+ .cursor-e-resize {
405
+ cursor: e-resize !important;
406
+ }
407
+
408
+ .cursor-w-resize {
409
+ cursor: w-resize !important;
410
+ }
411
+
412
+ .cursor-ne-resize {
413
+ cursor: ne-resize !important;
414
+ }
415
+
416
+ .cursor-nw-resize {
417
+ cursor: nw-resize !important;
418
+ }
419
+
420
+ .cursor-se-resize {
421
+ cursor: se-resize !important;
422
+ }
423
+
424
+ .cursor-sw-resize {
425
+ cursor: sw-resize !important;
426
+ }
427
+
428
+ .cursor-nesw-resize {
429
+ cursor: nesw-resize !important;
430
+ }
431
+
432
+ .cursor-nwse-resize {
433
+ cursor: nwse-resize !important;
434
+ }
435
+
436
+ // ###########################################################
437
+ // ###########################################################
438
+ // ###########################################################
439
+
440
+ // ----- FONT -----
441
+ .fs-7 {
442
+ font-size: 0.875rem !important;
443
+ /* ~14px */
444
+ }
445
+
446
+ .fs-8 {
447
+ font-size: 0.75rem !important;
448
+ /* ~12px */
449
+ }
450
+
451
+ .fs-9 {
452
+ font-size: 0.625rem !important;
453
+ /* ~10px */
454
+ }
455
+
456
+ .fs-10 {
457
+ font-size: 0.5rem !important;
458
+ /* ~8px */
459
+ }
460
+
461
+ // ###########################################################
462
+ // ###########################################################
463
+ // ###########################################################
464
+
465
+ // ----- padding -----
466
+ .pb-t {
467
+ padding-bottom: 120px !important;
468
+ }
469
+
470
+ // ----- MARGIN -----
471
+ /* Margini negativi personalizzati */
472
+ .mb--1 {
473
+ margin-bottom: -4px !important;
474
+ }
475
+
476
+ .mb--2 {
477
+ margin-bottom: -8px !important;
478
+ }
479
+
480
+ .mb--3 {
481
+ margin-bottom: -16px !important;
482
+ }
483
+
484
+ .mb--4 {
485
+ margin-bottom: -24px !important;
486
+ }
487
+
488
+ .mb--5 {
489
+ margin-bottom: -48px !important;
490
+ }
491
+
492
+ .mt--1 {
493
+ margin-top: -4px !important;
494
+ }
495
+
496
+ .mt--2 {
497
+ margin-top: -8px !important;
498
+ }
499
+
500
+ .mt--3 {
501
+ margin-top: -16px !important;
502
+ }
503
+
504
+ .mt--4 {
505
+ margin-top: -24px !important;
506
+ }
507
+
508
+ .mt--5 {
509
+ margin-top: -48px !important;
510
+ }
511
+
512
+ .ms--1 {
513
+ margin-left: -4px !important;
514
+ }
515
+
516
+ .ms--2 {
517
+ margin-left: -8px !important;
518
+ }
519
+
520
+ .ms--3 {
521
+ margin-left: -16px !important;
522
+ }
523
+
524
+ .ms--4 {
525
+ margin-left: -24px !important;
526
+ }
527
+
528
+ .ms--5 {
529
+ margin-left: -48px !important;
530
+ }
531
+
532
+ .me--1 {
533
+ margin-right: -4px !important;
534
+ }
535
+
536
+ .me--2 {
537
+ margin-right: -8px !important;
538
+ }
539
+
540
+ .me--3 {
541
+ margin-right: -16px !important;
542
+ }
543
+
544
+ .me--4 {
545
+ margin-right: -24px !important;
546
+ }
547
+
548
+ .me--5 {
549
+ margin-right: -48px !important;
550
+ }
551
+
552
+ .align-super {
553
+ vertical-align: super !important;
554
+ }
555
+
556
+ .z-index-2 {
557
+ z-index: 2;
558
+ }
559
+ .z-index-3 {
560
+ z-index: 3;
561
+ }
562
+ .z-index-4 {
563
+ z-index: 4;
564
+ }
565
+ .z-index-5 {
566
+ z-index: 5;
567
+ }
568
+ .z-index-10 {
569
+ z-index: 10;
570
+ }
571
+ .z-index-100 {
572
+ z-index: 100;
573
+ }
574
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cic-kit",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",