@bagelink/vue 0.0.941 → 0.0.947

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAijBA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAGtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6axD,mBAAmB,CAAC;;;;;;;;;;;;;;;;;wBAvNZ,MAAM,EAAE;;cAlNnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;MAoawD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UArDuE,GAAG;UAuD9E;0BAxNS,CAAC,OAAO,SAAiC,CAAC;6BACvC,CAAC,UAAU,QAAoC,CAAC;gCAC7C,CAAC,aAAa,EAAC,MAAM,EAAE,CAAC;KAsNL;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvbvE,wBAub4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAwjBA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAGtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAobxD,mBAAmB,CAAC;;;;;;;;;;;;;;;;;wBAvNZ,MAAM,EAAE;;cAzNnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;MA2awD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UArDuE,GAAG;UAuD9E;0BAxNS,CAAC,OAAO,SAAiC,CAAC;6BACvC,CAAC,UAAU,QAAoC,CAAC;gCAC7C,CAAC,aAAa,EAAC,MAAM,EAAE,CAAC;KAsNL;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA9bvE,wBA8b4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -85,6 +85,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
85
85
  oval?: boolean;
86
86
  theme?: "dropzone" | "basic";
87
87
  accept?: string;
88
+ required?: boolean;
88
89
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
89
90
  "update:modelValue": (...args: any[]) => void;
90
91
  addFileStart: (...args: any[]) => void;
@@ -101,6 +102,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
101
102
  oval?: boolean;
102
103
  theme?: "dropzone" | "basic";
103
104
  accept?: string;
105
+ required?: boolean;
104
106
  }> & Readonly<{
105
107
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
108
  onAddFileStart?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAykBA,OAAO,EAAmC,KAAK,WAAW,EAAkB,MAAM,eAAe,CAAA;AAKjG,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;AAuJzC,iBAAS,MAAM,SAiBd;AA6BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA3KZ,MAAM;4BACJ,OAAO;uBACZ,MAAM;2BACF,OAAO;;YAilBS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;0BAplBpB,MAAM;4BACJ,OAAO;uBACZ,MAAM;2BACF,OAAO;;;YAklBe,GAAG;;;WASvB,OAAO,IAA6B;EAEjD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA/oBZ,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;YACN,UAAU,GAAG,OAAO;aACnB,MAAM;;;;;YAXP,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;YACN,UAAU,GAAG,OAAO;aACnB,MAAM;;;;kFA2oBd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AA4kBA,OAAO,EAAmC,KAAK,WAAW,EAAkB,MAAM,eAAe,CAAA;AAKjG,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;AA0JzC,iBAAS,MAAM,SAiBd;AA6BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA7KZ,MAAM;4BACJ,OAAO;uBACZ,MAAM;2BACF,OAAO;;YAulBS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;0BA1lBpB,MAAM;4BACJ,OAAO;uBACZ,MAAM;2BACF,OAAO;;;YAwlBe,GAAG;;;WASvB,OAAO,IAA6B;EAEjD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAtpBZ,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;YACN,UAAU,GAAG,OAAO;aACnB,MAAM;eACJ,OAAO;;;;;YAZV,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;YACN,UAAU,GAAG,OAAO;aACnB,MAAM;eACJ,OAAO;;;;kFAipBjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAOnE,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,KAAK,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAE5E,QAAA,IAAI,eAAe,EAAG;IACrB,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAaF,iBAAS,KAAK,SAIb;AAED,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAKD,iBAAS,IAAI,SAMZ;AAiBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;AA6DD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,OAAO,eAAe,CAAC;;;;;;;uBAnHD,MAAM;;;;;;eA1BnB,OAAO;;AAyOpB,wBASG"}
1
+ {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AAoLA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAOnE,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,KAAK,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAE5E,QAAA,IAAI,eAAe,EAAG;IACrB,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAaF,iBAAS,KAAK,SAIb;AAED,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAKD,iBAAS,IAAI,SAMZ;AAiBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;AA6DD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,OAAO,eAAe,CAAC;;;;;;;uBAnHD,MAAM;;;;;;eA1BnB,OAAO;;AAyOpB,wBASG"}
package/dist/index.cjs CHANGED
@@ -18651,39 +18651,46 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
18651
18651
  }
18652
18652
  });
