ca-components 1.3.37 → 1.3.39

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 (86) hide show
  1. package/assets/scss/mixins.scss +18 -0
  2. package/assets/scss/text-selection.scss +39 -201
  3. package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +3 -3
  4. package/esm2022/lib/components/ca-checkbox/ca-checkbox.component.mjs +2 -2
  5. package/esm2022/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.mjs +2 -2
  6. package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +2 -2
  7. package/esm2022/lib/components/ca-comment/modals/comment-modal/comment-modal.component.mjs +3 -3
  8. package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +3 -3
  9. package/esm2022/lib/components/ca-details-dropdown/ca-details-dropdown.component.mjs +2 -2
  10. package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +2 -2
  11. package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +2 -2
  12. package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +2 -2
  13. package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +2 -2
  14. package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +2 -2
  15. package/esm2022/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.mjs +2 -2
  16. package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +2 -2
  17. package/esm2022/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.mjs +2 -2
  18. package/esm2022/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.mjs +3 -3
  19. package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +2 -2
  20. package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +2 -2
  21. package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +2 -2
  22. package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +2 -2
  23. package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
  24. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  25. package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +2 -2
  26. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +2 -2
  27. package/esm2022/lib/components/ca-input-note/ca-input-note.component.mjs +2 -2
  28. package/esm2022/lib/components/ca-input-test/input-test.component.mjs +2 -2
  29. package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +3 -3
  30. package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +3 -3
  31. package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +2 -2
  32. package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +3 -3
  33. package/esm2022/lib/components/ca-new-filter/ca-filter-dropdown.component.mjs +3 -3
  34. package/esm2022/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.mjs +3 -3
  35. package/esm2022/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.mjs +3 -3
  36. package/esm2022/lib/components/ca-ngx-slider/ca-ngx-slider.component.mjs +2 -2
  37. package/esm2022/lib/components/ca-note/ca-note.component.mjs +2 -2
  38. package/esm2022/lib/components/ca-note-container/ca-note-container.component.mjs +2 -2
  39. package/esm2022/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.mjs +3 -3
  40. package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +3 -3
  41. package/esm2022/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.mjs +3 -3
  42. package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +10 -9
  43. package/esm2022/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.mjs +3 -3
  44. package/esm2022/lib/components/ca-period-content/enums/index.mjs +2 -1
  45. package/esm2022/lib/components/ca-period-content/enums/period-title-type.enum.mjs +9 -0
  46. package/esm2022/lib/components/ca-period-content/utils/constants/color-map.mjs +9 -8
  47. package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +3 -3
  48. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.mjs +3 -3
  49. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.mjs +3 -3
  50. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.mjs +3 -3
  51. package/esm2022/lib/components/ca-profile-image/ca-profile-image.component.mjs +3 -3
  52. package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +2 -2
  53. package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +2 -2
  54. package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +2 -2
  55. package/esm2022/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.mjs +2 -2
  56. package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +2 -2
  57. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.mjs +3 -3
  58. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
  59. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +3 -3
  60. package/esm2022/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.mjs +2 -2
  61. package/esm2022/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.mjs +2 -2
  62. package/esm2022/lib/components/ca-spinner/ca-spinner.component.mjs +2 -2
  63. package/esm2022/lib/components/ca-tab-switch/ca-tab-switch.component.mjs +3 -3
  64. package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +3 -3
  65. package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +3 -3
  66. package/esm2022/lib/components/ca-tooltip-list/ca-tooltip-list.component.mjs +3 -3
  67. package/esm2022/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.mjs +2 -2
  68. package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +3 -3
  69. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
  70. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +2 -2
  71. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +3 -3
  72. package/esm2022/lib/components/ca-vehicle-list/ca-vehicle-list.component.mjs +2 -2
  73. package/esm2022/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.mjs +1 -1
  74. package/fesm2022/ca-components.mjs +157 -162
  75. package/fesm2022/ca-components.mjs.map +1 -1
  76. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  77. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.d.ts +3 -2
  78. package/lib/components/ca-period-content/enums/index.d.ts +1 -0
  79. package/lib/components/ca-period-content/enums/period-title-type.enum.d.ts +7 -0
  80. package/lib/components/ca-period-content/utils/constants/color-map.d.ts +2 -3
  81. package/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.d.ts +1 -1
  82. package/package.json +1 -1
  83. package/esm2022/lib/components/ca-period-content/utils/constants/index.mjs +0 -3
  84. package/esm2022/lib/components/ca-period-content/utils/constants/payroll-period-dropdown.constant.mjs +0 -15
  85. package/lib/components/ca-period-content/utils/constants/index.d.ts +0 -2
  86. package/lib/components/ca-period-content/utils/constants/payroll-period-dropdown.constant.d.ts +0 -10
