@bagelink/vue 0.0.546 → 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.
- package/dist/components/Drop.vue.d.ts +34 -0
- package/dist/components/Drop.vue.d.ts.map +1 -0
- package/dist/components/FileUploader.vue.d.ts +60 -0
- package/dist/components/FileUploader.vue.d.ts.map +1 -0
- package/dist/components/TableSchema.vue.d.ts +7 -16
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/ItemRef.vue.d.ts +1 -0
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/index.cjs +3460 -3440
- package/dist/index.mjs +3460 -3440
- package/dist/style.css +157 -76
- package/dist/types/BagelForm.d.ts +5 -4
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DataPreview.vue +3 -3
- package/src/components/TableSchema.vue +10 -10
- package/src/components/form/BglField.vue +19 -2
- package/src/components/form/inputs/RichText2/Toolbar.vue +32 -32
- package/src/components/formkit/FileUploader.vue +1 -1
- package/src/styles/appearance.css +16 -16
- package/src/styles/layout.css +24 -2
- package/src/styles/mobilLayout.css +27 -4
- package/src/styles/text.css +66 -24
- package/src/types/BagelForm.ts +15 -1
- package/dist/components/Popover.vue.d.ts +0 -10
- package/dist/components/Popover.vue.d.ts.map +0 -1
- package/dist/types/materialIcon.d.ts +0 -2
- package/dist/types/materialIcon.d.ts.map +0 -1
package/dist/style.css
CHANGED
|
@@ -637,41 +637,41 @@ a[data-v-7f505d62] {
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
-
.list-arrows[data-v-
|
|
640
|
+
.list-arrows[data-v-9bf1b6df] {
|
|
641
641
|
opacity: 0;
|
|
642
642
|
}
|
|
643
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
643
|
+
.list-arrows .bgl_icon-font[data-v-9bf1b6df] {
|
|
644
644
|
transition: all ease-in-out 0.2s;
|
|
645
645
|
}
|
|
646
|
-
.list-arrows.sorted[data-v-
|
|
646
|
+
.list-arrows.sorted[data-v-9bf1b6df] {
|
|
647
647
|
opacity: 1;
|
|
648
648
|
}
|
|
649
|
-
.col img[data-v-
|
|
649
|
+
.col img[data-v-9bf1b6df] {
|
|
650
650
|
height: 35px;
|
|
651
651
|
margin-top: -14px;
|
|
652
652
|
margin-bottom: -14px;
|
|
653
653
|
border-radius: 5px;
|
|
654
654
|
}
|
|
655
|
-
.list-arrows.sorted .desc[data-v-
|
|
655
|
+
.list-arrows.sorted .desc[data-v-9bf1b6df] {
|
|
656
656
|
transform: rotate(180deg);
|
|
657
657
|
}
|
|
658
|
-
table[data-v-
|
|
658
|
+
table[data-v-9bf1b6df] {
|
|
659
659
|
border-collapse: separate;
|
|
660
660
|
border-spacing: 0 15px;
|
|
661
661
|
border-collapse: collapse;
|
|
662
662
|
}
|
|
663
|
-
th[data-v-
|
|
663
|
+
th[data-v-9bf1b6df] {
|
|
664
664
|
font-weight: 400;
|
|
665
665
|
}
|
|
666
|
-
.embedded-field[data-v-
|
|
666
|
+
.embedded-field[data-v-9bf1b6df] {
|
|
667
667
|
margin-bottom: -0.2rem;
|
|
668
668
|
margin-top: -0.2rem;
|
|
669
669
|
}
|
|
670
|
-
.row[data-v-
|
|
670
|
+
.row[data-v-9bf1b6df] {
|
|
671
671
|
border-bottom: 1px solid var(--border-color);
|
|
672
672
|
cursor: pointer;
|
|
673
673
|
}
|
|
674
|
-
.row.first-row[data-v-
|
|
674
|
+
.row.first-row[data-v-9bf1b6df] {
|
|
675
675
|
font-size: 0.8rem;
|
|
676
676
|
color: var(--bgl-black-tint);
|
|
677
677
|
position: sticky;
|
|
@@ -681,10 +681,10 @@ th[data-v-8113163b] {
|
|
|
681
681
|
/* height: 50px; */
|
|
682
682
|
vertical-align: bottom;
|
|
683
683
|
}
|
|
684
|
-
.row.first-row input[type=checkbox][data-v-
|
|
684
|
+
.row.first-row input[type=checkbox][data-v-9bf1b6df]{
|
|
685
685
|
margin-bottom: 0.7rem;
|
|
686
686
|
}
|
|
687
|
-
.row.first-row[data-v-
|
|
687
|
+
.row.first-row[data-v-9bf1b6df]::after {
|
|
688
688
|
content: '';
|
|
689
689
|
border-bottom: 1px solid var(--border-color);
|
|
690
690
|
position: absolute;
|
|
@@ -692,30 +692,30 @@ th[data-v-8113163b] {
|
|
|
692
692
|
right: 0;
|
|
693
693
|
bottom: -1px;
|
|
694
694
|
}
|
|
695
|
-
.first-row .col[data-v-
|
|
695
|
+
.first-row .col[data-v-9bf1b6df] {
|
|
696
696
|
cursor: pointer;
|
|
697
697
|
background: var(--bgl-white);
|
|
698
698
|
}
|
|
699
|
-
.col[data-v-
|
|
699
|
+
.col[data-v-9bf1b6df] {
|
|
700
700
|
white-space: nowrap;
|
|
701
701
|
padding: 0.75rem 1rem;
|
|
702
702
|
transition: var(--bgl-transition);
|
|
703
703
|
line-height: 1;
|
|
704
704
|
align-items: center;
|
|
705
705
|
}
|
|
706
|
-
.col[data-v-
|
|
706
|
+
.col[data-v-9bf1b6df]:has(.bagel-input) {
|
|
707
707
|
padding: 0rem 0.25rem;
|
|
708
708
|
}
|
|
709
|
-
.col > div[data-v-
|
|
709
|
+
.col > div[data-v-9bf1b6df] {
|
|
710
710
|
display: flex;
|
|
711
711
|
gap: 0.5rem;
|
|
712
712
|
}
|
|
713
|
-
.max-col-width[data-v-
|
|
713
|
+
.max-col-width[data-v-9bf1b6df] {
|
|
714
714
|
max-width: 30vw;
|
|
715
715
|
overflow: hidden;
|
|
716
716
|
text-overflow: ellipsis;
|
|
717
717
|
}
|
|
718
|
-
.col.check .bgl_icon-font[data-v-
|
|
718
|
+
.col.check .bgl_icon-font[data-v-9bf1b6df] {
|
|
719
719
|
border-radius: 100%;
|
|
720
720
|
background: var(--bgl-blue-20);
|
|
721
721
|
color: var(--bgl-primary);
|
|
@@ -726,48 +726,48 @@ th[data-v-8113163b] {
|
|
|
726
726
|
justify-content: center;
|
|
727
727
|
margin-top: -2px;
|
|
728
728
|
}
|
|
729
|
-
.rows[data-v-
|
|
729
|
+
.rows[data-v-9bf1b6df] {
|
|
730
730
|
font-size: 0.88em;
|
|
731
731
|
}
|
|
732
|
-
.table-list[data-v-
|
|
732
|
+
.table-list[data-v-9bf1b6df] {
|
|
733
733
|
height: 100%;
|
|
734
734
|
position: relative;
|
|
735
735
|
padding-left: 0 !important;
|
|
736
736
|
padding-right: 0 !important;
|
|
737
737
|
overflow: auto;
|
|
738
738
|
}
|
|
739
|
-
.BagelTable .table-list[data-v-
|
|
739
|
+
.BagelTable .table-list[data-v-9bf1b6df] {
|
|
740
740
|
overflow: unset;
|
|
741
741
|
}
|
|
742
|
-
.row-item[data-v-
|
|
742
|
+
.row-item[data-v-9bf1b6df] {
|
|
743
743
|
height: 50px;
|
|
744
744
|
transition: all 200ms ease;
|
|
745
745
|
}
|
|
746
|
-
.row-item[data-v-
|
|
746
|
+
.row-item[data-v-9bf1b6df]:hover {
|
|
747
747
|
background: var(--bgl-gray-light);
|
|
748
748
|
}
|
|
749
|
-
.row-item input[type=checkbox][data-v-
|
|
749
|
+
.row-item input[type=checkbox][data-v-9bf1b6df]{
|
|
750
750
|
margin-top: 0.45rem !important;
|
|
751
751
|
accent-color: var(--bgl-primary);
|
|
752
752
|
}
|
|
753
|
-
.infinite-wrapper[data-v-
|
|
753
|
+
.infinite-wrapper[data-v-9bf1b6df] {
|
|
754
754
|
overflow-y: auto;
|
|
755
755
|
width: 100%;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
.data[data-v-
|
|
758
|
+
.data[data-v-078d6853] {
|
|
759
759
|
border: 1.1px solid var(--border-color);
|
|
760
760
|
padding: 20px;
|
|
761
761
|
border-radius: var(--input-border-radius);
|
|
762
762
|
}
|
|
763
|
-
.data-row[data-v-
|
|
763
|
+
.data-row[data-v-078d6853] {
|
|
764
764
|
display: flex;
|
|
765
765
|
justify-content: space-between;
|
|
766
766
|
padding-bottom: 0.5rem;
|
|
767
767
|
margin-bottom: 0.5rem;
|
|
768
768
|
border-bottom: 1px solid var(--border-color);
|
|
769
769
|
}
|
|
770
|
-
.data-link[data-v-
|
|
770
|
+
.data-link[data-v-078d6853] {
|
|
771
771
|
display: block;
|
|
772
772
|
font-size: var(--input-font-size);
|
|
773
773
|
margin-bottom: 2px;
|
|
@@ -2618,7 +2618,7 @@ p {
|
|
|
2618
2618
|
background: var(--input-disabled-bg);
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
|
-
.toolbar[data-v-
|
|
2621
|
+
.toolbar[data-v-ace0040e] {
|
|
2622
2622
|
display: flex;
|
|
2623
2623
|
flex-wrap: wrap;
|
|
2624
2624
|
gap: 5px;
|
|
@@ -2626,11 +2626,11 @@ p {
|
|
|
2626
2626
|
background-color: #f0f0f0;
|
|
2627
2627
|
border-bottom: 1px solid #ccc;
|
|
2628
2628
|
}
|
|
2629
|
-
button[data-v-
|
|
2629
|
+
button[data-v-ace0040e]:hover {
|
|
2630
2630
|
background-color: #e0e0e0;
|
|
2631
2631
|
}
|
|
2632
|
-
input[type="color"][data-v-
|
|
2633
|
-
input[type="number"][data-v-
|
|
2632
|
+
input[type="color"][data-v-ace0040e],
|
|
2633
|
+
input[type="number"][data-v-ace0040e] {
|
|
2634
2634
|
width: 40px;
|
|
2635
2635
|
height: 30px;
|
|
2636
2636
|
padding: 0;
|
|
@@ -4340,6 +4340,24 @@ input[type="number"][data-v-6538d377] {
|
|
|
4340
4340
|
.grid-span-6 {
|
|
4341
4341
|
grid-column: span 6;
|
|
4342
4342
|
}
|
|
4343
|
+
.grid-span-row-1 {
|
|
4344
|
+
grid-row: span 1;
|
|
4345
|
+
}
|
|
4346
|
+
.grid-span-row-2 {
|
|
4347
|
+
grid-row: span 2;
|
|
4348
|
+
}
|
|
4349
|
+
.grid-span-row-3 {
|
|
4350
|
+
grid-row: span 3;
|
|
4351
|
+
}
|
|
4352
|
+
.grid-span-row-4 {
|
|
4353
|
+
grid-row: span 4;
|
|
4354
|
+
}
|
|
4355
|
+
.grid-span-row-5 {
|
|
4356
|
+
grid-row: span 5;
|
|
4357
|
+
}
|
|
4358
|
+
.grid-span-row-6 {
|
|
4359
|
+
grid-row: span 6;
|
|
4360
|
+
}
|
|
4343
4361
|
.overflow-hidden {
|
|
4344
4362
|
overflow: hidden;
|
|
4345
4363
|
}
|
|
@@ -4496,7 +4514,7 @@ input[type="number"][data-v-6538d377] {
|
|
|
4496
4514
|
}
|
|
4497
4515
|
|
|
4498
4516
|
.m_align-items-center {
|
|
4499
|
-
align-items: center;
|
|
4517
|
+
align-items: center !important;
|
|
4500
4518
|
}
|
|
4501
4519
|
|
|
4502
4520
|
.m_align-items-end {
|
|
@@ -6148,6 +6166,29 @@ input[type="number"][data-v-6538d377] {
|
|
|
6148
6166
|
.m_grid-span-6 {
|
|
6149
6167
|
grid-column: span 6;
|
|
6150
6168
|
}
|
|
6169
|
+
.m_grid-span-row-1 {
|
|
6170
|
+
grid-row: span 1;
|
|
6171
|
+
}
|
|
6172
|
+
|
|
6173
|
+
.m_grid-span-row-2 {
|
|
6174
|
+
grid-row: span 2;
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
.m_grid-span-row-3 {
|
|
6178
|
+
grid-row: span 3;
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6181
|
+
.m_grid-span-row-4 {
|
|
6182
|
+
grid-row: span 4;
|
|
6183
|
+
}
|
|
6184
|
+
|
|
6185
|
+
.m_grid-span-row-5 {
|
|
6186
|
+
grid-row: span 5;
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6189
|
+
.m_grid-span-row-6 {
|
|
6190
|
+
grid-row: span 6;
|
|
6191
|
+
}
|
|
6151
6192
|
|
|
6152
6193
|
.m_overflow-hidden {
|
|
6153
6194
|
overflow: hidden;
|
|
@@ -6161,15 +6202,15 @@ input[type="number"][data-v-6538d377] {
|
|
|
6161
6202
|
overflow: unset;
|
|
6162
6203
|
}
|
|
6163
6204
|
|
|
6164
|
-
.
|
|
6205
|
+
.m_overflow-scroll {
|
|
6165
6206
|
overflow: scroll;
|
|
6166
6207
|
}
|
|
6167
6208
|
|
|
6168
|
-
.
|
|
6209
|
+
.m_overflow-x-scroll {
|
|
6169
6210
|
overflow-x: scroll;
|
|
6170
6211
|
}
|
|
6171
6212
|
|
|
6172
|
-
.
|
|
6213
|
+
.m_overflow-y-scroll {
|
|
6173
6214
|
overflow-y: scroll;
|
|
6174
6215
|
}
|
|
6175
6216
|
|
|
@@ -6658,16 +6699,28 @@ select {
|
|
|
6658
6699
|
.txt-thin {
|
|
6659
6700
|
font-weight: 100;
|
|
6660
6701
|
}
|
|
6661
|
-
.
|
|
6662
|
-
.
|
|
6663
|
-
.
|
|
6664
|
-
|
|
6702
|
+
.extra-light,
|
|
6703
|
+
.font-extra-light,
|
|
6704
|
+
.txt-extra-light,
|
|
6705
|
+
.font-ultra-light,
|
|
6706
|
+
.txt-ultra-light {
|
|
6707
|
+
font-weight: 200;
|
|
6708
|
+
}
|
|
6709
|
+
.light,
|
|
6710
|
+
.txt-light,
|
|
6711
|
+
.font-light {
|
|
6712
|
+
font-weight: 300;
|
|
6665
6713
|
}
|
|
6666
6714
|
.regular,
|
|
6667
6715
|
.txt-regular,
|
|
6668
6716
|
.font-regular {
|
|
6669
6717
|
font-weight: 400;
|
|
6670
6718
|
}
|
|
6719
|
+
.medium,
|
|
6720
|
+
.txt-medium,
|
|
6721
|
+
.font-medium {
|
|
6722
|
+
font-weight: 500;
|
|
6723
|
+
}
|
|
6671
6724
|
.semi,
|
|
6672
6725
|
.semibold,
|
|
6673
6726
|
.txt-semi,
|
|
@@ -6677,15 +6730,22 @@ select {
|
|
|
6677
6730
|
.font-semibold {
|
|
6678
6731
|
font-weight: 600;
|
|
6679
6732
|
}
|
|
6680
|
-
.
|
|
6681
|
-
.txt-
|
|
6682
|
-
.font-
|
|
6683
|
-
font-weight:
|
|
6733
|
+
.bold,
|
|
6734
|
+
.txt-bold,
|
|
6735
|
+
.font-bold {
|
|
6736
|
+
font-weight: 700;
|
|
6684
6737
|
}
|
|
6685
|
-
.
|
|
6686
|
-
.
|
|
6687
|
-
.
|
|
6688
|
-
|
|
6738
|
+
.extra-bold,
|
|
6739
|
+
.font-extra-bold,
|
|
6740
|
+
.txt-extra-bold,
|
|
6741
|
+
.font-ultra-bold,
|
|
6742
|
+
.txt-ultra-bold {
|
|
6743
|
+
font-weight: 800;
|
|
6744
|
+
}
|
|
6745
|
+
.black,
|
|
6746
|
+
.txt-black,
|
|
6747
|
+
.font-black {
|
|
6748
|
+
font-weight: 900;
|
|
6689
6749
|
}
|
|
6690
6750
|
.line-height-1 {
|
|
6691
6751
|
line-height: 1;
|
|
@@ -6977,10 +7037,18 @@ select {
|
|
|
6977
7037
|
font-weight: 100;
|
|
6978
7038
|
}
|
|
6979
7039
|
|
|
6980
|
-
.
|
|
6981
|
-
.
|
|
6982
|
-
.
|
|
6983
|
-
|
|
7040
|
+
.m_extra-light,
|
|
7041
|
+
.m_font-extra-light,
|
|
7042
|
+
.m_txt-extra-light,
|
|
7043
|
+
.m_font-ultra-light,
|
|
7044
|
+
.m_txt-ultra-light {
|
|
7045
|
+
font-weight: 200;
|
|
7046
|
+
}
|
|
7047
|
+
|
|
7048
|
+
.m_light,
|
|
7049
|
+
.m_txt-light,
|
|
7050
|
+
.m_font-light {
|
|
7051
|
+
font-weight: 300;
|
|
6984
7052
|
}
|
|
6985
7053
|
|
|
6986
7054
|
.m_regular,
|
|
@@ -6989,6 +7057,12 @@ select {
|
|
|
6989
7057
|
font-weight: 400;
|
|
6990
7058
|
}
|
|
6991
7059
|
|
|
7060
|
+
.m_medium,
|
|
7061
|
+
.m_txt-medium,
|
|
7062
|
+
.m_font-medium {
|
|
7063
|
+
font-weight: 500;
|
|
7064
|
+
}
|
|
7065
|
+
|
|
6992
7066
|
.m_semi,
|
|
6993
7067
|
.m_semibold,
|
|
6994
7068
|
.m_txt-semi,
|
|
@@ -6999,18 +7073,25 @@ select {
|
|
|
6999
7073
|
font-weight: 600;
|
|
7000
7074
|
}
|
|
7001
7075
|
|
|
7002
|
-
.
|
|
7003
|
-
.
|
|
7004
|
-
.
|
|
7005
|
-
font-weight:
|
|
7076
|
+
.m_bold,
|
|
7077
|
+
.m_txt-bold,
|
|
7078
|
+
.m_font-bold {
|
|
7079
|
+
font-weight: 700;
|
|
7006
7080
|
}
|
|
7007
7081
|
|
|
7008
|
-
.
|
|
7009
|
-
.
|
|
7010
|
-
.
|
|
7011
|
-
|
|
7082
|
+
.m_extra-bold,
|
|
7083
|
+
.m_font-extra-bold,
|
|
7084
|
+
.m_txt-extra-bold,
|
|
7085
|
+
.m_font-ultra-bold,
|
|
7086
|
+
.m_txt-ultra-bold {
|
|
7087
|
+
font-weight: 800;
|
|
7012
7088
|
}
|
|
7013
7089
|
|
|
7090
|
+
.m_black,
|
|
7091
|
+
.m_txt-black,
|
|
7092
|
+
.m_font-black {
|
|
7093
|
+
font-weight: 900;
|
|
7094
|
+
}
|
|
7014
7095
|
|
|
7015
7096
|
.m_line-height-1 {
|
|
7016
7097
|
line-height: 1;
|
|
@@ -7618,28 +7699,28 @@ select {
|
|
|
7618
7699
|
border-inline-end: 1px solid var(--border-color)
|
|
7619
7700
|
}
|
|
7620
7701
|
.border-bottom-none {
|
|
7621
|
-
border-bottom: none
|
|
7702
|
+
border-bottom: none !important;
|
|
7622
7703
|
}
|
|
7623
7704
|
.border-top-none {
|
|
7624
|
-
border-top: none
|
|
7705
|
+
border-top: none !important
|
|
7625
7706
|
}
|
|
7626
7707
|
.border-start-none {
|
|
7627
|
-
border-inline-start: none
|
|
7708
|
+
border-inline-start: none !important
|
|
7628
7709
|
}
|
|
7629
7710
|
.border-end-none {
|
|
7630
|
-
border-inline-end: none
|
|
7711
|
+
border-inline-end: none !important
|
|
7631
7712
|
}
|
|
7632
7713
|
.border-inner-bottom-none>* {
|
|
7633
|
-
border-bottom: none
|
|
7714
|
+
border-bottom: none !important
|
|
7634
7715
|
}
|
|
7635
7716
|
.border-inner-top-none>* {
|
|
7636
|
-
border-top: none
|
|
7717
|
+
border-top: none !important
|
|
7637
7718
|
}
|
|
7638
7719
|
.border-inner-start-none>* {
|
|
7639
|
-
border-inline-start: none
|
|
7720
|
+
border-inline-start: none !important
|
|
7640
7721
|
}
|
|
7641
7722
|
.border-inner-end-none>* {
|
|
7642
|
-
border-inline-end: none
|
|
7723
|
+
border-inline-end: none !important
|
|
7643
7724
|
}
|
|
7644
7725
|
@media screen and (max-width: 910px) {
|
|
7645
7726
|
.m_opacity-0 {
|
|
@@ -8104,35 +8185,35 @@ select {
|
|
|
8104
8185
|
}
|
|
8105
8186
|
|
|
8106
8187
|
.m_border-bottom-none {
|
|
8107
|
-
border-bottom: none
|
|
8188
|
+
border-bottom: none !important
|
|
8108
8189
|
}
|
|
8109
8190
|
|
|
8110
8191
|
.m_border-top-none {
|
|
8111
|
-
border-top: none
|
|
8192
|
+
border-top: none !important
|
|
8112
8193
|
}
|
|
8113
8194
|
|
|
8114
8195
|
.m_border-start-none {
|
|
8115
|
-
border-inline-start: none
|
|
8196
|
+
border-inline-start: none !important
|
|
8116
8197
|
}
|
|
8117
8198
|
|
|
8118
8199
|
.m_border-end-none {
|
|
8119
|
-
border-inline-end: none
|
|
8200
|
+
border-inline-end: none !important
|
|
8120
8201
|
}
|
|
8121
8202
|
|
|
8122
8203
|
.m_border-inner-bottom-none>* {
|
|
8123
|
-
border-bottom: none
|
|
8204
|
+
border-bottom: none !important
|
|
8124
8205
|
}
|
|
8125
8206
|
|
|
8126
8207
|
.m_border-inner-top-none>* {
|
|
8127
|
-
border-top: none
|
|
8208
|
+
border-top: none !important
|
|
8128
8209
|
}
|
|
8129
8210
|
|
|
8130
8211
|
.m_border-inner-start-none>* {
|
|
8131
|
-
border-inline-start: none
|
|
8212
|
+
border-inline-start: none !important
|
|
8132
8213
|
}
|
|
8133
8214
|
|
|
8134
8215
|
.m_border-inner-end-none>* {
|
|
8135
|
-
border-inline-end: none
|
|
8216
|
+
border-inline-end: none !important
|
|
8136
8217
|
}
|
|
8137
8218
|
}
|
|
8138
8219
|
/* @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;600;700&display=swap"); */
|
|
@@ -5,6 +5,10 @@ export type AttributeFn<T = Record<string, any>> = (field: any, row: T) => Attri
|
|
|
5
5
|
export interface Attributes<T = any> {
|
|
6
6
|
[key: string]: AttributeValue | AttributeFn<T>;
|
|
7
7
|
}
|
|
8
|
+
export type BagelFieldOptions = (string | ({
|
|
9
|
+
label?: string;
|
|
10
|
+
value: string | number;
|
|
11
|
+
} | string | number | Record<string, any>)[] | ((val: any, rowData?: Record<string, any>) => void));
|
|
8
12
|
export interface BaseBagelField<T = Record<string, any>> {
|
|
9
13
|
'$el'?: any;
|
|
10
14
|
'id'?: string;
|
|
@@ -16,10 +20,7 @@ export interface BaseBagelField<T = Record<string, any>> {
|
|
|
16
20
|
'required'?: boolean;
|
|
17
21
|
'disabled'?: boolean;
|
|
18
22
|
'helptext'?: string;
|
|
19
|
-
'options'?:
|
|
20
|
-
label?: string;
|
|
21
|
-
value: string | number;
|
|
22
|
-
} | string | number | Record<string, any>)[] | ((val: any, rowData?: Record<string, any>) => void);
|
|
23
|
+
'options'?: BagelFieldOptions;
|
|
23
24
|
'defaultValue'?: any;
|
|
24
25
|
'transform'?: (val?: any, rowData?: Record<string, any>) => any;
|
|
25
26
|
'onUpdate'?: (val: any, rowData?: Record<string, any>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelForm.d.ts","sourceRoot":"","sources":["../../src/types/BagelForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,MAAM,cAAc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EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC7D,GAAG,EAAE,QAAQ,GAAG,OAAO,WAAW,CAAA;IAClC,EAAE,EAAE,MAAM,CAAA;CACV;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEzG,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -15,12 +15,12 @@ const props = defineProps<{
|
|
|
15
15
|
|
|
16
16
|
const itemData = defineModel<Record<string, any>>('data', { default: {} })
|
|
17
17
|
const computedSchema = $computed(() => {
|
|
18
|
-
console.log(itemData.value)
|
|
18
|
+
// console.log(itemData.value)
|
|
19
19
|
const schema = Object.keys(itemData.value)
|
|
20
20
|
if (props.showFields && props.showFields.length) {
|
|
21
21
|
return schema.filter((field: any) => props.showFields?.includes(field))
|
|
22
22
|
}
|
|
23
|
-
console.log(schema)
|
|
23
|
+
// console.log(schema)
|
|
24
24
|
return schema
|
|
25
25
|
})
|
|
26
26
|
</script>
|
|
@@ -33,7 +33,7 @@ const computedSchema = $computed(() => {
|
|
|
33
33
|
<div class="key">
|
|
34
34
|
{{ field?.label || keyToLabel(field.id) }}
|
|
35
35
|
</div>
|
|
36
|
-
<BglField v-model="itemData" label="" style="width: min-content; min-width: 140px" :field
|
|
36
|
+
<BglField v-model="itemData" label="" style="width: min-content; min-width: 140px" :field />
|
|
37
37
|
</div>
|
|
38
38
|
</template>
|
|
39
39
|
<div v-if="!schema?.length">
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useSlots } from 'vue'
|
|
3
2
|
import {
|
|
4
3
|
BglField,
|
|
5
4
|
type BglFormSchemaT,
|
|
6
5
|
MaterialIcon,
|
|
7
6
|
keyToLabel,
|
|
8
7
|
} from '@bagelink/vue'
|
|
8
|
+
import { useSlots } from 'vue'
|
|
9
9
|
|
|
10
10
|
const props = defineProps<{
|
|
11
|
-
|
|
11
|
+
selectedItems?: string[]
|
|
12
12
|
data: any[]
|
|
13
13
|
schema?: BglFormSchemaT | (() => BglFormSchemaT)
|
|
14
14
|
showFields?: string[]
|
|
15
15
|
}>()
|
|
16
|
-
const emit = defineEmits(['update:
|
|
16
|
+
const emit = defineEmits(['update:selectedItems', 'orderBy', 'select'])
|
|
17
17
|
const slots = useSlots()
|
|
18
18
|
const loading = $ref(true)
|
|
19
19
|
|
|
20
|
-
let
|
|
20
|
+
let selectedItems = $ref<string[]>(props.selectedItems || [])
|
|
21
21
|
let selected = $computed({
|
|
22
|
-
get: () =>
|
|
22
|
+
get: () => selectedItems,
|
|
23
23
|
set: (value: string[]) => {
|
|
24
|
-
|
|
25
|
-
emit('update:
|
|
24
|
+
selectedItems = value
|
|
25
|
+
emit('update:selectedItems', value)
|
|
26
26
|
},
|
|
27
27
|
})
|
|
28
28
|
|
|
@@ -160,13 +160,13 @@ function sort(fieldname: string) {
|
|
|
160
160
|
<slot
|
|
161
161
|
v-if="field.id && slots[field.id]"
|
|
162
162
|
:name="field.id"
|
|
163
|
-
:row
|
|
164
|
-
:field
|
|
163
|
+
:row
|
|
164
|
+
:field
|
|
165
165
|
/>
|
|
166
166
|
<div v-else>
|
|
167
167
|
<BglField
|
|
168
168
|
class="embedded-field"
|
|
169
|
-
:field
|
|
169
|
+
:field
|
|
170
170
|
:modelValue="row"
|
|
171
171
|
label=""
|
|
172
172
|
/>
|
|
@@ -49,7 +49,7 @@ const fieldData = $computed({
|
|
|
49
49
|
},
|
|
50
50
|
get: () => {
|
|
51
51
|
if (props.field.id) return props.modelValue[props.field.id]
|
|
52
|
-
return props.field.defaultValue
|
|
52
|
+
return props.field.defaultValue ?? ''
|
|
53
53
|
},
|
|
54
54
|
})
|
|
55
55
|
|
|
@@ -62,6 +62,23 @@ const vIf = $computed(() => {
|
|
|
62
62
|
}
|
|
63
63
|
return true
|
|
64
64
|
})
|
|
65
|
+
|
|
66
|
+
const badTransform = /undefined|NaN|Invalid Date/
|
|
67
|
+
const computedFieldData = $computed(
|
|
68
|
+
() => {
|
|
69
|
+
// region AVOID_TRANSFORMING_DATA_MULTIPLE_TIMES
|
|
70
|
+
// const alreadyTransformed = props.modelValue[props.field.id ?? ''] === fieldData
|
|
71
|
+
// if (alreadyTransformed) return fieldData
|
|
72
|
+
// return props.field.transform?.(fieldData, props.modelValue)
|
|
73
|
+
// endregion AVOID_TRANSFORMING_DATA_MULTIPLE_TIMES
|
|
74
|
+
|
|
75
|
+
// region CHECK_FOR_BAD_TRANSFORMS
|
|
76
|
+
const transformedData = props.field.transform?.(fieldData, props.modelValue)
|
|
77
|
+
if (badTransform.test(transformedData)) return fieldData
|
|
78
|
+
return transformedData
|
|
79
|
+
// endregion CHECK_FOR_BAD_TRANSFORMS
|
|
80
|
+
}
|
|
81
|
+
)
|
|
65
82
|
</script>
|
|
66
83
|
|
|
67
84
|
<template>
|
|
@@ -83,7 +100,7 @@ const vIf = $computed(() => {
|
|
|
83
100
|
:helptext="field.helptext"
|
|
84
101
|
@update:modelValue="($event: any) => field?.onUpdate?.($event, formData)"
|
|
85
102
|
>
|
|
86
|
-
{{
|
|
103
|
+
{{ computedFieldData }}
|
|
87
104
|
<BglField
|
|
88
105
|
v-for="(child, ii) in field.children"
|
|
89
106
|
:key="child.id || ii"
|