18653
18653
  const _hoisted_1$v = { class: "bagel-input" };
18654
- const _hoisted_2$l = { class: "ellipsis-1 word-break-all h-20 m-0" };
18655
- const _hoisted_3$h = {
18654
+ const _hoisted_2$l = {
18656
18655
  key: 0,
18657
- class: "txt-gray txt-12"
18656
+ placeholder: "required",
18657
+ type: "text",
18658
+ required: "",
18659
+ class: "pixel"
18658
18660
  };
18661
+ const _hoisted_3$h = { class: "ellipsis-1 word-break-all h-20 m-0" };
18659
18662
  const _hoisted_4$b = {
18663
+ key: 0,
18664
+ class: "txt-gray txt-12"
18665
+ };
18666
+ const _hoisted_5$a = {
18660
18667
  key: 0,
18661
18668
  class: "bgl-multi-preview"
18662
18669
  };
18663
- const _hoisted_5$a = ["src"];
18664
- const _hoisted_6$8 = { class: "m-0" };
18665
- const _hoisted_7$5 = ["width", "src"];
18666
- const _hoisted_8$3 = { class: "no-margin multi-preview-txt" };
18667
- const _hoisted_9$2 = {
18670
+ const _hoisted_6$8 = ["src"];
18671
+ const _hoisted_7$5 = { class: "m-0" };
18672
+ const _hoisted_8$3 = ["width", "src"];
18673
+ const _hoisted_9$2 = { class: "no-margin multi-preview-txt" };
18674
+ const _hoisted_10$2 = {
18668
18675
  key: 0,
18669
18676
  class: "progress"
18670
18677
  };
18671
- const _hoisted_10$2 = {
18678
+ const _hoisted_11$1 = {
18672
18679
  key: 1,
18673
18680
  class: "bgl-single-preview"
18674
18681
  };
18675
- const _hoisted_11$1 = {
18682
+ const _hoisted_12$1 = {
18676
18683
  key: 0,
18677
18684
  class: "h-100"
18678
18685
  };
18679
- const _hoisted_12$1 = ["src"];
18680
- const _hoisted_13$1 = { class: "position-start m-05 flex opacity-7" };
18681
- const _hoisted_14$1 = {
18686
+ const _hoisted_13$1 = ["src"];
18687
+ const _hoisted_14$1 = { class: "position-start m-05 flex opacity-7" };
18688
+ const _hoisted_15$1 = {
18682
18689
  key: 0,
18683
18690
  class: "progress"
18684
18691
  };
18685
- const _hoisted_15$1 = ["src"];
18686
- const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18692
+ const _hoisted_16 = ["src"];
18693
+ const _hoisted_17 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18687
18694
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18688
18695
  __name: "FileUpload",
18689
18696
  props: {
@@ -18698,7 +18705,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18698
18705
  fill: { type: Boolean },
18699
18706
  oval: { type: Boolean },
18700
18707
  theme: {},
18701
- accept: {}
18708
+ accept: {},
18709
+ required: { type: Boolean }
18702
18710
  },
18703
18711
  emits: ["update:modelValue", "addFileStart"],
18704
18712
  setup(__props, { emit: __emit }) {
@@ -18750,13 +18758,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18750
18758
  { immediate: true }
18751
18759
  );
18752
18760
  const theme = props2.theme || "dropzone";
18753
- vue.watch(() => props2.modelValue, () => {
18754
- const newModelValue = props2.modelValue || [];
18755
- const currentValue = [file_bindkeys.value].flat();
18756
- const newValue = [newModelValue].flat();
18757
- const isSame = currentValue.every((id) => newValue.includes(id)) && newValue.every((id) => currentValue.includes(id)) && currentValue.length === newValue.length;
18761
+ function compareLists(a2, b2) {
18762
+ return [a2].flat().every((id) => [b2].flat().includes(id)) && [b2].flat().every((id) => [a2].flat().includes(id));
18763
+ }
18764
+ vue.watch(() => props2.modelValue, (newVal = []) => {
18765
+ console.log(newVal);
18766
+ const isSame = compareLists(file_bindkeys.value, newVal);
18758
18767
  if (!isSame) {
18759
- file_bindkeys.value = newModelValue;
18768
+ file_bindkeys.value = newVal;
18760
18769
  for (const fle of storageFiles.value) {
18761
18770
  const index2 = [file_bindkeys.value].flat().findIndex((key) => fle[bindKey2] === key);
18762
18771
  if (index2 === -1) storageFiles.value.splice(index2, 1);
@@ -18770,7 +18779,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18770
18779
  } else {
18771
18780
  idValue = storageFiles.value[0][bindKey2] || "";
18772
18781
  }
18773
- const isSame = [idValue].flat().every((id) => [file_bindkeys.value].flat().includes(id)) && [file_bindkeys.value].flat().every((id) => [idValue].flat().includes(id));
18782
+ const isSame = compareLists(file_bindkeys.value, idValue);
18774
18783
  if (!isSame) {
18775
18784
  file_bindkeys.value = idValue;
18776
18785
  emit2("update:modelValue", file_bindkeys.value);
@@ -18846,8 +18855,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18846
18855
  const _directive_tooltip = vue.resolveDirective("tooltip");
18847
18856
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
18848
18857
  vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
18858
+ _ctx.required ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$l)) : vue.createCommentVNode("", true),
18849
18859
  vue.unref(theme) === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$R), {
18850
- key: 0,
18860
+ key: 1,
18851
18861
  outline: "",
18852
18862
  class: "flex p-05 gap-1",
18853
18863
  onDragover: dragover,
@@ -18870,7 +18880,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18870
18880
  key: file.id,
18871
18881
  class: "txt-gray txt-12 flex"
18872
18882
  }, [
18873
- vue.createElementVNode("p", _hoisted_2$l, vue.toDisplayString(file.name), 1),
18883
+ vue.createElementVNode("p", _hoisted_3$h, vue.toDisplayString(file.name), 1),
18874
18884
  vue.createVNode(vue.unref(Btn), {
18875
18885
  thin: "",
18876
18886
  flat: "",
@@ -18880,11 +18890,11 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18880
18890
  }, null, 8, ["onClick"])
18881
18891
  ]);
18882
18892
  }), 128)),
18883
- !storageFiles.value.length && !fileQueue.value.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$h, " No file selected ")) : vue.createCommentVNode("", true)
18893
+ !storageFiles.value.length && !fileQueue.value.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$b, " No file selected ")) : vue.createCommentVNode("", true)
18884
18894
  ]),
