ezfw-core 1.0.0
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/components/EzBaseComponent.ts +648 -0
- package/components/EzComponent.ts +89 -0
- package/components/EzInput.module.scss +183 -0
- package/components/EzInput.ts +104 -0
- package/components/EzLabel.ts +22 -0
- package/components/EzOutlet.ts +181 -0
- package/components/HtmlWrapper.ts +305 -0
- package/components/avatar/EzAvatar.module.scss +200 -0
- package/components/avatar/EzAvatar.ts +130 -0
- package/components/badge/EzBadge.module.scss +202 -0
- package/components/badge/EzBadge.ts +77 -0
- package/components/button/EzButton.module.scss +402 -0
- package/components/button/EzButton.ts +175 -0
- package/components/button/EzButtonGroup.ts +48 -0
- package/components/card/EzCard.module.scss +71 -0
- package/components/card/EzCard.ts +120 -0
- package/components/chart/EzBarChart.ts +47 -0
- package/components/chart/EzChart.module.scss +14 -0
- package/components/chart/EzChart.ts +279 -0
- package/components/chart/EzDoughnutChart.ts +47 -0
- package/components/chart/EzLineChart.ts +53 -0
- package/components/checkbox/EzCheckbox.module.scss +145 -0
- package/components/checkbox/EzCheckbox.ts +115 -0
- package/components/dataview/EzDataView.module.scss +115 -0
- package/components/dataview/EzDataView.ts +355 -0
- package/components/dataview/modes/EzDataViewCards.ts +322 -0
- package/components/dataview/modes/EzDataViewGrid.ts +76 -0
- package/components/datepicker/EzDatePicker.module.scss +348 -0
- package/components/datepicker/EzDatePicker.ts +519 -0
- package/components/dialog/EzDialog.module.scss +180 -0
- package/components/dropdown/EzDropdown.module.scss +107 -0
- package/components/dropdown/EzDropdown.ts +235 -0
- package/components/feed/EzActivityFeed.module.scss +90 -0
- package/components/feed/EzActivityFeed.ts +78 -0
- package/components/form/EzForm.ts +364 -0
- package/components/form/EzValidators.test.js +421 -0
- package/components/form/EzValidators.ts +202 -0
- package/components/grid/EzGrid.scss +88 -0
- package/components/grid/EzGrid.ts +1085 -0
- package/components/grid/EzGridContainer.ts +104 -0
- package/components/grid/body/EzGridBody.scss +283 -0
- package/components/grid/body/EzGridBody.ts +549 -0
- package/components/grid/body/EzGridCell.ts +211 -0
- package/components/grid/body/EzGridRow.ts +196 -0
- package/components/grid/filter/EzGridFilters.scss +78 -0
- package/components/grid/filter/EzGridFilters.ts +285 -0
- package/components/grid/footer/EzGridFooter.scss +136 -0
- package/components/grid/footer/EzGridFooter.ts +448 -0
- package/components/grid/header/EzGridHeader.scss +199 -0
- package/components/grid/header/EzGridHeader.ts +430 -0
- package/components/grid/query/EzGridQuery.ts +81 -0
- package/components/grid/state/EzGridColumns.ts +155 -0
- package/components/grid/state/EzGridController.ts +470 -0
- package/components/grid/state/EzGridLifecycle.ts +136 -0
- package/components/grid/state/EzGridNormalizers.test.js +273 -0
- package/components/grid/state/EzGridNormalizers.ts +162 -0
- package/components/grid/state/EzGridParts.ts +233 -0
- package/components/grid/state/EzGridPersistence.ts +140 -0
- package/components/grid/state/EzGridRemote.test.js +573 -0
- package/components/grid/state/EzGridRemote.ts +335 -0
- package/components/grid/state/EzGridSelection.ts +231 -0
- package/components/grid/state/EzGridSort.ts +286 -0
- package/components/grid/title/EzGridActionBar.ts +98 -0
- package/components/grid/title/EzGridTitle.ts +114 -0
- package/components/grid/title/EzGridTitleBar.scss +65 -0
- package/components/grid/title/EzGridTitleBar.ts +87 -0
- package/components/grid/types.ts +607 -0
- package/components/panel/EzPanel.module.scss +133 -0
- package/components/panel/EzPanel.ts +147 -0
- package/components/radio/EzRadio.module.scss +190 -0
- package/components/radio/EzRadio.ts +149 -0
- package/components/select/EzSelect.module.scss +153 -0
- package/components/select/EzSelect.ts +238 -0
- package/components/skeleton/EzSkeleton.module.scss +95 -0
- package/components/skeleton/EzSkeleton.ts +70 -0
- package/components/store/EzStore.ts +344 -0
- package/components/switch/EzSwitch.module.scss +164 -0
- package/components/switch/EzSwitch.ts +117 -0
- package/components/tabs/EzTabPanel.module.scss +181 -0
- package/components/tabs/EzTabPanel.ts +402 -0
- package/components/textarea/EzTextarea.module.scss +131 -0
- package/components/textarea/EzTextarea.ts +161 -0
- package/components/timepicker/EzTimePicker.module.scss +282 -0
- package/components/timepicker/EzTimePicker.ts +540 -0
- package/components/toast/EzToast.module.scss +291 -0
- package/components/tooltip/EzTooltip.module.scss +124 -0
- package/components/tooltip/EzTooltip.ts +153 -0
- package/core/EzComponentTypes.ts +693 -0
- package/core/EzError.ts +63 -0
- package/core/EzModel.ts +268 -0
- package/core/EzTypes.ts +328 -0
- package/core/eventBus.ts +284 -0
- package/core/ez.ts +617 -0
- package/core/loader.ts +725 -0
- package/core/renderer.ts +1010 -0
- package/core/router.ts +490 -0
- package/core/services.ts +124 -0
- package/core/state.ts +142 -0
- package/core/utils.ts +81 -0
- package/package.json +51 -0
- package/services/RouteUI.js +17 -0
- package/services/crypto.js +64 -0
- package/services/dialog.js +222 -0
- package/services/fetchApi.js +63 -0
- package/services/firebase.js +30 -0
- package/services/toast.js +214 -0
- package/template/doc/EzDocs.js +15 -0
- package/template/doc/EzDocs.module.scss +627 -0
- package/template/doc/EzDocsController.js +164 -0
- package/template/doc/data/activityfeed/EzActivityFeedDoc.js +42 -0
- package/template/doc/data/avatar/EzAvatarDoc.js +71 -0
- package/template/doc/data/badge/EzBadgeDoc.js +92 -0
- package/template/doc/data/button/EzButtonDoc.js +77 -0
- package/template/doc/data/buttongroup/EzButtonGroupDoc.js +102 -0
- package/template/doc/data/card/EzCardDoc.js +39 -0
- package/template/doc/data/chart/EzChartDoc.js +60 -0
- package/template/doc/data/checkbox/EzCheckboxDoc.js +67 -0
- package/template/doc/data/component/EzComponentDoc.js +34 -0
- package/template/doc/data/cssmodules/CSSModulesDoc.js +70 -0
- package/template/doc/data/datepicker/EzDatePickerDoc.js +126 -0
- package/template/doc/data/dialog/EzDialogDoc.js +217 -0
- package/template/doc/data/dropdown/EzDropdownDoc.js +178 -0
- package/template/doc/data/form/EzFormDoc.js +90 -0
- package/template/doc/data/grid/EzGridDoc.js +99 -0
- package/template/doc/data/input/EzInputDoc.js +92 -0
- package/template/doc/data/label/EzLabelDoc.js +40 -0
- package/template/doc/data/model/EzModelDoc.js +53 -0
- package/template/doc/data/outlet/EzOutletDoc.js +63 -0
- package/template/doc/data/panel/EzPanelDoc.js +214 -0
- package/template/doc/data/radio/EzRadioDoc.js +174 -0
- package/template/doc/data/router/EzRouterDoc.js +75 -0
- package/template/doc/data/select/EzSelectDoc.js +37 -0
- package/template/doc/data/skeleton/EzSkeletonDoc.js +149 -0
- package/template/doc/data/switch/EzSwitchDoc.js +82 -0
- package/template/doc/data/tabpanel/EzTabPanelDoc.js +44 -0
- package/template/doc/data/textarea/EzTextareaDoc.js +131 -0
- package/template/doc/data/timepicker/EzTimePickerDoc.js +107 -0
- package/template/doc/data/tooltip/EzTooltipDoc.js +193 -0
- package/template/doc/data/validators/EzValidatorsDoc.js +37 -0
- package/template/doc/sidebar/EzDocsSidebar.js +32 -0
- package/template/doc/sidebar/category/EzDocsCategory.js +33 -0
- package/template/doc/sidebar/item/EzDocsComponentItem.js +24 -0
- package/template/doc/viewer/EzDocsViewer.js +18 -0
- package/template/doc/viewer/codepanel/EzDocsCodePanel.js +51 -0
- package/template/doc/viewer/content/EzDocsContent.js +315 -0
- package/template/doc/viewer/header/EzDocsViewerHeader.js +46 -0
- package/template/doc/viewer/showcase/EzDocsShowcase.js +59 -0
- package/template/doc/viewer/showcase/EzDocsShowcaseSection.js +25 -0
- package/template/doc/viewer/showcase/EzDocsVariantItem.js +29 -0
- package/template/doc/welcome/EzDocsWelcome.js +48 -0
- package/themes/ez-theme.scss +179 -0
- package/themes/nature-fresh.scss +169 -0
- package/types/global.d.ts +21 -0
- package/utils/cssModules.js +81 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
.datepicker {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.isOpen {
|
|
9
|
+
.trigger {
|
|
10
|
+
border-color: var(--ez-primary, #2563eb);
|
|
11
|
+
box-shadow: 0 0 0 2px var(--ez-primary-light, rgba(37, 99, 235, 0.15));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dropdown {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
visibility: visible;
|
|
17
|
+
transform: translateY(0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.trigger {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
|
|
26
|
+
background: var(--ez-input-bg, #ffffff);
|
|
27
|
+
border: 1px solid var(--ez-input-border, #e2e8f0);
|
|
28
|
+
border-radius: var(--ez-radius-md, 6px);
|
|
29
|
+
|
|
30
|
+
padding: 0 12px;
|
|
31
|
+
height: 36px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
|
|
34
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
border-color: var(--ez-text-tertiary, #94a3b8);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
.input {
|
|
43
|
+
flex: 1;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
height: 100%;
|
|
46
|
+
padding: 0;
|
|
47
|
+
|
|
48
|
+
font-family: inherit;
|
|
49
|
+
font-size: 13px;
|
|
50
|
+
color: var(--ez-input-text, #1e293b);
|
|
51
|
+
|
|
52
|
+
background: transparent;
|
|
53
|
+
border: none;
|
|
54
|
+
outline: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
|
|
57
|
+
&::placeholder {
|
|
58
|
+
color: var(--ez-input-placeholder, #94a3b8);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
color: var(--ez-text-tertiary, #94a3b8);
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dropdown {
|
|
69
|
+
position: fixed;
|
|
70
|
+
z-index: 1000;
|
|
71
|
+
|
|
72
|
+
background: var(--ez-surface-secondary, #ffffff);
|
|
73
|
+
border: 1px solid var(--ez-border, #e2e8f0);
|
|
74
|
+
border-radius: var(--ez-radius-md, 8px);
|
|
75
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
76
|
+
|
|
77
|
+
padding: 12px;
|
|
78
|
+
min-width: 280px;
|
|
79
|
+
|
|
80
|
+
opacity: 0;
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
transform: translateY(-8px);
|
|
83
|
+
transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
.header {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
margin-bottom: 12px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.navBtn {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
|
|
99
|
+
width: 28px;
|
|
100
|
+
height: 28px;
|
|
101
|
+
padding: 0;
|
|
102
|
+
|
|
103
|
+
background: transparent;
|
|
104
|
+
border: none;
|
|
105
|
+
border-radius: var(--ez-radius-sm, 4px);
|
|
106
|
+
|
|
107
|
+
color: var(--ez-text-secondary, #64748b);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
transition: all 0.15s ease;
|
|
110
|
+
|
|
111
|
+
&:hover {
|
|
112
|
+
background: var(--ez-surface-primary, #f1f5f9);
|
|
113
|
+
color: var(--ez-text-primary, #1e293b);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.title {
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
color: var(--ez-text-primary, #1e293b);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.weekdays {
|
|
124
|
+
display: grid;
|
|
125
|
+
grid-template-columns: repeat(7, 1fr);
|
|
126
|
+
gap: 2px;
|
|
127
|
+
margin-bottom: 8px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.weekday {
|
|
131
|
+
font-size: 11px;
|
|
132
|
+
font-weight: 500;
|
|
133
|
+
color: var(--ez-text-tertiary, #94a3b8);
|
|
134
|
+
text-align: center;
|
|
135
|
+
padding: 4px 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.grid {
|
|
139
|
+
display: grid;
|
|
140
|
+
grid-template-columns: repeat(7, 1fr);
|
|
141
|
+
gap: 2px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.day {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
|
|
149
|
+
width: 32px;
|
|
150
|
+
height: 32px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
|
|
153
|
+
font-size: 13px;
|
|
154
|
+
color: var(--ez-text-primary, #1e293b);
|
|
155
|
+
|
|
156
|
+
background: transparent;
|
|
157
|
+
border: none;
|
|
158
|
+
border-radius: var(--ez-radius-sm, 4px);
|
|
159
|
+
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
transition: all 0.15s ease;
|
|
162
|
+
|
|
163
|
+
&:hover:not(.disabled):not(.selected) {
|
|
164
|
+
background: var(--ez-surface-primary, #f1f5f9);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.empty {
|
|
168
|
+
cursor: default;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.disabled {
|
|
172
|
+
color: var(--ez-text-disabled, #cbd5e1);
|
|
173
|
+
cursor: not-allowed;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.today {
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
color: var(--ez-primary, #2563eb);
|
|
179
|
+
position: relative;
|
|
180
|
+
|
|
181
|
+
&::after {
|
|
182
|
+
content: '';
|
|
183
|
+
position: absolute;
|
|
184
|
+
bottom: 2px;
|
|
185
|
+
left: 50%;
|
|
186
|
+
transform: translateX(-50%);
|
|
187
|
+
width: 4px;
|
|
188
|
+
height: 4px;
|
|
189
|
+
border-radius: 50%;
|
|
190
|
+
background: var(--ez-primary, #2563eb);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.selected {
|
|
195
|
+
background: var(--ez-primary, #2563eb);
|
|
196
|
+
color: #ffffff;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
|
|
199
|
+
&::after {
|
|
200
|
+
background: #ffffff;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Range selection styles
|
|
205
|
+
&.inRange {
|
|
206
|
+
background: var(--ez-primary-light, rgba(37, 99, 235, 0.15));
|
|
207
|
+
border-radius: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.rangeStart {
|
|
211
|
+
border-radius: var(--ez-radius-sm, 4px) 0 0 var(--ez-radius-sm, 4px);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.rangeEnd {
|
|
215
|
+
border-radius: 0 var(--ez-radius-sm, 4px) var(--ez-radius-sm, 4px) 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.rangeStart.rangeEnd {
|
|
219
|
+
border-radius: var(--ez-radius-sm, 4px);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.footer {
|
|
224
|
+
display: flex;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
margin-top: 12px;
|
|
227
|
+
padding-top: 12px;
|
|
228
|
+
border-top: 1px solid var(--ez-border, #e2e8f0);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.todayBtn,
|
|
232
|
+
.clearBtn {
|
|
233
|
+
padding: 6px 12px;
|
|
234
|
+
|
|
235
|
+
font-size: 12px;
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
|
|
238
|
+
background: transparent;
|
|
239
|
+
border: 1px solid var(--ez-border, #e2e8f0);
|
|
240
|
+
border-radius: var(--ez-radius-sm, 4px);
|
|
241
|
+
|
|
242
|
+
color: var(--ez-text-secondary, #64748b);
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
transition: all 0.15s ease;
|
|
245
|
+
|
|
246
|
+
&:hover {
|
|
247
|
+
background: var(--ez-surface-primary, #f1f5f9);
|
|
248
|
+
border-color: var(--ez-text-tertiary, #94a3b8);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.todayBtn {
|
|
253
|
+
background: var(--ez-primary, #2563eb);
|
|
254
|
+
border-color: var(--ez-primary, #2563eb);
|
|
255
|
+
color: #ffffff;
|
|
256
|
+
|
|
257
|
+
&:hover {
|
|
258
|
+
background: var(--ez-primary-dark, #1d4ed8);
|
|
259
|
+
border-color: var(--ez-primary-dark, #1d4ed8);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Disabled state
|
|
264
|
+
.disabled {
|
|
265
|
+
.trigger {
|
|
266
|
+
background: var(--ez-surface-primary, #f8fafc);
|
|
267
|
+
cursor: not-allowed;
|
|
268
|
+
|
|
269
|
+
&:hover {
|
|
270
|
+
border-color: var(--ez-input-border, #e2e8f0);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.input {
|
|
275
|
+
color: var(--ez-text-tertiary, #94a3b8);
|
|
276
|
+
cursor: not-allowed;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.icon {
|
|
280
|
+
opacity: 0.5;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Error state
|
|
285
|
+
.hasError {
|
|
286
|
+
.trigger {
|
|
287
|
+
border-color: var(--ez-danger, #dc2626);
|
|
288
|
+
|
|
289
|
+
&:focus-within {
|
|
290
|
+
border-color: var(--ez-danger, #dc2626);
|
|
291
|
+
box-shadow: 0 0 0 2px var(--ez-danger-light, rgba(220, 38, 38, 0.15));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.fieldError {
|
|
297
|
+
display: none;
|
|
298
|
+
font-size: 12px;
|
|
299
|
+
color: var(--ez-danger, #dc2626);
|
|
300
|
+
padding-left: 2px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.fieldErrorVisible {
|
|
304
|
+
display: block;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Sizes
|
|
308
|
+
.sm {
|
|
309
|
+
.trigger {
|
|
310
|
+
height: 30px;
|
|
311
|
+
padding: 0 10px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.input {
|
|
315
|
+
font-size: 12px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.icon {
|
|
319
|
+
font-size: 12px;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.lg {
|
|
324
|
+
.trigger {
|
|
325
|
+
height: 44px;
|
|
326
|
+
padding: 0 14px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.input {
|
|
330
|
+
font-size: 14px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.icon {
|
|
334
|
+
font-size: 16px;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// Dropup (opens above)
|
|
339
|
+
.isDropup {
|
|
340
|
+
.dropdown {
|
|
341
|
+
box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
|
|
342
|
+
transform: translateY(8px);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&.isOpen .dropdown {
|
|
346
|
+
transform: translateY(0);
|
|
347
|
+
}
|
|
348
|
+
}
|