@bagelink/vue 0.0.544 → 0.0.552

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 (35) hide show
  1. package/dist/components/TableSchema.vue.d.ts +7 -16
  2. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  3. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  4. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +22 -0
  5. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -0
  6. package/dist/components/form/inputs/RichText2/formatting.d.ts +5 -0
  7. package/dist/components/form/inputs/RichText2/formatting.d.ts.map +1 -0
  8. package/dist/components/form/inputs/RichText2/index.vue.d.ts +24 -0
  9. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -0
  10. package/dist/components/form/inputs/RichText2/richtext-types.d.ts +3 -0
  11. package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +1 -0
  12. package/dist/components/form/inputs/index.d.ts +1 -0
  13. package/dist/components/form/inputs/index.d.ts.map +1 -1
  14. package/dist/index.cjs +706 -278
  15. package/dist/index.mjs +706 -278
  16. package/dist/style.css +448 -119
  17. package/dist/types/BagelForm.d.ts +5 -4
  18. package/dist/types/BagelForm.d.ts.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/Btn.vue +1 -1
  21. package/src/components/DataPreview.vue +3 -3
  22. package/src/components/TableSchema.vue +10 -10
  23. package/src/components/form/BglField.vue +19 -2
  24. package/src/components/form/inputs/RichText2/Toolbar.vue +106 -0
  25. package/src/components/form/inputs/RichText2/formatting.ts +194 -0
  26. package/src/components/form/inputs/RichText2/index.vue +204 -0
  27. package/src/components/form/inputs/RichText2/richtext-types.ts +25 -0
  28. package/src/components/form/inputs/index.ts +1 -0
  29. package/src/components/formkit/FileUploader.vue +1 -1
  30. package/src/styles/appearance.css +16 -16
  31. package/src/styles/layout.css +113 -6
  32. package/src/styles/mobilLayout.css +124 -12
  33. package/src/styles/text.css +78 -12
  34. package/src/styles/theme.css +1 -0
  35. package/src/types/BagelForm.ts +15 -1
@@ -0,0 +1,25 @@
1
+ export type ToolbarConfigOption = 'bold'
2
+ | 'italic'
3
+ | 'underline'
4
+ | 'strikethrough'
5
+ | 'fontSize'
6
+ | 'fontFamily'
7
+ | 'textColor'
8
+ | 'backgroundColor'
9
+ | 'alignLeft'
10
+ | 'alignCenter'
11
+ | 'alignRight'
12
+ | 'alignJustify'
13
+ | 'orderedList'
14
+ | 'unorderedList'
15
+ | 'indent'
16
+ | 'outdent'
17
+ | 'link'
18
+ | 'image'
19
+ | 'table'
20
+ | 'blockquote'
21
+ | 'codeBlock'
22
+ | 'splitView'
23
+ | 'codeView'
24
+
25
+ export type ToolbarConfig = ToolbarConfigOption[]
@@ -13,5 +13,6 @@ export { default as ToggleInput } from './ToggleInput.vue'
13
13
  export { default as RichText } from './RichText.vue'
14
14
  export { default as TelInput } from './TelInput.vue'
15
15
  export { default as SignaturePad } from './SignaturePad.vue'
16
+ export { default as RichText2 } from './RichText2/index.vue'
16
17
 
17
18
  export { Dropdown } from 'floating-vue'
@@ -62,7 +62,7 @@ function emitValue() {
62
62
  // const fileValues = files.map((f) => f.serverFile?.id);
63
63
  const relationshipObjKey = props.context.attrs?.relationshipObjKey
64
64
  if (!computedMultiple) return props.context.node.input(relationshipObjKey ? files[0].serverFile.id : files[0].serverFile)
65
- // eslint-disable-next-line no-alert
65
+
66
66
  alert('not implemented')
67
67
  }
68
68
 
@@ -464,35 +464,35 @@
464
464
  }
465
465
 
466
466
  .border-bottom-none {
467
- border-bottom: none
467
+ border-bottom: none !important;
468
468
  }
469
469
 
470
470
  .border-top-none {
471
- border-top: none
471
+ border-top: none !important
472
472
  }
473
473
 
474
474
  .border-start-none {
475
- border-inline-start: none
475
+ border-inline-start: none !important
476
476
  }
477
477
 
478
478
  .border-end-none {
479
- border-inline-end: none
479
+ border-inline-end: none !important
480
480
  }
481
481
 
