@masterteam/components 0.0.333 → 0.0.335

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 (45) hide show
  1. package/assets/common.css +2 -2
  2. package/fesm2022/masterteam-components-client-page.mjs +10 -4
  3. package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
  4. package/fesm2022/masterteam-components-dynamic-drawer.mjs +112 -112
  5. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-entities.mjs +8 -3
  7. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-formula.mjs +4 -4
  9. package/fesm2022/masterteam-components-formula.mjs.map +1 -1
  10. package/fesm2022/masterteam-components-select-field.mjs +2 -2
  11. package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
  12. package/fesm2022/masterteam-components-slider-field.mjs +2 -2
  13. package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-table.mjs +4 -4
  15. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  16. package/fesm2022/masterteam-components-tooltip.mjs +11 -3
  17. package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
  18. package/fesm2022/masterteam-components.mjs +3 -662
  19. package/fesm2022/masterteam-components.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/types/masterteam-components-client-page.d.ts +7 -2
  22. package/types/masterteam-components-entities.d.ts +3 -0
  23. package/types/masterteam-components-tooltip.d.ts +1 -0
  24. package/types/masterteam-components.d.ts +2 -174
  25. package/assets/ds-components/button.css +0 -385
  26. package/assets/ds-components/content-switcher.css +0 -124
  27. package/assets/ds-components/feedback.css +0 -220
  28. package/assets/ds-components/field.css +0 -526
  29. package/assets/ds-components/misc.css +0 -252
  30. package/assets/ds-components/overlay.css +0 -268
  31. package/assets/ds-components/pagination.css +0 -140
  32. package/assets/ds-components/selection-controls.css +0 -245
  33. package/assets/ds-components/surfaces.css +0 -173
  34. package/assets/ds-components/table.css +0 -142
  35. package/assets/ds-components/tabs.css +0 -331
  36. package/assets/ds-identity.css +0 -275
  37. package/assets/fonts/IBMPlexSansArabic-400-arabic.woff2 +0 -0
  38. package/assets/fonts/IBMPlexSansArabic-400-latin.woff2 +0 -0
  39. package/assets/fonts/IBMPlexSansArabic-500-arabic.woff2 +0 -0
  40. package/assets/fonts/IBMPlexSansArabic-500-latin.woff2 +0 -0
  41. package/assets/fonts/IBMPlexSansArabic-600-arabic.woff2 +0 -0
  42. package/assets/fonts/IBMPlexSansArabic-600-latin.woff2 +0 -0
  43. package/assets/fonts/IBMPlexSansArabic-700-arabic.woff2 +0 -0
  44. package/assets/fonts/IBMPlexSansArabic-700-latin.woff2 +0 -0
  45. package/assets/ibm-plex-sans-arabic.css +0 -100
