wj-elements 0.1.129 → 0.1.130
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/README.md +8 -4
- package/dist/assets/tags.json +3252 -22012
- package/dist/dark.css +213 -210
- package/dist/{infinite-scroll.element-R3y_ZQj6.js → infinite-scroll.element-BmojLp3Z.js} +16 -34
- package/dist/light.css +511 -501
- package/dist/{list.element-syl98NWS.js → list.element-Ce1vIm1O.js} +2 -11
- package/dist/localize.js +1 -2
- package/dist/{popup.element-C0a1z1y2.js → popup.element-4DNn6DjX.js} +102 -224
- package/dist/{router-links-I2vcmVCs.js → router-links-CJnOdbas.js} +30 -77
- package/dist/styles.css +485 -473
- package/dist/wje-accordion-item.js +12 -10
- package/dist/wje-accordion.js +51 -14
- package/dist/wje-animation.js +9 -13
- package/dist/wje-aside.js +6 -11
- package/dist/wje-avatar.js +7 -10
- package/dist/wje-badge.js +23 -18
- package/dist/wje-breadcrumb.js +30 -48
- package/dist/wje-breadcrumbs.js +80 -23
- package/dist/wje-button-group.js +15 -21
- package/dist/wje-button.js +64 -71
- package/dist/wje-card-content.js +9 -12
- package/dist/wje-card-controls.js +9 -12
- package/dist/wje-card-header.js +4 -8
- package/dist/wje-card-subtitle.js +4 -7
- package/dist/wje-card-title.js +4 -7
- package/dist/wje-card.js +13 -14
- package/dist/wje-carousel-item.js +25 -0
- package/dist/wje-carousel.js +140 -23
- package/dist/wje-checkbox.js +294 -48
- package/dist/wje-chip.js +30 -11
- package/dist/wje-col.js +7 -17
- package/dist/wje-color-picker.js +32 -34
- package/dist/wje-container.js +5 -9
- package/dist/wje-copy-button.js +11 -15
- package/dist/wje-dialog.js +12 -17
- package/dist/wje-divider.js +1 -4
- package/dist/wje-dropdown.js +41 -23
- package/dist/wje-element.js +214 -196
- package/dist/wje-file-upload-item.js +11 -21
- package/dist/wje-file-upload.js +64 -59
- package/dist/wje-footer.js +2 -9
- package/dist/wje-form.js +22 -0
- package/dist/wje-format-digital.js +4 -12
- package/dist/wje-grid.js +23 -2
- package/dist/wje-header.js +2 -9
- package/dist/wje-icon-picker.js +14 -33
- package/dist/wje-icon.js +9 -12
- package/dist/wje-img-comparer.js +7 -15
- package/dist/wje-img.js +3 -12
- package/dist/wje-infinite-scroll.js +1 -1
- package/dist/wje-input-file.js +19 -19
- package/dist/wje-input.js +50 -66
- package/dist/wje-item.js +11 -15
- package/dist/wje-kanban.js +22 -23
- package/dist/wje-label.js +3 -11
- package/dist/wje-list.js +1 -1
- package/dist/wje-main.js +3 -10
- package/dist/wje-masonry.js +16 -21
- package/dist/wje-master.js +197 -236
- package/dist/wje-menu-button.js +4 -15
- package/dist/wje-menu-item.js +209 -37
- package/dist/wje-menu-label.js +3 -10
- package/dist/wje-menu.js +5 -17
- package/dist/wje-option.js +18 -29
- package/dist/wje-options.js +141 -55
- package/dist/wje-orgchart-group.js +8 -15
- package/dist/wje-orgchart-item.js +10 -157
- package/dist/wje-orgchart.js +3 -9
- package/dist/wje-popup.js +1 -1
- package/dist/wje-progress-bar.js +11 -25
- package/dist/wje-qr-code.js +27 -11
- package/dist/wje-radio-group.js +20 -45
- package/dist/wje-radio.js +45 -7
- package/dist/wje-rate.js +35 -58
- package/dist/wje-relative-time.js +19 -29
- package/dist/wje-reorder-dropzone.js +20 -2
- package/dist/wje-reorder-handle.js +62 -3
- package/dist/wje-reorder-item.js +20 -2
- package/dist/wje-reorder.js +43 -49
- package/dist/wje-route.js +2 -8
- package/dist/wje-router-link.js +9 -12
- package/dist/wje-router-outlet.js +35 -37
- package/dist/wje-routerx.js +231 -340
- package/dist/wje-row.js +7 -9
- package/dist/wje-select.js +72 -99
- package/dist/wje-slider.js +13 -32
- package/dist/wje-sliding-container.js +3 -7
- package/dist/wje-split-view.js +8 -22
- package/dist/wje-status.js +8 -12
- package/dist/wje-step.js +18 -0
- package/dist/wje-stepper.js +41 -4823
- package/dist/wje-store.js +178 -74
- package/dist/wje-tab-group.js +7 -19
- package/dist/wje-tab-panel.js +3 -12
- package/dist/wje-tab.js +5 -16
- package/dist/wje-textarea.js +127 -47
- package/dist/wje-thumbnail.js +9 -14
- package/dist/wje-toast.js +27 -64
- package/dist/wje-toggle.js +21 -32
- package/dist/wje-toolbar-action.js +10 -14
- package/dist/wje-toolbar.js +10 -15
- package/dist/wje-tooltip.js +33 -25
- package/dist/wje-visually-hidden.js +9 -13
- package/package.json +15 -8
package/dist/dark.css
CHANGED
|
@@ -5,216 +5,219 @@
|
|
|
5
5
|
:host,
|
|
6
6
|
.wje-theme-dark,
|
|
7
7
|
.dark {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
8
|
+
color-scheme: dark;
|
|
9
|
+
|
|
10
|
+
--wje-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
11
|
+
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
12
|
+
--wje-font-family-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
13
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
14
|
+
--wje-force-mac-font-family: -apple-system, BlinkMacSystemFont, 'Inter UI', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
15
|
+
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
16
|
+
|
|
17
|
+
--wje-border-size: 0px;
|
|
18
|
+
--wje-border-style: solid;
|
|
19
|
+
|
|
20
|
+
--wje-backdrop: rgb(0, 0, 0);
|
|
21
|
+
--wje-backdrop-opacity: 0.3;
|
|
22
|
+
|
|
23
|
+
/*COLORS*/
|
|
24
|
+
--wje-color: var(--wje-color-contrast-11);
|
|
25
|
+
--wje-color-dark: hsl(0, 0%, 29%);
|
|
26
|
+
--wje-color-light: hsl(0 0% 95%);
|
|
27
|
+
--wje-background: var(--wje-color-contrast-2);
|
|
28
|
+
--wje-border-color: var(--wje-color-contrast-4);
|
|
29
|
+
|
|
30
|
+
--wje-card-background: var(--wje-color-contrast-3);
|
|
31
|
+
--wje-card-color: var(--wje-color-white) !important;
|
|
32
|
+
|
|
33
|
+
--wje-color-primary: var(--wje-color-primary-1);
|
|
34
|
+
--wje-color-complete: var(--wje-color-complete-1);
|
|
35
|
+
--wje-color-success: var(--wje-color-success-1);
|
|
36
|
+
--wje-color-warning: var(--wje-color-warning-1);
|
|
37
|
+
--wje-color-danger: var(--wje-color-danger-1);
|
|
38
|
+
--wje-color-info: var(--wje-color-info-1);
|
|
39
|
+
--wje-color-menu: hsl(220, 15%, 15%);
|
|
40
|
+
--wje-color-contrast: hsl(210, 11%, 15%);
|
|
41
|
+
|
|
42
|
+
--wje-color-white: #fff;
|
|
43
|
+
--wje-color-black: #000;
|
|
44
|
+
|
|
45
|
+
/* Primary */
|
|
46
|
+
--wje-color-primary-1: hsla(254, 50%, 21%, 1);
|
|
47
|
+
--wje-color-primary-2: hsla(254, 52%, 24%, 1);
|
|
48
|
+
--wje-color-primary-3: hsla(254, 52%, 35%, 1);
|
|
49
|
+
--wje-color-primary-4: hsla(254, 54%, 39%, 1);
|
|
50
|
+
--wje-color-primary-5: hsla(254, 54%, 47%, 1);
|
|
51
|
+
--wje-color-primary-6: hsla(254, 54%, 53%, 1);
|
|
52
|
+
--wje-color-primary-7: hsla(254, 54%, 57%, 1);
|
|
53
|
+
--wje-color-primary-8: hsla(254, 68%, 66%, 1);
|
|
54
|
+
--wje-color-primary-9: hsla(254, 88%, 78%, 1);
|
|
55
|
+
--wje-color-primary-10: hsla(254, 70%, 81%, 1);
|
|
56
|
+
--wje-color-primary-11: hsla(254, 69%, 88%, 1);
|
|
57
|
+
|
|
58
|
+
/* Complete */
|
|
59
|
+
--wje-color-complete-1: hsla(211, 91%, 16%, 1);
|
|
60
|
+
--wje-color-complete-2: hsla(211, 91%, 23%, 1);
|
|
61
|
+
--wje-color-complete-3: hsla(211, 91%, 31%, 1);
|
|
62
|
+
--wje-color-complete-4: hsla(211, 93%, 35%, 1);
|
|
63
|
+
--wje-color-complete-5: hsla(211, 93%, 39%, 1);
|
|
64
|
+
--wje-color-complete-6: hsla(211, 93%, 44%, 1);
|
|
65
|
+
--wje-color-complete-7: hsla(211, 93%, 49%, 1);
|
|
66
|
+
--wje-color-complete-8: hsla(211, 93%, 55%, 1);
|
|
67
|
+
--wje-color-complete-9: hsla(211, 100%, 75%, 1);
|
|
68
|
+
--wje-color-complete-10: hsla(211, 100%, 81%, 1);
|
|
69
|
+
--wje-color-complete-11: hsla(211, 93%, 85%, 1);
|
|
70
|
+
|
|
71
|
+
/* Success */
|
|
72
|
+
--wje-color-success-1: hsla(158, 93%, 13%, 1);
|
|
73
|
+
--wje-color-success-2: hsla(158, 94%, 16%, 1);
|
|
74
|
+
--wje-color-success-3: hsla(158, 95%, 19%, 1);
|
|
75
|
+
--wje-color-success-4: hsla(158, 96%, 22%, 1);
|
|
76
|
+
--wje-color-success-5: hsla(158, 96%, 24%, 1);
|
|
77
|
+
--wje-color-success-6: hsla(158, 95%, 27%, 1);
|
|
78
|
+
--wje-color-success-7: hsla(158, 96%, 31%, 1);
|
|
79
|
+
--wje-color-success-8: hsla(158, 96%, 35%, 1);
|
|
80
|
+
--wje-color-success-9: hsla(158, 86%, 48%, 1);
|
|
81
|
+
--wje-color-success-10: hsla(158, 78%, 62%, 1);
|
|
82
|
+
--wje-color-success-11: hsla(158, 80%, 75%, 1);
|
|
83
|
+
|
|
84
|
+
/* Warning */
|
|
85
|
+
--wje-color-warning-1: hsla(47, 75%, 19%, 1);
|
|
86
|
+
--wje-color-warning-2: hsla(47, 75%, 23%, 1);
|
|
87
|
+
--wje-color-warning-3: hsla(47, 75%, 27%, 1);
|
|
88
|
+
--wje-color-warning-4: hsla(47, 74%, 31%, 1);
|
|
89
|
+
--wje-color-warning-5: hsla(47, 78%, 37%, 1);
|
|
90
|
+
--wje-color-warning-6: hsla(47, 78%, 41%, 1);
|
|
91
|
+
--wje-color-warning-7: hsla(47, 78%, 45%, 1);
|
|
92
|
+
--wje-color-warning-8: hsla(47, 80%, 52%, 1);
|
|
93
|
+
--wje-color-warning-9: hsla(47, 80%, 67%, 1);
|
|
94
|
+
--wje-color-warning-10: hsla(47, 90%, 74%, 1);
|
|
95
|
+
--wje-color-warning-11: hsla(47, 90%, 80%, 1);
|
|
96
|
+
|
|
97
|
+
/* Danger */
|
|
98
|
+
--wje-color-danger-1: hsla(3, 82%, 17%, 1);
|
|
99
|
+
--wje-color-danger-2: hsla(3, 82%, 19%, 1);
|
|
100
|
+
--wje-color-danger-3: hsla(3, 83%, 28%, 1);
|
|
101
|
+
--wje-color-danger-4: hsla(3, 83%, 32%, 1);
|
|
102
|
+
--wje-color-danger-5: hsla(3, 83%, 36%, 1);
|
|
103
|
+
--wje-color-danger-6: hsla(3, 83%, 40%, 1);
|
|
104
|
+
--wje-color-danger-7: hsla(3, 82%, 44%, 1);
|
|
105
|
+
--wje-color-danger-8: hsla(3, 72%, 58%, 1);
|
|
106
|
+
--wje-color-danger-9: hsla(3, 80%, 70%, 1);
|
|
107
|
+
--wje-color-danger-10: hsla(3, 80%, 76%, 1);
|
|
108
|
+
--wje-color-danger-11: hsla(4, 80%, 82%, 1);
|
|
109
|
+
|
|
110
|
+
/* Info */
|
|
111
|
+
--wje-color-info-1: hsla(207, 36%, 16%, 1);
|
|
112
|
+
--wje-color-info-2: hsla(207, 16%, 27%, 1);
|
|
113
|
+
--wje-color-info-3: hsla(207, 20%, 35%, 1);
|
|
114
|
+
--wje-color-info-4: hsla(210, 7%, 45%, 1);
|
|
115
|
+
--wje-color-info-5: hsla(208, 6%, 55%, 1);
|
|
116
|
+
--wje-color-info-6: hsla(203, 6%, 62%, 1);
|
|
117
|
+
--wje-color-info-7: hsla(213, 6%, 69%, 1);
|
|
118
|
+
--wje-color-info-8: hsla(203, 5%, 71%, 1);
|
|
119
|
+
--wje-color-info-9: hsla(210, 7%, 78%, 1);
|
|
120
|
+
--wje-color-info-10: hsla(204, 6%, 85%, 1);
|
|
121
|
+
--wje-color-info-11: hsla(210, 5%, 92%, 1);
|
|
122
|
+
|
|
123
|
+
/* Contrast */
|
|
124
|
+
--wje-color-contrast-0: hsla(240, 3%, 13%, 1);
|
|
125
|
+
--wje-color-contrast-1: hsla(240, 6%, 10%, 1);
|
|
126
|
+
--wje-color-contrast-2: hsla(0, 0%, 0%, 1);
|
|
127
|
+
--wje-color-contrast-3: hsla(240, 5%, 30%, 1);
|
|
128
|
+
--wje-color-contrast-4: hsla(240, 5%, 41%, 1);
|
|
129
|
+
--wje-color-contrast-5: hsla(240, 4%, 58%, 1);
|
|
130
|
+
--wje-color-contrast-6: hsla(240, 5%, 75%, 1);
|
|
131
|
+
--wje-color-contrast-7: hsla(240, 5%, 84%, 1);
|
|
132
|
+
--wje-color-contrast-8: hsla(240, 6%, 90%, 1);
|
|
133
|
+
--wje-color-contrast-9: hsla(240, 5%, 96%, 1);
|
|
134
|
+
--wje-color-contrast-10: hsla(0, 0%, 98%, 1);
|
|
135
|
+
--wje-color-contrast-11: hsla(0, 0%, 100%, 1);
|
|
136
|
+
|
|
137
|
+
/*
|
|
135
138
|
[ Elements ]
|
|
136
139
|
*/
|
|
137
140
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
141
|
+
/* Avatar */
|
|
142
|
+
--wje-avatar-color: var(--wje-color-contrast-11);
|
|
143
|
+
--wje-avatar-background-color: var(--wje-color-contrast-3);
|
|
144
|
+
|
|
145
|
+
/* Breadcrumb */
|
|
146
|
+
--wje-breadcrumb-a: var(--wje-color-contrast-8);
|
|
147
|
+
--wje-breadcrumb-a-hover: var(--wje-color-contrast-6);
|
|
148
|
+
|
|
149
|
+
/* Button */
|
|
150
|
+
--wje-button-border-color: var(--wje-color-contrast-1);
|
|
151
|
+
|
|
152
|
+
/* Divider */
|
|
153
|
+
--wje-divider-border-color: var(--wje-border-color);
|
|
154
|
+
|
|
155
|
+
/* File Upload - Item */
|
|
156
|
+
--wje-file-upload-item-border-width: 1px;
|
|
157
|
+
--wje-file-upload-item-border-style: solid;
|
|
158
|
+
--wje-file-upload-item-border-color: var(--wje-border-color);
|
|
159
|
+
|
|
160
|
+
/* Input */
|
|
161
|
+
--wje-input-background-color: var(--wje-background);
|
|
162
|
+
--wje-input-color: var(--wje-color);
|
|
163
|
+
--wje-input-color-invalid: var(--wje-color-danger);
|
|
164
|
+
--wje-input-border-color: var(--wje-border-color);
|
|
165
|
+
--wje-input-border-color-focus: var(--wje-color-primary);
|
|
166
|
+
|
|
167
|
+
/* Item */
|
|
168
|
+
--wje-item-color: var(--wje-color);
|
|
169
|
+
--wje-item-border-color: var(--wje-border-color);
|
|
170
|
+
--wje-item-background: transparent;
|
|
171
|
+
--wje-item-background-hover: var(--wje-color-contrast-3);
|
|
172
|
+
|
|
173
|
+
/* List */
|
|
174
|
+
--wje-list-background: var(--wje-background);
|
|
175
|
+
|
|
176
|
+
/* Menu */
|
|
177
|
+
--wje-menu-background: var(--wje-background);
|
|
178
|
+
--wje-menu-border-color: var(--wje-border-color);
|
|
179
|
+
|
|
180
|
+
/* Menu - Item */
|
|
181
|
+
--wje-menu-item-color: var(--wje-color);
|
|
182
|
+
--wje-menu-item-background: transparent;
|
|
183
|
+
--wje-menu-item-color-hover: var(--wje-color-contrast-8);
|
|
184
|
+
--wje-menu-item-background-hover: var(--wje-border-color);
|
|
185
|
+
--wje-menu-item-color-focus: var(--wje-color-contrast-8);
|
|
186
|
+
--wje-menu-item-background-focus: var(--wje-border-color);
|
|
187
|
+
--wje-menu-item-color-active: var(--wje-color-contrast-8);
|
|
188
|
+
--wje-menu-item-background-active: var(--wje-border-color);
|
|
189
|
+
|
|
190
|
+
/* Option */
|
|
191
|
+
--wje-option-highlighted: var(--wje-color-contrast-3);
|
|
192
|
+
|
|
193
|
+
/* Orgchart - Item */
|
|
194
|
+
--wje-orgchart-item-background: var(--wje-color-contrast-0);
|
|
195
|
+
|
|
196
|
+
--wje-orgchart-item-highlight-background: var(--wje-color-complete-2);
|
|
197
|
+
--wje-orgchart-item-boss-background: var(--wje-color-complete-2);
|
|
198
|
+
--wje-orgchart-item-hover-background: var(--wje-color-contrast-3);
|
|
199
|
+
|
|
200
|
+
--wje-orgchart-item-highlight-border: 1px solid var(--wje-color-complete-3);
|
|
201
|
+
--wje-orgchart-item-boss-border: 1px solid var(--wje-border-color);
|
|
202
|
+
--wje-orgchart-item-hover-border: 1px solid var(--wje-color-danger-3);
|
|
203
|
+
|
|
204
|
+
/* Rate */
|
|
205
|
+
--wje-rate-color: var(--wje-color-contrast-11);
|
|
206
|
+
--wje-rate-selected-color: var(--wje-color-danger-6);
|
|
207
|
+
|
|
208
|
+
/* Tab */
|
|
209
|
+
--wje-tab-color-active: var(--wje-color-primary-11);
|
|
210
|
+
--wje-tab-color-hover: var(--wje-color-primary-1);
|
|
211
|
+
|
|
212
|
+
/* Textarea */
|
|
213
|
+
--wje-textarea-background-color: var(--wje-background);
|
|
214
|
+
--wje-textarea-color: var(--wje-color);
|
|
215
|
+
--wje-textarea-color-invalid: var(--wje-color-danger-1);
|
|
216
|
+
--wje-textarea-border-color: var(--wje-border-color);
|
|
217
|
+
--wje-textarea-border-color-focus: var(--wje-color-primary-1);
|
|
218
|
+
|
|
219
|
+
/* Tooltip */
|
|
220
|
+
--wje-tooltip-arrow-color: var(--wje-color-contrast-4);
|
|
221
|
+
--wje-tooltip-background: var(--wje-color-contrast-4);
|
|
222
|
+
--wje-tooltip-color: var(--wje-color-contrast-11);
|
|
223
|
+
}
|
|
@@ -2,15 +2,12 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import WJElement, { WjElementUtils, event } from "./wje-element.js";
|
|
5
|
-
const styles = "/*\n[ Wj infinite Scroll ]\n*/\n\n:host {\n
|
|
5
|
+
const styles = "/*\n[ Wj infinite Scroll ]\n*/\n\n:host {\n overflow-x: auto;\n width: var(--wje-infinite-scroll-width);\n height: var(--wje-infinite-scroll-height);\n display: block;\n}\n\n.native {\n /*position: relative;*/\n}\n\n.loading {\n position: sticky;\n display: none;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 9999;\n background-color: var(--wje-infinite-scroll-loading-bg);\n &.show {\n display: flex;\n }\n}\n\n[name='ending'] {\n display: none;\n margin-top: 1rem;\n text-align: center;\n}\n\n[name='ending'].show {\n display: block;\n}\n";
|
|
6
6
|
class InfiniteScroll extends WJElement {
|
|
7
7
|
/**
|
|
8
8
|
* Creates an instance of InfiniteScroll.
|
|
9
|
-
*
|
|
10
|
-
* @constructor
|
|
11
|
-
* @param {Object} options - The options for the InfiniteScroll.
|
|
12
9
|
*/
|
|
13
|
-
constructor(
|
|
10
|
+
constructor() {
|
|
14
11
|
super();
|
|
15
12
|
__publicField(this, "className", "InfiniteScroll");
|
|
16
13
|
/**
|
|
@@ -27,8 +24,7 @@ class InfiniteScroll extends WJElement {
|
|
|
27
24
|
});
|
|
28
25
|
/**
|
|
29
26
|
* Handles the scroll event.
|
|
30
|
-
*
|
|
31
|
-
* @param {Event} e - The event.
|
|
27
|
+
* @param {Event} e The event.
|
|
32
28
|
*/
|
|
33
29
|
__publicField(this, "onScroll", (e) => {
|
|
34
30
|
const { scrollTop, scrollHeight, clientHeight } = e.target;
|
|
@@ -57,7 +53,7 @@ class InfiniteScroll extends WJElement {
|
|
|
57
53
|
/**
|
|
58
54
|
* Interpolates the string.
|
|
59
55
|
* @param template
|
|
60
|
-
* @param {
|
|
56
|
+
* @param {object} params The parameters for interpolation.
|
|
61
57
|
* @returns {string} The interpolated string.
|
|
62
58
|
*/
|
|
63
59
|
__publicField(this, "interpolate", (template, params) => {
|
|
@@ -122,7 +118,6 @@ class InfiniteScroll extends WJElement {
|
|
|
122
118
|
}
|
|
123
119
|
/**
|
|
124
120
|
* Returns the CSS styles for the component.
|
|
125
|
-
*
|
|
126
121
|
* @static
|
|
127
122
|
* @returns {CSSStyleSheet}
|
|
128
123
|
*/
|
|
@@ -131,7 +126,6 @@ class InfiniteScroll extends WJElement {
|
|
|
131
126
|
}
|
|
132
127
|
/**
|
|
133
128
|
* Returns the list of attributes to observe for changes.
|
|
134
|
-
*
|
|
135
129
|
* @static
|
|
136
130
|
* @returns {Array<string>}
|
|
137
131
|
*/
|
|
@@ -146,10 +140,6 @@ class InfiniteScroll extends WJElement {
|
|
|
146
140
|
}
|
|
147
141
|
/**
|
|
148
142
|
* Prepares the component before drawing.
|
|
149
|
-
*
|
|
150
|
-
* @param {Object} context - The context for drawing.
|
|
151
|
-
* @param {Object} store - The store for drawing.
|
|
152
|
-
* @param {Object} params - The parameters for drawing.
|
|
153
143
|
*/
|
|
154
144
|
beforeDraw() {
|
|
155
145
|
var _a, _b;
|
|
@@ -164,11 +154,7 @@ class InfiniteScroll extends WJElement {
|
|
|
164
154
|
}
|
|
165
155
|
}
|
|
166
156
|
/**
|
|
167
|
-
* Draws the component.
|
|
168
|
-
*
|
|
169
|
-
* @param {Object} context - The context for drawing.
|
|
170
|
-
* @param {Object} store - The store for drawing.
|
|
171
|
-
* @param {Object} params - The parameters for drawing.
|
|
157
|
+
* Draws the component and returns a document fragment.
|
|
172
158
|
* @returns {DocumentFragment}
|
|
173
159
|
*/
|
|
174
160
|
draw() {
|
|
@@ -196,9 +182,6 @@ class InfiniteScroll extends WJElement {
|
|
|
196
182
|
}
|
|
197
183
|
/**
|
|
198
184
|
* Called after the component has been drawn.
|
|
199
|
-
* @params {Object} context - The context for drawing.
|
|
200
|
-
* @params {Object} store - The store for drawing.
|
|
201
|
-
* @params {Object} params - The parameters for drawing.
|
|
202
185
|
*/
|
|
203
186
|
async afterDraw() {
|
|
204
187
|
this.queryParams = this.queryParams || "";
|
|
@@ -210,15 +193,17 @@ class InfiniteScroll extends WJElement {
|
|
|
210
193
|
}
|
|
211
194
|
/**
|
|
212
195
|
* Fetches the pages from the server.
|
|
213
|
-
*
|
|
214
|
-
* @
|
|
215
|
-
* @returns {Promise<Object>} The response from the server.
|
|
196
|
+
* @param {number} page The page number.
|
|
197
|
+
* @returns {Promise<object>} The response from the server.
|
|
216
198
|
*/
|
|
217
199
|
async getPages(page) {
|
|
218
200
|
let hasParams = this.url.includes("?");
|
|
219
|
-
const response = await fetch(
|
|
220
|
-
|
|
221
|
-
|
|
201
|
+
const response = await fetch(
|
|
202
|
+
`${this.url}${hasParams ? "&" : "?"}page=${page}&size=${this.size}${this == null ? void 0 : this.queryParams}`,
|
|
203
|
+
{
|
|
204
|
+
signal: this._signal
|
|
205
|
+
}
|
|
206
|
+
);
|
|
222
207
|
if (!response.ok) {
|
|
223
208
|
throw new Error(`An error occurred: ${response.status}`);
|
|
224
209
|
}
|
|
@@ -240,8 +225,7 @@ class InfiniteScroll extends WJElement {
|
|
|
240
225
|
}
|
|
241
226
|
/**
|
|
242
227
|
* Checks if there are more pages to load.
|
|
243
|
-
*
|
|
244
|
-
* @param {number} page - The page number.
|
|
228
|
+
* @param {number} page The page number.
|
|
245
229
|
* @returns {boolean} Whether there are more pages to load.
|
|
246
230
|
*/
|
|
247
231
|
hasMorePages(page) {
|
|
@@ -249,8 +233,7 @@ class InfiniteScroll extends WJElement {
|
|
|
249
233
|
}
|
|
250
234
|
/**
|
|
251
235
|
* Loads the pages.
|
|
252
|
-
*
|
|
253
|
-
* @param {number} page - The page number.
|
|
236
|
+
* @param {number} page The page number.
|
|
254
237
|
*/
|
|
255
238
|
async loadPages(page) {
|
|
256
239
|
this.showLoader();
|
|
@@ -266,8 +249,7 @@ class InfiniteScroll extends WJElement {
|
|
|
266
249
|
this.totalPages = response == null ? void 0 : response.totalPages;
|
|
267
250
|
this.currentPage = page;
|
|
268
251
|
this.placementObj = this;
|
|
269
|
-
if (this.hasAttribute("placement"))
|
|
270
|
-
this.placementObj = this.querySelector(this.placement);
|
|
252
|
+
if (this.hasAttribute("placement")) this.placementObj = this.querySelector(this.placement);
|
|
271
253
|
event.dispatchCustomEvent(this, "wje-infinite-scroll:load", response);
|
|
272
254
|
this.response = response;
|
|
273
255
|
this.customForeach(this.objectName ? response[this.objectName] : response);
|