@bagelink/vue 0.0.1037 → 0.0.1043

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 (215) hide show
  1. package/dist/common-C_IH8b5S.cjs +12580 -0
  2. package/dist/common-DoeNgx31.js +12579 -0
  3. package/dist/components/AddressSaerch.vue.d.ts +7 -0
  4. package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
  5. package/dist/components/ComboBox.vue.d.ts +3 -3
  6. package/dist/components/Comments.vue.d.ts +2 -2
  7. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  8. package/dist/components/FormSchema.vue.d.ts +4 -5
  9. package/dist/components/LangText.vue.d.ts +2 -2
  10. package/dist/components/ModalBglForm.vue.d.ts +20 -21
  11. package/dist/components/PersonPreview.vue.d.ts +4 -5
  12. package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
  13. package/dist/components/Popover.vue.d.ts +10 -0
  14. package/dist/components/Popover.vue.d.ts.map +1 -0
  15. package/dist/components/RTXEditor.vue.d.ts +3 -3
  16. package/dist/components/TabbedLayout.vue.d.ts +4 -5
  17. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  18. package/dist/components/form/ItemRef.vue.d.ts +3 -5
  19. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  20. package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
  21. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  22. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  23. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  24. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  25. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  26. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  27. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  28. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  29. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  30. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  31. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  32. package/dist/components/form/inputs/RadioGroup.vue.d.ts +1 -0
  33. package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
  34. package/dist/components/form/inputs/RangeInput.vue.d.ts +5 -3
  35. package/dist/components/form/inputs/RangeInput.vue.d.ts.map +1 -1
  36. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  37. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +14 -0
  38. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +1 -0
  39. package/dist/components/form/inputs/RichText/formatting.d.ts +11 -0
  40. package/dist/components/form/inputs/RichText/formatting.d.ts.map +1 -0
  41. package/dist/components/form/inputs/RichText/richtext-types.d.ts +3 -0
  42. package/dist/components/form/inputs/RichText/richtext-types.d.ts.map +1 -0
  43. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  44. package/dist/components/form/inputs/RichText2/index.vue.d.ts +0 -1
  45. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  46. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  47. package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
  48. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  49. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  50. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +86 -0
  51. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts.map +1 -0
  52. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  53. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  54. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  55. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  56. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  57. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  58. package/dist/components/sortable/Animation.d.ts +43 -0
  59. package/dist/components/sortable/Animation.d.ts.map +1 -0
  60. package/dist/components/sortable/BrowserInfo.d.ts +7 -0
  61. package/dist/components/sortable/BrowserInfo.d.ts.map +1 -0
  62. package/dist/components/sortable/EventDispatcher.d.ts +13 -0
  63. package/dist/components/sortable/EventDispatcher.d.ts.map +1 -0
  64. package/dist/components/sortable/PluginManager.d.ts +27 -0
  65. package/dist/components/sortable/PluginManager.d.ts.map +1 -0
  66. package/dist/components/sortable/Sortable.d.ts +81 -0
  67. package/dist/components/sortable/Sortable.d.ts.map +1 -0
  68. package/dist/components/sortable/index.d.ts +5 -0
  69. package/dist/components/sortable/index.d.ts.map +1 -0
  70. package/dist/components/sortable/utils.d.ts +49 -0
  71. package/dist/components/sortable/utils.d.ts.map +1 -0
  72. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
  73. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  74. package/dist/composables/drag-n-drop/useDraggable.d.ts +2 -0
  75. package/dist/composables/drag-n-drop/useDraggable.d.ts.map +1 -0
  76. package/dist/editor-CUDRLdmS.js +4 -0
  77. package/dist/editor-Cu374vEW.cjs +4 -0
  78. package/dist/editor-a8DSbb6P.js +4 -0
  79. package/dist/editor-xBt_vIha.cjs +4 -0
  80. package/dist/heic2any-8wMqMfB_.js +933 -0
  81. package/dist/heic2any-BrqcNzfV.js +935 -0
  82. package/dist/heic2any-C8KwH72N.cjs +934 -0
  83. package/dist/heic2any-k9wDCKka.cjs +932 -0
  84. package/dist/index-DiG-xM9T.cjs +35016 -0
  85. package/dist/index-nGuSAiY2.js +35017 -0
  86. package/dist/index.cjs +91 -74
  87. package/dist/index.mjs +91 -74
  88. package/dist/plugins/drag-n-drop/draggable.d.ts +4 -0
  89. package/dist/plugins/drag-n-drop/draggable.d.ts.map +1 -0
  90. package/dist/plugins/drag-n-drop/droppable.d.ts +4 -0
  91. package/dist/plugins/drag-n-drop/droppable.d.ts.map +1 -0
  92. package/dist/plugins/drag-n-drop/index.d.ts +5 -0
  93. package/dist/plugins/drag-n-drop/index.d.ts.map +1 -0
  94. package/dist/plugins/drag-n-drop/useDraggable.d.ts +8 -0
  95. package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +1 -0
  96. package/dist/plugins/drag-n-drop/useDroppable.d.ts +7 -0
  97. package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +1 -0
  98. package/dist/style.css +262 -259
  99. package/dist/types/materialIcon.d.ts +2 -0
  100. package/dist/types/materialIcon.d.ts.map +1 -0
  101. package/dist/utils/objects.d.ts +0 -1
  102. package/package.json +1 -1
  103. package/src/components/form/inputs/RadioGroup.vue +2 -0
  104. package/src/components/form/inputs/RangeInput.vue +71 -56
  105. package/src/styles/theme.css +258 -258
  106. package/dist/components/Accordion.d.ts +0 -12
  107. package/dist/components/Accordion.d.ts.map +0 -1
  108. package/dist/components/AccordionItem.d.ts +0 -34
  109. package/dist/components/AccordionItem.d.ts.map +0 -1
  110. package/dist/components/Alert.d.ts +0 -34
  111. package/dist/components/Alert.d.ts.map +0 -1
  112. package/dist/components/Avatar.d.ts +0 -36
  113. package/dist/components/Avatar.d.ts.map +0 -1
  114. package/dist/components/Badge.d.ts +0 -22
  115. package/dist/components/Badge.d.ts.map +0 -1
  116. package/dist/components/BglVideo.d.ts +0 -20
  117. package/dist/components/BglVideo.d.ts.map +0 -1
  118. package/dist/components/Btn.d.ts +0 -99
  119. package/dist/components/Btn.d.ts.map +0 -1
  120. package/dist/components/Card.d.ts +0 -39
  121. package/dist/components/Card.d.ts.map +0 -1
  122. package/dist/components/Carousel.d.ts +0 -74
  123. package/dist/components/Carousel.d.ts.map +0 -1
  124. package/dist/components/DataPreview.d.ts +0 -42
  125. package/dist/components/DataPreview.d.ts.map +0 -1
  126. package/dist/components/Drop.vue.d.ts +0 -34
  127. package/dist/components/Drop.vue.d.ts.map +0 -1
  128. package/dist/components/FileUploader.vue.d.ts +0 -60
  129. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  130. package/dist/components/Flag.d.ts +0 -20
  131. package/dist/components/Flag.d.ts.map +0 -1
  132. package/dist/components/ListItem.d.ts +0 -34
  133. package/dist/components/ListItem.d.ts.map +0 -1
  134. package/dist/components/ListView.d.ts +0 -13
  135. package/dist/components/ListView.d.ts.map +0 -1
  136. package/dist/components/MapEmbed.d.ts +0 -3
  137. package/dist/components/MapEmbed.d.ts.map +0 -1
  138. package/dist/components/MaterialIcon.d.ts +0 -26
  139. package/dist/components/MaterialIcon.d.ts.map +0 -1
  140. package/dist/components/Modal.d.ts +0 -46
  141. package/dist/components/Modal.d.ts.map +0 -1
  142. package/dist/components/ModalConfirm.d.ts +0 -24
  143. package/dist/components/ModalConfirm.d.ts.map +0 -1
  144. package/dist/components/ModalForm.d.ts +0 -78
  145. package/dist/components/ModalForm.d.ts.map +0 -1
  146. package/dist/components/NavBar.d.ts +0 -64
  147. package/dist/components/NavBar.d.ts.map +0 -1
  148. package/dist/components/PageTitle.d.ts +0 -24
  149. package/dist/components/PageTitle.d.ts.map +0 -1
  150. package/dist/components/RouterWrapper.d.ts +0 -3
  151. package/dist/components/RouterWrapper.d.ts.map +0 -1
  152. package/dist/components/TableSchema.d.ts +0 -35
  153. package/dist/components/TableSchema.d.ts.map +0 -1
  154. package/dist/components/Title.d.ts +0 -42
  155. package/dist/components/Title.d.ts.map +0 -1
  156. package/dist/components/TopBar.d.ts +0 -12
  157. package/dist/components/TopBar.d.ts.map +0 -1
  158. package/dist/components/dashboard/Lineart.d.ts +0 -20
  159. package/dist/components/dashboard/Lineart.d.ts.map +0 -1
  160. package/dist/components/form/BglField.d.ts +0 -25
  161. package/dist/components/form/BglField.d.ts.map +0 -1
  162. package/dist/components/form/BglForm.d.ts +0 -75
  163. package/dist/components/form/BglForm.d.ts.map +0 -1
  164. package/dist/components/form/inputs/CheckInput.d.ts +0 -56
  165. package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
  166. package/dist/components/form/inputs/Checkbox.d.ts +0 -16
  167. package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
  168. package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
  169. package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
  170. package/dist/components/form/inputs/DateInput.d.ts +0 -64
  171. package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
  172. package/dist/components/form/inputs/DatePicker.d.ts +0 -33
  173. package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
  174. package/dist/components/form/inputs/FileUpload.d.ts +0 -108
  175. package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
  176. package/dist/components/form/inputs/JSONInput.d.ts +0 -53
  177. package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
  178. package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
  179. package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
  180. package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
  181. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
  182. package/dist/components/form/inputs/RichText.d.ts +0 -20
  183. package/dist/components/form/inputs/RichText.d.ts.map +0 -1
  184. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
  185. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
  186. package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
  187. package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
  188. package/dist/components/form/inputs/SelectInput.d.ts +0 -55
  189. package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
  190. package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
  191. package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
  192. package/dist/components/form/inputs/TableField.d.ts +0 -45
  193. package/dist/components/form/inputs/TableField.d.ts.map +0 -1
  194. package/dist/components/form/inputs/TelInput.d.ts +0 -241
  195. package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
  196. package/dist/components/form/inputs/TextInput.d.ts +0 -90
  197. package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
  198. package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
  199. package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
  200. package/dist/components/layout/BottomMenu.d.ts +0 -27
  201. package/dist/components/layout/BottomMenu.d.ts.map +0 -1
  202. package/dist/components/layout/Layout.d.ts +0 -58
  203. package/dist/components/layout/Layout.d.ts.map +0 -1
  204. package/dist/components/layout/SidebarMenu.d.ts +0 -38
  205. package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
  206. package/dist/components/layout/TabbedLayout.d.ts +0 -42
  207. package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
  208. package/dist/components/layout/Tabs.d.ts +0 -31
  209. package/dist/components/layout/Tabs.d.ts.map +0 -1
  210. package/dist/components/layout/TabsBody.d.ts +0 -23
  211. package/dist/components/layout/TabsBody.d.ts.map +0 -1
  212. package/dist/components/layout/TabsNav.d.ts +0 -35
  213. package/dist/components/layout/TabsNav.d.ts.map +0 -1
  214. package/dist/styles.css +0 -14073
  215. package/dist/vue.css +0 -14073