18885
18895
  _: 1
18886
18896
  })) : (vue.openBlock(), vue.createElementBlock("div", {
18887
- key: 1,
18897
+ key: 2,
18888
18898
  class: vue.normalizeClass(["fileUploadWrap", {
18889
18899
  "fileDropZone": !storageFiles.value.length && !fileQueue.value.length,
18890
18900
  "dragover": vue.unref(isDragOver),
@@ -18900,7 +18910,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18900
18910
  files: storageFiles.value,
18901
18911
  fileQueue: fileQueue.value
18902
18912
  }, () => [
18903
- _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b, [
18913
+ _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$a, [
18904
18914
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(storageFiles.value, (file) => {
18905
18915
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
18906
18916
  key: file.id,
@@ -18911,12 +18921,12 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18911
18921
  class: "multi-preview",
18912
18922
  src: file.url,
18913
18923
  alt: ""
18914
- }, null, 8, _hoisted_5$a)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
18924
+ }, null, 8, _hoisted_6$8)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
18915
18925
  key: 1,
18916
18926
  icon: "draft",
18917
18927
  class: "multi-preview"
18918
18928
  })),
18919
- vue.createElementVNode("p", _hoisted_6$8, vue.toDisplayString(file.name), 1),
18929
+ vue.createElementVNode("p", _hoisted_7$5, vue.toDisplayString(file.name), 1),
18920
18930
  vue.createVNode(vue.unref(Btn), {
18921
18931
  thin: "",
18922
18932
  flat: "",
@@ -18940,18 +18950,18 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18940
18950
  class: "multi-preview",
18941
18951
  src: fileToUrl(fileQ.file),
18942
18952
  alt: ""
18943
- }, null, 8, _hoisted_7$5)) : vue.createCommentVNode("", true)
18953
+ }, null, 8, _hoisted_8$3)) : vue.createCommentVNode("", true)
18944
18954
  ], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
