@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.
- 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 +5 -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 +91 -74
- package/dist/index.mjs +91 -74
- 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 +262 -259
- 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 +71 -56
- package/src/styles/theme.css +258 -258
- 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,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 = {
|
|
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: {
|
|
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 },
|
|
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
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
}
|
|
20465
|
-
vue.
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
const
|
|
20469
|
-
const
|
|
20470
|
-
const
|
|
20471
|
-
|
|
20472
|
-
if (
|
|
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.
|
|
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:
|
|
20512
|
+
dir: vue.unref(rtl) ? "rtl" : "ltr"
|
|
20490
20513
|
}, [
|
|
20491
|
-
vue.
|
|
20492
|
-
id:
|
|
20493
|
-
|
|
20514
|
+
vue.createElementVNode("input", {
|
|
20515
|
+
id: vue.unref(id),
|
|
20516
|
+
value: validFrom.value,
|
|
20494
20517
|
class: "from",
|
|
20495
20518
|
type: "range",
|
|
20496
|
-
min:
|
|
20497
|
-
max:
|
|
20498
|
-
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:
|
|
20501
|
-
"aria-label": "Minimum value",
|
|
20502
|
-
|
|
20503
|
-
}, null, 40, _hoisted_3$e),
|
|
20504
|
-
|
|
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
|
-
|
|
20529
|
+
value: validTo.value,
|
|
20509
20530
|
class: "to",
|
|
20510
20531
|
type: "range",
|
|
20511
|
-
min:
|
|
20512
|
-
max:
|
|
20513
|
-
step:
|
|
20532
|
+
min: validFrom.value,
|
|
20533
|
+
max: vue.unref(max2),
|
|
20534
|
+
step: vue.unref(step),
|
|
20514
20535
|
required: _ctx.required,
|
|
20515
|
-
disabled:
|
|
20536
|
+
disabled: vue.unref(disabled),
|
|
20516
20537
|
"aria-label": "Maximum value",
|
|
20517
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
20544
|
-
vue.createElementVNode("span", null, vue.toDisplayString(
|
|
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-
|
|
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-
|
|
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 = {
|
|
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: {
|
|
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 },
|
|
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
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
}
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
|
|
20466
|
-
const
|
|
20467
|
-
const
|
|
20468
|
-
const
|
|
20469
|
-
|
|
20470
|
-
if (
|
|
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
|
-
|
|
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:
|
|
20510
|
+
dir: unref(rtl) ? "rtl" : "ltr"
|
|
20488
20511
|
}, [
|
|
20489
|
-
|
|
20490
|
-
id:
|
|
20491
|
-
|
|
20512
|
+
createElementVNode("input", {
|
|
20513
|
+
id: unref(id),
|
|
20514
|
+
value: validFrom.value,
|
|
20492
20515
|
class: "from",
|
|
20493
20516
|
type: "range",
|
|
20494
|
-
min:
|
|
20495
|
-
max:
|
|
20496
|
-
step:
|
|
20517
|
+
min: unref(min2),
|
|
20518
|
+
max: unref(multiRange) ? validTo.value : unref(max2),
|
|
20519
|
+
step: unref(step),
|
|
20497
20520
|
required: _ctx.required,
|
|
20498
|
-
disabled:
|
|
20499
|
-
"aria-label": "Minimum value",
|
|
20500
|
-
|
|
20501
|
-
}, null, 40, _hoisted_3$e),
|
|
20502
|
-
|
|
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
|
-
|
|
20527
|
+
value: validTo.value,
|
|
20507
20528
|
class: "to",
|
|
20508
20529
|
type: "range",
|
|
20509
|
-
min:
|
|
20510
|
-
max:
|
|
20511
|
-
step:
|
|
20530
|
+
min: validFrom.value,
|
|
20531
|
+
max: unref(max2),
|
|
20532
|
+
step: unref(step),
|
|
20512
20533
|
required: _ctx.required,
|
|
20513
|
-
disabled:
|
|
20534
|
+
disabled: unref(disabled),
|
|
20514
20535
|
"aria-label": "Maximum value",
|
|
20515
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
20542
|
-
createElementVNode("span", null, toDisplayString(
|
|
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-
|
|
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 @@
|
|
|
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"}
|