@nys-cui/cui-formpill 0.2.9 → 0.2.20

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 (41) hide show
  1. package/component-base/README.md +43 -0
  2. package/component-base/cui.jsonc +6 -0
  3. package/component-base/package.json +42 -0
  4. package/component-base/src/assets/scss/_button-menu.scss +270 -0
  5. package/component-base/src/assets/scss/_buttons.scss +200 -0
  6. package/component-base/src/assets/scss/_cui-asof.scss +86 -0
  7. package/component-base/src/assets/scss/_cui-formpill.scss +284 -0
  8. package/component-base/src/assets/scss/_cui-general.scss +19 -0
  9. package/component-base/src/assets/scss/_cui-message.scss +119 -0
  10. package/component-base/src/assets/scss/_cui-spinner.scss +27 -0
  11. package/component-base/src/assets/scss/_cui-tree.scss +136 -0
  12. package/component-base/src/assets/scss/_cui-widget.scss +128 -0
  13. package/component-base/src/assets/scss/_field-check-group.scss +296 -0
  14. package/component-base/src/assets/scss/_field-radio-group.scss +236 -0
  15. package/component-base/src/assets/scss/_fonts.scss +20 -0
  16. package/component-base/src/assets/scss/_globalNotes.scss +419 -0
  17. package/component-base/src/assets/scss/_grid.scss +489 -0
  18. package/component-base/src/assets/scss/_help.scss +46 -0
  19. package/component-base/src/assets/scss/_inputs.scss +1145 -0
  20. package/component-base/src/assets/scss/_modal.scss +56 -0
  21. package/component-base/src/assets/scss/_normalize.scss +3 -0
  22. package/component-base/src/assets/scss/_popovers.scss +119 -0
  23. package/component-base/src/assets/scss/_quick_lookup.scss +87 -0
  24. package/component-base/src/assets/scss/_sidebar-context.scss +896 -0
  25. package/component-base/src/assets/scss/_table.scss +702 -0
  26. package/component-base/src/assets/scss/_toast.scss +219 -0
  27. package/component-base/src/assets/scss/_utility.scss +64 -0
  28. package/component-base/src/assets/scss/_variables.scss +58 -0
  29. package/component-base/src/assets/scss/main.scss +451 -0
  30. package/component-base/src/assets/scss/normalize/_import-now.scss +11 -0
  31. package/component-base/src/assets/scss/normalize/_normalize-mixin.scss +570 -0
  32. package/component-base/src/assets/scss/normalize/_variables.scss +37 -0
  33. package/component-base/src/assets/scss/normalize/_vertical-rhythm.scss +63 -0
  34. package/component-base/src/assets/scss/readme.md +1 -0
  35. package/component-base/src/modules/dom.js +21 -0
  36. package/component-base/src/screens/index/cui.jsonc +3 -0
  37. package/component-base/src/screens/index/index.js +228 -0
  38. package/component-base/src/screens/index/index.tpl.html +32 -0
  39. package/component-base/src/spa.js +117 -0
  40. package/package.json +1 -1
  41. package/src/cui-formpill.js +452 -999