@@ -1,526 +0,0 @@
1
- /* ==========================================================================
2
- Fields — transcribed from DS `TextInput/TextInput.module.css`
3
- --------------------------------------------------------------------------
4
- Applies to every `mt-*-field`, because they all bottom out in a PrimeNG
5
- input. The DS spec, verbatim:
6
-
7
- Height medium 32px · large 40px Border 1px, radius 4px
8
- Padding inline 8/12px Icon gap 8px
9
- Border default #D2D6DB · hover #1F2A37 · pressed #D2D6DB
10
- focus #D2D6DB · read-only #CED3DC · disabled #E5E7EB
11
- error #A30000
12
- Background default #FFF · pressed #F3F4F6 · read-only/disabled transparent
13
- Text #000B36 Placeholder #B6BDCA Disabled #6C7C96
14
- Label 14/400/20 #000B36, 8px above the field, required `*` #A30000
15
- Helper 14/400/20 #384250, error #A30000, 8px below the field
16
-
17
- Note the DS keeps the border neutral on focus — focus is signalled by the
18
- underline bar in ds-identity.css, not by a colour change.
19
- ========================================================================== */
20
-
21
- /* Every field control PrimeNG renders. */
22
- html.mt-ds
23
- :is(
24
- .p-inputtext,
25
- .p-textarea,
26
- .p-password-input,
27
- .p-inputnumber-input,
28
- .p-autocomplete-input,
29
- .p-datepicker-input,
30
- .p-select,
31
- .p-multiselect,
32
- .p-treeselect,
33
- .p-inputchips,
34
- .p-cascadeselect
35
- ) {
36
- min-height: var(--ds-field-height);
37
- border: 1px solid #d2d6db;
38
- border-radius: 4px;
39
- background-color: #ffffff;
40
- padding-inline: var(--ds-field-pad-x);
41
- font-family: var(--ds-font-sans);
42
- font-size: var(--ds-field-font);
43
- line-height: var(--ds-field-line);
44
- color: #000b36;
45
- box-shadow: none;
46
- }
47
-
48
- /* Single-line controls get an exact height; textarea stays auto, and the
49
- multiselect is deliberately absent — it grows with its chips (see below).
50
- Note this list's `:is()` carries the specificity of its *highest* argument,
51
- which `:not(textarea)` lifts to (0,2,2) — high enough to beat a later plain
52
- `.p-multiselect` rule, so removing it here is the fix rather than trying to
53
- out-specify it downstream. */
54
- html.mt-ds
55
- :is(
56
- .p-inputtext:not(textarea),
57
- .p-password-input,
58
- .p-inputnumber-input,
59
- .p-autocomplete-input,
60
- .p-datepicker-input,
61
- .p-select,
62
- .p-treeselect,
63
- .p-cascadeselect
64
- ) {
65
- height: var(--ds-field-height);
66
- padding-block: 0;
67
- }
68
-
69
- html.mt-ds .p-textarea {
70
- padding-block: 6px;
71
- }
72
-
73
- /* Sizes — the DS publishes medium (default) and large. */
74
- html.mt-ds
75
- :is(.p-inputtext-lg, .p-select-lg, .p-multiselect-lg, .p-treeselect-lg) {
76
- height: 40px;
77
- font-size: 16px;
78
- line-height: 24px;
79
- padding-inline: 12px;
80
- }
81
-
82
- html.mt-ds
83
- :is(.p-inputtext-sm, .p-select-sm, .p-multiselect-sm, .p-treeselect-sm) {
84
- height: 24px;
85
- font-size: 12px;
86
- line-height: 18px;
87
- }
88
-
89
- /* Select / multiselect render their value in a child label element. It is a
90
- block, not an input, so it needs explicit vertical centring — without this
91
- the placeholder sits against the top edge of the field. */
92
- html.mt-ds
93
- :is(
94
- .p-select-label,
95
- .p-multiselect-label,
96
- .p-treeselect-label,
97
- .p-cascadeselect-label
98
- ) {
99
- display: flex;
100
- align-items: center;
101
- height: 100%;
102
- padding: 0;
103
- font-size: inherit;
104
- line-height: inherit;
105
- color: inherit;
106
- }
107
-
108
- /* ── Multi-select chips ────────────────────────────────────────────────
109
- A multiselect holding chips cannot be a fixed-height box — the chips have to
110
- sit inside it and wrap onto further lines as they accumulate, so the field
111
- grows from the field-height floor instead. The chip is sized under the field's inner
112
- height so it never crowds the border.
113
-
114
- The chip class is matched loosely on purpose: PrimeNG has moved this element
115
- between `p-multiselect-chip`, `p-multiselect-chip-item` and a plain `p-chip`
116
- across versions, and a miss here is invisible until chips overflow. */
117
-
118
- html.mt-ds .p-multiselect {
119
- height: auto;
120
- min-height: var(--ds-field-height);
121
- padding-block: 2px;
122
- }
123
-
124
- html.mt-ds .p-multiselect-label {
125
- flex-wrap: wrap;
126
- gap: 4px;
127
- height: auto;
128
- min-height: 26px;
129
- padding-block: 0;
130
- }
131
-
132
- html.mt-ds .p-multiselect-label :is(.p-chip, [class*="chip"]) {
133
- height: 22px;
134
- min-height: 0;
135
- margin: 0;
136
- padding: 0 6px;
137
- border: none;
138
- border-radius: 4px;
139
- background: #f3f4f6;
140
- color: #000b36;
141
- font-size: 12px;
142
- font-weight: 500;
143
- line-height: 18px;
144
- }
145
-
146
- html.mt-ds
147
- .p-multiselect-label
148
- :is(.p-chip, [class*="chip"])
149
- :is(svg, .p-icon) {
150
- width: 12px;
151
- height: 12px;
152
- }
153
-
154
- /* ── Composite fields ──────────────────────────────────────────────────
155
- Some fields are a `.p-inputtext` *container* wrapping a real input — the
156
- colour picker is a swatch plus an `mt-text-field`. Styling both as a field
157
- draws a box inside a box. The outer element keeps the chrome; anything
158
- nested inside it is flattened. `.input-no-border` is the app-side marker for
159
- the same intent. */
160
-
161
- html.mt-ds .p-inputtext .p-inputtext,
162
- html.mt-ds .input-no-border .p-inputtext {
163
- height: auto;
164
- min-height: 0;
165
- border: none;
166
- border-radius: 0;
167
- background-color: transparent;
168
- background-image: none;
169
- box-shadow: none;
170
- padding-inline: 0;
171
- }
172
-
173
- html.mt-ds .p-inputtext mt-field-validation {
174
- display: none;
175
- }
176
-
177
- /* ── Multi-value autocomplete ──────────────────────────────────────────
178
- In multiple mode the chips list is the field and the typing input lives
179
- inside it. Give the chrome to the list and strip it from the inner input,
180
- or two stacked boxes appear. */
181
-
182
- html.mt-ds .p-autocomplete-input-multiple {
183
- display: flex;
184
- flex-wrap: wrap;
185
- align-items: center;
186
- gap: 4px;
187
- min-height: var(--ds-field-height);
188
- height: auto;
189
- margin: 0;
190
- padding: 2px 8px;
191
- border: 1px solid #d2d6db;
192
- border-radius: 4px;
193
- background: #ffffff;
194
- font-family: var(--ds-font-sans);
195
- list-style: none;
196
- }
197
-
198
- html.mt-ds .p-autocomplete-input-multiple:hover {
199
- border-color: #1f2a37;
200
- }
201
-
202
- /* The typing input sits in its own `<li>`. Left alone, the input keeps the
203
- full field height and the `li` adds its own padding on top, so the list
204
- stacks to ~51px against a 40px field. Both are pinned to a fixed inner
205
- height — `auto` is not enough here, because an input's auto height still
206
- resolves from the inherited line box rather than collapsing. */
207
- html.mt-ds .p-autocomplete-input-multiple .p-autocomplete-input-chip {
208
- display: flex;
209
- align-items: center;
210
- padding: 0;
211
- margin: 0;
212
- }
213
-
214
- html.mt-ds .p-autocomplete-input-multiple input,
215
- html.mt-ds .p-autocomplete-input-multiple input.p-autocomplete-input,
216
- html.mt-ds .p-autocomplete-input-chip input {
217
- height: 24px;
218
- min-height: 0;
219
- padding: 0;
220
- border: none;
221
- border-radius: 0;
222
- background-color: transparent;
223
- background-image: none;
224
- box-shadow: none;
225
- font-size: 14px;
226
- line-height: 20px;
227
- }
228
-
229
- /* ── Date field ────────────────────────────────────────────────────────
230
- PrimeNG renders the date picker as an input with a *attached button* — two
231
- boxes with split radii, and the button only 20px tall inside the field row. The
232
- DS treats it like the search field: one field box with the icon sitting
233
- inside it. So the wrapper takes the chrome and both children go flat. */
234
-
235
- html.mt-ds .p-datepicker:not(.p-datepicker-panel) {
236
- display: inline-flex;
237
- align-items: center;
238
- width: 100%;
239
- height: var(--ds-field-height);
240
- padding-inline: var(--ds-field-pad-x);
241
- border: 1px solid #d2d6db;
242
- border-radius: 4px;
243
- background: #ffffff;
244
- transition: border-color var(--ds-transition-fast);
245
- }
246
-
247
- html.mt-ds .p-datepicker:not(.p-datepicker-panel, .p-disabled):hover {
248
- border-color: #1f2a37;
249
- }
250
-
251
- html.mt-ds .p-datepicker .p-datepicker-input {
252
- flex: 1;
253
- min-width: 0;
254
- height: auto;
255
- min-height: 0;
256
- padding-inline: 0;
257
- border: none;
258
- border-radius: 0;
259
- background-color: transparent;
260
- background-image: none;
261
- box-shadow: none;
262
- }
263
-
264
- html.mt-ds .p-datepicker .p-datepicker-dropdown {
265
- width: 20px;
266
- min-width: 20px;
267
- height: 20px;
268
- padding: 0;
269
- border: none;
270
- border-radius: 0;
271
- background: transparent;
272
- color: #6b7280;
273
- }
274
-
275
- html.mt-ds .p-autocomplete-chip {
276
- height: 24px;
277
- border-radius: 4px;
278
- background: #f3f4f6;
279
- font-size: 12px;
280
- line-height: 18px;
281
- color: #000b36;
282
- }
283
-
284
- /* ── States ────────────────────────────────────────────────────────────── */
285
-
286
- html.mt-ds
287
- :is(
288
- .p-inputtext,
289
- .p-textarea,
290
- .p-select,
291
- .p-multiselect,
292
- .p-treeselect,
293
- .p-datepicker-input
294
- ):not(:disabled, .p-disabled, [readonly], .p-invalid):hover {
295
- border-color: #1f2a37;
296
- }
297
-
298
- html.mt-ds
299
- :is(.p-inputtext, .p-textarea):not(:disabled, [readonly], .p-invalid):active {
300
- background-color: #f3f4f6;
301
- }
302
-
303
- html.mt-ds
304
- :is(.p-inputtext, .p-textarea, .p-select, .p-multiselect, .p-treeselect):not(
305
- .p-invalid
306
- ):is(:focus, .p-focus) {
307
- border-color: #d2d6db;
308
- outline: none;
309
- box-shadow: none;
310
- }
311
-
312
- html.mt-ds :is(.p-inputtext, .p-textarea)[readonly] {
313
- border-color: #ced3dc;
314
- background-color: transparent;
315
- }
316
-
317
- html.mt-ds
318
- :is(.p-inputtext, .p-textarea, .p-select, .p-multiselect, .p-treeselect):is(
319
- :disabled,
320
- .p-disabled
321
- ) {
322
- border-color: #e5e7eb;
323
- background-color: transparent;
324
- color: #6c7c96;
325
- opacity: 1;
326
- }
327
-
328
- html.mt-ds
329
- :is(
330
- .p-inputtext,
331
- .p-textarea,
332
- .p-select,
333
- .p-multiselect,
334
- .p-treeselect
335
- ).p-invalid,
336
- html.mt-ds :is(.p-inputtext, .p-textarea).ng-invalid.ng-touched {
337
- border-color: #a30000;
338
- }
339
-
340
- html.mt-ds :is(.p-inputtext, .p-textarea)::placeholder,
341
- html.mt-ds :is(.p-select-label, .p-multiselect-label).p-placeholder {
342
- color: #b6bdca;
343
- opacity: 1;
344
- }
345
-
346
- /* ── Label ─────────────────────────────────────────────────────────────── */
347
-
348
- html.mt-ds
349
- :is(
350
- mt-text-field,
351
- mt-textarea-field,
352
- mt-number-field,
353
- mt-select-field,
354
- mt-multi-select-field,
355
- mt-date-field,
356
- mt-checkbox-field,
357
- mt-toggle-field,
358
- mt-radio-button-field,
359
- mt-slider-field,
360
- mt-color-picker-field,
361
- mt-icon-field,
362
- mt-user-search-field,
363
- mt-treeselect-field,
364
- mt-upload-field,
365
- mt-editor-field,
366
- mt-location-field,
367
- mt-pick-list-field
368
- )
369
- > label {
370
- display: block;
371
- margin-bottom: 8px;
372
- font-family: var(--ds-font-sans);
373
- font-size: 14px;
374
- font-weight: 400;
375
- line-height: 20px;
376
- color: #000b36;
377
- }
378
-
379
- html.mt-ds label.required::after {
380
- content: "*";
381
- color: #a30000;
382
- padding-inline-start: 4px;
383
- }
384
-
385
- /* ── Helper / validation ───────────────────────────────────────────────── */
386
-
387
- /* Typography and the 8px field→helper gap only. Visibility stays with the
388
- component, which hides itself unless the control can actually error —
389
- forcing `display: block` here reserves an empty line under every field. */
390
- html.mt-ds mt-field-validation {
391
- margin-top: 8px;
392
- font-family: var(--ds-font-sans);
393
- font-size: 14px;
394
- line-height: 20px;
395
- color: #384250;
396
- }
397
-
398
- /* `mt-field-validation` renders a PrimeNG `p-message` in its `simple` variant.
399
- That shares a class with the full-width DS notification banner, so the
400
- banner's chrome — 56px min-height, tint, bottom accent — has to be undone
401
- here or every field error becomes a block of red. */
402
- html.mt-ds mt-field-validation .p-message,
403
- html.mt-ds .p-message.p-message-simple {
404
- min-height: 0;
405
- padding: 0;
406
- border: none;
407
- border-radius: 0;
408
- background: transparent;
409
- font-size: 14px;
410
- line-height: 20px;
411
- }
412
-
413
- html.mt-ds mt-field-validation .p-message::after,
414
- html.mt-ds .p-message.p-message-simple::after {
415
- content: none;
416
- }
417
-
418
- html.mt-ds mt-field-validation :is(.p-message, .p-message-text) {
419
- color: #a30000;
420
- font-size: 14px;
421
- line-height: 20px;
422
- }
423
-
424
- /* ── Inline icons ──────────────────────────────────────────────────────── */
425
-
426
- /* The chevron is a flex child of a stretch-aligned row. Giving it a fixed
427
- height turns stretch into flex-start, so it rides 5px above the field's
428
- centre — `align-self: center` is what actually centres it. PrimeNG also
429
- rounds it as if it were an attached button, which has to be undone now that
430
- it is a bare icon. */
431
- html.mt-ds
432
- :is(
433
- .p-inputicon,
434
- .p-select-dropdown,
435
- .p-multiselect-dropdown,
436
- .p-treeselect-dropdown,
437
- .p-cascadeselect-dropdown,
438
- .p-datepicker-dropdown
439
- ) {
440
- display: inline-flex;
441
- align-items: center;
442
- justify-content: center;
443
- align-self: center;
444
- flex-shrink: 0;
445
- width: 20px;
446
- height: 20px;
447
- border: none;
448
- border-radius: 0;
449
- background: transparent;
450
- color: #6b7280;
451
- }
452
-
453
- html.mt-ds
454
- :is(.p-select-dropdown, .p-multiselect-dropdown, .p-datepicker-dropdown)
455
- :is(svg, .p-icon) {
456
- width: 16px;
457
- height: 16px;
458
- }
459
-
460
- /* ── Input groups ──────────────────────────────────────────────────────
461
- A group is one field row, so every segment matches the field height —
462
- otherwise the tallest child (here a trailing action button) sets the row and
463
- the control ends up 6px taller than every other field on the form. Groups
464
- wrapping a chips list stay auto-height so chips can wrap. */
465
-
466
- html.mt-ds .p-inputgroup {
467
- display: flex;
468
- align-items: stretch;
469
- min-height: var(--ds-field-height);
470
- }
471
-
472
- html.mt-ds .p-inputgroup > * {
473
- align-self: stretch;
474
- }
475
-
476
- html.mt-ds .p-inputgroup :is(.p-inputtext, .p-autocomplete-input) {
477
- height: var(--ds-field-height);
478
- }
479
-
480
- /* PrimeNG emits the addon as `p-inputgroupaddon` — one word, no hyphen —
481
- while most of its other parts are hyphenated. Both spellings are matched so
482
- the rule cannot silently miss. */
483
- html.mt-ds
484
- .p-inputgroup
485
- :is(.p-button, .p-inputgroupaddon, .p-inputgroup-addon) {
486
- height: var(--ds-field-height);
487
- min-height: var(--ds-field-height);
488
- padding-inline: 8px;
489
- }
490
-
491
- html.mt-ds :is(.p-inputgroupaddon, .p-inputgroup-addon) {
492
- display: inline-flex;
493
- align-items: center;
494
- border: 1px solid #d2d6db;
495
- background: #f9fafb;
496
- color: #6b7280;
497
- font-size: 14px;
498
- line-height: 20px;
499
- }
500
-
501
- /* Segment the corners: only the outer edges of the group are rounded. The
502
- blanket 4px on `.p-inputtext` would otherwise round the control's trailing
503
- corners underneath the addon sitting against it. */
504
- html.mt-ds .p-inputgroup > :first-child,
505
- html.mt-ds
506
- .p-inputgroup
507
- > :first-child
508
- :is(.p-inputtext, .p-autocomplete-input) {
509
- border-start-end-radius: 0;
510
- border-end-end-radius: 0;
511
- }
512
-
513
- html.mt-ds .p-inputgroup > :last-child,
514
- html.mt-ds
515
- .p-inputgroup
516
- > :last-child
517
- :is(.p-inputtext, .p-autocomplete-input) {
518
- border-start-start-radius: 0;
519
- border-end-start-radius: 0;
520
- }
521
-
522
- html.mt-ds .p-inputgroup:has(.p-autocomplete-input-multiple),
523
- html.mt-ds .p-inputgroup:has(.p-autocomplete-input-multiple) > * {
524
- height: auto;
525
- min-height: var(--ds-field-height);
526
- }