@bagelink/vue 0.0.1037 → 0.0.1041
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-C_IH8b5S.cjs +12580 -0
- package/dist/common-DoeNgx31.js +12579 -0
- package/dist/components/AddressSaerch.vue.d.ts +7 -0
- package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
- package/dist/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ModalBglForm.vue.d.ts +20 -21
- package/dist/components/PersonPreview.vue.d.ts +4 -5
- package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
- package/dist/components/Popover.vue.d.ts +10 -0
- package/dist/components/Popover.vue.d.ts.map +1 -0
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/TabbedLayout.vue.d.ts +4 -5
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/form/ItemRef.vue.d.ts +3 -5
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioGroup.vue.d.ts +1 -0
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RangeInput.vue.d.ts +4 -3
- package/dist/components/form/inputs/RangeInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +14 -0
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText/formatting.d.ts +11 -0
- package/dist/components/form/inputs/RichText/formatting.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText/richtext-types.d.ts +3 -0
- package/dist/components/form/inputs/RichText/richtext-types.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +0 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +86 -0
- package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts.map +1 -0
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/sortable/Animation.d.ts +43 -0
- package/dist/components/sortable/Animation.d.ts.map +1 -0
- package/dist/components/sortable/BrowserInfo.d.ts +7 -0
- package/dist/components/sortable/BrowserInfo.d.ts.map +1 -0
- package/dist/components/sortable/EventDispatcher.d.ts +13 -0
- package/dist/components/sortable/EventDispatcher.d.ts.map +1 -0
- package/dist/components/sortable/PluginManager.d.ts +27 -0
- package/dist/components/sortable/PluginManager.d.ts.map +1 -0
- package/dist/components/sortable/Sortable.d.ts +81 -0
- package/dist/components/sortable/Sortable.d.ts.map +1 -0
- package/dist/components/sortable/index.d.ts +5 -0
- package/dist/components/sortable/index.d.ts.map +1 -0
- package/dist/components/sortable/utils.d.ts +49 -0
- package/dist/components/sortable/utils.d.ts.map +1 -0
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/composables/drag-n-drop/useDraggable.d.ts +2 -0
- package/dist/composables/drag-n-drop/useDraggable.d.ts.map +1 -0
- package/dist/editor-CUDRLdmS.js +4 -0
- package/dist/editor-Cu374vEW.cjs +4 -0
- package/dist/editor-a8DSbb6P.js +4 -0
- package/dist/editor-xBt_vIha.cjs +4 -0
- package/dist/heic2any-8wMqMfB_.js +933 -0
- package/dist/heic2any-BrqcNzfV.js +935 -0
- package/dist/heic2any-C8KwH72N.cjs +934 -0
- package/dist/heic2any-k9wDCKka.cjs +932 -0
- package/dist/index-DiG-xM9T.cjs +35016 -0
- package/dist/index-nGuSAiY2.js +35017 -0
- package/dist/index.cjs +93 -64
- package/dist/index.mjs +93 -64
- package/dist/plugins/drag-n-drop/draggable.d.ts +4 -0
- package/dist/plugins/drag-n-drop/draggable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/droppable.d.ts +4 -0
- package/dist/plugins/drag-n-drop/droppable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/index.d.ts +5 -0
- package/dist/plugins/drag-n-drop/index.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/useDraggable.d.ts +8 -0
- package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/useDroppable.d.ts +7 -0
- package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +1 -0
- package/dist/style.css +15 -12
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/form/inputs/RadioGroup.vue +2 -0
- package/src/components/form/inputs/RangeInput.vue +74 -50
- package/dist/components/Accordion.d.ts +0 -12
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/AccordionItem.d.ts +0 -34
- package/dist/components/AccordionItem.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -34
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Avatar.d.ts +0 -36
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -22
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/BglVideo.d.ts +0 -20
- package/dist/components/BglVideo.d.ts.map +0 -1
- package/dist/components/Btn.d.ts +0 -99
- package/dist/components/Btn.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -39
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Carousel.d.ts +0 -74
- package/dist/components/Carousel.d.ts.map +0 -1
- package/dist/components/DataPreview.d.ts +0 -42
- package/dist/components/DataPreview.d.ts.map +0 -1
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/Flag.d.ts +0 -20
- package/dist/components/Flag.d.ts.map +0 -1
- package/dist/components/ListItem.d.ts +0 -34
- package/dist/components/ListItem.d.ts.map +0 -1
- package/dist/components/ListView.d.ts +0 -13
- package/dist/components/ListView.d.ts.map +0 -1
- package/dist/components/MapEmbed.d.ts +0 -3
- package/dist/components/MapEmbed.d.ts.map +0 -1
- package/dist/components/MaterialIcon.d.ts +0 -26
- package/dist/components/MaterialIcon.d.ts.map +0 -1
- package/dist/components/Modal.d.ts +0 -46
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/ModalConfirm.d.ts +0 -24
- package/dist/components/ModalConfirm.d.ts.map +0 -1
- package/dist/components/ModalForm.d.ts +0 -78
- package/dist/components/ModalForm.d.ts.map +0 -1
- package/dist/components/NavBar.d.ts +0 -64
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/PageTitle.d.ts +0 -24
- package/dist/components/PageTitle.d.ts.map +0 -1
- package/dist/components/RouterWrapper.d.ts +0 -3
- package/dist/components/RouterWrapper.d.ts.map +0 -1
- package/dist/components/TableSchema.d.ts +0 -35
- package/dist/components/TableSchema.d.ts.map +0 -1
- package/dist/components/Title.d.ts +0 -42
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/TopBar.d.ts +0 -12
- package/dist/components/TopBar.d.ts.map +0 -1
- package/dist/components/dashboard/Lineart.d.ts +0 -20
- package/dist/components/dashboard/Lineart.d.ts.map +0 -1
- package/dist/components/form/BglField.d.ts +0 -25
- package/dist/components/form/BglField.d.ts.map +0 -1
- package/dist/components/form/BglForm.d.ts +0 -75
- package/dist/components/form/BglForm.d.ts.map +0 -1
- package/dist/components/form/inputs/CheckInput.d.ts +0 -56
- package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
- package/dist/components/form/inputs/Checkbox.d.ts +0 -16
- package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
- package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
- package/dist/components/form/inputs/DateInput.d.ts +0 -64
- package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
- package/dist/components/form/inputs/DatePicker.d.ts +0 -33
- package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
- package/dist/components/form/inputs/FileUpload.d.ts +0 -108
- package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
- package/dist/components/form/inputs/JSONInput.d.ts +0 -53
- package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
- package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText.d.ts +0 -20
- package/dist/components/form/inputs/RichText.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
- package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectInput.d.ts +0 -55
- package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
- package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
- package/dist/components/form/inputs/TableField.d.ts +0 -45
- package/dist/components/form/inputs/TableField.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.d.ts +0 -241
- package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
- package/dist/components/form/inputs/TextInput.d.ts +0 -90
- package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
- package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
- package/dist/components/layout/BottomMenu.d.ts +0 -27
- package/dist/components/layout/BottomMenu.d.ts.map +0 -1
- package/dist/components/layout/Layout.d.ts +0 -58
- package/dist/components/layout/Layout.d.ts.map +0 -1
- package/dist/components/layout/SidebarMenu.d.ts +0 -38
- package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
- package/dist/components/layout/TabbedLayout.d.ts +0 -42
- package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
- package/dist/components/layout/Tabs.d.ts +0 -31
- package/dist/components/layout/Tabs.d.ts.map +0 -1
- package/dist/components/layout/TabsBody.d.ts +0 -23
- package/dist/components/layout/TabsBody.d.ts.map +0 -1
- package/dist/components/layout/TabsNav.d.ts +0 -35
- package/dist/components/layout/TabsNav.d.ts.map +0 -1
- package/dist/styles.css +0 -14073
- 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-
|
|
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,9 +20431,12 @@ 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 = {
|
|
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"];
|
|
20439
|
+
const _hoisted_3$e = ["id", "min", "max", "step", "required", "disabled", "aria-label"];
|
|
20435
20440
|
const _hoisted_4$9 = ["min", "max", "step", "required", "disabled"];
|
|
20436
20441
|
const _hoisted_5$9 = { class: "track absolute pointer-events-none overflow-hidden round" };
|
|
20437
20442
|
const _hoisted_6$8 = { class: "txt-center txt-14 range-slider-txt flex space-between opacity-4 mx-05" };
|
|
@@ -20439,82 +20444,108 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
20439
20444
|
__name: "RangeInput",
|
|
20440
20445
|
props: {
|
|
20441
20446
|
modelValue: {},
|
|
20442
|
-
min: {
|
|
20443
|
-
max: {
|
|
20444
|
-
step: {
|
|
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 }
|
|
20450
20456
|
},
|
|
20451
20457
|
emits: ["update:modelValue"],
|
|
20452
20458
|
setup(__props, { emit: __emit }) {
|
|
20459
|
+
const props2 = __props;
|
|
20453
20460
|
const emit2 = __emit;
|
|
20454
|
-
const
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
const
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
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)) {
|
|
20461
|
+
const {
|
|
20462
|
+
min: min2 = 0,
|
|
20463
|
+
max: max2 = 100,
|
|
20464
|
+
step = 1,
|
|
20465
|
+
label,
|
|
20466
|
+
disabled,
|
|
20467
|
+
id,
|
|
20468
|
+
rtl,
|
|
20469
|
+
multiRange
|
|
20470
|
+
} = props2;
|
|
20471
|
+
let from = vue.ref(min2);
|
|
20472
|
+
let to2 = vue.ref(max2);
|
|
20473
|
+
let isExternalUpdate = vue.ref(true);
|
|
20474
|
+
const validFrom = vue.computed(() => Math.min(Math.max(from.value, min2), multiRange ? to2.value : max2));
|
|
20475
|
+
const validTo = vue.computed(() => Math.max(Math.min(to2.value, max2), from.value));
|
|
20476
|
+
vue.watch(() => props2.modelValue, (newVal) => {
|
|
20477
|
+
isExternalUpdate.value = true;
|
|
20478
|
+
if (multiRange && Array.isArray(newVal)) {
|
|
20478
20479
|
from.value = newVal[0];
|
|
20479
20480
|
to2.value = newVal[1];
|
|
20480
|
-
} else {
|
|
20481
|
-
from.value = newVal;
|
|
20481
|
+
} else if (!multiRange && !Array.isArray(newVal)) {
|
|
20482
|
+
from.value = newVal ?? min2;
|
|
20483
|
+
to2.value = max2;
|
|
20482
20484
|
}
|
|
20483
20485
|
}, { immediate: true });
|
|
20486
|
+
vue.watch([() => validFrom.value, () => validTo.value], () => {
|
|
20487
|
+
if (!isExternalUpdate.value) {
|
|
20488
|
+
if (multiRange) {
|
|
20489
|
+
emit2("update:modelValue", [validFrom.value, validTo.value]);
|
|
20490
|
+
} else {
|
|
20491
|
+
emit2("update:modelValue", validFrom.value);
|
|
20492
|
+
}
|
|
20493
|
+
}
|
|
20494
|
+
isExternalUpdate.value = false;
|
|
20495
|
+
});
|
|
20496
|
+
function handleInput(value, isFromInput) {
|
|
20497
|
+
isExternalUpdate.value = false;
|
|
20498
|
+
if (isFromInput) {
|
|
20499
|
+
from.value = value;
|
|
20500
|
+
} else {
|
|
20501
|
+
to2.value = value;
|
|
20502
|
+
}
|
|
20503
|
+
}
|
|
20504
|
+
const fromPercentage = vue.computed(() => (validFrom.value - min2) / (max2 - min2) * 100);
|
|
20505
|
+
const toPercentage = vue.computed(() => (validTo.value - min2) / (max2 - min2) * 100);
|
|
20506
|
+
const rangeStyle = vue.computed(() => {
|
|
20507
|
+
if (multiRange) {
|
|
20508
|
+
return {
|
|
20509
|
+
left: `${fromPercentage.value}%`,
|
|
20510
|
+
width: `${toPercentage.value - fromPercentage.value}%`
|
|
20511
|
+
};
|
|
20512
|
+
}
|
|
20513
|
+
return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
|
|
20514
|
+
});
|
|
20484
20515
|
return (_ctx, _cache) => {
|
|
20485
20516
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
20486
|
-
vue.
|
|
20517
|
+
vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$s, vue.toDisplayString(vue.unref(label)), 1)) : vue.createCommentVNode("", true),
|
|
20487
20518
|
vue.createElementVNode("div", {
|
|
20488
20519
|
class: "range-slider relative w-100",
|
|
20489
|
-
dir:
|
|
20520
|
+
dir: vue.unref(rtl) ? "rtl" : "ltr"
|
|
20490
20521
|
}, [
|
|
20491
20522
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
20492
|
-
id:
|
|
20523
|
+
id: vue.unref(id),
|
|
20493
20524
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(from) ? from.value = $event : from = $event),
|
|
20494
20525
|
class: "from",
|
|
20495
20526
|
type: "range",
|
|
20496
|
-
min:
|
|
20497
|
-
max:
|
|
20498
|
-
step:
|
|
20527
|
+
min: vue.unref(min2),
|
|
20528
|
+
max: vue.unref(multiRange) ? vue.unref(to2) : vue.unref(max2),
|
|
20529
|
+
step: vue.unref(step),
|
|
20499
20530
|
required: _ctx.required,
|
|
20500
|
-
disabled:
|
|
20501
|
-
"aria-label": "Minimum value",
|
|
20502
|
-
|
|
20531
|
+
disabled: vue.unref(disabled),
|
|
20532
|
+
"aria-label": vue.unref(multiRange) ? "Minimum value" : "Value",
|
|
20533
|
+
onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, true))
|
|
20503
20534
|
}, null, 40, _hoisted_3$e), [
|
|
20504
20535
|
[vue.vModelText, vue.unref(from)]
|
|
20505
20536
|
]),
|
|
20506
|
-
|
|
20537
|
+
vue.unref(multiRange) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
20507
20538
|
key: 0,
|
|
20508
|
-
"onUpdate:modelValue": _cache[
|
|
20539
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(to2) ? to2.value = $event : to2 = $event),
|
|
20509
20540
|
class: "to",
|
|
20510
20541
|
type: "range",
|
|
20511
|
-
min:
|
|
20512
|
-
max:
|
|
20513
|
-
step:
|
|
20542
|
+
min: vue.unref(from),
|
|
20543
|
+
max: vue.unref(max2),
|
|
20544
|
+
step: vue.unref(step),
|
|
20514
20545
|
required: _ctx.required,
|
|
20515
|
-
disabled:
|
|
20546
|
+
disabled: vue.unref(disabled),
|
|
20516
20547
|
"aria-label": "Maximum value",
|
|
20517
|
-
|
|
20548
|
+
onInput: _cache[3] || (_cache[3] = (e) => handleInput(+e.target.value, false))
|
|
20518
20549
|
}, null, 40, _hoisted_4$9)), [
|
|
20519
20550
|
[vue.vModelText, vue.unref(to2)]
|
|
20520
20551
|
]) : vue.createCommentVNode("", true),
|
|
@@ -20524,30 +20555,26 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
20524
20555
|
style: vue.normalizeStyle(rangeStyle.value)
|
|
20525
20556
|
}, null, 4)
|
|
20526
20557
|
]),
|
|
20527
|
-
vue.unref(
|
|
20558
|
+
validFrom.value !== vue.unref(min2) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
20528
20559
|
key: 1,
|
|
20529
20560
|
class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
|
|
20530
20561
|
style: vue.normalizeStyle({ "--progress": `${fromPercentage.value}` })
|
|
20531
|
-
},
|
|
20532
|
-
|
|
20533
|
-
], 4)) : vue.createCommentVNode("", true),
|
|
20534
|
-
isRange.value && vue.unref(to2) !== _ctx.max ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
20562
|
+
}, vue.toDisplayString(validFrom.value), 5)) : vue.createCommentVNode("", true),
|
|
20563
|
+
vue.unref(multiRange) && validTo.value !== vue.unref(max2) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
20535
20564
|
key: 2,
|
|
20536
20565
|
class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
|
|
20537
20566
|
style: vue.normalizeStyle({ "--progress": `${toPercentage.value}` })
|
|
20538
|
-
},
|
|
20539
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(to2)), 1)
|
|
20540
|
-
], 4)) : vue.createCommentVNode("", true)
|
|
20567
|
+
}, vue.toDisplayString(validTo.value), 5)) : vue.createCommentVNode("", true)
|
|
20541
20568
|
], 8, _hoisted_2$i),
|
|
20542
20569
|
vue.createElementVNode("p", _hoisted_6$8, [
|
|
20543
|
-
vue.createElementVNode("span", null, vue.toDisplayString(
|
|
20544
|
-
vue.createElementVNode("span", null, vue.toDisplayString(
|
|
20570
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(min2)), 1),
|
|
20571
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(max2)), 1)
|
|
20545
20572
|
])
|
|
20546
20573
|
]);
|
|
20547
20574
|
};
|
|
20548
20575
|
}
|
|
20549
20576
|
});
|
|
20550
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
20577
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-28a2da0e"]]);
|
|
20551
20578
|
const tableTools = [
|
|
20552
20579
|
"mergeCells",
|
|
20553
20580
|
"splitCells",
|
|
@@ -33578,12 +33605,14 @@ class BagelAuth {
|
|
|
33578
33605
|
}
|
|
33579
33606
|
}
|
|
33580
33607
|
class Bagel {
|
|
33581
|
-
constructor({ host, onError }) {
|
|
33608
|
+
constructor({ host, fileBaseUrl, onError }) {
|
|
33582
33609
|
__publicField(this, "host");
|
|
33610
|
+
__publicField(this, "fileBaseUrl");
|
|
33583
33611
|
__publicField(this, "onError");
|
|
33584
33612
|
__publicField(this, "read_table");
|
|
33585
33613
|
__publicField(this, "auth", new BagelAuth(this));
|
|
33586
33614
|
this.host = host == null ? void 0 : host.replace(/\/$/, "");
|
|
33615
|
+
this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
|
|
33587
33616
|
if (!this.host) {
|
|
33588
33617
|
return this;
|
|
33589
33618
|
}
|
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-
|
|
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,9 +20429,12 @@ 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 = {
|
|
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"];
|
|
20437
|
+
const _hoisted_3$e = ["id", "min", "max", "step", "required", "disabled", "aria-label"];
|
|
20433
20438
|
const _hoisted_4$9 = ["min", "max", "step", "required", "disabled"];
|
|
20434
20439
|
const _hoisted_5$9 = { class: "track absolute pointer-events-none overflow-hidden round" };
|
|
20435
20440
|
const _hoisted_6$8 = { class: "txt-center txt-14 range-slider-txt flex space-between opacity-4 mx-05" };
|
|
@@ -20437,82 +20442,108 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
20437
20442
|
__name: "RangeInput",
|
|
20438
20443
|
props: {
|
|
20439
20444
|
modelValue: {},
|
|
20440
|
-
min: {
|
|
20441
|
-
max: {
|
|
20442
|
-
step: {
|
|
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 }
|
|
20448
20454
|
},
|
|
20449
20455
|
emits: ["update:modelValue"],
|
|
20450
20456
|
setup(__props, { emit: __emit }) {
|
|
20457
|
+
const props2 = __props;
|
|
20451
20458
|
const emit2 = __emit;
|
|
20452
|
-
const
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
|
|
20466
|
-
const
|
|
20467
|
-
|
|
20468
|
-
|
|
20469
|
-
|
|
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)) {
|
|
20459
|
+
const {
|
|
20460
|
+
min: min2 = 0,
|
|
20461
|
+
max: max2 = 100,
|
|
20462
|
+
step = 1,
|
|
20463
|
+
label,
|
|
20464
|
+
disabled,
|
|
20465
|
+
id,
|
|
20466
|
+
rtl,
|
|
20467
|
+
multiRange
|
|
20468
|
+
} = props2;
|
|
20469
|
+
let from = ref(min2);
|
|
20470
|
+
let to2 = ref(max2);
|
|
20471
|
+
let isExternalUpdate = ref(true);
|
|
20472
|
+
const validFrom = computed(() => Math.min(Math.max(from.value, min2), multiRange ? to2.value : max2));
|
|
20473
|
+
const validTo = computed(() => Math.max(Math.min(to2.value, max2), from.value));
|
|
20474
|
+
watch(() => props2.modelValue, (newVal) => {
|
|
20475
|
+
isExternalUpdate.value = true;
|
|
20476
|
+
if (multiRange && Array.isArray(newVal)) {
|
|
20476
20477
|
from.value = newVal[0];
|
|
20477
20478
|
to2.value = newVal[1];
|
|
20478
|
-
} else {
|
|
20479
|
-
from.value = newVal;
|
|
20479
|
+
} else if (!multiRange && !Array.isArray(newVal)) {
|
|
20480
|
+
from.value = newVal ?? min2;
|
|
20481
|
+
to2.value = max2;
|
|
20480
20482
|
}
|
|
20481
20483
|
}, { immediate: true });
|
|
20484
|
+
watch([() => validFrom.value, () => validTo.value], () => {
|
|
20485
|
+
if (!isExternalUpdate.value) {
|
|
20486
|
+
if (multiRange) {
|
|
20487
|
+
emit2("update:modelValue", [validFrom.value, validTo.value]);
|
|
20488
|
+
} else {
|
|
20489
|
+
emit2("update:modelValue", validFrom.value);
|
|
20490
|
+
}
|
|
20491
|
+
}
|
|
20492
|
+
isExternalUpdate.value = false;
|
|
20493
|
+
});
|
|
20494
|
+
function handleInput(value, isFromInput) {
|
|
20495
|
+
isExternalUpdate.value = false;
|
|
20496
|
+
if (isFromInput) {
|
|
20497
|
+
from.value = value;
|
|
20498
|
+
} else {
|
|
20499
|
+
to2.value = value;
|
|
20500
|
+
}
|
|
20501
|
+
}
|
|
20502
|
+
const fromPercentage = computed(() => (validFrom.value - min2) / (max2 - min2) * 100);
|
|
20503
|
+
const toPercentage = computed(() => (validTo.value - min2) / (max2 - min2) * 100);
|
|
20504
|
+
const rangeStyle = computed(() => {
|
|
20505
|
+
if (multiRange) {
|
|
20506
|
+
return {
|
|
20507
|
+
left: `${fromPercentage.value}%`,
|
|
20508
|
+
width: `${toPercentage.value - fromPercentage.value}%`
|
|
20509
|
+
};
|
|
20510
|
+
}
|
|
20511
|
+
return rtl ? { left: `${100 - fromPercentage.value}%`, width: `${fromPercentage.value}%` } : { left: "0", width: `${fromPercentage.value}%` };
|
|
20512
|
+
});
|
|
20482
20513
|
return (_ctx, _cache) => {
|
|
20483
20514
|
return openBlock(), createElementBlock("div", null, [
|
|
20484
|
-
|
|
20515
|
+
unref(label) ? (openBlock(), createElementBlock("label", _hoisted_1$s, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
|
|
20485
20516
|
createElementVNode("div", {
|
|
20486
20517
|
class: "range-slider relative w-100",
|
|
20487
|
-
dir:
|
|
20518
|
+
dir: unref(rtl) ? "rtl" : "ltr"
|
|
20488
20519
|
}, [
|
|
20489
20520
|
withDirectives(createElementVNode("input", {
|
|
20490
|
-
id:
|
|
20521
|
+
id: unref(id),
|
|
20491
20522
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(from) ? from.value = $event : from = $event),
|
|
20492
20523
|
class: "from",
|
|
20493
20524
|
type: "range",
|
|
20494
|
-
min:
|
|
20495
|
-
max:
|
|
20496
|
-
step:
|
|
20525
|
+
min: unref(min2),
|
|
20526
|
+
max: unref(multiRange) ? unref(to2) : unref(max2),
|
|
20527
|
+
step: unref(step),
|
|
20497
20528
|
required: _ctx.required,
|
|
20498
|
-
disabled:
|
|
20499
|
-
"aria-label": "Minimum value",
|
|
20500
|
-
|
|
20529
|
+
disabled: unref(disabled),
|
|
20530
|
+
"aria-label": unref(multiRange) ? "Minimum value" : "Value",
|
|
20531
|
+
onInput: _cache[1] || (_cache[1] = (e) => handleInput(+e.target.value, true))
|
|
20501
20532
|
}, null, 40, _hoisted_3$e), [
|
|
20502
20533
|
[vModelText, unref(from)]
|
|
20503
20534
|
]),
|
|
20504
|
-
|
|
20535
|
+
unref(multiRange) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
20505
20536
|
key: 0,
|
|
20506
|
-
"onUpdate:modelValue": _cache[
|
|
20537
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(to2) ? to2.value = $event : to2 = $event),
|
|
20507
20538
|
class: "to",
|
|
20508
20539
|
type: "range",
|
|
20509
|
-
min:
|
|
20510
|
-
max:
|
|
20511
|
-
step:
|
|
20540
|
+
min: unref(from),
|
|
20541
|
+
max: unref(max2),
|
|
20542
|
+
step: unref(step),
|
|
20512
20543
|
required: _ctx.required,
|
|
20513
|
-
disabled:
|
|
20544
|
+
disabled: unref(disabled),
|
|
20514
20545
|
"aria-label": "Maximum value",
|
|
20515
|
-
|
|
20546
|
+
onInput: _cache[3] || (_cache[3] = (e) => handleInput(+e.target.value, false))
|
|
20516
20547
|
}, null, 40, _hoisted_4$9)), [
|
|
20517
20548
|
[vModelText, unref(to2)]
|
|
20518
20549
|
]) : createCommentVNode("", true),
|
|
@@ -20522,30 +20553,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
20522
20553
|
style: normalizeStyle(rangeStyle.value)
|
|
20523
20554
|
}, null, 4)
|
|
20524
20555
|
]),
|
|
20525
|
-
unref(
|
|
20556
|
+
validFrom.value !== unref(min2) ? (openBlock(), createElementBlock("p", {
|
|
20526
20557
|
key: 1,
|
|
20527
20558
|
class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
|
|
20528
20559
|
style: normalizeStyle({ "--progress": `${fromPercentage.value}` })
|
|
20529
|
-
},
|
|
20530
|
-
|
|
20531
|
-
], 4)) : createCommentVNode("", true),
|
|
20532
|
-
isRange.value && unref(to2) !== _ctx.max ? (openBlock(), createElementBlock("p", {
|
|
20560
|
+
}, toDisplayString(validFrom.value), 5)) : createCommentVNode("", true),
|
|
20561
|
+
unref(multiRange) && validTo.value !== unref(max2) ? (openBlock(), createElementBlock("p", {
|
|
20533
20562
|
key: 2,
|
|
20534
20563
|
class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
|
|
20535
20564
|
style: normalizeStyle({ "--progress": `${toPercentage.value}` })
|
|
20536
|
-
},
|
|
20537
|
-
createElementVNode("span", null, toDisplayString(unref(to2)), 1)
|
|
20538
|
-
], 4)) : createCommentVNode("", true)
|
|
20565
|
+
}, toDisplayString(validTo.value), 5)) : createCommentVNode("", true)
|
|
20539
20566
|
], 8, _hoisted_2$i),
|
|
20540
20567
|
createElementVNode("p", _hoisted_6$8, [
|
|
20541
|
-
createElementVNode("span", null, toDisplayString(
|
|
20542
|
-
createElementVNode("span", null, toDisplayString(
|
|
20568
|
+
createElementVNode("span", null, toDisplayString(unref(min2)), 1),
|
|
20569
|
+
createElementVNode("span", null, toDisplayString(unref(max2)), 1)
|
|
20543
20570
|
])
|
|
20544
20571
|
]);
|
|
20545
20572
|
};
|
|
20546
20573
|
}
|
|
20547
20574
|
});
|
|
20548
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
20575
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-28a2da0e"]]);
|
|
20549
20576
|
const tableTools = [
|
|
20550
20577
|
"mergeCells",
|
|
20551
20578
|
"splitCells",
|
|
@@ -33576,12 +33603,14 @@ class BagelAuth {
|
|
|
33576
33603
|
}
|
|
33577
33604
|
}
|
|
33578
33605
|
class Bagel {
|
|
33579
|
-
constructor({ host, onError }) {
|
|
33606
|
+
constructor({ host, fileBaseUrl, onError }) {
|
|
33580
33607
|
__publicField(this, "host");
|
|
33608
|
+
__publicField(this, "fileBaseUrl");
|
|
33581
33609
|
__publicField(this, "onError");
|
|
33582
33610
|
__publicField(this, "read_table");
|
|
33583
33611
|
__publicField(this, "auth", new BagelAuth(this));
|
|
33584
33612
|
this.host = host == null ? void 0 : host.replace(/\/$/, "");
|
|
33613
|
+
this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
|
|
33585
33614
|
if (!this.host) {
|
|
33586
33615
|
return this;
|
|
33587
33616
|
}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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"}
|