package/dist/index.cjs CHANGED
@@ -20284,7 +20284,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
20284
20284
  }
20285
20285
  });
20286
20286
  const _hoisted_1$u = ["for"];
20287
- const _hoisted_2$k = ["id", "name", "value"];
20287
+ const _hoisted_2$k = ["id", "name", "value", "required"];
20288
20288
  const _hoisted_3$g = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
20289
20289
  const _hoisted_4$b = ["src", "alt"];
20290
20290
  const _hoisted_5$b = { class: "" };
@@ -20301,7 +20301,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
20301
20301
  props: /* @__PURE__ */ vue.mergeModels({
20302
20302
  groupName: {},
20303
20303
  options: {},
20304
- deletable: { type: Boolean }
20304
+ deletable: { type: Boolean },
20305
+ required: { type: Boolean }
20305
20306
  }, {
20306
20307
  "modelValue": {},
20307
20308
  "modelModifiers": {}
@@ -20323,7 +20324,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
20323
20324
  class: "radio-input-list",
20324
20325
  type: "radio",
20325
20326
  name: _ctx.groupName,
20326
- value: opt.value
20327
+ value: opt.value,
20328
+ required: _ctx.required
20327
20329
  }, null, 8, _hoisted_2$k), [
20328
20330
  [vue.vModelRadio, selectedOption.value]
20329
20331
  ]),
