@bagelink/vue 0.0.235-beta.0 → 0.0.236-beta.0

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.
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
14
14
  type: import("vue").PropType<BtnOptions[]>;
15
15
  };
16
16
  schema: {
17
- type: import("vue").PropType<BglFormSchemaT & (() => BglFormSchemaT)>;
17
+ type: import("vue").PropType<BglFormSchemaT | (() => BglFormSchemaT)>;
18
18
  required: true;
19
19
  };
20
20
  onSubmit: {
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
40
  type: import("vue").PropType<BtnOptions[]>;
41
41
  };
42
42
  schema: {
43
- type: import("vue").PropType<BglFormSchemaT & (() => BglFormSchemaT)>;
43
+ type: import("vue").PropType<BglFormSchemaT | (() => BglFormSchemaT)>;
44
44
  required: true;
45
45
  };
46
46
  onSubmit: {
@@ -1,12 +1,12 @@
1
1
  import { type BglFormSchemaT } from '..';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  data: any[];
4
- schema: BglFormSchemaT & (() => BglFormSchemaT);
4
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
5
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  select: (...args: any[]) => void;
7
7
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
8
  data: any[];
9
- schema: BglFormSchemaT & (() => BglFormSchemaT);
9
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
10
10
  }>>> & {
11
11
  onSelect?: ((...args: any[]) => any) | undefined;
12
12
  }, {}, {}>, Partial<Record<string, (_: {
package/dist/index.cjs CHANGED
@@ -14968,7 +14968,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
14968
14968
  };
14969
14969
  }
14970
14970
  });
14971
- const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b81f66ed"]]);
14971
+ const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d6a4af96"]]);
14972
14972
  const _hoisted_1$D = { class: "accordion-item" };
14973
14973
  const _hoisted_2$x = {
14974
14974
  key: 0,
@@ -15482,7 +15482,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
15482
15482
  };
15483
15483
  }
15484
15484
  });
15485
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-89607f2f"]]);
15485
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a167604a"]]);
15486
15486
  const _sfc_main$p = {};
15487
15487
  const _hoisted_1$w = { class: "flex space-between" };
15488
15488
  function _sfc_render$1(_ctx, _cache) {
package/dist/index.mjs CHANGED
@@ -14966,7 +14966,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14966
14966
  };
14967
14967
  }
14968
14968
  });
14969
- const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b81f66ed"]]);
14969
+ const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d6a4af96"]]);
14970
14970
  const _hoisted_1$D = { class: "accordion-item" };
14971
14971
  const _hoisted_2$x = {
14972
14972
  key: 0,
@@ -15480,7 +15480,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15480
15480
  };
15481
15481
  }
15482
15482
  });
15483
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-89607f2f"]]);
15483
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a167604a"]]);
15484
15484
  const _sfc_main$p = {};
15485
15485
  const _hoisted_1$w = { class: "flex space-between" };
