bpm-core 0.0.59 → 0.0.61

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 (39) hide show
  1. package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +3 -3
  2. package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +3 -3
  3. package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +3 -3
  4. package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +3 -3
  5. package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +3 -3
  6. package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +14 -7
  7. package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +6 -4
  8. package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +3 -3
  9. package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +4 -3
  10. package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +8 -4
  11. package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +3 -3
  12. package/esm2022/lib/components/shared-components/form-field/form-label/form-label.component.mjs +3 -3
  13. package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +3 -3
  14. package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +3 -3
  15. package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +3 -3
  16. package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +3 -3
  17. package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +3 -3
  18. package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +23 -8
  19. package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +3 -3
  20. package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +22 -17
  21. package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +3 -3
  22. package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +3 -3
  23. package/esm2022/lib/components/shared-components/form-field/validation-errors/validation-errors.component.mjs +1 -2
  24. package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +27 -4
  25. package/fesm2022/bpm-core.mjs +142 -87
  26. package/fesm2022/bpm-core.mjs.map +1 -1
  27. package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +3 -2
  28. package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +2 -1
  29. package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +7 -1
  30. package/lib/components/shared-components/form-field/shared-imports.d.ts +2 -2
  31. package/lib/testComponent/request-details-section/request-details-section.component.d.ts +3 -1
  32. package/package.json +1 -1
  33. package/src/lib/assets/scss/_general.scss +64 -152
  34. package/src/lib/assets/scss/_upgrade.scss +6 -0
  35. package/src/lib/assets/scss/base.scss +21 -16
  36. package/src/lib/assets/scss/components/_fields.scss +307 -0
  37. package/src/lib/assets/scss/components/_status.scss +29 -0
  38. package/src/lib/assets/scss/components/_table.scss +70 -0
  39. package/src/lib/assets/scss/components/_toggle.scss +27 -0
