@arsedizioni/ars-utils 22.1.5 → 22.5.2

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.
Files changed (78) hide show
  1. package/README.md +158 -10
  2. package/clipper.ui/clipper.scss +564 -0
  3. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1 -1
  4. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +11 -7
  6. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +609 -0
  8. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -0
  9. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +591 -0
  10. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -0
  11. package/fesm2022/arsedizioni-ars-utils-core.mjs +270 -1449
  12. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1 -1
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +1 -1
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +14 -4108
  18. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +962 -0
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -0
  21. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +506 -0
  22. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -0
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +450 -0
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -0
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +184 -0
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -0
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +825 -0
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -0
  29. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +708 -0
  30. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -0
  31. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +426 -0
  32. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -0
  33. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +531 -0
  34. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -0
  35. package/fesm2022/arsedizioni-ars-utils-ui.mjs +54 -1227
  36. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1049 -0
  38. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -0
  39. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +263 -0
  40. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -0
  41. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +4 -3
  42. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +53 -0
  44. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -0
  45. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +517 -0
  46. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -0
  47. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +246 -0
  48. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -0
  49. package/fesm2022/arsedizioni-ars-utils.mjs +13 -12
  50. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  51. package/help/package.json +4 -0
  52. package/package.json +80 -14
  53. package/styles/ui.colors.scss +23 -0
  54. package/support.ui/package.json +4 -0
  55. package/tinymce/package.json +4 -0
  56. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1 -2
  57. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +4 -1
  58. package/types/arsedizioni-ars-utils-core.d.ts +684 -1004
  59. package/types/arsedizioni-ars-utils-core.date.d.ts +304 -0
  60. package/types/arsedizioni-ars-utils-core.markdown.d.ts +159 -0
  61. package/types/arsedizioni-ars-utils-ui.application.d.ts +10 -2022
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +413 -0
  63. package/types/arsedizioni-ars-utils-ui.d.ts +183 -566
  64. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +224 -0
  65. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +228 -0
  66. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +47 -0
  67. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +309 -0
  68. package/types/arsedizioni-ars-utils-ui.files.d.ts +271 -0
  69. package/types/arsedizioni-ars-utils-ui.filters.d.ts +163 -0
  70. package/types/arsedizioni-ars-utils-ui.help.d.ts +220 -0
  71. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +650 -0
  72. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +73 -0
  73. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +23 -0
  74. package/types/arsedizioni-ars-utils-ui.shell.d.ts +345 -0
  75. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +63 -0
  76. package/types/arsedizioni-ars-utils.d.ts +4 -10
  77. package/ui.tinymce/README.md +12 -0
  78. package/ui.tinymce/langs/it.js +466 -0
