@nys-cui/cui-formpill 0.2.10 → 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 -1000
@@ -0,0 +1,702 @@
1
+ @use '_variables.scss';
2
+
3
+ table {
4
+ border: 1px solid var(--cui-table-border-color);
5
+ border-collapse: collapse;
6
+ color: var(--cui-table-body-text-color);
7
+ width: 100%;
8
+
9
+ tr {
10
+ border: 1px solid var(--cui-table-border-color);
11
+
12
+ td,
13
+ th {
14
+ border: 1px solid var(--cui-table-border-color);
15
+ }
16
+
17
+ th {
18
+ background: var(--cui-table-header-background-color);
19
+ }
20
+ }
21
+
22
+ th,
23
+ td {
24
+ position: relative;
25
+ padding: 4px 6px;
26
+
27
+ &.min-width {
28
+ width: 1px;
29
+ }
30
+ }
31
+
32
+ td {
33
+ &.align-center {
34
+ text-align: center;
35
+ }
36
+ }
37
+
38
+ thead {
39
+ position: sticky;
40
+ top: 0;
41
+ z-index: 10;
42
+
43
+ tr {
44
+
45
+ th {
46
+ text-align: left;
47
+ padding-left: 6px;
48
+
49
+ &.minwidth {
50
+ width: 1px;
51
+ white-space: nowrap;
52
+ }
53
+
54
+ &:before {
55
+ border-top: 1px solid var(--cui-table-border-color);
56
+ content: " ";
57
+ left: 0;
58
+ display: inline-block;
59
+ top: -1px;
60
+ position: absolute;
61
+ width: 100%;
62
+ }
63
+
64
+ &:after {
65
+ border-bottom: 1px solid var(--cui-table-border-color);
66
+ bottom: -1px;
67
+ content: " ";
68
+ left: 0;
69
+ display: inline-block;
70
+ position: absolute;
71
+ width: 100%;
72
+ }
73
+
74
+ .hidden-header {
75
+ position: absolute !important;
76
+ width: 1px !important;
77
+ height: 1px !important;
78
+ padding: 0 !important;
79
+ margin: -1px !important;
80
+ overflow: hidden !important;
81
+ clip: rect(0, 0, 0, 0) !important;
82
+ white-space: nowrap !important;
83
+ border: 0 !important;
84
+ }
85
+
86
+ &.selection-header {
87
+
88
+ div {
89
+ display: flex;
90
+ justify-content: center;
91
+
92
+ label {
93
+ position: absolute !important;
94
+ width: 1px !important;
95
+ height: 1px !important;
96
+ padding: 0 !important;
97
+ margin: -1px !important;
98
+ overflow: hidden !important;
99
+ clip: rect(0, 0, 0, 0) !important;
100
+ white-space: nowrap !important;
101
+ border: 0 !important;
102
+ top: -1px;
103
+ }
104
+
105
+ input {
106
+ margin: 0;
107
+ }
108
+
109
+ }
110
+
111
+ }
112
+
113
+ }
114
+
115
+ &>th {
116
+ label {
117
+ position: absolute !important;
118
+ width: 1px !important;
119
+ height: 1px !important;
120
+ padding: 0 !important;
121
+ margin: -1px !important;
122
+ overflow: hidden !important;
123
+ clip: rect(0, 0, 0, 0) !important;
124
+ white-space: nowrap !important;
125
+ border: 0 !important;
126
+ top: -1px;
127
+ }
128
+ }
129
+
130
+ }
131
+ }
132
+
133
+ tbody {
134
+ padding-bottom: 10px;
135
+
136
+ tr {
137
+ height: 28px;
138
+
139
+ &.bold {
140
+ font-weight: bold;
141
+ }
142
+
143
+ &.even-row {
144
+ background: variables.$tableBodyBackgroundColorEven;
145
+ }
146
+
147
+ &.odd-row {
148
+ background: variables.$tableBodyBackgroundColorOdd;
149
+ }
150
+
151
+ &.error-row {
152
+ td {
153
+ text-align: center;
154
+ }
155
+ }
156
+
157
+ td,
158
+ th {
159
+
160
+ &[data-col-key="edit"],
161
+ &[data-col-key="view"],
162
+ &[data-col-key="delete"] {
163
+ padding: 0;
164
+
165
+ cui-button {
166
+
167
+ button {
168
+ display: inline-block;
169
+ height: 28px;
170
+ margin: 3px;
171
+ width: 28px;
172
+ }
173
+ }
174
+ }
175
+
176
+ cui-icon {
177
+ svg {
178
+ height: 20px;
179
+ width: 20px;
180
+ }
181
+
182
+ &[src="checkmark-circle-fill"] {
183
+ svg {
184
+ fill: rgb(51, 153, 102);
185
+ }
186
+ }
187
+
188
+ &[src="close-circle-fill"] svg {
189
+ fill: rgb(240, 99, 89);
190
+ }
191
+
192
+ &[src="loading-icon-1"] svg {
193
+ animation: spin 3s linear infinite;
194
+ }
195
+
196
+ @keyframes spin {
197
+ from {
198
+ transform: rotate(0deg);
199
+ }
200
+
201
+ to {
202
+ transform: rotate(360deg);
203
+ }
204
+ }
205
+ }
206
+
207
+ rpso-toggle-button {
208
+
209
+ &.icon {
210
+ padding: 3px;
211
+
212
+ button {
213
+ height: 23px;
214
+ overflow: hidden;
215
+ width: 23px;
216
+
217
+ cui-icon[src="edit"] {
218
+
219
+ svg {
220
+ height: 28px;
221
+ left: -2px;
222
+ top: 2px;
223
+ position: relative;
224
+ width: 28px;
225
+ }
226
+
227
+ }
228
+
229
+ cui-icon[src="close"] {
230
+
231
+ svg {
232
+ height: 24px;
233
+ width: 24px;
234
+ }
235
+
236
+ }
237
+
238
+ cui-icon[src="drilldown"] {
239
+
240
+ svg {
241
+ height: 22px;
242
+ left: -1px;
243
+ top: 1px;
244
+ position: relative;
245
+ width: 26px;
246
+ }
247
+ }
248
+
249
+ cui-icon[src="search"] {
250
+
251
+ svg {
252
+ height: 22px;
253
+ left: -1px;
254
+ top: 1px;
255
+ position: relative;
256
+ width: 26px;
257
+ }
258
+ }
259
+
260
+ }
261
+ }
262
+
263
+ }
264
+
265
+ cui-button-menu {
266
+
267
+ justify-content: center;
268
+ align-items: center;
269
+ padding: 0;
270
+
271
+ .button-menu-trigger {
272
+ overflow: hidden;
273
+ border: none;
274
+ background: none;
275
+ padding: 0;
276
+ padding: 3px;
277
+ margin: 0;
278
+
279
+ cui-icon {
280
+ justify-content: center;
281
+ align-items: center;
282
+
283
+ }
284
+ }
285
+ }
286
+
287
+ }
288
+
289
+ td.table-row-selection-wrapper {
290
+
291
+ div {
292
+ display: flex;
293
+ justify-content: center;
294
+
295
+ input {
296
+ margin: 0;
297
+ }
298
+
299
+ label {
300
+ position: absolute !important;
301
+ width: 1px !important;
302
+ height: 1px !important;
303
+ padding: 0 !important;
304
+ margin: -1px !important;
305
+ overflow: hidden !important;
306
+ clip: rect(0, 0, 0, 0) !important;
307
+ white-space: nowrap !important;
308
+ border: 0 !important;
309
+ top: -1px;
310
+ }
311
+
312
+ }
313
+
314
+
315
+ }
316
+
317
+ td.table-row-order-wrapper {
318
+
319
+ div {
320
+ display: flex;
321
+ justify-content: center;
322
+
323
+ button {
324
+ margin: 0;
325
+ border-radius: 3px;
326
+ padding: 6px 6px;
327
+ margin-top: 5px;
328
+ margin-bottom: 5px;
329
+
330
+ &.table-order-down-button {
331
+ margin-left: 10px;
332
+
333
+ .arrow-down {
334
+ width: 0;
335
+ height: 0;
336
+ margin: 1px 1px;
337
+ border-left: 5px solid transparent;
338
+ border-right: 5px solid transparent;
339
+ border-top: 8px solid black;
340
+ }
341
+ }
342
+
343
+ &.table-order-up-button {
344
+
345
+ .arrow-up {
346
+ width: 0;
347
+ height: 0;
348
+ margin: 1px 1px;
349
+ border-left: 5px solid transparent;
350
+ border-right: 5px solid transparent;
351
+ border-bottom: 8px solid black;
352
+ }
353
+ }
354
+ }
355
+
356
+ label {
357
+ position: absolute !important;
358
+ width: 1px !important;
359
+ height: 1px !important;
360
+ padding: 0 !important;
361
+ margin: -1px !important;
362
+ overflow: hidden !important;
363
+ clip: rect(0, 0, 0, 0) !important;
364
+ white-space: nowrap !important;
365
+ border: 0 !important;
366
+ top: -1px;
367
+ }
368
+
369
+
370
+ }
371
+
372
+
373
+ }
374
+
375
+ td {
376
+ rpso-table-indicator {
377
+ display: inline-block;
378
+ background: #bd4e4e;
379
+ border-radius: 5px;
380
+ color: #FFF;
381
+ cursor: pointer;
382
+ font-size: 12px;
383
+ height: 100%;
384
+
385
+ &::part(outer-wrapper) {
386
+ display: flex;
387
+ flex-direction: column;
388
+ justify-content: center;
389
+ padding: 3px 5px 2px;
390
+ }
391
+
392
+ }
393
+ }
394
+
395
+ }
396
+
397
+ }
398
+ }
399
+
400
+ cui-table {
401
+
402
+ div[slot="table-add"] {
403
+ display: flex;
404
+
405
+ cui-listbox::part(label-wrapper) {
406
+ min-width: min-content;
407
+ flex-basis: unset;
408
+ padding-left: 5px;
409
+ }
410
+
411
+ cui-button {
412
+
413
+ button {
414
+ margin-bottom: 0.25em;
415
+ padding: 4px 10px;
416
+ }
417
+ }
418
+
419
+ cui-listbox {
420
+ cui-button+cui-button {
421
+ margin-left: 20px;
422
+ }
423
+
424
+ cui-button[slot="controls"] {
425
+ position: relative;
426
+ /* Make the button a positioning context for its pseudo-element */
427
+ }
428
+
429
+ cui-button[slot="controls"]:not(:first-child)::before {
430
+ content: "";
431
+ position: absolute;
432
+ top: 45%;
433
+ transform: translateY(-50%);
434
+ width: 1px;
435
+ height: 25px;
436
+ background-color: var(--secondary-button-text-color);
437
+ margin-left: -10.5px;
438
+ }
439
+ }
440
+ }
441
+
442
+ tr.highlight {
443
+
444
+ td {
445
+ background: #e6f0b9;
446
+ }
447
+ }
448
+
449
+ tr.expanded-content {
450
+ border: 0;
451
+ padding: 0;
452
+
453
+ td {
454
+ padding: 0;
455
+ }
456
+ }
457
+
458
+ rpso-table-form-row {
459
+
460
+ div[slot="table-form-row-contents"] {
461
+ margin: 0 8px;
462
+ padding: 0 2px;
463
+
464
+ cui-section {
465
+ box-shadow: none;
466
+
467
+ border-radius: 5px;
468
+
469
+ &::part(root-section) {
470
+ border: 1px solid var(--section-header-border-color);
471
+ }
472
+
473
+ &::part(section-header) {
474
+ margin: .5em .5em 20px;
475
+ }
476
+
477
+ &::part(section-title) {
478
+ margin: 4px 0 3px;
479
+ }
480
+
481
+ &::part(header-controls) {
482
+ margin: 6px 0 3px;
483
+ }
484
+ }
485
+ }
486
+
487
+ div[slot="table-form-row-footer-contents"] {
488
+
489
+ div.grid.button-row {
490
+ border-top: solid 1px var(--section-header-border-color);
491
+ padding: 0 20px;
492
+
493
+ .row {
494
+ margin-bottom: 0;
495
+
496
+ cui-button {
497
+ margin-top: 15px;
498
+
499
+ button {
500
+ margin-bottom: 15px;
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ &>cui-section {
507
+ margin: 5px;
508
+ }
509
+ }
510
+ }
511
+
512
+ &::part(cui-inner-table-wrapper) {
513
+ margin-bottom: 10px;
514
+ position: relative;
515
+ overflow: visible;
516
+ overflow-x: auto;
517
+ }
518
+
519
+ &::part(columns-dropdown-container) {
520
+ z-index: 20;
521
+ }
522
+
523
+ &::part(cui-table-filter-wrapper) {
524
+ margin-bottom: -10px;
525
+ display: flex;
526
+ justify-content: flex-end;
527
+ background-color: var(--cui-table-row-background-color-odd);
528
+ flex-wrap: wrap;
529
+ padding-right: 10px;
530
+ }
531
+
532
+ &::part(cui-table-header-controls) {
533
+ margin-bottom: 5px;
534
+ gap: 12px;
535
+ align-items: center;
536
+ margin-left: auto;
537
+ }
538
+
539
+ cui-formpill::part(label-wrapper) {
540
+ display: none;
541
+ }
542
+
543
+ cui-addfilter::part(outer-wrapper) {
544
+ padding-top: 5px;
545
+ padding-right: 5px;
546
+ }
547
+
548
+ cui-formpill {
549
+ margin-top: 12px;
550
+
551
+ .pill-container {
552
+ flex-direction: row-reverse;
553
+
554
+ .form-pill {
555
+ height: 25px;
556
+ padding-right: 5px;
557
+
558
+ .pill-title {
559
+ padding-left: 9px;
560
+ padding-right: 2px;
561
+ }
562
+ }
563
+ }
564
+
565
+ .button-menu-trigger {
566
+ position: relative;
567
+ height: 25px !important;
568
+ padding: 5px;
569
+ }
570
+
571
+ .button-menu-trigger::after {
572
+ position: absolute;
573
+ background-color: rgb(170, 170, 170);
574
+ ;
575
+ content: "";
576
+ height: 100%;
577
+ width: 1px;
578
+ left: -6px;
579
+ top: 0;
580
+ }
581
+
582
+ .button-menu-trigger::before {
583
+ position: absolute;
584
+ background-color: rgb(170, 170, 170);
585
+ content: "";
586
+ height: 100%;
587
+ width: 1px;
588
+ right: -6px;
589
+ top: 0;
590
+ }
591
+
592
+ }
593
+
594
+ rpso-toggle-button {
595
+ &.icon cui-icon svg {
596
+ width: 22px;
597
+ height: 22px;
598
+ }
599
+
600
+ .active {
601
+ padding-inline: 5px;
602
+ border-radius: 0px;
603
+ border-bottom: 10px solid var(--cui-table-row-background-color-odd);
604
+ background-color: var(--cui-table-row-background-color-odd);
605
+ margin-bottom: -5px;
606
+ padding-top: 7px;
607
+ }
608
+
609
+ button {
610
+ height: 32px;
611
+ width: 32px;
612
+ }
613
+
614
+ }
615
+
616
+ .table-header {
617
+ cursor: unset !important;
618
+ padding-left: 5px !important;
619
+ padding-right: 0px !important;
620
+ }
621
+
622
+ }
623
+
624
+ cui-table[editable] {
625
+ tbody {
626
+
627
+ tr,
628
+ tr.even-row,
629
+ tr.odd-row {
630
+
631
+ background: var(--cui-table-row-background-color-uneditable);
632
+
633
+ cui-listbox {
634
+ margin-bottom: 0;
635
+ }
636
+
637
+ cui-checkbox::part(outer-boolean-wrapper) {
638
+ display: block !important;
639
+ }
640
+
641
+ cui-listbox::part(outer-wrapper) {
642
+ flex-direction: column !important
643
+ }
644
+
645
+ cui-listbox::part(listbox-outer-wrapper),
646
+ cui-listbox::part(listbox-inner-wrapper) {
647
+ display: block !important;
648
+ }
649
+
650
+ cui-listbox::part(hidden-select) {
651
+ height: 0px;
652
+ width: 0px;
653
+ }
654
+
655
+ cui-listbox::part(psuedo-input) {
656
+ border: 0;
657
+ border-radius: 0;
658
+ padding: 0px 6px;
659
+ background: none;
660
+ }
661
+
662
+ cui-listbox::part(listbox-value-container) {
663
+ padding: 0;
664
+ }
665
+
666
+ cui-listbox::part(data-wrapper) {
667
+ width: 100%;
668
+ }
669
+
670
+ cui-listbox[readOnly]::part(outer-wrapper) {
671
+ align-items: unset;
672
+ }
673
+
674
+ cui-checkbox::part(data-boolean-wrapper) {
675
+ min-width: 0px;
676
+ }
677
+
678
+
679
+ td[contenteditable='true'],
680
+ td.cui-table-editable-cell {
681
+ background: var(--cui-table-row-background-color-editable);
682
+ font-weight: bold;
683
+ }
684
+ }
685
+ }
686
+
687
+ }
688
+
689
+ cui-table[staticHead] {
690
+ table {
691
+ thead {
692
+ position: static;
693
+ }
694
+ }
695
+ }
696
+
697
+ @media screen and (max-width: 1175px) {
698
+ cui-table::part(cui-table-header-controls-row) {
699
+ flex-wrap: wrap;
700
+ align-items: flex-end;
701
+ }
702
+ }