18945
18955
  key: 1,
18946
18956
  icon: "draft",
18947
18957
  class: "multi-preview"
18948
18958
  })),
18949
- vue.createElementVNode("p", _hoisted_8$3, vue.toDisplayString(fileQ.name), 1),
18959
+ vue.createElementVNode("p", _hoisted_9$2, vue.toDisplayString(fileQ.name), 1),
18950
18960
  vue.createElementVNode("div", {
18951
18961
  class: vue.normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
18952
18962
  style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
18953
18963
  }, [
18954
- fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$2, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
18964
+ fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$2, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
18955
18965
  vue.createVNode(vue.unref(_sfc_main$c), {
18956
18966
  class: "success",
18957
18967
  icon: "check"
@@ -18960,21 +18970,21 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18960
18970
  ]);
18961
18971
  }), 128))
18962
18972
  ])) : vue.createCommentVNode("", true),
18963
- !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$2, [
18973
+ !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
18964
18974
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(storageFiles.value, (file) => {
18965
18975
  return vue.openBlock(), vue.createElementBlock("div", {
18966
18976
  key: file.id,
18967
18977
  class: vue.normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
18968
18978
  }, [
18969
- isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
18979
+ isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
18970
18980
  vue.withDirectives(vue.createElementVNode("img", {
18971
18981
  class: "single-preview",
18972
18982
  src: file.url,
18973
18983
  alt: ""
18974
- }, null, 8, _hoisted_12$1), [
18984
+ }, null, 8, _hoisted_13$1), [
18975
18985
  [_directive_lightbox, { src: file.url, download: true }]
18976
18986
  ]),
18977
- vue.createElementVNode("div", _hoisted_13$1, [
18987
+ vue.createElementVNode("div", _hoisted_14$1, [
18978
18988
  vue.withDirectives(vue.createVNode(vue.unref(Btn), {
18979
18989
  color: "gray",
18980
18990
  thin: "",
@@ -19024,7 +19034,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
19024
19034
  class: vue.normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
19025
19035
  style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
19026
19036
  }, [
19027
- fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$1, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
19037
+ fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$1, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
19028
19038
  vue.createVNode(vue.unref(_sfc_main$c), {
19029
19039
  class: "success",
19030
19040
  icon: "check"
@@ -19035,7 +19045,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
19035
19045
  class: "single-preview",
19036
19046
  src: fileToUrl(fileQ.file),
19037
19047
  alt: ""
19038
- }, null, 8, _hoisted_15$1)) : vue.createCommentVNode("", true)
19048
+ }, null, 8, _hoisted_16)) : vue.createCommentVNode("", true)
19039
19049
  ], 2);
19040
19050
  }), 128))
19041
19051
  ])) : vue.createCommentVNode("", true)
@@ -19046,7 +19056,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
19046
19056
  fileQueue: fileQueue.value,
19047
19057
  browse
19048
19058
  }, () => [
19049
- vue.createElementVNode("p", _hoisted_16, [
19059
+ vue.createElementVNode("p", _hoisted_17, [
19050
19060
  vue.createVNode(vue.unref(_sfc_main$c), { icon: "upload_2" }),
19051
19061
  _cache[2] || (_cache[2] = vue.createTextVNode(" Drop files here or click to upload "))
19052
19062
  ])
@@ -19056,7 +19066,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
19056
19066
  };
19057
19067
  }
19058
19068
  });