@@ -0,0 +1,307 @@
1
+ app-form-label {
2
+ display: block;
3
+ margin: 0 0 4px;
4
+ z-index: 10;
5
+ .form-label {
6
+ font-weight: 500;
7
+ font-size: 12px;
8
+ color: var(--dark);
9
+ text-transform: capitalize;
10
+ }
11
+ }
12
+
13
+ html mat-form-field.mat-mdc-form-field {
14
+ --input-border: 1px solid var(--gray);
15
+ --input-border-default: 1px solid var(--gray);
16
+ --input-border-active: 1px solid var(--gray);
17
+ --input-border-focuse: 1px solid var(--dark-gray);
18
+ --input-border-disabled: 1px solid var(--light-gray);
19
+ --input-fc-focuse: var(--black);
20
+ --input-fc-disabled: var(--gray);
21
+ --input-padding: 10px;
22
+ --input-radius: 4px;
23
+ --input-bg: white;
24
+ --input-height: 40px;
25
+ --input-fs: 14px;
26
+ --placeholder-fs: 14px;
27
+ --placeholder-fc: var(--gray);
28
+ --select-bg: white;
29
+ --select-gap: var(--off-white);
30
+ --mdc-theme-primary: white;
31
+ box-shadow: none;
32
+ .mat-mdc-form-field-infix {
33
+ gap: 5px;
34
+ }
35
+ .mat-mdc-input-element.mat-mdc-form-field-input-control.mdc-text-field__input {
36
+ padding-top: 2px;
37
+ }
38
+ }
39
+
40
+ .is--edit {
41
+ mat-form-field.mat-mdc-form-field {
42
+ --input-radius: 4px;
43
+ --input-height: 40px;
44
+ margin: 0;
45
+ }
46
+ }
47
+
48
+ .is--md {
49
+ mat-form-field.mat-mdc-form-field {
50
+ --input-height: 40px;
51
+ --input-radius: 8px;
52
+ }
53
+ }
54
+
55
+ .is--search {
56
+ mat-form-field.mat-mdc-form-field {
57
+ .mat-mdc-form-field-flex {
58
+ gap: 7px;
59
+ flex-direction: row;
60
+ }
61
+
62
+ .mat-mdc-form-field-icon-prefix {
63
+ padding-top: 3px;
64
+ }
65
+ }
66
+ }
67
+
68
+ .is--search-xs {
69
+ mat-form-field.mat-mdc-form-field {
70
+ --input-height: 40px;
71
+ --input-radius: 8px;
72
+
73
+ .mat-mdc-form-field-flex {
74
+ gap: 7px;
75
+ flex-direction: row;
76
+ }
77
+
78
+ .mat-mdc-form-field-icon-prefix {
79
+ padding-top: 3px;
80
+ }
81
+ }
82
+
83
+ app-form-label {
84
+ position: relative;
85
+ background-color: transparent;
86
+ display: inline-block;
87
+ margin: 0;
88
+ top: unset;
89
+ padding: 0;
90
+ z-index: 10;
91
+ margin-bottom: 5px;
92
+
93
+ .form-label {
94
+ color: var(--black);
95
+ font-size: 12px;
96
+ font-weight: 500;
97
+ text-transform: capitalize;
98
+ }
99
+ }
100
+ }
101
+
102
+ app-textarea {
103
+ mat-form-field.mat-mdc-form-field.custom-textarea,
104
+ mat-form-field.mat-mdc-form-field {
105
+ --input-height: 80px;
106
+
107
+ .mat-mdc-input-element.mat-mdc-form-field-input-control.mdc-text-field__input {
108
+ padding-top: 10px;
109
+ }
110
+ }
111
+ }
112
+
113
+ .mat-mdc-form-field-flex {
114
+ // flex-direction: row-reverse;
115
+ gap: 5px;
116
+ }
117
+
118
+ app-time-picker {
119
+ .mat-mdc-form-field-flex {
120
+ flex-direction: row;
121
+ gap: 5px;
122
+ }
123
+ }
124
+
125
+ .datePicker {
126
+ mat-form-field.mat-mdc-form-field {
127
+ --input-padding: 10px;
128
+ min-width: 190px;
129
+ }
130
+
131
+ .mat-mdc-form-field-flex {
132
+ flex-direction: row;
133
+ justify-content: space-between;
134
+ gap: 10px;
135
+ }
136
+
137
+ .mat-mdc-icon-button.mat-mdc-button-base {
138
+ --mdc-icon-button-state-layer-size: 40px;
139
+ width: auto;
140
+ color: var(--gray);
141
+
142
+ &:hover {
143
+ color: var(--purple);
144
+ transition: all 250ms ease-in-out;
145
+ }
146
+ }
147
+
148
+ .mat-mdc-icon-button .mat-mdc-button-touch-target {
149
+ width: auto;
150
+ height: 40px;
151
+ }
152
+
153
+ .mdc-icon-button__ripple {
154
+ display: none;
155
+ }
156
+
157
+ .mat-mdc-icon-button {
158
+ --mdc-icon-button-icon-size: 20px;
159
+
160
+ .datePicker__icon {
161
+ width: 20px;
162
+ height: 20px;
163
+ color: currentColor;
164
+
165
+ svg {
166
+ width: 20px;
167
+ height: 20px;
168
+ object-fit: contain;
169
+ object-position: center;
170
+ color: currentColor;
171
+ }
172
+ }
173
+ }
174
+
175
+ .mat-date-range-input-separator {
176
+ color: var(--placeholder-fc);
177
+ }
178
+
179
+ .mat-mdc-form-field-error {
180
+ position: absolute;
181
+ top: 4px;
182
+ }
183
+
184
+ .mat-date-range-input {
185
+ white-space: nowrap;
186
+ text-overflow: ellipsis;
187
+ }
188
+ }
189
+
190
+ mat-error {
191
+ color: var(--red);
192
+ }
193
+
194
+ .mat-datepicker-content
195
+ .mat-calendar
196
+ .mat-calendar-content
197
+ table.mat-calendar-table
198
+ .mat-calendar-body
199
+ tr
200
+ td
201
+ .mat-calendar-body-cell-content.mat-calendar-body-today {
202
+ border-color: var(--purple);
203
+ background-color: var(--purple);
204
+ color: white;
205
+ }
206
+
207
+ .mat-calendar {
208
+ background: white;
209
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
210
+ border-radius: 8px;
211
+ }
212
+
213
+ /*
214
+
215
+ ds-button.button--dropdown {
216
+ width: 100%;
217
+
218
+ &::part(wrapper) {
219
+ width: 100%;
220
+ justify-content: space-between;
221
+ }
222
+
223
+ &::part(base) {
224
+ --btn-border: 1px solid var(--light-gray);
225
+ --btn-fc-focuse: var(--black);
226
+ --btn-fc-disabled: var(--gray);
227
+ --btn-padding: 16px;
228
+ --btn-radius: 4px;
229
+ --btn-bg: white;
230
+ --btn-height: 40px;
231
+ --btn-fs: 14px;
232
+ --placeholder-fs: 14px;
233
+ --placeholder-fc: var(--gray);
234
+ --btn-bg-color: transparent;
235
+ --btn-color: var(--black);
236
+ --btn-border-color: var(--light-gray);
237
+ --btn-overlay-color: transparent;
238
+ }
239
+ }
240
+
241
+ .autocomplete__list {
242
+ padding: 0;
243
+ margin: 0;
244
+ list-style-type: none;
245
+
246
+ &-item {
247
+ list-style-type: none;
248
+ display: flex;
249
+ align-items: center;
250
+ justify-content: space-between;
251
+ margin-bottom: 20px;
252
+ list-style-type: none;
253
+
254
+ &:last-of-type {
255
+ margin: 0;
256
+ }
257
+ }
258
+
259
+ &-avatar {
260
+ display: inline-flex;
261
+ align-items: center;
262
+ gap: 10px;
263
+
264
+ figure {
265
+ padding: 0;
266
+ margin: 0;
267
+ border-radius: 36px;
268
+ width: 36px;
269
+ height: 36px;
270
+ overflow: hidden;
271
+
272
+ img {
273
+ object-fit: cover;
274
+ object-position: center;
275
+ width: 100%;
276
+ height: 100%;
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ .Chooses__box {
283
+ display: flex;
284
+ align-items: center;
285
+ gap: 8px;
286
+ margin-top: 12px;
287
+ .right,
288
+ .wrong {
289
+ width: 100%;
290
+ flex: 1;
291
+ display: flex;
292
+ justify-content: center;
293
+ align-items: center;
294
+ text-align: center;
295
+ height: 36px;
296
+ border-radius: 4px;
297
+ min-width: 64px;
298
+ }
299
+ .right {
300
+ background: rgba(0, 196, 140, 0.1);
301
+ }
302
+ .wrong {
303
+ background: rgba(255, 55, 95, 0.1);
304
+ }
305
+ }
306
+
307
+ */
@@ -0,0 +1,29 @@
1
+ ds-status[status="expired"]::part(base) {
2
+ --status-bg: rgba(var(--rgb-dark-gray), 30%);
3
+ --status-color: var(--dark-gray);
4
+ }
5
+
6
+ ds-status[status="canceled"]::part(base) {
7
+ --status-bg: rgba(var(--rgb-dark-gray), 80%);
8
+ --status-color: var(--dark-gray);
9
+ color: var(--black);
10
+ }
11
+
12
+ ds-status[status="send_back"]::part(base) {
13
+ --status-bg: rgba(var(--rgb-orange), 10%);
14
+ --status-color: var(--orange);
15
+ }
16
+
17
+ ds-status[status="send_back"][no-opacity]::part(base) {
18
+ --status-bg: var(--orange);
19
+ --status-color: var(--white);
20
+ }
21
+
22
+ ds-status[status="queued"]::part(base) {
23
+ --status-bg: rgba(250, 221, 96, 0.5);
24
+ --status-color: #1d252d;
25
+ }
26
+
27
+ ds-status.inbox::part(base) {
28
+ --status-width: 35px;
29
+ }
@@ -0,0 +1,70 @@
1
+ .table-responsive table,
2
+ .table-responsive .primary-table {
3
+ --th-height: 32px;
4
+ --th-bg: var(--purple);
5
+ --th-fc: var(--white);
6
+ --td-height: 60px;
7
+ --td-radius: 0;
8
+ --border-spacing: 0;
9
+ --border-collapse: collapse;
10
+ --tr-even-bc: var(--white);
11
+ --tr-odd-bc: var(--white);
12
+ --tr-border: 1px solid var(--light-gray);
13
+ --th-border: none;
14
+ --cell-pading: 0 24px;
15
+ --th-fs: 11px;
16
+
17
+ // tr.selected-row,
18
+ // tr.selected-row:hover {
19
+ // background-color: #ecfeff;
20
+ // border-inline-start: 3px solid var(--sea-light);
21
+ // }
22
+
23
+ tr {
24
+ background: white;
25
+ border-bottom: 1px solid var(--light-gray);
26
+ }
27
+
28
+ td.mat-mdc-cell.mat-mdc-table-sticky {
29
+ box-shadow: -10px 0px 10px 0px rgb(0 0 0 / 7%);
30
+ }
31
+
32
+ td {
33
+ text-align: center;
34
+ }
35
+
36
+ mat-form-field,
37
+ .e-control,
38
+ .mdc-form-field {
39
+ --input-height: 35px;
40
+ }
41
+ }
42
+
43
+ .mat-mdc-paginator {
44
+ border: 1px solid #f3f3f1;
45
+ border-radius: 0;
46
+ margin: 10px 0;
47
+ background: white;
48
+ border-left: 0;
49
+ border-right: 0;
50
+ --mat-paginator-container-background-color: white;
51
+ .mat-mdc-paginator-page-size {
52
+ display: flex;
53
+ align-items: center;
54
+ margin-right: 0;
55
+ gap: 8px;
56
+ }
57
+ mat-form-field.mat-mdc-form-field .mdc-text-field {
58
+ border: 0 none;
59
+ }
60
+ .mat-mdc-paginator-page-size-label {
61
+ margin: 0;
62
+ white-space: nowrap;
63
+ }
64
+ mat-form-field.mat-mdc-form-field.mat-mdc-form-field-type-mat-select {
65
+ --input-bg: white;
66
+ --placeholder-fc: var(--dark-gray);
67
+ --input-height: 30px;
68
+ --input-fs: 12px;
69
+ }
70
+ }
@@ -0,0 +1,27 @@
1
+ .Toggle__buttons {
2
+ --toggle-height: 40px;
3
+ --toggle-color: var(--dark-gray);
4
+ --toggle-color-active: var(--white);
5
+ --toggle-bg: transparent;
6
+ --toggle-bg-active: #fbf5ff;
7
+ --toggle-border: 1px solid var(--gray);
8
+ --toggle-group-radius: 0;
9
+ --mat-standard-button-toggle-shape: 0;
10
+ --toggle-radius: 4px;
11
+ --toggle-fs: 14px;
12
+ --toggle-color: #1e252d;
13
+ --toggle-padding: 2px 24px;
14
+ .mat-pseudo-checkbox {
15
+ display: none;
16
+ }
17
+ &:hover {
18
+ --toggle-bg: transparent;
19
+ }
20
+ .mat-button-toggle.mat-button-toggle-checked {
21
+ --toggle-color: #4f018b;
22
+ --toggle-border: 1px solid rgba(166, 79, 224, 0.8);
23
+ }
24
+ .mat-ripple {
25
+ display: none;
26
+ }
27
+ }