482
482
  .border-inner-bottom-none>* {
483
- border-bottom: none
483
+ border-bottom: none !important
484
484
  }
485
485
 
486
486
  .border-inner-top-none>* {
487
- border-top: none
487
+ border-top: none !important
488
488
  }
489
489
 
490
490
  .border-inner-start-none>* {
491
- border-inline-start: none
491
+ border-inline-start: none !important
492
492
  }
493
493
 
494
494
  .border-inner-end-none>* {
495
- border-inline-end: none
495
+ border-inline-end: none !important
496
496
  }
497
497
 
498
498
 
@@ -960,34 +960,34 @@
960
960
  }
961
961
 
962
962
  .m_border-bottom-none {
963
- border-bottom: none
963
+ border-bottom: none !important
964
964
  }
965
965
 
966
966
  .m_border-top-none {
967
- border-top: none
967
+ border-top: none !important
968
968
  }
969
969
 
970
970
  .m_border-start-none {
971
- border-inline-start: none
971
+ border-inline-start: none !important
972
972
  }
973
973
 
974
974
  .m_border-end-none {
975
- border-inline-end: none
975
+ border-inline-end: none !important
976
976
  }
977
977
 
978
978
  .m_border-inner-bottom-none>* {
979
- border-bottom: none
979
+ border-bottom: none !important
980
980
  }
981
981
 
982
982
  .m_border-inner-top-none>* {
983
- border-top: none
983
+ border-top: none !important
984
984
  }
985
985
 
986
986
  .m_border-inner-start-none>* {
987
- border-inline-start: none
987
+ border-inline-start: none !important
988
988
  }
989
989
 
990
990
  .m_border-inner-end-none>* {
991
- border-inline-end: none
991
+ border-inline-end: none !important
992
992
  }
993
993
  }
@@ -18,6 +18,13 @@
18
18
  .rounded {
19
19
  border-radius: calc(var(--btn-border-radius) / 2);
20
20
  }
21
+ .round-extra {
22
+ border-radius: calc(var(--btn-border-radius) * 2);
23
+ }
24
+
25
+ .round-none {
26
+ border-radius: 0 ;
27
+ }
21
28
 
22
29
  .flex-center {
23
30
  justify-content: center;
@@ -149,6 +156,53 @@
149
156
  inset-inline-end: 0;
150
157
  }
151
158
 
159
+ .inset-inline-start, .start{
160
+ inset-inline-start: 0;
161
+ }
162
+
163
+ .inset-inline-end, .end{
164
+ inset-inline-end: 0;
165
+ }
166
+ .top, .top-0{
167
+ top: 0;
168
+ }
169
+
170
+ .top-1{
171
+ top: 1rem;
172
+ }
173
+
174
+ .top-2{
175
+ top: 2rem;
176
+ }
177
+
178
+ .top-3{
179
+ top: 3rem;
180
+ }
181
+
182
+ .top-4{
183
+ top: 4rem;
184
+ }
185
+
186
+ .bottom, .bottom-0{
187
+ bottom: 0;
188
+ }
189
+
190
+ .bottom-1{
191
+ bottom: 1rem;
192
+ }
193
+
194
+ .bottom-2{
195
+ bottom: 2rem;
196
+ }
197
+
198
+ .bottom-3{
199
+ bottom: 3rem;
200
+ }
201
+
202
+ .bottom-4{
203
+ bottom: 4rem;
204
+ }
205
+
152
206
  .auto-flow-rows {
153
207
  grid-auto-flow: row;
154
208
  }
@@ -1368,11 +1422,40 @@
1368
1422
  }
1369
1423
 
1370
1424
  .sticky,