19059
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6ce2a678"]]);
19069
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-d2c7e04e"]]);
19060
19070
  const _hoisted_1$u = ["title"];
19061
19071
  const _hoisted_2$k = { key: 0 };
19062
19072
  const _hoisted_3$g = ["value", "placeholder"];
@@ -54565,7 +54575,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
54565
54575
  emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
54566
54576
  setup(__props, { emit: __emit }) {
54567
54577
  vue.useCssVars((_ctx) => ({
54568
- "2c584721": vue.unref(computedItemHeight)
54578
+ "44de596f": vue.unref(computedItemHeight)
54569
54579
  }));
54570
54580
  const emit2 = __emit;
54571
54581
  const slots = vue.useSlots();
@@ -54691,11 +54701,18 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
54691
54701
  if (entry.isIntersecting && computedData.value.length) {
54692
54702
  void ((_a2 = __props.onLastItemVisible) == null ? void 0 : _a2.call(__props));
54693
54703
  }
54694
- });
54704
+ }, { threshold: 0.5 });
54695
54705
  }
54696
54706
  vue.onMounted(() => {
54697
54707
  void registerLastItemObserver();
54698
54708
  });
54709
+ vue.watch(
54710
+ () => loading.value,
54711
+ (newLoadingVal, oldLoadingVal) => {
54712
+ if (newLoadingVal === oldLoadingVal) return;
54713
+ if (!newLoadingVal) registerLastItemObserver();
54714
+ }
54715
+ );
54699
54716
  return (_ctx, _cache) => {
54700
54717
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
54701
54718
  class: { "loading-table": loading.value }
@@ -54789,7 +54806,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
54789
54806
  };
54790
54807
  }
54791
54808
  });
54792
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bcd5ff3e"]]);
54809
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3dbd30bd"]]);
54793
54810
  const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
54794
54811
  __name: "Title",
54795
54812
  props: {
package/dist/index.mjs CHANGED
@@ -18649,39 +18649,46 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18649
18649
  }
18650
18650
  });
18651
18651
  const _hoisted_1$v = { class: "bagel-input" };