@@ -20355,7 +20357,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
20355
20357
  };
20356
20358
  }
20357
20359
  });
20358
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3e9e030f"]]);
20360
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3c77be46"]]);
20359
20361
  const _hoisted_1$t = { class: "bagel-input" };
20360
20362
  const _hoisted_2$j = { class: "pb-025" };
20361
20363
  const _hoisted_3$f = { class: "flex gap-05 flex-wrap" };
@@ -20429,125 +20431,138 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
20429
20431
  }
20430
20432
  });
20431
20433
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cf892d71"]]);
20432
- const _hoisted_1$s = { class: "label" };
20434
+ const _hoisted_1$s = {
20435
+ key: 0,
20436
+ class: "label"
20437
+ };
20433
20438
  const _hoisted_2$i = ["dir"];
20434
- const _hoisted_3$e = ["id", "min", "max", "step", "required", "disabled"];
20435
- const _hoisted_4$9 = ["min", "max", "step", "required", "disabled"];
20439
+ const _hoisted_3$e = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
20440
+ const _hoisted_4$9 = ["value", "min", "max", "step", "required", "disabled"];
20436
20441
  const _hoisted_5$9 = { class: "track absolute pointer-events-none overflow-hidden round" };
20437
- const _hoisted_6$8 = { class: "txt-center txt-14 range-slider-txt flex space-between opacity-4 mx-05" };
20442
+ const _hoisted_6$8 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
20438
20443
  const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20439
20444
  __name: "RangeInput",
20440
20445
  props: {
20441
20446
  modelValue: {},
20442
- min: { default: 0 },
20443
- max: { default: 100 },
20444
- step: { default: 1 },
20447
+ min: {},
20448
+ max: {},
20449
+ step: {},
20445
20450
  required: { type: Boolean },
20446
20451
  label: {},
20447
20452
  disabled: { type: Boolean },
20448
20453
  id: {},
20449
- rtl: { type: Boolean }
20454
+ rtl: { type: Boolean },
20455
+ multiRange: { type: Boolean },
20456
+ formatValue: { type: Function }
20450
20457
  },