1371
- .position-sticky {
1425
+ .position-sticky,
1426
+ .sticky-0,
1427
+ .position-sticky-0 {
1372
1428
  position: sticky !important;
1373
1429
  top: 0;
1374
1430
  align-self: start;
1431
+ }
1432
+
1433
+ .sticky-1,
1434
+ .position-sticky-1 {
1435
+ position: sticky !important;
1436
+ top: 1rem;
1437
+ align-self: start;
1438
+ }
1375
1439
 
1440
+ .sticky-2,
1441
+ .position-sticky-2 {
1442
+ position: sticky !important;
1443
+ top: 2rem;
1444
+ align-self: start;
1445
+ }
1446
+
1447
+ .sticky-3,
1448
+ .position-sticky-3 {
1449
+ position: sticky !important;
1450
+ top: 3rem;
1451
+ align-self: start;
1452
+ }
1453
+
1454
+ .sticky-4,
1455
+ .position-sticky-4 {
1456
+ position: sticky !important;
1457
+ top: 4rem;
1458
+ align-self: start;
1376
1459
  }
1377
1460
 
1378
1461
  .flex {
@@ -1388,24 +1471,24 @@
1388
1471
  .hide,
1389
1472
  .none,
1390
1473
  .display-none {
1391
- display: none;
1474
+ display: none !important;
1392
1475
  }
1393
1476
 
1394
1477
  .display-block {
1395
- display: block;
1478
+ display: block !important;
1396
1479
  }
1397
1480
 
1398
1481
  .block {
1399
1482
  display: block;
1400
- width: 100%;
1483
+ width: 100% !important;
1401
1484
  }
1402
1485
 
1403
1486
  .inline {
1404
- display: inline;
1487
+ display: inline !important;
1405
1488
  }
1406
1489
 
1407
1490
  .inline-block {
1408
- display: inline-block;
1491
+ display: inline-block !important;
1409
1492
  }
1410
1493
 
1411
1494
  .flex-end {
@@ -1788,6 +1871,30 @@
1788
1871
  grid-column: span 6;
1789
1872
  }
1790
1873
 
1874
+ .grid-span-row-1 {
1875
+ grid-row: span 1;
1876
+ }
1877
+
1878
+ .grid-span-row-2 {
1879
+ grid-row: span 2;
1880
+ }
1881
+
1882
+ .grid-span-row-3 {
1883
+ grid-row: span 3;
1884
+ }
1885
+
1886
+ .grid-span-row-4 {
1887
+ grid-row: span 4;
1888
+ }
1889
+
1890
+ .grid-span-row-5 {
1891
+ grid-row: span 5;
1892
+ }
1893
+
1894
+ .grid-span-row-6 {
1895
+ grid-row: span 6;
1896
+ }
1897
+
1791
1898
  .overflow-hidden {
1792
1899
  overflow: hidden;
1793
1900
  }
@@ -38,6 +38,18 @@
38
38
  border-radius: var(--btn-border-radius);
39
39
  }
40
40
 
41
+ .m_rounded {
42
+ border-radius: calc(var(--btn-border-radius) / 2);
43
+ }
44
+
45
+ .m_round-extra {
46
+ border-radius: calc(var(--btn-border-radius) * 2);
47
+ }
48
+
49
+ .m_round-none {
50
+ border-radius: 0 !important;
51
+ }
52
+
41
53
  .m_flex-center {
42
54
  justify-items: center;
43
55
  align-items: center;
@@ -65,7 +77,7 @@
65
77
  }
66
78
 
67
79
  .m_align-items-center {
68
- align-items: center;
80
+ align-items: center !important;
69
81
  }
70
82
 
71
83
  .m_align-items-end {
@@ -160,13 +172,6 @@
160
172
  inset-inline-end: 0px;
161
173
  }
162
174
 
163
- .m_positioned-full {
164
- top: 0;
165
- bottom: 0;
166
- inset-inline-start: 0;
167
- inset-inline-end: 0;
168
- }
169
-
170
175
 
171
176
  .m_auto-flow-rows {
172
177
  grid-auto-flow: row;
@@ -1300,10 +1305,42 @@
1300
1305
  position: static !important;
1301
1306
  }
1302
1307
 
1308
+
1303
1309
  .m_sticky,
1304
- .m_position-sticky {
1310
+ .m_position-sticky,
1311
+ .m_sticky-0,
1312
+ .m_position-sticky-0 {
1305
1313
  position: sticky !important;
1306
1314
  top: 0;
1315
+ align-self: start;
1316
+ }
1317
+
1318
+ .m_sticky-1,
1319
+ .m_position-sticky-1 {
1320
+ position: sticky !important;
1321
+ top: 1rem;
1322
+ align-self: start;
1323
+ }
1324
+
1325
+ .m_sticky-2,
1326
+ .m_position-sticky-2 {
1327
+ position: sticky !important;
1328
+ top: 2rem;
1329
+ align-self: start;
1330
+ }
1331
+
1332
+ .m_sticky-3,
1333
+ .m_position-sticky-3 {
1334
+ position: sticky !important;
1335
+ top: 3rem;
1336
+ align-self: start;
1337
+ }
1338
+
1339
+ .m_sticky-4,
1340
+ .m_position-sticky-4 {
1341
+ position: sticky !important;
1342
+ top: 4rem;
1343
+ align-self: start;
1307
1344
  }
1308
1345
 
1309
1346
  .m_flex-stretch {
@@ -1692,6 +1729,29 @@
1692
1729
  .m_grid-span-6 {
1693
1730
  grid-column: span 6;
1694
1731
  }
1732
+ .m_grid-span-row-1 {
1733
+ grid-row: span 1;
1734
+ }
1735
+
1736
+ .m_grid-span-row-2 {
1737
+ grid-row: span 2;
1738
+ }
1739
+
1740
+ .m_grid-span-row-3 {
1741
+ grid-row: span 3;
1742
+ }
1743
+
1744
+ .m_grid-span-row-4 {
1745
+ grid-row: span 4;
1746
+ }
1747
+
1748
+ .m_grid-span-row-5 {
1749
+ grid-row: span 5;
1750
+ }
1751
+
1752
+ .m_grid-span-row-6 {
1753
+ grid-row: span 6;
1754
+ }
1695
1755
 
1696
1756
  .m_overflow-hidden {
1697
1757
  overflow: hidden;
@@ -1705,15 +1765,15 @@
1705
1765
  overflow: unset;
1706
1766
  }
1707
1767
 
1708
- .overflow-scroll {
1768
+ .m_overflow-scroll {
1709
1769
  overflow: scroll;
1710
1770
  }
1711
1771
 
1712
- .overflow-x-scroll {
1772
+ .m_overflow-x-scroll {
1713
1773
  overflow-x: scroll;
1714
1774
  }
1715
1775
 
1716
- .overflow-y-scroll {
1776
+ .m_overflow-y-scroll {
1717
1777
  overflow-y: scroll;
1718
1778
  }
1719
1779
 
@@ -1750,4 +1810,56 @@
1750
1810
  inset-inline-start: 0;
1751
1811
  inset-inline-end: 0;
1752
1812
  }
1813
+
1814
+ .m_inset-inline-start,
1815
+ .m_start {
1816
+ inset-inline-start: 0;
1817
+ }
1818
+
1819
+ .m_inset-inline-end,
1820
+ .m_end {
1821
+ inset-inline-end: 0;
1822
+ }
1823
+
1824
+ .m_top,
1825
+ .m_top-0 {
1826
+ top: 0;
1827
+ }
1828
+
1829
+ .m_top-1 {
1830
+ top: 1rem;
1831
+ }
1832
+
1833
+ .m_top-2 {
1834
+ top: 2rem;
1835
+ }
1836
+
1837
+ .m_top-3 {
1838
+ top: 3rem;
1839
+ }
1840
+
1841
+ .m_top-4 {
1842
+ top: 4rem;
1843
+ }
1844
+
1845
+ .m_bottom,
1846
+ .m_bottom-0 {
1847
+ bottom: 0;
1848
+ }
1849
+
1850
+ .m_bottom-1 {
1851
+ bottom: 1rem;
1852
+ }
1853
+
1854
+ .m_bottom-2 {
1855
+ bottom: 2rem;
1856
+ }
1857
+
1858
+ .m_bottom-3 {
1859
+ bottom: 3rem;
1860
+ }
1861
+
1862
+ .m_bottom-4 {
1863
+ bottom: 4rem;
1864
+ }
1753
1865
  }
@@ -159,15 +159,23 @@
159
159
  color: var(--bgl-white);
160
160
  }
161
161
 
162
- .font-light,
163
- .txt-light {
162
+ .font-thin,
163
+ .txt-thin {
164
164
  font-weight: 100;
165
165
  }
166
166
 
167
- .bold,
168
- .txt-bold,
169
- .font-bold {
170
- font-weight: 700;
167
+ .extra-light,
168
+ .font-extra-light,
169
+ .txt-extra-light,
170
+ .font-ultra-light,
171
+ .txt-ultra-light {
172
+ font-weight: 200;
173
+ }
174
+
175
+ .light,
176
+ .txt-light,
177
+ .font-light {
178
+ font-weight: 300;
171
179
  }
172
180
 
173
181
  .regular,
@@ -176,6 +184,12 @@
176
184
  font-weight: 400;
177
185
  }
178
186
 
187
+ .medium,
188
+ .txt-medium,
189
+ .font-medium {
190
+ font-weight: 500;
191
+ }
192
+
179
193
  .semi,
180
194
  .semibold,
181
195
  .txt-semi,
@@ -186,6 +200,26 @@
186
200
  font-weight: 600;
187
201
  }
188
202
 
203
+ .bold,
204
+ .txt-bold,
205
+ .font-bold {
206
+ font-weight: 700;
207
+ }
208
+
209
+ .extra-bold,
210
+ .font-extra-bold,
211
+ .txt-extra-bold,
212
+ .font-ultra-bold,
213
+ .txt-ultra-bold {
214
+ font-weight: 800;
215
+ }
216
+
217
+ .black,
218
+ .txt-black,
219
+ .font-black {
220
+ font-weight: 900;
221
+ }
222
+
189
223
  .line-height-1 {
190
224
  line-height: 1;
191
225
  }
@@ -503,15 +537,23 @@
503
537
  color: var(--bgl-white);
504
538
  }
505
539
 
506
- .m_font-light,
507
- .m_txt-light {
540
+ .m_font-thin,
541
+ .m_txt-thin {
508
542
  font-weight: 100;
509
543
  }
510
544
 
511
- .m_bold,
512
- .m_txt-bold,
513
- .m_font-bold {
514
- font-weight: 700;
545
+ .m_extra-light,
546
+ .m_font-extra-light,
547
+ .m_txt-extra-light,
548
+ .m_font-ultra-light,
549
+ .m_txt-ultra-light {
550
+ font-weight: 200;
551
+ }
552
+
553
+ .m_light,
554
+ .m_txt-light,
555
+ .m_font-light {
556
+ font-weight: 300;
515
557
  }
516
558
 
517
559
  .m_regular,
@@ -520,6 +562,12 @@
520
562
  font-weight: 400;
521
563
  }
522
564
 
565
+ .m_medium,
566
+ .m_txt-medium,
567
+ .m_font-medium {
568
+ font-weight: 500;
569
+ }
570
+
523
571
  .m_semi,
524
572
  .m_semibold,
525
573
  .m_txt-semi,
@@ -530,7 +578,25 @@
530
578
  font-weight: 600;
531
579
  }
532
580
 
581
+ .m_bold,
582
+ .m_txt-bold,
583
+ .m_font-bold {
584
+ font-weight: 700;
585
+ }
533
586
 
587
+ .m_extra-bold,
588
+ .m_font-extra-bold,
589
+ .m_txt-extra-bold,
590
+ .m_font-ultra-bold,
591
+ .m_txt-ultra-bold {
592
+ font-weight: 800;
593
+ }
594
+
595
+ .m_black,
596
+ .m_txt-black,
597
+ .m_font-black {
598
+ font-weight: 900;
599
+ }
534
600
 
535
601
  .m_line-height-1 {
536
602
  line-height: 1;
@@ -17,6 +17,7 @@
17
17
  --bgl-gray-light: #f5f8fa;
18
18
  --bgl-gray-80: #e8ecef;
19
19
  --bgl-gray-20: rgba(183, 183, 183, 0.2);
20
+ --bgl-gray-40: rgba(183, 183, 183, 0.4);
20
21
  --bgl-pink: #f1416c;
21
22
  --bgl-red: #ed6c6f;
22
23
  --bgl-red-tint: #fbe2e2;
@@ -8,6 +8,20 @@ export interface Attributes<T = any> {
8
8
  [key: string]: AttributeValue | AttributeFn<T>
9
9
  }
10
10
 
11
+ export type BagelFieldOptions = (
12
+ string
13
+ | (
14
+ {
15
+ label?: string
16
+ value: string | number
17
+ }
18
+ | string
19
+ | number
20
+ | Record<string, any>
21
+ )[]
22
+ | ((val: any, rowData?: Record<string, any>) => void)
23
+ )
24
+
11
25
  export interface BaseBagelField<T = Record<string, any>> {
12
26
  '$el'?: any
13
27
  'id'?: string
@@ -19,7 +33,7 @@ export interface BaseBagelField<T = Record<string, any>> {
19
33
  'required'?: boolean
20
34
  'disabled'?: boolean
21
35
  'helptext'?: string
22
- 'options'?: string | ({ label?: string, value: string | number } | string | number | Record<string, any>)[] | ((val: any, rowData?: Record<string, any>) => void)
36
+ 'options'?: BagelFieldOptions
23
37
  'defaultValue'?: any
24
38
  'transform'?: (val?: any, rowData?: Record<string, any>) => any
25
39
  'onUpdate'?: (val: any, rowData?: Record<string, any>) => void