@bagelink/vue 0.0.1084 → 0.0.1090
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/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +3 -1
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/components/EditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/index.cjs +70 -55
- package/dist/index.mjs +70 -55
- package/dist/style.css +286 -281
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/form/BglForm.vue +1 -1
- package/src/components/form/inputs/CodeEditor/Index.vue +28 -22
- package/src/components/form/inputs/DatePick.vue +459 -0
- package/src/components/form/inputs/RangeInput.vue +1 -1
- package/src/components/form/inputs/RichText/components/EditorToolbar.vue +1 -0
- package/src/components/form/inputs/ToggleInput.vue +2 -0
- package/src/components/form/inputs/index.ts +1 -0
- package/src/styles/theme.css +261 -259
- package/src/utils/index.ts +5 -0
package/src/styles/theme.css
CHANGED
|
@@ -3,374 +3,376 @@
|
|
|
3
3
|
|
|
4
4
|
/* TEHEME */
|
|
5
5
|
:root {
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
6
|
+
--bgl-primary: var(--bgl-blue);
|
|
7
|
+
--bgl-primary-tint: #2e5bff80;
|
|
8
|
+
--bgl-primary-light: #eef6ff;
|
|
9
|
+
--bgl-black: #282929;
|
|
10
|
+
--bgl-black-tint: #28292980;
|
|
11
|
+
--bgl-white: #fff;
|
|
12
|
+
--bgl-gray: #b7b7b7;
|
|
13
|
+
--bgl-gray-light: #f5f8fa;
|
|
14
|
+
--bgl-gray-80: #e8ecef;
|
|
15
|
+
--bgl-gray-20: rgba(183, 183, 183, 0.2);
|
|
16
|
+
--bgl-gray-40: rgba(183, 183, 183, 0.4);
|
|
17
|
+
--bgl-accent-color: var(--bgl-primary);
|
|
18
|
+
--bgl-bg: #f4f6fa;
|
|
19
|
+
--bgl-shadow: #00000031;
|
|
20
|
+
--border-color: #00000020;
|
|
21
|
+
--placeholder-color: #00000040;
|
|
22
|
+
--label-color: #00000080;
|
|
23
|
+
--input-bg: #f5f8fa;
|
|
24
|
+
--input-color: #000000;
|
|
25
|
+
--bgl-box-bg: var(--bgl-white);
|
|
26
|
+
--bgl-popup-bg: var(--bgl-white);
|
|
27
|
+
--bgl-popup-text: var(--bgl-black);
|
|
28
|
+
--bgl-text-color: var(--bgl-black);
|
|
29
|
+
--bgl-light-text: var(--bgl-white);
|
|
30
|
+
--bgl-richtext-color: var(--bgl-white);
|
|
31
|
+
--bgl-code-bg: var(--bgl-black);
|
|
32
|
+
--bgl-code-color: var(--bgl-white);
|
|
33
|
+
--bgl-dark-bg: rgba(0, 0, 0, 0.7);
|
|
34
|
+
--bgl-selection-bg: var(--bgl-blue-dark);
|
|
35
|
+
--bgl-selection-color: var(--bgl-white);
|
|
36
|
+
--bgl-scrollbar-thumb: var(--bgl-gray);
|
|
37
|
+
--pill-btn-color: var(--bgl-white);
|
|
38
|
+
--pill-btn-bg: var(--placeholder-color);
|
|
39
|
+
--bgl-selected: var(--bgl-gray-light);
|
|
40
|
+
--skeleton-bg: #f0f0f0;
|
|
41
|
+
--skeleton-pulse: var(--bgl-bg);
|
|
42
|
+
--bgl-range-thumb-color: var(--bgl-white);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
/* TYPE */
|
|
45
46
|
:root {
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
--bgl-font: 'Lexend', 'Ploni', sans-serif;
|
|
48
|
+
--input-font-size: 16px;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/* DIMENSIONS */
|
|
51
52
|
:root {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
53
|
+
--bgl-font-size: 16px;
|
|
54
|
+
--input-height: 40px;
|
|
55
|
+
--label-font-size: 12px;
|
|
56
|
+
--input-border-radius: 7px;
|
|
57
|
+
--card-border-radius: 12px;
|
|
58
|
+
--btn-border-radius: 10px;
|
|
59
|
+
--btn-padding: 30px;
|
|
60
|
+
--btn-height: 40px;
|
|
61
|
+
--pill-border-radius: 8px;
|
|
62
|
+
--pill-height: 30px;
|
|
63
|
+
--skeleton-radius: 0.25rem;
|
|
64
|
+
--skeleton-margin: 1rem;
|
|
65
|
+
--bgl-range-thumb-size: 20px;
|
|
66
|
+
--bgl-range-track-height: 8px;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
/* MISC */
|
|
69
70
|
:root {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
--bgl-transition: all 200ms ease;
|
|
72
|
+
--bgl-transition-400: all 400ms ease;
|
|
73
|
+
--bgl-hover-filter: brightness(90%);
|
|
74
|
+
--bgl-active-filter: brightness(70%);
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
/* OTHER COLORS */
|
|
77
78
|
:root {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
--bgl-blue: #2e5bff;
|
|
80
|
+
--bgl-blue-20: rgba(46, 91, 255, 20%);
|
|
81
|
+
--bgl-blue-dark: #191c30;
|
|
82
|
+
--bgl-blue-light: #eef6ff;
|
|
83
|
+
--bgl-pink: #f1416c;
|
|
84
|
+
--bgl-red: #ed6c6f;
|
|
85
|
+
--bgl-red-tint: #fbe2e2;
|
|
86
|
+
--bgl-yellow: #ffbb00;
|
|
87
|
+
--bgl-yellow-light: #fff6d5;
|
|
88
|
+
--bgl-green: #75c98f;
|
|
89
|
+
--whatsapp-gray: #89959f;
|
|
90
|
+
--whatsapp-green: #e0fcd6;
|
|
91
|
+
--whatsapp-blue: #71bce6;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.testMe * {
|
|
94
|
-
|
|
95
|
+
outline: 1px dotted red;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.Vue-Toastification__toast {
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
border-radius: var(--card-border-radius);
|
|
100
|
+
box-shadow: none;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.Vue-Toastification__toast--default {
|
|
103
|
-
|
|
104
|
+
background: var(--bgl-primary);
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
.Vue-Toastification__close-button {
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
height: 1.5rem;
|
|
109
|
+
line-height: 1rem;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
::-moz-selection {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
color: var(--bgl-selection-color);
|
|
114
|
+
background: var(--bgl-selection-bg);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
::selection {
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
color: var(--bgl-selection-color);
|
|
119
|
+
background: var(--bgl-selection-bg);
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
.popup {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
border-radius: 15px;
|
|
124
|
+
background: var(--bgl-popup-bg);
|
|
125
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
126
|
+
padding: 2rem;
|
|
127
|
+
min-width: 300px;
|
|
128
|
+
text-align: center;
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
.tabs {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
132
|
+
-moz-column-gap: 1rem;
|
|
133
|
+
column-gap: 1rem;
|
|
134
|
+
margin-top: 20px;
|
|
135
|
+
margin-bottom: -2rem;
|
|
136
|
+
border-top: 1px solid var(--border-color);
|
|
137
|
+
width: calc(100% + 4rem);
|
|
138
|
+
-webkit-margin-start: -2rem;
|
|
139
|
+
margin-inline-start: -2rem;
|
|
140
|
+
-webkit-padding-start: 2rem;
|
|
141
|
+
padding-inline-start: 2rem;
|
|
142
|
+
overflow: auto;
|
|
143
|
+
display: flex;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.tab {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
font-size: 14px;
|
|
148
|
+
font-weight: 600;
|
|
149
|
+
line-height: 2.5;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
transition: var(--bgl-transition);
|
|
152
|
+
border-bottom: 2px solid transparent;
|
|
153
|
+
padding: 0 5px;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
text-decoration: none;
|
|
156
|
+
color: inherit;
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
.tab.active {
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
color: var(--bgl-primary);
|
|
161
|
+
border-bottom: 2px solid var(--bgl-primary);
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
.tab:hover {
|
|
164
|
-
|
|
165
|
+
color: var(--bgl-primary);
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
.tab:active {
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
-webkit-filter: brightness(70%);
|
|
170
|
+
filter: brightness(70%);
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
.router-tab {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
line-height: 2.5;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
transition: var(--bgl-transition);
|
|
179
|
+
border-bottom: 2px solid transparent;
|
|
180
|
+
padding: 0 5px;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
text-decoration: none;
|
|
183
|
+
color: inherit;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
.router-tab.router-link-active {
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
color: var(--bgl-primary);
|
|
188
|
+
border-bottom: 2px solid var(--bgl-primary);
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
.router-tab:hover {
|
|
191
|
-
|
|
192
|
+
color: var(--bgl-primary);
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
.router-tab:active {
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
-webkit-filter: brightness(70%);
|
|
197
|
+
filter: brightness(70%);
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
.entity-container {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
201
|
+
display: grid;
|
|
202
|
+
height: 100%;
|
|
203
|
+
grid-template-columns: minmax(300px, 1fr) 3fr;
|
|
204
|
+
grid-gap: 1rem;
|
|
205
|
+
-moz-column-gap: 1rem;
|
|
206
|
+
column-gap: 1rem;
|
|
207
|
+
grid-template-rows: 1fr;
|
|
208
|
+
grid-template-areas: 'list-view detail-view';
|
|
209
|
+
transition: grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
210
|
+
transition:
|
|
211
|
+
grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99),
|
|
212
|
+
-ms-grid-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
213
|
+
transition: all 0.5s cubic-bezier(0.79, 0.01, 0.34, 0.99);
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
.detail-main {
|
|
216
|
-
|
|
217
|
+
overflow-y: auto;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
220
|
.content-row p {
|
|
220
|
-
|
|
221
|
+
margin: 0 0 10px 0;
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
.id {
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
color: var(--bgl-gray);
|
|
226
|
+
font-size: 9px;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
.field {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
--field-count: 1;
|
|
231
|
+
--width: calc(100% / var(--field-count));
|
|
232
|
+
grid-auto-columns: minmax(var(--width), var(--width));
|
|
233
|
+
font-size: 10px;
|
|
234
|
+
text-align: z;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
237
|
.detail-view-inner {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
display: grid;
|
|
239
|
+
height: 100%;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
grid-template-rows: -webkit-max-content 1fr;
|
|
242
|
+
grid-template-rows: max-content 1fr;
|
|
243
|
+
gap: 1rem;
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
.detail-view-inner-wrap {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
height: 100%;
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
transition: var(--bgl-transition);
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
.table-list-wrap {
|
|
252
|
-
|
|
253
|
+
overflow: auto;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
[dir='rtl'] .data-row .bgl_icon-font,
|
|
256
|
-
[dir='rtl'] .embedded-field .bgl_icon-font
|
|
257
|
-
|
|
257
|
+
[dir='rtl'] .embedded-field .bgl_icon-font,
|
|
258
|
+
:not(.toolbar) .bgl_icon-font {
|
|
259
|
+
transform: rotateY(180deg) !important;
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
.copy-url {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
background-color: var(--bgl-gray-light);
|
|
264
|
+
border-radius: var(--btn-border-radius);
|
|
265
|
+
padding: 0.5rem 1rem;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: flex-start;
|
|
268
|
+
margin-bottom: 1rem;
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-content: space-between;
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
.copy-url a {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
margin: 0;
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
opacity: 0.8;
|
|
277
|
+
color: var(--bgl-text-color);
|
|
278
|
+
word-break: break-all;
|
|
277
279
|
}
|
|
278
280
|
|
|
279
281
|
.list-view {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
282
|
+
grid-area: list-view;
|
|
283
|
+
grid-template-areas: 'list-header''list-content';
|
|
284
|
+
grid-template-columns: 1fr;
|
|
285
|
+
overflow-y: auto;
|
|
286
|
+
grid-template-rows: -webkit-max-content 1fr;
|
|
287
|
+
grid-template-rows: max-content 1fr;
|
|
288
|
+
transition: var(--transition);
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
.shekel {
|
|
290
|
-
|
|
292
|
+
line-height: 0;
|
|
291
293
|
}
|
|
292
294
|
|
|
293
295
|
.view-wrapper {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
296
|
+
height: 100%;
|
|
297
|
+
position: relative;
|
|
298
|
+
overflow: hidden;
|
|
297
299
|
}
|
|
298
300
|
|
|
299
301
|
@media screen and (max-width: 1000px) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
.entity-container {
|
|
303
|
+
grid-template-columns: minmax(22vw, 1fr) 2fr;
|
|
304
|
+
}
|
|
303
305
|
}
|
|
304
306
|
|
|
305
307
|
@media screen and (max-width: 910px) {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
308
|
+
.tab {
|
|
309
|
+
font-size: 12px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.entity-container {
|
|
313
|
+
grid-template-columns: 1fr;
|
|
314
|
+
gap: 0;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.detail-view-inner {
|
|
318
|
+
border-radius: var(--card-border-radius);
|
|
319
|
+
background: var(--bgl-box-bg);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.detail-view-inner-wrap {
|
|
323
|
+
position: absolute;
|
|
324
|
+
height: 100%;
|
|
325
|
+
width: 100%;
|
|
326
|
+
background: var(--bgl-bg);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.detail-view-inner-wrap.bgl_card {
|
|
330
|
+
background: var(--bgl-box-bg);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.bgl_card {
|
|
334
|
+
padding: 1rem 1rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.tabs {
|
|
338
|
+
-moz-column-gap: 10px;
|
|
339
|
+
column-gap: 10px;
|
|
340
|
+
margin-top: 10px;
|
|
341
|
+
margin-bottom: -15px;
|
|
342
|
+
box-sizing: border-box;
|
|
343
|
+
-webkit-margin-start: -1rem;
|
|
344
|
+
margin-inline-start: -1rem;
|
|
345
|
+
-webkit-padding-start: 1rem;
|
|
346
|
+
padding-inline-start: 1rem;
|
|
347
|
+
max-width: calc(100vw - 2rem);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.popup {
|
|
351
|
+
border-radius: 15px;
|
|
352
|
+
background: var(--bgl-popup-bg);
|
|
353
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
|
|
354
|
+
padding: 2rem;
|
|
355
|
+
min-width: 0;
|
|
356
|
+
max-width: 90%;
|
|
357
|
+
max-height: 90vh;
|
|
358
|
+
overflow-x: auto;
|
|
359
|
+
text-align: center;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.detail-main {
|
|
363
|
+
overflow-y: unset;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.detail-section {
|
|
367
|
+
height: -webkit-fit-content;
|
|
368
|
+
height: -moz-fit-content;
|
|
369
|
+
height: fit-content;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.field {
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-wrap: wrap;
|
|
375
|
+
gap: 0.5rem;
|
|
376
|
+
align-items: center;
|
|
377
|
+
}
|
|
378
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -98,6 +98,11 @@ export function getFallbackSchema<T>(
|
|
|
98
98
|
const schema: BglFormSchemaT<T> = keys.map(id => ({
|
|
99
99
|
id,
|
|
100
100
|
label: keyToLabel(id),
|
|
101
|
+
transform: (val: any) => {
|
|
102
|
+
const dateFields = ['created_at', 'updated_at']
|
|
103
|
+
if (dateFields.includes(id)) return val ? new Date(val).toLocaleString() : val
|
|
104
|
+
return val
|
|
105
|
+
},
|
|
101
106
|
}))
|
|
102
107
|
|
|
103
108
|
return showFields
|