18652
- const _hoisted_2$l = { class: "ellipsis-1 word-break-all h-20 m-0" };
18653
- const _hoisted_3$h = {
18652
+ const _hoisted_2$l = {
18654
18653
  key: 0,
18655
- class: "txt-gray txt-12"
18654
+ placeholder: "required",
18655
+ type: "text",
18656
+ required: "",
18657
+ class: "pixel"
18656
18658
  };
18659
+ const _hoisted_3$h = { class: "ellipsis-1 word-break-all h-20 m-0" };
18657
18660
  const _hoisted_4$b = {
18661
+ key: 0,
18662
+ class: "txt-gray txt-12"
18663
+ };
18664
+ const _hoisted_5$a = {
18658
18665
  key: 0,
18659
18666
  class: "bgl-multi-preview"
18660
18667
  };
18661
- const _hoisted_5$a = ["src"];
18662
- const _hoisted_6$8 = { class: "m-0" };
18663
- const _hoisted_7$5 = ["width", "src"];
18664
- const _hoisted_8$3 = { class: "no-margin multi-preview-txt" };
18665
- const _hoisted_9$2 = {
18668
+ const _hoisted_6$8 = ["src"];
18669
+ const _hoisted_7$5 = { class: "m-0" };
18670
+ const _hoisted_8$3 = ["width", "src"];
18671
+ const _hoisted_9$2 = { class: "no-margin multi-preview-txt" };
18672
+ const _hoisted_10$2 = {
18666
18673
  key: 0,
18667
18674
  class: "progress"
18668
18675
  };
18669
- const _hoisted_10$2 = {
18676
+ const _hoisted_11$1 = {
18670
18677
  key: 1,
18671
18678
  class: "bgl-single-preview"
18672
18679
  };
18673
- const _hoisted_11$1 = {
18680
+ const _hoisted_12$1 = {
18674
18681
  key: 0,
18675
18682
  class: "h-100"
18676
18683
  };
18677
- const _hoisted_12$1 = ["src"];
18678
- const _hoisted_13$1 = { class: "position-start m-05 flex opacity-7" };
18679
- const _hoisted_14$1 = {
18684
+ const _hoisted_13$1 = ["src"];
18685
+ const _hoisted_14$1 = { class: "position-start m-05 flex opacity-7" };
18686
+ const _hoisted_15$1 = {
18680
18687
  key: 0,
18681
18688
  class: "progress"
18682
18689
  };
18683
- const _hoisted_15$1 = ["src"];
18684
- const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18690
+ const _hoisted_16 = ["src"];
18691
+ const _hoisted_17 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18685
18692
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
18686
18693
  __name: "FileUpload",
18687
18694
  props: {
@@ -18696,7 +18703,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18696
18703
  fill: { type: Boolean },
18697
18704
  oval: { type: Boolean },
18698
18705
  theme: {},
18699
- accept: {}
18706
+ accept: {},
18707
+ required: { type: Boolean }
18700
18708
  },
18701
18709
  emits: ["update:modelValue", "addFileStart"],
18702
18710
  setup(__props, { emit: __emit }) {
@@ -18748,13 +18756,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18748
18756
  { immediate: true }
18749
18757
  );
18750
18758
  const theme = props2.theme || "dropzone";
18751
- watch(() => props2.modelValue, () => {
18752
- const newModelValue = props2.modelValue || [];
18753
- const currentValue = [file_bindkeys.value].flat();
18754
- const newValue = [newModelValue].flat();
18755
- const isSame = currentValue.every((id) => newValue.includes(id)) && newValue.every((id) => currentValue.includes(id)) && currentValue.length === newValue.length;
18759
+ function compareLists(a2, b2) {
18760
+ return [a2].flat().every((id) => [b2].flat().includes(id)) && [b2].flat().every((id) => [a2].flat().includes(id));
18761
+ }
18762
+ watch(() => props2.modelValue, (newVal = []) => {
18763
+ console.log(newVal);
18764
+ const isSame = compareLists(file_bindkeys.value, newVal);
18756
18765
  if (!isSame) {
18757
- file_bindkeys.value = newModelValue;
18766
+ file_bindkeys.value = newVal;
18758
18767
  for (const fle of storageFiles.value) {
18759
18768
  const index2 = [file_bindkeys.value].flat().findIndex((key) => fle[bindKey2] === key);
18760
18769
  if (index2 === -1) storageFiles.value.splice(index2, 1);
@@ -18768,7 +18777,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18768
18777
  } else {
18769
18778
  idValue = storageFiles.value[0][bindKey2] || "";
18770
18779
  }
18771
- const isSame = [idValue].flat().every((id) => [file_bindkeys.value].flat().includes(id)) && [file_bindkeys.value].flat().every((id) => [idValue].flat().includes(id));
18780
+ const isSame = compareLists(file_bindkeys.value, idValue);
18772
18781
  if (!isSame) {
18773
18782
  file_bindkeys.value = idValue;
18774
18783
  emit2("update:modelValue", file_bindkeys.value);
@@ -18844,8 +18853,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18844
18853
  const _directive_tooltip = resolveDirective("tooltip");
18845
18854
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
18846
18855
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
18856
+ _ctx.required ? (openBlock(), createElementBlock("input", _hoisted_2$l)) : createCommentVNode("", true),
18847
18857
  unref(theme) === "basic" ? (openBlock(), createBlock(unref(_sfc_main$R), {
18848
- key: 0,
18858
+ key: 1,
18849
18859
  outline: "",
18850
18860
  class: "flex p-05 gap-1",
18851
18861
  onDragover: dragover,
@@ -18868,7 +18878,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18868
18878
  key: file.id,
18869
18879
  class: "txt-gray txt-12 flex"
18870
18880
  }, [
18871
- createElementVNode("p", _hoisted_2$l, toDisplayString(file.name), 1),
18881
+ createElementVNode("p", _hoisted_3$h, toDisplayString(file.name), 1),
18872
18882
  createVNode(unref(Btn), {
18873
18883
  thin: "",
18874
18884
  flat: "",
@@ -18878,11 +18888,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18878
18888
  }, null, 8, ["onClick"])
18879
18889
  ]);
18880
18890
  }), 128)),
18881
- !storageFiles.value.length && !fileQueue.value.length ? (openBlock(), createElementBlock("span", _hoisted_3$h, " No file selected ")) : createCommentVNode("", true)
18891
+ !storageFiles.value.length && !fileQueue.value.length ? (openBlock(), createElementBlock("span", _hoisted_4$b, " No file selected ")) : createCommentVNode("", true)
18882
18892
  ]),
18883
18893
  _: 1
18884
18894
  })) : (openBlock(), createElementBlock("div", {
18885
- key: 1,
18895
+ key: 2,
18886
18896
  class: normalizeClass(["fileUploadWrap", {
18887
18897
  "fileDropZone": !storageFiles.value.length && !fileQueue.value.length,
18888
18898
  "dragover": unref(isDragOver),
@@ -18898,7 +18908,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18898
18908
  files: storageFiles.value,
18899
18909
  fileQueue: fileQueue.value
18900
18910
  }, () => [
18901
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
18911
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
18902
18912
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
18903
18913
  return withDirectives((openBlock(), createElementBlock("div", {
18904
18914
  key: file.id,
@@ -18909,12 +18919,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18909
18919
  class: "multi-preview",
18910
18920
  src: file.url,
18911
18921
  alt: ""
18912
- }, null, 8, _hoisted_5$a)) : (openBlock(), createBlock(unref(_sfc_main$c), {
18922
+ }, null, 8, _hoisted_6$8)) : (openBlock(), createBlock(unref(_sfc_main$c), {
18913
18923
  key: 1,
18914
18924
  icon: "draft",
18915
18925
  class: "multi-preview"
18916
18926
  })),
18917
- createElementVNode("p", _hoisted_6$8, toDisplayString(file.name), 1),
18927
+ createElementVNode("p", _hoisted_7$5, toDisplayString(file.name), 1),
18918
18928
  createVNode(unref(Btn), {
18919
18929
  thin: "",
18920
18930
  flat: "",
@@ -18938,18 +18948,18 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18938
18948
  class: "multi-preview",
18939
18949
  src: fileToUrl(fileQ.file),
18940
18950
  alt: ""
18941
- }, null, 8, _hoisted_7$5)) : createCommentVNode("", true)
18951
+ }, null, 8, _hoisted_8$3)) : createCommentVNode("", true)
18942
18952
  ], 64)) : (openBlock(), createBlock(unref(_sfc_main$c), {
18943
18953
  key: 1,
18944
18954
  icon: "draft",
18945
18955
  class: "multi-preview"
18946
18956
  })),
18947
- createElementVNode("p", _hoisted_8$3, toDisplayString(fileQ.name), 1),
18957
+ createElementVNode("p", _hoisted_9$2, toDisplayString(fileQ.name), 1),
18948
18958
  createElementVNode("div", {
18949
18959
  class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
18950
18960
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
18951
18961
  }, [
18952
- fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
18962
+ fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_10$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
18953
18963
  createVNode(unref(_sfc_main$c), {
18954
18964
  class: "success",
18955
18965
  icon: "check"
@@ -18958,21 +18968,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18958
18968
  ]);
18959
18969
  }), 128))
18960
18970
  ])) : createCommentVNode("", true),
