@bagelink/vue 0.0.546 → 0.0.556

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/AccordionItem.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/TableSchema.vue.d.ts +7 -16
  7. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  8. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  9. package/dist/components/form/ItemRef.vue.d.ts +1 -0
  10. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
  13. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  14. package/dist/index.cjs +3461 -3441
  15. package/dist/index.mjs +3461 -3441
  16. package/dist/style.css +170 -83
  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/AccordionItem.vue +4 -0
  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/DateInput.vue +4 -0
  25. package/src/components/form/inputs/RichText2/Toolbar.vue +32 -32
  26. package/src/components/formkit/FileUploader.vue +1 -1
  27. package/src/styles/appearance.css +16 -16
  28. package/src/styles/layout.css +24 -2
  29. package/src/styles/mobilLayout.css +27 -4
  30. package/src/styles/text.css +66 -24
  31. package/src/types/BagelForm.ts +15 -1
  32. package/dist/components/Popover.vue.d.ts +0 -10
  33. package/dist/components/Popover.vue.d.ts.map +0 -1
  34. package/dist/types/materialIcon.d.ts +0 -2
  35. package/dist/types/materialIcon.d.ts.map +0 -1
package/dist/style.css CHANGED
@@ -540,13 +540,16 @@ a[data-v-7f505d62] {
540
540
  }
541
541
  }
542
542
 