15486
15486
  function _sfc_render$1(_ctx, _cache) {
@@ -13,7 +13,7 @@ interface ModalFormOptions extends ModalOptions {
13
13
  'onUpdate:modelValue'?: (val: any) => void;
14
14
  onSubmit: (val: any) => void;
15
15
  onDelete?: (id: string) => void;
16
- schema: BglFormSchemaT<any>;
16
+ schema: BglFormSchemaT<any> | (() => BglFormSchemaT<any>);
17
17
  }
18
18
  interface ModalApi {
19
19
  showModal: (options: ModalOptions, slots?: Record<string, any>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhE,UAAU,YAAY;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE3C,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE7B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;CAC5B;AAED,UAAU,QAAQ;IAEjB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAExE,aAAa,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,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAExE,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAEhF,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAEpC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAC;AAEnE,eAAO,MAAM,QAAQ,QAAO,QAI3B,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,MAoDzB,CAAC"}
package/dist/style.css CHANGED
@@ -521,11 +521,11 @@
521
521
  }
522
522
  }
523
523
 
524
- .modal-title[data-v-b81f66ed] {
524
+ .modal-title[data-v-d6a4af96] {
525
525
  margin-top: 0.5rem;
526
526
  }
527
527
  @media screen and (max-width: 910px) {
528
- .modal-title[data-v-b81f66ed] {
528
+ .modal-title[data-v-d6a4af96] {
529
529
  margin-top: 1rem;
530
530
  }
531
531
  }
@@ -720,37 +720,37 @@
720
720
  transform: translateY(-2.6rem);
721
721
  }
722
722
 
723
- .list-arrows[data-v-89607f2f] {
723
+ .list-arrows[data-v-a167604a] {
724
724
  opacity: 0;
725
725
  }
726
- .list-arrows .icon-font[data-v-89607f2f] {
726
+ .list-arrows .icon-font[data-v-a167604a] {
727
727
  transition: all ease-in-out 0.2s;
728
728
  }
729
- .list-arrows.sorted[data-v-89607f2f] {
729
+ .list-arrows.sorted[data-v-a167604a] {
730
730
  opacity: 1;
731
731
  }
732
- .col img[data-v-89607f2f] {
732
+ .col img[data-v-a167604a] {
733
733
  height: 35px;
734
734
  margin-top: -14px;
735
735
  margin-bottom: -14px;
736
736
  border-radius: 5px;
737
737
  }
738
- .list-arrows.sorted .desc[data-v-89607f2f] {
738
+ .list-arrows.sorted .desc[data-v-a167604a] {
739
739
  transform: rotate(180deg);
740
740
  }
741
- table[data-v-89607f2f] {
741
+ table[data-v-a167604a] {
742
742
  border-collapse: separate;
743
743
  border-spacing: 0 15px;
744
744
  border-collapse: collapse;
745
745
  }
746
- th[data-v-89607f2f] {
746
+ th[data-v-a167604a] {
747
747
  font-weight: 400;
748
748
  }
749
- .row[data-v-89607f2f] {
749
+ .row[data-v-a167604a] {
750
750
  border-bottom: 1px solid var(--border-color);
751
751
  cursor: pointer;
752
752
  }
753
- .row.first-row[data-v-89607f2f] {
753
+ .row.first-row[data-v-a167604a] {
754
754
  font-size: 0.8rem;
755
755
  color: var(--bgl-black-tint);
756
756
  position: sticky;
@@ -760,7 +760,7 @@ th[data-v-89607f2f] {
760
760
  height: 50px;
761
761
  vertical-align: bottom;
762
762
  }
763
- .row.first-row[data-v-89607f2f]::after {
763
+ .row.first-row[data-v-a167604a]::after {
764
764
  content: "";
765
765
  border-bottom: 1px solid var(--border-color);
766
766
  position: absolute;
@@ -768,11 +768,11 @@ th[data-v-89607f2f] {
768
768
  right: 0;
769
769
  bottom: -1px;
770
770
  }
771
- .first-row .col[data-v-89607f2f] {
771
+ .first-row .col[data-v-a167604a] {
772
772
  cursor: pointer;
773
773
  background: var(--bgl-white);
774
774
  }
775
- .col[data-v-89607f2f] {
775
+ .col[data-v-a167604a] {
776
776
  white-space: nowrap;
777
777
  padding: 14px;
778
778
  transition: var(--bgl-transition);
@@ -781,16 +781,16 @@ th[data-v-89607f2f] {
781
781
  padding-right: 1rem;
782
782
  align-items: center;
783
783
  }
784
- .col>div[data-v-89607f2f] {
784
+ .col>div[data-v-a167604a] {
785
785
  display: flex;
786
786
  gap: 0.5rem;
787
787
  }
788
- .max-col-width[data-v-89607f2f] {
788
+ .max-col-width[data-v-a167604a] {
789
789
  max-width: 30vw;
790
790
  overflow: hidden;
791
791
  text-overflow: ellipsis;
792
792
  }
793
- .col.check .icon-font[data-v-89607f2f] {
793
+ .col.check .icon-font[data-v-a167604a] {
794
794
  border-radius: 100%;
795
795
  background: var(--bgl-blue-20);
796
796
  color: var(--bgl-primary);
@@ -801,27 +801,27 @@ th[data-v-89607f2f] {
801
801
  justify-content: center;
802
802
  margin-top: -2px;
803
803
  }
804
- .rows[data-v-89607f2f] {
804
+ .rows[data-v-a167604a] {
805
805
  font-size: 0.8125em;
806
806
  }
807
- .table-list[data-v-89607f2f] {
807
+ .table-list[data-v-a167604a] {
808
808
  height: 100%;
809
809
  position: relative;
810
810
  padding-left: 0 !important;
811
811
  padding-right: 0 !important;
812
812
  overflow: auto;
813
813
  }
814
- .BagelTable .table-list[data-v-89607f2f] {
814
+ .BagelTable .table-list[data-v-a167604a] {
815
815
  overflow: unset;
816
816
  }
817
- .row-item[data-v-89607f2f] {
817
+ .row-item[data-v-a167604a] {
818
818
  height: 50px;
819
819
  transition: all 200ms ease;
820
820
  }
821
- .row-item[data-v-89607f2f]:hover {
821
+ .row-item[data-v-a167604a]:hover {
822
822
  background: var(--bgl-gray-light);
823
823
  }
824
- .infinite-wrapper[data-v-89607f2f] {
824
+ .infinite-wrapper[data-v-a167604a] {
825
825
  overflow-y: auto;
826
826
  width: 100%;
827
827
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.235-beta.0",
4
+ "version": "0.0.236-beta.0",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -43,7 +43,7 @@ const props = defineProps<{
43
43
  title?: string;
44
44
  dismissable?: boolean;
45
45
  actions?: BtnOptions[];
46
- schema: BglFormSchemaT & (() => BglFormSchemaT);
46
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
47
47
  // eslint-disable-next-line no-unused-vars
48
48
  onSubmit?: ((formData: any) => Promise<void>);
49
49
  // eslint-disable-next-line no-unused-vars
@@ -83,7 +83,7 @@ const loading = $ref(true);
83
83
 
84
84
  const props = defineProps<{
85
85
  data: any[];
86
- schema: BglFormSchemaT & (() => BglFormSchemaT);
86
+ schema: BglFormSchemaT | (() => BglFormSchemaT);
87
87
  }>();
88
88
 
89
89
  const computedSchema = $computed(() => {
@@ -21,7 +21,8 @@ interface ModalFormOptions extends ModalOptions {
21
21
  onSubmit: (val: any) => void;
22
22
  // eslint-disable-next-line no-unused-vars
23
23
  onDelete?: (id: string) => void;
24
- schema: BglFormSchemaT<any>;
24
+ schema: BglFormSchemaT<any> | (() => BglFormSchemaT<any>);
25
+
25
26
  }
26
27
 
27
28
  interface ModalApi {