cmat 0.0.21 → 0.0.23

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 (95) hide show
  1. package/components/material-color-picker/base-color.d.ts +1 -0
  2. package/components/select-tree/select-tree.component.d.ts +1 -1
  3. package/fesm2022/cmat-components-adapter.mjs +9 -9
  4. package/fesm2022/cmat-components-breadcrumb.mjs +9 -9
  5. package/fesm2022/cmat-components-card.mjs +4 -4
  6. package/fesm2022/cmat-components-card.mjs.map +1 -1
  7. package/fesm2022/cmat-components-carousel.mjs +12 -12
  8. package/fesm2022/cmat-components-cascade.mjs +9 -9
  9. package/fesm2022/cmat-components-chip-input.mjs +3 -3
  10. package/fesm2022/cmat-components-custom-formly.mjs +94 -94
  11. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
  12. package/fesm2022/cmat-components-date-range.mjs +3 -3
  13. package/fesm2022/cmat-components-drawer.mjs +6 -6
  14. package/fesm2022/cmat-components-fullscreen.mjs +3 -3
  15. package/fesm2022/cmat-components-highlight.mjs +6 -6
  16. package/fesm2022/cmat-components-image-viewer.mjs +3 -3
  17. package/fesm2022/cmat-components-json-editor.mjs +3 -3
  18. package/fesm2022/cmat-components-knob-input.mjs +3 -3
  19. package/fesm2022/cmat-components-masonry.mjs +3 -3
  20. package/fesm2022/cmat-components-material-color-picker.mjs +16 -4
  21. package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
  22. package/fesm2022/cmat-components-material-datetimepicker.mjs +43 -43
  23. package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
  24. package/fesm2022/cmat-components-navigation.mjs +40 -40
  25. package/fesm2022/cmat-components-navigation.mjs.map +1 -1
  26. package/fesm2022/cmat-components-opt-input.mjs +3 -3
  27. package/fesm2022/cmat-components-org-chart.mjs +9 -9
  28. package/fesm2022/cmat-components-pagination.mjs +15 -13
  29. package/fesm2022/cmat-components-pagination.mjs.map +1 -1
  30. package/fesm2022/cmat-components-password-strength.mjs +9 -9
  31. package/fesm2022/cmat-components-popover.mjs +9 -9
  32. package/fesm2022/cmat-components-progress-bar.mjs +4 -4
  33. package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
  34. package/fesm2022/cmat-components-rating.mjs +3 -3
  35. package/fesm2022/cmat-components-select-search.mjs +9 -9
  36. package/fesm2022/cmat-components-select-table.mjs +4 -4
  37. package/fesm2022/cmat-components-select-table.mjs.map +1 -1
  38. package/fesm2022/cmat-components-select-tree.mjs +6 -6
  39. package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
  40. package/fesm2022/cmat-components-speed-dial.mjs +9 -9
  41. package/fesm2022/cmat-components-timeline.mjs +13 -13
  42. package/fesm2022/cmat-components-timeline.mjs.map +1 -1
  43. package/fesm2022/cmat-components-toast.mjs +9 -9
  44. package/fesm2022/cmat-components-transfer-picker.mjs +19 -19
  45. package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
  46. package/fesm2022/cmat-components-treetable.mjs +6 -6
  47. package/fesm2022/cmat-components-upload.mjs +11 -11
  48. package/fesm2022/cmat-components-upload.mjs.map +1 -1
  49. package/fesm2022/cmat-directives-animate-on-scroll.mjs +9 -11
  50. package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
  51. package/fesm2022/cmat-directives-arrow-cursor.mjs +3 -3
  52. package/fesm2022/cmat-directives-autofocus.mjs +3 -3
  53. package/fesm2022/cmat-directives-data-exporter.mjs +21 -21
  54. package/fesm2022/cmat-directives-debounce.mjs +9 -9
  55. package/fesm2022/cmat-directives-digit-only.mjs +6 -6
  56. package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
  57. package/fesm2022/cmat-lib-mock-api.mjs +6 -6
  58. package/fesm2022/cmat-pipes-bytes.mjs +3 -3
  59. package/fesm2022/cmat-pipes-date-format.mjs +3 -3
  60. package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
  61. package/fesm2022/cmat-pipes-group-by.mjs +3 -3
  62. package/fesm2022/cmat-pipes-keys.mjs +3 -3
  63. package/fesm2022/cmat-pipes-secure.mjs +3 -3
  64. package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
  65. package/fesm2022/cmat-services-alert.mjs +3 -3
  66. package/fesm2022/cmat-services-config.mjs +6 -6
  67. package/fesm2022/cmat-services-confirmation.mjs +7 -7
  68. package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
  69. package/fesm2022/cmat-services-data.mjs +3 -3
  70. package/fesm2022/cmat-services-export-as.mjs +7 -7
  71. package/fesm2022/cmat-services-export-as.mjs.map +1 -1
  72. package/fesm2022/cmat-services-loading.mjs +6 -6
  73. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  74. package/fesm2022/cmat-services-media-watcher.mjs +3 -3
  75. package/fesm2022/cmat-services-platform.mjs +3 -3
  76. package/fesm2022/cmat-services-splash-screen.mjs +3 -3
  77. package/fesm2022/cmat-services-title.mjs +3 -3
  78. package/fesm2022/cmat-services-translation.mjs +3 -3
  79. package/fesm2022/cmat-services-utils.mjs +3 -3
  80. package/package.json +56 -56
  81. package/styles/components/bundle.scss +23 -25
  82. package/styles/components/input.scss +2 -0
  83. package/styles/overrides/angular-material.scss +75 -59
  84. package/styles/overrides/fullcalendar.scss +3 -1
  85. package/styles/overrides/quill.scss +8 -6
  86. package/styles/tailwind.scss +99 -15
  87. package/styles/user-themes.scss +1 -1
  88. package/tailwind/plugins/helpers.js +16 -0
  89. package/tailwind/plugins/scrollbar/index.js +31 -0
  90. package/tailwind/plugins/scrollbar/typedefs.js +9 -0
  91. package/tailwind/plugins/scrollbar/utilities.js +201 -0
  92. package/tailwind/plugins/scrollbar/variants.js +30 -0
  93. package/tailwind/plugins/theming.js +257 -256
  94. package/tailwind/plugins/utilities.js +12 -25
  95. package/tailwind/utils/json-to-sass-map.js +28 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmat",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "author": {