20451
20458
  emits: ["update:modelValue"],
20452
20459
  setup(__props, { emit: __emit }) {
20460
+ const props2 = __props;
20453
20461
  const emit2 = __emit;
20454
- const isRange = vue.computed(() => Array.isArray(__props.modelValue));
20455
- let from = vue.ref(__props.min);
20456
- let to2 = vue.ref(__props.max);
20457
- const validFrom = vue.computed(() => Math.min(Math.max(from.value, __props.min), to2.value));
20458
- const validTo = vue.computed(() => Math.max(Math.min(to2.value, __props.max), from.value));
20459
- function emitValue() {
20460
- emit2("update:modelValue", isRange.value ? [validFrom.value, validTo.value] : validFrom.value);
20461
- }
20462
- vue.watch(() => validFrom.value, (newVal) => {
20463
- if (from.value !== newVal) from.value = newVal;
20464
- });
20465
- vue.watch(() => validTo.value, (newVal) => {
20466
- if (to2.value !== newVal) to2.value = newVal;
20467
- });
20468
- const fromPercentage = vue.computed(() => (validFrom.value - __props.min) / (__props.max - __props.min) * 100);
20469
- const toPercentage = vue.computed(() => (validTo.value - __props.min) / (__props.max - __props.min) * 100);
20470
- const rangeStyle = vue.computed(() => {
20471
- const width = (validTo.value - validFrom.value) / (__props.max - __props.min) * 100;
20472
- if (isRange.value) return { left: `${fromPercentage.value}%`, width: `${width}%` };
20473
- if (__props.rtl) return { left: `${width}%`, width: `${fromPercentage.value}%` };
20474
- return { right: `${width}%`, width: `${fromPercentage.value}%` };
20475
- });
20476
- vue.watch(() => __props.modelValue, (newVal) => {
20477
- if (Array.isArray(newVal)) {
20462
+ const {
20463
+ min: min2 = 0,
20464
+ max: max2 = 100,
20465
+ step = 1,
20466
+ label,
20467
+ disabled,
20468
+ id,
20469
+ rtl,
20470
+ multiRange = false,
20471
+ formatValue = (value) => value.toString()
20472
+ } = props2;
20473
+ let from = vue.ref(Array.isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue ?? min2);
20474
+ let to2 = vue.ref(Array.isArray(props2.modelValue) ? props2.modelValue[1] : max2);
20475
+ const validFrom = vue.computed(() => Math.min(Math.max(from.value, min2), multiRange ? to2.value : max2));
20476
+ const validTo = vue.computed(() => Math.max(Math.min(to2.value, max2), from.value));
20477
+ const fromPercentage = vue.computed(() => (validFrom.value - min2) / (max2 - min2) * 100);
20478
+ const toPercentage = vue.computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20479
+ vue.watch(() => props2.modelValue, (newVal) => {
20480
+ if (Array.isArray(newVal) && multiRange) {
20478
20481
  from.value = newVal[0];
20479
20482
  to2.value = newVal[1];
20480
- } else {
20481
- from.value = newVal;
20483
+ } else if (!Array.isArray(newVal)) {
20484
+ from.value = newVal ?? min2;
20485
+ to2.value = max2;
20482
20486
  }
20483
20487
  }, { immediate: true });
20488
+ function handleInput(value, isFromInput) {
20489
+ if (isFromInput) {
20490
+ from.value = value;
20491
+ } else {
20492
+ to2.value = value;
20493
+ }
20494
+ emit2("update:modelValue", multiRange ? [validFrom.value, validTo.value] : validFrom.value);
20495
+ }
20496
+ const rangeStyle = vue.computed(() => {
20497
+ if (multiRange) {
20498
+ return {
20499
+ left: `${fromPercentage.value}%`,
20500
+ width: `${toPercentage.value - fromPercentage.value}%`
20501
+ };
20502
+ }
20503
+ return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
20504
+ });
20505
+ const displayFrom = vue.computed(() => formatValue(validFrom.value));
20506
+ const displayTo = vue.computed(() => formatValue(validTo.value));
20484
20507
  return (_ctx, _cache) => {
20485
20508
  return vue.openBlock(), vue.createElementBlock("div", null, [
20486
- vue.createElementVNode("label", _hoisted_1$s, vue.toDisplayString(_ctx.label), 1),
20509
+ vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$s, vue.toDisplayString(vue.unref(label)), 1)) : vue.createCommentVNode("", true),
20487
20510
  vue.createElementVNode("div", {
20488
20511
  class: "range-slider relative w-100",
20489
- dir: _ctx.rtl ? "rtl" : "ltr"
20512
+ dir: vue.unref(rtl) ? "rtl" : "ltr"
20490
20513
  }, [
20491
- vue.withDirectives(vue.createElementVNode("input", {
20492
- id: _ctx.id,
20493
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(from) ? from.value = $event : from = $event),
20514
+ vue.createElementVNode("input", {
20515
+ id: vue.unref(id),
20516
+ value: validFrom.value,
20494
20517
  class: "from",
20495
20518
  type: "range",
20496
- min: _ctx.min,
20497
- max: _ctx.max,
20498
- step: _ctx.step,
20519
+ min: vue.unref(min2),
20520
+ max: vue.unref(multiRange) ? validTo.value : vue.unref(max2),
20521
+ step: vue.unref(step),
20499
20522
  required: _ctx.required,
20500
- disabled: _ctx.disabled,
20501
- "aria-label": "Minimum value",
20502
- onChange: emitValue
20503
- }, null, 40, _hoisted_3$e), [
20504
- [vue.vModelText, vue.unref(from)]
20505
- ]),
20506
- isRange.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
20523
+ disabled: vue.unref(disabled),
20524
+ "aria-label": vue.unref(multiRange) ? "Minimum value" : "Value",
20525
+ onInput: _cache[0] || (_cache[0] = (e) => handleInput(+e.target.value, true))
20526
+ }, null, 40, _hoisted_3$e),
20527
+ vue.unref(multiRange) ? (vue.openBlock(), vue.createElementBlock("input", {
20507
20528
  key: 0,
20508
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(to2) ? to2.value = $event : to2 = $event),
20529
+ value: validTo.value,
20509
20530
  class: "to",
20510
20531
  type: "range",
20511
- min: _ctx.min,
20512
- max: _ctx.max,
20513
- step: _ctx.step,
20532
+ min: validFrom.value,
20533
+ max: vue.unref(max2),
20534
+ step: vue.unref(step),
20514
20535
  required: _ctx.required,
20515
- disabled: _ctx.disabled,
20536
+ disabled: vue.unref(disabled),
20516
20537
  "aria-label": "Maximum value",
20517
- onChange: emitValue
20518
- }, null, 40, _hoisted_4$9)), [
20519
- [vue.vModelText, vue.unref(to2)]
20520
- ]) : vue.createCommentVNode("", true),
20538
+ onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, false))
20539
+ }, null, 40, _hoisted_4$9)) : vue.createCommentVNode("", true),
20521
20540
  vue.createElementVNode("div", _hoisted_5$9, [
20522
20541
  vue.createElementVNode("div", {
20523
20542
  class: "active-range absolute h-100 pointer-events-none bg-primary",
20524
20543
  style: vue.normalizeStyle(rangeStyle.value)
20525
20544
  }, null, 4)
20526
20545
  ]),
