@alexochihua/exos-library-components 2.2.4 → 2.3.0
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.
|
@@ -5067,79 +5067,74 @@ if (typeof (EDetailvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
5067
5067
|
const EDetail_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EDetailvue_type_script_lang_js, [['render',EDetailvue_type_template_id_4cfd89f9_render]])
|
|
5068
5068
|
|
|
5069
5069
|
/* harmony default export */ var EDetail = (EDetail_exports_);
|
|
5070
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/dialog/EDialog.vue?vue&type=template&id=
|
|
5070
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/dialog/EDialog.vue?vue&type=template&id=1d24162e
|
|
5071
5071
|
|
|
5072
|
-
const
|
|
5073
|
-
|
|
5074
|
-
class: "exos-fixed exos-inset-0 exos-flex exos-items-center exos-justify-center exos-bg-zinc-400 exos-bg-opacity-40 exos-z-50"
|
|
5072
|
+
const EDialogvue_type_template_id_1d24162e_hoisted_1 = {
|
|
5073
|
+
class: "e-dialog__extraContentContainerClass"
|
|
5075
5074
|
};
|
|
5076
|
-
const
|
|
5077
|
-
key:
|
|
5078
|
-
class: "
|
|
5075
|
+
const EDialogvue_type_template_id_1d24162e_hoisted_2 = {
|
|
5076
|
+
key: 3,
|
|
5077
|
+
class: "e-dialog__btnContainerClass"
|
|
5079
5078
|
};
|
|
5080
|
-
const
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
viewBox: "0 0 24 24",
|
|
5084
|
-
"stroke-width": "2",
|
|
5085
|
-
stroke: "rgb(156 163 175)",
|
|
5086
|
-
"stroke-linecap": "round",
|
|
5087
|
-
"stroke-linejoin": "round"
|
|
5088
|
-
}, [/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
5089
|
-
stroke: "rgb(59, 130, 246)",
|
|
5090
|
-
"stroke-linecap": "round",
|
|
5091
|
-
"stroke-linejoin": "round",
|
|
5092
|
-
d: "M6 18L18 6M6 6l12 12"
|
|
5093
|
-
})], -1);
|
|
5094
|
-
const EDialogvue_type_template_id_3910d0b7_hoisted_4 = [EDialogvue_type_template_id_3910d0b7_hoisted_3];
|
|
5095
|
-
const EDialogvue_type_template_id_3910d0b7_hoisted_5 = {
|
|
5096
|
-
key: 2,
|
|
5097
|
-
class: "exos-flex exos-flex-col exos-justify-center exos-mt-3 exos-mb-4 exos-w-full"
|
|
5098
|
-
};
|
|
5099
|
-
const EDialogvue_type_template_id_3910d0b7_hoisted_6 = {
|
|
5100
|
-
class: "exos-flex exos-flex-wrap exos-w-[30%] exos-pb-1.5 exos-gap-x-2 exos-gap-y-1 exos-items-center exos-justify-center"
|
|
5079
|
+
const EDialogvue_type_template_id_1d24162e_hoisted_3 = {
|
|
5080
|
+
key: 4,
|
|
5081
|
+
class: "e-dialog__btnContainerClass"
|
|
5101
5082
|
};
|
|
5102
|
-
function
|
|
5103
|
-
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EIcon");
|
|
5083
|
+
function EDialogvue_type_template_id_1d24162e_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5104
5084
|
const _component_EBtn = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EBtn");
|
|
5085
|
+
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EIcon");
|
|
5105
5086
|
const _directive_saveHTML = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDirective)("saveHTML");
|
|
5106
|
-
return $options.showDialog ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
5107
|
-
|
|
5087
|
+
return $options.showDialog ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5088
|
+
key: 0,
|
|
5089
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainContainer)
|
|
5090
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
5091
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainClass)
|
|
5108
5092
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", {
|
|
5109
5093
|
ref: "focusButton",
|
|
5110
5094
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.handleEnter && $options.handleEnter(...args)),
|
|
5111
5095
|
class: "exos-opacity-0 exos-absolute exos-w-0 exos-h-0 exos-overflow-hidden"
|
|
5112
5096
|
}, null, 512), !_ctx.$slots.content ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, {
|
|
5113
5097
|
key: 0
|
|
5114
|
-
}, [$props.closeBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
},
|
|
5098
|
+
}, [$props.closeBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5099
|
+
key: 0,
|
|
5100
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.closeBtnContainer)
|
|
5101
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EBtn, {
|
|
5102
|
+
rounded: "",
|
|
5103
|
+
padding: "exos-p-1",
|
|
5104
|
+
iconName: "sym-close",
|
|
5105
|
+
color: "exos-bg-zinc-100",
|
|
5106
|
+
textColor: "exos-text-secondary",
|
|
5107
|
+
onClick: $options.close
|
|
5108
|
+
}, null, 8, ["onClick"])], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5118
5109
|
key: 1,
|
|
5119
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(
|
|
5110
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.iconContainer)
|
|
5120
5111
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, {
|
|
5112
|
+
size: "xl",
|
|
5121
5113
|
name: $props.icon,
|
|
5122
5114
|
fill: $props.fillIcon,
|
|
5123
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.colorIcon ?? 'exos-text-white')
|
|
5124
|
-
size: "xl"
|
|
5115
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.colorIcon ?? 'exos-text-white')
|
|
5125
5116
|
}, null, 8, ["name", "fill", "class"])], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
5126
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(
|
|
5127
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.title ?? ''), 3), $props.description != '' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
5117
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.titleContainer)
|
|
5118
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.title ?? ''), 3), $props.description != '' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5119
|
+
key: 2,
|
|
5120
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.descContainer)
|
|
5121
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withDirectives)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
5128
5122
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.descClass)
|
|
5129
|
-
}, null, 2), [[_directive_saveHTML, $props.description]])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
5130
|
-
key: 0
|
|
5131
|
-
|
|
5123
|
+
}, null, 2), [[_directive_saveHTML, $props.description]])], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EDialogvue_type_template_id_1d24162e_hoisted_1, [_ctx.$slots.extraContent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "extraContent", {
|
|
5124
|
+
key: 0
|
|
5125
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), _ctx.$slots.buttonsMessage ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDialogvue_type_template_id_1d24162e_hoisted_2, [_ctx.$slots.buttonsMessage ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "buttonsMessage", {
|
|
5126
|
+
key: 0
|
|
5127
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : $props.textErrorBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDialogvue_type_template_id_1d24162e_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EBtn, {
|
|
5128
|
+
width: "exos-w-[35%]",
|
|
5132
5129
|
roundedSize: "md",
|
|
5133
5130
|
text: $props.textErrorBtn,
|
|
5134
5131
|
onClick: $options.close
|
|
5135
|
-
}, null, 8, ["text", "onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true),
|
|
5136
|
-
key: 1
|
|
5137
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])], 64)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5132
|
+
}, null, 8, ["text", "onClick"])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 64)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
5138
5133
|
key: 1,
|
|
5139
5134
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.contentClass)
|
|
5140
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "content")], 2))], 2)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true);
|
|
5135
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "content")], 2))], 2)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true);
|
|
5141
5136
|
}
|
|
5142
|
-
;// CONCATENATED MODULE: ./src/ui/components/dialog/EDialog.vue?vue&type=template&id=
|
|
5137
|
+
;// CONCATENATED MODULE: ./src/ui/components/dialog/EDialog.vue?vue&type=template&id=1d24162e
|
|
5143
5138
|
|
|
5144
5139
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/btn/EBtn.vue?vue&type=template&id=4aa59095
|
|
5145
5140
|
|
|
@@ -5619,8 +5614,19 @@ const EBtn_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EBtnvue_type_
|
|
|
5619
5614
|
};
|
|
5620
5615
|
},
|
|
5621
5616
|
computed: {
|
|
5617
|
+
mainContainer() {
|
|
5618
|
+
const mainContainerClass = ['e-dialog__mainContainer'];
|
|
5619
|
+
return mainContainerClass;
|
|
5620
|
+
},
|
|
5622
5621
|
mainClass() {
|
|
5623
|
-
|
|
5622
|
+
const mainClass = ['e-dialog__mainClass'];
|
|
5623
|
+
const bgColorClass = [this.bgColor ?? 'e-dialog-bgColors'];
|
|
5624
|
+
const dynamicClass = [!this.$slots.content ? 'exos-w-1/2' : 'exos-min-w-2/3'];
|
|
5625
|
+
return mainClass.concat(bgColorClass, dynamicClass);
|
|
5626
|
+
},
|
|
5627
|
+
closeBtnContainer() {
|
|
5628
|
+
const closeBtnContainerClass = ['e-dialog__closeBtnContainerClass'];
|
|
5629
|
+
return closeBtnContainerClass;
|
|
5624
5630
|
},
|
|
5625
5631
|
titleClass() {
|
|
5626
5632
|
return [this.textTitleSizeClass, 'e-dialog-mainTextClass', this.titleColor + ' e-dialog-titleTextColors'];
|
|
@@ -5631,6 +5637,19 @@ const EBtn_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EBtnvue_type_
|
|
|
5631
5637
|
contentClass() {
|
|
5632
5638
|
return 'e-dialog-contentSlotClass';
|
|
5633
5639
|
},
|
|
5640
|
+
iconContainer() {
|
|
5641
|
+
const iconContainerClass = ['e-dialog__iconContainer'];
|
|
5642
|
+
const dynamicClass = [this.colorBgIcon ?? 'exos-bg-secondary'];
|
|
5643
|
+
return iconContainerClass.concat(dynamicClass);
|
|
5644
|
+
},
|
|
5645
|
+
titleContainer() {
|
|
5646
|
+
const dynamicClass = [!!this.icon && !this.closeBtn ? 'exos-mt-9' : 'exos-mt-0', this.titleClass];
|
|
5647
|
+
return dynamicClass;
|
|
5648
|
+
},
|
|
5649
|
+
descContainer() {
|
|
5650
|
+
const descContainerClass = ['e-dialog__descContainer'];
|
|
5651
|
+
return descContainerClass;
|
|
5652
|
+
},
|
|
5634
5653
|
textDescSizeClass() {
|
|
5635
5654
|
const textSizeClasses = {
|
|
5636
5655
|
xs: 'exos-text-xs',
|
|
@@ -5706,7 +5725,7 @@ const EBtn_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EBtnvue_type_
|
|
|
5706
5725
|
|
|
5707
5726
|
|
|
5708
5727
|
;
|
|
5709
|
-
const EDialog_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EDialogvue_type_script_lang_js, [['render',
|
|
5728
|
+
const EDialog_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EDialogvue_type_script_lang_js, [['render',EDialogvue_type_template_id_1d24162e_render]])
|
|
5710
5729
|
|
|
5711
5730
|
/* harmony default export */ var EDialog = (EDialog_exports_);
|
|
5712
5731
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/fileList/EFileList.vue?vue&type=template&id=71763e44
|
|
@@ -25722,32 +25741,32 @@ if (typeof (EMenuCalendarvue_type_custom_index_0_blockType_docs_lang_md_default(
|
|
|
25722
25741
|
const EMenuCalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EMenuCalendarvue_type_script_lang_js, [['render',EMenuCalendarvue_type_template_id_c9fd0884_scoped_true_render],['__scopeId',"data-v-c9fd0884"]])
|
|
25723
25742
|
|
|
25724
25743
|
/* harmony default export */ var EMenuCalendar = (EMenuCalendar_exports_);
|
|
25725
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/select/ESelect.vue?vue&type=template&id=
|
|
25744
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/select/ESelect.vue?vue&type=template&id=9926dc2e
|
|
25726
25745
|
|
|
25727
|
-
const
|
|
25746
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_1 = {
|
|
25728
25747
|
ref: "mainSelectComponent",
|
|
25729
25748
|
class: "exos-flex exos-flex-col"
|
|
25730
25749
|
};
|
|
25731
|
-
const
|
|
25750
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_2 = {
|
|
25732
25751
|
class: "exos-relative"
|
|
25733
25752
|
};
|
|
25734
|
-
const
|
|
25753
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_3 = {
|
|
25735
25754
|
key: 0,
|
|
25736
25755
|
class: "exos-relative"
|
|
25737
25756
|
};
|
|
25738
|
-
const
|
|
25739
|
-
const
|
|
25740
|
-
const
|
|
25757
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_4 = ["disabled", "id", "value", "maxlength", "readonly"];
|
|
25758
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_5 = ["for"];
|
|
25759
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_6 = {
|
|
25741
25760
|
key: 0
|
|
25742
25761
|
};
|
|
25743
|
-
const
|
|
25744
|
-
const
|
|
25762
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_7 = ["disabled", "id"];
|
|
25763
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_8 = {
|
|
25745
25764
|
class: "exos-flex exos-items-center exos-w-full"
|
|
25746
25765
|
};
|
|
25747
|
-
const
|
|
25766
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_9 = {
|
|
25748
25767
|
key: 0
|
|
25749
25768
|
};
|
|
25750
|
-
const
|
|
25769
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_10 = {
|
|
25751
25770
|
key: 1,
|
|
25752
25771
|
class: "exos-w-4 exos-h-4 exos-text-secondary exos-opacity-60 hover:exos-opacity-100 dark:exos-text-white",
|
|
25753
25772
|
"aria-hidden": "true",
|
|
@@ -25755,15 +25774,15 @@ const ESelectvue_type_template_id_af19b560_hoisted_10 = {
|
|
|
25755
25774
|
fill: "none",
|
|
25756
25775
|
viewBox: "0 0 15 15"
|
|
25757
25776
|
};
|
|
25758
|
-
const
|
|
25777
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_11 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25759
25778
|
stroke: "currentColor",
|
|
25760
25779
|
"stroke-linecap": "round",
|
|
25761
25780
|
"stroke-linejoin": "round",
|
|
25762
25781
|
"stroke-width": "2",
|
|
25763
25782
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
25764
25783
|
}, null, -1);
|
|
25765
|
-
const
|
|
25766
|
-
const
|
|
25784
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_12 = [ESelectvue_type_template_id_9926dc2e_hoisted_11];
|
|
25785
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_13 = {
|
|
25767
25786
|
key: 1,
|
|
25768
25787
|
"aria-hidden": "true",
|
|
25769
25788
|
class: "exos-w-6 exos-h-6 exos-text-gray-200 exos-animate-spin dark:exos-text-gray-600 exos-fill-secondary",
|
|
@@ -25771,43 +25790,44 @@ const ESelectvue_type_template_id_af19b560_hoisted_13 = {
|
|
|
25771
25790
|
fill: "none",
|
|
25772
25791
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25773
25792
|
};
|
|
25774
|
-
const
|
|
25793
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_14 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25775
25794
|
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",
|
|
25776
25795
|
fill: "currentColor"
|
|
25777
25796
|
}, null, -1);
|
|
25778
|
-
const
|
|
25797
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_15 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25779
25798
|
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",
|
|
25780
25799
|
fill: "currentFill"
|
|
25781
25800
|
}, null, -1);
|
|
25782
|
-
const
|
|
25783
|
-
const
|
|
25801
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_16 = [ESelectvue_type_template_id_9926dc2e_hoisted_14, ESelectvue_type_template_id_9926dc2e_hoisted_15];
|
|
25802
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_17 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25784
25803
|
stroke: "currentColor",
|
|
25785
25804
|
"stroke-linecap": "round",
|
|
25786
25805
|
"stroke-linejoin": "round",
|
|
25787
25806
|
"stroke-width": "1.9",
|
|
25788
25807
|
d: "m1 1 5.326 5.7a.909.909 0 0 0 1.348 0L13 1"
|
|
25789
25808
|
}, null, -1);
|
|
25790
|
-
const
|
|
25791
|
-
const
|
|
25792
|
-
const
|
|
25809
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_18 = [ESelectvue_type_template_id_9926dc2e_hoisted_17];
|
|
25810
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_19 = ["onClick"];
|
|
25811
|
+
const ESelectvue_type_template_id_9926dc2e_hoisted_20 = {
|
|
25793
25812
|
key: 0,
|
|
25794
25813
|
class: "e-select--error-message exos-animate-slide-down"
|
|
25795
25814
|
};
|
|
25796
|
-
function
|
|
25797
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
25815
|
+
function ESelectvue_type_template_id_9926dc2e_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25816
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ESelectvue_type_template_id_9926dc2e_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ESelectvue_type_template_id_9926dc2e_hoisted_2, [$props.suggestion ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ESelectvue_type_template_id_9926dc2e_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("input", {
|
|
25798
25817
|
placeholder: " ",
|
|
25799
25818
|
ref: "refSelect",
|
|
25800
25819
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainClass),
|
|
25801
25820
|
disabled: $props.disabled,
|
|
25802
25821
|
id: 'input-' + $props.label,
|
|
25803
25822
|
value: $data.tempValueInput,
|
|
25823
|
+
maxlength: $options.finalLength,
|
|
25804
25824
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)($options.inputPaddingSelectedClass),
|
|
25805
25825
|
readonly: $options.isReadonlyInSuggestMode,
|
|
25806
25826
|
onBlur: _cache[0] || (_cache[0] = (...args) => $options.onInputBlur && $options.onInputBlur(...args)),
|
|
25807
25827
|
onFocus: _cache[1] || (_cache[1] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
25808
25828
|
onInput: _cache[2] || (_cache[2] = (...args) => $options.fetchSuggestions && $options.fetchSuggestions(...args)),
|
|
25809
25829
|
onClick: _cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"]))
|
|
25810
|
-
}, null, 46,
|
|
25830
|
+
}, null, 46, ESelectvue_type_template_id_9926dc2e_hoisted_4), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25811
25831
|
ref: "inputLabelSelected",
|
|
25812
25832
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.inputLabelSelectedClass)
|
|
25813
25833
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.labelSelected), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("label", {
|
|
@@ -25815,7 +25835,7 @@ function ESelectvue_type_template_id_af19b560_render(_ctx, _cache, $props, $setu
|
|
|
25815
25835
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
25816
25836
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25817
25837
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.classBoxLabel)
|
|
25818
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
25838
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", ESelectvue_type_template_id_9926dc2e_hoisted_6, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, ESelectvue_type_template_id_9926dc2e_hoisted_5)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("button", {
|
|
25819
25839
|
key: 1,
|
|
25820
25840
|
ref: "refSelect",
|
|
25821
25841
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainClass),
|
|
@@ -25824,16 +25844,16 @@ function ESelectvue_type_template_id_af19b560_render(_ctx, _cache, $props, $setu
|
|
|
25824
25844
|
onBlur: _cache[4] || (_cache[4] = (...args) => $options.onInputBlur && $options.onInputBlur(...args)),
|
|
25825
25845
|
onFocus: _cache[5] || (_cache[5] = (...args) => $options.onInputFocus && $options.onInputFocus(...args)),
|
|
25826
25846
|
onClick: _cache[6] || (_cache[6] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"]))
|
|
25827
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
25847
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ESelectvue_type_template_id_9926dc2e_hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25828
25848
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['exos-flex exos-flex-col', _ctx.$slots.icon ? [$props.iconRight ? '' : 'exos-pl-5'] : ''])
|
|
25829
25849
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("label", {
|
|
25830
25850
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$options.labelSelected ? $options.labelClass : $options.textSizeClass, $props.disabled ? 'exos-cursor-not-allowed' : 'exos-cursor-pointer'])
|
|
25831
25851
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25832
25852
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.classBoxLabel)
|
|
25833
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
25853
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", ESelectvue_type_template_id_9926dc2e_hoisted_9, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 2), !$props.suggestion ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
25834
25854
|
key: 0,
|
|
25835
25855
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelSelectedClass)
|
|
25836
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.getFormattedOptionSelected($options.labelSelected)), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)])], 42,
|
|
25856
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.getFormattedOptionSelected($options.labelSelected)), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)])], 42, ESelectvue_type_template_id_9926dc2e_hoisted_7)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25837
25857
|
ref: "eSelectIconSection",
|
|
25838
25858
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.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])
|
|
25839
25859
|
}, [$options.showCleanBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
@@ -25842,7 +25862,7 @@ function ESelectvue_type_template_id_af19b560_render(_ctx, _cache, $props, $setu
|
|
|
25842
25862
|
class: "exos-animate-slide-down"
|
|
25843
25863
|
}, [_ctx.$slots.iconClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "iconClose", {
|
|
25844
25864
|
key: 0
|
|
25845
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg",
|
|
25865
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", ESelectvue_type_template_id_9926dc2e_hoisted_10, ESelectvue_type_template_id_9926dc2e_hoisted_12))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.loading ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", ESelectvue_type_template_id_9926dc2e_hoisted_13, ESelectvue_type_template_id_9926dc2e_hoisted_16)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
25846
25866
|
key: 2,
|
|
25847
25867
|
onClick: _cache[8] || (_cache[8] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)((...args) => $options.toggleDropdown && $options.toggleDropdown(...args), ["prevent"])),
|
|
25848
25868
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)({
|
|
@@ -25857,7 +25877,7 @@ function ESelectvue_type_template_id_af19b560_render(_ctx, _cache, $props, $setu
|
|
|
25857
25877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25858
25878
|
fill: "none",
|
|
25859
25879
|
viewBox: "0 0 14 8"
|
|
25860
|
-
},
|
|
25880
|
+
}, ESelectvue_type_template_id_9926dc2e_hoisted_18, 2))], 2))], 2), $setup.isDropdownOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
25861
25881
|
key: 2,
|
|
25862
25882
|
ref: "contentSelect",
|
|
25863
25883
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.containerOptionsClass),
|
|
@@ -25867,10 +25887,10 @@ function ESelectvue_type_template_id_af19b560_render(_ctx, _cache, $props, $setu
|
|
|
25867
25887
|
onClick: $event => $options.selectOption(option),
|
|
25868
25888
|
key: option.value,
|
|
25869
25889
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$options.optionsClass, $options.labelSelectedColor(option.value)])
|
|
25870
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.getFormattedOption(option)), 11,
|
|
25871
|
-
}), 128))], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
25890
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.getFormattedOption(option)), 11, ESelectvue_type_template_id_9926dc2e_hoisted_19);
|
|
25891
|
+
}), 128))], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ESelectvue_type_template_id_9926dc2e_hoisted_20, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 512);
|
|
25872
25892
|
}
|
|
25873
|
-
;// CONCATENATED MODULE: ./src/ui/components/select/ESelect.vue?vue&type=template&id=
|
|
25893
|
+
;// CONCATENATED MODULE: ./src/ui/components/select/ESelect.vue?vue&type=template&id=9926dc2e
|
|
25874
25894
|
|
|
25875
25895
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/select/ESelect.vue?vue&type=script&lang=js
|
|
25876
25896
|
|
|
@@ -25942,7 +25962,7 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
25942
25962
|
* Valor que se le asignará al componente ESelect.
|
|
25943
25963
|
*/
|
|
25944
25964
|
modelValue: {
|
|
25945
|
-
type: [String, Number, Boolean, Array],
|
|
25965
|
+
type: [String, Number, Boolean, Array, Object],
|
|
25946
25966
|
default: null,
|
|
25947
25967
|
description: 'Valor que se le asignará al componente ESelect.'
|
|
25948
25968
|
},
|
|
@@ -25965,6 +25985,22 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
25965
25985
|
default: null,
|
|
25966
25986
|
description: 'Regex para solo admitir ciertos caracteres, se maneja un objeto con 2 atributos.'
|
|
25967
25987
|
},
|
|
25988
|
+
/**
|
|
25989
|
+
* Caracteres permitidos en el valor del componente cuando es de tipo suggest.
|
|
25990
|
+
*/
|
|
25991
|
+
length: {
|
|
25992
|
+
type: [String, Number],
|
|
25993
|
+
default: null,
|
|
25994
|
+
description: 'Caracteres permitidos en el valor del componente cuando es de tipo suggest.'
|
|
25995
|
+
},
|
|
25996
|
+
/**
|
|
25997
|
+
* Bandera para emitir el objeto completo de la opción seleccionada.
|
|
25998
|
+
*/
|
|
25999
|
+
emitObject: {
|
|
26000
|
+
type: Boolean,
|
|
26001
|
+
default: false,
|
|
26002
|
+
description: 'Bandera para emitir el objeto completo de la opción seleccionada.'
|
|
26003
|
+
},
|
|
25968
26004
|
/**
|
|
25969
26005
|
* Bandera para habilitar el componente de selección multiple.
|
|
25970
26006
|
*/
|
|
@@ -26205,6 +26241,7 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26205
26241
|
},
|
|
26206
26242
|
data() {
|
|
26207
26243
|
return {
|
|
26244
|
+
currentValue: null,
|
|
26208
26245
|
tempValueInput: null,
|
|
26209
26246
|
auxSuggestions: this.options,
|
|
26210
26247
|
multipleValue: [],
|
|
@@ -26216,7 +26253,11 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26216
26253
|
errorRules: false,
|
|
26217
26254
|
messageRule: false,
|
|
26218
26255
|
isInputFocused: false,
|
|
26219
|
-
showPosition: true
|
|
26256
|
+
showPosition: true,
|
|
26257
|
+
MAX_LEN: {
|
|
26258
|
+
time: 8,
|
|
26259
|
+
timens: 5
|
|
26260
|
+
}
|
|
26220
26261
|
};
|
|
26221
26262
|
},
|
|
26222
26263
|
computed: {
|
|
@@ -26315,22 +26356,38 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26315
26356
|
};
|
|
26316
26357
|
return this.textSize ? textSizeClasses[this.textSize] : 'exos-text-base';
|
|
26317
26358
|
},
|
|
26359
|
+
finalLength() {
|
|
26360
|
+
let auxLen = null;
|
|
26361
|
+
let types = Object.keys(this.MAX_LEN);
|
|
26362
|
+
if (this.modelModifiers && this.length == null) {
|
|
26363
|
+
let mod = Object.keys(this.modelModifiers).toString();
|
|
26364
|
+
types.map(info => {
|
|
26365
|
+
if (info === mod) {
|
|
26366
|
+
auxLen = this.MAX_LEN[info];
|
|
26367
|
+
}
|
|
26368
|
+
});
|
|
26369
|
+
} else {
|
|
26370
|
+
auxLen = this.length;
|
|
26371
|
+
}
|
|
26372
|
+
return auxLen;
|
|
26373
|
+
},
|
|
26318
26374
|
multipleLabelSelected() {
|
|
26319
26375
|
if (this.modelValue) {
|
|
26320
|
-
let label = this.modelValue.map(item => this.options.find(val => val.value === item).label).join(', ');
|
|
26376
|
+
let label = this.modelValue.map(item => this.options.find(val => val.value === this.emitObject ? item.value : item).label).join(', ');
|
|
26321
26377
|
return label ?? this.modelValue;
|
|
26322
26378
|
} else {
|
|
26323
26379
|
return null;
|
|
26324
26380
|
}
|
|
26325
26381
|
},
|
|
26326
26382
|
labelSelected() {
|
|
26383
|
+
let currentValue = this.emitObject ? this.modelValue?.value : this.modelValue;
|
|
26327
26384
|
let label = null;
|
|
26328
26385
|
if (typeof this.modelValue === 'boolean') {
|
|
26329
|
-
label = this.options.find(val => typeof val.value === 'boolean' && val.value ===
|
|
26386
|
+
label = this.options.find(val => typeof val.value === 'boolean' && val.value === currentValue);
|
|
26330
26387
|
} else {
|
|
26331
|
-
label = this.options.find(val => val.value ===
|
|
26388
|
+
label = this.options.find(val => val.value === currentValue);
|
|
26332
26389
|
}
|
|
26333
|
-
return label ? label.label :
|
|
26390
|
+
return label ? label.label : currentValue;
|
|
26334
26391
|
},
|
|
26335
26392
|
finalRules() {
|
|
26336
26393
|
let rules = [...this.rules];
|
|
@@ -26463,7 +26520,12 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26463
26520
|
},
|
|
26464
26521
|
labelSelectedColor(value) {
|
|
26465
26522
|
if (this.modelValue) {
|
|
26466
|
-
const isSelected = this.multiple ? this.modelValue.
|
|
26523
|
+
const isSelected = this.multiple ? this.emitObject ? this.modelValue.some(item => item.value === value) // Verifica si algún elemento del modelo tiene el valor proporcionado
|
|
26524
|
+
: this.modelValue.includes(value) // Verifica si el valor proporcionado está en el modelo
|
|
26525
|
+
: this.emitObject ? this.modelValue?.value === value // Compara el valor del modelo con el valor proporcionado
|
|
26526
|
+
: this.modelValue === value; // Compara el valor del modelo con el valor proporcionado
|
|
26527
|
+
|
|
26528
|
+
// Devuelve el color de fondo si la etiqueta está seleccionada; de lo contrario, null
|
|
26467
26529
|
return isSelected ? [this.selectedOptionBgColor] : null;
|
|
26468
26530
|
}
|
|
26469
26531
|
},
|
|
@@ -26553,16 +26615,27 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26553
26615
|
* @event update:modelValue
|
|
26554
26616
|
* @type {Event}
|
|
26555
26617
|
*/
|
|
26556
|
-
|
|
26618
|
+
if (this.emitObject) {
|
|
26619
|
+
await this.$emit('update:modelValue', option);
|
|
26620
|
+
} else {
|
|
26621
|
+
await this.$emit('update:modelValue', option.value);
|
|
26622
|
+
}
|
|
26557
26623
|
this.validate();
|
|
26558
26624
|
},
|
|
26559
26625
|
async selectMultiOption(option) {
|
|
26560
|
-
|
|
26626
|
+
let index = null;
|
|
26627
|
+
if (this.emitObject) {
|
|
26628
|
+
// Caso en que `this.emitObject` es true y `this.multipleValue` es un array de objetos
|
|
26629
|
+
index = (this.multipleValue ?? []).findIndex(item => item.value === option.value);
|
|
26630
|
+
} else {
|
|
26631
|
+
// Caso en que `this.emitObject` es false y `this.multipleValue` es un array de valores
|
|
26632
|
+
index = (this.multipleValue ?? []).indexOf(option.value);
|
|
26633
|
+
}
|
|
26561
26634
|
if (index === -1) {
|
|
26562
|
-
// Si no existe lo agrega al arreglo de selección
|
|
26563
|
-
this.multipleValue.push(option.value);
|
|
26635
|
+
// Si no existe, lo agrega al arreglo de selección múltiple
|
|
26636
|
+
this.multipleValue.push(this.emitObject ? option : option.value);
|
|
26564
26637
|
} else {
|
|
26565
|
-
// Si existe lo elimina del arreglo de selección
|
|
26638
|
+
// Si existe, lo elimina del arreglo de selección múltiple
|
|
26566
26639
|
this.multipleValue.splice(index, 1);
|
|
26567
26640
|
}
|
|
26568
26641
|
const updatedValue = this.multipleValue.length > 0 ? this.multipleValue : null;
|
|
@@ -26598,8 +26671,9 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26598
26671
|
validateOneSelect(rules) {
|
|
26599
26672
|
let i = 0;
|
|
26600
26673
|
let result = true;
|
|
26674
|
+
let currentValue = this.emitObject ? this.modelValue?.value : this.modelValue;
|
|
26601
26675
|
while (i < rules.length && result === true) {
|
|
26602
|
-
result = rules[i](
|
|
26676
|
+
result = rules[i](currentValue);
|
|
26603
26677
|
i++;
|
|
26604
26678
|
}
|
|
26605
26679
|
if (result !== true) {
|
|
@@ -26620,8 +26694,8 @@ const ESelectvue_type_script_lang_js_patterns = {
|
|
|
26620
26694
|
// Verifica si this.modelValue existe y es un array antes de iterar
|
|
26621
26695
|
if (Array.isArray(this.modelValue)) {
|
|
26622
26696
|
for (let j = 0; j < this.modelValue.length; j++) {
|
|
26623
|
-
if (typeof this.modelValue[j] !== 'boolean') {
|
|
26624
|
-
result = rules[i](this.modelValue[j]);
|
|
26697
|
+
if (typeof (this.emitObject ? this.modelValue[j].value : this.modelValue[j]) !== 'boolean') {
|
|
26698
|
+
result = rules[i](this.emitObject ? this.modelValue[j].value : this.modelValue[j]);
|
|
26625
26699
|
}
|
|
26626
26700
|
if (result !== true) {
|
|
26627
26701
|
this.setMessageRule(result);
|
|
@@ -26723,7 +26797,7 @@ if (typeof (ESelectvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26723
26797
|
|
|
26724
26798
|
|
|
26725
26799
|
;
|
|
26726
|
-
const ESelect_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ESelectvue_type_script_lang_js, [['render',
|
|
26800
|
+
const ESelect_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ESelectvue_type_script_lang_js, [['render',ESelectvue_type_template_id_9926dc2e_render]])
|
|
26727
26801
|
|
|
26728
26802
|
/* harmony default export */ var ESelect = (ESelect_exports_);
|
|
26729
26803
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.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/ui/components/table/ETable.vue?vue&type=template&id=82e0a956
|