@bagelink/vue 0.0.692 → 0.0.696

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.
@@ -264,7 +264,7 @@
264
264
  color: var(--bgl-green) !important;
265
265
  }
266
266
 
267
- .bg-input-white input {
267
+ .bg-input-white input, .bg-input-white .selectinput-btn {
268
268
  background: var(--bgl-white) !important;
269
269
  }
270
270
 
@@ -272,7 +272,7 @@
272
272
  color: var(--bgl-white) !important;
273
273
  }
274
274
 
275
- .bg-input-primary input {
275
+ .bg-input-primary input, .bg-input-primary .selectinput-btn {
276
276
  background: var(--bgl-primary) !important;
277
277
  }
278
278
 
@@ -280,7 +280,7 @@
280
280
  color: var(--bgl-primary) !important;
281
281
  }
282
282
 
283
- .bg-input-primary-tint input {
283
+ .bg-input-primary-tint input, .bg-input-primary-tint .selectinput-btn {
284
284
  background: var(--bgl-primary-tint) !important;
285
285
  }
286
286
 
@@ -288,7 +288,7 @@
288
288
  color: var(--bgl-primary-tint) !important;
289
289
  }
290
290
 
291
- .bg-input-primary-light input {
291
+ .bg-input-primary-light input, .bg-input-primary-light .selectinput-btn {
292
292
  background: var(--bgl-primary-light) !important;
293
293
  }
294
294
 
@@ -296,7 +296,7 @@
296
296
  color: var(--bgl-primary-light) !important;
297
297
  }
298
298
 
299
- .bg-input-blue-20 input {
299
+ .bg-input-blue-20 input, .bg-input-blue-20 .selectinput-btn {
300
300
  background: var(--bgl-blue-20) !important;
301
301
  }
302
302
 
@@ -304,7 +304,7 @@
304
304
  color: var(--bgl-blue-20) !important;
305
305
  }
306
306
 
307
- .bg-input-blue-dark input {
307
+ .bg-input-blue-dark input, .bg-input-blue-dark .selectinput-btn {
308
308
  background: var(--bgl-blue-dark) !important;
309
309
  }
310
310
 
@@ -312,7 +312,7 @@
312
312
  color: var(--bgl-blue-dark) !important;
313
313
  }
314
314
 
315
- .bg-input-blue-light input {
315
+ .bg-input-blue-light input, .bg-input-blue-light .selectinput-btn {
316
316
  background: var(--bgl-blue-light) !important;
317
317
  }
318
318
 
@@ -320,7 +320,7 @@
320
320
  color: var(--bgl-blue-light) !important;
321
321
  }
322
322
 
323
- .bg-input-black input {
323
+ .bg-input-black input, .bg-input-black .selectinput-btn {
324
324
  background: var(--bgl-black) !important;
325
325
  }
326
326
 
@@ -328,7 +328,7 @@
328
328
  color: var(--bgl-black) !important;
329
329
  }
330
330
 
331
- .bg-input-black-tint input {
331
+ .bg-input-black-tint input, .bg-input-black-tint .selectinput-btn {
332
332
  background: var(--bgl-black-tint) !important;
333
333
  }
334
334
 
@@ -336,7 +336,7 @@
336
336
  color: var(--bgl-black-tint) !important;
337
337
  }
338
338
 
339
- .bg-input-gray input {
339
+ .bg-input-gray input, .bg-input-gray .selectinput-btn {
340
340
  background: var(--bgl-gray) !important;
341
341
  }
342
342
 
@@ -344,7 +344,7 @@
344
344
  color: var(--bgl-gray) !important;
345
345
  }
346
346
 
347
- .bg-input-gray-light input {
347
+ .bg-input-gray-light input, .bg-input-gray-light .selectinput-btn {
348
348
  background: var(--bgl-gray-light) !important;
349
349
  }
350
350
 
@@ -352,7 +352,7 @@
352
352
  color: var(--bgl-gray-light) !important;
353
353
  }
354
354
 
