@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.
@@ -3,374 +3,376 @@
3
3
 
4
4
  /* TEHEME */
5
5
  :root {
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);
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
- --bgl-font: 'Lexend', 'Ploni', sans-serif;
47
- --input-font-size: 16px;
47
+ --bgl-font: 'Lexend', 'Ploni', sans-serif;
48
+ --input-font-size: 16px;
48
49
  }
49
50
 
50
51
  /* DIMENSIONS */
51
52
  :root {
52
- --bgl-font-size: 16px;
53
- --input-height: 40px;
54
- --label-font-size: 12px;
55
- --input-border-radius: 7px;
56
- --card-border-radius: 12px;
57
- --btn-border-radius: 10px;
58
- --btn-padding: 30px;
59
- --btn-height: 40px;
60
- --pill-border-radius: 8px;
61
- --pill-height: 30px;
62
- --skeleton-radius: 0.25rem;
63
- --skeleton-margin: 1rem;
64
- --bgl-range-thumb-size: 20px;
65
- --bgl-range-track-height: 8px;
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
- --bgl-transition: all 200ms ease;
71
- --bgl-transition-400: all 400ms ease;
72
- --bgl-hover-filter: brightness(90%);
73
- --bgl-active-filter: brightness(70%);
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
- --bgl-blue: #2e5bff;
79
- --bgl-blue-20: rgba(46, 91, 255, 20%);
80
- --bgl-blue-dark: #191c30;
81
- --bgl-blue-light: #eef6ff;
82
- --bgl-pink: #f1416c;
83
- --bgl-red: #ed6c6f;
84
- --bgl-red-tint: #fbe2e2;
85
- --bgl-yellow: #ffbb00;
86
- --bgl-yellow-light: #fff6d5;
87
- --bgl-green: #75c98f;
88
- --whatsapp-gray: #89959f;
89
- --whatsapp-green: #e0fcd6;
90
- --whatsapp-blue: #71bce6;
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
- outline: 1px dotted red;
95
+ outline: 1px dotted red;
95
96
  }
96
97
 
97
98
  .Vue-Toastification__toast {
98
- border-radius: var(--card-border-radius);
99
- box-shadow: none;
99
+ border-radius: var(--card-border-radius);
100
+ box-shadow: none;
100
101
  }
101
102
 
102
103
  .Vue-Toastification__toast--default {
103
- background: var(--bgl-primary);
104
+ background: var(--bgl-primary);
104
105
  }
105
106
 
106
107
  .Vue-Toastification__close-button {
107
- height: 1.5rem;
108
- line-height: 1rem;
108
+ height: 1.5rem;
109
+ line-height: 1rem;
109
110
  }
110
111
 
111
112
  ::-moz-selection {
112
- color: var(--bgl-selection-color);
113
- background: var(--bgl-selection-bg);
113
+ color: var(--bgl-selection-color);
114
+ background: var(--bgl-selection-bg);
114
115
  }
115
116
 
116
117
  ::selection {
117
- color: var(--bgl-selection-color);
118
- background: var(--bgl-selection-bg);
118
+ color: var(--bgl-selection-color);
119
+ background: var(--bgl-selection-bg);
119
120
  }
120
121
 
121
122
  .popup {
122
- border-radius: 15px;
123
- background: var(--bgl-popup-bg);
124
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
125
- padding: 2rem;
126
- min-width: 300px;
127
- text-align: center;
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
- -moz-column-gap: 1rem;
132
- column-gap: 1rem;
133
- margin-top: 20px;
134
- margin-bottom: -2rem;
135
- border-top: 1px solid var(--border-color);
136
- width: calc(100% + 4rem);
137
- -webkit-margin-start: -2rem;
138
- margin-inline-start: -2rem;
139
- -webkit-padding-start: 2rem;
140
- padding-inline-start: 2rem;
141
- overflow: auto;
142
- display: flex;
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
- font-size: 14px;
147
- font-weight: 600;
148
- line-height: 2.5;
149
- cursor: pointer;
150
- transition: var(--bgl-transition);
151
- border-bottom: 2px solid transparent;
152
- padding: 0 5px;
153
- white-space: nowrap;
154
- text-decoration: none;
155
- color: inherit;
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
- color: var(--bgl-primary);
160
- border-bottom: 2px solid var(--bgl-primary);
160
+ color: var(--bgl-primary);
161
+ border-bottom: 2px solid var(--bgl-primary);
161
162
  }
162
163
 
163
164
  .tab:hover {
164
- color: var(--bgl-primary);
165
+ color: var(--bgl-primary);
165
166
  }
166
167
 
167
168
  .tab:active {
168
- -webkit-filter: brightness(70%);
169
- filter: brightness(70%);
169
+ -webkit-filter: brightness(70%);
170
+ filter: brightness(70%);
170
171
  }
171
172
 
172
173
  .router-tab {
173
- font-size: 14px;
174
- font-weight: 600;
175
- line-height: 2.5;
176
- cursor: pointer;
177
- transition: var(--bgl-transition);
178
- border-bottom: 2px solid transparent;
179
- padding: 0 5px;
180
- white-space: nowrap;
181
- text-decoration: none;
182
- color: inherit;
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
- color: var(--bgl-primary);
187
- border-bottom: 2px solid var(--bgl-primary);
187
+ color: var(--bgl-primary);
188
+ border-bottom: 2px solid var(--bgl-primary);
188
189
  }
189
190
 
