@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.
- package/component-base/README.md +43 -0
- package/component-base/cui.jsonc +6 -0
- package/component-base/package.json +42 -0
- package/component-base/src/assets/scss/_button-menu.scss +270 -0
- package/component-base/src/assets/scss/_buttons.scss +200 -0
- package/component-base/src/assets/scss/_cui-asof.scss +86 -0
- package/component-base/src/assets/scss/_cui-formpill.scss +284 -0
- package/component-base/src/assets/scss/_cui-general.scss +19 -0
- package/component-base/src/assets/scss/_cui-message.scss +119 -0
- package/component-base/src/assets/scss/_cui-spinner.scss +27 -0
- package/component-base/src/assets/scss/_cui-tree.scss +136 -0
- package/component-base/src/assets/scss/_cui-widget.scss +128 -0
- package/component-base/src/assets/scss/_field-check-group.scss +296 -0
- package/component-base/src/assets/scss/_field-radio-group.scss +236 -0
- package/component-base/src/assets/scss/_fonts.scss +20 -0
- package/component-base/src/assets/scss/_globalNotes.scss +419 -0
- package/component-base/src/assets/scss/_grid.scss +489 -0
- package/component-base/src/assets/scss/_help.scss +46 -0
- package/component-base/src/assets/scss/_inputs.scss +1145 -0
- package/component-base/src/assets/scss/_modal.scss +56 -0
- package/component-base/src/assets/scss/_normalize.scss +3 -0
- package/component-base/src/assets/scss/_popovers.scss +119 -0
- package/component-base/src/assets/scss/_quick_lookup.scss +87 -0
- package/component-base/src/assets/scss/_sidebar-context.scss +896 -0
- package/component-base/src/assets/scss/_table.scss +702 -0
- package/component-base/src/assets/scss/_toast.scss +219 -0
- package/component-base/src/assets/scss/_utility.scss +64 -0
- package/component-base/src/assets/scss/_variables.scss +58 -0
- package/component-base/src/assets/scss/main.scss +451 -0
- package/component-base/src/assets/scss/normalize/_import-now.scss +11 -0
- package/component-base/src/assets/scss/normalize/_normalize-mixin.scss +570 -0
- package/component-base/src/assets/scss/normalize/_variables.scss +37 -0
- package/component-base/src/assets/scss/normalize/_vertical-rhythm.scss +63 -0
- package/component-base/src/assets/scss/readme.md +1 -0
- package/component-base/src/modules/dom.js +21 -0
- package/component-base/src/screens/index/cui.jsonc +3 -0
- package/component-base/src/screens/index/index.js +228 -0
- package/component-base/src/screens/index/index.tpl.html +32 -0
- package/component-base/src/spa.js +117 -0
- package/package.json +1 -1
- package/src/cui-formpill.js +452 -999
@@ -0,0 +1,451 @@
|
|
1
|
+
@use '_variables.scss';
|
2
|
+
@use '_normalize.scss';
|
3
|
+
@use '_fonts.scss';
|
4
|
+
@use '_grid.scss';
|
5
|
+
@use '_inputs.scss';
|
6
|
+
@use '_buttons.scss';
|
7
|
+
@use '_table.scss';
|
8
|
+
@use '_help.scss';
|
9
|
+
@use '_cui-message.scss';
|
10
|
+
@use '_modal.scss';
|
11
|
+
@use '_toast.scss';
|
12
|
+
@use '_button-menu.scss';
|
13
|
+
@use '_popovers.scss';
|
14
|
+
@use '_utility.scss';
|
15
|
+
@use '_cui-tree.scss';
|
16
|
+
@use '_globalNotes.scss';
|
17
|
+
@use '_quick_lookup.scss';
|
18
|
+
@use '_cui-formpill.scss';
|
19
|
+
@use '_cui-spinner.scss';
|
20
|
+
@use '_cui-asof.scss';
|
21
|
+
@use '_cui-general.scss';
|
22
|
+
@use '_sidebar-context.scss';
|
23
|
+
@use '_field-radio-group.scss';
|
24
|
+
@use '_field-check-group.scss';
|
25
|
+
@use '_cui-widget.scss';
|
26
|
+
|
27
|
+
// Global Variables
|
28
|
+
:root {
|
29
|
+
// Generic Page variables
|
30
|
+
--page-font: #{"'Open Sans', Arial, sans-serif"};
|
31
|
+
--page-text-color: #{variables.$pageTextColor};
|
32
|
+
--page-nav-text-color: #{variables.$primaryButtonBackground};
|
33
|
+
--page-title-color: #{variables.$pageTitleTextColor};
|
34
|
+
--page-title-icon-color: #{variables.$pageTitleIconColor};
|
35
|
+
--page-background-color: #{variables.$defaultBackground};
|
36
|
+
--standard-font-size: 14px;
|
37
|
+
|
38
|
+
// Section specific variables
|
39
|
+
--section-background-color: #{variables.$sectionBackground};
|
40
|
+
--section-header-border-color: #{variables.$sectionHeaderBorderColor};
|
41
|
+
--section-header-button-hover-color: #{variables.$sectionHeaderButtonHoverColor};
|
42
|
+
--section-header-text-color: #{variables.$sectionHeaderTextColor};
|
43
|
+
--section-header-icon-color: #{variables.$sectionHeaderIconColor};
|
44
|
+
--section-header-fonts: #{"'Open Sans Light', Arial, sans-serif"};
|
45
|
+
--section-box-shadow-color: #{variables.$sectionShadowBoxColor};
|
46
|
+
--section-box-shadow-x: #{variables.$sectionShadowBoxX};
|
47
|
+
--section-box-shadow-y: #{variables.$sectionShadowBoxY};
|
48
|
+
--section-box-shadow-blur: #{variables.$sectionShadowBoxBlur};
|
49
|
+
|
50
|
+
// Buttons
|
51
|
+
--button-radius: #{variables.$buttonBorderRadius};
|
52
|
+
--primary-button-background-color: #{variables.$primaryButtonBackground};
|
53
|
+
--primary-button-text-color: #{variables.$primaryButtonTextColor};
|
54
|
+
--secondary-button-background-color: #{variables.$secondaryButtonBackground};
|
55
|
+
--secondary-button-text-color: #{variables.$secondaryButtonTextColor};
|
56
|
+
--secondary-button-border-color: #{variables.$secondaryButtonBorderColor};
|
57
|
+
|
58
|
+
// Tables
|
59
|
+
--cui-table-header-background-color: #{variables.$tableHeaderBackground};
|
60
|
+
--cui-table-border-color: #{variables.$tableBorderColor};
|
61
|
+
--cui-table-row-background-color-even: #{variables.$tableBodyBackgroundColorEven};
|
62
|
+
--cui-table-row-background-color-odd: #{variables.$tableBodyBackgroundColorOdd};
|
63
|
+
--cui-table-row-background-color-editable: #{variables.$tableBodyBackgroundColorEditable};
|
64
|
+
--cui-table-row-background-color-uneditable: #{variables.$tableBodyBackgroundColorUneditable};
|
65
|
+
--cui-table-body-text-color: #{variables.$tableBodyTextColor};
|
66
|
+
--cui-table-border-override-size: 1px;
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
// Inputs
|
72
|
+
--input-border-color: #{variables.$inputBorderColor};
|
73
|
+
--label-text-color: #{variables.$inputLabelTextColor};
|
74
|
+
|
75
|
+
// cui-field overrides!
|
76
|
+
--cui-field-label-flex-width: 150px;
|
77
|
+
--cui-field-label-color: #{variables.$inputLabelTextColor};
|
78
|
+
|
79
|
+
// Header Icon
|
80
|
+
--page-icon-fill-color: #{variables.$pageTitleIconColor};
|
81
|
+
--page-icon-transparent-color: #{variables.$defaultBackground};
|
82
|
+
--page-icon-hover-color: #{variables.$pageHoverColor};
|
83
|
+
|
84
|
+
// Menu Seperator
|
85
|
+
--menu-seperator-color: #{variables.$menuSeperatorColor};
|
86
|
+
--menu-header-color: #818181;
|
87
|
+
|
88
|
+
// Message Colors
|
89
|
+
--error-color: #bd4e4e;
|
90
|
+
--success-color: #43b17a;
|
91
|
+
|
92
|
+
// Toast Messages
|
93
|
+
--cui-toast-success-background: #43b17a;
|
94
|
+
--cui-toast-success-border: transparent;
|
95
|
+
--cui-toast-success-timer-border: rgba(255, 255, 255, 0.75);
|
96
|
+
|
97
|
+
--cui-notification-toast-info-background: #f6f6f6;
|
98
|
+
--cui-notification-text-color: #FFF;
|
99
|
+
--cui-notification-title-text-color: #222;
|
100
|
+
|
101
|
+
--cui-toast-error-background: #bd4e4e;
|
102
|
+
--cui-toast-error-border: transparent;
|
103
|
+
--cui-toast-error-timer-border: rgba(255, 255, 255, 0.75);
|
104
|
+
|
105
|
+
--cui-toast-warn-background: #ffeb95;
|
106
|
+
--cui-toast-warn-border: transparent;
|
107
|
+
--cui-toast-warn-timer-border: rgba(0, 0, 0, 0.75);
|
108
|
+
|
109
|
+
--cui-toast-info-background: #397dbb;
|
110
|
+
--cui-toast-info-border: transparent;
|
111
|
+
--cui-toast-info-timer-border: rgba(255, 255, 255, 0.75);
|
112
|
+
|
113
|
+
// Special Sections
|
114
|
+
// ======================================================
|
115
|
+
// Parcels
|
116
|
+
|
117
|
+
--context-header-background-color: #{variables.$contextBackground};
|
118
|
+
--context-header-border-color: #{variables.$contextBorderColor};
|
119
|
+
|
120
|
+
}
|
121
|
+
|
122
|
+
html {
|
123
|
+
box-sizing: border-box;
|
124
|
+
}
|
125
|
+
|
126
|
+
*,
|
127
|
+
*:before,
|
128
|
+
*:after {
|
129
|
+
box-sizing: border-box;
|
130
|
+
|
131
|
+
&:focus:not(:focus-visible) {
|
132
|
+
outline: none
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
html,
|
137
|
+
body {
|
138
|
+
background: variables.$defaultBackground;
|
139
|
+
font-family: 'Open Sans', Arial, sans-serif;
|
140
|
+
//height: 100%;
|
141
|
+
padding: 0;
|
142
|
+
margin: 0;
|
143
|
+
width: 100%;
|
144
|
+
}
|
145
|
+
|
146
|
+
body {
|
147
|
+
overflow: auto;
|
148
|
+
|
149
|
+
#snowflake-container {
|
150
|
+
position: fixed;
|
151
|
+
top: 0;
|
152
|
+
left: 0;
|
153
|
+
width: 100%;
|
154
|
+
height: 100%;
|
155
|
+
pointer-events: none;
|
156
|
+
z-index: 9999999;
|
157
|
+
}
|
158
|
+
|
159
|
+
#app-root {
|
160
|
+
display: flex;
|
161
|
+
flex-direction: column;
|
162
|
+
//height: 100%;
|
163
|
+
height: 100vh;
|
164
|
+
position: relative;
|
165
|
+
width: 100%;
|
166
|
+
|
167
|
+
&>div[data-rc="main-lvc"] {
|
168
|
+
display: flex;
|
169
|
+
flex-direction: column;
|
170
|
+
flex: 1;
|
171
|
+
}
|
172
|
+
|
173
|
+
.app-main-template {
|
174
|
+
margin-top: 55px;
|
175
|
+
height: 100%;
|
176
|
+
}
|
177
|
+
|
178
|
+
rpso-appheader {
|
179
|
+
flex: 0 0 55px;
|
180
|
+
}
|
181
|
+
|
182
|
+
main {
|
183
|
+
display: flex;
|
184
|
+
flex-direction: column;
|
185
|
+
height: 100%;
|
186
|
+
|
187
|
+
.page {
|
188
|
+
margin: 1em;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.app-main-region {
|
193
|
+
display: flex;
|
194
|
+
flex-direction: column;
|
195
|
+
height: 100%;
|
196
|
+
flex: 1;
|
197
|
+
|
198
|
+
#app-screen-container {
|
199
|
+
flex: 1;
|
200
|
+
}
|
201
|
+
|
202
|
+
#app-footer-in-page {
|
203
|
+
display: none;
|
204
|
+
}
|
205
|
+
|
206
|
+
#app-footer {
|
207
|
+
|
208
|
+
display: flex;
|
209
|
+
flex-direction: row;
|
210
|
+
|
211
|
+
align-items: center;
|
212
|
+
background: variables.$defaultFooterBackground;
|
213
|
+
display: flex;
|
214
|
+
min-height: 4em;
|
215
|
+
|
216
|
+
div {
|
217
|
+
flex: 1 0 auto;
|
218
|
+
|
219
|
+
&.end {
|
220
|
+
flex: 0 1 75px;
|
221
|
+
|
222
|
+
button {
|
223
|
+
background: transparent;
|
224
|
+
border: 0;
|
225
|
+
margin: 0;
|
226
|
+
|
227
|
+
&:hover {
|
228
|
+
background: var(--page-icon-hover-color);
|
229
|
+
}
|
230
|
+
|
231
|
+
cui-icon {
|
232
|
+
display: block;
|
233
|
+
height: 24px;
|
234
|
+
width: 24px;
|
235
|
+
|
236
|
+
svg {
|
237
|
+
height: 24px;
|
238
|
+
|
239
|
+
path {
|
240
|
+
stroke: #FFF;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
a {
|
250
|
+
color: variables.$white;
|
251
|
+
text-decoration: none;
|
252
|
+
padding-left: 1em;
|
253
|
+
|
254
|
+
&:hover {
|
255
|
+
text-decoration: underline;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
p,
|
263
|
+
li,
|
264
|
+
ul,
|
265
|
+
ol,
|
266
|
+
div,
|
267
|
+
section,
|
268
|
+
main,
|
269
|
+
input,
|
270
|
+
textarea,
|
271
|
+
select {
|
272
|
+
font-family: 'Open Sans', Arial, sans-serif;
|
273
|
+
font-size: var(--standard-font-size);
|
274
|
+
}
|
275
|
+
|
276
|
+
p {
|
277
|
+
margin: 0;
|
278
|
+
}
|
279
|
+
|
280
|
+
cui-section {
|
281
|
+
|
282
|
+
div[slot="section-contents"] {
|
283
|
+
margin: 0 10px;
|
284
|
+
|
285
|
+
div.grid,
|
286
|
+
div.grid-old {
|
287
|
+
|
288
|
+
.row {
|
289
|
+
|
290
|
+
&.align-height {
|
291
|
+
|
292
|
+
cui-section {
|
293
|
+
|
294
|
+
&::part(root-section) {
|
295
|
+
display: flex;
|
296
|
+
flex: 1;
|
297
|
+
flex-direction: column;
|
298
|
+
height: 100%;
|
299
|
+
}
|
300
|
+
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
div[slot="section-footer"] {
|
308
|
+
|
309
|
+
.grid.button-row {
|
310
|
+
border-top: 1px solid variables.$sectionHeaderBorderColor;
|
311
|
+
padding: 0 20px;
|
312
|
+
|
313
|
+
.row {
|
314
|
+
margin: 0;
|
315
|
+
padding-top: 15px;
|
316
|
+
|
317
|
+
.col {
|
318
|
+
display: flex;
|
319
|
+
|
320
|
+
button {
|
321
|
+
margin-left: 10px
|
322
|
+
}
|
323
|
+
|
324
|
+
&>cui-button {
|
325
|
+
|
326
|
+
button {
|
327
|
+
margin-left: 0;
|
328
|
+
}
|
329
|
+
|
330
|
+
}
|
331
|
+
|
332
|
+
&.align-end {
|
333
|
+
:last-child {
|
334
|
+
margin-right: 0px;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
|
338
|
+
&.button-left-col,
|
339
|
+
&.blc {
|
340
|
+
justify-content: end;
|
341
|
+
}
|
342
|
+
|
343
|
+
}
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
[slot="section-text"] {
|
351
|
+
padding-left: 10px;
|
352
|
+
margin-bottom: 20px;
|
353
|
+
}
|
354
|
+
|
355
|
+
cui-section {
|
356
|
+
box-shadow: none;
|
357
|
+
//border: 1px solid var(--section-header-border-color);
|
358
|
+
border-radius: 5px;
|
359
|
+
}
|
360
|
+
|
361
|
+
}
|
362
|
+
|
363
|
+
}
|
364
|
+
|
365
|
+
#build-notes {
|
366
|
+
border: 0;
|
367
|
+
}
|
368
|
+
|
369
|
+
// Prototype max width
|
370
|
+
@media screen and (min-width: 950px) {
|
371
|
+
|
372
|
+
cui-section {
|
373
|
+
div[slot="section-contents"] {
|
374
|
+
margin: 0 20px;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
}
|
378
|
+
|
379
|
+
// Prototype max width
|
380
|
+
@media screen and (min-width: 1440px) {
|
381
|
+
|
382
|
+
cui-section {
|
383
|
+
max-width: 1162px;
|
384
|
+
}
|
385
|
+
|
386
|
+
cui-input-group {
|
387
|
+
margin-bottom: 10px;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
rpso-pageinfo {
|
392
|
+
&::part(page-info) {
|
393
|
+
flex-wrap: wrap;
|
394
|
+
align-items: center;
|
395
|
+
}
|
396
|
+
|
397
|
+
&::part(page-title) {
|
398
|
+
flex-basis: 80%;
|
399
|
+
order: 1;
|
400
|
+
}
|
401
|
+
|
402
|
+
&::part(page-info-controls) {
|
403
|
+
order: 2;
|
404
|
+
}
|
405
|
+
|
406
|
+
&::part(page-update-info) {
|
407
|
+
flex-wrap: wrap;
|
408
|
+
order: 3;
|
409
|
+
}
|
410
|
+
}
|
411
|
+
|
412
|
+
@media screen and (min-width: 800px) {
|
413
|
+
rpso-pageinfo {
|
414
|
+
&::part(page-info) {
|
415
|
+
flex-wrap: nowrap;
|
416
|
+
flex-direction: row;
|
417
|
+
}
|
418
|
+
|
419
|
+
&::part(page-title) {
|
420
|
+
order: 1;
|
421
|
+
flex-basis: unset;
|
422
|
+
}
|
423
|
+
|
424
|
+
&::part(page-info-controls) {
|
425
|
+
order: 3;
|
426
|
+
}
|
427
|
+
|
428
|
+
&::part(page-update-info) {
|
429
|
+
order: 2;
|
430
|
+
flex-wrap: unset;
|
431
|
+
text-wrap-mode: nowrap;
|
432
|
+
}
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
@media screen and (min-width: 650px) {
|
437
|
+
cui-section div[slot="section-contents"] div.grid .row .col {
|
438
|
+
cui-section {
|
439
|
+
margin-left: .75rem;
|
440
|
+
margin-right: .75rem;
|
441
|
+
}
|
442
|
+
|
443
|
+
&:first-of-type cui-section {
|
444
|
+
margin-left: 0;
|
445
|
+
}
|
446
|
+
|
447
|
+
&:last-of-type cui-section {
|
448
|
+
margin-right: 0;
|
449
|
+
}
|
450
|
+
}
|
451
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// Import Now
|
2
|
+
//
|
3
|
+
// If you import this module directly, it will immediately output all the CSS
|
4
|
+
// needed to normalize default HTML elements across all browsers.
|
5
|
+
//
|
6
|
+
// ```
|
7
|
+
// @import "normalize/import-now";
|
8
|
+
// ```
|
9
|
+
|
10
|
+
@import '../normalize';
|
11
|
+
@include normalize();
|