@@ -0,0 +1,1145 @@
1
+ @use "sass:selector";
2
+ @use '_variables.scss';
3
+
4
+ $_cui_field_components: 'cui-field',
5
+ 'cui-text',
6
+ 'cui-textarea',
7
+ 'cui-date',
8
+ 'cui-listbox',
9
+ 'cui-radio-group',
10
+ 'cui-checkbox',
11
+ 'cui-check-group';
12
+
13
+ $field_data_contents: selector.append($_cui_field_components, '::part(data-contents)');
14
+
15
+ #{$field_data_contents} {
16
+ display: flex;
17
+ }
18
+
19
+ input,
20
+ select {
21
+ background: #fff;
22
+ font-size: var(--standard-font-size);
23
+ font-weight: 600;
24
+ padding: 2px 5px;
25
+ height: 26px;
26
+ max-width: 100%;
27
+
28
+ &[type="checkbox"] {
29
+ height: 15px;
30
+ min-height: auto;
31
+ max-height: auto;
32
+ width: 15px;
33
+ }
34
+ }
35
+
36
+ textarea {
37
+ background: #fff;
38
+ font-size: var(--standard-font-size);
39
+ font-weight: 600;
40
+ padding: 6px 5px 2px;
41
+ width: 100%;
42
+ }
43
+
44
+ input,
45
+ select,
46
+ textarea {
47
+ border: 1px solid variables.$inputBorderColor;
48
+ border-radius: variables.$inputBorderRadius;
49
+ box-sizing: border-box;
50
+ min-height: 33px;
51
+
52
+ &:focus {
53
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
54
+ outline: 0;
55
+ }
56
+
57
+ }
58
+
59
+ #{$_cui_field_components} {
60
+ display: block;
61
+ margin-bottom: 10px;
62
+ max-width: 100%;
63
+ }
64
+
65
+ cui-input-group {
66
+ margin-bottom: 10px;
67
+
68
+ cui-date,
69
+ cui-text {
70
+ margin-bottom: 0px;
71
+ }
72
+ }
73
+
74
+ cui-text,
75
+ cui-textarea,
76
+ cui-formpill,
77
+ cui-listbox,
78
+ cui-date {
79
+
80
+ &[required] {
81
+
82
+ label {
83
+ position: relative;
84
+
85
+ &::after {
86
+ content: "*";
87
+ display: inline-block;
88
+ font-size: 0.75rem;
89
+ color: var(--error-color);
90
+ position: absolute;
91
+ right: -0.675rem;
92
+ }
93
+
94
+ }
95
+
96
+ }
97
+
98
+ }
99
+
100
+ cui-checkbox[required]::part(label-boolean-wrapper) {
101
+ display: inline-flex;
102
+
103
+ &::after {
104
+ content: "*";
105
+ display: inline-block;
106
+ font-size: 0.75rem;
107
+ color: var(--error-color);
108
+ position: relative;
109
+ right: -0.3rem;
110
+ }
111
+ }
112
+
113
+ cui-radio-group,
114
+ cui-check-group {
115
+
116
+ &[required] {
117
+
118
+ span[slot="labelContents"] {
119
+ position: relative;
120
+
121
+ &::after {
122
+ content: "*";
123
+ display: inline-block;
124
+ font-size: 0.75rem;
125
+ color: var(--error-color);
126
+ position: absolute;
127
+ right: -0.675rem;
128
+ }
129
+
130
+ }
131
+
132
+ }
133
+
134
+ }
135
+
136
+ cui-file-upload {
137
+ div[slot="dataContents"] {
138
+ margin-bottom: 10px;
139
+
140
+ span {
141
+ display: flex;
142
+ flex-direction: row;
143
+ align-items: center;
144
+ justify-content: end;
145
+ // margin-left: 15px;
146
+ text-wrap: nowrap;
147
+
148
+ button.remove {
149
+ margin: 0;
150
+ margin-left: 10px;
151
+ padding: 0 5px;
152
+
153
+ cui-icon {
154
+ svg {
155
+ width: 18px;
156
+ height: 18px;
157
+ margin-top: 3px;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ .progress {
164
+ border-bottom-width: 5px;
165
+ border-bottom-style: solid;
166
+ border-bottom-color: #4CAF50;
167
+ margin-top: 2px;
168
+ border-radius: 10px;
169
+ width: 0px;
170
+ }
171
+ }
172
+
173
+ div[slot="dataContents"]+div[slot="dataContents"] {
174
+ margin-top: 10px;
175
+ }
176
+
177
+
178
+ &::part(data-wrapper) {
179
+ margin-left: 10px;
180
+ padding-right: 5px;
181
+ }
182
+
183
+ button[slot="controls"] {
184
+ max-width: 150px;
185
+ margin-top: 10px;
186
+ margin-bottom: 0px;
187
+ background-color: #397dbb;
188
+ color: #fff;
189
+ cursor: pointer;
190
+ border: 1px solid #a1a1a1;
191
+ border-radius: 5px;
192
+ }
193
+
194
+ &.multi {
195
+ span[slot="dataContents"]:nth-last-child(1) {
196
+ margin-bottom: 10px;
197
+ }
198
+
199
+ &::part(data-contents) {
200
+ display: flex;
201
+ flex-direction: column;
202
+
203
+ }
204
+ }
205
+
206
+ cui-message-list {
207
+ width: 100%;
208
+ }
209
+ }
210
+
211
+ cui-textarea {
212
+ width: 100%;
213
+ }
214
+
215
+ cui-listbox {
216
+
217
+ cui-button {
218
+
219
+ button {
220
+ margin: 0;
221
+ }
222
+
223
+ }
224
+
225
+ &::part(outer-wrapper) {
226
+ display: flex;
227
+ flex-direction: column;
228
+ }
229
+
230
+ &::part(data-wrapper) {
231
+ display: flex;
232
+ }
233
+
234
+ &::part(control-container) {
235
+ align-content: center;
236
+ display: flex;
237
+ flex-wrap: wrap;
238
+ margin-left: 7px;
239
+ }
240
+
241
+ &::part(decorator-container) {
242
+ align-self: center;
243
+ display: flex;
244
+ }
245
+
246
+ &::part(listbox-outer-wrapper) {
247
+ align-items: flex-end;
248
+ }
249
+
250
+ &::part(listbox-inner-wrapper) {
251
+ max-width: 100%;
252
+ }
253
+
254
+ &::part(listbox-contents) {
255
+ max-width: 100%;
256
+ }
257
+
258
+ &::part(psuedo-input) {
259
+ border: 1px solid variables.$inputBorderColor;
260
+ border-radius: variables.$inputBorderRadius;
261
+ min-height: 33px;
262
+
263
+ &:focus {
264
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
265
+ outline: 0;
266
+ }
267
+ }
268
+
269
+ &::part(listbox-arrow):before {
270
+ top: 3px;
271
+ border-left: 4px solid rgba(0, 0, 0, 0);
272
+ border-right: 4px solid rgba(0, 0, 0, 0);
273
+ border-top: 4px solid #2f2f2f;
274
+ }
275
+
276
+ &::part(hidden-select) {
277
+ padding: 0 15px;
278
+ }
279
+
280
+ &::part(hidden-select multiple) {
281
+ padding: 0 15px 0 25px;
282
+ }
283
+
284
+ &::part(listbox-code-desc-code) {
285
+ margin-right: 0;
286
+ }
287
+
288
+ &::part(listbox-code-desc-selection-code) {
289
+ margin-right: 13px;
290
+ }
291
+
292
+ &::part(listbox-code-desc-selection-desc) {
293
+ position: relative;
294
+
295
+ &:before {
296
+ content: "-";
297
+ display: inline-block;
298
+ font-size: 14px;
299
+ font-weight: 14px;
300
+ position: absolute;
301
+ top: -1px;
302
+ left: -8px;
303
+ }
304
+ }
305
+
306
+ &::part(listbox-code-desc-descript) {
307
+ padding-left: 13px;
308
+ position: relative;
309
+
310
+ &:before {
311
+ content: "-";
312
+ display: inline-block;
313
+ font-size: 14px;
314
+ font-weight: 14px;
315
+ position: absolute;
316
+ top: -2px;
317
+ left: 5px;
318
+ }
319
+ }
320
+
321
+ &::part(pill-value-codedesc-label) {
322
+ padding-left: 13px;
323
+ position: relative;
324
+
325
+ &:before {
326
+ content: "-";
327
+ display: inline-block;
328
+ font-size: 14px;
329
+ font-weight: 14px;
330
+ position: absolute;
331
+ top: -2px;
332
+ left: 5px;
333
+ }
334
+ }
335
+
336
+ &::part(pill-close-control) {
337
+ color: #6B6B6B;
338
+ }
339
+
340
+ &::part(pill-close-control):hover {
341
+ color: #4D4D4D;
342
+ }
343
+
344
+ &::part(listbox-mobile-dialog) {
345
+
346
+ &::part(listbox-options-container) {
347
+ height: auto;
348
+ }
349
+
350
+ }
351
+
352
+ &::part(presentation-generic) {
353
+ padding-left: 5px;
354
+ }
355
+
356
+ &[readOnly] {
357
+
358
+ &::part(hidden-select) {
359
+ display: none;
360
+ }
361
+
362
+ &::part(psuedo-input) {
363
+ border: 0;
364
+ min-height: auto;
365
+ }
366
+
367
+ & div[slot="dataContents"] {
368
+ font-weight: 600;
369
+ }
370
+
371
+ &::part(outer-wrapper) {
372
+ align-items: center;
373
+ }
374
+
375
+ &::part(listbox-outer-wrapper) {
376
+ height: 100%;
377
+ }
378
+
379
+ &::part(listbox-value-container) {
380
+ white-space: pre;
381
+ margin-top: 0;
382
+ }
383
+
384
+ &::part(listbox-contents) {
385
+ align-items: center;
386
+ display: flex;
387
+ }
388
+
389
+ }
390
+
391
+ &::part(option-multiple) {
392
+ padding: 0;
393
+ }
394
+
395
+ &[multiple] {
396
+
397
+ &::part(presentation-generic) {
398
+ padding-left: 5px;
399
+ }
400
+
401
+ &::part(listbox-multiple-option) {
402
+ padding: var(--input-option-padding-tb) var(--input-option-padding-right) var(--input-option-padding-tb) calc(var(--input-option-padding-left) + 5px)
403
+ }
404
+
405
+ &::part(listbox-multiple-option-control) {
406
+ border-radius: 16px;
407
+ height: 16px;
408
+ width: 16px;
409
+ }
410
+
411
+ }
412
+
413
+ &[codedesc] {
414
+ &::part(listbox-code-desc-wrapper) {
415
+ display: flex;
416
+ flex-direction: column;
417
+ }
418
+
419
+ &::part(listbox-code-desc-code) {
420
+ color: #555;
421
+ font-size: 11px;
422
+ font-weight: 600;
423
+ order: 2;
424
+ padding: 2px 0;
425
+ }
426
+
427
+ &::part(listbox-code-desc-descript) {
428
+ order: 1;
429
+ padding: 0;
430
+
431
+ &:before {
432
+ display: none;
433
+ }
434
+
435
+ }
436
+
437
+ &::part(listbox-code-desc-code-label-value) {
438
+ padding-left: 5px;
439
+ }
440
+
441
+ &[multiple] {
442
+
443
+ &::part(listbox-code-desc-wrapper) {
444
+ padding-left: 5px;
445
+ }
446
+
447
+ }
448
+
449
+ }
450
+
451
+ }
452
+
453
+ rpso-codedesc cui-listbox::part(listbox-outer-wrapper) {
454
+ align-items: center;
455
+ }
456
+
457
+ cui-formpill::part(label-wrapper) {
458
+ display: inline-flex;
459
+ flex-basis: var(--cui-field-label-flex-width);
460
+ justify-content: end;
461
+ min-width: var(--cui-field-label-flex-width);
462
+ align-items: center;
463
+ }
464
+
465
+ cui-formpill {
466
+ &::part(outer-wrapper) {
467
+ display: flex;
468
+ }
469
+ }
470
+
471
+ cui-date {
472
+ display: flex;
473
+ //justify-content: start;
474
+
475
+ &>button {
476
+ background: url(../images/calendar-outline.svg) no-repeat 5px 5px rgba(0, 0, 0, 0);
477
+ background-size: 20px 20px;
478
+ border: 0;
479
+ border-radius: 32px;
480
+ height: 30px;
481
+ margin-left: 7px;
482
+ margin-bottom: 0;
483
+ position: relative;
484
+
485
+ span {
486
+ position: absolute !important;
487
+ width: 1px !important;
488
+ height: 1px !important;
489
+ padding: 0 !important;
490
+ margin: -1px !important;
491
+ overflow: hidden !important;
492
+ clip: rect(0, 0, 0, 0) !important;
493
+ white-space: nowrap !important;
494
+ border: 0 !important;
495
+ top: -1px;
496
+ }
497
+
498
+ &:hover {
499
+ background: url('../images/calendar-outline.svg') no-repeat 5px 5px #CCC;
500
+ background-size: 20px 20px;
501
+ }
502
+ }
503
+
504
+ // Date Picker
505
+ .cui-full-calender-container {
506
+ grid-gap: 3px;
507
+
508
+ .day-of-week-letters {
509
+ border: 0;
510
+ border-radius: 3px;
511
+ margin-left: 1px;
512
+ font-size: 12px;
513
+ display: flex;
514
+ flex-direction: column;
515
+ justify-content: center;
516
+ font-weight: 600;
517
+ color: #666;
518
+ height: 22px;
519
+ }
520
+
521
+ .day-of-week {
522
+ border: 0;
523
+ height: auto;
524
+ width: auto;
525
+ }
526
+
527
+ .current-date-selected {
528
+ border: 0;
529
+
530
+ button {
531
+ color: #fff;
532
+ background: var(--primary-button-background-color);
533
+
534
+ &[disabled="true"] {
535
+ background: transparent;
536
+ border: 0;
537
+ border-radius: 0;
538
+ color: #ccc;
539
+ font-weight: 400;
540
+ }
541
+ }
542
+ }
543
+
544
+ .current-day {
545
+ background: #EFEFEF;
546
+ font-weight: 400;
547
+ border: 0;
548
+ }
549
+
550
+ .not-valid-day {
551
+ height: 0 !important;
552
+ width: 0 !important;
553
+ }
554
+ }
555
+
556
+ .date-header {
557
+
558
+ .prev-month,
559
+ .next-month {
560
+ border: 0;
561
+
562
+ span {
563
+ display: none;
564
+ }
565
+
566
+ &:hover {
567
+ background: #EFEFEF;
568
+
569
+ &::after {
570
+ border-color: #333;
571
+ }
572
+ }
573
+ }
574
+
575
+ .prev-and-next-label {
576
+ border: 0;
577
+ font-weight: 600;
578
+ order: 1;
579
+ margin-right: 50px;
580
+ }
581
+
582
+ .prev-month {
583
+ flex: 0 0 25px;
584
+ order: 2;
585
+ position: relative;
586
+
587
+ &:after {
588
+ content: " ";
589
+ border: solid #747474;
590
+ border-width: 0 2px 3px 0;
591
+ display: inline-block;
592
+ padding: 2px;
593
+ transform: rotate(135deg);
594
+ -webkit-transform: rotate(135deg);
595
+ position: absolute;
596
+ top: 9px;
597
+ left: 11px;
598
+ }
599
+ }
600
+
601
+ .next-month {
602
+ flex: 0 0 25px;
603
+ order: 3;
604
+ position: relative;
605
+
606
+ &:after {
607
+ content: " ";
608
+ border: solid #747474;
609
+ border-width: 0 2px 2px 0;
610
+ display: inline-block;
611
+ padding: 2px;
612
+ transform: rotate(-45deg);
613
+ -webkit-transform: rotate(-45deg);
614
+ position: absolute;
615
+ top: 9px;
616
+ right: 11px;
617
+ }
618
+ }
619
+
620
+ }
621
+
622
+ }
623
+
624
+ cui-checkbox {
625
+
626
+ span[slot="labelContents"] {
627
+ span.accessible-label {
628
+ position: absolute !important;
629
+ width: 1px !important;
630
+ height: 1px !important;
631
+ padding: 0 !important;
632
+ margin: -1px !important;
633
+ overflow: hidden !important;
634
+ clip: rect(0, 0, 0, 0) !important;
635
+ white-space: nowrap !important;
636
+ border: 0 !important;
637
+ top: -1px;
638
+ }
639
+ }
640
+
641
+ span[slot="dataContents"].unchecked {
642
+ span {
643
+ //border: 1px solid #000;
644
+ //border-radius: 5px;
645
+ display: inline-block;
646
+ height: 18px;
647
+ padding: 0;
648
+ position: relative;
649
+ //overflow: hidden;
650
+ width: 18px;
651
+ margin-right: 10px;
652
+ min-height: 18px;
653
+
654
+ &:before,
655
+ &:after {
656
+ position: absolute;
657
+ left: 7px;
658
+ content: ' ';
659
+ height: 16px;
660
+ width: 3px;
661
+ background-color: var(--error-color);
662
+ //top: -4px;
663
+ }
664
+
665
+ &:before {
666
+ transform: rotate(45deg);
667
+ }
668
+
669
+ &:after {
670
+ transform: rotate(-45deg);
671
+ }
672
+ }
673
+ }
674
+
675
+ span[slot="dataContents"].checked {
676
+ span {
677
+ // border: 1px solid #000;
678
+ // border-radius: 5px;
679
+ display: inline-block;
680
+ height: 18px;
681
+ padding: 0;
682
+ position: relative;
683
+ //overflow: hidden;
684
+ width: 18px;
685
+ margin-right: 10px;
686
+ min-height: 18px;
687
+
688
+ &:before,
689
+ &:after {
690
+ background: var(--success-color);
691
+ content: " ";
692
+ display: block;
693
+ position: absolute;
694
+ width: 3px;
695
+ }
696
+
697
+ &:before {
698
+ height: 7px;
699
+ transform: rotate(-45deg);
700
+ top: 7px;
701
+ left: 4px;
702
+ }
703
+
704
+ &:after {
705
+ height: 12px;
706
+ transform: rotate(45deg);
707
+ left: 9px;
708
+ top: 2px
709
+ }
710
+
711
+ }
712
+ }
713
+ }
714
+
715
+ rpso-codedesc {
716
+ display: block;
717
+ margin-bottom: 10px;
718
+
719
+ cui-listbox {
720
+ margin-bottom: 0;
721
+
722
+ .inline-discription-slot {
723
+ display: none;
724
+ }
725
+
726
+ &::part(decorator-container) {
727
+ display: flex;
728
+ flex-direction: column;
729
+ font-weight: 600;
730
+ justify-content: center;
731
+ }
732
+
733
+ }
734
+
735
+ &::part(description-mobile) {
736
+ margin-top: 10px;
737
+ font-size: var(--standard-font-size);
738
+ }
739
+
740
+ &::part(description-input-value) {
741
+ font-weight: 600;
742
+ }
743
+
744
+ }
745
+
746
+
747
+ span[slot="labelContents"] {
748
+ display: inline-flex;
749
+ min-height: 26px;
750
+ justify-content: center;
751
+ flex-direction: column;
752
+ }
753
+
754
+ span[slot="dataContents"] {
755
+ display: inline-flex;
756
+ flex-direction: column;
757
+ font-weight: 600;
758
+ font-size: var(--standard-font-size);
759
+ justify-content: center;
760
+ min-height: 26px;
761
+ }
762
+
763
+ cui-radio-group,
764
+ cui-check-group {
765
+ span[slot="dataContents"] {
766
+ font-weight: 400;
767
+ }
768
+ }
769
+
770
+ input[type="checkbox"],
771
+ input[type="radio"] {
772
+ margin-left: 0;
773
+ margin-right: 10px;
774
+ }
775
+
776
+ label {
777
+ font-size: var(--standard-font-size);
778
+ }
779
+
780
+ cui-checkbox::part(outer-boolean-wrapper) {
781
+ display: flex;
782
+ // align-items: center;
783
+ }
784
+
785
+ cui-input-group {
786
+ display: flex;
787
+ width: 100%;
788
+
789
+ &[required] {
790
+ &::part(legend-wrapper) {
791
+
792
+ &::after {
793
+ content: "*";
794
+ display: inline-block;
795
+ font-size: 0.75rem;
796
+ color: var(--error-color);
797
+ position: relative;
798
+ margin-right: -7px;
799
+ }
800
+ }
801
+ }
802
+
803
+ div[slot="inputContainer"] {
804
+ display: flex;
805
+ flex-wrap: wrap;
806
+ row-gap: 7px;
807
+
808
+ cui-text,
809
+ cui-listbox {
810
+ margin-right: 10px;
811
+ margin-bottom: 0;
812
+ }
813
+
814
+ span {
815
+ font-weight: 600;
816
+ position: relative;
817
+ padding-right: 7px;
818
+ top: 5px;
819
+ }
820
+ }
821
+
822
+
823
+ }
824
+
825
+ cui-text.numeric{
826
+ input{
827
+ text-align:right;
828
+ // font-family: $numericFont;
829
+ // min-width: $inputMinWidth;
830
+ }
831
+
832
+ span.cui-read-only{
833
+ width:13em;
834
+ text-align: right;
835
+ // font-family: $numericFont;
836
+ // min-width: $inputMinWidth;
837
+ padding-left: 3px;
838
+ }
839
+ }
840
+
841
+ span.input-suffix {
842
+ background: #eee;
843
+ border: solid 1px #ccc;
844
+ box-sizing: border-box;
845
+ padding: 8px 3px 4.5px 2px;
846
+ vertical-align: middle;
847
+ border-radius: 0 5px 5px 0;
848
+ }
849
+
850
+ cui-text[suffix] .input-wrapper input {
851
+ // min-width: 227px;
852
+ border-radius: 5px 0 0 5px;
853
+ }
854
+
855
+ @media screen and (min-width: 500px) {
856
+
857
+ rpso-codedesc {
858
+
859
+ &::part(description-mobile) {
860
+ display: none;
861
+ }
862
+
863
+ cui-listbox {
864
+ margin-bottom: 0;
865
+
866
+ .inline-discription-slot {
867
+ display: block;
868
+ white-space: nowrap;
869
+ }
870
+ }
871
+
872
+ }
873
+
874
+ }
875
+
876
+ @media screen and (min-width: 830px) {
877
+
878
+ cui-text::part(outer-wrapper),
879
+ cui-select::part(outer-wrapper),
880
+ cui-textarea::part(outer-wrapper),
881
+ cui-listbox::part(outer-wrapper),
882
+ cui-date::part(outer-wrapper),
883
+ cui-check-group::part(outer-wrapper),
884
+ cui-radio-group::part(outer-wrapper),
885
+ cui-file-upload::part(outer-wrapper) {
886
+ display: flex;
887
+ flex-direction: column;
888
+ }
889
+
890
+ cui-file-upload::part(outer-wrapper) {
891
+ margin-bottom: 10px;
892
+ }
893
+
894
+ cui-text::part(primary-content-wrapper),
895
+ cui-select::part(primary-content-wrapper),
896
+ cui-textarea::part(primary-content-wrapper),
897
+ cui-listbox::part(primary-content-wrapper),
898
+ cui-date::part(primary-content-wrapper),
899
+ cui-check-group::part(primary-content-wrapper),
900
+ cui-radio-group::part(primary-content-wrapper),
901
+ cui-file-upload::part(primary-content-wrapper) {
902
+ display: flex;
903
+ align-items: center;
904
+ }
905
+
906
+ cui-text::part(secondary-content),
907
+ cui-select::part(secondary-content),
908
+ cui-textarea::part(secondary-content),
909
+ cui-listbox::part(secondary-content),
910
+ cui-date::part(secondary-content),
911
+ cui-check-group::part(secondary-content),
912
+ cui-radio-group::part(secondary-content),
913
+ cui-file-upload::part(secondary-content) {
914
+ display: flex;
915
+
916
+ }
917
+
918
+ .button-row {
919
+
920
+ cui-text::part(label-wrapper),
921
+ cui-formpill::part(label-wrapper),
922
+ cui-select::part(label-wrapper),
923
+ cui-date::part(label-wrapper),
924
+ cui-check-group::part(label-wrapper),
925
+ cui-radio-group::part(label-wrapper),
926
+ cui-file-upload::part(label-wrapper),
927
+ cui-listbox::part(label-wrapper) {
928
+ flex-basis: unset;
929
+ min-width: 0px;
930
+ }
931
+ }
932
+
933
+ cui-text::part(label-wrapper),
934
+ cui-formpill::part(label-wrapper),
935
+ cui-select::part(label-wrapper),
936
+ cui-date::part(label-wrapper),
937
+ cui-check-group::part(label-wrapper),
938
+ cui-radio-group::part(label-wrapper),
939
+ cui-file-upload::part(label-wrapper),
940
+ cui-listbox::part(label-wrapper) {
941
+ align-items: center;
942
+ display: inline-flex;
943
+ flex-basis: var(--cui-field-label-flex-width);
944
+ justify-content: end;
945
+ min-width: var(--cui-field-label-flex-width);
946
+ // max-height: 33px;
947
+ }
948
+
949
+ cui-file-upload::part(label-wrapper) {
950
+ align-items: start;
951
+ }
952
+
953
+ cui-file-upload {
954
+ div[slot="dataContents"] {
955
+ margin-left: 10px;
956
+ }
957
+ }
958
+
959
+ cui-listbox::part(label-wrapper) {
960
+ display: flex;
961
+ flex: 0 0 var(--cui-field-label-flex-width);
962
+ }
963
+
964
+ cui-listbox.center::part(label-wrapper) {
965
+ flex-basis: unset;
966
+ min-width: unset;
967
+ }
968
+
969
+ cui-formpill::part(label-wrapper) {
970
+ display: flex;
971
+ flex: 0 0 var(--cui-field-label-flex-width);
972
+ }
973
+
974
+ cui-text::part(message-contents),
975
+ cui-select::part(message-contents),
976
+ cui-textarea::part(message-contents),
977
+ cui-listbox::part(message-contents),
978
+ cui-date::part(message-contents),
979
+ cui-check-group::part(message-contents),
980
+ cui-radio-group::part(message-contents),
981
+ cui-file-upload::part(message-contents) {
982
+ display: flex;
983
+ margin-left: calc(10px + var(--cui-field-label-flex-width));
984
+ }
985
+
986
+
987
+ cui-listbox {
988
+ label {
989
+ display: inline-block;
990
+ margin-top: 7px;
991
+ }
992
+
993
+ &[readonly] {
994
+
995
+ // causing issue RSPO-62 in Jira, keeping as comment for unforseen original purpose
996
+ // &::part(listbox-value-container) {
997
+ // margin-top: 3px;
998
+ // }
999
+
1000
+ &::part(listbox-code-desc-selection-code) {
1001
+ white-space: pre;
1002
+ }
1003
+
1004
+ &::part(listbox-outer-wrapper readOnly) {
1005
+ align-items: unset;
1006
+ }
1007
+
1008
+ &::part(listbox-outer-wrapper readOnly code-desc-field) {
1009
+ align-items: unset;
1010
+ }
1011
+ }
1012
+
1013
+ &::part(label-wrapper) {
1014
+ display: flex;
1015
+ flex: 0 0 var(--cui-field-label-flex-width);
1016
+ }
1017
+
1018
+ &::part(label-container) {
1019
+ text-align: right;
1020
+ width: 100%;
1021
+ }
1022
+
1023
+ // &::part(data-wrapper) {
1024
+ // flex: 1 0 auto;
1025
+ // }
1026
+ }
1027
+
1028
+ rpso-codedesc {
1029
+
1030
+ &::part(description-mobile) {
1031
+ display: none;
1032
+ }
1033
+
1034
+ cui-listbox {
1035
+
1036
+ &[readonly] {
1037
+
1038
+ &::part(decorator-container) {
1039
+ margin-top: 3px;
1040
+ }
1041
+
1042
+ }
1043
+ }
1044
+
1045
+ }
1046
+
1047
+ cui-textarea::part(label-wrapper) {
1048
+ display: inline-flex;
1049
+ flex-basis: var(--cui-field-label-flex-width);
1050
+ justify-content: end;
1051
+ min-width: var(--cui-field-label-flex-width);
1052
+ }
1053
+
1054
+ cui-formpill::part(label-wrapper) {
1055
+ display: inline-flex;
1056
+ flex-basis: var(--cui-field-label-flex-width);
1057
+ justify-content: end;
1058
+ min-width: var(--cui-field-label-flex-width);
1059
+ }
1060
+
1061
+ cui-text::part(data-wrapper),
1062
+ cui-select::part(data-wrapper),
1063
+ cui-listbox::part(data-wrapper),
1064
+ cui-date::part(data-wrapper),
1065
+ cui-radio-group::part(data-wrapper),
1066
+ cui-check-group::part(data-wrapper) {
1067
+ margin-left: 10px;
1068
+ padding-right: 5px;
1069
+ }
1070
+
1071
+ cui-file-upload::part(data-wrapper) {
1072
+ margin-left: 0;
1073
+ padding-right: 5px;
1074
+ }
1075
+
1076
+ cui-textarea::part(data-wrapper) {
1077
+ margin-left: 10px;
1078
+ width: 100%;
1079
+ }
1080
+
1081
+ // Boolean Checkbox inputs
1082
+ cui-checkbox::part(outer-boolean-wrapper) {
1083
+ display: flex;
1084
+ flex-direction: column;
1085
+ }
1086
+
1087
+
1088
+
1089
+ cui-checkbox::part(data-boolean-wrapper) {
1090
+ align-items: center;
1091
+ display: inline-flex;
1092
+ flex-basis: 185px;
1093
+ justify-content: end;
1094
+ min-width: 185px;
1095
+ }
1096
+
1097
+ cui-checkbox::part(label-boolean-wrapper) {
1098
+ align-items: center;
1099
+ display: inline-flex;
1100
+ }
1101
+
1102
+ cui-checkbox::part(message-contents) {
1103
+ margin-left: 185px;
1104
+ }
1105
+
1106
+ cui-checkbox::part(data-boolean-wrapper),
1107
+ cui-checkbox::part(label-boolean-wrapper) {
1108
+ min-height: 24px;
1109
+ max-height: 24px;
1110
+ }
1111
+
1112
+ cui-input-group {
1113
+
1114
+ &::part(input-group-outer) {
1115
+ display: flex;
1116
+ }
1117
+
1118
+ &::part(legend-wrapper) {
1119
+ align-items: center;
1120
+ display: inline-flex;
1121
+ flex-basis: var(--cui-field-label-flex-width);
1122
+ justify-content: end;
1123
+ min-width: var(--cui-field-label-flex-width);
1124
+ max-height: 33px;
1125
+ }
1126
+
1127
+ &::part(data-wrapper) {
1128
+ margin-left: 10px;
1129
+ }
1130
+
1131
+ cui-text::part(message-contents),
1132
+ cui-select::part(message-contents),
1133
+ cui-textarea::part(message-contents),
1134
+ cui-listbox::part(message-contents),
1135
+ cui-date::part(message-contents),
1136
+ cui-check-group::part(message-contents),
1137
+ cui-radio-group::part(message-contents),
1138
+ cui-file-upload::part(message-contents) {
1139
+ display: flex;
1140
+ margin-left: 0px;
1141
+ }
1142
+
1143
+ }
1144
+
1145
+ }