190
191
  .router-tab:hover {
191
- color: var(--bgl-primary);
192
+ color: var(--bgl-primary);
192
193
  }
193
194
 
194
195
  .router-tab:active {
195
- -webkit-filter: brightness(70%);
196
- filter: brightness(70%);
196
+ -webkit-filter: brightness(70%);
197
+ filter: brightness(70%);
197
198
  }
198
199
 
199
200
  .entity-container {
200
- display: grid;
201
- height: 100%;
202
- grid-template-columns: minmax(300px, 1fr) 3fr;
203
- grid-gap: 1rem;
204
- -moz-column-gap: 1rem;
205
- column-gap: 1rem;
206
- grid-template-rows: 1fr;
207
- grid-template-areas: 'list-view detail-view';
208
- transition: grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
209
- transition:
210
- grid-template-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99),
211
- -ms-grid-columns 0.4s cubic-bezier(0.79, 0.01, 0.34, 0.99);
212
- transition: all 0.5s cubic-bezier(0.79, 0.01, 0.34, 0.99);
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
- overflow-y: auto;
217
+ overflow-y: auto;
217
218
  }
218
219
 
219
220
  .content-row p {
220
- margin: 0 0 10px 0;
221
+ margin: 0 0 10px 0;
221
222
  }
222
223
 
223
224
  .id {
224
- color: var(--bgl-gray);
225
- font-size: 9px;
225
+ color: var(--bgl-gray);
226
+ font-size: 9px;
226
227
  }
227
228
 
228
229
  .field {
229
- --field-count: 1;
230
- --width: calc(100% / var(--field-count));
231
- grid-auto-columns: minmax(var(--width), var(--width));
232
- font-size: 10px;
233
- text-align: z;
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
- display: grid;
238
- height: 100%;
239
- overflow: hidden;
240
- grid-template-rows: -webkit-max-content 1fr;
241
- grid-template-rows: max-content 1fr;
242
- gap: 1rem;
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
- height: 100%;
247
- overflow: hidden;
248
- transition: var(--bgl-transition);
247
+ height: 100%;
248
+ overflow: hidden;
249
+ transition: var(--bgl-transition);
249
250
  }
250
251
 
251
252
  .table-list-wrap {
252
- overflow: auto;
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
- transform: rotateY(180deg) !important;
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
- background-color: var(--bgl-gray-light);
262
- border-radius: var(--btn-border-radius);
263
- padding: 0.5rem 1rem;
264
- align-items: center;
265
- justify-content: flex-start;
266
- margin-bottom: 1rem;
267
- display: flex;
268
- justify-content: space-between;
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
- margin: 0;
273
- font-size: 12px;
274
- opacity: 0.8;
275
- color: var(--bgl-text-color);
276
- word-break: break-all;
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
- grid-area: list-view;
281
- grid-template-areas: 'list-header' 'list-content';
282
- grid-template-columns: 1fr;
283
- overflow-y: auto;
284
- grid-template-rows: -webkit-max-content 1fr;
285
- grid-template-rows: max-content 1fr;
286
- transition: var(--transition);
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
- line-height: 0;
292
+ line-height: 0;
291
293
  }
292
294
 
293
295
  .view-wrapper {
294
- height: 100%;
295
- position: relative;
296
- overflow: hidden;
296
+ height: 100%;
297
+ position: relative;
298
+ overflow: hidden;
297
299
  }
298
300
 
299
301
  @media screen and (max-width: 1000px) {
300
- .entity-container {
301
- grid-template-columns: minmax(22vw, 1fr) 2fr;
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
- .tab {
307
- font-size: 12px;
308
- }
309
-
310
- .entity-container {
311
- grid-template-columns: 1fr;
312
- gap: 0;
313
- }
314
-
315
- .detail-view-inner {
316
- border-radius: var(--card-border-radius);
317
- background: var(--bgl-box-bg);
318
- }
319
-
320
- .detail-view-inner-wrap {
321
- position: absolute;
322
- height: 100%;
323
- width: 100%;
324
- background: var(--bgl-bg);
325
- }
326
-
327
- .detail-view-inner-wrap.bgl_card {
328
- background: var(--bgl-box-bg);
329
- }
330
-
331
- .bgl_card {
332
- padding: 1rem 1rem;
333
- }
334
-
335
- .tabs {
336
- -moz-column-gap: 10px;
337
- column-gap: 10px;
338
- margin-top: 10px;
339
- margin-bottom: -15px;
340
- box-sizing: border-box;
341
- -webkit-margin-start: -1rem;
342
- margin-inline-start: -1rem;
343
- -webkit-padding-start: 1rem;
344
- padding-inline-start: 1rem;
345
- max-width: calc(100vw - 2rem);
346
- }
347
-
348
- .popup {
349
- border-radius: 15px;
350
- background: var(--bgl-popup-bg);
351
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
352
- padding: 2rem;
353
- min-width: 0;
354
- max-width: 90%;
355
- max-height: 90vh;
356
- overflow-x: auto;
357
- text-align: center;
358
- }
359
-
360
- .detail-main {
361
- overflow-y: unset;
362
- }
363
-
364
- .detail-section {
365
- height: -webkit-fit-content;
366
- height: -moz-fit-content;
367
- height: fit-content;
368
- }
369
-
370
- .field {
371
- display: flex;
372
- flex-wrap: wrap;
373
- gap: 0.5rem;
374
- align-items: center;
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
+ }
@@ -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