@alexochihua/exos-library-components 1.0.19 → 1.0.20
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.
|
@@ -3721,16 +3721,16 @@ if (typeof (EDetailvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
3721
3721
|
const EDetail_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EDetailvue_type_script_lang_js, [['render',EDetailvue_type_template_id_de02ad6a_render]])
|
|
3722
3722
|
|
|
3723
3723
|
/* harmony default export */ var EDetail = (EDetail_exports_);
|
|
3724
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EDropdown.vue?vue&type=template&id=
|
|
3724
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EDropdown.vue?vue&type=template&id=7a65c80f&scoped=true
|
|
3725
3725
|
|
|
3726
|
-
const
|
|
3727
|
-
const
|
|
3728
|
-
const
|
|
3726
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-7a65c80f"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
3727
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_1 = ["disabled"];
|
|
3728
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_2 = {
|
|
3729
3729
|
key: 1,
|
|
3730
3730
|
class: "xs:max-xl:exos-w-12 xs:max-xl:exos-h-12 xl:exos-w-[3.3rem] xl:exos-h-[3.3rem] exos-rounded-full"
|
|
3731
3731
|
};
|
|
3732
|
-
const
|
|
3733
|
-
const
|
|
3732
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_3 = ["disabled"];
|
|
3733
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_4 = /*#__PURE__*/EDropdownvue_type_template_id_7a65c80f_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("svg", {
|
|
3734
3734
|
class: "exos-fill-white dark:exos-fill-white",
|
|
3735
3735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3736
3736
|
height: "24",
|
|
@@ -3739,12 +3739,12 @@ const EDropdownvue_type_template_id_226dc57e_scoped_true_hoisted_4 = /*#__PURE__
|
|
|
3739
3739
|
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
3740
3740
|
d: "M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"
|
|
3741
3741
|
})], -1));
|
|
3742
|
-
const
|
|
3743
|
-
const
|
|
3742
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_5 = [EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_4];
|
|
3743
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_6 = {
|
|
3744
3744
|
key: 2
|
|
3745
3745
|
};
|
|
3746
|
-
const
|
|
3747
|
-
function
|
|
3746
|
+
const EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_7 = ["onClick"];
|
|
3747
|
+
function EDropdownvue_type_template_id_7a65c80f_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3748
3748
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
3749
3749
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($setup.isDropdownOpen ? 'exos-relative exos-z-30' : '')
|
|
3750
3750
|
}, [_ctx.$slots.iconDropdown ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
@@ -3755,12 +3755,12 @@ function EDropdownvue_type_template_id_226dc57e_scoped_true_render(_ctx, _cache,
|
|
|
3755
3755
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
3756
3756
|
disabled: $props.disabled,
|
|
3757
3757
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass)
|
|
3758
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconDropdown", {}, undefined, true)], 10,
|
|
3758
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconDropdown", {}, undefined, true)], 10, EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_1)], 2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
3759
3759
|
ref: "edropdownRef",
|
|
3760
3760
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.toggleDropdown && $options.toggleDropdown(...args)),
|
|
3761
3761
|
disabled: $props.disabled,
|
|
3762
3762
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass)
|
|
3763
|
-
},
|
|
3763
|
+
}, EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_5, 10, EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_3)])), $setup.isDropdownOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_6, [!_ctx.$slots.contentDropdown && $setup.isDropdownOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
3764
3764
|
key: 0,
|
|
3765
3765
|
ref: "contentDroped",
|
|
3766
3766
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.containerOptionsClass),
|
|
@@ -3771,7 +3771,7 @@ function EDropdownvue_type_template_id_226dc57e_scoped_true_render(_ctx, _cache,
|
|
|
3771
3771
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.optionsClass),
|
|
3772
3772
|
onClick: $event => $options.selectOption(option),
|
|
3773
3773
|
key: index
|
|
3774
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(option.label ? option.label : ""), 15,
|
|
3774
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(option.label ? option.label : ""), 15, EDropdownvue_type_template_id_7a65c80f_scoped_true_hoisted_7);
|
|
3775
3775
|
}), 128))], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), _ctx.$slots.contentDropdown ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
3776
3776
|
key: 1,
|
|
3777
3777
|
ref: "contentDroped",
|
|
@@ -3779,7 +3779,7 @@ function EDropdownvue_type_template_id_226dc57e_scoped_true_render(_ctx, _cache,
|
|
|
3779
3779
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([$props.over ? {} : $options.calculatePadding(), $data.contentDropedHeigth ? $options.calculateDropPositionY() : {}])
|
|
3780
3780
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "contentDropdown", {}, undefined, true)], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
|
|
3781
3781
|
}
|
|
3782
|
-
;// CONCATENATED MODULE: ./src/components/EDropdown.vue?vue&type=template&id=
|
|
3782
|
+
;// CONCATENATED MODULE: ./src/components/EDropdown.vue?vue&type=template&id=7a65c80f&scoped=true
|
|
3783
3783
|
|
|
3784
3784
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
|
|
3785
3785
|
var web_dom_exception_stack = __webpack_require__(3429);
|
|
@@ -3887,8 +3887,8 @@ function shared_createEventHook() {
|
|
|
3887
3887
|
off: offFn
|
|
3888
3888
|
};
|
|
3889
3889
|
};
|
|
3890
|
-
const trigger =
|
|
3891
|
-
return Promise.all(Array.from(fns).map(fn =>
|
|
3890
|
+
const trigger = (...args) => {
|
|
3891
|
+
return Promise.all(Array.from(fns).map(fn => fn(...args)));
|
|
3892
3892
|
};
|
|
3893
3893
|
return {
|
|
3894
3894
|
on,
|
|
@@ -3927,7 +3927,7 @@ const injectLocal = (...args) => {
|
|
|
3927
3927
|
return inject(...args);
|
|
3928
3928
|
};
|
|
3929
3929
|
function createInjectionState(composable, options) {
|
|
3930
|
-
const key = (options == null ? void 0 : options.injectionKey) || Symbol("InjectionState");
|
|
3930
|
+
const key = (options == null ? void 0 : options.injectionKey) || Symbol(composable.name || "InjectionState");
|
|
3931
3931
|
const useProvidingState = (...args) => {
|
|
3932
3932
|
const state = composable(...args);
|
|
3933
3933
|
provideLocal(key, state);
|
|
@@ -4101,8 +4101,8 @@ const rand = (min, max) => {
|
|
|
4101
4101
|
const shared_hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
|
|
4102
4102
|
const shared_isIOS = /* @__PURE__ */getIsIOS();
|
|
4103
4103
|
function getIsIOS() {
|
|
4104
|
-
var _a;
|
|
4105
|
-
return shared_isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) &&
|
|
4104
|
+
var _a, _b;
|
|
4105
|
+
return shared_isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
4106
4106
|
}
|
|
4107
4107
|
function shared_createFilterWrapper(filter, fn) {
|
|
4108
4108
|
function wrapper(...args) {
|
|
@@ -4157,12 +4157,22 @@ function shared_debounceFilter(ms, options = {}) {
|
|
|
4157
4157
|
};
|
|
4158
4158
|
return filter;
|
|
4159
4159
|
}
|
|
4160
|
-
function shared_throttleFilter(
|
|
4160
|
+
function shared_throttleFilter(...args) {
|
|
4161
4161
|
let lastExec = 0;
|
|
4162
4162
|
let timer;
|
|
4163
4163
|
let isLeading = true;
|
|
4164
4164
|
let lastRejector = shared_noop;
|
|
4165
4165
|
let lastValue;
|
|
4166
|
+
let ms;
|
|
4167
|
+
let trailing;
|
|
4168
|
+
let leading;
|
|
4169
|
+
let rejectOnCancel;
|
|
4170
|
+
if (!isRef(args[0]) && typeof args[0] === "object") ({
|
|
4171
|
+
delay: ms,
|
|
4172
|
+
trailing = true,
|
|
4173
|
+
leading = true,
|
|
4174
|
+
rejectOnCancel = false
|
|
4175
|
+
} = args[0]);else [ms, trailing = true, leading = true, rejectOnCancel = false] = args;
|
|
4166
4176
|
const clear = () => {
|
|
4167
4177
|
if (timer) {
|
|
4168
4178
|
clearTimeout(timer);
|
|
@@ -4290,6 +4300,9 @@ function shared_objectOmit(obj, keys, omitUndefined = false) {
|
|
|
4290
4300
|
function shared_objectEntries(obj) {
|
|
4291
4301
|
return Object.entries(obj);
|
|
4292
4302
|
}
|
|
4303
|
+
function getLifeCycleTarget(target) {
|
|
4304
|
+
return target || getCurrentInstance();
|
|
4305
|
+
}
|
|
4293
4306
|
function shared_toRef(...args) {
|
|
4294
4307
|
if (args.length !== 1) return toRef$1(...args);
|
|
4295
4308
|
const r = args[0];
|
|
@@ -4536,17 +4549,21 @@ function shared_toRefs(objectRef, options = {}) {
|
|
|
4536
4549
|
}
|
|
4537
4550
|
return result;
|
|
4538
4551
|
}
|
|
4539
|
-
function tryOnBeforeMount(fn, sync = true) {
|
|
4540
|
-
|
|
4552
|
+
function tryOnBeforeMount(fn, sync = true, target) {
|
|
4553
|
+
const instance = getLifeCycleTarget(target);
|
|
4554
|
+
if (instance) onBeforeMount(fn, target);else if (sync) fn();else nextTick(fn);
|
|
4541
4555
|
}
|
|
4542
|
-
function
|
|
4543
|
-
|
|
4556
|
+
function shared_tryOnBeforeUnmount(fn, target) {
|
|
4557
|
+
const instance = getLifeCycleTarget(target);
|
|
4558
|
+
if (instance) onBeforeUnmount(fn, target);
|
|
4544
4559
|
}
|
|
4545
|
-
function shared_tryOnMounted(fn, sync = true) {
|
|
4546
|
-
|
|
4560
|
+
function shared_tryOnMounted(fn, sync = true, target) {
|
|
4561
|
+
const instance = getLifeCycleTarget();
|
|
4562
|
+
if (instance) onMounted(fn, target);else if (sync) fn();else nextTick(fn);
|
|
4547
4563
|
}
|
|
4548
|
-
function shared_tryOnUnmounted(fn) {
|
|
4549
|
-
|
|
4564
|
+
function shared_tryOnUnmounted(fn, target) {
|
|
4565
|
+
const instance = getLifeCycleTarget(target);
|
|
4566
|
+
if (instance) onUnmounted(fn, target);
|
|
4550
4567
|
}
|
|
4551
4568
|
function createUntil(r, isNot = false) {
|
|
4552
4569
|
function toMatch(condition, {
|
|
@@ -4757,8 +4774,8 @@ function useCounter(initialValue = 0, options = {}) {
|
|
|
4757
4774
|
max = Number.POSITIVE_INFINITY,
|
|
4758
4775
|
min = Number.NEGATIVE_INFINITY
|
|
4759
4776
|
} = options;
|
|
4760
|
-
const inc = (delta = 1) => count.value = Math.min(max, count.value + delta);
|
|
4761
|
-
const dec = (delta = 1) => count.value = Math.max(min, count.value - delta);
|
|
4777
|
+
const inc = (delta = 1) => count.value = Math.max(Math.min(max, count.value + delta), min);
|
|
4778
|
+
const dec = (delta = 1) => count.value = Math.min(Math.max(min, count.value - delta), max);
|
|
4762
4779
|
const get = () => count.value;
|
|
4763
4780
|
const set = val => count.value = Math.max(min, Math.min(max, val));
|
|
4764
4781
|
const reset = (val = _initialValue) => {
|
|
@@ -5200,9 +5217,16 @@ function getOldValue(source) {
|
|
|
5200
5217
|
return Array.isArray(source) ? source.map(() => void 0) : void 0;
|
|
5201
5218
|
}
|
|
5202
5219
|
function whenever(source, cb, options) {
|
|
5203
|
-
|
|
5204
|
-
if (v)
|
|
5205
|
-
|
|
5220
|
+
const stop = watch(source, (v, ov, onInvalidate) => {
|
|
5221
|
+
if (v) {
|
|
5222
|
+
if (options == null ? void 0 : options.once) nextTick(() => stop());
|
|
5223
|
+
cb(v, ov, onInvalidate);
|
|
5224
|
+
}
|
|
5225
|
+
}, {
|
|
5226
|
+
...options,
|
|
5227
|
+
once: false
|
|
5228
|
+
});
|
|
5229
|
+
return stop;
|
|
5206
5230
|
}
|
|
5207
5231
|
|
|
5208
5232
|
;// CONCATENATED MODULE: ./node_modules/@vueuse/core/node_modules/vue-demi/lib/index.mjs
|
|
@@ -5241,7 +5265,6 @@ function vue_demi_lib_del(target, key) {
|
|
|
5241
5265
|
|
|
5242
5266
|
|
|
5243
5267
|
|
|
5244
|
-
|
|
5245
5268
|
function computedAsync(evaluationCallback, initialState, optionsOrRef) {
|
|
5246
5269
|
let options;
|
|
5247
5270
|
if (isRef(optionsOrRef)) {
|
|
@@ -5467,7 +5490,7 @@ function onClickOutside(target, handler, options = {}) {
|
|
|
5467
5490
|
capture = true,
|
|
5468
5491
|
detectIframe = false
|
|
5469
5492
|
} = options;
|
|
5470
|
-
if (!window) return;
|
|
5493
|
+
if (!window) return shared_noop;
|
|
5471
5494
|
if (shared_isIOS && !_iOSWorkaround) {
|
|
5472
5495
|
_iOSWorkaround = true;
|
|
5473
5496
|
Array.from(window.document.body.children).forEach(el => el.addEventListener("click", shared_noop));
|
|
@@ -5569,15 +5592,18 @@ function onKeyUp(key, handler, options = {}) {
|
|
|
5569
5592
|
});
|
|
5570
5593
|
}
|
|
5571
5594
|
const DEFAULT_DELAY = 500;
|
|
5595
|
+
const DEFAULT_THRESHOLD = 10;
|
|
5572
5596
|
function onLongPress(target, handler, options) {
|
|
5573
5597
|
var _a, _b;
|
|
5574
5598
|
const elementRef = computed(() => unrefElement(target));
|
|
5575
5599
|
let timeout;
|
|
5600
|
+
let posStart;
|
|
5576
5601
|
function clear() {
|
|
5577
5602
|
if (timeout) {
|
|
5578
5603
|
clearTimeout(timeout);
|
|
5579
5604
|
timeout = void 0;
|
|
5580
5605
|
}
|
|
5606
|
+
posStart = void 0;
|
|
5581
5607
|
}
|
|
5582
5608
|
function onDown(ev) {
|
|
5583
5609
|
var _a2, _b2, _c, _d;
|
|
@@ -5585,13 +5611,28 @@ function onLongPress(target, handler, options) {
|
|
|
5585
5611
|
clear();
|
|
5586
5612
|
if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) ev.preventDefault();
|
|
5587
5613
|
if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) ev.stopPropagation();
|
|
5614
|
+
posStart = {
|
|
5615
|
+
x: ev.x,
|
|
5616
|
+
y: ev.y
|
|
5617
|
+
};
|
|
5588
5618
|
timeout = setTimeout(() => handler(ev), (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY);
|
|
5589
5619
|
}
|
|
5620
|
+
function onMove(ev) {
|
|
5621
|
+
var _a2, _b2, _c, _d;
|
|
5622
|
+
if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) return;
|
|
5623
|
+
if (!posStart || (options == null ? void 0 : options.distanceThreshold) === false) return;
|
|
5624
|
+
if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) ev.preventDefault();
|
|
5625
|
+
if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) ev.stopPropagation();
|
|
5626
|
+
const dx = ev.x - posStart.x;
|
|
5627
|
+
const dy = ev.y - posStart.y;
|
|
5628
|
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
5629
|
+
if (distance >= ((_d = options == null ? void 0 : options.distanceThreshold) != null ? _d : DEFAULT_THRESHOLD)) clear();
|
|
5630
|
+
}
|
|
5590
5631
|
const listenerOptions = {
|
|
5591
5632
|
capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture,
|
|
5592
5633
|
once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once
|
|
5593
5634
|
};
|
|
5594
|
-
const cleanup = [useEventListener(elementRef, "pointerdown", onDown, listenerOptions), useEventListener(elementRef, ["pointerup", "pointerleave"], clear, listenerOptions)]
|
|
5635
|
+
const cleanup = [useEventListener(elementRef, "pointerdown", onDown, listenerOptions), useEventListener(elementRef, "pointermove", onMove, listenerOptions), useEventListener(elementRef, ["pointerup", "pointerleave"], clear, listenerOptions)];
|
|
5595
5636
|
const stop = () => cleanup.forEach(fn => fn());
|
|
5596
5637
|
return stop;
|
|
5597
5638
|
}
|
|
@@ -5665,22 +5706,27 @@ function useActiveElement(options = {}) {
|
|
|
5665
5706
|
}
|
|
5666
5707
|
return element;
|
|
5667
5708
|
};
|
|
5668
|
-
const activeElement =
|
|
5709
|
+
const activeElement = ref();
|
|
5710
|
+
const trigger = () => {
|
|
5711
|
+
activeElement.value = getDeepActiveElement();
|
|
5712
|
+
};
|
|
5669
5713
|
if (window) {
|
|
5670
5714
|
useEventListener(window, "blur", event => {
|
|
5671
5715
|
if (event.relatedTarget !== null) return;
|
|
5672
|
-
|
|
5716
|
+
trigger();
|
|
5673
5717
|
}, true);
|
|
5674
|
-
useEventListener(window, "focus",
|
|
5718
|
+
useEventListener(window, "focus", trigger, true);
|
|
5675
5719
|
}
|
|
5720
|
+
trigger();
|
|
5676
5721
|
return activeElement;
|
|
5677
5722
|
}
|
|
5678
5723
|
function useMounted() {
|
|
5679
5724
|
const isMounted = ref(false);
|
|
5680
|
-
|
|
5725
|
+
const instance = getCurrentInstance();
|
|
5726
|
+
if (instance) {
|
|
5681
5727
|
onMounted(() => {
|
|
5682
5728
|
isMounted.value = true;
|
|
5683
|
-
});
|
|
5729
|
+
}, isVue2 ? null : instance);
|
|
5684
5730
|
}
|
|
5685
5731
|
return isMounted;
|
|
5686
5732
|
}
|
|
@@ -5703,21 +5749,23 @@ function useRafFn(fn, options = {}) {
|
|
|
5703
5749
|
let rafId = null;
|
|
5704
5750
|
function loop(timestamp) {
|
|
5705
5751
|
if (!isActive.value || !window) return;
|
|
5706
|
-
|
|
5752
|
+
if (!previousFrameTimestamp) previousFrameTimestamp = timestamp;
|
|
5753
|
+
const delta = timestamp - previousFrameTimestamp;
|
|
5707
5754
|
if (intervalLimit && delta < intervalLimit) {
|
|
5708
5755
|
rafId = window.requestAnimationFrame(loop);
|
|
5709
5756
|
return;
|
|
5710
5757
|
}
|
|
5758
|
+
previousFrameTimestamp = timestamp;
|
|
5711
5759
|
fn({
|
|
5712
5760
|
delta,
|
|
5713
5761
|
timestamp
|
|
5714
5762
|
});
|
|
5715
|
-
previousFrameTimestamp = timestamp;
|
|
5716
5763
|
rafId = window.requestAnimationFrame(loop);
|
|
5717
5764
|
}
|
|
5718
5765
|
function resume() {
|
|
5719
5766
|
if (!isActive.value && window) {
|
|
5720
5767
|
isActive.value = true;
|
|
5768
|
+
previousFrameTimestamp = 0;
|
|
5721
5769
|
rafId = window.requestAnimationFrame(loop);
|
|
5722
5770
|
}
|
|
5723
5771
|
}
|
|
@@ -5881,7 +5929,7 @@ function useAnimate(target, keyframes, options) {
|
|
|
5881
5929
|
function update(init) {
|
|
5882
5930
|
const el = unrefElement(target);
|
|
5883
5931
|
if (!isSupported.value || !el) return;
|
|
5884
|
-
animate.value = el.animate(toValue(keyframes), animateOptions);
|
|
5932
|
+
if (!animate.value) animate.value = el.animate(toValue(keyframes), animateOptions);
|
|
5885
5933
|
if (commitStyles) animate.value.commitStyles();
|
|
5886
5934
|
if (persist) animate.value.persist();
|
|
5887
5935
|
if (_playbackRate !== 1) animate.value.playbackRate = _playbackRate;
|
|
@@ -6152,7 +6200,7 @@ function useBattery(options = {}) {
|
|
|
6152
6200
|
navigator = defaultNavigator
|
|
6153
6201
|
} = options;
|
|
6154
6202
|
const events = ["chargingchange", "chargingtimechange", "dischargingtimechange", "levelchange"];
|
|
6155
|
-
const isSupported = useSupported(() => navigator && "getBattery" in navigator);
|
|
6203
|
+
const isSupported = useSupported(() => navigator && "getBattery" in navigator && typeof navigator.getBattery === "function");
|
|
6156
6204
|
const charging = ref(false);
|
|
6157
6205
|
const chargingTime = ref(0);
|
|
6158
6206
|
const dischargingTime = ref(0);
|
|
@@ -6289,12 +6337,22 @@ const breakpointsBootstrapV5 = {
|
|
|
6289
6337
|
xl: 1200,
|
|
6290
6338
|
xxl: 1400
|
|
6291
6339
|
};
|
|
6292
|
-
const
|
|
6293
|
-
xs:
|
|
6294
|
-
sm:
|
|
6295
|
-
md:
|
|
6296
|
-
lg:
|
|
6340
|
+
const breakpointsVuetifyV2 = {
|
|
6341
|
+
xs: 0,
|
|
6342
|
+
sm: 600,
|
|
6343
|
+
md: 960,
|
|
6344
|
+
lg: 1264,
|
|
6345
|
+
xl: 1904
|
|
6297
6346
|
};
|
|
6347
|
+
const breakpointsVuetifyV3 = {
|
|
6348
|
+
xs: 0,
|
|
6349
|
+
sm: 600,
|
|
6350
|
+
md: 960,
|
|
6351
|
+
lg: 1280,
|
|
6352
|
+
xl: 1920,
|
|
6353
|
+
xxl: 2560
|
|
6354
|
+
};
|
|
6355
|
+
const breakpointsVuetify = (/* unused pure expression or super */ null && (breakpointsVuetifyV2));
|
|
6298
6356
|
const breakpointsAntDesign = {
|
|
6299
6357
|
xs: 480,
|
|
6300
6358
|
sm: 576,
|
|
@@ -6304,10 +6362,11 @@ const breakpointsAntDesign = {
|
|
|
6304
6362
|
xxl: 1600
|
|
6305
6363
|
};
|
|
6306
6364
|
const breakpointsQuasar = {
|
|
6307
|
-
xs:
|
|
6308
|
-
sm:
|
|
6309
|
-
md:
|
|
6310
|
-
lg:
|
|
6365
|
+
xs: 0,
|
|
6366
|
+
sm: 600,
|
|
6367
|
+
md: 1024,
|
|
6368
|
+
lg: 1440,
|
|
6369
|
+
xl: 1920
|
|
6311
6370
|
};
|
|
6312
6371
|
const breakpointsSematic = {
|
|
6313
6372
|
mobileS: 320,
|
|
@@ -6338,42 +6397,48 @@ const breakpointsPrimeFlex = {
|
|
|
6338
6397
|
};
|
|
6339
6398
|
function useBreakpoints(breakpoints, options = {}) {
|
|
6340
6399
|
function getValue(k, delta) {
|
|
6341
|
-
let v = breakpoints[k];
|
|
6400
|
+
let v = toValue(breakpoints[toValue(k)]);
|
|
6342
6401
|
if (delta != null) v = increaseWithUnit(v, delta);
|
|
6343
6402
|
if (typeof v === "number") v = `${v}px`;
|
|
6344
6403
|
return v;
|
|
6345
6404
|
}
|
|
6346
6405
|
const {
|
|
6347
|
-
window = defaultWindow
|
|
6406
|
+
window = defaultWindow,
|
|
6407
|
+
strategy = "min-width"
|
|
6348
6408
|
} = options;
|
|
6349
6409
|
function match(query) {
|
|
6350
6410
|
if (!window) return false;
|
|
6351
6411
|
return window.matchMedia(query).matches;
|
|
6352
6412
|
}
|
|
6353
6413
|
const greaterOrEqual = k => {
|
|
6354
|
-
return useMediaQuery(`(min-width: ${getValue(k)})`, options);
|
|
6414
|
+
return useMediaQuery(() => `(min-width: ${getValue(k)})`, options);
|
|
6415
|
+
};
|
|
6416
|
+
const smallerOrEqual = k => {
|
|
6417
|
+
return useMediaQuery(() => `(max-width: ${getValue(k)})`, options);
|
|
6355
6418
|
};
|
|
6356
6419
|
const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
|
|
6357
6420
|
Object.defineProperty(shortcuts, k, {
|
|
6358
|
-
get: () => greaterOrEqual(k),
|
|
6421
|
+
get: () => strategy === "min-width" ? greaterOrEqual(k) : smallerOrEqual(k),
|
|
6359
6422
|
enumerable: true,
|
|
6360
6423
|
configurable: true
|
|
6361
6424
|
});
|
|
6362
6425
|
return shortcuts;
|
|
6363
6426
|
}, {});
|
|
6427
|
+
function current() {
|
|
6428
|
+
const points = Object.keys(breakpoints).map(i => [i, greaterOrEqual(i)]);
|
|
6429
|
+
return computed(() => points.filter(([, v]) => v.value).map(([k]) => k));
|
|
6430
|
+
}
|
|
6364
6431
|
return Object.assign(shortcutMethods, {
|
|
6432
|
+
greaterOrEqual,
|
|
6433
|
+
smallerOrEqual,
|
|
6365
6434
|
greater(k) {
|
|
6366
|
-
return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options);
|
|
6435
|
+
return useMediaQuery(() => `(min-width: ${getValue(k, 0.1)})`, options);
|
|
6367
6436
|
},
|
|
6368
|
-
greaterOrEqual,
|
|
6369
6437
|
smaller(k) {
|
|
6370
|
-
return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options);
|
|
6371
|
-
},
|
|
6372
|
-
smallerOrEqual(k) {
|
|
6373
|
-
return useMediaQuery(`(max-width: ${getValue(k)})`, options);
|
|
6438
|
+
return useMediaQuery(() => `(max-width: ${getValue(k, -0.1)})`, options);
|
|
6374
6439
|
},
|
|
6375
6440
|
between(a, b) {
|
|
6376
|
-
return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);
|
|
6441
|
+
return useMediaQuery(() => `(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);
|
|
6377
6442
|
},
|
|
6378
6443
|
isGreater(k) {
|
|
6379
6444
|
return match(`(min-width: ${getValue(k, 0.1)})`);
|
|
@@ -6390,9 +6455,10 @@ function useBreakpoints(breakpoints, options = {}) {
|
|
|
6390
6455
|
isInBetween(a, b) {
|
|
6391
6456
|
return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`);
|
|
6392
6457
|
},
|
|
6393
|
-
current
|
|
6394
|
-
|
|
6395
|
-
|
|
6458
|
+
current,
|
|
6459
|
+
active() {
|
|
6460
|
+
const bps = current();
|
|
6461
|
+
return computed(() => bps.value.length === 0 ? "" : bps.value.at(-1));
|
|
6396
6462
|
}
|
|
6397
6463
|
});
|
|
6398
6464
|
}
|
|
@@ -6547,7 +6613,7 @@ function useClipboard(options = {}) {
|
|
|
6547
6613
|
const copied = ref(false);
|
|
6548
6614
|
const timeout = useTimeoutFn(() => copied.value = false, copiedDuring);
|
|
6549
6615
|
function updateText() {
|
|
6550
|
-
if (isClipboardApiSupported.value && permissionRead.value
|
|
6616
|
+
if (isClipboardApiSupported.value && isAllowed(permissionRead.value)) {
|
|
6551
6617
|
navigator.clipboard.readText().then(value => {
|
|
6552
6618
|
text.value = value;
|
|
6553
6619
|
});
|
|
@@ -6558,7 +6624,7 @@ function useClipboard(options = {}) {
|
|
|
6558
6624
|
if (isSupported.value && read) useEventListener(["copy", "cut"], updateText);
|
|
6559
6625
|
async function copy(value = toValue(source)) {
|
|
6560
6626
|
if (isSupported.value && value != null) {
|
|
6561
|
-
if (isClipboardApiSupported.value && permissionWrite.value
|
|
6627
|
+
if (isClipboardApiSupported.value && isAllowed(permissionWrite.value)) await navigator.clipboard.writeText(value);else legacyCopy(value);
|
|
6562
6628
|
text.value = value;
|
|
6563
6629
|
copied.value = true;
|
|
6564
6630
|
timeout.start();
|
|
@@ -6578,6 +6644,9 @@ function useClipboard(options = {}) {
|
|
|
6578
6644
|
var _a, _b, _c;
|
|
6579
6645
|
return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : "";
|
|
6580
6646
|
}
|
|
6647
|
+
function isAllowed(status) {
|
|
6648
|
+
return status === "granted" || status === "prompt";
|
|
6649
|
+
}
|
|
6581
6650
|
return {
|
|
6582
6651
|
isSupported,
|
|
6583
6652
|
text,
|
|
@@ -6746,26 +6815,29 @@ function useStorage(key, defaults, storage, options = {}) {
|
|
|
6746
6815
|
});
|
|
6747
6816
|
}
|
|
6748
6817
|
if (!initOnMounted) update();
|
|
6749
|
-
|
|
6818
|
+
function dispatchWriteEvent(oldValue, newValue) {
|
|
6819
|
+
if (window) {
|
|
6820
|
+
window.dispatchEvent(new CustomEvent(customStorageEventName, {
|
|
6821
|
+
detail: {
|
|
6822
|
+
key,
|
|
6823
|
+
oldValue,
|
|
6824
|
+
newValue,
|
|
6825
|
+
storageArea: storage
|
|
6826
|
+
}
|
|
6827
|
+
}));
|
|
6828
|
+
}
|
|
6829
|
+
}
|
|
6750
6830
|
function write(v) {
|
|
6751
6831
|
try {
|
|
6832
|
+
const oldValue = storage.getItem(key);
|
|
6752
6833
|
if (v == null) {
|
|
6834
|
+
dispatchWriteEvent(oldValue, null);
|
|
6753
6835
|
storage.removeItem(key);
|
|
6754
6836
|
} else {
|
|
6755
6837
|
const serialized = serializer.write(v);
|
|
6756
|
-
const oldValue = storage.getItem(key);
|
|
6757
6838
|
if (oldValue !== serialized) {
|
|
6758
6839
|
storage.setItem(key, serialized);
|
|
6759
|
-
|
|
6760
|
-
window.dispatchEvent(new CustomEvent(customStorageEventName, {
|
|
6761
|
-
detail: {
|
|
6762
|
-
key,
|
|
6763
|
-
oldValue,
|
|
6764
|
-
newValue: serialized,
|
|
6765
|
-
storageArea: storage
|
|
6766
|
-
}
|
|
6767
|
-
}));
|
|
6768
|
-
}
|
|
6840
|
+
dispatchWriteEvent(oldValue, serialized);
|
|
6769
6841
|
}
|
|
6770
6842
|
}
|
|
6771
6843
|
} catch (e) {
|
|
@@ -6775,7 +6847,7 @@ function useStorage(key, defaults, storage, options = {}) {
|
|
|
6775
6847
|
function read(event) {
|
|
6776
6848
|
const rawValue = event ? event.newValue : storage.getItem(key);
|
|
6777
6849
|
if (rawValue == null) {
|
|
6778
|
-
if (writeDefaults && rawInit
|
|
6850
|
+
if (writeDefaults && rawInit != null) storage.setItem(key, serializer.write(rawInit));
|
|
6779
6851
|
return rawInit;
|
|
6780
6852
|
} else if (!event && mergeDefaults) {
|
|
6781
6853
|
const value = serializer.read(rawValue);
|
|
@@ -6790,9 +6862,6 @@ function useStorage(key, defaults, storage, options = {}) {
|
|
|
6790
6862
|
return serializer.read(rawValue);
|
|
6791
6863
|
}
|
|
6792
6864
|
}
|
|
6793
|
-
function updateFromCustomEvent(event) {
|
|
6794
|
-
update(event.detail);
|
|
6795
|
-
}
|
|
6796
6865
|
function update(event) {
|
|
6797
6866
|
if (event && event.storageArea !== storage) return;
|
|
6798
6867
|
if (event && event.key == null) {
|
|
@@ -6809,6 +6878,10 @@ function useStorage(key, defaults, storage, options = {}) {
|
|
|
6809
6878
|
if (event) nextTick(resumeWatch);else resumeWatch();
|
|
6810
6879
|
}
|
|
6811
6880
|
}
|
|
6881
|
+
function updateFromCustomEvent(event) {
|
|
6882
|
+
update(event.detail);
|
|
6883
|
+
}
|
|
6884
|
+
return data;
|
|
6812
6885
|
}
|
|
6813
6886
|
function usePreferredDark(options) {
|
|
6814
6887
|
return useMediaQuery("(prefers-color-scheme: dark)", options);
|
|
@@ -6945,14 +7018,20 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
6945
7018
|
observer = void 0;
|
|
6946
7019
|
}
|
|
6947
7020
|
};
|
|
6948
|
-
const
|
|
7021
|
+
const targets = computed(() => {
|
|
7022
|
+
const value = toValue(target);
|
|
7023
|
+
const items = (Array.isArray(value) ? value : [value]).map(unrefElement).filter(notNullish);
|
|
7024
|
+
return new Set(items);
|
|
7025
|
+
});
|
|
7026
|
+
const stopWatch = watch(() => targets.value, targets2 => {
|
|
6949
7027
|
cleanup();
|
|
6950
|
-
if (isSupported.value && window &&
|
|
7028
|
+
if (isSupported.value && window && targets2.size) {
|
|
6951
7029
|
observer = new MutationObserver(callback);
|
|
6952
|
-
observer.observe(el, mutationOptions);
|
|
7030
|
+
targets2.forEach(el => observer.observe(el, mutationOptions));
|
|
6953
7031
|
}
|
|
6954
7032
|
}, {
|
|
6955
|
-
immediate: true
|
|
7033
|
+
immediate: true,
|
|
7034
|
+
flush: "post"
|
|
6956
7035
|
});
|
|
6957
7036
|
const takeRecords = () => {
|
|
6958
7037
|
return observer == null ? void 0 : observer.takeRecords();
|
|
@@ -7003,9 +7082,9 @@ function useCssVar(prop, target, options = {}) {
|
|
|
7003
7082
|
});
|
|
7004
7083
|
return variable;
|
|
7005
7084
|
}
|
|
7006
|
-
function useCurrentElement() {
|
|
7085
|
+
function useCurrentElement(rootComponent) {
|
|
7007
7086
|
const vm = getCurrentInstance();
|
|
7008
|
-
const currentElement = computedWithControl(() => null, () => vm.proxy.$el);
|
|
7087
|
+
const currentElement = computedWithControl(() => null, () => rootComponent ? unrefElement(rootComponent) : vm.proxy.$el);
|
|
7009
7088
|
onUpdated(currentElement.trigger);
|
|
7010
7089
|
onMounted(currentElement.trigger);
|
|
7011
7090
|
return currentElement;
|
|
@@ -7051,13 +7130,15 @@ function useCycleList(list, options) {
|
|
|
7051
7130
|
state,
|
|
7052
7131
|
index,
|
|
7053
7132
|
next,
|
|
7054
|
-
prev
|
|
7133
|
+
prev,
|
|
7134
|
+
go: set
|
|
7055
7135
|
};
|
|
7056
7136
|
}
|
|
7057
7137
|
function useDark(options = {}) {
|
|
7058
7138
|
const {
|
|
7059
7139
|
valueDark = "dark",
|
|
7060
|
-
valueLight = ""
|
|
7140
|
+
valueLight = "",
|
|
7141
|
+
window = defaultWindow
|
|
7061
7142
|
} = options;
|
|
7062
7143
|
const mode = useColorMode({
|
|
7063
7144
|
...options,
|
|
@@ -7070,13 +7151,23 @@ function useDark(options = {}) {
|
|
|
7070
7151
|
light: valueLight
|
|
7071
7152
|
}
|
|
7072
7153
|
});
|
|
7154
|
+
const system = computed(() => {
|
|
7155
|
+
if (mode.system) {
|
|
7156
|
+
return mode.system.value;
|
|
7157
|
+
} else {
|
|
7158
|
+
const preferredDark = usePreferredDark({
|
|
7159
|
+
window
|
|
7160
|
+
});
|
|
7161
|
+
return preferredDark.value ? "dark" : "light";
|
|
7162
|
+
}
|
|
7163
|
+
});
|
|
7073
7164
|
const isDark = computed({
|
|
7074
7165
|
get() {
|
|
7075
7166
|
return mode.value === "dark";
|
|
7076
7167
|
},
|
|
7077
7168
|
set(v) {
|
|
7078
7169
|
const modeVal = v ? "dark" : "light";
|
|
7079
|
-
if (
|
|
7170
|
+
if (system.value === modeVal) mode.value = "auto";else mode.value = modeVal;
|
|
7080
7171
|
}
|
|
7081
7172
|
});
|
|
7082
7173
|
return isDark;
|
|
@@ -7472,25 +7563,23 @@ function useDraggable(target, options = {}) {
|
|
|
7472
7563
|
};
|
|
7473
7564
|
const start = e => {
|
|
7474
7565
|
var _a2;
|
|
7475
|
-
if (!filterEvent(e)) return;
|
|
7566
|
+
if (toValue(options.disabled) || !filterEvent(e)) return;
|
|
7476
7567
|
if (toValue(exact) && e.target !== toValue(target)) return;
|
|
7477
7568
|
const container = toValue(containerElement);
|
|
7478
7569
|
const containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container);
|
|
7479
7570
|
const targetRect = toValue(target).getBoundingClientRect();
|
|
7480
7571
|
const pos = {
|
|
7481
|
-
x: e.clientX - (container ? targetRect.left - containerRect.left : targetRect.left),
|
|
7482
|
-
y: e.clientY - (container ? targetRect.top - containerRect.top : targetRect.top)
|
|
7572
|
+
x: e.clientX - (container ? targetRect.left - containerRect.left + container.scrollLeft : targetRect.left),
|
|
7573
|
+
y: e.clientY - (container ? targetRect.top - containerRect.top + container.scrollTop : targetRect.top)
|
|
7483
7574
|
};
|
|
7484
7575
|
if ((onStart == null ? void 0 : onStart(pos, e)) === false) return;
|
|
7485
7576
|
pressedDelta.value = pos;
|
|
7486
7577
|
handleEvent(e);
|
|
7487
7578
|
};
|
|
7488
7579
|
const move = e => {
|
|
7489
|
-
|
|
7490
|
-
if (!filterEvent(e)) return;
|
|
7580
|
+
if (toValue(options.disabled) || !filterEvent(e)) return;
|
|
7491
7581
|
if (!pressedDelta.value) return;
|
|
7492
7582
|
const container = toValue(containerElement);
|
|
7493
|
-
const containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container);
|
|
7494
7583
|
const targetRect = toValue(target).getBoundingClientRect();
|
|
7495
7584
|
let {
|
|
7496
7585
|
x,
|
|
@@ -7498,11 +7587,11 @@ function useDraggable(target, options = {}) {
|
|
|
7498
7587
|
} = position.value;
|
|
7499
7588
|
if (axis === "x" || axis === "both") {
|
|
7500
7589
|
x = e.clientX - pressedDelta.value.x;
|
|
7501
|
-
if (container) x = Math.min(Math.max(0, x),
|
|
7590
|
+
if (container) x = Math.min(Math.max(0, x), container.scrollWidth - targetRect.width);
|
|
7502
7591
|
}
|
|
7503
7592
|
if (axis === "y" || axis === "both") {
|
|
7504
7593
|
y = e.clientY - pressedDelta.value.y;
|
|
7505
|
-
if (container) y = Math.min(Math.max(0, y),
|
|
7594
|
+
if (container) y = Math.min(Math.max(0, y), container.scrollHeight - targetRect.height);
|
|
7506
7595
|
}
|
|
7507
7596
|
position.value = {
|
|
7508
7597
|
x,
|
|
@@ -7512,7 +7601,7 @@ function useDraggable(target, options = {}) {
|
|
|
7512
7601
|
handleEvent(e);
|
|
7513
7602
|
};
|
|
7514
7603
|
const end = e => {
|
|
7515
|
-
if (!filterEvent(e)) return;
|
|
7604
|
+
if (toValue(options.disabled) || !filterEvent(e)) return;
|
|
7516
7605
|
if (!pressedDelta.value) return;
|
|
7517
7606
|
pressedDelta.value = void 0;
|
|
7518
7607
|
onEnd == null ? void 0 : onEnd(position.value, e);
|
|
@@ -7547,25 +7636,26 @@ function useDropZone(target, options = {}) {
|
|
|
7547
7636
|
const list = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
|
|
7548
7637
|
return files.value = list.length === 0 ? null : list;
|
|
7549
7638
|
};
|
|
7550
|
-
useEventListener
|
|
7551
|
-
var _a;
|
|
7639
|
+
useEventListener(target, "dragenter", event => {
|
|
7640
|
+
var _a, _b;
|
|
7641
|
+
const types = Array.from(((_a = event == null ? void 0 : event.dataTransfer) == null ? void 0 : _a.items) || []).map(i => i.kind === "file" ? i.type : null).filter(notNullish);
|
|
7552
7642
|
if (_options.dataTypes && event.dataTransfer) {
|
|
7553
7643
|
const dataTypes = unref(_options.dataTypes);
|
|
7554
|
-
isDataTypeIncluded = typeof dataTypes === "function" ? dataTypes(
|
|
7644
|
+
isDataTypeIncluded = typeof dataTypes === "function" ? dataTypes(types) : dataTypes ? dataTypes.some(item => types.includes(item)) : true;
|
|
7555
7645
|
if (!isDataTypeIncluded) return;
|
|
7556
7646
|
}
|
|
7557
7647
|
event.preventDefault();
|
|
7558
7648
|
counter += 1;
|
|
7559
7649
|
isOverDropZone.value = true;
|
|
7560
|
-
(
|
|
7650
|
+
(_b = _options.onEnter) == null ? void 0 : _b.call(_options, getFiles(event), event);
|
|
7561
7651
|
});
|
|
7562
|
-
useEventListener
|
|
7652
|
+
useEventListener(target, "dragover", event => {
|
|
7563
7653
|
var _a;
|
|
7564
7654
|
if (!isDataTypeIncluded) return;
|
|
7565
7655
|
event.preventDefault();
|
|
7566
7656
|
(_a = _options.onOver) == null ? void 0 : _a.call(_options, getFiles(event), event);
|
|
7567
7657
|
});
|
|
7568
|
-
useEventListener
|
|
7658
|
+
useEventListener(target, "dragleave", event => {
|
|
7569
7659
|
var _a;
|
|
7570
7660
|
if (!isDataTypeIncluded) return;
|
|
7571
7661
|
event.preventDefault();
|
|
@@ -7573,7 +7663,7 @@ function useDropZone(target, options = {}) {
|
|
|
7573
7663
|
if (counter === 0) isOverDropZone.value = false;
|
|
7574
7664
|
(_a = _options.onLeave) == null ? void 0 : _a.call(_options, getFiles(event), event);
|
|
7575
7665
|
});
|
|
7576
|
-
useEventListener
|
|
7666
|
+
useEventListener(target, "drop", event => {
|
|
7577
7667
|
var _a;
|
|
7578
7668
|
event.preventDefault();
|
|
7579
7669
|
counter = 0;
|
|
@@ -7608,8 +7698,7 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
7608
7698
|
}
|
|
7609
7699
|
}, {
|
|
7610
7700
|
immediate: true,
|
|
7611
|
-
flush: "post"
|
|
7612
|
-
deep: true
|
|
7701
|
+
flush: "post"
|
|
7613
7702
|
});
|
|
7614
7703
|
const stop = () => {
|
|
7615
7704
|
cleanup();
|
|
@@ -7663,6 +7752,9 @@ function useElementBounding(target, options = {}) {
|
|
|
7663
7752
|
}
|
|
7664
7753
|
useResizeObserver(target, update);
|
|
7665
7754
|
watch(() => unrefElement(target), ele => !ele && update());
|
|
7755
|
+
useMutationObserver(target, update, {
|
|
7756
|
+
attributeFilter: ["style", "class"]
|
|
7757
|
+
});
|
|
7666
7758
|
if (windowScroll) useEventListener("scroll", update, {
|
|
7667
7759
|
capture: true,
|
|
7668
7760
|
passive: true
|
|
@@ -7855,17 +7947,24 @@ function useIntersectionObserver(target, callback, options = {}) {
|
|
|
7855
7947
|
function useElementVisibility(element, options = {}) {
|
|
7856
7948
|
const {
|
|
7857
7949
|
window = defaultWindow,
|
|
7858
|
-
scrollTarget
|
|
7950
|
+
scrollTarget,
|
|
7951
|
+
threshold = 0
|
|
7859
7952
|
} = options;
|
|
7860
7953
|
const elementIsVisible = ref(false);
|
|
7861
|
-
useIntersectionObserver(element,
|
|
7862
|
-
isIntersecting
|
|
7863
|
-
|
|
7954
|
+
useIntersectionObserver(element, intersectionObserverEntries => {
|
|
7955
|
+
let isIntersecting = elementIsVisible.value;
|
|
7956
|
+
let latestTime = 0;
|
|
7957
|
+
for (const entry of intersectionObserverEntries) {
|
|
7958
|
+
if (entry.time >= latestTime) {
|
|
7959
|
+
latestTime = entry.time;
|
|
7960
|
+
isIntersecting = entry.isIntersecting;
|
|
7961
|
+
}
|
|
7962
|
+
}
|
|
7864
7963
|
elementIsVisible.value = isIntersecting;
|
|
7865
7964
|
}, {
|
|
7866
7965
|
root: scrollTarget,
|
|
7867
7966
|
window,
|
|
7868
|
-
threshold
|
|
7967
|
+
threshold
|
|
7869
7968
|
});
|
|
7870
7969
|
return elementIsVisible;
|
|
7871
7970
|
}
|
|
@@ -7909,53 +8008,85 @@ function useEventBus(key) {
|
|
|
7909
8008
|
reset
|
|
7910
8009
|
};
|
|
7911
8010
|
}
|
|
8011
|
+
function resolveNestedOptions$1(options) {
|
|
8012
|
+
if (options === true) return {};
|
|
8013
|
+
return options;
|
|
8014
|
+
}
|
|
7912
8015
|
function useEventSource(url, events = [], options = {}) {
|
|
7913
8016
|
const event = ref(null);
|
|
7914
8017
|
const data = ref(null);
|
|
7915
8018
|
const status = ref("CONNECTING");
|
|
7916
8019
|
const eventSource = ref(null);
|
|
7917
8020
|
const error = shallowRef(null);
|
|
8021
|
+
const urlRef = toRef(url);
|
|
8022
|
+
let explicitlyClosed = false;
|
|
8023
|
+
let retried = 0;
|
|
7918
8024
|
const {
|
|
7919
|
-
withCredentials = false
|
|
8025
|
+
withCredentials = false,
|
|
8026
|
+
immediate = true
|
|
7920
8027
|
} = options;
|
|
7921
8028
|
const close = () => {
|
|
7922
|
-
if (eventSource.value) {
|
|
8029
|
+
if (isClient && eventSource.value) {
|
|
7923
8030
|
eventSource.value.close();
|
|
7924
8031
|
eventSource.value = null;
|
|
7925
8032
|
status.value = "CLOSED";
|
|
8033
|
+
explicitlyClosed = true;
|
|
7926
8034
|
}
|
|
7927
8035
|
};
|
|
7928
|
-
const
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
es.onopen = () => {
|
|
7933
|
-
status.value = "OPEN";
|
|
7934
|
-
error.value = null;
|
|
7935
|
-
};
|
|
7936
|
-
es.onerror = e => {
|
|
7937
|
-
status.value = "CLOSED";
|
|
7938
|
-
error.value = e;
|
|
7939
|
-
};
|
|
7940
|
-
es.onmessage = e => {
|
|
7941
|
-
event.value = null;
|
|
7942
|
-
data.value = e.data;
|
|
7943
|
-
};
|
|
7944
|
-
for (const event_name of events) {
|
|
7945
|
-
useEventListener(es, event_name, e => {
|
|
7946
|
-
event.value = event_name;
|
|
7947
|
-
data.value = e.data || null;
|
|
8036
|
+
const _init = () => {
|
|
8037
|
+
if (explicitlyClosed || typeof urlRef.value === "undefined") return;
|
|
8038
|
+
const es = new EventSource(urlRef.value, {
|
|
8039
|
+
withCredentials
|
|
7948
8040
|
});
|
|
7949
|
-
|
|
7950
|
-
|
|
8041
|
+
status.value = "CONNECTING";
|
|
8042
|
+
eventSource.value = es;
|
|
8043
|
+
es.onopen = () => {
|
|
8044
|
+
status.value = "OPEN";
|
|
8045
|
+
error.value = null;
|
|
8046
|
+
};
|
|
8047
|
+
es.onerror = e => {
|
|
8048
|
+
status.value = "CLOSED";
|
|
8049
|
+
error.value = e;
|
|
8050
|
+
if (es.readyState === 2 && !explicitlyClosed && options.autoReconnect) {
|
|
8051
|
+
es.close();
|
|
8052
|
+
const {
|
|
8053
|
+
retries = -1,
|
|
8054
|
+
delay = 1e3,
|
|
8055
|
+
onFailed
|
|
8056
|
+
} = resolveNestedOptions$1(options.autoReconnect);
|
|
8057
|
+
retried += 1;
|
|
8058
|
+
if (typeof retries === "number" && (retries < 0 || retried < retries)) setTimeout(_init, delay);else if (typeof retries === "function" && retries()) setTimeout(_init, delay);else onFailed == null ? void 0 : onFailed();
|
|
8059
|
+
}
|
|
8060
|
+
};
|
|
8061
|
+
es.onmessage = e => {
|
|
8062
|
+
event.value = null;
|
|
8063
|
+
data.value = e.data;
|
|
8064
|
+
};
|
|
8065
|
+
for (const event_name of events) {
|
|
8066
|
+
useEventListener(es, event_name, e => {
|
|
8067
|
+
event.value = event_name;
|
|
8068
|
+
data.value = e.data || null;
|
|
8069
|
+
});
|
|
8070
|
+
}
|
|
8071
|
+
};
|
|
8072
|
+
const open = () => {
|
|
8073
|
+
if (!isClient) return;
|
|
7951
8074
|
close();
|
|
8075
|
+
explicitlyClosed = false;
|
|
8076
|
+
retried = 0;
|
|
8077
|
+
_init();
|
|
8078
|
+
};
|
|
8079
|
+
if (immediate) watch(urlRef, open, {
|
|
8080
|
+
immediate: true
|
|
7952
8081
|
});
|
|
8082
|
+
tryOnScopeDispose(close);
|
|
7953
8083
|
return {
|
|
7954
8084
|
eventSource,
|
|
7955
8085
|
event,
|
|
7956
8086
|
data,
|
|
7957
8087
|
status,
|
|
7958
8088
|
error,
|
|
8089
|
+
open,
|
|
7959
8090
|
close
|
|
7960
8091
|
};
|
|
7961
8092
|
}
|
|
@@ -8017,7 +8148,7 @@ function isAbsoluteURL(url) {
|
|
|
8017
8148
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
8018
8149
|
}
|
|
8019
8150
|
function headersToObject(headers) {
|
|
8020
|
-
if (typeof Headers !== "undefined" && headers instanceof Headers) return Object.fromEntries(
|
|
8151
|
+
if (typeof Headers !== "undefined" && headers instanceof Headers) return Object.fromEntries(headers.entries());
|
|
8021
8152
|
return headers;
|
|
8022
8153
|
}
|
|
8023
8154
|
function combineCallbacks(combination, ...callbacks) {
|
|
@@ -8152,7 +8283,7 @@ function useFetch(url, ...args) {
|
|
|
8152
8283
|
});
|
|
8153
8284
|
let executeCounter = 0;
|
|
8154
8285
|
const execute = async (throwOnFailed = false) => {
|
|
8155
|
-
var _a2;
|
|
8286
|
+
var _a2, _b;
|
|
8156
8287
|
abort();
|
|
8157
8288
|
loading(true);
|
|
8158
8289
|
error.value = null;
|
|
@@ -8189,56 +8320,53 @@ function useFetch(url, ...args) {
|
|
|
8189
8320
|
}
|
|
8190
8321
|
let responseData = null;
|
|
8191
8322
|
if (timer) timer.start();
|
|
8192
|
-
return
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
...
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
if (timer) timer.stop();
|
|
8240
|
-
finallyEvent.trigger(null);
|
|
8241
|
-
});
|
|
8323
|
+
return fetch(context.url, {
|
|
8324
|
+
...defaultFetchOptions,
|
|
8325
|
+
...context.options,
|
|
8326
|
+
headers: {
|
|
8327
|
+
...headersToObject(defaultFetchOptions.headers),
|
|
8328
|
+
...headersToObject((_b = context.options) == null ? void 0 : _b.headers)
|
|
8329
|
+
}
|
|
8330
|
+
}).then(async fetchResponse => {
|
|
8331
|
+
response.value = fetchResponse;
|
|
8332
|
+
statusCode.value = fetchResponse.status;
|
|
8333
|
+
responseData = await fetchResponse.clone()[config.type]();
|
|
8334
|
+
if (!fetchResponse.ok) {
|
|
8335
|
+
data.value = initialData || null;
|
|
8336
|
+
throw new Error(fetchResponse.statusText);
|
|
8337
|
+
}
|
|
8338
|
+
if (options.afterFetch) {
|
|
8339
|
+
({
|
|
8340
|
+
data: responseData
|
|
8341
|
+
} = await options.afterFetch({
|
|
8342
|
+
data: responseData,
|
|
8343
|
+
response: fetchResponse
|
|
8344
|
+
}));
|
|
8345
|
+
}
|
|
8346
|
+
data.value = responseData;
|
|
8347
|
+
responseEvent.trigger(fetchResponse);
|
|
8348
|
+
return fetchResponse;
|
|
8349
|
+
}).catch(async fetchError => {
|
|
8350
|
+
let errorData = fetchError.message || fetchError.name;
|
|
8351
|
+
if (options.onFetchError) {
|
|
8352
|
+
({
|
|
8353
|
+
error: errorData,
|
|
8354
|
+
data: responseData
|
|
8355
|
+
} = await options.onFetchError({
|
|
8356
|
+
data: responseData,
|
|
8357
|
+
error: fetchError,
|
|
8358
|
+
response: response.value
|
|
8359
|
+
}));
|
|
8360
|
+
}
|
|
8361
|
+
error.value = errorData;
|
|
8362
|
+
if (options.updateDataOnError) data.value = responseData;
|
|
8363
|
+
errorEvent.trigger(fetchError);
|
|
8364
|
+
if (throwOnFailed) throw fetchError;
|
|
8365
|
+
return null;
|
|
8366
|
+
}).finally(() => {
|
|
8367
|
+
if (currentExecuteCounter === executeCounter) loading(false);
|
|
8368
|
+
if (timer) timer.stop();
|
|
8369
|
+
finallyEvent.trigger(null);
|
|
8242
8370
|
});
|
|
8243
8371
|
};
|
|
8244
8372
|
const refetch = toRef(options.refetch);
|
|
@@ -8246,12 +8374,12 @@ function useFetch(url, ...args) {
|
|
|
8246
8374
|
deep: true
|
|
8247
8375
|
});
|
|
8248
8376
|
const shell = {
|
|
8249
|
-
isFinished,
|
|
8377
|
+
isFinished: readonly(isFinished),
|
|
8378
|
+
isFetching: readonly(isFetching),
|
|
8250
8379
|
statusCode,
|
|
8251
8380
|
response,
|
|
8252
8381
|
error,
|
|
8253
8382
|
data,
|
|
8254
|
-
isFetching,
|
|
8255
8383
|
canAbort,
|
|
8256
8384
|
aborted,
|
|
8257
8385
|
abort,
|
|
@@ -8353,7 +8481,10 @@ function useFileDialog(options = {}) {
|
|
|
8353
8481
|
}
|
|
8354
8482
|
const reset = () => {
|
|
8355
8483
|
files.value = null;
|
|
8356
|
-
if (input)
|
|
8484
|
+
if (input) {
|
|
8485
|
+
input.value = "";
|
|
8486
|
+
trigger(null);
|
|
8487
|
+
}
|
|
8357
8488
|
};
|
|
8358
8489
|
const open = localOptions => {
|
|
8359
8490
|
if (!input) return;
|
|
@@ -8409,7 +8540,6 @@ function useFileSystemAccess(options = {}) {
|
|
|
8409
8540
|
..._options
|
|
8410
8541
|
});
|
|
8411
8542
|
fileHandle.value = handle;
|
|
8412
|
-
await updateFile();
|
|
8413
8543
|
await updateData();
|
|
8414
8544
|
}
|
|
8415
8545
|
async function create(_options = {}) {
|
|
@@ -8419,7 +8549,6 @@ function useFileSystemAccess(options = {}) {
|
|
|
8419
8549
|
..._options
|
|
8420
8550
|
});
|
|
8421
8551
|
data.value = void 0;
|
|
8422
|
-
await updateFile();
|
|
8423
8552
|
await updateData();
|
|
8424
8553
|
}
|
|
8425
8554
|
async function save(_options = {}) {
|
|
@@ -8451,6 +8580,7 @@ function useFileSystemAccess(options = {}) {
|
|
|
8451
8580
|
}
|
|
8452
8581
|
async function updateData() {
|
|
8453
8582
|
var _a, _b;
|
|
8583
|
+
await updateFile();
|
|
8454
8584
|
const type = toValue(dataType);
|
|
8455
8585
|
if (type === "Text") data.value = await ((_a = file.value) == null ? void 0 : _a.text());else if (type === "ArrayBuffer") data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer());else if (type === "Blob") data.value = file.value;
|
|
8456
8586
|
}
|
|
@@ -8669,19 +8799,14 @@ function useGamepad(options = {}) {
|
|
|
8669
8799
|
pressed: button.pressed,
|
|
8670
8800
|
touched: button.touched,
|
|
8671
8801
|
value: button.value
|
|
8672
|
-
}))
|
|
8802
|
+
})),
|
|
8803
|
+
index: gamepad.index
|
|
8673
8804
|
};
|
|
8674
8805
|
};
|
|
8675
8806
|
const updateGamepadState = () => {
|
|
8676
8807
|
const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];
|
|
8677
|
-
for (
|
|
8678
|
-
|
|
8679
|
-
if (gamepad) {
|
|
8680
|
-
const index = gamepads.value.findIndex(({
|
|
8681
|
-
index: index2
|
|
8682
|
-
}) => index2 === gamepad.index);
|
|
8683
|
-
if (index > -1) gamepads.value[index] = stateFromGamepad(gamepad);
|
|
8684
|
-
}
|
|
8808
|
+
for (const gamepad of _gamepads) {
|
|
8809
|
+
if (gamepad && gamepads.value[gamepad.index]) gamepads.value[gamepad.index] = stateFromGamepad(gamepad);
|
|
8685
8810
|
}
|
|
8686
8811
|
};
|
|
8687
8812
|
const {
|
|
@@ -8706,11 +8831,8 @@ function useGamepad(options = {}) {
|
|
|
8706
8831
|
useEventListener("gamepaddisconnected", e => onGamepadDisconnected(e.gamepad));
|
|
8707
8832
|
tryOnMounted(() => {
|
|
8708
8833
|
const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
const gamepad = _gamepads[i];
|
|
8712
|
-
if (gamepad) onGamepadConnected(gamepad);
|
|
8713
|
-
}
|
|
8834
|
+
for (const gamepad of _gamepads) {
|
|
8835
|
+
if (gamepad && gamepads.value[gamepad.index]) onGamepadConnected(gamepad);
|
|
8714
8836
|
}
|
|
8715
8837
|
});
|
|
8716
8838
|
pause();
|
|
@@ -8866,7 +8988,10 @@ function useScroll(element, options = {}) {
|
|
|
8866
8988
|
passive: true
|
|
8867
8989
|
},
|
|
8868
8990
|
behavior = "auto",
|
|
8869
|
-
window = defaultWindow
|
|
8991
|
+
window = defaultWindow,
|
|
8992
|
+
onError = e => {
|
|
8993
|
+
console.error(e);
|
|
8994
|
+
}
|
|
8870
8995
|
} = options;
|
|
8871
8996
|
const internalX = ref(0);
|
|
8872
8997
|
const internalY = ref(0);
|
|
@@ -8923,7 +9048,7 @@ function useScroll(element, options = {}) {
|
|
|
8923
9048
|
const setArrivedState = target => {
|
|
8924
9049
|
var _a;
|
|
8925
9050
|
if (!window) return;
|
|
8926
|
-
const el = target
|
|
9051
|
+
const el = ((_a = target == null ? void 0 : target.document) == null ? void 0 : _a.documentElement) || (target == null ? void 0 : target.documentElement) || unrefElement(target);
|
|
8927
9052
|
const {
|
|
8928
9053
|
display,
|
|
8929
9054
|
flexDirection
|
|
@@ -8931,7 +9056,7 @@ function useScroll(element, options = {}) {
|
|
|
8931
9056
|
const scrollLeft = el.scrollLeft;
|
|
8932
9057
|
directions.left = scrollLeft < internalX.value;
|
|
8933
9058
|
directions.right = scrollLeft > internalX.value;
|
|
8934
|
-
const left = Math.abs(scrollLeft) <=
|
|
9059
|
+
const left = Math.abs(scrollLeft) <= (offset.left || 0);
|
|
8935
9060
|
const right = Math.abs(scrollLeft) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
8936
9061
|
if (display === "flex" && flexDirection === "row-reverse") {
|
|
8937
9062
|
arrivedState.left = right;
|
|
@@ -8945,7 +9070,7 @@ function useScroll(element, options = {}) {
|
|
|
8945
9070
|
if (target === window.document && !scrollTop) scrollTop = window.document.body.scrollTop;
|
|
8946
9071
|
directions.top = scrollTop < internalY.value;
|
|
8947
9072
|
directions.bottom = scrollTop > internalY.value;
|
|
8948
|
-
const top = Math.abs(scrollTop) <=
|
|
9073
|
+
const top = Math.abs(scrollTop) <= (offset.top || 0);
|
|
8949
9074
|
const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
8950
9075
|
if (display === "flex" && flexDirection === "column-reverse") {
|
|
8951
9076
|
arrivedState.top = bottom;
|
|
@@ -8967,9 +9092,13 @@ function useScroll(element, options = {}) {
|
|
|
8967
9092
|
};
|
|
8968
9093
|
useEventListener(element, "scroll", throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler, eventListenerOptions);
|
|
8969
9094
|
tryOnMounted(() => {
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
9095
|
+
try {
|
|
9096
|
+
const _element = toValue(element);
|
|
9097
|
+
if (!_element) return;
|
|
9098
|
+
setArrivedState(_element);
|
|
9099
|
+
} catch (e) {
|
|
9100
|
+
onError(e);
|
|
9101
|
+
}
|
|
8973
9102
|
});
|
|
8974
9103
|
useEventListener(element, "scrollend", onScrollEnd, eventListenerOptions);
|
|
8975
9104
|
return {
|
|
@@ -8993,7 +9122,8 @@ function useInfiniteScroll(element, onLoadMore, options = {}) {
|
|
|
8993
9122
|
var _a;
|
|
8994
9123
|
const {
|
|
8995
9124
|
direction = "bottom",
|
|
8996
|
-
interval = 100
|
|
9125
|
+
interval = 100,
|
|
9126
|
+
canLoadMore = () => true
|
|
8997
9127
|
} = options;
|
|
8998
9128
|
const state = reactive(useScroll(element, {
|
|
8999
9129
|
...options,
|
|
@@ -9010,7 +9140,7 @@ function useInfiniteScroll(element, onLoadMore, options = {}) {
|
|
|
9010
9140
|
const isElementVisible = useElementVisibility(observedElement);
|
|
9011
9141
|
function checkAndLoad() {
|
|
9012
9142
|
state.measure();
|
|
9013
|
-
if (!observedElement.value || !isElementVisible.value) return;
|
|
9143
|
+
if (!observedElement.value || !isElementVisible.value || !canLoadMore(observedElement.value)) return;
|
|
9014
9144
|
const {
|
|
9015
9145
|
scrollHeight,
|
|
9016
9146
|
clientHeight,
|
|
@@ -9389,7 +9519,7 @@ function useMediaControls(target, options = {}) {
|
|
|
9389
9519
|
};
|
|
9390
9520
|
}
|
|
9391
9521
|
function getMapVue2Compat() {
|
|
9392
|
-
const data =
|
|
9522
|
+
const data = shallowReactive({});
|
|
9393
9523
|
return {
|
|
9394
9524
|
get: key => data[key],
|
|
9395
9525
|
set: (key, value) => set(data, key, value),
|
|
@@ -9404,9 +9534,9 @@ function getMapVue2Compat() {
|
|
|
9404
9534
|
}
|
|
9405
9535
|
function useMemoize(resolver, options) {
|
|
9406
9536
|
const initCache = () => {
|
|
9407
|
-
if (options == null ? void 0 : options.cache) return
|
|
9537
|
+
if (options == null ? void 0 : options.cache) return shallowReactive(options.cache);
|
|
9408
9538
|
if (isVue2) return getMapVue2Compat();
|
|
9409
|
-
return
|
|
9539
|
+
return shallowReactive( /* @__PURE__ */new Map());
|
|
9410
9540
|
};
|
|
9411
9541
|
const cache = initCache();
|
|
9412
9542
|
const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args);
|
|
@@ -9792,8 +9922,16 @@ function useOffsetPagination(options) {
|
|
|
9792
9922
|
const currentPage = useClamp(page, 1, pageCount);
|
|
9793
9923
|
const isFirstPage = computed(() => currentPage.value === 1);
|
|
9794
9924
|
const isLastPage = computed(() => currentPage.value === pageCount.value);
|
|
9795
|
-
if (isRef(page))
|
|
9796
|
-
|
|
9925
|
+
if (isRef(page)) {
|
|
9926
|
+
syncRef(page, currentPage, {
|
|
9927
|
+
direction: isReadonly(page) ? "ltr" : "both"
|
|
9928
|
+
});
|
|
9929
|
+
}
|
|
9930
|
+
if (isRef(pageSize)) {
|
|
9931
|
+
syncRef(pageSize, currentPageSize, {
|
|
9932
|
+
direction: isReadonly(pageSize) ? "ltr" : "both"
|
|
9933
|
+
});
|
|
9934
|
+
}
|
|
9797
9935
|
function prev() {
|
|
9798
9936
|
currentPage.value--;
|
|
9799
9937
|
}
|
|
@@ -9850,6 +9988,35 @@ function usePageLeave(options = {}) {
|
|
|
9850
9988
|
}
|
|
9851
9989
|
return isLeft;
|
|
9852
9990
|
}
|
|
9991
|
+
function useScreenOrientation(options = {}) {
|
|
9992
|
+
const {
|
|
9993
|
+
window = defaultWindow
|
|
9994
|
+
} = options;
|
|
9995
|
+
const isSupported = useSupported(() => window && "screen" in window && "orientation" in window.screen);
|
|
9996
|
+
const screenOrientation = isSupported.value ? window.screen.orientation : {};
|
|
9997
|
+
const orientation = ref(screenOrientation.type);
|
|
9998
|
+
const angle = ref(screenOrientation.angle || 0);
|
|
9999
|
+
if (isSupported.value) {
|
|
10000
|
+
useEventListener(window, "orientationchange", () => {
|
|
10001
|
+
orientation.value = screenOrientation.type;
|
|
10002
|
+
angle.value = screenOrientation.angle;
|
|
10003
|
+
});
|
|
10004
|
+
}
|
|
10005
|
+
const lockOrientation = type => {
|
|
10006
|
+
if (isSupported.value && typeof screenOrientation.lock === "function") return screenOrientation.lock(type);
|
|
10007
|
+
return Promise.reject(new Error("Not supported"));
|
|
10008
|
+
};
|
|
10009
|
+
const unlockOrientation = () => {
|
|
10010
|
+
if (isSupported.value && typeof screenOrientation.unlock === "function") screenOrientation.unlock();
|
|
10011
|
+
};
|
|
10012
|
+
return {
|
|
10013
|
+
isSupported,
|
|
10014
|
+
orientation,
|
|
10015
|
+
angle,
|
|
10016
|
+
lockOrientation,
|
|
10017
|
+
unlockOrientation
|
|
10018
|
+
};
|
|
10019
|
+
}
|
|
9853
10020
|
function useParallax(target, options = {}) {
|
|
9854
10021
|
const {
|
|
9855
10022
|
deviceOrientationTiltAdjust = i => i,
|
|
@@ -9861,6 +10028,9 @@ function useParallax(target, options = {}) {
|
|
|
9861
10028
|
const orientation = reactive(useDeviceOrientation({
|
|
9862
10029
|
window
|
|
9863
10030
|
}));
|
|
10031
|
+
const screenOrientation = reactive(useScreenOrientation({
|
|
10032
|
+
window
|
|
10033
|
+
}));
|
|
9864
10034
|
const {
|
|
9865
10035
|
elementX: x,
|
|
9866
10036
|
elementY: y,
|
|
@@ -9876,7 +10046,23 @@ function useParallax(target, options = {}) {
|
|
|
9876
10046
|
});
|
|
9877
10047
|
const roll = computed(() => {
|
|
9878
10048
|
if (source.value === "deviceOrientation") {
|
|
9879
|
-
|
|
10049
|
+
let value;
|
|
10050
|
+
switch (screenOrientation.orientation) {
|
|
10051
|
+
case "landscape-primary":
|
|
10052
|
+
value = orientation.gamma / 90;
|
|
10053
|
+
break;
|
|
10054
|
+
case "landscape-secondary":
|
|
10055
|
+
value = -orientation.gamma / 90;
|
|
10056
|
+
break;
|
|
10057
|
+
case "portrait-primary":
|
|
10058
|
+
value = -orientation.beta / 90;
|
|
10059
|
+
break;
|
|
10060
|
+
case "portrait-secondary":
|
|
10061
|
+
value = orientation.beta / 90;
|
|
10062
|
+
break;
|
|
10063
|
+
default:
|
|
10064
|
+
value = -orientation.beta / 90;
|
|
10065
|
+
}
|
|
9880
10066
|
return deviceOrientationRollAdjust(value);
|
|
9881
10067
|
} else {
|
|
9882
10068
|
const value = -(y.value - height.value / 2) / height.value;
|
|
@@ -9885,7 +10071,23 @@ function useParallax(target, options = {}) {
|
|
|
9885
10071
|
});
|
|
9886
10072
|
const tilt = computed(() => {
|
|
9887
10073
|
if (source.value === "deviceOrientation") {
|
|
9888
|
-
|
|
10074
|
+
let value;
|
|
10075
|
+
switch (screenOrientation.orientation) {
|
|
10076
|
+
case "landscape-primary":
|
|
10077
|
+
value = orientation.beta / 90;
|
|
10078
|
+
break;
|
|
10079
|
+
case "landscape-secondary":
|
|
10080
|
+
value = -orientation.beta / 90;
|
|
10081
|
+
break;
|
|
10082
|
+
case "portrait-primary":
|
|
10083
|
+
value = orientation.gamma / 90;
|
|
10084
|
+
break;
|
|
10085
|
+
case "portrait-secondary":
|
|
10086
|
+
value = -orientation.gamma / 90;
|
|
10087
|
+
break;
|
|
10088
|
+
default:
|
|
10089
|
+
value = orientation.gamma / 90;
|
|
10090
|
+
}
|
|
9889
10091
|
return deviceOrientationTiltAdjust(value);
|
|
9890
10092
|
} else {
|
|
9891
10093
|
const value = (x.value - width.value / 2) / width.value;
|
|
@@ -9973,8 +10175,7 @@ function usePointer(options = {}) {
|
|
|
9973
10175
|
}
|
|
9974
10176
|
function usePointerLock(target, options = {}) {
|
|
9975
10177
|
const {
|
|
9976
|
-
document = defaultDocument
|
|
9977
|
-
pointerLockOptions
|
|
10178
|
+
document = defaultDocument
|
|
9978
10179
|
} = options;
|
|
9979
10180
|
const isSupported = useSupported(() => document && "pointerLockElement" in document);
|
|
9980
10181
|
const element = ref();
|
|
@@ -9998,13 +10199,13 @@ function usePointerLock(target, options = {}) {
|
|
|
9998
10199
|
}
|
|
9999
10200
|
});
|
|
10000
10201
|
}
|
|
10001
|
-
async function lock(e
|
|
10202
|
+
async function lock(e) {
|
|
10002
10203
|
var _a;
|
|
10003
10204
|
if (!isSupported.value) throw new Error("Pointer Lock API is not supported by your browser.");
|
|
10004
10205
|
triggerElement.value = e instanceof Event ? e.currentTarget : null;
|
|
10005
10206
|
targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e);
|
|
10006
10207
|
if (!targetElement) throw new Error("Target element undefined.");
|
|
10007
|
-
targetElement.requestPointerLock(
|
|
10208
|
+
targetElement.requestPointerLock();
|
|
10008
10209
|
return await until(element).toBe(targetElement);
|
|
10009
10210
|
}
|
|
10010
10211
|
async function unlock() {
|
|
@@ -10027,7 +10228,8 @@ function usePointerSwipe(target, options = {}) {
|
|
|
10027
10228
|
threshold = 50,
|
|
10028
10229
|
onSwipe,
|
|
10029
10230
|
onSwipeEnd,
|
|
10030
|
-
onSwipeStart
|
|
10231
|
+
onSwipeStart,
|
|
10232
|
+
disableTextSelect = false
|
|
10031
10233
|
} = options;
|
|
10032
10234
|
const posStart = reactive({
|
|
10033
10235
|
x: 0,
|
|
@@ -10069,10 +10271,8 @@ function usePointerSwipe(target, options = {}) {
|
|
|
10069
10271
|
return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true;
|
|
10070
10272
|
};
|
|
10071
10273
|
const stops = [useEventListener(target, "pointerdown", e => {
|
|
10072
|
-
var _a, _b;
|
|
10073
10274
|
if (!eventIsAllowed(e)) return;
|
|
10074
10275
|
isPointerDown.value = true;
|
|
10075
|
-
(_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "none");
|
|
10076
10276
|
const eventTarget = e.target;
|
|
10077
10277
|
eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId);
|
|
10078
10278
|
const {
|
|
@@ -10093,13 +10293,20 @@ function usePointerSwipe(target, options = {}) {
|
|
|
10093
10293
|
if (!isSwiping.value && isThresholdExceeded.value) isSwiping.value = true;
|
|
10094
10294
|
if (isSwiping.value) onSwipe == null ? void 0 : onSwipe(e);
|
|
10095
10295
|
}), useEventListener(target, "pointerup", e => {
|
|
10096
|
-
var _a, _b;
|
|
10097
10296
|
if (!eventIsAllowed(e)) return;
|
|
10098
10297
|
if (isSwiping.value) onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);
|
|
10099
10298
|
isPointerDown.value = false;
|
|
10100
10299
|
isSwiping.value = false;
|
|
10101
|
-
(_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "initial");
|
|
10102
10300
|
})];
|
|
10301
|
+
tryOnMounted(() => {
|
|
10302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10303
|
+
(_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "none");
|
|
10304
|
+
if (disableTextSelect) {
|
|
10305
|
+
(_d = (_c = targetRef.value) == null ? void 0 : _c.style) == null ? void 0 : _d.setProperty("-webkit-user-select", "none");
|
|
10306
|
+
(_f = (_e = targetRef.value) == null ? void 0 : _e.style) == null ? void 0 : _f.setProperty("-ms-user-select", "none");
|
|
10307
|
+
(_h = (_g = targetRef.value) == null ? void 0 : _g.style) == null ? void 0 : _h.setProperty("user-select", "none");
|
|
10308
|
+
}
|
|
10309
|
+
});
|
|
10103
10310
|
const stop = () => stops.forEach(s => s());
|
|
10104
10311
|
return {
|
|
10105
10312
|
isSwiping: readonly(isSwiping),
|
|
@@ -10159,35 +10366,6 @@ function usePrevious(value, initialValue) {
|
|
|
10159
10366
|
});
|
|
10160
10367
|
return readonly(previous);
|
|
10161
10368
|
}
|
|
10162
|
-
function useScreenOrientation(options = {}) {
|
|
10163
|
-
const {
|
|
10164
|
-
window = defaultWindow
|
|
10165
|
-
} = options;
|
|
10166
|
-
const isSupported = useSupported(() => window && "screen" in window && "orientation" in window.screen);
|
|
10167
|
-
const screenOrientation = isSupported.value ? window.screen.orientation : {};
|
|
10168
|
-
const orientation = ref(screenOrientation.type);
|
|
10169
|
-
const angle = ref(screenOrientation.angle || 0);
|
|
10170
|
-
if (isSupported.value) {
|
|
10171
|
-
useEventListener(window, "orientationchange", () => {
|
|
10172
|
-
orientation.value = screenOrientation.type;
|
|
10173
|
-
angle.value = screenOrientation.angle;
|
|
10174
|
-
});
|
|
10175
|
-
}
|
|
10176
|
-
const lockOrientation = type => {
|
|
10177
|
-
if (!isSupported.value) return Promise.reject(new Error("Not supported"));
|
|
10178
|
-
return screenOrientation.lock(type);
|
|
10179
|
-
};
|
|
10180
|
-
const unlockOrientation = () => {
|
|
10181
|
-
if (isSupported.value) screenOrientation.unlock();
|
|
10182
|
-
};
|
|
10183
|
-
return {
|
|
10184
|
-
isSupported,
|
|
10185
|
-
orientation,
|
|
10186
|
-
angle,
|
|
10187
|
-
lockOrientation,
|
|
10188
|
-
unlockOrientation
|
|
10189
|
-
};
|
|
10190
|
-
}
|
|
10191
10369
|
const topVarName = "--vueuse-safe-area-top";
|
|
10192
10370
|
const rightVarName = "--vueuse-safe-area-right";
|
|
10193
10371
|
const bottomVarName = "--vueuse-safe-area-bottom";
|
|
@@ -10318,12 +10496,11 @@ const elInitialOverflow = /* @__PURE__ */new WeakMap();
|
|
|
10318
10496
|
function useScrollLock(element, initialState = false) {
|
|
10319
10497
|
const isLocked = ref(initialState);
|
|
10320
10498
|
let stopTouchMoveListener = null;
|
|
10321
|
-
let initialOverflow;
|
|
10322
10499
|
watch(toRef(element), el => {
|
|
10323
10500
|
const target = resolveElement(toValue(el));
|
|
10324
10501
|
if (target) {
|
|
10325
10502
|
const ele = target;
|
|
10326
|
-
if (!elInitialOverflow.get(ele)) elInitialOverflow.set(ele,
|
|
10503
|
+
if (!elInitialOverflow.get(ele)) elInitialOverflow.set(ele, ele.style.overflow);
|
|
10327
10504
|
if (isLocked.value) ele.style.overflow = "hidden";
|
|
10328
10505
|
}
|
|
10329
10506
|
}, {
|
|
@@ -10663,7 +10840,7 @@ function useStorageAsync(key, initialValue, storage, options = {}) {
|
|
|
10663
10840
|
const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];
|
|
10664
10841
|
if (!storage) {
|
|
10665
10842
|
try {
|
|
10666
|
-
storage = getSSRHandler("
|
|
10843
|
+
storage = getSSRHandler("getDefaultStorageAsync", () => {
|
|
10667
10844
|
var _a2;
|
|
10668
10845
|
return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;
|
|
10669
10846
|
})();
|
|
@@ -10919,17 +11096,19 @@ function useTextSelection(options = {}) {
|
|
|
10919
11096
|
};
|
|
10920
11097
|
}
|
|
10921
11098
|
function useTextareaAutosize(options) {
|
|
11099
|
+
var _a;
|
|
10922
11100
|
const textarea = ref(options == null ? void 0 : options.element);
|
|
10923
11101
|
const input = ref(options == null ? void 0 : options.input);
|
|
11102
|
+
const styleProp = (_a = options == null ? void 0 : options.styleProp) != null ? _a : "height";
|
|
10924
11103
|
const textareaScrollHeight = ref(1);
|
|
10925
11104
|
function triggerResize() {
|
|
10926
|
-
var
|
|
11105
|
+
var _a2, _b;
|
|
10927
11106
|
if (!textarea.value) return;
|
|
10928
11107
|
let height = "";
|
|
10929
|
-
textarea.value.style
|
|
10930
|
-
textareaScrollHeight.value = (
|
|
10931
|
-
if (options == null ? void 0 : options.styleTarget) toValue(options.styleTarget).style
|
|
10932
|
-
textarea.value.style
|
|
11108
|
+
textarea.value.style[styleProp] = "1px";
|
|
11109
|
+
textareaScrollHeight.value = (_a2 = textarea.value) == null ? void 0 : _a2.scrollHeight;
|
|
11110
|
+
if (options == null ? void 0 : options.styleTarget) toValue(options.styleTarget).style[styleProp] = `${textareaScrollHeight.value}px`;else height = `${textareaScrollHeight.value}px`;
|
|
11111
|
+
textarea.value.style[styleProp] = height;
|
|
10933
11112
|
(_b = options == null ? void 0 : options.onResize) == null ? void 0 : _b.call(options);
|
|
10934
11113
|
}
|
|
10935
11114
|
watch([input, textarea], () => nextTick(triggerResize), {
|
|
@@ -11125,11 +11304,13 @@ function useTimestamp(options = {}) {
|
|
|
11125
11304
|
}
|
|
11126
11305
|
}
|
|
11127
11306
|
function useTitle(newTitle = null, options = {}) {
|
|
11128
|
-
var _a, _b;
|
|
11307
|
+
var _a, _b, _c;
|
|
11129
11308
|
const {
|
|
11130
|
-
document = defaultDocument
|
|
11309
|
+
document = defaultDocument,
|
|
11310
|
+
restoreOnUnmount = t => t
|
|
11131
11311
|
} = options;
|
|
11132
|
-
const
|
|
11312
|
+
const originalTitle = (_a = document == null ? void 0 : document.title) != null ? _a : "";
|
|
11313
|
+
const title = toRef((_b = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _b : null);
|
|
11133
11314
|
const isReadonly = newTitle && typeof newTitle === "function";
|
|
11134
11315
|
function format(t) {
|
|
11135
11316
|
if (!("titleTemplate" in options)) return t;
|
|
@@ -11142,12 +11323,18 @@ function useTitle(newTitle = null, options = {}) {
|
|
|
11142
11323
|
immediate: true
|
|
11143
11324
|
});
|
|
11144
11325
|
if (options.observe && !options.titleTemplate && document && !isReadonly) {
|
|
11145
|
-
useMutationObserver((
|
|
11326
|
+
useMutationObserver((_c = document.head) == null ? void 0 : _c.querySelector("title"), () => {
|
|
11146
11327
|
if (document && document.title !== title.value) title.value = format(document.title);
|
|
11147
11328
|
}, {
|
|
11148
11329
|
childList: true
|
|
11149
11330
|
});
|
|
11150
11331
|
}
|
|
11332
|
+
tryOnBeforeUnmount(() => {
|
|
11333
|
+
if (restoreOnUnmount) {
|
|
11334
|
+
const restoredTitle = restoreOnUnmount(originalTitle, title.value || "");
|
|
11335
|
+
if (restoredTitle != null && document) document.title = restoredTitle;
|
|
11336
|
+
}
|
|
11337
|
+
});
|
|
11151
11338
|
return title;
|
|
11152
11339
|
}
|
|
11153
11340
|
const _TransitionPresets = {
|
|
@@ -11410,6 +11597,9 @@ function useUserMedia(options = {}) {
|
|
|
11410
11597
|
}, {
|
|
11411
11598
|
immediate: true
|
|
11412
11599
|
});
|
|
11600
|
+
tryOnScopeDispose(() => {
|
|
11601
|
+
stop();
|
|
11602
|
+
});
|
|
11413
11603
|
return {
|
|
11414
11604
|
isSupported,
|
|
11415
11605
|
stream,
|
|
@@ -11878,6 +12068,7 @@ function useWebSocket(url, options = {}) {
|
|
|
11878
12068
|
resetHeartbeat();
|
|
11879
12069
|
heartbeatPause == null ? void 0 : heartbeatPause();
|
|
11880
12070
|
wsRef.value.close(code, reason);
|
|
12071
|
+
wsRef.value = void 0;
|
|
11881
12072
|
};
|
|
11882
12073
|
const send = (data2, useBuffer = true) => {
|
|
11883
12074
|
if (!wsRef.value || status.value !== "OPEN") {
|
|
@@ -11901,7 +12092,6 @@ function useWebSocket(url, options = {}) {
|
|
|
11901
12092
|
};
|
|
11902
12093
|
ws.onclose = ev => {
|
|
11903
12094
|
status.value = "CLOSED";
|
|
11904
|
-
wsRef.value = void 0;
|
|
11905
12095
|
onDisconnected == null ? void 0 : onDisconnected(ws, ev);
|
|
11906
12096
|
if (!explicitlyClosed && options.autoReconnect) {
|
|
11907
12097
|
const {
|
|
@@ -11961,9 +12151,7 @@ function useWebSocket(url, options = {}) {
|
|
|
11961
12151
|
retried = 0;
|
|
11962
12152
|
_init();
|
|
11963
12153
|
};
|
|
11964
|
-
if (immediate)
|
|
11965
|
-
immediate: true
|
|
11966
|
-
});
|
|
12154
|
+
if (immediate) open();
|
|
11967
12155
|
return {
|
|
11968
12156
|
data,
|
|
11969
12157
|
status,
|
|
@@ -12461,7 +12649,7 @@ function useWindowSize(options = {}) {
|
|
|
12461
12649
|
return [this.icon ? [] : ["e-dropdown-base", this.shadowClass, this.isDropdownOpen ? "exos-absolute exos-top-0 exos-left-0 exos-z-30" : "", this.bgColor ?? "exos-bg-secondary", this.bgDarkColor ?? ""]];
|
|
12462
12650
|
},
|
|
12463
12651
|
optionsClass() {
|
|
12464
|
-
return ["e-dropdown-options", this.
|
|
12652
|
+
return ["e-dropdown-options", this.roundedOptionsClass, this.textAlignClass, this.color ?? "exos-text-contentDark", this.darkColor ?? "dark:exos-text-content", this.colorHover ?? "hover:exos-text-white", this.darkColorHover ?? "dark:hover:exos-text-white", this.bgHoverColorOptions ?? "hover:exos-bg-secondary", this.bgHoverColorOptionsDark ?? "dark:hover:exos-bg-secondary"];
|
|
12465
12653
|
},
|
|
12466
12654
|
containerOptionsClass() {
|
|
12467
12655
|
const baseClasses = [this.shadowClass, this.roundedClass, this.$slots.contentDropdown ? this.customDropClass : ["e-dropdown-container-options", this.textTransformClass, this.divide ? ["exos-divide-y", this.divideColor ?? "exos-divide-gray-400"] : ""]];
|
|
@@ -12613,10 +12801,10 @@ function useWindowSize(options = {}) {
|
|
|
12613
12801
|
});
|
|
12614
12802
|
;// CONCATENATED MODULE: ./src/components/EDropdown.vue?vue&type=script&lang=js
|
|
12615
12803
|
|
|
12616
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EDropdown.vue?vue&type=style&index=0&id=
|
|
12804
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EDropdown.vue?vue&type=style&index=0&id=7a65c80f&scoped=true&lang=css
|
|
12617
12805
|
// extracted by mini-css-extract-plugin
|
|
12618
12806
|
|
|
12619
|
-
;// CONCATENATED MODULE: ./src/components/EDropdown.vue?vue&type=style&index=0&id=
|
|
12807
|
+
;// CONCATENATED MODULE: ./src/components/EDropdown.vue?vue&type=style&index=0&id=7a65c80f&scoped=true&lang=css
|
|
12620
12808
|
|
|
12621
12809
|
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EDropdown.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
12622
12810
|
var EDropdownvue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(4016);
|
|
@@ -12635,7 +12823,7 @@ if (typeof (EDropdownvue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
12635
12823
|
|
|
12636
12824
|
|
|
12637
12825
|
;
|
|
12638
|
-
const EDropdown_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EDropdownvue_type_script_lang_js, [['render',
|
|
12826
|
+
const EDropdown_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EDropdownvue_type_script_lang_js, [['render',EDropdownvue_type_template_id_7a65c80f_scoped_true_render],['__scopeId',"data-v-7a65c80f"]])
|
|
12639
12827
|
|
|
12640
12828
|
/* harmony default export */ var EDropdown = (EDropdown_exports_);
|
|
12641
12829
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EFileList.vue?vue&type=template&id=cc1fdb8c
|
|
@@ -12881,19 +13069,19 @@ if (typeof (EIconvue_type_custom_index_0_blockType_docs_lang_md_default()) === '
|
|
|
12881
13069
|
const EIcon_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EIconvue_type_script_lang_js, [['render',EIconvue_type_template_id_7c73c162_render]])
|
|
12882
13070
|
|
|
12883
13071
|
/* harmony default export */ var EIcon = (EIcon_exports_);
|
|
12884
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EInput.vue?vue&type=template&id=
|
|
13072
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EInput.vue?vue&type=template&id=4a868a9b&scoped=true
|
|
12885
13073
|
|
|
12886
|
-
const
|
|
12887
|
-
const
|
|
13074
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-4a868a9b"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
13075
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_1 = {
|
|
12888
13076
|
class: "exos-flex exos-flex-grow exos-relative"
|
|
12889
13077
|
};
|
|
12890
|
-
const
|
|
12891
|
-
const
|
|
12892
|
-
const
|
|
12893
|
-
const
|
|
13078
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_2 = ["type", "disabled", "id", "maxlength", "value"];
|
|
13079
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_3 = ["disabled", "maxlength", "value"];
|
|
13080
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_4 = ["for"];
|
|
13081
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_5 = {
|
|
12894
13082
|
key: 0
|
|
12895
13083
|
};
|
|
12896
|
-
const
|
|
13084
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_6 = {
|
|
12897
13085
|
key: 1,
|
|
12898
13086
|
class: "exos-w-4 exos-h-4 exos-text-secondary exos-opacity-60 hover:exos-opacity-100 dark:exos-text-white",
|
|
12899
13087
|
"aria-hidden": "true",
|
|
@@ -12901,26 +13089,26 @@ const EInputvue_type_template_id_68e43fbe_scoped_true_hoisted_6 = {
|
|
|
12901
13089
|
fill: "none",
|
|
12902
13090
|
viewBox: "0 0 15 15"
|
|
12903
13091
|
};
|
|
12904
|
-
const
|
|
13092
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_7 = /*#__PURE__*/EInputvue_type_template_id_4a868a9b_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
12905
13093
|
stroke: "currentColor",
|
|
12906
13094
|
"stroke-linecap": "round",
|
|
12907
13095
|
"stroke-linejoin": "round",
|
|
12908
13096
|
"stroke-width": "2",
|
|
12909
13097
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
12910
13098
|
}, null, -1));
|
|
12911
|
-
const
|
|
12912
|
-
const
|
|
13099
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_8 = [EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_7];
|
|
13100
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_9 = {
|
|
12913
13101
|
key: 1
|
|
12914
13102
|
};
|
|
12915
|
-
const
|
|
13103
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_10 = /*#__PURE__*/EInputvue_type_template_id_4a868a9b_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
12916
13104
|
stroke: "currentColor",
|
|
12917
13105
|
"stroke-linecap": "round",
|
|
12918
13106
|
"stroke-linejoin": "round",
|
|
12919
13107
|
"stroke-width": "2",
|
|
12920
13108
|
d: "M1.933 10.909A4.357 4.357 0 0 1 1 9c0-1 4-6 9-6m7.6 3.8A5.068 5.068 0 0 1 19 9c0 1-3 6-9 6-.314 0-.62-.014-.918-.04M2 17 18 1m-5 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
12921
13109
|
}, null, -1));
|
|
12922
|
-
const
|
|
12923
|
-
const
|
|
13110
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_11 = [EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_10];
|
|
13111
|
+
const EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_12 = /*#__PURE__*/EInputvue_type_template_id_4a868a9b_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("g", {
|
|
12924
13112
|
stroke: "currentColor",
|
|
12925
13113
|
"stroke-linecap": "round",
|
|
12926
13114
|
"stroke-linejoin": "round",
|
|
@@ -12930,7 +13118,7 @@ const EInputvue_type_template_id_68e43fbe_scoped_true_hoisted_12 = /*#__PURE__*/
|
|
|
12930
13118
|
}), /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
12931
13119
|
d: "M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"
|
|
12932
13120
|
})], -1));
|
|
12933
|
-
const _hoisted_13 = [
|
|
13121
|
+
const _hoisted_13 = [EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_12];
|
|
12934
13122
|
const _hoisted_14 = {
|
|
12935
13123
|
key: 0,
|
|
12936
13124
|
class: "e-input--error-message"
|
|
@@ -12939,8 +13127,8 @@ const _hoisted_15 = {
|
|
|
12939
13127
|
key: 1,
|
|
12940
13128
|
class: "e-input--error-message"
|
|
12941
13129
|
};
|
|
12942
|
-
function
|
|
12943
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
13130
|
+
function EInputvue_type_template_id_4a868a9b_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13131
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_1, [!this.textarea ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("input", {
|
|
12944
13132
|
key: 0,
|
|
12945
13133
|
placeholder: " ",
|
|
12946
13134
|
type: $data.inputType,
|
|
@@ -12954,7 +13142,7 @@ function EInputvue_type_template_id_68e43fbe_scoped_true_render(_ctx, _cache, $p
|
|
|
12954
13142
|
onFocus: _cache[1] || (_cache[1] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
12955
13143
|
onKeydown: _cache[2] || (_cache[2] = (...args) => $options.preventSpace && $options.preventSpace(...args)),
|
|
12956
13144
|
onInput: _cache[3] || (_cache[3] = (...args) => $options.clearAndEmitValue && $options.clearAndEmitValue(...args))
|
|
12957
|
-
}, null, 42,
|
|
13145
|
+
}, null, 42, EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), this.textarea ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("textarea", {
|
|
12958
13146
|
key: 1,
|
|
12959
13147
|
placeholder: " ",
|
|
12960
13148
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass),
|
|
@@ -12965,31 +13153,31 @@ function EInputvue_type_template_id_68e43fbe_scoped_true_render(_ctx, _cache, $p
|
|
|
12965
13153
|
onBlur: _cache[4] || (_cache[4] = (...args) => $options.onInputBlur && $options.onInputBlur(...args)),
|
|
12966
13154
|
onFocus: _cache[5] || (_cache[5] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
12967
13155
|
onInput: _cache[6] || (_cache[6] = (...args) => $options.clearAndEmitValue && $options.clearAndEmitValue(...args))
|
|
12968
|
-
}, null, 42,
|
|
13156
|
+
}, null, 42, EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
12969
13157
|
for: 'input-' + $props.label,
|
|
12970
13158
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.labelClass)
|
|
12971
13159
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
12972
13160
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.classBoxLabel)
|
|
12973
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span",
|
|
13161
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_5, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_4), !!$props.modelValue && !$props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12974
13162
|
key: 2,
|
|
12975
13163
|
onClick: _cache[7] || (_cache[7] = (...args) => $options.clean && $options.clean(...args)),
|
|
12976
13164
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['e-input-icon exos-animate-slide-down', $props.type == 'password' ? _ctx.$slots.icon && $props.iconRight ? 'exos-right-[4.25rem]' : 'exos-right-10' : [_ctx.$slots.icon ? 'exos-right-11' : 'exos-right-3'] ? $props.iconRight ? 'exos-right-11' : 'exos-right-3' : 0])
|
|
12977
13165
|
}, [_ctx.$slots.iconClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconClose", {
|
|
12978
13166
|
key: 0
|
|
12979
|
-
}, undefined, true) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg",
|
|
13167
|
+
}, undefined, true) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_6, EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_8))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.type == 'password' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
12980
13168
|
key: 3,
|
|
12981
13169
|
onClick: _cache[8] || (_cache[8] = (...args) => $options.showPassword && $options.showPassword(...args)),
|
|
12982
13170
|
class: "e-input-icon exos-right-3"
|
|
12983
13171
|
}, [_ctx.$slots.iconPassword ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconClose", {
|
|
12984
13172
|
key: 0
|
|
12985
|
-
}, undefined, true) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
13173
|
+
}, undefined, true) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_9, [$data.showPass ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
12986
13174
|
key: 0,
|
|
12987
13175
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['exos-w-6 exos-h-6', $data.errorRules ? 'exos-text-danger' : 'exos-text-secondary dark:exos-text-white']),
|
|
12988
13176
|
"aria-hidden": "true",
|
|
12989
13177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12990
13178
|
fill: "none",
|
|
12991
13179
|
viewBox: "0 0 20 14"
|
|
12992
|
-
},
|
|
13180
|
+
}, EInputvue_type_template_id_4a868a9b_scoped_true_hoisted_11, 2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
12993
13181
|
key: 1,
|
|
12994
13182
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['exos-w-6 exos-h-6', $data.errorRules ? 'exos-text-danger' : 'exos-text-secondary dark:exos-text-white']),
|
|
12995
13183
|
"aria-hidden": "true",
|
|
@@ -13002,7 +13190,7 @@ function EInputvue_type_template_id_68e43fbe_scoped_true_render(_ctx, _cache, $p
|
|
|
13002
13190
|
key: 0
|
|
13003
13191
|
}, undefined, true) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)]), !!$data.messageRestrictions ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_14, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRestrictions), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_15, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
13004
13192
|
}
|
|
13005
|
-
;// CONCATENATED MODULE: ./src/components/EInput.vue?vue&type=template&id=
|
|
13193
|
+
;// CONCATENATED MODULE: ./src/components/EInput.vue?vue&type=template&id=4a868a9b&scoped=true
|
|
13006
13194
|
|
|
13007
13195
|
;// CONCATENATED MODULE: ./node_modules/luxon/src/errors.js
|
|
13008
13196
|
// these aren't really private, but nor are they really useful to document
|
|
@@ -20570,6 +20758,11 @@ const patterns = {
|
|
|
20570
20758
|
// Alfanumérico con caracteres especiales,
|
|
20571
20759
|
msg: "El valor ingresado debe ser alfanumérico con caracteres"
|
|
20572
20760
|
},
|
|
20761
|
+
alfaNumSpace: {
|
|
20762
|
+
regex: /[^a-zA-Z0-9\s]/g,
|
|
20763
|
+
// Letras, números y espacios
|
|
20764
|
+
msg: "El valor ingresado debe contener solo letras, números y espacios"
|
|
20765
|
+
},
|
|
20573
20766
|
nomenclaturaDoc: {
|
|
20574
20767
|
regex: /[^a-zA-Z0-9%_\-.,ñÑ\s]/g,
|
|
20575
20768
|
// Alfanumérico para nomenclatura de documentos
|
|
@@ -21209,28 +21402,30 @@ const patterns = {
|
|
|
21209
21402
|
},
|
|
21210
21403
|
// Validar las reglas del componente
|
|
21211
21404
|
validate() {
|
|
21212
|
-
if (
|
|
21213
|
-
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
result
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21405
|
+
if (this.required || this.modelValue) {
|
|
21406
|
+
let rules = this.finalRules;
|
|
21407
|
+
let i = 0;
|
|
21408
|
+
let result = true;
|
|
21409
|
+
while (i < rules.length && result === true) {
|
|
21410
|
+
result = rules[i](this.modelValue);
|
|
21411
|
+
i++;
|
|
21412
|
+
}
|
|
21413
|
+
if (result !== true || this.errorRestriction == true) {
|
|
21414
|
+
// No es valido
|
|
21415
|
+
if (typeof result != "boolean") {
|
|
21416
|
+
this.messageRule = result;
|
|
21417
|
+
}
|
|
21418
|
+
this.errorRules = true;
|
|
21419
|
+
return false;
|
|
21420
|
+
} else {
|
|
21421
|
+
// Es valido
|
|
21422
|
+
this.messageRule = false;
|
|
21423
|
+
this.errorRules = false;
|
|
21424
|
+
return true;
|
|
21227
21425
|
}
|
|
21228
|
-
this.errorRules = true;
|
|
21229
|
-
return false;
|
|
21230
21426
|
} else {
|
|
21231
|
-
//
|
|
21232
|
-
this.
|
|
21233
|
-
this.errorRules = false;
|
|
21427
|
+
// No es requerido, entonces resetea restricción
|
|
21428
|
+
this.reset();
|
|
21234
21429
|
return true;
|
|
21235
21430
|
}
|
|
21236
21431
|
},
|
|
@@ -21249,10 +21444,10 @@ const patterns = {
|
|
|
21249
21444
|
});
|
|
21250
21445
|
;// CONCATENATED MODULE: ./src/components/EInput.vue?vue&type=script&lang=js
|
|
21251
21446
|
|
|
21252
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EInput.vue?vue&type=style&index=0&id=
|
|
21447
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EInput.vue?vue&type=style&index=0&id=4a868a9b&scoped=true&lang=css
|
|
21253
21448
|
// extracted by mini-css-extract-plugin
|
|
21254
21449
|
|
|
21255
|
-
;// CONCATENATED MODULE: ./src/components/EInput.vue?vue&type=style&index=0&id=
|
|
21450
|
+
;// CONCATENATED MODULE: ./src/components/EInput.vue?vue&type=style&index=0&id=4a868a9b&scoped=true&lang=css
|
|
21256
21451
|
|
|
21257
21452
|
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EInput.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
21258
21453
|
var EInputvue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(7788);
|
|
@@ -21271,7 +21466,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
21271
21466
|
|
|
21272
21467
|
|
|
21273
21468
|
;
|
|
21274
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EInputvue_type_script_lang_js, [['render',
|
|
21469
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_4a868a9b_scoped_true_render],['__scopeId',"data-v-4a868a9b"]])
|
|
21275
21470
|
|
|
21276
21471
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
21277
21472
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/EModal.vue?vue&type=template&id=3a275da7
|
|
@@ -21712,31 +21907,31 @@ if (typeof (EPaginationTablevue_type_custom_index_0_blockType_docs_lang_md_defau
|
|
|
21712
21907
|
const EPaginationTable_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(EPaginationTablevue_type_script_lang_js, [['render',EPaginationTablevue_type_template_id_6049a3d4_render]])
|
|
21713
21908
|
|
|
21714
21909
|
/* harmony default export */ var EPaginationTable = (EPaginationTable_exports_);
|
|
21715
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=template&id=
|
|
21910
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=template&id=5b48eb7a
|
|
21716
21911
|
|
|
21717
|
-
const
|
|
21912
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_1 = {
|
|
21718
21913
|
ref: "mainSelectComponent",
|
|
21719
21914
|
class: "exos-flex exos-flex-col"
|
|
21720
21915
|
};
|
|
21721
|
-
const
|
|
21916
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_2 = {
|
|
21722
21917
|
class: "exos-relative"
|
|
21723
21918
|
};
|
|
21724
|
-
const
|
|
21919
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_3 = {
|
|
21725
21920
|
key: 0
|
|
21726
21921
|
};
|
|
21727
|
-
const
|
|
21728
|
-
const
|
|
21729
|
-
const
|
|
21922
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_4 = ["disabled", "id", "value"];
|
|
21923
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_5 = ["for"];
|
|
21924
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_6 = {
|
|
21730
21925
|
key: 0
|
|
21731
21926
|
};
|
|
21732
|
-
const
|
|
21733
|
-
const
|
|
21927
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_7 = ["disabled", "id"];
|
|
21928
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_8 = {
|
|
21734
21929
|
class: "exos-flex exos-items-center exos-w-full"
|
|
21735
21930
|
};
|
|
21736
|
-
const
|
|
21931
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_9 = {
|
|
21737
21932
|
key: 0
|
|
21738
21933
|
};
|
|
21739
|
-
const
|
|
21934
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_10 = {
|
|
21740
21935
|
key: 1,
|
|
21741
21936
|
class: "exos-w-4 exos-h-4 exos-text-secondary exos-opacity-60 hover:exos-opacity-100 dark:exos-text-white",
|
|
21742
21937
|
"aria-hidden": "true",
|
|
@@ -21744,15 +21939,15 @@ const ESelectvue_type_template_id_6eb8becc_hoisted_10 = {
|
|
|
21744
21939
|
fill: "none",
|
|
21745
21940
|
viewBox: "0 0 15 15"
|
|
21746
21941
|
};
|
|
21747
|
-
const
|
|
21942
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_11 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
21748
21943
|
stroke: "currentColor",
|
|
21749
21944
|
"stroke-linecap": "round",
|
|
21750
21945
|
"stroke-linejoin": "round",
|
|
21751
21946
|
"stroke-width": "2",
|
|
21752
21947
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
21753
21948
|
}, null, -1);
|
|
21754
|
-
const
|
|
21755
|
-
const
|
|
21949
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_12 = [ESelectvue_type_template_id_5b48eb7a_hoisted_11];
|
|
21950
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_13 = {
|
|
21756
21951
|
key: 1,
|
|
21757
21952
|
"aria-hidden": "true",
|
|
21758
21953
|
class: "exos-w-6 exos-h-6 exos-text-gray-200 exos-animate-spin dark:exos-text-gray-600 exos-fill-secondary",
|
|
@@ -21760,15 +21955,15 @@ const ESelectvue_type_template_id_6eb8becc_hoisted_13 = {
|
|
|
21760
21955
|
fill: "none",
|
|
21761
21956
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21762
21957
|
};
|
|
21763
|
-
const
|
|
21958
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_14 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
21764
21959
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
21765
21960
|
fill: "currentColor"
|
|
21766
21961
|
}, null, -1);
|
|
21767
|
-
const
|
|
21962
|
+
const ESelectvue_type_template_id_5b48eb7a_hoisted_15 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
21768
21963
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
21769
21964
|
fill: "currentFill"
|
|
21770
21965
|
}, null, -1);
|
|
21771
|
-
const _hoisted_16 = [
|
|
21966
|
+
const _hoisted_16 = [ESelectvue_type_template_id_5b48eb7a_hoisted_14, ESelectvue_type_template_id_5b48eb7a_hoisted_15];
|
|
21772
21967
|
const _hoisted_17 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
21773
21968
|
stroke: "currentColor",
|
|
21774
21969
|
"stroke-linecap": "round",
|
|
@@ -21782,8 +21977,8 @@ const _hoisted_20 = {
|
|
|
21782
21977
|
key: 0,
|
|
21783
21978
|
class: "e-select--error-message exos-animate-slide-down"
|
|
21784
21979
|
};
|
|
21785
|
-
function
|
|
21786
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
21980
|
+
function ESelectvue_type_template_id_5b48eb7a_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21981
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", ESelectvue_type_template_id_5b48eb7a_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ESelectvue_type_template_id_5b48eb7a_hoisted_2, [$props.suggestion ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", ESelectvue_type_template_id_5b48eb7a_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
21787
21982
|
placeholder: " ",
|
|
21788
21983
|
ref: "refSelect",
|
|
21789
21984
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass),
|
|
@@ -21794,12 +21989,12 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
21794
21989
|
onFocus: _cache[1] || (_cache[1] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
21795
21990
|
onInput: _cache[2] || (_cache[2] = (...args) => $options.fetchSuggestions && $options.fetchSuggestions(...args)),
|
|
21796
21991
|
onClick: _cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"]))
|
|
21797
|
-
}, null, 42,
|
|
21992
|
+
}, null, 42, ESelectvue_type_template_id_5b48eb7a_hoisted_4), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21798
21993
|
for: 'input-' + $props.label,
|
|
21799
21994
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.labelClass)
|
|
21800
21995
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21801
21996
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.classBoxLabel)
|
|
21802
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span",
|
|
21997
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", ESelectvue_type_template_id_5b48eb7a_hoisted_6, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, ESelectvue_type_template_id_5b48eb7a_hoisted_5)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
|
|
21803
21998
|
key: 1,
|
|
21804
21999
|
ref: "refSelect",
|
|
21805
22000
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass),
|
|
@@ -21808,16 +22003,16 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
21808
22003
|
onBlur: _cache[4] || (_cache[4] = (...args) => $options.onInputBlur && $options.onInputBlur(...args)),
|
|
21809
22004
|
onFocus: _cache[5] || (_cache[5] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
21810
22005
|
onClick: _cache[6] || (_cache[6] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"]))
|
|
21811
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
22006
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ESelectvue_type_template_id_5b48eb7a_hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21812
22007
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['exos-flex exos-flex-col', _ctx.$slots.icon ? [$props.iconRight ? '' : 'exos-pl-5'] : ''])
|
|
21813
22008
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", {
|
|
21814
22009
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([$options.labelSelected ? $options.labelClass : $options.textSizeClass, $props.disabled ? 'exos-cursor-not-allowed' : 'exos-cursor-pointer'])
|
|
21815
22010
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21816
22011
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.classBoxLabel)
|
|
21817
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span",
|
|
22012
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", ESelectvue_type_template_id_5b48eb7a_hoisted_9, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 2), !$props.suggestion ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21818
22013
|
key: 0,
|
|
21819
22014
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.labelSelectedClass)
|
|
21820
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($options.getFormattedOptionSelected($options.labelSelected)), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)])], 42,
|
|
22015
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($options.getFormattedOptionSelected($options.labelSelected)), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)])], 42, ESelectvue_type_template_id_5b48eb7a_hoisted_7)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
21821
22016
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['e-select-icon', $props.disabled ? 'exos-cursor-not-allowed' : 'exos-cursor-pointer', _ctx.$slots.icon ? 'exos-right-11' : true ? $props.iconRight ? 'exos-right-11' : 'exos-right-3' : 0])
|
|
21822
22017
|
}, [this.modelValue && $props.showClean && !$props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21823
22018
|
key: 0,
|
|
@@ -21825,7 +22020,7 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
21825
22020
|
class: "exos-animate-slide-down"
|
|
21826
22021
|
}, [_ctx.$slots.iconClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconClose", {
|
|
21827
22022
|
key: 0
|
|
21828
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg",
|
|
22023
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", ESelectvue_type_template_id_5b48eb7a_hoisted_10, ESelectvue_type_template_id_5b48eb7a_hoisted_12))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.loading ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", ESelectvue_type_template_id_5b48eb7a_hoisted_13, _hoisted_16)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
21829
22024
|
key: 2,
|
|
21830
22025
|
onClick: _cache[8] || (_cache[8] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"]))
|
|
21831
22026
|
}, [_ctx.$slots.arrow ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "arrow", {
|
|
@@ -21850,7 +22045,7 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
21850
22045
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($options.getFormattedOption(option)), 11, _hoisted_19);
|
|
21851
22046
|
}), 128))], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_20, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 512);
|
|
21852
22047
|
}
|
|
21853
|
-
;// CONCATENATED MODULE: ./src/components/ESelect.vue?vue&type=template&id=
|
|
22048
|
+
;// CONCATENATED MODULE: ./src/components/ESelect.vue?vue&type=template&id=5b48eb7a
|
|
21854
22049
|
|
|
21855
22050
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=script&lang=js
|
|
21856
22051
|
|
|
@@ -22467,6 +22662,7 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
22467
22662
|
validateMultiSelect(rules) {
|
|
22468
22663
|
let i = 0;
|
|
22469
22664
|
let result = true;
|
|
22665
|
+
let valid = true;
|
|
22470
22666
|
while (i < rules.length && result === true) {
|
|
22471
22667
|
// Verifica si this.modelValue existe y es un array antes de iterar
|
|
22472
22668
|
if (Array.isArray(this.modelValue)) {
|
|
@@ -22476,18 +22672,20 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
22476
22672
|
}
|
|
22477
22673
|
if (result !== true) {
|
|
22478
22674
|
this.setMessageRule(result);
|
|
22479
|
-
|
|
22675
|
+
valid = false;
|
|
22480
22676
|
} else {
|
|
22481
22677
|
this.reset();
|
|
22678
|
+
valid = true;
|
|
22482
22679
|
}
|
|
22483
22680
|
}
|
|
22484
22681
|
} else if (this.required) {
|
|
22485
22682
|
// Manejar el caso en que this.modelValue no es un array y es requerido
|
|
22486
22683
|
this.setMessageRule(`El campo ${this.label} es requerido`);
|
|
22487
|
-
|
|
22684
|
+
valid = false;
|
|
22488
22685
|
}
|
|
22489
22686
|
i++;
|
|
22490
22687
|
}
|
|
22688
|
+
return valid;
|
|
22491
22689
|
}
|
|
22492
22690
|
},
|
|
22493
22691
|
setup() {
|
|
@@ -22545,10 +22743,10 @@ function ESelectvue_type_template_id_6eb8becc_render(_ctx, _cache, $props, $setu
|
|
|
22545
22743
|
});
|
|
22546
22744
|
;// CONCATENATED MODULE: ./src/components/ESelect.vue?vue&type=script&lang=js
|
|
22547
22745
|
|
|
22548
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=style&index=0&id=
|
|
22746
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=style&index=0&id=5b48eb7a&lang=css
|
|
22549
22747
|
// extracted by mini-css-extract-plugin
|
|
22550
22748
|
|
|
22551
|
-
;// CONCATENATED MODULE: ./src/components/ESelect.vue?vue&type=style&index=0&id=
|
|
22749
|
+
;// CONCATENATED MODULE: ./src/components/ESelect.vue?vue&type=style&index=0&id=5b48eb7a&lang=css
|
|
22552
22750
|
|
|
22553
22751
|
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ESelect.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
22554
22752
|
var ESelectvue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(3029);
|
|
@@ -22567,56 +22765,56 @@ if (typeof (ESelectvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
22567
22765
|
|
|
22568
22766
|
|
|
22569
22767
|
;
|
|
22570
|
-
const ESelect_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ESelectvue_type_script_lang_js, [['render',
|
|
22768
|
+
const ESelect_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ESelectvue_type_script_lang_js, [['render',ESelectvue_type_template_id_5b48eb7a_render]])
|
|
22571
22769
|
|
|
22572
22770
|
/* harmony default export */ var ESelect = (ESelect_exports_);
|
|
22573
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ETable.vue?vue&type=template&id=
|
|
22771
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ETable.vue?vue&type=template&id=ca7de1dc&scoped=true
|
|
22574
22772
|
|
|
22575
|
-
const
|
|
22576
|
-
const
|
|
22773
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_withScopeId = n => (_pushScopeId("data-v-ca7de1dc"), n = n(), _popScopeId(), n);
|
|
22774
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_1 = {
|
|
22577
22775
|
key: 0
|
|
22578
22776
|
};
|
|
22579
|
-
const
|
|
22777
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_2 = {
|
|
22580
22778
|
key: 0,
|
|
22581
22779
|
class: "exos-px-4 exos-py-3"
|
|
22582
22780
|
};
|
|
22583
|
-
const
|
|
22781
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_3 = {
|
|
22584
22782
|
class: "exos-flex exos-justify-center exos-items-center"
|
|
22585
22783
|
};
|
|
22586
|
-
const
|
|
22587
|
-
const
|
|
22784
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_4 = ["onClick"];
|
|
22785
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_5 = {
|
|
22588
22786
|
key: 0
|
|
22589
22787
|
};
|
|
22590
|
-
const
|
|
22788
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_6 = {
|
|
22591
22789
|
key: 0,
|
|
22592
22790
|
class: "exos-px-4 exos-py-3"
|
|
22593
22791
|
};
|
|
22594
|
-
const
|
|
22792
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_7 = {
|
|
22595
22793
|
class: "radio"
|
|
22596
22794
|
};
|
|
22597
|
-
const
|
|
22598
|
-
const
|
|
22599
|
-
const
|
|
22795
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_8 = ["onClick"];
|
|
22796
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_9 = ["onClick"];
|
|
22797
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_10 = {
|
|
22600
22798
|
class: "exos-flex exos-items-center exos-justify-center exos-w-full exos-h-full"
|
|
22601
22799
|
};
|
|
22602
|
-
const
|
|
22603
|
-
const
|
|
22800
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_11 = ["onClick"];
|
|
22801
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_12 = {
|
|
22604
22802
|
class: "exos-flex exos-items-center exos-justify-center exos-mt-2 exos-mb-8 exos-flex-col"
|
|
22605
22803
|
};
|
|
22606
|
-
const
|
|
22804
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_13 = {
|
|
22607
22805
|
key: 1,
|
|
22608
22806
|
class: "exos-flex exos-justify-between exos-items-center exos-w-full"
|
|
22609
22807
|
};
|
|
22610
|
-
const
|
|
22808
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_14 = {
|
|
22611
22809
|
class: "exos-min-w-[5rem] exos-flex exos-justify-center"
|
|
22612
22810
|
};
|
|
22613
|
-
const
|
|
22811
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_15 = {
|
|
22614
22812
|
class: "exos-w-full exos-flex exos-justify-center exos-items-center"
|
|
22615
22813
|
};
|
|
22616
|
-
const
|
|
22814
|
+
const ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_16 = {
|
|
22617
22815
|
class: "exos-min-w-[5rem] exos-flex exos-justify-center"
|
|
22618
22816
|
};
|
|
22619
|
-
function
|
|
22817
|
+
function ETablevue_type_template_id_ca7de1dc_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22620
22818
|
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("EIcon");
|
|
22621
22819
|
const _component_e_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("e-icon");
|
|
22622
22820
|
const _component_EPaginationTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("EPaginationTable");
|
|
@@ -22625,11 +22823,11 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22625
22823
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainClass)
|
|
22626
22824
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("table", {
|
|
22627
22825
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(['exos-shadow-lg exos-p-5 exos-min-w-full exos-table-auto', $props.bgColor, $props.darkBgColor])
|
|
22628
|
-
}, [$props.haveTitle ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("caption",
|
|
22826
|
+
}, [$props.haveTitle ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("caption", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.title), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("thead", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("tr", null, [$props.select ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("th", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_2, "Selecciona")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($options.finalColumns, (col, indexCol) => {
|
|
22629
22827
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("th", {
|
|
22630
22828
|
key: 'col' + indexCol,
|
|
22631
22829
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([$options.headerClass, $options.styleHeaderClass(indexCol)])
|
|
22632
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
22830
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
22633
22831
|
class: "exos-text-center exos-cursor-default",
|
|
22634
22832
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(col.style)
|
|
22635
22833
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(col.title), 5), col.sortable ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
@@ -22640,8 +22838,8 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22640
22838
|
name: $data.sortBy === col.field ? $data.descending ? 'arrow_drop_down' : 'arrow_drop_up' : 'ebind:flechas-arriba-abajo',
|
|
22641
22839
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([this.arrowsColor ?? 'exos-text-secondary', this.arrowsColorDark ?? 'dark:exos-text-secondary']),
|
|
22642
22840
|
size: $data.sortBy === col.field ? 'sm' : '1em'
|
|
22643
|
-
}, null, 8, ["name", "class", "size"])], 8,
|
|
22644
|
-
}), 128))]), $props.headerSeparator ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("tr",
|
|
22841
|
+
}, null, 8, ["name", "class", "size"])], 8, ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 2);
|
|
22842
|
+
}), 128))]), $props.headerSeparator ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("tr", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
22645
22843
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($props.headerSeparator)
|
|
22646
22844
|
}, null, 2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("tbody", null, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($options.finalRows, ({
|
|
22647
22845
|
row,
|
|
@@ -22650,10 +22848,10 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22650
22848
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("tr", {
|
|
22651
22849
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.bodyClass),
|
|
22652
22850
|
key: 'row' + indexRow
|
|
22653
|
-
}, [$props.select ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("td",
|
|
22851
|
+
}, [$props.select ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("td", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("label", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("input", {
|
|
22654
22852
|
type: "radio",
|
|
22655
22853
|
onClick: $event => $options.handleSelect(rowOrig)
|
|
22656
|
-
}, null, 8,
|
|
22854
|
+
}, null, 8, ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_8)])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($options.finalColumns, (col, indexCol) => {
|
|
22657
22855
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
22658
22856
|
key: 'col' + indexCol
|
|
22659
22857
|
}, [!!_ctx.$slots[`cell-name-${col.field}`] ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, `cell-name-${col.field}`, {
|
|
@@ -22668,7 +22866,7 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22668
22866
|
key: 1,
|
|
22669
22867
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.styleRowClass(col, indexRow, $data.indexRowSelected)),
|
|
22670
22868
|
onClick: $event => col.isClickeable ? $options.handleClickEmit(row, col.field, col, indexRow) : false
|
|
22671
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
22869
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row[col.field + `${col.readObject ? col.readObject : ""}`]), 1), col.copy ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
22672
22870
|
key: 0,
|
|
22673
22871
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => $options.handleCopyRow(row, col), ["stop"]),
|
|
22674
22872
|
class: "exos-flex exos-items-center exos-justify-center exos-ml-1 exos-cursor-pointer"
|
|
@@ -22679,12 +22877,12 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22679
22877
|
size: "xs",
|
|
22680
22878
|
name: "content_copy",
|
|
22681
22879
|
textColor: "exos-text-primary"
|
|
22682
|
-
}))], 8,
|
|
22880
|
+
}))], 8, ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_11)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 10, ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_9))], 64);
|
|
22683
22881
|
}), 128))], 2);
|
|
22684
|
-
}), 128))])], 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
22882
|
+
}), 128))])], 2)], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_12, [$props.rows.length < 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
22685
22883
|
key: 0,
|
|
22686
22884
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([$options.bodyClass, "exos-flex exos-items-center exos-justify-center exos-min-h-[10rem] exos-w-full"])
|
|
22687
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "noData", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)(" No existen datos para mostrar ")], true)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $options.numPagesTotal !== null ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
22885
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "noData", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)(" No existen datos para mostrar ")], true)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $options.numPagesTotal !== null && $props.showPagination ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_13, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_14, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "btn-bl", {}, undefined, true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_15, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_EPaginationTable, {
|
|
22688
22886
|
numPagesTotal: $options.numPagesTotal,
|
|
22689
22887
|
modelValue: $data.currentPage,
|
|
22690
22888
|
"onUpdate:modelValue": [_cache[0] || (_cache[0] = $event => $data.currentPage = $event), _cache[1] || (_cache[1] = $event => $options.handleRequest(true))],
|
|
@@ -22698,9 +22896,9 @@ function ETablevue_type_template_id_50dea650_scoped_true_render(_ctx, _cache, $p
|
|
|
22698
22896
|
modelValue: $data.numRowsByPage,
|
|
22699
22897
|
"onUpdate:modelValue": [_cache[2] || (_cache[2] = $event => $data.numRowsByPage = $event), $options.handleReload],
|
|
22700
22898
|
options: $props.rowsByPage
|
|
22701
|
-
}, null, 8, ["bgColor", "darkBgColor", "modelValue", "options", "onUpdate:modelValue"])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
22899
|
+
}, null, 8, ["bgColor", "darkBgColor", "modelValue", "options", "onUpdate:modelValue"])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", ETablevue_type_template_id_ca7de1dc_scoped_true_hoisted_16, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "btn-br", {}, undefined, true)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 64);
|
|
22702
22900
|
}
|
|
22703
|
-
;// CONCATENATED MODULE: ./src/components/ETable.vue?vue&type=template&id=
|
|
22901
|
+
;// CONCATENATED MODULE: ./src/components/ETable.vue?vue&type=template&id=ca7de1dc&scoped=true
|
|
22704
22902
|
|
|
22705
22903
|
;// CONCATENATED MODULE: ./node_modules/ramda/es/is.js
|
|
22706
22904
|
|
|
@@ -23264,6 +23462,32 @@ const message = message_show;
|
|
|
23264
23462
|
emits: ["request", "setSelectedRow", "changeContent"],
|
|
23265
23463
|
// <--- add this line
|
|
23266
23464
|
props: {
|
|
23465
|
+
/**
|
|
23466
|
+
* Muestra la paginación en caso de ser true.
|
|
23467
|
+
*/
|
|
23468
|
+
showPagination: {
|
|
23469
|
+
type: Boolean,
|
|
23470
|
+
default: true,
|
|
23471
|
+
description: "Muestra la paginación en caso de ser true."
|
|
23472
|
+
},
|
|
23473
|
+
/**
|
|
23474
|
+
* Tamaño del texto de la sección header. Ej. sm, md, lg, etc
|
|
23475
|
+
* @values xs, sm, md, lg, xl, xxl
|
|
23476
|
+
*/
|
|
23477
|
+
textHeaderSize: {
|
|
23478
|
+
type: String,
|
|
23479
|
+
default: null,
|
|
23480
|
+
description: "Tamaño del texto de la sección header."
|
|
23481
|
+
},
|
|
23482
|
+
/**
|
|
23483
|
+
* Transforma el texto de la sección header.
|
|
23484
|
+
* @values upper: EJEMPLO COMPONENTE, lower: ejemplo componente, cap: Ejemplo Componente, normal: Ejemplo componente
|
|
23485
|
+
*/
|
|
23486
|
+
textHeaderTransform: {
|
|
23487
|
+
type: String,
|
|
23488
|
+
default: null,
|
|
23489
|
+
description: "Transforma el texto de la sección header. Ej. upper: EJEMPLO COMPONENTE, lower: ejemplo componente, cap: Ejemplo Componente, normal: Ejemplo componente"
|
|
23490
|
+
},
|
|
23267
23491
|
/**
|
|
23268
23492
|
* Grado del redondeo de los bordes de la sección header
|
|
23269
23493
|
* @values sm, md, lg, xl, xxl
|
|
@@ -23679,7 +23903,27 @@ const message = message_show;
|
|
|
23679
23903
|
return this.borderHeader ? borderHeaderClasses[this.borderHeader] : "exos-border";
|
|
23680
23904
|
},
|
|
23681
23905
|
headerClass() {
|
|
23682
|
-
return ["e-table-header", this.borderHeaderClass, this.bgHeaderColor ?? "exos-bg-field", this.bgHeaderColorDark ?? "dark:exos-bg-fieldDark", this.textColorHeader ?? "exos-text-black", this.textColorHeaderDark ?? "dark:exos-text-white"];
|
|
23906
|
+
return ["e-table-header", this.textHeaderSizeClass, this.textTransformClass, this.borderHeaderClass, this.bgHeaderColor ?? "exos-bg-field", this.bgHeaderColorDark ?? "dark:exos-bg-fieldDark", this.textColorHeader ?? "exos-text-black", this.textColorHeaderDark ?? "dark:exos-text-white"];
|
|
23907
|
+
},
|
|
23908
|
+
textHeaderSizeClass() {
|
|
23909
|
+
const textSizeClasses = {
|
|
23910
|
+
xs: "exos-text-xs",
|
|
23911
|
+
sm: "exos-text-sm",
|
|
23912
|
+
md: "exos-text-base",
|
|
23913
|
+
lg: "exos-text-lg",
|
|
23914
|
+
xl: "exos-text-xl",
|
|
23915
|
+
xxl: "exos-text-2xl"
|
|
23916
|
+
};
|
|
23917
|
+
return this.textHeaderSize ? textSizeClasses[this.textHeaderSize] : "exos-text-sm";
|
|
23918
|
+
},
|
|
23919
|
+
textTransformClass() {
|
|
23920
|
+
const textTransformClasses = {
|
|
23921
|
+
upper: "exos-uppercase",
|
|
23922
|
+
lower: "exos-lowercase",
|
|
23923
|
+
cap: "exos-capitalize",
|
|
23924
|
+
normal: "exos-normal-case"
|
|
23925
|
+
};
|
|
23926
|
+
return this.textHeaderTransform ? textTransformClasses[this.textHeaderTransform] : "exos-uppercase";
|
|
23683
23927
|
},
|
|
23684
23928
|
bodyClass() {
|
|
23685
23929
|
return ["exos-text-center exos-text-sm exos-font-normal", this.textColor ?? "exos-text-gray-500", this.textColorDark ?? "dark:exos-text-gray-400"];
|
|
@@ -23959,10 +24203,10 @@ const message = message_show;
|
|
|
23959
24203
|
});
|
|
23960
24204
|
;// CONCATENATED MODULE: ./src/components/ETable.vue?vue&type=script&lang=js
|
|
23961
24205
|
|
|
23962
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ETable.vue?vue&type=style&index=0&id=
|
|
24206
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ETable.vue?vue&type=style&index=0&id=ca7de1dc&scoped=true&lang=css
|
|
23963
24207
|
// extracted by mini-css-extract-plugin
|
|
23964
24208
|
|
|
23965
|
-
;// CONCATENATED MODULE: ./src/components/ETable.vue?vue&type=style&index=0&id=
|
|
24209
|
+
;// CONCATENATED MODULE: ./src/components/ETable.vue?vue&type=style&index=0&id=ca7de1dc&scoped=true&lang=css
|
|
23966
24210
|
|
|
23967
24211
|
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ETable.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
23968
24212
|
var ETablevue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(4816);
|
|
@@ -23981,7 +24225,7 @@ if (typeof (ETablevue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
23981
24225
|
|
|
23982
24226
|
|
|
23983
24227
|
;
|
|
23984
|
-
const ETable_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ETablevue_type_script_lang_js, [['render',
|
|
24228
|
+
const ETable_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ETablevue_type_script_lang_js, [['render',ETablevue_type_template_id_ca7de1dc_scoped_true_render],['__scopeId',"data-v-ca7de1dc"]])
|
|
23985
24229
|
|
|
23986
24230
|
/* harmony default export */ var ETable = (ETable_exports_);
|
|
23987
24231
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/ECollapse.vue?vue&type=template&id=40f31365&scoped=true
|
|
@@ -26249,6 +26493,9 @@ const loading = {
|
|
|
26249
26493
|
|
|
26250
26494
|
|
|
26251
26495
|
|
|
26496
|
+
|
|
26497
|
+
// import ECheckbox from "./ui/components/checkbox/ECheckbox.vue";
|
|
26498
|
+
|
|
26252
26499
|
|
|
26253
26500
|
|
|
26254
26501
|
|
|
@@ -26276,6 +26523,8 @@ const ExosLibraryComponents = {
|
|
|
26276
26523
|
app.component("ECalendar", ECalendar);
|
|
26277
26524
|
app.component("EMenuCalendar", EMenuCalendar);
|
|
26278
26525
|
app.component("EForm", EForm);
|
|
26526
|
+
|
|
26527
|
+
// app.component("ECheckbox", ECheckbox);
|
|
26279
26528
|
app.provide("$loading", loading);
|
|
26280
26529
|
app.provide("$notify", notify);
|
|
26281
26530
|
app.provide("$showMessage", message);
|