@bagelink/vue 0.0.245 → 0.0.250

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.
Files changed (41) hide show
  1. package/dist/components/Btn.vue.d.ts.map +1 -1
  2. package/dist/components/Drop.vue.d.ts +34 -0
  3. package/dist/components/Drop.vue.d.ts.map +1 -0
  4. package/dist/components/FileUploader.vue.d.ts +60 -0
  5. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  6. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  7. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  8. package/dist/components/form/ItemRef.vue.d.ts +1 -0
  9. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  10. package/dist/components/form/inputs/DateInput.vue.d.ts +3 -0
  11. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
  14. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  16. package/dist/components/form/inputs/TextInput.vue.d.ts +2 -0
  17. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  18. package/dist/index.cjs +1719 -1700
  19. package/dist/index.mjs +1719 -1700
  20. package/dist/style.css +389 -272
  21. package/package.json +1 -1
  22. package/src/components/Avatar.vue +1 -1
  23. package/src/components/Btn.vue +41 -39
  24. package/src/components/Comments.vue +4 -4
  25. package/src/components/MaterialIcon.vue +1 -1
  26. package/src/components/NavBar.vue +5 -5
  27. package/src/components/TableSchema.vue +2 -2
  28. package/src/components/form/BglField.vue +21 -6
  29. package/src/components/form/inputs/DateInput.vue +14 -3
  30. package/src/components/form/inputs/FileUpload.vue +69 -15
  31. package/src/components/form/inputs/SelectInput.vue +32 -22
  32. package/src/components/form/inputs/TableField.vue +4 -4
  33. package/src/components/form/inputs/TextInput.vue +26 -12
  34. package/src/components/formkit/FileUploader.vue +1 -1
  35. package/src/components/formkit/MiscFields.vue +2 -2
  36. package/src/styles/buttons.css +5 -5
  37. package/src/styles/dark.css +5 -5
  38. package/src/styles/inputs.css +4 -4
  39. package/src/styles/layout.css +170 -39
  40. package/src/styles/text.css +13 -1
  41. package/src/styles/theme.css +1 -1
@@ -1,22 +1,31 @@
1
1
  <template>
2
- <div class="bagel-input text-input"
3
- :class="{ small, shrink, toggleEdit, editMode, textInputIconWrap: icon, txtInputIconStart: iconStart, code }"
4
- :title="title">
2
+ <div
3
+ class="bagel-input text-input"
4
+ :class="{ dense, small, shrink, toggleEdit, editMode, textInputIconWrap: icon, txtInputIconStart: iconStart, code }"
5
+ :title="title"
6
+ >
5
7
  <label :for="id">
6
8
  {{ label }}
7
- <input :autocomplete="autocomplete" v-if="!multiline && !autoheight && !code" :id="id" v-model="inputVal"
8
- :type="type" :rows="1" ref="input" :placeholder="placeholder || label" :disabled="!editMode"
9
- :required="required" :pattern="pattern" v-bind="nativeInputAttrs" @dblclick="toggleEditAction">
10
- <textarea v-else :id="id" v-model="inputVal" :type="type" :rows="rows" ref="input"
9
+ <input
10
+ :title="title" :autocomplete="autocomplete" v-if="!multiline && !autoheight && !code" :id="id"
11
+ v-model="inputVal" :type="type" :rows="1" ref="input" :placeholder="placeholder || label"
12
+ :disabled="!editMode" :required="required" :pattern="pattern" v-bind="nativeInputAttrs"
13
+ @dblclick="toggleEditAction"
14
+ >
15
+ <textarea
16
+ :title="title" v-else :id="id" v-model="inputVal" :type="type" :rows="rows" ref="input"
11
17
  :placeholder="placeholder || label" :disabled="!editMode" :required="required" :pattern="pattern"
12
- v-bind="nativeInputAttrs" @dblclick="toggleEditAction" />
18
+ v-bind="nativeInputAttrs" @dblclick="toggleEditAction"
19
+ />
13
20
  <p v-if="helptext">{{ helptext }}</p>
14
21
  </label>
15
22
 
16
23
  <MaterialIcon class="iconStart" v-if="iconStart" :icon="iconStart" />
17
24
  <MaterialIcon v-if="icon" :icon="icon" />
18
- <Btn class="toggleEditBtn" v-if="toggleEdit" thin @click="toggleEditAction" :icon="editMode ? 'check' : 'edit'"
19
- flat />
25
+ <Btn
26
+ class="toggleEditBtn" v-if="toggleEdit" thin @click="toggleEditAction" :icon="editMode ? 'check' : 'edit'"
27
+ flat
28
+ />
20
29
  </div>
21
30
  </template>
22
31
 
