@fabio.buscaroli/scm-utils 22.0.1

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 (42) hide show
  1. package/README.md +10 -0
  2. package/fesm2022/abv-scm-utils-core.mjs +3293 -0
  3. package/fesm2022/abv-scm-utils-core.mjs.map +1 -0
  4. package/fesm2022/abv-scm-utils-tinymce.mjs +230 -0
  5. package/fesm2022/abv-scm-utils-tinymce.mjs.map +1 -0
  6. package/fesm2022/abv-scm-utils-ui.application.mjs +3396 -0
  7. package/fesm2022/abv-scm-utils-ui.application.mjs.map +1 -0
  8. package/fesm2022/abv-scm-utils-ui.mjs +3060 -0
  9. package/fesm2022/abv-scm-utils-ui.mjs.map +1 -0
  10. package/fesm2022/abv-scm-utils-ui.oauth.mjs +278 -0
  11. package/fesm2022/abv-scm-utils-ui.oauth.mjs.map +1 -0
  12. package/fesm2022/abv-scm-utils.mjs +13 -0
  13. package/fesm2022/abv-scm-utils.mjs.map +1 -0
  14. package/fesm2022/fabio.buscaroli-scm-utils-core.mjs +3293 -0
  15. package/fesm2022/fabio.buscaroli-scm-utils-core.mjs.map +1 -0
  16. package/fesm2022/fabio.buscaroli-scm-utils-tinymce.mjs +230 -0
  17. package/fesm2022/fabio.buscaroli-scm-utils-tinymce.mjs.map +1 -0
  18. package/fesm2022/fabio.buscaroli-scm-utils-ui.application.mjs +3396 -0
  19. package/fesm2022/fabio.buscaroli-scm-utils-ui.application.mjs.map +1 -0
  20. package/fesm2022/fabio.buscaroli-scm-utils-ui.mjs +3060 -0
  21. package/fesm2022/fabio.buscaroli-scm-utils-ui.mjs.map +1 -0
  22. package/fesm2022/fabio.buscaroli-scm-utils-ui.oauth.mjs +278 -0
  23. package/fesm2022/fabio.buscaroli-scm-utils-ui.oauth.mjs.map +1 -0
  24. package/fesm2022/fabio.buscaroli-scm-utils.mjs +13 -0
  25. package/fesm2022/fabio.buscaroli-scm-utils.mjs.map +1 -0
  26. package/package.json +58 -0
  27. package/styles/ui.colors.scss +77 -0
  28. package/styles/ui.scss +350 -0
  29. package/tinymce/README.md +12 -0
  30. package/tinymce/langs/it.js +466 -0
  31. package/types/abv-scm-utils-core.d.ts +1536 -0
  32. package/types/abv-scm-utils-tinymce.d.ts +59 -0
  33. package/types/abv-scm-utils-ui.application.d.ts +1504 -0
  34. package/types/abv-scm-utils-ui.d.ts +1393 -0
  35. package/types/abv-scm-utils-ui.oauth.d.ts +68 -0
  36. package/types/abv-scm-utils.d.ts +4 -0
  37. package/types/fabio.buscaroli-scm-utils-core.d.ts +1536 -0
  38. package/types/fabio.buscaroli-scm-utils-tinymce.d.ts +59 -0
  39. package/types/fabio.buscaroli-scm-utils-ui.application.d.ts +1504 -0
  40. package/types/fabio.buscaroli-scm-utils-ui.d.ts +1393 -0
  41. package/types/fabio.buscaroli-scm-utils-ui.oauth.d.ts +68 -0
  42. package/types/fabio.buscaroli-scm-utils.d.ts +4 -0