5
5
  "name": "Yu Tao",
6
6
  "email": "916426364@qq.com"
@@ -18,6 +18,7 @@
18
18
  "@ngx-formly/material": "^6.3.1",
19
19
  "@ngx-translate/core": "^16.0.0",
20
20
  "@ngx-translate/http-loader": "^16.0.0",
21
+ "@tailwindcss/postcss": "^4.0.6",
21
22
  "animate.css": "^4.1.1",
22
23
  "crypto-js": "^4.2.0",
23
24
  "dayjs": "^1.11.13",
@@ -27,11 +28,10 @@
27
28
  "quill-blot-formatter": "^1.0.5",
28
29
  "quill-image-drop-and-paste": "^2.0.1",
29
30
  "rxjs": "~7.8.1",
30
- "tailwind-scrollbar": "^3.1.0",
31
31
  "vanilla-jsoneditor": "^1.1.2"
32
32
  },
33
33
  "dependencies": {
34
- "tailwindcss": "^3.4.3",
34
+ "tailwindcss": "^4.0.6",
35
35
  "tslib": "^2.3.0"
36
36
  },
37
37
  "sideEffects": false,
@@ -57,6 +57,34 @@
57
57
  "types": "./version/index.d.ts",
58
58
  "default": "./fesm2022/cmat-version.mjs"
59
59
  },