20527
- vue.unref(from) !== _ctx.min ? (vue.openBlock(), vue.createElementBlock("p", {
20546
+ validFrom.value !== vue.unref(min2) ? (vue.openBlock(), vue.createElementBlock("p", {
20528
20547
  key: 1,
20529
20548
  class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
20530
20549
  style: vue.normalizeStyle({ "--progress": `${fromPercentage.value}` })
20531
- }, [
20532
- vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(from)), 1)
20533
- ], 4)) : vue.createCommentVNode("", true),
20534
- isRange.value && vue.unref(to2) !== _ctx.max ? (vue.openBlock(), vue.createElementBlock("p", {
20550
+ }, vue.toDisplayString(displayFrom.value), 5)) : vue.createCommentVNode("", true),
20551
+ vue.unref(multiRange) && validTo.value !== vue.unref(max2) ? (vue.openBlock(), vue.createElementBlock("p", {
20535
20552
  key: 2,
20536
20553
  class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
20537
20554
  style: vue.normalizeStyle({ "--progress": `${toPercentage.value}` })
20538
- }, [
20539
- vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(to2)), 1)
20540
- ], 4)) : vue.createCommentVNode("", true)
20555
+ }, vue.toDisplayString(displayTo.value), 5)) : vue.createCommentVNode("", true)
20541
20556
  ], 8, _hoisted_2$i),
20542
20557
  vue.createElementVNode("p", _hoisted_6$8, [
20543
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.min), 1),
20544
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.max), 1)
20558
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(formatValue)(vue.unref(min2))), 1),
20559
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(formatValue)(vue.unref(max2))), 1)
20545
20560
  ])
20546
20561
  ]);
20547
20562
  };
20548
20563
  }
20549
20564
  });
20550
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-67458398"]]);
20565
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-3616fbd2"]]);
20551
20566
  const tableTools = [
20552
20567
  "mergeCells",
20553
20568
  "splitCells",
@@ -33578,12 +33593,14 @@ class BagelAuth {
33578
33593
  }
33579
33594
  }
33580
33595
  class Bagel {
33581
- constructor({ host, onError }) {
33596
+ constructor({ host, fileBaseUrl, onError }) {
33582
33597
  __publicField(this, "host");
33598
+ __publicField(this, "fileBaseUrl");
33583
33599
  __publicField(this, "onError");
33584
33600
  __publicField(this, "read_table");
33585
33601
  __publicField(this, "auth", new BagelAuth(this));
33586
33602
  this.host = host == null ? void 0 : host.replace(/\/$/, "");
33603
+ this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
33587
33604
  if (!this.host) {
33588
33605
  return this;
33589
33606
  }
package/dist/index.mjs CHANGED
@@ -20282,7 +20282,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
20282
20282
  }
20283
20283
  });