355
- .bg-input-gray-80 input {
355
+ .bg-input-gray-80 input, .bg-input-gray-80 .selectinput-btn {
356
356
  background: var(--bgl-gray-80) !important;
357
357
  }
358
358
 
@@ -360,7 +360,7 @@
360
360
  color: var(--bgl-gray-80) !important;
361
361
  }
362
362
 
363
- .bg-input-gray-20 input {
363
+ .bg-input-gray-20 input, .bg-input-gray-20 .selectinput-btn {
364
364
  background: var(--bgl-gray-20) !important;
365
365
  }
366
366
 
@@ -368,7 +368,7 @@
368
368
  color: var(--bgl-gray-20) !important;
369
369
  }
370
370
 
371
- .bg-input-pink input {
371
+ .bg-input-pink input, .bg-input-pink .selectinput-btn {
372
372
  background: var(--bgl-pink) !important;
373
373
  }
374
374
 
@@ -376,7 +376,7 @@
376
376
  color: var(--bgl-pink) !important;
377
377
  }
378
378
 
379
- .bg-input-red input {
379
+ .bg-input-red input, .bg-input-red .selectinput-btn {
380
380
  background: var(--bgl-red) !important;
381
381
  }
382
382
 
@@ -384,7 +384,7 @@
384
384
  color: var(--bgl-red) !important;
385
385
  }
386
386
 
387
- .bg-input-red-tint input {
387
+ .bg-input-red-tint input, .bg-input-red-tint .selectinput-btn {
388
388
  background: var(--bgl-red-tint) !important;
389
389
  }
390
390
 
@@ -392,7 +392,7 @@
392
392
  color: var(--bgl-red-tint) !important;
393
393
  }
394
394
 
395
- .bg-input-yellow input {
395
+ .bg-input-yellow input, .bg-input-yellow .selectinput-btn {
396
396
  background: var(--bgl-yellow) !important;
397
397
  }
398
398
 
@@ -400,7 +400,7 @@
400
400
  color: var(--bgl-yellow) !important;
401
401
  }
402
402
 
403
- .bg-input-yellow-light input {
403
+ .bg-input-yellow-light input, .bg-input-yellow-light .selectinput-btn {
404
404
  background: var(--bgl-yellow-light) !important;
405
405
  }
406
406
 
@@ -408,11 +408,11 @@
408
408
  color: var(--bgl-yellow-light) !important;
409
409
  }
410
410
 