60
+ "./directives/animate-on-scroll": {
61
+ "types": "./directives/animate-on-scroll/index.d.ts",
62
+ "default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
63
+ },
64
+ "./directives/arrow-cursor": {
65
+ "types": "./directives/arrow-cursor/index.d.ts",
66
+ "default": "./fesm2022/cmat-directives-arrow-cursor.mjs"
67
+ },
68
+ "./directives/autofocus": {
69
+ "types": "./directives/autofocus/index.d.ts",
70
+ "default": "./fesm2022/cmat-directives-autofocus.mjs"
71
+ },
72
+ "./directives/data-exporter": {
73
+ "types": "./directives/data-exporter/index.d.ts",
74
+ "default": "./fesm2022/cmat-directives-data-exporter.mjs"
75
+ },
76
+ "./directives/debounce": {
77
+ "types": "./directives/debounce/index.d.ts",
78
+ "default": "./fesm2022/cmat-directives-debounce.mjs"
79
+ },
80
+ "./directives/digit-only": {
81
+ "types": "./directives/digit-only/index.d.ts",
82
+ "default": "./fesm2022/cmat-directives-digit-only.mjs"
83
+ },
84
+ "./directives/equal-validator": {
85
+ "types": "./directives/equal-validator/index.d.ts",
86
+ "default": "./fesm2022/cmat-directives-equal-validator.mjs"
87
+ },
60
88
  "./components/adapter": {
61
89
  "types": "./components/adapter/index.d.ts",
62
90
  "default": "./fesm2022/cmat-components-adapter.mjs"
@@ -185,14 +213,14 @@
185
213
  "types": "./components/transfer-picker/index.d.ts",
186
214
  "default": "./fesm2022/cmat-components-transfer-picker.mjs"
187
215
  },
188
- "./components/treetable": {
189
- "types": "./components/treetable/index.d.ts",
190
- "default": "./fesm2022/cmat-components-treetable.mjs"
191
- },
192
216
  "./components/upload": {
193
217
  "types": "./components/upload/index.d.ts",
194
218
  "default": "./fesm2022/cmat-components-upload.mjs"
195
219
  },
220
+ "./components/treetable": {
221
+ "types": "./components/treetable/index.d.ts",
222
+ "default": "./fesm2022/cmat-components-treetable.mjs"
223
+ },
196
224
  "./components/x6-angular-shape": {
197
225
  "types": "./components/x6-angular-shape/index.d.ts",
198
226
  "default": "./fesm2022/cmat-components-x6-angular-shape.mjs"
@@ -201,58 +229,34 @@
201
229
  "types": "./lib/mock-api/index.d.ts",
202
230
  "default": "./fesm2022/cmat-lib-mock-api.mjs"
203
231
  },
