@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,489 @@
1
+ $screen-width-small: 650px;
2
+ $screen-width-large: 830px;
3
+ $screen-width-max: 1175px;
4
+
5
+ $start: 1;
6
+ $end: 12;
7
+
8
+ $_cui_field_components: 'cui-field',
9
+ 'cui-text',
10
+ 'cui-textarea',
11
+ 'cui-date',
12
+ 'cui-listbox',
13
+ 'cui-radio-group',
14
+ 'cui-checkbox',
15
+ 'cui-check-group';
16
+
17
+ .grid {
18
+ display: block;
19
+ width: 100%;
20
+
21
+ .grid {
22
+ margin-bottom: 0px;
23
+
24
+ .row {
25
+ .col:first-of-type {
26
+ padding-left: 0;
27
+ }
28
+
29
+ .col:last-of-type {
30
+ padding-right: 0;
31
+ }
32
+ }
33
+ }
34
+
35
+ .row {
36
+ display: flex;
37
+ flex-direction: row;
38
+ flex-wrap: wrap;
39
+ max-width: 100%;
40
+
41
+ &.scr-min-start {
42
+ justify-content: flex-start;
43
+ }
44
+
45
+ &.scr-min-center {
46
+ justify-content: center;
47
+ }
48
+
49
+ &.scr-min-end {
50
+ justify-content: flex-end;
51
+ }
52
+
53
+ &.scr-min-top {
54
+ align-items: flex-start;
55
+ }
56
+
57
+ &.scr-min-mid {
58
+ align-items: center;
59
+ }
60
+
61
+ &.scr-min-bot {
62
+ align-items: flex-end;
63
+ }
64
+
65
+ .col {
66
+ display: flex;
67
+ flex: 1 0 0px;
68
+ flex-basis: 100%;
69
+ max-width: 100%;
70
+
71
+ box-sizing: border-box;
72
+
73
+ @for $i from $start through $end {
74
+ &.scr-min-#{$i} {
75
+ flex-basis: calc(calc(#{$i}/12) * 100%);
76
+ max-width: calc(calc(#{$i}/12) * 100%);
77
+ }
78
+ }
79
+
80
+ @for $j from $start through $end {
81
+ &.offset-#{$j} {
82
+ margin-left: calc(calc(#{$j}/12) * 100%);
83
+ }
84
+ }
85
+
86
+ &.push-right {
87
+ margin-left: 0%;
88
+ }
89
+
90
+ &.align-end {
91
+ justify-content: flex-end;
92
+ }
93
+
94
+ &.align-center {
95
+ justify-content: center;
96
+ }
97
+
98
+ &.sticky {
99
+ position: unset;
100
+ top: unset;
101
+ }
102
+ }
103
+
104
+ .col-full {
105
+ display: flex;
106
+ flex: 1 0 0px;
107
+ max-width: 100%;
108
+ flex-basis: 100%;
109
+
110
+ box-sizing: border-box;
111
+
112
+ &.align-end {
113
+ justify-content: flex-end;
114
+ }
115
+
116
+ &.align-center {
117
+ justify-content: center;
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ @media screen and (min-width: $screen-width-small) {
124
+ .grid .row {
125
+ &.scr-sm-start {
126
+ justify-content: flex-start;
127
+ }
128
+
129
+ &.scr-sm-center {
130
+ justify-content: center;
131
+ }
132
+
133
+ &.scr-sm-end {
134
+ justify-content: flex-end;
135
+ }
136
+
137
+ &.scr-sm-top {
138
+ align-items: flex-start;
139
+ }
140
+
141
+ &.scr-sm-mid {
142
+ align-items: center;
143
+ }
144
+
145
+ &.scr-sm-bot {
146
+ align-items: flex-end;
147
+ }
148
+
149
+ .col {
150
+ max-width: 100%;
151
+ flex-basis: 0px;
152
+
153
+ @for $i from $start through $end {
154
+ &.scr-sm-#{$i} {
155
+ flex-basis: calc(calc(#{$i}/12) * 100%);
156
+ max-width: calc(calc(#{$i}/12) * 100%);
157
+ }
158
+ }
159
+
160
+ @for $j from $start through $end {
161
+ &.scr-sm-offset-#{$j} {
162
+ margin-left: calc(calc(#{$j}/12) * 100%);
163
+ }
164
+ }
165
+
166
+ &.push-right {
167
+ margin-left: 50%;
168
+ }
169
+
170
+ &.align-end {
171
+ justify-content: flex-end;
172
+ }
173
+
174
+ &.align-center {
175
+ justify-content: center;
176
+ }
177
+
178
+ &.sticky {
179
+ position: sticky;
180
+ top: 30%;
181
+ }
182
+ }
183
+ }
184
+ }
185
+
186
+ @media screen and (min-width: $screen-width-large) {
187
+ .grid .row {
188
+ &.scr-lg-start {
189
+ justify-content: flex-start;
190
+ }
191
+
192
+ &.scr-lg-center {
193
+ justify-content: center;
194
+ }
195
+
196
+ &.scr-lg-end {
197
+ justify-content: flex-end;
198
+ }
199
+
200
+ &.scr-lg-top {
201
+ align-items: flex-start;
202
+ }
203
+
204
+ &.scr-lg-mid {
205
+ align-items: center;
206
+ }
207
+
208
+ &.scr-lg-bot {
209
+ align-items: flex-end;
210
+ }
211
+
212
+ .col {
213
+ max-width: 100%;
214
+ flex-basis: 0px;
215
+
216
+ @for $i from $start through $end {
217
+ &.scr-lg-#{$i} {
218
+ flex-basis: calc(calc(#{$i}/12) * 100%);
219
+ max-width: calc(calc(#{$i}/12) * 100%);
220
+ }
221
+ }
222
+
223
+ @for $j from $start through $end {
224
+ &.scr-lg-offset-#{$j} {
225
+ margin-left: calc(calc(#{$j}/12) * 100%);
226
+ }
227
+ }
228
+
229
+ &.push-right {
230
+ margin-left: 50%;
231
+ }
232
+
233
+ &.align-end {
234
+ justify-content: flex-end;
235
+ }
236
+
237
+ &.align-center {
238
+ justify-content: center;
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ @media screen and (min-width: $screen-width-max) {
245
+ .grid .row {
246
+ &.scr-max-start {
247
+ justify-content: flex-start;
248
+ }
249
+
250
+ &.scr-max-center {
251
+ justify-content: center;
252
+ }
253
+
254
+ &.scr-max-end {
255
+ justify-content: flex-end;
256
+ }
257
+
258
+ &.scr-max-top {
259
+ align-items: flex-start;
260
+ }
261
+
262
+ &.scr-max-mid {
263
+ align-items: center;
264
+ }
265
+
266
+ &.scr-max-bot {
267
+ align-items: flex-end;
268
+ }
269
+
270
+ .col {
271
+ max-width: 100%;
272
+ flex-basis: 0px;
273
+
274
+ @for $i from $start through $end {
275
+ &.scr-max-#{$i} {
276
+ flex-basis: calc(calc(#{$i}/12) * 100%);
277
+ max-width: calc(calc(#{$i}/12) * 100%);
278
+ }
279
+ }
280
+
281
+ @for $j from $start through $end {
282
+ &.scr-max-offset-#{$j} {
283
+ margin-left: calc(calc(#{$j}/12) * 100%);
284
+ }
285
+ }
286
+
287
+ &.push-right {
288
+ margin-left: 50%;
289
+ }
290
+
291
+ &.align-end {
292
+ justify-content: flex-end;
293
+ }
294
+
295
+ &.align-center {
296
+ justify-content: center;
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+
303
+ //OLD GRID FOR TESTING COMPATABILITY
304
+ .grid-old {
305
+ display: block;
306
+ width: 100%;
307
+ padding-bottom: 10px;
308
+ .row {
309
+ display: grid;
310
+ grid-template-columns: repeat(12, 1fr);
311
+ gap: 1.5rem;
312
+ row-gap: 0;
313
+
314
+ &.height-row{
315
+ grid-template-rows: 40px;
316
+ }
317
+
318
+ .col, .col-full, .col-side-third-large, .col-middle-third-small{
319
+ grid-column: auto/span 12;
320
+ //margin-bottom: 10px;
321
+
322
+ .row {
323
+ width: 100%;
324
+ }
325
+
326
+ &.align-center {
327
+ display: flex;
328
+ justify-content: center;
329
+ }
330
+
331
+ &.align-end {
332
+ display: flex;
333
+ justify-content: flex-end;
334
+ }
335
+
336
+ cui-section {
337
+ width: 100%;
338
+ }
339
+ }
340
+
341
+ .col-middle-third-small{
342
+ justify-self: center;
343
+ }
344
+ .mobile-hide{
345
+ display:none;
346
+ }
347
+
348
+ }
349
+
350
+ &.button-row {
351
+ .col, .col-full {
352
+ margin-bottom: 0;
353
+ }
354
+ }
355
+
356
+ }
357
+
358
+ @media only screen and (max-width: 1174px) {
359
+
360
+ .grid-old {
361
+ .row {
362
+ &.height-row{
363
+ grid-template-rows: 60px;
364
+ }
365
+ }
366
+ }
367
+
368
+ cui-listbox{
369
+ &.center{
370
+ align-self:center!important;
371
+ }
372
+ }
373
+
374
+ }
375
+
376
+ @media only screen and (min-width: 710px) {
377
+
378
+ .grid-old {
379
+
380
+ &.check{
381
+
382
+ .row {
383
+
384
+ .col, .col-full, .col-side-third-large, .col-middle-third-small {
385
+ display: flex;
386
+
387
+ &.center-content{
388
+ flex-direction: column;
389
+ justify-content: center;
390
+ }
391
+ }
392
+
393
+ .col {
394
+ grid-column: auto/span 6;
395
+ }
396
+
397
+ .col-full {
398
+ grid-column: auto/span 12;
399
+ }
400
+
401
+ .col.push-right {
402
+ grid-column: 7/span 6;
403
+ }
404
+
405
+ .col-middle-third-small{
406
+ grid-column: auto/span 2;
407
+ justify-self: auto;
408
+ > :not(cui-listbox) {
409
+ align-self: center;
410
+ }
411
+ cui-listbox{
412
+ align-self: flex-end;
413
+ }
414
+ }
415
+
416
+ .col-side-third-large{
417
+ grid-column: auto/span 5;
418
+
419
+ }
420
+
421
+ .mobile-hide{
422
+ display:grid;
423
+ }
424
+
425
+
426
+ }
427
+ }
428
+
429
+ }
430
+
431
+ }
432
+
433
+
434
+ @media only screen and (min-width: 650px) {
435
+
436
+ .grid-old {
437
+
438
+ &:not(.check){
439
+
440
+ .row {
441
+
442
+ .col, .col-full, .col-side-third-large, .col-middle-third-small {
443
+ display: flex;
444
+
445
+ &.center-content{
446
+ flex-direction: column;
447
+ justify-content: center;
448
+ }
449
+ }
450
+
451
+ .col {
452
+ grid-column: auto/span 6;
453
+ }
454
+
455
+ .col-full {
456
+ grid-column: auto/span 12;
457
+ }
458
+
459
+ .col.push-right {
460
+ grid-column: 7/span 6;
461
+ }
462
+
463
+ .col-middle-third-small{
464
+ grid-column: auto/span 2;
465
+ justify-self: auto;
466
+ > :not(cui-listbox) {
467
+ align-self: center;
468
+ }
469
+ cui-listbox{
470
+ align-self: flex-end;
471
+ }
472
+ }
473
+
474
+ .col-side-third-large{
475
+ grid-column: auto/span 5;
476
+
477
+ }
478
+
479
+ .mobile-hide{
480
+ display:grid;
481
+ }
482
+
483
+
484
+ }
485
+ }
486
+
487
+ }
488
+
489
+ }
@@ -0,0 +1,46 @@
1
+ cui-help{
2
+
3
+ .help-trigger{
4
+ display: inline-block;
5
+ white-space: nowrap;
6
+ overflow: hidden;
7
+ background-repeat: no-repeat;
8
+ background-color: transparent;
9
+ border:none;
10
+ text-indent: -9999em;
11
+
12
+ background-image: url(../images/help-circle.svg);
13
+ background-size: 24px 24px;
14
+ width: 24px;
15
+ min-width: 24px;
16
+ height: 24px;
17
+ padding:0px;
18
+ filter: invert(61%) sepia(21%) saturate(6725%) hue-rotate(164deg) brightness(94%) contrast(87%);
19
+ cursor:pointer;
20
+ margin:3px;
21
+
22
+ }
23
+
24
+ }
25
+
26
+ cui-popover.cui-help-popover{
27
+
28
+ .popover-body{
29
+ padding:.7em;
30
+ border: 1px solid #ffe366;
31
+ max-width:500px;
32
+ border-radius: 4px;
33
+ box-shadow:none;
34
+ background:#fff6cc;
35
+ min-width:40px;
36
+ }
37
+
38
+ &.arrow:before{
39
+ left:8px;
40
+ border: solid 1px;
41
+ border-color :#ffe366 transparent transparent #ffe366;
42
+ background:#fff6cc;
43
+ box-shadow: rgb(0,0,0,.2) -2px -2px 2px 0px;
44
+ top:-7px;
45
+ }
46
+ }