@@ -0,0 +1,564 @@
1
+ @use '../styles/ui.scss';
2
+
3
+ // ---------------------------------------------------------------------------
4
+ // Shared helpers
5
+ // ---------------------------------------------------------------------------
6
+ // Clamp text to 3 lines (used by item / tile / stripe titles)
7
+ @mixin line-clamp-3 {
8
+ overflow: hidden;
9
+ text-overflow: ellipsis;
10
+ white-space: initial;
11
+ display: -webkit-box;
12
+ -webkit-line-clamp: 3;
13
+ -webkit-box-orient: vertical;
14
+ }
15
+
16
+ // Shared text styling for the .item-content info labels
17
+ @mixin item-info-label {
18
+ font-size: x-small !important;
19
+ font-weight: 700 !important;
20
+ line-height: 18px;
21
+ text-transform: uppercase !important;
22
+ }
23
+
24
+ .clipper-logo {
25
+ background-size: 110px 48px;
26
+ width: 110px;
27
+ height: 48px;
28
+
29
+ }
30
+
31
+ .clipper-selection-button {
32
+ width: 150px;
33
+ font-size: small;
34
+ font-weight: 600;
35
+ }
36
+
37
+ .clipper-selection-icon-button {
38
+ background-color: var(--ars-color-primary, #00a293);
39
+ color: var(--ars-color-text-low, #e0e2e5);
40
+ }
41
+
42
+ .clipper-selection-icon-button:hover {
43
+ background-color: var(--ars-color-primary-hi, #12c0ae);
44
+ }
45
+
46
+
47
+
48
+ // State color + background utilities (app-color tokens). name -> fallback
49
+ $state-colors: (
50
+ unread: #f7931c,
51
+ expired: #ff5449,
52
+ expiring: #FFC107,
53
+ closed: #388E3C,
54
+ );
55
+
56
+ @each $state, $fallback in $state-colors {
57
+ .#{$state} {
58
+ color: var(--app-color-#{$state}, $fallback) !important;
59
+ }
60
+
61
+ .#{$state}-bg {
62
+ background-color: var(--app-color-#{$state}, $fallback) !important;
63
+ }
64
+ }
65
+
66
+ // Background-only variant (uses the ars-color design token)
67
+ .error-bg {
68
+ background-color: var(--ars-color-error, #ff5449) !important;
69
+ }
70
+
71
+ // .popular-bg is an alias of .closed-bg
72
+ .popular-bg {
73
+ background-color: var(--app-color-closed, #388E3C) !important;
74
+ }
75
+
76
+ .very-popular-bg {
77
+ background-color: #4CAF50;
78
+ }
79
+
80
+ .item-selected {
81
+ background-color: var(--ars-item-selected-background-color, #ced1d2);
82
+ border-radius: 0 !important;
83
+ }
84
+
85
+ .item-unread {
86
+ font-weight: bolder;
87
+ }
88
+
89
+
90
+ .items-group-title {
91
+ color: var(--ars-color-secondary, #4a635f);
92
+ font-size: large;
93
+ font-weight: 700;
94
+ padding-left: 25px;
95
+ padding-bottom: 10px;
96
+ padding-top: 10px;
97
+
98
+ .group-spaced {
99
+ padding: 10px 0 0 0 !important;
100
+ }
101
+ }
102
+
103
+
104
+ .items-footer {
105
+ padding: 10px;
106
+
107
+ }
108
+
109
+
110
+ .item {
111
+ border-radius: 12px;
112
+ padding: 10px 10px 10px 0px;
113
+ min-height: 68px !important;
114
+ margin-bottom: 2px;
115
+ }
116
+
117
+ .item:hover {
118
+ background-color: var(--ars-item-hover-background-color, #eaecef);
119
+
120
+ .item-content {
121
+ -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
122
+ mask-image: linear-gradient(to right, black 85%, transparent 100%);
123
+ }
124
+
125
+ }
126
+
127
+ @media screen and (min-width: 0px) and (max-width: 430px) {
128
+ .item:hover {
129
+ background-color: var(--ars-item-hover-background-color);
130
+
131
+ .item-content {
132
+ -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
133
+ mask-image: linear-gradient(to right, black 55%, transparent 100%);
134
+ }
135
+
136
+ }
137
+ }
138
+
139
+ .item-content {
140
+
141
+ .item-info-1,
142
+ .info-1 {
143
+ @include item-info-label;
144
+ color: var(--ars-color-accent, #7894ae);
145
+ }
146
+
147
+ .item-info-2,
148
+ .info-2 {
149
+ @include item-info-label;
150
+ color: var(--ars-color-accent-low, #456179);
151
+ }
152
+
153
+ .item-info-3,
154
+ .info-3 {
155
+ @include item-info-label;
156
+ color: var(--ars-color-error, #ff5449);
157
+ }
158
+
159
+ .item-title,
160
+ .title {
161
+ font-size: small !important;
162
+ line-height: 18px;
163
+ text-decoration: none !important;
164
+ font-weight: normal;
165
+ min-height: unset;
166
+ min-width: unset;
167
+ white-space: initial !important;
168
+
169
+ @supports (-webkit-line-clamp: 3) {
170
+ @include line-clamp-3;
171
+ }
172
+ }
173
+
174
+
175
+ .details {
176
+ margin-top: 4px;
177
+ font-size: x-small !important;
178
+ font-weight: 700;
179
+ line-height: 15px;
180
+ color: var(--ars-color-accent-low, #456179);
181
+ text-transform: uppercase !important;
182
+ border-left: 4px solid var(--ars-color-accent-low, #456179);
183
+ padding-left: 10px;
184
+
185
+ .links {
186
+ text-transform: none;
187
+ text-decoration: none;
188
+
189
+ a,
190
+ span,
191
+ div {
192
+ margin-right: 8px;
193
+ font-weight: 500 !important;
194
+ font-size: 11px !important;
195
+ color: var(--ars-color-text, #191c1b);
196
+ }
197
+
198
+ a {
199
+ cursor: pointer !important;
200
+ color: var(--ars-color-link, #03A9F4);
201
+ font-size: 11px !important;
202
+ font-weight: 500 !important;
203
+ }
204
+ }
205
+ }
206
+
207
+ a.link {
208
+ color: var(--ars-color-link, #03A9F4);
209
+ cursor: pointer !important;
210
+ text-decoration: none !important;
211
+ }
212
+ }
213
+
214
+
215
+ .tile:hover {
216
+ background-color: var(--ars-item-hover-background-color, #eaecef);
217
+ border-radius: 12px;
218
+ }
219
+
220
+ .tile {
221
+ cursor: pointer !important;
222
+ padding: 10px 13px 10px 13px !important;
223
+ margin-bottom: 20px !important;
224
+
225
+ .body {
226
+ padding: 4px 6px;
227
+ }
228
+
229
+ .image-mark {
230
+ border-top: 6px solid transparent;
231
+ margin: 0 8px;
232
+
233
+ }
234
+
235
+ .image-mark-unread {
236
+ border-top-color: var(--app-color-unread, #f7931c);
237
+ margin: 0 8px;
238
+ }
239
+
240
+ .tile-image,
241
+ .image {
242
+ height: 125px;
243
+ position: relative;
244
+ background-color: transparent;
245
+ overflow: hidden;
246
+ display: flex;
247
+ justify-content: center;
248
+ align-items: center;
249
+ border-radius: 8px;
250
+
251
+
252
+ img {
253
+ object-fit: cover;
254
+ width: 100%;
255
+ height: 100%;
256
+ }
257
+
258
+
259
+ .tile-info-1,
260
+ .info-1 {
261
+ position: absolute;
262
+ left: 0;
263
+ bottom: 0;
264
+ padding: 4px 8px;
265
+ background-color: var(--ars-color-overlay, rgba(255, 255, 255, 0.75));
266
+ color: var(--ars-color-text, #191c1b);
267
+ font-size: small !important;
268
+ font-weight: 700 !important;
269
+ text-transform: uppercase !important;
270
+ }
271
+
272
+ .tile-info-2,
273
+ .info-2 {
274
+ position: absolute;
275
+ right: 0;
276
+ top: 0;
277
+ padding: 4px 8px;
278
+ background-color: var(--ars-color-overlay, rgba(255, 255, 255, 0.75));
279
+ color: var(--ars-color-accent, #7894ae);
280
+ font-size: small !important;
281
+ font-weight: 700 !important;
282
+ text-transform: uppercase !important;
283
+ }
284
+
285
+ .buttons {
286
+ position: absolute;
287
+ left: 0;
288
+ top: 0;
289
+ height: 42px;
290
+
291
+ .check,
292
+ .read-button {
293
+ background-color: var(--ars-color-primary, #00a293) !important;
294
+ color: var(--ars-color-text-low, #e0e2e5) !important;
295
+ }
296
+
297
+ .unread-button {
298
+ background-color: var(--app-color-unread, #f7931c) !important;
299
+ color: var(--ars-color-text-low, #e0e2e5) !important;
300
+ }
301
+
302
+ .check-selected {
303
+ background-color: var(--ars-color-primary-hi, #12c0ae) !important;
304
+ }
305
+ }
306
+ }
307
+
308
+ .tile-date,
309
+ .date {
310
+ padding: 8px 0 6px 0 !important;
311
+ font-weight: 700 !important;
312
+ text-transform: uppercase !important;
313
+
314
+ .date-day {
315
+ color: var(--ars-color-accent, #7894ae);
316
+ }
317
+
318
+ .date-divider {
319
+ width: 1px;
320
+ margin: 0 8px;
321
+ border-left: 1px solid var(--ars-color-divider, #757d87);
322
+ }
323
+ }
324
+
325
+ .tile-time,
326
+ .time {
327
+ font-size: small !important;
328
+ font-weight: 700 !important;
329
+ }
330
+
331
+ .tile-title,
332
+ .title {
333
+ text-decoration: none !important;
334
+ font-size: 16px !important;
335
+ font-weight: 600;
336
+ min-height: 50px !important; // 2 lines;
337
+ max-height: 70px !important; // 3 lines;
338
+ min-width: 100%;
339
+ white-space: initial !important;
340
+ overflow: hidden !important;
341
+
342
+ @supports (-webkit-line-clamp: 3) {
343
+ @include line-clamp-3;
344
+ }
345
+ }
346
+
347
+
348
+ }
349
+
350
+
351
+ .stripe:hover {
352
+ background-color: var(--ars-item-hover-background-color, #eaecef);
353
+ border-radius: 12px;
354
+ }
355
+
356
+ .stripe {
357
+ cursor: pointer !important;
358
+ padding: 5px 10px 5px 10px !important;
359
+ margin-bottom: 10px !important;
360
+
361
+ .body {
362
+ padding: 5px 15px !important;
363
+ }
364
+
365
+ .image-mark {
366
+ min-height: 100% !important;
367
+ border-left: 6px solid transparent;
368
+ margin: 8px 0;
369
+
370
+ }
371
+
372
+ .image-mark-unread {
373
+ min-height: 100% !important;
374
+ border-left-color: var(--ars-color-error, #ff5449) !important;
375
+ margin: 8px 0;
376
+ }
377
+
378
+ .stripe-image,
379
+ .image {
380
+ width: 150px !important;
381
+ height: 70px !important;
382
+ position: relative;
383
+ background-color: transparent;
384
+ overflow: hidden;
385
+ display: flex;
386
+ justify-content: center;
387
+ align-items: center;
388
+ border-radius: 8px;
389
+
390
+
391
+ img {
392
+ object-fit: cover;
393
+ width: 100%;
394
+ height: 100%;
395
+ }
396
+ }
397
+
398
+ .stripe-info-1,
399
+ .info-1 {
400
+ margin-top: 8px;
401
+ padding: 4px 8px !important;
402
+ background-color: var(--ars-color-overlay, rgba(255, 255, 255, 0.75)) !important;
403
+ color: var(--ars-color-text, #191c1b) !important;
404
+ font-size: small !important;
405
+ font-weight: 700 !important;
406
+ text-transform: uppercase !important;
407
+ }
408
+
409
+ .stripe-info-2,
410
+ .info-2 {
411
+ margin-top: 8px;
412
+ padding: 4px 8px !important;
413
+ background-color: var(--ars-color-overlay, rgba(255, 255, 255, 0.75)) !important;
414
+ color: var(--ars-color-accent, #7894ae) !important;
415
+ font-size: small !important;
416
+ font-weight: 700 !important;
417
+ text-transform: uppercase !important;
418
+ }
419
+
420
+ .buttons {
421
+ position: absolute;
422
+ left: 0;
423
+ top: 0;
424
+ height: 42px;
425
+
426
+ .check,
427
+ .read {
428
+ background-color: var(--ars-color-primary, #00a293);
429
+ color: var(--ars-color-text-low, #e0e2e5);
430
+ }
431
+
432
+ .check-selected {
433
+ background-color: var(--ars-color-primary-hi, #12c0ae);
434
+ }
435
+ }
436
+
437
+
438
+ .stripe-date,
439
+ .date {
440
+ padding: 0 !important;
441
+ font-weight: 700 !important;
442
+ text-transform: uppercase !important;
443
+
444
+ .date-day {
445
+ color: var(--ars-color-accent, #7894ae);
446
+ }
447
+
448
+ .date-divider {
449
+ width: 1px;
450
+ margin: 0 8px;
451
+ border-left: 1px solid var(--ars-color-divider, #757d87);
452
+ }
453
+ }
454
+
455
+ .stripe-time,
456
+ .time {
457
+ font-size: small !important;
458
+ font-weight: 700 !important;
459
+ }
460
+
461
+ .stripe-title,
462
+ .title {
463
+ text-decoration: none !important;
464
+ font-size: 16px !important;
465
+ font-weight: 600;
466
+ min-width: 100%;
467
+ white-space: initial !important;
468
+ overflow: hidden !important;
469
+
470
+ @supports (-webkit-line-clamp: 3) {
471
+ @include line-clamp-3;
472
+ }
473
+ }
474
+
475
+
476
+ }
477
+
478
+ .badge,
479
+ .badge-red {
480
+ margin-left: 10px;
481
+ padding: 1px 4px;
482
+ border-radius: 3px;
483
+ font-size: x-small;
484
+ font-weight: 600;
485
+ text-align: center;
486
+ background-color: #427505;
487
+ text-transform: uppercase;
488
+ white-space: nowrap;
489
+ color: #e0e2e5;
490
+ }
491
+
492
+ .badge-red {
493
+ background-color: #a80710;
494
+ }
495
+
496
+ .busy-backdrop {
497
+ background-color: rgba(0, 0, 0, 0.42) !important;
498
+ }
499
+
500
+
501
+ .legend-container {
502
+ display: flex;
503
+ flex-direction: row;
504
+ align-items: center;
505
+ font-size: x-small;
506
+ text-transform: uppercase;
507
+ font-weight: 500;
508
+ margin-left: 10px;
509
+
510
+
511
+ .legend {
512
+ display: inline-block;
513
+ height: 8px;
514
+ width: 8px;
515
+ margin-right: 4px;
516
+ }
517
+
518
+ .legend:not(:first-of-type) {
519
+ margin-left: 10px;
520
+ }
521
+
522
+ }
523
+
524
+ @media screen and (max-width: 431px) {
525
+ .legend-container {
526
+ font-size: 9px !important;
527
+ }
528
+ }
529
+
530
+ .special-date,
531
+ .special-date-expired,
532
+ .special-date-expiring {
533
+ border: 2px var(--ars-color-accent, #7894ae) solid !important;
534
+ border-radius: 100% !important;
535
+ }
536
+
537
+
538
+ .special-date-expired {
539
+ border: 2px var(--ars-color-error, #ff5449) solid !important;
540
+ }
541
+
542
+ .special-date-expiring {
543
+ border: 2px var(--ars-color-warning, #FFC107) solid !important;
544
+ }
545
+
546
+ /*
547
+ * Free text search highlighted item
548
+ */
549
+ .word-hit-chunk,
550
+ .word-hit {
551
+ display: inline-block;
552
+ font-size: inherit;
553
+ background-color: var(--ars-word-hit-background-color, #FFEB3B);
554
+ color: var(--ars-word-hit-color, #191c1b);
555
+ padding: 0 4px;
556
+ margin: 0 4px;
557
+ border-radius: 4px;
558
+ }
559
+
560
+ .word-hit-chunk {
561
+ background-color: var(--ars-word-chunk-hit-background-color, #8AFF59);
562
+ color: var(--ars-word-hit-chunk-color, #191c1b);
563
+
564
+ }
@@ -3781,7 +3781,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
3781
3781
  // directly or referenced as types where needed.
3782
3782
 
3783
3783
  /*
3784
- * Public API Surface of ars-utils
3784
+ * Public API Surface of @arsedizioni/ars-utils/clipper.common
3785
3785
  */
3786
3786
 
3787
3787
  /**