zartui 3.1.14 → 3.1.15
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/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/multiple-picker/MultiplePicker.d.ts +16 -1
- package/es/multiple-picker/MultiplePicker.mjs +19 -2
- package/es/multiple-picker/MultiplePickerOptions.mjs +3 -1
- package/es/multiple-picker/index.d.ts +11 -1
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/multiple-picker/MultiplePicker.d.ts +16 -1
- package/lib/multiple-picker/MultiplePicker.js +19 -2
- package/lib/multiple-picker/MultiplePickerOptions.js +3 -1
- package/lib/multiple-picker/index.d.ts +11 -1
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +21 -4
- package/lib/zartui.es.js +21 -4
- package/lib/zartui.js +21 -4
- package/lib/zartui.min.js +1 -1
- package/package.json +79 -79
package/lib/zartui.cjs.js
CHANGED
|
@@ -14696,7 +14696,8 @@ var stdin_default$z = vue.defineComponent({
|
|
|
14696
14696
|
}, [slots.options ? slots.options(option) : vue.createVNode("div", childData, null)]);
|
|
14697
14697
|
});
|
|
14698
14698
|
};
|
|
14699
|
-
const setConfirmIndex = (
|
|
14699
|
+
const setConfirmIndex = (data) => {
|
|
14700
|
+
const indexes = deepClone(data);
|
|
14700
14701
|
state.confirmed = true;
|
|
14701
14702
|
const keys = Object.keys(indexes);
|
|
14702
14703
|
currentIndexes.value.length = 0;
|
|
@@ -14734,17 +14735,31 @@ const multiplePickerProps = {
|
|
|
14734
14735
|
textKey: makeStringProp("text"),
|
|
14735
14736
|
columnCounts: makeNumberProp(3),
|
|
14736
14737
|
selectedIndex: makeArrayProp([]),
|
|
14738
|
+
selectedValue: makeArrayProp([]),
|
|
14737
14739
|
popup: truthProp
|
|
14738
14740
|
};
|
|
14739
14741
|
var stdin_default$y = vue.defineComponent({
|
|
14740
14742
|
name: name$s,
|
|
14741
14743
|
props: multiplePickerProps,
|
|
14742
|
-
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex"],
|
|
14744
|
+
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
|
|
14743
14745
|
setup(props, {
|
|
14744
14746
|
emit,
|
|
14745
14747
|
slots
|
|
14746
14748
|
}) {
|
|
14747
14749
|
const confirmIndexes = vue.ref(props.selectedIndex);
|
|
14750
|
+
const confirmValues = vue.ref(props.selectedValue);
|
|
14751
|
+
const getIndexesByValues = () => {
|
|
14752
|
+
var _a;
|
|
14753
|
+
if (confirmValues.value && confirmValues.value.length > 0) {
|
|
14754
|
+
confirmIndexes.value.splice(0, confirmIndexes.value.length);
|
|
14755
|
+
(_a = props.options) == null ? void 0 : _a.forEach((option, index) => {
|
|
14756
|
+
if (option.value && confirmValues.value.includes(option.value)) {
|
|
14757
|
+
confirmIndexes.value.push(index);
|
|
14758
|
+
}
|
|
14759
|
+
});
|
|
14760
|
+
}
|
|
14761
|
+
};
|
|
14762
|
+
getIndexesByValues();
|
|
14748
14763
|
const pickerOptions = vue.ref();
|
|
14749
14764
|
const currentShow = vue.ref(props.showPicker);
|
|
14750
14765
|
const DEFAULT_ITEM_HEIGHT = vue.ref(36);
|
|
@@ -14752,7 +14767,9 @@ var stdin_default$y = vue.defineComponent({
|
|
|
14752
14767
|
if (newValue !== props.showPicker) {
|
|
14753
14768
|
emit("update:showPicker", newValue);
|
|
14754
14769
|
}
|
|
14755
|
-
confirmIndexes.value = props.selectedIndex;
|
|
14770
|
+
confirmIndexes.value = deepClone(props.selectedIndex);
|
|
14771
|
+
confirmValues.value = deepClone(props.selectedValue);
|
|
14772
|
+
getIndexesByValues();
|
|
14756
14773
|
});
|
|
14757
14774
|
vue.watch(() => props.showPicker, (newValue) => {
|
|
14758
14775
|
var _a;
|
|
@@ -20544,7 +20561,7 @@ const Lazyload = {
|
|
|
20544
20561
|
});
|
|
20545
20562
|
}
|
|
20546
20563
|
};
|
|
20547
|
-
const version = "3.1.
|
|
20564
|
+
const version = "3.1.15";
|
|
20548
20565
|
function install(app) {
|
|
20549
20566
|
const components = [
|
|
20550
20567
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -14694,7 +14694,8 @@ var stdin_default$z = defineComponent({
|
|
|
14694
14694
|
}, [slots.options ? slots.options(option) : createVNode("div", childData, null)]);
|
|
14695
14695
|
});
|
|
14696
14696
|
};
|
|
14697
|
-
const setConfirmIndex = (
|
|
14697
|
+
const setConfirmIndex = (data) => {
|
|
14698
|
+
const indexes = deepClone(data);
|
|
14698
14699
|
state.confirmed = true;
|
|
14699
14700
|
const keys = Object.keys(indexes);
|
|
14700
14701
|
currentIndexes.value.length = 0;
|
|
@@ -14732,17 +14733,31 @@ const multiplePickerProps = {
|
|
|
14732
14733
|
textKey: makeStringProp("text"),
|
|
14733
14734
|
columnCounts: makeNumberProp(3),
|
|
14734
14735
|
selectedIndex: makeArrayProp([]),
|
|
14736
|
+
selectedValue: makeArrayProp([]),
|
|
14735
14737
|
popup: truthProp
|
|
14736
14738
|
};
|
|
14737
14739
|
var stdin_default$y = defineComponent({
|
|
14738
14740
|
name: name$s,
|
|
14739
14741
|
props: multiplePickerProps,
|
|
14740
|
-
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex"],
|
|
14742
|
+
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
|
|
14741
14743
|
setup(props, {
|
|
14742
14744
|
emit,
|
|
14743
14745
|
slots
|
|
14744
14746
|
}) {
|
|
14745
14747
|
const confirmIndexes = ref(props.selectedIndex);
|
|
14748
|
+
const confirmValues = ref(props.selectedValue);
|
|
14749
|
+
const getIndexesByValues = () => {
|
|
14750
|
+
var _a;
|
|
14751
|
+
if (confirmValues.value && confirmValues.value.length > 0) {
|
|
14752
|
+
confirmIndexes.value.splice(0, confirmIndexes.value.length);
|
|
14753
|
+
(_a = props.options) == null ? void 0 : _a.forEach((option, index) => {
|
|
14754
|
+
if (option.value && confirmValues.value.includes(option.value)) {
|
|
14755
|
+
confirmIndexes.value.push(index);
|
|
14756
|
+
}
|
|
14757
|
+
});
|
|
14758
|
+
}
|
|
14759
|
+
};
|
|
14760
|
+
getIndexesByValues();
|
|
14746
14761
|
const pickerOptions = ref();
|
|
14747
14762
|
const currentShow = ref(props.showPicker);
|
|
14748
14763
|
const DEFAULT_ITEM_HEIGHT = ref(36);
|
|
@@ -14750,7 +14765,9 @@ var stdin_default$y = defineComponent({
|
|
|
14750
14765
|
if (newValue !== props.showPicker) {
|
|
14751
14766
|
emit("update:showPicker", newValue);
|
|
14752
14767
|
}
|
|
14753
|
-
confirmIndexes.value = props.selectedIndex;
|
|
14768
|
+
confirmIndexes.value = deepClone(props.selectedIndex);
|
|
14769
|
+
confirmValues.value = deepClone(props.selectedValue);
|
|
14770
|
+
getIndexesByValues();
|
|
14754
14771
|
});
|
|
14755
14772
|
watch(() => props.showPicker, (newValue) => {
|
|
14756
14773
|
var _a;
|
|
@@ -20542,7 +20559,7 @@ const Lazyload = {
|
|
|
20542
20559
|
});
|
|
20543
20560
|
}
|
|
20544
20561
|
};
|
|
20545
|
-
const version = "3.1.
|
|
20562
|
+
const version = "3.1.15";
|
|
20546
20563
|
function install(app) {
|
|
20547
20564
|
const components = [
|
|
20548
20565
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -15013,7 +15013,8 @@
|
|
|
15013
15013
|
}, [slots.options ? slots.options(option) : vue.createVNode("div", childData, null)]);
|
|
15014
15014
|
});
|
|
15015
15015
|
};
|
|
15016
|
-
const setConfirmIndex = (
|
|
15016
|
+
const setConfirmIndex = (data) => {
|
|
15017
|
+
const indexes = deepClone(data);
|
|
15017
15018
|
state.confirmed = true;
|
|
15018
15019
|
const keys = Object.keys(indexes);
|
|
15019
15020
|
currentIndexes.value.length = 0;
|
|
@@ -15051,17 +15052,31 @@
|
|
|
15051
15052
|
textKey: makeStringProp("text"),
|
|
15052
15053
|
columnCounts: makeNumberProp(3),
|
|
15053
15054
|
selectedIndex: makeArrayProp([]),
|
|
15055
|
+
selectedValue: makeArrayProp([]),
|
|
15054
15056
|
popup: truthProp
|
|
15055
15057
|
};
|
|
15056
15058
|
var stdin_default$y = vue.defineComponent({
|
|
15057
15059
|
name: name$s,
|
|
15058
15060
|
props: multiplePickerProps,
|
|
15059
|
-
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex"],
|
|
15061
|
+
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
|
|
15060
15062
|
setup(props, {
|
|
15061
15063
|
emit,
|
|
15062
15064
|
slots
|
|
15063
15065
|
}) {
|
|
15064
15066
|
const confirmIndexes = vue.ref(props.selectedIndex);
|
|
15067
|
+
const confirmValues = vue.ref(props.selectedValue);
|
|
15068
|
+
const getIndexesByValues = () => {
|
|
15069
|
+
var _a;
|
|
15070
|
+
if (confirmValues.value && confirmValues.value.length > 0) {
|
|
15071
|
+
confirmIndexes.value.splice(0, confirmIndexes.value.length);
|
|
15072
|
+
(_a = props.options) == null ? void 0 : _a.forEach((option, index) => {
|
|
15073
|
+
if (option.value && confirmValues.value.includes(option.value)) {
|
|
15074
|
+
confirmIndexes.value.push(index);
|
|
15075
|
+
}
|
|
15076
|
+
});
|
|
15077
|
+
}
|
|
15078
|
+
};
|
|
15079
|
+
getIndexesByValues();
|
|
15065
15080
|
const pickerOptions = vue.ref();
|
|
15066
15081
|
const currentShow = vue.ref(props.showPicker);
|
|
15067
15082
|
const DEFAULT_ITEM_HEIGHT = vue.ref(36);
|
|
@@ -15069,7 +15084,9 @@
|
|
|
15069
15084
|
if (newValue !== props.showPicker) {
|
|
15070
15085
|
emit("update:showPicker", newValue);
|
|
15071
15086
|
}
|
|
15072
|
-
confirmIndexes.value = props.selectedIndex;
|
|
15087
|
+
confirmIndexes.value = deepClone(props.selectedIndex);
|
|
15088
|
+
confirmValues.value = deepClone(props.selectedValue);
|
|
15089
|
+
getIndexesByValues();
|
|
15073
15090
|
});
|
|
15074
15091
|
vue.watch(() => props.showPicker, (newValue) => {
|
|
15075
15092
|
var _a;
|
|
@@ -22162,7 +22179,7 @@
|
|
|
22162
22179
|
});
|
|
22163
22180
|
}
|
|
22164
22181
|
};
|
|
22165
|
-
const version = "3.1.
|
|
22182
|
+
const version = "3.1.15";
|
|
22166
22183
|
function install(app) {
|
|
22167
22184
|
const components = [
|
|
22168
22185
|
ActionSheet,
|