@@ -36,6 +45,7 @@ const props = withDefaults(
36
45
  modelValue?: string | number;
37
46
  label?: string;
38
47
  small?: boolean;
48
+ dense?: boolean;
39
49
  required?: boolean;
40
50
  pattern?: string;
41
51
  shrink?: boolean;
@@ -130,7 +140,11 @@ watch(
130
140
  margin-bottom: 0;
131
141
  height: 30px;
132
142
  }
133
-
143
+ .bagel-input.dense label{
144
+ display: flex;
145
+ align-items: center;
146
+ gap: 0.5rem;
147
+ }
134
148
  .toggleEditBtn {
135
149
  position: absolute;
136
150
  right: -24px;
@@ -142,7 +156,7 @@ watch(
142
156
  position: relative;
143
157
  }
144
158
 
145
- .textInputIconWrap .icon-font {
159
+ .textInputIconWrap .bgl_icon-font {
146
160
  position: absolute;
147
161
  inset-inline-end: 0.7rem;
148
162
  bottom: 50%;
@@ -240,7 +240,7 @@ function onDrop(e: DragEvent) {
240
240
  .uploading {}
241
241
  */
242
242
 
243
- .img-label .icon-font {
243
+ .img-label .bgl_icon-font {
244
244
  font-size: 30px;
245
245
  margin-bottom: 10px;
246
246
  }
@@ -17,7 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script lang="ts" setup>
20
- import { Btn } from "@bagelink/vue";
20
+ import { Btn } from '@bagelink/vue';
21
21
 
22
22
  const props = defineProps<{
23
23
  context: Record<string, any>;
@@ -41,7 +41,7 @@ const addToField = (field: any) => {
41
41
  margin-bottom: auto;
42
42
  }
43
43
 
44
- .gray.thin.flatBtn.btn.add-btn {
44
+ .gray.thin.bgl_flatBtn.bgl_btn.add-btn {
45
45
  display: flex;
46
46
  gap: 0.5rem;
47
47
  align-items: center;
@@ -1,7 +1,7 @@
1
1
  button,
2
- .btn,
3
- .flatBtn,
4
- .btn-icon {
2
+ .bgl_btn,
3
+ .bgl_flatBtn,
4
+ .bgl_btn-icon {
5
5
  font-family: inherit;
6
6
  white-space: nowrap;
7
7
  cursor: pointer;
@@ -49,13 +49,13 @@ button,
49
49
  }
50
50
 
51
51
 
52
- .btn.thin {
52
+ .bgl_btn.thin {
53
53
  height: calc(var(--btn-height) * 0.7);
54
54
  line-height: calc(var(--btn-height) * 0.7);
55
55
  }
56
56
 
57
57
  @media screen and (max-width: 910px) {
58
- .btn {
58
+ .bgl_btn {
59
59
  padding: 0 20px;
60
60
  }
61
61
  }
@@ -77,10 +77,10 @@
77
77
  color: var(--bgl-gray-light);
78
78
  }
79
79
 
80
- [theme="dark"] .btn,
81
- [theme="dark"] .btn-icon,
82
- [theme="dark"] .primary-checkbox input:checked + span,
83
- [theme="dark"] .btn.light {
80
+ [theme="dark"] .bgl_btn,
81
+ [theme="dark"] .bgl_btn-icon,
82
+ [theme="dark"] .primary-checkbox input:checked+span,
83
+ [theme="dark"] .bgl_btn.light {
84
84
  color: var(--bgl-black);
85
85
  }
86
86
 
@@ -90,4 +90,4 @@
90
90
 
91
91
  [theme="dark"] .nav-expend {
92
92
  top: 67px;
93
- }
93
+ }
@@ -67,7 +67,7 @@ select {
67
67
  padding-inline-end: 2rem;
68
68
  }
69
69
 
70
- .bagel-input.search-wrap .icon-font {
70
+ .bagel-input.search-wrap .bgl_icon-font {
71
71
  margin-inline-start: -1.75rem;
72
72
  }
73
73
 
@@ -168,12 +168,12 @@ label.active {
168
168
  display: none;
169
169
  }
170
170
 
171
- .label-count-0 button.btn.flatBtn {
171
+ .label-count-0 button.bgl_btn.bgl_flatBtn {
172
172
  /* background: var(--bgl-blue-light); */
173
173
  margin-right: 5px;
174
174
  }
175
175
 
176
- .label-count-0 button.btn.flatBtn:hover {
176
+ .label-count-0 button.bgl_btn.bgl_flatBtn:hover {
177
177
  background: var(--bgl-hover-filter);
178
178
  }
179
179
 
@@ -218,4 +218,4 @@ input[type="color"]::-moz-color-swatch:hover {
218
218
  font-size: calc(var(--input-font-size) / 1.1);
219
219
  line-height: 1.2;
220
220
  }
221
- }
221
+ }
@@ -272,6 +272,26 @@
272
272
  flex: 1 1 33.33333%;
273
273
  }
274
274
 
275
+ .mb-auto {
276
+ margin-bottom: auto !important;
277
+ }
278
+
279
+ .mb-0 {
280
+ margin-bottom: 0rem !important;
281
+ }
282
+
283
+ .mb-025 {
284
+ margin-bottom: 0.25rem !important;
285
+ }
286
+
287
+ .mb-05 {
288
+ margin-bottom: 0.5rem !important;
289
+ }
290
+
291
+ .mb-075 {
292
+ margin-bottom: 0.75rem !important;
293
+ }
294
+
275
295
  .mb-1 {
276
296
  margin-bottom: 1rem !important;
277
297
  }
@@ -284,6 +304,30 @@
284
304
  margin-bottom: 3rem !important;
285
305
  }
286
306
 
307
+ .mb-4 {
308
+ margin-bottom: 4rem !important;
309
+ }
310
+
311
+ .mt-auto {
312
+ margin-top: auto !important;
313
+ }
314
+
315
+ .mt-0 {
316
+ margin-top: 0rem !important;
317
+ }
318
+
319
+ .mt-025 {
320
+ margin-top: 0.25rem !important;
321
+ }
322
+
323
+ .mt-05 {
324
+ margin-top: 0.5rem !important;
325
+ }
326
+
327
+ .mt-075 {
328
+ margin-top: 0.75rem !important;
329
+ }
330
+
287
331
  .mt-1 {
288
332
  margin-top: 1rem !important;
289
333
  }
@@ -296,6 +340,30 @@
296
340
  margin-top: 3rem !important;
297
341
  }
298
342
 
343
+ .mt-4 {
344
+ margin-top: 4rem !important;
345
+ }
346
+
347
+ .ms-auto {
348
+ margin-inline-start: auto !important;
349
+ }
350
+
351
+ .ms-0 {
352
+ margin-inline-start: 0rem !important;
353
+ }
354
+
355
+ .ms-025 {
356
+ margin-inline-start: 0.25rem !important;
357
+ }
358
+
359
+ .ms-05 {
360
+ margin-inline-start: 0.5rem !important;
361
+ }
362
+
363
+ .ms-075 {
364
+ margin-inline-start: 0.75rem !important;
365
+ }
366
+
299
367
  .ms-1 {
300
368
  margin-inline-start: 1rem !important;
301
369
  }
@@ -308,6 +376,30 @@
308
376
  margin-inline-start: 3rem !important;
309
377
  }
310
378
 
379
+ .ms-4 {
380
+ margin-inline-start: 4rem !important;
381
+ }
382
+
383
+ .me-auto {
384
+ margin-inline-end: auto !important;
385
+ }
386
+
387
+ .me-0 {
388
+ margin-inline-end: 0rem !important;
389
+ }
390
+
391
+ .me-025 {
392
+ margin-inline-end: 0.25rem !important;
393
+ }
394
+
395
+ .me-05 {
396
+ margin-inline-end: 0.5rem !important;
397
+ }
398
+
399
+ .me-075 {
400
+ margin-inline-end: 0.75rem !important;
401
+ }
402
+
311
403
  .me-1 {
312
404
  margin-inline-end: 1rem !important;
313
405
  }
@@ -320,86 +412,125 @@
320
412
  margin-inline-end: 3rem !important;
321
413
  }
322
414
 
323
- .mb-0 {
324
- margin-bottom: 0rem !important;
415
+ .me-4 {
416
+ margin-inline-end: 4rem !important;
325
417
  }
326
418
 
327
- .mb-4 {
328
- margin-bottom: 4rem !important;
419
+
420
+ .-mb-025 {
421
+ margin-bottom: -0.25rem !important;
329
422
  }
330
423
 
331
- .mb-075 {
332
- margin-bottom: 0.75rem !important;
424
+ .-mb-05 {
425
+ margin-bottom: -0.5rem !important;
333
426
  }
334
427
 
335
- .mb-05 {
336
- margin-bottom: 0.5rem !important;
428
+ .-mb-075 {
429
+ margin-bottom: -0.75rem !important;
337
430
  }
338
431
 
339
- .mb-025 {
340
- margin-bottom: 0.25rem !important;
432
+ .-mb-1 {
433
+ margin-bottom: -1rem !important;
341
434
  }
342
435
 
343
- .mt-0 {
344
- margin-top: 0rem !important;
436
+ .-mb-2 {
437
+ margin-bottom: -2rem !important;
345
438
  }
346
439
 
347
- .mt-4 {
348
- margin-top: 4rem !important;
440
+ .-mb-3 {
441
+ margin-bottom: -3rem !important;
349
442
  }
350
443
 
351
- .mt-075 {
444
+ .-mb-4 {
445
+ margin-bottom: -4rem !important;
446
+ }
447
+
448
+ .-mt-025 {
449
+ margin-top: -0.25rem !important;
450
+ }
451
+
452
+ .-mt-05 {
453
+ margin-top: -0.5rem !important;
454
+ }
455
+
456
+ .-mt-075 {
352
457
  margin-top: 0.75rem !important;
353
458
  }
354
459
 
355
- .mt-05 {
356
- margin-top: 0.5rem !important;
460
+ .-mt-1 {
461
+ margin-top: -1rem !important;
357
462
  }
358
463
 
359
- .mt-025 {
360
- margin-top: 0.25rem !important;
464
+ .-mt-2 {
465
+ margin-top: -2rem !important;
361
466
  }
362
467
 
363
- .ms-0 {
364
- margin-inline-start: 0rem !important;
468
+ .-mt-3 {
469
+ margin-top: -3rem !important;
365
470
  }
366
471
 
367
- .ms-4 {
368
- margin-inline-start: 4rem !important;
472
+ .-mt-4 {
473
+ margin-top: -4rem !important;
369
474
  }
370
475
 
371
- .ms-075 {
372
- margin-inline-start: 0.75rem !important;
476
+ .-ms-025 {
477
+ margin-inline-start: -0.25rem !important;
373
478
  }
374
479
 
375
- .ms-05 {
376
- margin-inline-start: 0.5rem !important;
480
+ .-ms-05 {
481
+ margin-inline-start: -0.5rem !important;
377
482
  }
378
483
 
379
- .ms-025 {
380
- margin-inline-start: 0.25rem !important;
484
+ .-ms-075 {
485
+ margin-inline-start: -0.75rem !important;
381
486
  }
382
487
 
383
- .me-0 {
384
- margin-inline-end: 0rem !important;
488
+ .-ms-1 {
489
+ margin-inline-start: -1rem !important;
385
490
  }
386
491
 
387
- .me-4 {
388
- margin-inline-end: 4rem !important;
492
+ .-ms-2 {
493
+ margin-inline-start: -2rem !important;
389
494
  }
390
495
 
391
- .me-075 {
392
- margin-inline-end: 0.75rem !important;
496
+ .-ms-3 {
497
+ margin-inline-start: -3rem !important;
393
498
  }
394
499
 
395
- .me-05 {
396
- margin-inline-end: 0.5rem !important;
500
+ .-ms-4 {
501
+ margin-inline-start: -4rem !important;
397
502
  }
398
503
 
399
- .me-025 {
400
- margin-inline-end: 0.25rem !important;
504
+
505
+ .-me-025 {
506
+ margin-inline-end: -0.25rem !important;
507
+ }
508
+
509
+ .-me-05 {
510
+ margin-inline-end: -0.5rem !important;
511
+ }
512
+
513
+ .-me-075 {
514
+ margin-inline-end: -0.75rem !important;
401
515
  }
402
516
 
517
+ .-me-1 {
518
+ margin-inline-end: -1rem !important;
519
+ }
520
+
521
+ .-me-2 {
522
+ margin-inline-end: -2rem !important;
523
+ }
524
+
525
+ .-me-3 {
526
+ margin-inline-end: -3rem !important;
527
+ }
528
+
529
+ .-me-4 {
530
+ margin-inline-end: -4rem !important;
531
+ }
532
+
533
+
403
534
  .pb-0 {
404
535
  padding-bottom: 0rem !important;
405
536
  }
@@ -23,6 +23,14 @@ h6 {}
23
23
  text-align: center;
24
24
  }
25
25
 
26
+ .txt-start {
27
+ text-align: start;
28
+ }
29
+
30
+ .txt-end {
31
+ text-align: end;
32
+ }
33
+
26
34
 
27
35
  .smalltxt {
28
36
  font-size: 12px;
@@ -85,6 +93,10 @@ h6 {}
85
93
  font-weight: 700;
86
94
  }
87
95
 
96
+ .line-height-1 {
97
+ line-height: 1;
98
+ }
99
+
88
100
  .ellipsis {
89
101
  overflow: hidden;
90
102
  display: block;
@@ -100,7 +112,7 @@ h6 {}
100
112
  text-decoration: none;
101
113
  }
102
114
 
103
- .icon-font {
115
+ .bgl_icon-font {
104
116
  font-family: "Material Symbols Outlined", serif;
105
117
  }
106
118
 
@@ -155,7 +155,7 @@
155
155
  margin-top: 1rem;
156
156
  }
157
157
 
158
- .login-card .btn {
158
+ .login-card .bgl_btn {
159
159
  width: 100%;
160
160
  background: var(--bgl-primary);
161
161
  color: var(--bgl-white);