package/styles/ui.scss ADDED
@@ -0,0 +1,350 @@
1
+ .dialog-info {
2
+ font-size: x-small;
3
+ font-weight: 700;
4
+ text-align: right;
5
+ padding: 10px
6
+ }
7
+
8
+ .dialog-info-green,
9
+ .dialog-info-ok {
10
+ color: var(--ars-color-ok, #388E3C);
11
+ }
12
+
13
+ .dialog-info-red,
14
+ .dialog-info-error {
15
+ color: var(--mat-form-field-error-text-color, #a80710);
16
+ }
17
+
18
+ .dialog-header {
19
+ padding-bottom: 20px;
20
+ }
21
+
22
+ .dialog-toolbar {
23
+ padding: 0 5px 0 24px;
24
+ height: 48px;
25
+ min-height: 48px;
26
+ }
27
+
28
+ .dialog-close {
29
+ margin-right: 5px;
30
+ margin-top: 0px;
31
+ }
32
+
33
+ .dialog-menu {
34
+ margin-left: 10px;
35
+ margin-top: 10px;
36
+ }
37
+
38
+ .dialog-title {
39
+ padding: 0 24px;
40
+ }
41
+
42
+
43
+ .section-title {
44
+ font-size: large;
45
+ font-weight: 600;
46
+ padding-top: 10px;
47
+ padding-bottom: 8px;
48
+ }
49
+
50
+ .center {
51
+ text-align: center;
52
+ }
53
+
54
+ .wide {
55
+ min-width: 100% !important;
56
+ max-width: 100% !important;
57
+ width: 100% !important;
58
+ }
59
+
60
+ .fill {
61
+ min-width: 100% !important;
62
+ max-width: 100% !important;
63
+ width: 100% !important;
64
+ min-height: 100% !important;
65
+ max-height: 100% !important;
66
+ height: 100% !important;
67
+ }
68
+
69
+ .scroll-auto {
70
+ overflow: auto;
71
+ height: 100%;
72
+ }
73
+
74
+ .scroll-hidden {
75
+ overflow: hidden;
76
+ height: 100%;
77
+ }
78
+
79
+ b {
80
+ font-weight: 700;
81
+ }
82
+
83
+ .large {
84
+ font-size: large !important;
85
+ }
86
+
87
+ .smaller {
88
+ font-size: smaller !important;
89
+ ;
90
+ }
91
+
92
+ .small {
93
+ font-size: small !important;
94
+ line-height: 16px !important;
95
+ ;
96
+ }
97
+
98
+ .small-icon-button {
99
+ width: 1.5rem !important;
100
+ height: 1.5rem !important;
101
+ padding: 0px !important;
102
+ display: inline-flex !important;
103
+ align-items: center;
104
+ justify-content: center;
105
+
106
+ .mat-mdc-button-touch-target {
107
+ width: 1.5rem !important;
108
+ height: 1.5rem !important;
109
+ }
110
+ }
111
+
112
+ .x-small {
113
+ font-size: x-small !important;
114
+ line-height: 14px !important;
115
+ }
116
+
117
+ .bold {
118
+ font-weight: 700;
119
+ }
120
+
121
+ .uppercase {
122
+ text-transform: uppercase !important;
123
+ }
124
+
125
+ .lowercase {
126
+ text-transform: lowercase !important;
127
+ }
128
+
129
+ .truncated {
130
+ min-width: 0;
131
+ max-width: 100%;
132
+
133
+ @supports (-webkit-line-clamp: 2) {
134
+ overflow: hidden;
135
+ text-overflow: ellipsis;
136
+ white-space: initial;
137
+ display: -webkit-box;
138
+ -webkit-line-clamp: 2;
139
+ -webkit-box-orient: vertical;
140
+ }
141
+
142
+ /* or some value */
143
+ span,
144
+ div {
145
+ white-space: nowrap;
146
+ overflow: hidden;
147
+ text-overflow: ellipsis;
148
+
149
+ @supports (-webkit-line-clamp: 2) {
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ white-space: initial;
153
+ display: -webkit-box;
154
+ -webkit-line-clamp: 2;
155
+ -webkit-box-orient: vertical;
156
+ }
157
+ }
158
+ }
159
+
160
+ .clipped {
161
+ min-width: 0;
162
+ max-width: 100%;
163
+
164
+ /* or some value */
165
+ span,
166
+ div {
167
+ white-space: nowrap;
168
+ overflow: hidden;
169
+ text-overflow: clip;
170
+ }
171
+ }
172
+
173
+ .accent {
174
+ color: var(--ars-color-accent, #7894ae) !important;
175
+ }
176
+
177
+ .primary {
178
+ color: var(--ars-color-primary, #00a293) !important;
179
+ }
180
+
181
+ .secondary {
182
+ color: var(--ars-color-secondary, #4a635f) !important;
183
+ }
184
+
185
+ .error {
186
+ color: var(--ars-color-error, #ff5449) !important;
187
+ }
188
+
189
+ .success {
190
+ color: var(--ars-color-ok, #388E3C) !important;
191
+ }
192
+
193
+ .warning {
194
+ color: var(--ars-color-warning, #FFC107) !important;
195
+ }
196
+
197
+ .text {
198
+ color: var(--ars-color-text, #191c1b) !important;
199
+ }
200
+
201
+ .overlay {
202
+ position: absolute;
203
+ top: 0;
204
+ left: 0;
205
+ width: 100%;
206
+ height: 100%;
207
+ z-index: 10;
208
+ background-color: var(--ars-color-overlay, rgba(255, 255, 255, 0.75));
209
+ }
210
+
211
+ .drawer-content {
212
+ padding-top: 10px;
213
+ }
214
+
215
+ .drawer,
216
+ .drawer-small {
217
+ .title-container {
218
+ padding-top: 20px;
219
+ padding-right: 5px;
220
+ padding-bottom: 20px;
221
+ padding-left: 0;
222
+ }
223
+
224
+ .title-container-with-loader {
225
+ padding-top: 14px;
226
+ padding-right: 5px;
227
+ padding-bottom: 20px;
228
+ padding-left: 0;
229
+ }
230
+
231
+ .title {
232
+ font-size: 19.2px !important;
233
+ font-weight: 600;
234
+ padding-left: 15px;
235
+ min-width: 150px;
236
+ width: 100%;
237
+ white-space: nowrap;
238
+ overflow: hidden;
239
+ text-overflow: ellipsis;
240
+ }
241
+
242
+
243
+ .accordion-panel {
244
+ background-color: transparent !important;
245
+
246
+ }
247
+
248
+ .accordion-header {
249
+ padding-left: 10px;
250
+ padding-right: 10px;
251
+ border-radius: var(--mat-expansion-container-shape);
252
+
253
+ }
254
+
255
+
256
+ .mat-expansion-panel-body {
257
+ padding-left: 10px !important;
258
+ padding-right: 10px !important;
259
+ padding-bottom: 20px !important;
260
+ }
261
+ }
262
+
263
+
264
+ @media screen and (min-width: 0px) and (max-width: 430px) {
265
+
266
+ .drawer,
267
+ .drawer-small {
268
+ border-radius: 0 !important;
269
+ min-width: 100% !important;
270
+ max-width: 100% !important;
271
+ }
272
+ }
273
+
274
+ @media screen and (min-width: 431px) {
275
+ .drawer {
276
+ min-width: 420px !important;
277
+ max-width: 420px !important;
278
+
279
+
280
+ .title {
281
+ min-width: 200px;
282
+ }
283
+
284
+
285
+ .mat-expansion-panel-body {
286
+ padding-left: 15px !important;
287
+ padding-right: 15px !important;
288
+ padding-bottom: 20px !important;
289
+ }
290
+
291
+ }
292
+
293
+ .drawer-small {
294
+ min-width: 360px !important;
295
+ max-width: 360px !important;
296
+ }
297
+
298
+ }
299
+
300
+ .drawer-with-loader {
301
+ padding-top: 0 !important;
302
+ }
303
+
304
+ .drawer-transparent {
305
+ background-color: transparent;
306
+ }
307
+
308
+ .fade-in {
309
+ animation: fadein 500ms linear;
310
+ }
311
+
312
+ @keyframes fadein {
313
+ 0% {
314
+ opacity: 0;
315
+ }
316
+
317
+ 100% {
318
+ opacity: 1;
319
+ }
320
+ }
321
+
322
+ .bright {
323
+ filter: brightness(0.7) !important;
324
+ }
325
+
326
+
327
+ @media (prefers-color-scheme: dark) {
328
+
329
+ .dialog-info-green,
330
+ .dialog-info-ok {
331
+ color: var(--ars-color-ok, #4CAF50);
332
+ }
333
+
334
+ .dialog-info-red,
335
+ .dialog-info-error {
336
+ color: var(--mat-form-field-error-text-color, #ff5449);
337
+ }
338
+
339
+ b,
340
+ .bold {
341
+ font-weight: 600;
342
+ }
343
+
344
+ .bright {
345
+ filter: brightness(1.5) !important;
346
+ }
347
+ }
348
+
349
+
350
+ @media (prefers-color-scheme: dark) {}
@@ -0,0 +1,12 @@
1
+ in application:
2
+ 1) install tinymce (npm install tinymce)
3
+ 1) install @tinymce/tinymce-angular (npm install @tinymce/tinymce-angular)
4
+ 2) setup assets in angular.json
5
+ {
6
+ "glob": "**/*",
7
+ "input": "node_modules/tinymce",
8
+ "output": "assets/tinymce"
9
+ }
10
+ 3) download language from
11
+ https://github.com/tinymce/tinymce/blob/develop/modules/tinymce/src/langs/it.js and put it in
12
+ "assets/tinymce/langs/it.js"