204
- "./directives/animate-on-scroll": {
205
- "types": "./directives/animate-on-scroll/index.d.ts",
206
- "default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
207
- },
208
- "./directives/arrow-cursor": {
209
- "types": "./directives/arrow-cursor/index.d.ts",
210
- "default": "./fesm2022/cmat-directives-arrow-cursor.mjs"
211
- },
212
- "./directives/autofocus": {
213
- "types": "./directives/autofocus/index.d.ts",
214
- "default": "./fesm2022/cmat-directives-autofocus.mjs"
215
- },
216
- "./directives/data-exporter": {
217
- "types": "./directives/data-exporter/index.d.ts",
218
- "default": "./fesm2022/cmat-directives-data-exporter.mjs"
219
- },
220
- "./directives/debounce": {
221
- "types": "./directives/debounce/index.d.ts",
222
- "default": "./fesm2022/cmat-directives-debounce.mjs"
223
- },
224
- "./directives/digit-only": {
225
- "types": "./directives/digit-only/index.d.ts",
226
- "default": "./fesm2022/cmat-directives-digit-only.mjs"
227
- },
228
- "./directives/equal-validator": {
229
- "types": "./directives/equal-validator/index.d.ts",
230
- "default": "./fesm2022/cmat-directives-equal-validator.mjs"
231
- },
232
- "./pipes/bytes": {
233
- "types": "./pipes/bytes/index.d.ts",
234
- "default": "./fesm2022/cmat-pipes-bytes.mjs"
232
+ "./pipes/find-by-key": {
233
+ "types": "./pipes/find-by-key/index.d.ts",
234
+ "default": "./fesm2022/cmat-pipes-find-by-key.mjs"
235
235
  },
236
236
  "./pipes/date-format": {
237
237
  "types": "./pipes/date-format/index.d.ts",
238
238
  "default": "./fesm2022/cmat-pipes-date-format.mjs"
239
239
  },
240
- "./pipes/find-by-key": {
241
- "types": "./pipes/find-by-key/index.d.ts",
242
- "default": "./fesm2022/cmat-pipes-find-by-key.mjs"
240
+ "./pipes/bytes": {
241
+ "types": "./pipes/bytes/index.d.ts",
242
+ "default": "./fesm2022/cmat-pipes-bytes.mjs"
243
243
  },
244
244
  "./pipes/group-by": {
245
245
  "types": "./pipes/group-by/index.d.ts",
246
246
  "default": "./fesm2022/cmat-pipes-group-by.mjs"
247
247
  },
248
- "./pipes/keys": {
249
- "types": "./pipes/keys/index.d.ts",
250
- "default": "./fesm2022/cmat-pipes-keys.mjs"
248
+ "./services/alert": {
249
+ "types": "./services/alert/index.d.ts",
250
+ "default": "./fesm2022/cmat-services-alert.mjs"
251
251
  },
252
252
  "./pipes/secure": {
253
253
  "types": "./pipes/secure/index.d.ts",
254
254
  "default": "./fesm2022/cmat-pipes-secure.mjs"
255
255
  },
256
+ "./pipes/keys": {
257
+ "types": "./pipes/keys/index.d.ts",
258
+ "default": "./fesm2022/cmat-pipes-keys.mjs"
259
+ },
256
260
  "./pipes/uppercase": {
257
261
  "types": "./pipes/uppercase/index.d.ts",
258
262
  "default": "./fesm2022/cmat-pipes-uppercase.mjs"
@@ -261,14 +265,14 @@
261
265
  "types": "./services/config/index.d.ts",
262
266
  "default": "./fesm2022/cmat-services-config.mjs"
263
267
  },
264
- "./services/alert": {
265
- "types": "./services/alert/index.d.ts",
266
- "default": "./fesm2022/cmat-services-alert.mjs"
267
- },
268
268
  "./services/confirmation": {
269
269
  "types": "./services/confirmation/index.d.ts",
270
270
  "default": "./fesm2022/cmat-services-confirmation.mjs"
271
271
  },
272
+ "./services/loading": {
273
+ "types": "./services/loading/index.d.ts",
274
+ "default": "./fesm2022/cmat-services-loading.mjs"
275
+ },
272
276
  "./services/data": {
273
277
  "types": "./services/data/index.d.ts",
274
278
  "default": "./fesm2022/cmat-services-data.mjs"
@@ -277,10 +281,6 @@
277
281
  "types": "./services/export-as/index.d.ts",
278
282
  "default": "./fesm2022/cmat-services-export-as.mjs"
279
283
  },
280
- "./services/loading": {
281
- "types": "./services/loading/index.d.ts",
282
- "default": "./fesm2022/cmat-services-loading.mjs"
283
- },
284
284
  "./services/local-storage": {
285
285
  "types": "./services/local-storage/index.d.ts",
286
286
  "default": "./fesm2022/cmat-services-local-storage.mjs"
@@ -293,14 +293,14 @@
293
293
  "types": "./services/platform/index.d.ts",
294
294
  "default": "./fesm2022/cmat-services-platform.mjs"
295
295
  },
296
- "./services/splash-screen": {
297
- "types": "./services/splash-screen/index.d.ts",
298
- "default": "./fesm2022/cmat-services-splash-screen.mjs"
299
- },
300
296
  "./services/title": {
301
297
  "types": "./services/title/index.d.ts",
302
298
  "default": "./fesm2022/cmat-services-title.mjs"
303
299
  },
300
+ "./services/splash-screen": {
301
+ "types": "./services/splash-screen/index.d.ts",
302
+ "default": "./fesm2022/cmat-services-splash-screen.mjs"
303
+ },
304
304
  "./services/translation": {
305
305
  "types": "./services/translation/index.d.ts",
306
306
  "default": "./fesm2022/cmat-services-translation.mjs"
@@ -1,12 +1,14 @@
1
+ @reference "tailwindcss/theme";
2
+
1
3
  cmat-card {
2
- @apply border shadow bg-card m-2 hover:shadow-lg;
4
+ @apply border shadow-sm bg-card m-2 hover:shadow-lg;
3
5
 
4
6
  &.cmat-card-flippable {
5
7
  @apply shadow-none;
6
8
 
7
9
  .cmat-card-front,
8
10
  .cmat-card-back {
9
- @apply shadow bg-card;
11
+ @apply shadow-sm bg-card;
10
12
  }
11
13
  }
12
14
  }
@@ -19,7 +21,7 @@ cmat-card {
19
21
  }
20
22
 
21
23
  .menu-item {
22
- @apply outline-none;
24
+ @apply outline-hidden;
23
25
 
24
26
  &.disabled {
25
27
  @apply text-disabled;
@@ -53,7 +55,7 @@ cmat-cascade-menu {
53
55
  @apply bg-dialog;
54
56
 
55
57
  .menu-item {
56
- @apply bg-dialog outline-none;
58
+ @apply bg-dialog outline-hidden;
57
59
 
58
60
  &.disabled {
59
61
  @apply text-disabled;
@@ -90,7 +92,7 @@ cmat-date-range {
90
92
  width: $control-width;
91
93
  }
92
94
 
93
- @apply shadow-sm bg-white border-slate-300 dark:bg-black dark:bg-opacity-5 dark:border-slate-500 #{'!important'};
95
+ @apply shadow-xs bg-white border-slate-300 dark:bg-black/5 dark:border-slate-500;
94
96
  }
95
97
  }
96
98
 
@@ -127,7 +129,7 @@ cmat-date-range {
127
129
  td {
128
130
  .cmat-date-range {
129
131
  &:before {
130
- @apply bg-primary-200 #{'!important'};
132
+ @apply bg-primary-200;
131
133
  }
132
134
  }
133
135
  }
@@ -135,7 +137,7 @@ cmat-date-range {
135
137
  .cmat-date-range-start,
136
138
  .cmat-date-range-end {
137
139
  .mat-calendar-body-cell-content {
138
- @apply bg-primary text-on-primary #{'!important'};
140
+ @apply bg-primary text-on-primary;
139
141
  }
140
142
  }
141
143
  }
@@ -154,10 +156,6 @@ cmat-drawer {
154
156
  }
155
157
  }
156
158
 
157
- .cmat-datetimepicker-content {
158
- @apply bg-card text-hint #{'!important'};
159
- }
160
-
161
159
  @mixin landscape-calendar-header {
162
160
  .cmat-datetimepicker-calendar {
163
161
  display: flex;
@@ -302,7 +300,7 @@ cmat-drawer {
302
300
  }
303
301
 
304
302
  .cmat-datetimepicker-content {
305
- @apply shadow border-slate-300 bg-card dark:bg-black dark:bg-opacity-5 dark:border-slate-500;
303
+ @apply shadow-sm bg-card text-hint;
306
304
  }
307
305
 
308
306
  .cmat-confirmation-dialog-panel {
@@ -330,19 +328,19 @@ cmat-horizontal-navigation {
330
328
  .cmat-horizontal-navigation-item-active,
331
329
  .cmat-horizontal-navigation-item-active-forced {
332
330
  .cmat-horizontal-navigation-item-title {
333
- @apply text-primary #{'!important'};
331
+ @apply text-primary;
334
332
  }
335
333
 
336
334
  .cmat-horizontal-navigation-item-subtitle {
337
- @apply text-primary-400 #{'!important'};
335
+ @apply text-primary-400;
338
336
 
339
337
  .dark & {
340
- @apply text-primary-600 #{'!important'};
338
+ @apply text-primary-600;
341
339
  }
342
340
  }
343
341
 
344
342
  .cmat-horizontal-navigation-item-icon {
345
- @apply text-primary #{'!important'};
343
+ @apply text-primary;
346
344
  }
347
345
  }
348
346
  }
@@ -366,19 +364,19 @@ cmat-horizontal-navigation {
366
364
  .cmat-horizontal-navigation-item-active,
367
365
  .cmat-horizontal-navigation-item-active-forced {
368
366
  .cmat-horizontal-navigation-item-title {
369
- @apply text-primary #{'!important'};
367
+ @apply text-primary;
370
368
  }
371
369
 
372
370
  .cmat-horizontal-navigation-item-subtitle {
373
- @apply text-primary-400 #{'!important'};
371
+ @apply text-primary-400;
374
372
 
375
373
  .dark & {
376
- @apply text-primary-600 #{'!important'};
374
+ @apply text-primary-600;
377
375
  }
378
376
  }
379
377
 
380
378
  .cmat-horizontal-navigation-item-icon {
381
- @apply text-primary #{'!important'};
379
+ @apply text-primary;
382
380
  }
383
381
  }
384
382
  }
@@ -419,7 +417,7 @@ cmat-vertical-navigation-collapsable-item {
419
417
  &:not(.cmat-vertical-navigation-item-disabled) {
420
418
  &.cmat-vertical-navigation-item-active,
421
419
  &.cmat-vertical-navigation-item-active-forced {
422
- @apply bg-slate-800 bg-opacity-5 dark:bg-white dark:bg-opacity-12;
420
+ @apply bg-slate-800/5 dark:bg-white/12;
423
421
 
424
422
  .cmat-vertical-navigation-item-icon {
425
423
  @apply opacity-100;
@@ -438,7 +436,7 @@ cmat-vertical-navigation-collapsable-item {
438
436
  /* Hover state */
439
437
  &:not(.cmat-vertical-navigation-item-active-forced):not(.cmat-vertical-navigation-item-active):not(.cmat-vertical-navigation-item-disabled) {
440
438
  &:hover {
441
- @apply bg-slate-800 bg-opacity-5 dark:bg-white dark:bg-opacity-12;
439
+ @apply bg-slate-800/5 dark:bg-white/12;
442
440
 
443
441
  .cmat-vertical-navigation-item-icon {
444
442
  @apply opacity-100;
@@ -533,7 +531,7 @@ cmat-transfer-picker {
533
531
  @apply text-secondary bg-default;
534
532
 
535
533
  &.selected {
536
- @apply bg-primary bg-opacity-50;
534
+ @apply bg-primary/50;
537
535
  }
538
536
  }
539
537
  }
@@ -545,14 +543,14 @@ cmat-transfer-picker {
545
543
  }
546
544
 
547
545
  .transfer-picker-target {
548
- @apply shadow bg-card;
546
+ @apply shadow-sm bg-card;
549
547
 
550
548
  &-item:hover {
551
549
  @apply bg-hover;
552
550
  }
553
551
  }
554
552
  .mat-mdc-autocomplete-panel{
555
- @apply overflow-x-hidden overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom
553
+ @apply overflow-x-hidden overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom;
556
554
  }
557
555
 
558
556
  .cmat-upload-file-item:hover{
@@ -1,3 +1,5 @@
1
+ @reference "tailwindcss/theme";
2
+
1
3
  input,
2
4
  textarea {
3
5
  background: transparent;