20284
20284
  const _hoisted_1$u = ["for"];
20285
- const _hoisted_2$k = ["id", "name", "value"];
20285
+ const _hoisted_2$k = ["id", "name", "value", "required"];
20286
20286
  const _hoisted_3$g = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
20287
20287
  const _hoisted_4$b = ["src", "alt"];
20288
20288
  const _hoisted_5$b = { class: "" };
@@ -20299,7 +20299,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20299
20299
  props: /* @__PURE__ */ mergeModels({
20300
20300
  groupName: {},
20301
20301
  options: {},
20302
- deletable: { type: Boolean }
20302
+ deletable: { type: Boolean },
20303
+ required: { type: Boolean }
20303
20304
  }, {
20304
20305
  "modelValue": {},
20305
20306
  "modelModifiers": {}
@@ -20321,7 +20322,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20321
20322
  class: "radio-input-list",
20322
20323
  type: "radio",
20323
20324
  name: _ctx.groupName,
20324
- value: opt.value
20325
+ value: opt.value,
20326
+ required: _ctx.required
20325
20327
  }, null, 8, _hoisted_2$k), [
20326
20328
  [vModelRadio, selectedOption.value]
20327
20329
  ]),
@@ -20353,7 +20355,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20353
20355
  };
20354
20356
  }
20355
20357
  });
20356
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3e9e030f"]]);
20358
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3c77be46"]]);
20357
20359
  const _hoisted_1$t = { class: "bagel-input" };
20358
20360
  const _hoisted_2$j = { class: "pb-025" };
20359
20361
  const _hoisted_3$f = { class: "flex gap-05 flex-wrap" };
@@ -20427,125 +20429,138 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20427
20429
  }
20428
20430
  });
20429
20431
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cf892d71"]]);
20430
- const _hoisted_1$s = { class: "label" };
20432
+ const _hoisted_1$s = {
20433
+ key: 0,
20434
+ class: "label"
20435
+ };
20431
20436
  const _hoisted_2$i = ["dir"];
20432
- const _hoisted_3$e = ["id", "min", "max", "step", "required", "disabled"];
20433
- const _hoisted_4$9 = ["min", "max", "step", "required", "disabled"];
20437
+ const _hoisted_3$e = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
20438
+ const _hoisted_4$9 = ["value", "min", "max", "step", "required", "disabled"];
20434
20439
  const _hoisted_5$9 = { class: "track absolute pointer-events-none overflow-hidden round" };
20435
- const _hoisted_6$8 = { class: "txt-center txt-14 range-slider-txt flex space-between opacity-4 mx-05" };
20440
+ const _hoisted_6$8 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
20436
20441
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
20437
20442
  __name: "RangeInput",
20438
20443
  props: {
20439
20444
  modelValue: {},
20440
- min: { default: 0 },
20441
- max: { default: 100 },
20442
- step: { default: 1 },
20445
+ min: {},
20446
+ max: {},
20447
+ step: {},
20443
20448
  required: { type: Boolean },
20444
20449
  label: {},
20445
20450
  disabled: { type: Boolean },
20446
20451
  id: {},
20447
- rtl: { type: Boolean }
20452
+ rtl: { type: Boolean },
20453
+ multiRange: { type: Boolean },
20454
+ formatValue: { type: Function }
20448
20455
  },
20449
20456
  emits: ["update:modelValue"],
