@iankibetsh/shframework 4.4.4 → 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.js +25 -24
- package/dist/library.mjs +25 -24
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3697,7 +3697,7 @@ var script$j = {
|
|
|
3697
3697
|
'files',
|
|
3698
3698
|
'phones',
|
|
3699
3699
|
'numbers',
|
|
3700
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
3700
|
+
'customComponent','modalTitle','class','successMessage', 'modalId'],
|
|
3701
3701
|
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3702
3702
|
setup(__props, { emit: __emit }) {
|
|
3703
3703
|
|
|
@@ -3705,12 +3705,12 @@ const props = __props;
|
|
|
3705
3705
|
const emit = __emit;
|
|
3706
3706
|
vue.ref(props);
|
|
3707
3707
|
let btnClass=props.class;
|
|
3708
|
-
const
|
|
3708
|
+
const realModalId = props.modalId ?? 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
3709
3709
|
const success = (res)=>{
|
|
3710
3710
|
emit('success',res);
|
|
3711
3711
|
};
|
|
3712
3712
|
vue.onMounted(()=>{
|
|
3713
|
-
emit('modalId',
|
|
3713
|
+
emit('modalId',realModalId);
|
|
3714
3714
|
});
|
|
3715
3715
|
|
|
3716
3716
|
const fieldChanged = (field, value)=>{
|
|
@@ -3729,25 +3729,26 @@ return (_ctx, _cache) => {
|
|
|
3729
3729
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3730
3730
|
vue.createElementVNode("a", {
|
|
3731
3731
|
class: vue.normalizeClass(vue.unref(btnClass)),
|
|
3732
|
-
href: '#' +
|
|
3732
|
+
href: '#' + vue.unref(realModalId),
|
|
3733
3733
|
"data-bs-toggle": "modal"
|
|
3734
3734
|
}, [
|
|
3735
3735
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3736
3736
|
], 10 /* CLASS, PROPS */, _hoisted_1$g),
|
|
3737
3737
|
vue.createVNode(script$k, {
|
|
3738
|
-
"modal-id":
|
|
3738
|
+
"modal-id": vue.unref(realModalId),
|
|
3739
3739
|
"modal-title": __props.modalTitle
|
|
3740
3740
|
}, {
|
|
3741
3741
|
default: vue.withCtx(() => [
|
|
3742
|
-
vue.
|
|
3742
|
+
(vue.openBlock(), vue.createBlock(script$m, vue.mergeProps({
|
|
3743
3743
|
onSuccess: success,
|
|
3744
3744
|
onFieldChanged: fieldChanged,
|
|
3745
3745
|
onFormSubmitted: formSubmitted,
|
|
3746
|
-
onFormError: formError
|
|
3747
|
-
|
|
3746
|
+
onFormError: formError,
|
|
3747
|
+
key: JSON.stringify(__props.currentData ?? {})
|
|
3748
|
+
}, props), null, 16 /* FULL_PROPS */))
|
|
3748
3749
|
]),
|
|
3749
3750
|
_: 1 /* STABLE */
|
|
3750
|
-
}, 8 /* PROPS */, ["modal-title"])
|
|
3751
|
+
}, 8 /* PROPS */, ["modal-id", "modal-title"])
|
|
3751
3752
|
], 64 /* STABLE_FRAGMENT */))
|
|
3752
3753
|
}
|
|
3753
3754
|
}
|
|
@@ -4609,16 +4610,16 @@ const _hoisted_7$2 = {
|
|
|
4609
4610
|
class: "row"
|
|
4610
4611
|
};
|
|
4611
4612
|
const _hoisted_8$2 = { class: "col-12 mb-3 d-flex justify-content-start" };
|
|
4612
|
-
const _hoisted_9$2 =
|
|
4613
|
+
const _hoisted_9$2 = ["placeholder"];
|
|
4614
|
+
const _hoisted_10$1 = {
|
|
4613
4615
|
key: 0,
|
|
4614
|
-
class: "
|
|
4616
|
+
class: "input-group-text exact_checkbox"
|
|
4615
4617
|
};
|
|
4616
|
-
const
|
|
4617
|
-
const
|
|
4618
|
+
const _hoisted_11$1 = /*#__PURE__*/vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
|
|
4619
|
+
const _hoisted_12$1 = {
|
|
4618
4620
|
key: 0,
|
|
4619
|
-
class: "
|
|
4621
|
+
class: "sh-range-selector"
|
|
4620
4622
|
};
|
|
4621
|
-
const _hoisted_12$1 = /*#__PURE__*/vue.createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
|
|
4622
4623
|
const _hoisted_13$1 = {
|
|
4623
4624
|
key: 0,
|
|
4624
4625
|
class: "text-center"
|
|
@@ -5101,11 +5102,6 @@ return (_ctx, _cache) => {
|
|
|
5101
5102
|
(!__props.hideSearch)
|
|
5102
5103
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
|
|
5103
5104
|
vue.createElementVNode("div", _hoisted_8$2, [
|
|
5104
|
-
(__props.hasRange)
|
|
5105
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$2, [
|
|
5106
|
-
vue.createVNode(script$c, { onRangeSelected: _ctx.rangeChanged }, null, 8 /* PROPS */, ["onRangeSelected"])
|
|
5107
|
-
]))
|
|
5108
|
-
: vue.createCommentVNode("v-if", true),
|
|
5109
5105
|
vue.createElementVNode("div", {
|
|
5110
5106
|
class: vue.normalizeClass(["sh-search-bar input-group", __props.hasRange ? 'ms-2':''])
|
|
5111
5107
|
}, [
|
|
@@ -5117,11 +5113,11 @@ return (_ctx, _cache) => {
|
|
|
5117
5113
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
|
|
5118
5114
|
placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
|
|
5119
5115
|
class: "form-control sh-search-input"
|
|
5120
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */,
|
|
5116
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_9$2), [
|
|
5121
5117
|
[vue.vModelText, _ctx.filter_value]
|
|
5122
5118
|
]),
|
|
5123
5119
|
(_ctx.filter_value.length > 1)
|
|
5124
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
5120
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$1, [
|
|
5125
5121
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
5126
5122
|
onChange: _cache[5] || (_cache[5] = (...args) => (_ctx.reloadData && _ctx.reloadData(...args))),
|
|
5127
5123
|
value: true,
|
|
@@ -5130,10 +5126,15 @@ return (_ctx, _cache) => {
|
|
|
5130
5126
|
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
5131
5127
|
[vue.vModelCheckbox, _ctx.exactMatch]
|
|
5132
5128
|
]),
|
|
5133
|
-
|
|
5129
|
+
_hoisted_11$1
|
|
5134
5130
|
]))
|
|
5135
5131
|
: vue.createCommentVNode("v-if", true)
|
|
5136
|
-
], 2 /* CLASS */)
|
|
5132
|
+
], 2 /* CLASS */),
|
|
5133
|
+
(__props.hasRange)
|
|
5134
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
|
|
5135
|
+
vue.createVNode(script$c, { onRangeSelected: _ctx.rangeChanged }, null, 8 /* PROPS */, ["onRangeSelected"])
|
|
5136
|
+
]))
|
|
5137
|
+
: vue.createCommentVNode("v-if", true)
|
|
5137
5138
|
])
|
|
5138
5139
|
]))
|
|
5139
5140
|
: vue.createCommentVNode("v-if", true),
|
package/dist/library.mjs
CHANGED
|
@@ -3685,7 +3685,7 @@ var script$j = {
|
|
|
3685
3685
|
'files',
|
|
3686
3686
|
'phones',
|
|
3687
3687
|
'numbers',
|
|
3688
|
-
'customComponent','modalTitle','class','successMessage'],
|
|
3688
|
+
'customComponent','modalTitle','class','successMessage', 'modalId'],
|
|
3689
3689
|
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3690
3690
|
setup(__props, { emit: __emit }) {
|
|
3691
3691
|
|
|
@@ -3693,12 +3693,12 @@ const props = __props;
|
|
|
3693
3693
|
const emit = __emit;
|
|
3694
3694
|
ref(props);
|
|
3695
3695
|
let btnClass=props.class;
|
|
3696
|
-
const
|
|
3696
|
+
const realModalId = props.modalId ?? 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
3697
3697
|
const success = (res)=>{
|
|
3698
3698
|
emit('success',res);
|
|
3699
3699
|
};
|
|
3700
3700
|
onMounted(()=>{
|
|
3701
|
-
emit('modalId',
|
|
3701
|
+
emit('modalId',realModalId);
|
|
3702
3702
|
});
|
|
3703
3703
|
|
|
3704
3704
|
const fieldChanged = (field, value)=>{
|
|
@@ -3717,25 +3717,26 @@ return (_ctx, _cache) => {
|
|
|
3717
3717
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
3718
3718
|
createElementVNode("a", {
|
|
3719
3719
|
class: normalizeClass(unref(btnClass)),
|
|
3720
|
-
href: '#' +
|
|
3720
|
+
href: '#' + unref(realModalId),
|
|
3721
3721
|
"data-bs-toggle": "modal"
|
|
3722
3722
|
}, [
|
|
3723
3723
|
renderSlot(_ctx.$slots, "default")
|
|
3724
3724
|
], 10 /* CLASS, PROPS */, _hoisted_1$g),
|
|
3725
3725
|
createVNode(script$k, {
|
|
3726
|
-
"modal-id":
|
|
3726
|
+
"modal-id": unref(realModalId),
|
|
3727
3727
|
"modal-title": __props.modalTitle
|
|
3728
3728
|
}, {
|
|
3729
3729
|
default: withCtx(() => [
|
|
3730
|
-
|
|
3730
|
+
(openBlock(), createBlock(script$m, mergeProps({
|
|
3731
3731
|
onSuccess: success,
|
|
3732
3732
|
onFieldChanged: fieldChanged,
|
|
3733
3733
|
onFormSubmitted: formSubmitted,
|
|
3734
|
-
onFormError: formError
|
|
3735
|
-
|
|
3734
|
+
onFormError: formError,
|
|
3735
|
+
key: JSON.stringify(__props.currentData ?? {})
|
|
3736
|
+
}, props), null, 16 /* FULL_PROPS */))
|
|
3736
3737
|
]),
|
|
3737
3738
|
_: 1 /* STABLE */
|
|
3738
|
-
}, 8 /* PROPS */, ["modal-title"])
|
|
3739
|
+
}, 8 /* PROPS */, ["modal-id", "modal-title"])
|
|
3739
3740
|
], 64 /* STABLE_FRAGMENT */))
|
|
3740
3741
|
}
|
|
3741
3742
|
}
|
|
@@ -4597,16 +4598,16 @@ const _hoisted_7$2 = {
|
|
|
4597
4598
|
class: "row"
|
|
4598
4599
|
};
|
|
4599
4600
|
const _hoisted_8$2 = { class: "col-12 mb-3 d-flex justify-content-start" };
|
|
4600
|
-
const _hoisted_9$2 =
|
|
4601
|
+
const _hoisted_9$2 = ["placeholder"];
|
|
4602
|
+
const _hoisted_10$1 = {
|
|
4601
4603
|
key: 0,
|
|
4602
|
-
class: "
|
|
4604
|
+
class: "input-group-text exact_checkbox"
|
|
4603
4605
|
};
|
|
4604
|
-
const
|
|
4605
|
-
const
|
|
4606
|
+
const _hoisted_11$1 = /*#__PURE__*/createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
|
|
4607
|
+
const _hoisted_12$1 = {
|
|
4606
4608
|
key: 0,
|
|
4607
|
-
class: "
|
|
4609
|
+
class: "sh-range-selector"
|
|
4608
4610
|
};
|
|
4609
|
-
const _hoisted_12$1 = /*#__PURE__*/createElementVNode("span", { class: "ms-1" }, "Exact", -1 /* HOISTED */);
|
|
4610
4611
|
const _hoisted_13$1 = {
|
|
4611
4612
|
key: 0,
|
|
4612
4613
|
class: "text-center"
|
|
@@ -5089,11 +5090,6 @@ return (_ctx, _cache) => {
|
|
|
5089
5090
|
(!__props.hideSearch)
|
|
5090
5091
|
? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
5091
5092
|
createElementVNode("div", _hoisted_8$2, [
|
|
5092
|
-
(__props.hasRange)
|
|
5093
|
-
? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
5094
|
-
createVNode(script$c, { onRangeSelected: _ctx.rangeChanged }, null, 8 /* PROPS */, ["onRangeSelected"])
|
|
5095
|
-
]))
|
|
5096
|
-
: createCommentVNode("v-if", true),
|
|
5097
5093
|
createElementVNode("div", {
|
|
5098
5094
|
class: normalizeClass(["sh-search-bar input-group", __props.hasRange ? 'ms-2':''])
|
|
5099
5095
|
}, [
|
|
@@ -5105,11 +5101,11 @@ return (_ctx, _cache) => {
|
|
|
5105
5101
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((_ctx.filter_value) = $event)),
|
|
5106
5102
|
placeholder: __props.searchPlaceholder ? __props.searchPlaceholder : 'Search',
|
|
5107
5103
|
class: "form-control sh-search-input"
|
|
5108
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */,
|
|
5104
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_9$2), [
|
|
5109
5105
|
[vModelText, _ctx.filter_value]
|
|
5110
5106
|
]),
|
|
5111
5107
|
(_ctx.filter_value.length > 1)
|
|
5112
|
-
? (openBlock(), createElementBlock("span",
|
|
5108
|
+
? (openBlock(), createElementBlock("span", _hoisted_10$1, [
|
|
5113
5109
|
withDirectives(createElementVNode("input", {
|
|
5114
5110
|
onChange: _cache[5] || (_cache[5] = (...args) => (_ctx.reloadData && _ctx.reloadData(...args))),
|
|
5115
5111
|
value: true,
|
|
@@ -5118,10 +5114,15 @@ return (_ctx, _cache) => {
|
|
|
5118
5114
|
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
|
|
5119
5115
|
[vModelCheckbox, _ctx.exactMatch]
|
|
5120
5116
|
]),
|
|
5121
|
-
|
|
5117
|
+
_hoisted_11$1
|
|
5122
5118
|
]))
|
|
5123
5119
|
: createCommentVNode("v-if", true)
|
|
5124
|
-
], 2 /* CLASS */)
|
|
5120
|
+
], 2 /* CLASS */),
|
|
5121
|
+
(__props.hasRange)
|
|
5122
|
+
? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
5123
|
+
createVNode(script$c, { onRangeSelected: _ctx.rangeChanged }, null, 8 /* PROPS */, ["onRangeSelected"])
|
|
5124
|
+
]))
|
|
5125
|
+
: createCommentVNode("v-if", true)
|
|
5125
5126
|
])
|
|
5126
5127
|
]))
|
|
5127
5128
|
: createCommentVNode("v-if", true),
|