18961
- !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
18971
+ !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
18962
18972
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
18963
18973
  return openBlock(), createElementBlock("div", {
18964
18974
  key: file.id,
18965
18975
  class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
18966
18976
  }, [
18967
- isImage(file.extension || file.url) ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
18977
+ isImage(file.extension || file.url) ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
18968
18978
  withDirectives(createElementVNode("img", {
18969
18979
  class: "single-preview",
18970
18980
  src: file.url,
18971
18981
  alt: ""
18972
- }, null, 8, _hoisted_12$1), [
18982
+ }, null, 8, _hoisted_13$1), [
18973
18983
  [_directive_lightbox, { src: file.url, download: true }]
18974
18984
  ]),
18975
- createElementVNode("div", _hoisted_13$1, [
18985
+ createElementVNode("div", _hoisted_14$1, [
18976
18986
  withDirectives(createVNode(unref(Btn), {
18977
18987
  color: "gray",
18978
18988
  thin: "",
@@ -19022,7 +19032,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19022
19032
  class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
19023
19033
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
19024
19034
  }, [
19025
- fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_14$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
19035
+ fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
19026
19036
  createVNode(unref(_sfc_main$c), {
19027
19037
  class: "success",
19028
19038
  icon: "check"
@@ -19033,7 +19043,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19033
19043
  class: "single-preview",
19034
19044
  src: fileToUrl(fileQ.file),
19035
19045
  alt: ""
19036
- }, null, 8, _hoisted_15$1)) : createCommentVNode("", true)
19046
+ }, null, 8, _hoisted_16)) : createCommentVNode("", true)
19037
19047
  ], 2);
19038
19048
  }), 128))