411
- .bg-input-green input {
411
+ .bg-input-green input, .bg-input-green .selectinput-btn {
412
412
  background: var(--bgl-green) !important;
413
413
  }
414
414
 
415
- .bg-input-transparent input {
415
+ .bg-input-transparent input, .bg-input-transparent .selectinput-btn {
416
416
  background: transparent !important;
417
417
  }
418
418
 
@@ -769,7 +769,7 @@
769
769
  background: transparent !important;
770
770
  }
771
771
 
772
- .m_bg-input-white input {
772
+ .m_bg-input-white input, .m_bg-input-white .selectinput-btn {
773
773
  background: var(--bgl-white) !important;
774
774
  }
775
775
 
@@ -777,7 +777,7 @@
777
777
  color: var(--bgl-white) !important;
778
778
  }
779
779
 
780
- .m_bg-input-primary input {
780
+ .m_bg-input-primary input, .m_bg-input-primary .selectinput-btn {
781
781
  background: var(--bgl-primary) !important;
782
782
  }
783
783
 
@@ -785,7 +785,7 @@
785
785
  color: var(--bgl-primary) !important;
786
786
  }
787
787
 
788
- .m_bg-input-primary-tint input {
788
+ .m_bg-input-primary-tint input, .m_bg-input-primary-tint .selectinput-btn {
789
789
  background: var(--bgl-primary-tint) !important;
790
790
  }
791
791
 
@@ -793,7 +793,7 @@
793
793
  color: var(--bgl-primary-tint) !important;
794
794
  }
795
795
 
796
- .m_bg-input-primary-light input {
796
+ .m_bg-input-primary-light input, .m_bg-input-primary-light .selectinput-btn {
797
797
  background: var(--bgl-primary-light) !important;
798
798
  }
799
799
 
@@ -801,7 +801,7 @@
801
801
  color: var(--bgl-primary-light) !important;
802
802
  }
803
803
 
804
- .m_bg-input-blue-20 input {
804
+ .m_bg-input-blue-20 input, .m_bg-input-blue-20 .selectinput-btn {
805
805
  background: var(--bgl-blue-20) !important;
806
806
  }
807
807
 
@@ -809,7 +809,7 @@
809
809
  color: var(--bgl-blue-20) !important;
810
810
  }
811
811
 
812
- .m_bg-input-blue-dark input {
812
+ .m_bg-input-blue-dark input, .m_bg-input-blue-dark .selectinput-btn {
813
813
  background: var(--bgl-blue-dark) !important;
814
814
  }
815
815
 
@@ -817,7 +817,7 @@
817
817
  color: var(--bgl-blue-dark) !important;
818
818
  }
819
819
 
820
- .m_bg-input-blue-light input {
820
+ .m_bg-input-blue-light input, .m_bg-input-blue-light .selectinput-btn {
821
821
  background: var(--bgl-blue-light) !important;
822
822
  }
823
823
 
@@ -825,7 +825,7 @@
825
825
  color: var(--bgl-blue-light) !important;
826
826
  }
827
827
 
828
- .m_bg-input-black input {
828
+ .m_bg-input-black input, .m_bg-input-black .selectinput-btn {
829
829
  background: var(--bgl-black) !important;
830
830
  }
831
831
 
@@ -833,7 +833,7 @@
833
833
  color: var(--bgl-black) !important;
834
834
  }
835
835
 
836
- .m_bg-input-black-tint input {
836
+ .m_bg-input-black-tint input, .m_bg-input-black-tint .selectinput-btn {
837
837
  background: var(--bgl-black-tint) !important;
838
838
  }
839
839
 
@@ -841,7 +841,7 @@
841
841
  color: var(--bgl-black-tint) !important;
842
842
  }
843
843
 
844
- .m_bg-input-gray input {
844
+ .m_bg-input-gray input, .m_bg-input-gray .selectinput-btn {
845
845
  background: var(--bgl-gray) !important;
846
846
  }
847
847
 
@@ -849,7 +849,7 @@
849
849
  color: var(--bgl-gray) !important;
850
850
  }
851
851
 
852
- .m_bg-input-gray-light input {
852
+ .m_bg-input-gray-light input, .m_bg-input-gray-light .selectinput-btn {
853
853
  background: var(--bgl-gray-light) !important;
854
854
  }
855
855
 
@@ -857,7 +857,7 @@
857
857
  color: var(--bgl-gray-light) !important;
858
858
  }
859
859
 
860
- .m_bg-input-gray-80 input {
860
+ .m_bg-input-gray-80 input, .m_bg-input-gray-80 .selectinput-btn {
861
861
  background: var(--bgl-gray-80) !important;
862
862
  }
863
863
 
@@ -865,7 +865,7 @@
865
865
  color: var(--bgl-gray-80) !important;
866
866
  }
867
867
 
868
- .m_bg-input-gray-20 input {
868
+ .m_bg-input-gray-20 input, .m_bg-input-gray-20 .selectinput-btn {
869
869
  background: var(--bgl-gray-20) !important;
870
870
  }
871
871
 
@@ -873,7 +873,7 @@
873
873
  color: var(--bgl-gray-20) !important;
874
874
  }
875
875
 
876
- .m_bg-input-pink input {
876
+ .m_bg-input-pink input, .m_bg-input-pink .selectinput-btn {
877
877
  background: var(--bgl-pink) !important;
878
878
  }
879
879
 
@@ -881,7 +881,7 @@
881
881
  color: var(--bgl-pink) !important;
882
882
  }
883
883
 
884
- .m_bg-input-red input {
884
+ .m_bg-input-red input, .m_bg-input-red .selectinput-btn {
885
885
  background: var(--bgl-red) !important;
886
886
  }
887
887
 
@@ -889,7 +889,7 @@
889
889
  color: var(--bgl-red) !important;
890
890
  }
891
891
 
892
- .m_bg-input-red-tint input {
892
+ .m_bg-input-red-tint input, .m_bg-input-red-tint .selectinput-btn {
893
893
  background: var(--bgl-red-tint) !important;
894
894
  }
895
895
 
@@ -897,7 +897,7 @@
897
897
  color: var(--bgl-red-tint) !important;
898
898
  }
899
899
 
900
- .m_bg-input-yellow input {
900
+ .m_bg-input-yellow input, .m_bg-input-yellow .selectinput-btn {
901
901
  background: var(--bgl-yellow) !important;
902
902
  }
903
903
 
@@ -905,7 +905,7 @@
905
905
  color: var(--bgl-yellow) !important;
906
906
  }
907
907
 
908
- .m_bg-input-yellow-light input {
908
+ .m_bg-input-yellow-light input, .m_bg-input-yellow-light .selectinput-btn {
909
909
  background: var(--bgl-yellow-light) !important;
910
910
  }
911
911
 
@@ -913,7 +913,7 @@
913
913
  color: var(--bgl-yellow-light) !important;
914
914
  }
915
915
 
916
- .m_bg-input-green input {
916
+ .m_bg-input-green input, .m_bg-input-green .selectinput-btn {
917
917
  background: var(--bgl-green) !important;
918
918
  }
919
919
 
@@ -921,7 +921,7 @@
921
921
  color: var(--bgl-green) !important;
922
922
  }
923
923
 
924
- .m_bg-input-transparent input {
924
+ .m_bg-input-transparent input, .m_bg-input-transparent .selectinput-btn {
925
925
  background: transparent !important;
926
926
  }
927
927
 
@@ -5,6 +5,13 @@ select {
5
5
  width: 100%;
6
6
  }
7
7
 
8
+
9
+ .bagel-input-error input,
10
+ .bagel-input-error button,
11
+ .bagel-input-error textarea {
12
+ outline: 1px solid var(--bgl-red);
13
+ }
14
+
8
15
  .bagel-input {
9
16
  position: relative;
10
17
  display: flex;
@@ -15,6 +22,34 @@ select {
15
22
  color: var(--bgl-black);
16
23
  }
17
24
 
25
+ .bagel-input::-webkit-input-placeholder .bagel-input label {
26
+ display: block;
27
+ font-size: var(--label-font-size);
28
+ margin-bottom: 2px;
29
+ line-height: 1.3;
30
+ }
31
+
32
+ .bagel-input::-moz-placeholder .bagel-input label {
33
+ display: block;
34
+ font-size: var(--label-font-size);
35
+ margin-bottom: 2px;
36
+ line-height: 1.3;
37
+ }
38
+
39
+ .bagel-input:-ms-input-placeholder .bagel-input label {
40
+ display: block;
41
+ font-size: var(--label-font-size);
42
+ margin-bottom: 2px;
43
+ line-height: 1.3;
44
+ }
45
+
46
+ .bagel-input::-ms-input-placeholder .bagel-input label {
47
+ display: block;
48
+ font-size: var(--label-font-size);
49
+ margin-bottom: 2px;
50
+ line-height: 1.3;
51
+ }
52
+
18
53
  .bagel-input::placeholder .bagel-input label {
19
54
  display: block;
20
55
  font-size: var(--label-font-size);
@@ -22,6 +57,22 @@ select {
22
57
  line-height: 1.3;
23
58
  }
24
59
 
60
+ .bagel-input::-webkit-input-placeholder {
61
+ color: var(--placeholder-color);
62
+ }
63
+
64
+ .bagel-input::-moz-placeholder {
65
+ color: var(--placeholder-color);
66
+ }
67
+
68
+ .bagel-input:-ms-input-placeholder {
69
+ color: var(--placeholder-color);
70
+ }
71
+
72
+ .bagel-input::-ms-input-placeholder {
73
+ color: var(--placeholder-color);
74
+ }
75
+
25
76
  .bagel-input::placeholder {
26
77
  color: var(--placeholder-color);
27
78
  }
@@ -51,6 +102,26 @@ select {
51
102
  }
52
103
 
53
104
 
105
+ .bagel-input input::-webkit-input-placeholder, .bagel-input textarea::-webkit-input-placeholder, .bagel-input select::-webkit-input-placeholder, .custom-select .input::-webkit-input-placeholder {
106
+ color: var(--placeholder-color);
107
+ }
108
+
109
+
110
+ .bagel-input input::-moz-placeholder, .bagel-input textarea::-moz-placeholder, .bagel-input select::-moz-placeholder, .custom-select .input::-moz-placeholder {
111
+ color: var(--placeholder-color);
112
+ }
113
+
114
+
115
+ .bagel-input input:-ms-input-placeholder, .bagel-input textarea:-ms-input-placeholder, .bagel-input select:-ms-input-placeholder, .custom-select .input:-ms-input-placeholder {
116
+ color: var(--placeholder-color);
117
+ }
118
+
119
+
120
+ .bagel-input input::-ms-input-placeholder, .bagel-input textarea::-ms-input-placeholder, .bagel-input select::-ms-input-placeholder, .custom-select .input::-ms-input-placeholder {
121
+ color: var(--placeholder-color);
122
+ }
123
+
124
+
54
125
  .bagel-input input::placeholder,
55
126
  .bagel-input textarea::placeholder,
56
127
  .bagel-input select::placeholder,
@@ -65,11 +136,13 @@ select {
65
136
  }
66
137
 
67
138
  .bagel-input.search-wrap input {
68
- padding-inline-end: 2rem;
139
+ -webkit-padding-end: 2rem;
140
+ padding-inline-end: 2rem;
69
141
  }
70
142
 
71
143
  .bagel-input.search-wrap .bgl_icon-font {
72
- margin-inline-start: -1.75rem;
144
+ -webkit-margin-start: -1.75rem;
145
+ margin-inline-start: -1.75rem;
73
146
  }
74
147
 
75
148
  .bagel-input select {
@@ -88,6 +161,8 @@ select {
88
161
 
89
162
  .bagel-input input[type="radio"] {
90
163
  padding: 0;
164
+ width: -webkit-fit-content;
165
+ width: -moz-fit-content;
91
166
  width: fit-content;
92
167
  }
93
168
 
@@ -209,12 +284,14 @@ select {
209
284
  .bagel-input input[type="color"]::-webkit-color-swatch {
210
285
  border-radius: var(--input-border-radius);
211
286
  border: none;
287
+ -webkit-transition: box-shadow 200ms ease;
212
288
  transition: box-shadow 200ms ease;
213
289
  }
214
290
 
215
291
  .bagel-input input[type="color"]::-moz-color-swatch {
216
292
  border-radius: var(--input-border-radius);
217
293
  border: none;
294
+ -moz-transition: box-shadow 200ms ease;
218
295
  transition: box-shadow 200ms ease;
219
296
  }
220
297
 
@@ -1,4 +1,4 @@
1
- import type { Field, Option } from '@bagelink/vue'
1
+ import type { BglFormSchemaT, Field, Option } from '@bagelink/vue'
2
2
 
3
3
  interface InputOptions {
4
4
  required?: boolean
@@ -163,3 +163,34 @@ export function frmRow(...children: Field[]) {
163
163
  children,
164
164
  }
165
165
  }
166
+
167
+ export function findBglFieldById(id: string, _schema: BglFormSchemaT): Field | undefined {
168
+ for (const field of _schema) {
169
+ if (field.id === id) return field
170
+ if (field.children && Number(field.children.length) > 0) {
171
+ const child = findBglFieldById(id, field.children)
172
+ if (child) return child
173
+ }
174
+ }
175
+ return undefined
176
+ }
177
+
178
+ // export function updateBagelSchemaWithErrorResponse<T>(
179
+ // schema: BglFormSchemaT<T>,
180
+ // invalidFieldId: Record<string, string[]>,
181
+ // ) {
182
+ // return schema.map((f) => {
183
+ // if (f.id === invalidFieldId) {
184
+ // f.class = 'bagel-input-error'
185
+ // }
186
+ // if (f.id === undefined && f.children) {
187
+ // f.children = f.children.map((c) => {
188
+ // if (c.id === invalidFieldId) {
189
+ // c.class = 'bagel-input-error'
190
+ // }
191
+ // return c
192
+ // })
193
+ // }
194
+ // return f
195
+ // })
196
+ // }