@@ -0,0 +1,18 @@
1
+ @mixin text-selection($color, $opacity: 0.2) {
2
+ &::-moz-selection {
3
+ background-color: rgb($color, $opacity) !important;
4
+ color: $color !important;
5
+ }
6
+
7
+ &::selection {
8
+ background-color: rgb($color, $opacity) !important;
9
+ color: $color !important;
10
+ }
11
+ }
12
+
13
+ @mixin prevent-text-selection() {
14
+ -ms-user-select: none;
15
+ -webkit-user-select: none;
16
+ user-select: none;
17
+ -moz-user-select: none;
18
+ }
@@ -1,295 +1,133 @@
1
1
  @import 'theme/variables.scss';
2
+ @import './mixins.scss';
2
3
 
3
4
  .text {
4
5
  &-color {
5
6
  &-black {
6
7
  color: $ta-black !important;
7
-
8
- &::-moz-selection {
9
- background: rgb(66, 66, 66, 0.2) !important;
10
- color: $ta-black !important;
11
- }
12
-
13
- &::selection {
14
- background: rgb(66, 66, 66, 0.2) !important;
15
- color: $ta-black !important;
16
- }
8
+ @include text-selection($ta-black);
17
9
  }
18
10
 
19
11
  &-black-2 {
20
12
  color: $ta-black-2 !important;
21
-
22
- &::-moz-selection {
23
- background: rgb(47, 47, 47, 0.2) !important;
24
- color: $ta-black-2 !important;
25
- }
26
-
27
- &::selection {
28
- background: rgb(47, 47, 47, 0.2) !important;
29
- color: $ta-black-2 !important;
30
- }
13
+ @include text-selection($ta-black-2);
31
14
  }
32
15
 
33
16
  &-muted {
34
17
  color: $muted !important;
35
-
36
- &::-moz-selection {
37
- background: rgb(145, 145, 145, 0.2) !important;
38
- color: $muted !important;
39
- }
40
-
41
- &::selection {
42
- background: rgb(145, 145, 145, 0.2) !important;
43
- color: $muted !important;
44
- }
18
+ @include text-selection($muted);
45
19
  }
46
20
 
47
21
  &-green {
48
22
  color: $ta-green !important;
23
+ @include text-selection($ta-green);
24
+ }
49
25
 
50
- &::-moz-selection {
51
- background: rgb(86, 180, 172, 0.2) !important;
52
- color: $ta-green !important;
53
- }
54
-
55
- &::selection {
56
- background: rgb(86, 180, 172, 0.2) !important;
57
- color: $ta-green !important;
58
- }
26
+ &-green-2 {
27
+ color: $ta-green-2 !important;
28
+ @include text-selection($ta-green-2);
59
29
  }
60
30
 
61
31
  &-green-4 {
62
32
  color: $ta-green-4 !important;
63
-
64
- &::-moz-selection {
65
- background: rgb(134, 201, 195, 0.2) !important;
66
- color: $ta-green-4 !important;
67
- }
68
-
69
- &::selection {
70
- background: rgb(134, 201, 195, 0.2) !important;
71
- color: $ta-green-4 !important;
72
- }
33
+ @include text-selection($ta-green-4);
73
34
  }
74
35
 
75
36
  &-blue-13 {
76
37
  color: $ta-blue-13 !important;
77
-
78
- &::-moz-selection {
79
- background: rgb(102, 146, 24, 0.2) !important;
80
- color: $ta-blue-13 !important;
81
- }
82
-
83
- &::selection {
84
- background: rgb(102, 146, 24, 0.2) !important;
85
- color: $ta-blue-13 !important;
86
- }
38
+ @include text-selection($ta-blue-13);
87
39
  }
88
40
 
89
41
 
90
42
  &-blue-16 {
91
43
  color: $ta-blue-16 !important;
92
-
93
- &::-moz-selection {
94
- background: rgb(102, 146, 24, 0.2) !important;
95
- color: $ta-blue-16 !important;
96
- }
97
-
98
- &::selection {
99
- background: rgb(102, 146, 24, 0.2) !important;
100
- color: $ta-blue-16 !important;
101
- }
44
+ @include text-selection($ta-blue-16);
102
45
  }
103
46
 
104
47
  &-blue-18 {
105
48
  color: $ta-blue-18 !important;
106
-
107
- &::-moz-selection {
108
- background: rgb(59, 115, 237, 0.2) !important;
109
- color: $ta-blue-18 !important;
110
- }
111
-
112
- &::selection {
113
- background: rgb(59, 115, 237, 0.2) !important;
114
- color: $ta-blue-18 !important;
115
- }
49
+ @include text-selection($ta-blue-18);
116
50
  }
117
51
 
118
52
  &-blue-19 {
119
53
  color: $ta-blue-19 !important;
120
-
121
- &::-moz-selection {
122
- background: rgb(146, 177, 245, 0.2) !important;
123
- color: $ta-blue-19 !important;
124
- }
125
-
126
- &::selection {
127
- background: rgb(146, 177, 245, 0.2) !important;
128
- color: $ta-blue-19 !important;
129
- }
54
+ @include text-selection($ta-blue-19);
130
55
  }
131
56
 
132
57
  &-red-10 {
133
58
  color: $ta-red-10 !important;
59
+ @include text-selection($ta-red-10);
60
+ }
134
61
 
135
- &::-moz-selection {
136
- background: rgb(230, 103, 103, 0.2) !important;
137
- color: $ta-red-10 !important;
138
- }
139
-
140
- &::selection {
141
- background: rgb(230, 103, 103, 0.2) !important;
142
- color: $ta-red-10 !important;
143
- }
62
+ &-red-11 {
63
+ color: $ta-red-11 !important;
64
+ @include text-selection($ta-red-11);
144
65
  }
145
66
 
146
67
  &-red-13 {
147
68
  color: $ta-red-13 !important;
69
+ @include text-selection($ta-red-13);
70
+ }
148
71
 
149
- &::-moz-selection {
150
- background: rgb(237, 146, 146, 0.2) !important;
151
- color: $ta-red-13 !important;
152
- }
72
+ &-yellow {
73
+ color: $ta-yellow-1 !important;
74
+ @include text-selection($ta-yellow-1);
75
+ }
153
76
 
154
- &::selection {
155
- background: rgb(237, 146, 146, 0.2) !important;
156
- color: $ta-red-13 !important;
157
- }
77
+ &-purple{
78
+ color: $ta-purple-1 !important;
79
+ @include text-selection($ta-purple-1);
158
80
  }
159
81
 
160
82
  &-light-grey {
161
83
  color: $ta-light-grey !important;
162
-
163
- &::-moz-selection {
164
- background: rgb(229, 229, 229, 0.2) !important;
165
- color: $ta-light-grey !important;
166
- }
167
-
168
- &::selection {
169
- background: rgb(229, 229, 229, 0.2) !important;
170
- color: $ta-light-grey !important;
171
- }
84
+ @include text-selection($ta-light-grey);
172
85
  }
173
86
 
174
87
  &-light-grey-2 {
175
88
  color: $ta-light-grey-2 !important;
176
-
177
- &::-moz-selection {
178
- background: rgb(170, 170, 170, 0.2) !important;
179
- color: $ta-light-grey-2 !important;
180
- }
181
-
182
- &::selection {
183
- background: rgb(170, 170, 170, 0.2) !important;
184
- color: $ta-light-grey-2 !important;
185
- }
89
+ @include text-selection($ta-light-grey-2);
186
90
  }
187
91
 
188
92
  &-light-grey-6 {
189
93
  color: $ta-light-grey-6 !important;
190
-
191
- &::-moz-selection {
192
- color: $ta-light-grey-6 !important;
193
- background: rgb(170, 170, 170, 0.2) !important;
194
- }
195
-
196
- &::selection {
197
- color: $ta-light-grey-6 !important;
198
- background: rgb(170, 170, 170, 0.2) !important;
199
- }
94
+ @include text-selection($ta-light-grey-6);
200
95
  }
201
96
 
202
97
  &-white {
203
98
  color: $white !important;
204
-
205
- &::-moz-selection {
206
- color: $white !important;
207
- background: rgb(255, 255, 255, 0.2) !important;
208
- }
209
-
210
- &::selection {
211
- color: $white !important;
212
- background: rgb(255, 255, 255, 0.2) !important;
213
- }
99
+ @include text-selection($white);
214
100
  }
215
101
 
216
102
  &-white-2 {
217
103
  color: $white-2 !important;
218
-
219
- &::-moz-selection {
220
- color: $white !important;
221
- background: rgb(255, 255, 255, 0.2) !important;
222
- }
223
-
224
- &::selection {
225
- color: $white !important;
226
- background: rgb(255, 255, 255, 0.2) !important;
227
- }
104
+ @include text-selection($white);
228
105
  }
229
106
 
230
107
  &-white-4 {
231
108
  color: $white-4 !important;
232
-
233
- &::-moz-selection {
234
- color: $white-4 !important;
235
- background: rgb(255, 255, 255, 0.2) !important;
236
- }
237
-
238
- &::selection {
239
- color: $white-4 !important;
240
- background: rgb(255, 255, 255, 0.2) !important;
241
- }
109
+ @include text-selection($white-4);
242
110
  }
243
111
 
244
112
  &-bw6-2 {
245
113
  color: $bw6-2 !important;
246
-
247
- &::-moz-selection {
248
- color: $bw6-2 !important;
249
- background: rgba(108, 108, 108, 0.2) !important;
250
- }
251
- &::selection {
252
- color: $bw6-2 !important;
253
- background: rgba(108, 108, 108, 0.2) !important;
254
- }
114
+ @include text-selection($bw6-2);
255
115
  }
256
116
 
257
117
  &-bw-9 {
258
118
  color: $bw-9 !important;
259
-
260
- &::-moz-selection {
261
- color: $bw6-2 !important;
262
- background: rgba(108, 108, 108, 0.2) !important;
263
- }
264
- &::selection {
265
- color: $bw6-2 !important;
266
- background: rgba(108, 108, 108, 0.2) !important;
267
- }
119
+ @include text-selection($bw-9);
268
120
  }
269
121
 
270
122
  &-grey {
271
123
  color: $bw5 !important;
272
-
273
- &::-moz-selection {
274
- color: $bw5 !important;
275
- background: rgba(145, 145, 145, 0.2) !important;
276
- }
277
- &::selection {
278
- color: $bw5 !important;
279
- background: rgba(145, 145, 145, 0.2) !important;
280
- }
124
+ @include text-selection($bw5);
281
125
 
282
126
  .address-text,
283
127
  .marker-bold-text {
284
- &::-moz-selection {
285
- color: $bw5 !important;
286
- background: rgba(145, 145, 145, 0.2) !important;
287
- }
288
- &::selection {
289
- color: $bw5 !important;
290
- background: rgba(145, 145, 145, 0.2) !important;
291
- }
128
+ @include text-selection($bw5);
292
129
  }
293
130
  }
131
+
294
132
  }
295
133
  }