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