543
- .accordion-item[data-v-b862dfb8] {
543
+ .accordion-item[data-v-f87b579d] {
544
544
  border-bottom: 1px solid var(--border-color);
545
545
  transition: all 0.2s;
546
546
  cursor: pointer;
547
547
  overflow: hidden;
548
548
  }
549
- .accordion-head[data-v-b862dfb8] {
549
+ .accordion-item button[data-v-f87b579d]{
550
+ cursor: pointer;
551
+ }
552
+ .accordion-head[data-v-f87b579d] {
550
553
  height: var(--input-height);
551
554
  background: transparent;
552
555
  display: flex;
@@ -555,19 +558,19 @@ a[data-v-7f505d62] {
555
558
  justify-content: space-between;
556
559
  border: none;
557
560
  }
558
- .accordion-icon[data-v-b862dfb8] {
561
+ .accordion-icon[data-v-f87b579d] {
559
562
  transition: all 0.2s ease;
560
563
  }
561
- .accordion-icon.open[data-v-b862dfb8] {
564
+ .accordion-icon.open[data-v-f87b579d] {
562
565
  transform: rotate(180deg);
563
566
  }
564
- .accordion-label[data-v-b862dfb8] {
567
+ .accordion-label[data-v-f87b579d] {
565
568
  font-weight: bold;
566
569
  }
567
- .accordion-head:hover .accordion-label[data-v-b862dfb8] {
570
+ .accordion-head:hover .accordion-label[data-v-f87b579d] {
568
571
  text-decoration: underline;
569
572
  }
570
- .accordion-body[data-v-b862dfb8] {
573
+ .accordion-body[data-v-f87b579d] {
571
574
  }
572
575
 
573
576
  .expand-enter-active,
@@ -637,41 +640,41 @@ a[data-v-7f505d62] {
637
640
  }
638
641
  }
639
642
 
640
- .list-arrows[data-v-8113163b] {
643
+ .list-arrows[data-v-9bf1b6df] {
641
644
  opacity: 0;
642
645
  }
643
- .list-arrows .bgl_icon-font[data-v-8113163b] {
646
+ .list-arrows .bgl_icon-font[data-v-9bf1b6df] {
644
647
  transition: all ease-in-out 0.2s;
645
648
  }
646
- .list-arrows.sorted[data-v-8113163b] {
649
+ .list-arrows.sorted[data-v-9bf1b6df] {
647
650
  opacity: 1;
648
651
  }
649
- .col img[data-v-8113163b] {
652
+ .col img[data-v-9bf1b6df] {
650
653
  height: 35px;
651
654
  margin-top: -14px;
652
655
  margin-bottom: -14px;
653
656
  border-radius: 5px;
654
657
  }
655
- .list-arrows.sorted .desc[data-v-8113163b] {
658
+ .list-arrows.sorted .desc[data-v-9bf1b6df] {
656
659
  transform: rotate(180deg);
657
660
  }
658
- table[data-v-8113163b] {
661
+ table[data-v-9bf1b6df] {
659
662
  border-collapse: separate;
660
663
  border-spacing: 0 15px;
661
664
  border-collapse: collapse;
662
665
  }
663
- th[data-v-8113163b] {
666
+ th[data-v-9bf1b6df] {
664
667
  font-weight: 400;
665
668
  }
666
- .embedded-field[data-v-8113163b] {
669
+ .embedded-field[data-v-9bf1b6df] {
667
670
  margin-bottom: -0.2rem;
668
671
  margin-top: -0.2rem;
669
672
  }
670
- .row[data-v-8113163b] {
673
+ .row[data-v-9bf1b6df] {
671
674
  border-bottom: 1px solid var(--border-color);
672
675
  cursor: pointer;
673
676
  }
674
- .row.first-row[data-v-8113163b] {
677
+ .row.first-row[data-v-9bf1b6df] {
675
678
  font-size: 0.8rem;
676
679
  color: var(--bgl-black-tint);
677
680
  position: sticky;
@@ -681,10 +684,10 @@ th[data-v-8113163b] {
681
684
  /* height: 50px; */
682
685
  vertical-align: bottom;
683
686
  }
684
- .row.first-row input[type=checkbox][data-v-8113163b]{
687
+ .row.first-row input[type=checkbox][data-v-9bf1b6df]{
685
688
  margin-bottom: 0.7rem;
686
689
  }
687
- .row.first-row[data-v-8113163b]::after {
690
+ .row.first-row[data-v-9bf1b6df]::after {
688
691
  content: '';
689
692
  border-bottom: 1px solid var(--border-color);
690
693
  position: absolute;
@@ -692,30 +695,30 @@ th[data-v-8113163b] {
692
695
  right: 0;
693
696
  bottom: -1px;
694
697
  }
695
- .first-row .col[data-v-8113163b] {
698
+ .first-row .col[data-v-9bf1b6df] {
696
699
  cursor: pointer;
697
700
  background: var(--bgl-white);
698
701
  }
699
- .col[data-v-8113163b] {
702
+ .col[data-v-9bf1b6df] {
700
703
  white-space: nowrap;
701
704
  padding: 0.75rem 1rem;
702
705
  transition: var(--bgl-transition);
703
706
  line-height: 1;
704
707
  align-items: center;
705
708
  }
706
- .col[data-v-8113163b]:has(.bagel-input) {
709
+ .col[data-v-9bf1b6df]:has(.bagel-input) {
707
710
  padding: 0rem 0.25rem;
708
711
  }
709
- .col > div[data-v-8113163b] {
712
+ .col > div[data-v-9bf1b6df] {
710
713
  display: flex;
711
714
  gap: 0.5rem;
712
715
  }
713
- .max-col-width[data-v-8113163b] {
716
+ .max-col-width[data-v-9bf1b6df] {
714
717
  max-width: 30vw;
715
718
  overflow: hidden;
716
719
  text-overflow: ellipsis;
717
720
  }
718
- .col.check .bgl_icon-font[data-v-8113163b] {
721
+ .col.check .bgl_icon-font[data-v-9bf1b6df] {
719
722
  border-radius: 100%;
720
723
  background: var(--bgl-blue-20);
721
724
  color: var(--bgl-primary);
@@ -726,48 +729,48 @@ th[data-v-8113163b] {
726
729
  justify-content: center;
727
730
  margin-top: -2px;
728
731
  }
729
- .rows[data-v-8113163b] {
732
+ .rows[data-v-9bf1b6df] {
730
733
  font-size: 0.88em;
731
734
  }
732
- .table-list[data-v-8113163b] {
735
+ .table-list[data-v-9bf1b6df] {
733
736
  height: 100%;
734
737
  position: relative;
735
738
  padding-left: 0 !important;
736
739
  padding-right: 0 !important;
737
740
  overflow: auto;
738
741
  }
739
- .BagelTable .table-list[data-v-8113163b] {
742
+ .BagelTable .table-list[data-v-9bf1b6df] {
740
743
  overflow: unset;
741
744
  }
742
- .row-item[data-v-8113163b] {
745
+ .row-item[data-v-9bf1b6df] {
743
746
  height: 50px;
744
747
  transition: all 200ms ease;
745
748
  }
746
- .row-item[data-v-8113163b]:hover {
749
+ .row-item[data-v-9bf1b6df]:hover {
747
750
  background: var(--bgl-gray-light);
748
751
  }
749
- .row-item input[type=checkbox][data-v-8113163b]{
752
+ .row-item input[type=checkbox][data-v-9bf1b6df]{
750
753
  margin-top: 0.45rem !important;
751
754
  accent-color: var(--bgl-primary);
752
755
  }
753
- .infinite-wrapper[data-v-8113163b] {
756
+ .infinite-wrapper[data-v-9bf1b6df] {
754
757
  overflow-y: auto;
755
758
  width: 100%;
756
759
  }
757
760
 
758
- .data[data-v-eb1d3474] {
761
+ .data[data-v-078d6853] {
759
762
  border: 1.1px solid var(--border-color);
760
763
  padding: 20px;
761
764
  border-radius: var(--input-border-radius);
762
765
  }
763
- .data-row[data-v-eb1d3474] {
766
+ .data-row[data-v-078d6853] {
764
767
  display: flex;
765
768
  justify-content: space-between;
766
769
  padding-bottom: 0.5rem;
767
770
  margin-bottom: 0.5rem;
768
771
  border-bottom: 1px solid var(--border-color);
769
772
  }
770
- .data-link[data-v-eb1d3474] {
773
+ .data-link[data-v-078d6853] {
771
774
  display: block;
772
775
  font-size: var(--input-font-size);
773
776
  margin-bottom: 2px;
@@ -1794,6 +1797,9 @@ svg.leaflet-image-layer.leaflet-interactive path {
1794
1797
  .dp__time_input {
1795
1798
  direction: ltr;
1796
1799
  }
1800
+ .ltrDateInput input {
1801
+ direction: ltr;
1802
+ }
1797
1803
 
1798
1804
  .bagel-input textarea[data-v-1cbaeab2] {
1799
1805
  font-family: monospace;
@@ -2618,7 +2624,7 @@ p {
2618
2624
  background: var(--input-disabled-bg);
2619
2625
  }
2620
2626
 
2621
- .toolbar[data-v-6538d377] {
2627
+ .toolbar[data-v-ace0040e] {
2622
2628
  display: flex;
2623
2629
  flex-wrap: wrap;
2624
2630
  gap: 5px;
@@ -2626,11 +2632,11 @@ p {
2626
2632
  background-color: #f0f0f0;
2627
2633
  border-bottom: 1px solid #ccc;
2628
2634
  }
2629
- button[data-v-6538d377]:hover {
2635
+ button[data-v-ace0040e]:hover {
2630
2636
  background-color: #e0e0e0;
2631
2637
  }
2632
- input[type="color"][data-v-6538d377],
2633
- input[type="number"][data-v-6538d377] {
2638
+ input[type="color"][data-v-ace0040e],
2639
+ input[type="number"][data-v-ace0040e] {
2634
2640
  width: 40px;
2635
2641
  height: 30px;
2636
2642
  padding: 0;
@@ -4340,6 +4346,24 @@ input[type="number"][data-v-6538d377] {
4340
4346
  .grid-span-6 {
4341
4347
  grid-column: span 6;
4342
4348
  }
4349
+ .grid-span-row-1 {
4350
+ grid-row: span 1;
4351
+ }
4352
+ .grid-span-row-2 {
4353
+ grid-row: span 2;
4354
+ }
4355
+ .grid-span-row-3 {
4356
+ grid-row: span 3;
4357
+ }
4358
+ .grid-span-row-4 {
4359
+ grid-row: span 4;
4360
+ }
4361
+ .grid-span-row-5 {
4362
+ grid-row: span 5;
4363
+ }
4364
+ .grid-span-row-6 {
4365
+ grid-row: span 6;
4366
+ }
4343
4367
  .overflow-hidden {
4344
4368
  overflow: hidden;
4345
4369
  }
@@ -4496,7 +4520,7 @@ input[type="number"][data-v-6538d377] {
4496
4520
  }
4497
4521
 
4498
4522
  .m_align-items-center {
4499
- align-items: center;
4523
+ align-items: center !important;
4500
4524
  }
4501
4525
 
4502
4526
  .m_align-items-end {
@@ -6148,6 +6172,29 @@ input[type="number"][data-v-6538d377] {
6148
6172
  .m_grid-span-6 {
6149
6173
  grid-column: span 6;
6150
6174
  }
6175
+ .m_grid-span-row-1 {
6176
+ grid-row: span 1;
6177
+ }
6178
+
6179
+ .m_grid-span-row-2 {
6180
+ grid-row: span 2;
6181
+ }
6182
+
6183
+ .m_grid-span-row-3 {
6184
+ grid-row: span 3;
6185
+ }
6186
+
6187
+ .m_grid-span-row-4 {
6188
+ grid-row: span 4;
6189
+ }
6190
+
6191
+ .m_grid-span-row-5 {
6192
+ grid-row: span 5;
6193
+ }
6194
+
6195
+ .m_grid-span-row-6 {
6196
+ grid-row: span 6;
6197
+ }
6151
6198
 
6152
6199
  .m_overflow-hidden {
6153
6200
  overflow: hidden;
@@ -6161,15 +6208,15 @@ input[type="number"][data-v-6538d377] {
6161
6208
  overflow: unset;
6162
6209
  }
6163
6210
 
6164
- .overflow-scroll {
6211
+ .m_overflow-scroll {
6165
6212
  overflow: scroll;
6166
6213
  }
6167
6214
 
6168
- .overflow-x-scroll {
6215
+ .m_overflow-x-scroll {
6169
6216
  overflow-x: scroll;
6170
6217
  }
6171
6218
 
6172
- .overflow-y-scroll {
6219
+ .m_overflow-y-scroll {
6173
6220
  overflow-y: scroll;
6174
6221
  }
6175
6222
 
@@ -6658,16 +6705,28 @@ select {
6658
6705
  .txt-thin {
6659
6706
  font-weight: 100;
6660
6707
  }
6661
- .bold,
6662
- .txt-bold,
6663
- .font-bold {
6664
- font-weight: 700;
6708
+ .extra-light,
6709
+ .font-extra-light,
6710
+ .txt-extra-light,
6711
+ .font-ultra-light,
6712
+ .txt-ultra-light {
6713
+ font-weight: 200;
6714
+ }
6715
+ .light,
6716
+ .txt-light,
6717
+ .font-light {
6718
+ font-weight: 300;
6665
6719
  }
6666
6720
  .regular,
6667
6721
  .txt-regular,
6668
6722
  .font-regular {
6669
6723
  font-weight: 400;
6670
6724
  }
6725
+ .medium,
6726
+ .txt-medium,
6727
+ .font-medium {
6728
+ font-weight: 500;
6729
+ }
6671
6730
  .semi,
6672
6731
  .semibold,
6673
6732
  .txt-semi,
@@ -6677,15 +6736,22 @@ select {
6677
6736
  .font-semibold {
6678
6737
  font-weight: 600;
6679
6738
  }
6680
- .light,
6681
- .txt-light,
6682
- .font-light {
6683
- font-weight: 300;
6739
+ .bold,
6740
+ .txt-bold,
6741
+ .font-bold {
6742
+ font-weight: 700;
6684
6743
  }
6685
- .medium,
6686
- .txt-medium,
6687
- .font-medium {
6688
- font-weight: 500;
6744
+ .extra-bold,
6745
+ .font-extra-bold,
6746
+ .txt-extra-bold,
6747
+ .font-ultra-bold,
6748
+ .txt-ultra-bold {
6749
+ font-weight: 800;
6750
+ }
6751
+ .black,
6752
+ .txt-black,
6753
+ .font-black {
6754
+ font-weight: 900;
6689
6755
  }
6690
6756
  .line-height-1 {
6691
6757
  line-height: 1;
@@ -6977,10 +7043,18 @@ select {
6977
7043
  font-weight: 100;
6978
7044
  }
6979
7045
 
6980
- .m_bold,
6981
- .m_txt-bold,
6982
- .m_font-bold {
6983
- font-weight: 700;
7046
+ .m_extra-light,
7047
+ .m_font-extra-light,
7048
+ .m_txt-extra-light,
7049
+ .m_font-ultra-light,
7050
+ .m_txt-ultra-light {
7051
+ font-weight: 200;
7052
+ }
7053
+
7054
+ .m_light,
7055
+ .m_txt-light,
7056
+ .m_font-light {
7057
+ font-weight: 300;
6984
7058
  }
6985
7059
 
6986
7060
  .m_regular,
@@ -6989,6 +7063,12 @@ select {
6989
7063
  font-weight: 400;
6990
7064
  }
6991
7065
 
7066
+ .m_medium,
7067
+ .m_txt-medium,
7068
+ .m_font-medium {
7069
+ font-weight: 500;
7070
+ }
7071
+
6992
7072
  .m_semi,
6993
7073
  .m_semibold,
6994
7074
  .m_txt-semi,
@@ -6999,18 +7079,25 @@ select {
6999
7079
  font-weight: 600;
7000
7080
  }
7001
7081
 
7002
- .light,
7003
- .txt-light,
7004
- .font-light {
7005
- font-weight: 300;
7082
+ .m_bold,
7083
+ .m_txt-bold,
7084
+ .m_font-bold {
7085
+ font-weight: 700;
7006
7086
  }
7007
7087
 
7008
- .medium,
7009
- .txt-medium,
7010
- .font-medium {
7011
- font-weight: 500;
7088
+ .m_extra-bold,
7089
+ .m_font-extra-bold,
7090
+ .m_txt-extra-bold,
7091
+ .m_font-ultra-bold,
7092
+ .m_txt-ultra-bold {
7093
+ font-weight: 800;
7012
7094
  }
7013
7095
 
7096
+ .m_black,
7097
+ .m_txt-black,
7098
+ .m_font-black {
7099
+ font-weight: 900;
7100
+ }
7014
7101
 
7015
7102
  .m_line-height-1 {
7016
7103
  line-height: 1;
@@ -7618,28 +7705,28 @@ select {
7618
7705
  border-inline-end: 1px solid var(--border-color)
7619
7706
  }
7620
7707
  .border-bottom-none {
7621
- border-bottom: none
7708
+ border-bottom: none !important;
7622
7709
  }
7623
7710
  .border-top-none {
7624
- border-top: none
7711
+ border-top: none !important
7625
7712
  }
7626
7713
  .border-start-none {
7627
- border-inline-start: none
7714
+ border-inline-start: none !important
7628
7715
  }
7629
7716
  .border-end-none {
7630
- border-inline-end: none
7717
+ border-inline-end: none !important
7631
7718
  }
7632
7719
  .border-inner-bottom-none>* {
7633
- border-bottom: none
7720
+ border-bottom: none !important
7634
7721
  }
7635
7722
  .border-inner-top-none>* {
7636
- border-top: none
7723
+ border-top: none !important
7637
7724
  }
7638
7725
  .border-inner-start-none>* {
7639
- border-inline-start: none
7726
+ border-inline-start: none !important
7640
7727
  }
7641
7728
  .border-inner-end-none>* {
7642
- border-inline-end: none
7729
+ border-inline-end: none !important
7643
7730
  }
7644
7731
  @media screen and (max-width: 910px) {
7645
7732
  .m_opacity-0 {
@@ -8104,35 +8191,35 @@ select {
8104
8191
  }
8105
8192
 
8106
8193
  .m_border-bottom-none {
8107
- border-bottom: none
8194
+ border-bottom: none !important
8108
8195
  }
8109
8196
 
8110
8197
  .m_border-top-none {
8111
- border-top: none
8198
+ border-top: none !important
8112
8199
  }
8113
8200
 
8114
8201
  .m_border-start-none {
8115
- border-inline-start: none
8202
+ border-inline-start: none !important
8116
8203
  }
8117
8204
 
8118
8205
  .m_border-end-none {
8119
- border-inline-end: none
8206
+ border-inline-end: none !important
8120
8207
  }
8121
8208
 
8122
8209
  .m_border-inner-bottom-none>* {
8123
- border-bottom: none
8210
+ border-bottom: none !important
8124
8211
  }
8125
8212
 
8126
8213
  .m_border-inner-top-none>* {
8127
- border-top: none
8214
+ border-top: none !important
8128
8215
  }
8129
8216
 
8130
8217
  .m_border-inner-start-none>* {
8131
- border-inline-start: none
8218
+ border-inline-start: none !important
8132
8219
  }
8133
8220
 
8134
8221
  .m_border-inner-end-none>* {
8135
- border-inline-end: none
8222
+ border-inline-end: none !important
8136
8223
  }
8137
8224
  }
8138
8225
  /* @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'?: string | ({
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,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAE/F,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,cAAc,CAAA;AAEzF,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACt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AAC,CAAA;CAC3D;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC5D,GAAG,EAAE,MAAM,GAAG,OAAO,SAAS,CAAA;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.546",
4
+ "version": "0.0.556",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -78,6 +78,10 @@ function toggle() {
78
78
  cursor: pointer;
79
79
  overflow: hidden;
80
80
  }
81
+ .accordion-item button{
82
+ cursor: pointer;
83
+
84
+ }
81
85
 
82
86
  .accordion-head {
83
87
  height: var(--input-height);
@@ -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="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
- selecteItems?: string[]
11
+ selectedItems?: string[]
12
12
  data: any[]
13
13
  schema?: BglFormSchemaT | (() => BglFormSchemaT)
14
14
  showFields?: string[]
15
15
  }>()
16
- const emit = defineEmits(['update:selecteItems', 'orderBy', 'select'])
16
+ const emit = defineEmits(['update:selectedItems', 'orderBy', 'select'])
17
17
  const slots = useSlots()
18
18
  const loading = $ref(true)
19
19
 
20
- let selecteItems = $ref<string[]>(props.selecteItems || [])
20
+ let selectedItems = $ref<string[]>(props.selectedItems || [])
21
21
  let selected = $computed({
22
- get: () => selecteItems,
22
+ get: () => selectedItems,
23
23
  set: (value: string[]) => {
24
- selecteItems = value
25
- emit('update:selecteItems', value)
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="row"
164
- :field="field"
163
+ :row
164
+ :field
165
165
  />
166
166
  <div v-else>
167
167
  <BglField
168
168
  class="embedded-field"
169
- :field="field"
169
+ :field
170
170
  :modelValue="row"
171
171
  label=""
172
172
  />