20450
20457
  setup(__props, { emit: __emit }) {
20458
+ const props2 = __props;
20451
20459
  const emit2 = __emit;
20452
- const isRange = computed(() => Array.isArray(__props.modelValue));
20453
- let from = ref(__props.min);
20454
- let to2 = ref(__props.max);
20455
- const validFrom = computed(() => Math.min(Math.max(from.value, __props.min), to2.value));
20456
- const validTo = computed(() => Math.max(Math.min(to2.value, __props.max), from.value));
20457
- function emitValue() {
20458
- emit2("update:modelValue", isRange.value ? [validFrom.value, validTo.value] : validFrom.value);
20459
- }
20460
- watch(() => validFrom.value, (newVal) => {
20461
- if (from.value !== newVal) from.value = newVal;
20462
- });
20463
- watch(() => validTo.value, (newVal) => {
20464
- if (to2.value !== newVal) to2.value = newVal;
20465
- });
20466
- const fromPercentage = computed(() => (validFrom.value - __props.min) / (__props.max - __props.min) * 100);
20467
- const toPercentage = computed(() => (validTo.value - __props.min) / (__props.max - __props.min) * 100);
20468
- const rangeStyle = computed(() => {
20469
- const width = (validTo.value - validFrom.value) / (__props.max - __props.min) * 100;
20470
- if (isRange.value) return { left: `${fromPercentage.value}%`, width: `${width}%` };
20471
- if (__props.rtl) return { left: `${width}%`, width: `${fromPercentage.value}%` };
20472
- return { right: `${width}%`, width: `${fromPercentage.value}%` };
20473
- });
20474
- watch(() => __props.modelValue, (newVal) => {
20475
- if (Array.isArray(newVal)) {
20460
+ const {
20461
+ min: min2 = 0,
20462
+ max: max2 = 100,
20463
+ step = 1,
20464
+ label,
20465
+ disabled,
20466
+ id,
20467
+ rtl,
20468
+ multiRange = false,
20469
+ formatValue = (value) => value.toString()
20470
+ } = props2;
20471
+ let from = ref(Array.isArray(props2.modelValue) ? props2.modelValue[0] : props2.modelValue ?? min2);
20472
+ let to2 = ref(Array.isArray(props2.modelValue) ? props2.modelValue[1] : max2);
20473
+ const validFrom = computed(() => Math.min(Math.max(from.value, min2), multiRange ? to2.value : max2));
20474
+ const validTo = computed(() => Math.max(Math.min(to2.value, max2), from.value));
20475
+ const fromPercentage = computed(() => (validFrom.value - min2) / (max2 - min2) * 100);
20476
+ const toPercentage = computed(() => (validTo.value - min2) / (max2 - min2) * 100);
20477
+ watch(() => props2.modelValue, (newVal) => {
20478
+ if (Array.isArray(newVal) && multiRange) {
20476
20479
  from.value = newVal[0];
20477
20480
  to2.value = newVal[1];
20478
- } else {
20479
- from.value = newVal;
20481
+ } else if (!Array.isArray(newVal)) {
20482
+ from.value = newVal ?? min2;
20483
+ to2.value = max2;
20480
20484
  }
20481
20485
  }, { immediate: true });
20486
+ function handleInput(value, isFromInput) {
20487
+ if (isFromInput) {
20488
+ from.value = value;
20489
+ } else {
20490
+ to2.value = value;
20491
+ }
20492
+ emit2("update:modelValue", multiRange ? [validFrom.value, validTo.value] : validFrom.value);
20493
+ }
20494
+ const rangeStyle = computed(() => {
20495
+ if (multiRange) {
20496
+ return {
20497
+ left: `${fromPercentage.value}%`,
20498
+ width: `${toPercentage.value - fromPercentage.value}%`
20499
+ };
20500
+ }
20501
+ return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
20502
+ });
20503
+ const displayFrom = computed(() => formatValue(validFrom.value));
20504
+ const displayTo = computed(() => formatValue(validTo.value));
20482
20505
  return (_ctx, _cache) => {
20483
20506
  return openBlock(), createElementBlock("div", null, [
20484
- createElementVNode("label", _hoisted_1$s, toDisplayString(_ctx.label), 1),
20507
+ unref(label) ? (openBlock(), createElementBlock("label", _hoisted_1$s, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
20485
20508
  createElementVNode("div", {
20486
20509
  class: "range-slider relative w-100",
20487
- dir: _ctx.rtl ? "rtl" : "ltr"
20510
+ dir: unref(rtl) ? "rtl" : "ltr"
20488
20511
  }, [
20489
- withDirectives(createElementVNode("input", {
20490
- id: _ctx.id,
20491
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(from) ? from.value = $event : from = $event),
20512
+ createElementVNode("input", {
20513
+ id: unref(id),
20514
+ value: validFrom.value,
20492
20515
  class: "from",
20493
20516
  type: "range",
20494
- min: _ctx.min,
20495
- max: _ctx.max,
20496
- step: _ctx.step,
20517
+ min: unref(min2),
20518
+ max: unref(multiRange) ? validTo.value : unref(max2),
20519
+ step: unref(step),
20497
20520
  required: _ctx.required,
20498
- disabled: _ctx.disabled,
20499
- "aria-label": "Minimum value",
20500
- onChange: emitValue
20501
- }, null, 40, _hoisted_3$e), [
20502
- [vModelText, unref(from)]
20503
- ]),
20504
- isRange.value ? withDirectives((openBlock(), createElementBlock("input", {
20521
+ disabled: unref(disabled),
20522
+ "aria-label": unref(multiRange) ? "Minimum value" : "Value",
20523
+ onInput: _cache[0] || (_cache[0] = (e) => handleInput(+e.target.value, true))
20524
+ }, null, 40, _hoisted_3$e),
20525
+ unref(multiRange) ? (openBlock(), createElementBlock("input", {
20505
20526
  key: 0,
20506
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(to2) ? to2.value = $event : to2 = $event),
20527
+ value: validTo.value,
20507
20528
  class: "to",
20508
20529
  type: "range",
20509
- min: _ctx.min,
20510
- max: _ctx.max,
20511
- step: _ctx.step,
20530
+ min: validFrom.value,
20531
+ max: unref(max2),
20532
+ step: unref(step),
20512
20533
  required: _ctx.required,
20513
- disabled: _ctx.disabled,
20534
+ disabled: unref(disabled),
20514
20535
  "aria-label": "Maximum value",
20515
- onChange: emitValue
20516
- }, null, 40, _hoisted_4$9)), [
20517
- [vModelText, unref(to2)]
20518
- ]) : createCommentVNode("", true),
20536
+ onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, false))
20537
+ }, null, 40, _hoisted_4$9)) : createCommentVNode("", true),
20519
20538
  createElementVNode("div", _hoisted_5$9, [
20520
20539
  createElementVNode("div", {
20521
20540
  class: "active-range absolute h-100 pointer-events-none bg-primary",
20522
20541
  style: normalizeStyle(rangeStyle.value)
20523
20542
  }, null, 4)
20524
20543
  ]),
20525
- unref(from) !== _ctx.min ? (openBlock(), createElementBlock("p", {
20544
+ validFrom.value !== unref(min2) ? (openBlock(), createElementBlock("p", {
20526
20545
  key: 1,
20527
20546
  class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
20528
20547
  style: normalizeStyle({ "--progress": `${fromPercentage.value}` })
20529
- }, [
20530
- createElementVNode("span", null, toDisplayString(unref(from)), 1)
20531
- ], 4)) : createCommentVNode("", true),
20532
- isRange.value && unref(to2) !== _ctx.max ? (openBlock(), createElementBlock("p", {
20548
+ }, toDisplayString(displayFrom.value), 5)) : createCommentVNode("", true),
20549
+ unref(multiRange) && validTo.value !== unref(max2) ? (openBlock(), createElementBlock("p", {
20533
20550
  key: 2,
20534
20551
  class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
20535
20552
  style: normalizeStyle({ "--progress": `${toPercentage.value}` })
20536
- }, [
20537
- createElementVNode("span", null, toDisplayString(unref(to2)), 1)
20538
- ], 4)) : createCommentVNode("", true)
20553
+ }, toDisplayString(displayTo.value), 5)) : createCommentVNode("", true)
20539
20554
  ], 8, _hoisted_2$i),
20540
20555
  createElementVNode("p", _hoisted_6$8, [
20541
- createElementVNode("span", null, toDisplayString(_ctx.min), 1),
20542
- createElementVNode("span", null, toDisplayString(_ctx.max), 1)
20556
+ createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(min2))), 1),
20557
+ createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(max2))), 1)
20543
20558
  ])