19039
19049
  ])) : createCommentVNode("", true)
@@ -19044,7 +19054,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19044
19054
  fileQueue: fileQueue.value,
19045
19055
  browse
19046
19056
  }, () => [
19047
- createElementVNode("p", _hoisted_16, [
19057
+ createElementVNode("p", _hoisted_17, [
19048
19058
  createVNode(unref(_sfc_main$c), { icon: "upload_2" }),
19049
19059
  _cache[2] || (_cache[2] = createTextVNode(" Drop files here or click to upload "))
19050
19060
  ])
@@ -19054,7 +19064,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19054
19064
  };
19055
19065
  }
19056
19066
  });
19057
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6ce2a678"]]);
19067
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-d2c7e04e"]]);
19058
19068
  const _hoisted_1$u = ["title"];
19059
19069
  const _hoisted_2$k = { key: 0 };
19060
19070
  const _hoisted_3$g = ["value", "placeholder"];
@@ -54563,7 +54573,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54563
54573
  emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
54564
54574
  setup(__props, { emit: __emit }) {
54565
54575
  useCssVars((_ctx) => ({
54566
- "2c584721": unref(computedItemHeight)
54576
+ "44de596f": unref(computedItemHeight)
54567
54577
  }));
54568
54578
  const emit2 = __emit;
54569
54579
  const slots = useSlots();
@@ -54689,11 +54699,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54689
54699
  if (entry.isIntersecting && computedData.value.length) {
54690
54700
  void ((_a2 = __props.onLastItemVisible) == null ? void 0 : _a2.call(__props));
54691
54701
  }
54692
- });
54702
+ }, { threshold: 0.5 });
54693
54703
  }
54694
54704
  onMounted(() => {
54695
54705
  void registerLastItemObserver();
54696
54706
  });
54707
+ watch(
54708
+ () => loading.value,
54709
+ (newLoadingVal, oldLoadingVal) => {
54710
+ if (newLoadingVal === oldLoadingVal) return;
54711
+ if (!newLoadingVal) registerLastItemObserver();
54712
+ }
54713
+ );
54697
54714
  return (_ctx, _cache) => {
54698
54715
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
54699
54716
  class: { "loading-table": loading.value }
@@ -54787,7 +54804,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54787
54804
  };
54788
54805
  }
54789
54806
  });
54790
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bcd5ff3e"]]);
54807
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3dbd30bd"]]);
54791
54808
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
54792
54809
  __name: "Title",
54793
54810
  props: {