20544
20559
  ]);
20545
20560
  };
20546
20561
  }
20547
20562
  });
20548
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-67458398"]]);
20563
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-3616fbd2"]]);
20549
20564
  const tableTools = [
20550
20565
  "mergeCells",
20551
20566
  "splitCells",
@@ -33576,12 +33591,14 @@ class BagelAuth {
33576
33591
  }
33577
33592
  }
33578
33593
  class Bagel {
33579
- constructor({ host, onError }) {
33594
+ constructor({ host, fileBaseUrl, onError }) {
33580
33595
  __publicField(this, "host");
33596
+ __publicField(this, "fileBaseUrl");
33581
33597
  __publicField(this, "onError");
33582
33598
  __publicField(this, "read_table");
33583
33599
  __publicField(this, "auth", new BagelAuth(this));
33584
33600
  this.host = host == null ? void 0 : host.replace(/\/$/, "");
33601
+ this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
33585
33602
  if (!this.host) {
33586
33603
  return this;
33587
33604
  }
@@ -0,0 +1,4 @@
1
+ import { ObjectDirective } from 'vue';
2
+ declare const draggableDirective: ObjectDirective;
3
+ export default draggableDirective;
4
+ //# sourceMappingURL=draggable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draggable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/draggable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,KAAK,CAAA;AAQ5D,QAAA,MAAM,kBAAkB,EAAE,eAKzB,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ObjectDirective } from 'vue';
2
+ declare const droppableDirective: ObjectDirective;
3
+ export default droppableDirective;
4
+ //# sourceMappingURL=droppable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"droppable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/droppable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,KAAK,CAAA;AAQ5D,QAAA,MAAM,kBAAkB,EAAE,eAKzB,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ install(app: any): void;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/index.ts"],"names":[],"mappings":";iBAIc,GAAG;;AADjB,wBAKC"}
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ interface DraggableOptions {
3
+ handle?: string;
4
+ onGenerateDragPreview?: (args: any) => void;
5
+ }
6
+ export declare function useDraggable(el: Ref<HTMLElement | null>, data: any, options?: DraggableOptions): void;
7
+ export {};
8
+ //# sourceMappingURL=useDraggable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDraggable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/useDraggable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,UAAU,gBAAgB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;CAE3C;AAED,wBAAgB,YAAY,CAC3B,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3B,IAAI,EAAE,GAAG,EACT,OAAO,GAAE,gBAAqB,GAC5B,IAAI,CA0BN"}
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ interface DroppableOptions {
3
+ canDrop?: (args: any) => boolean;
4
+ }
5
+ export declare function useDroppable(el: Ref<HTMLElement | null>, data: any, onDrop?: (event: any) => void, options?: DroppableOptions): void;
6
+ export {};
7
+ //# sourceMappingURL=useDroppable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDroppable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/useDroppable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,UAAU,gBAAgB;IACzB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAA;CAEhC;AAED,wBAAgB,YAAY,CAC3B,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,EAC7B,OAAO,GAAE,gBAAqB,GAC5B,IAAI,CAqBN"}