@qikdev/vue-ui 0.1.38 → 0.1.41
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/lib.es.js +27 -12
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +3 -3
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, withDirectives, resolveDynamicComponent, vShow, pushScopeId, popScopeId, createElementVNode, normalizeStyle, createCommentVNode, Teleport, createTextVNode, vModelSelect, withKeys, withModifiers, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, mergeProps, toHandlers, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.1.
|
|
35
|
+
const version$1 = "0.1.41";
|
|
36
36
|
var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
37
37
|
var _export_sfc = (sfc, props2) => {
|
|
38
38
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -941,7 +941,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
941
941
|
}
|
|
942
942
|
var UXListItem = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__scopeId", "data-v-0e73c260"]]);
|
|
943
943
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
944
|
-
var safeJsonStringify$
|
|
944
|
+
var safeJsonStringify$1 = { exports: {} };
|
|
945
945
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
946
946
|
function throwsMessage(err) {
|
|
947
947
|
return "[Throws: " + (err ? err.message : "?") + "]";
|
|
@@ -989,11 +989,11 @@ function ensureProperties(obj) {
|
|
|
989
989
|
}
|
|
990
990
|
return visit(obj);
|
|
991
991
|
}
|
|
992
|
-
safeJsonStringify$
|
|
992
|
+
safeJsonStringify$1.exports = function(data, replacer, space) {
|
|
993
993
|
return JSON.stringify(ensureProperties(data), replacer, space);
|
|
994
994
|
};
|
|
995
|
-
safeJsonStringify$
|
|
996
|
-
var safeJsonStringify
|
|
995
|
+
safeJsonStringify$1.exports.ensureProperties = ensureProperties;
|
|
996
|
+
var safeJsonStringify = safeJsonStringify$1.exports;
|
|
997
997
|
function isUndefined$7(v, type) {
|
|
998
998
|
return v === void 0 || v === null || type == "date" && v.toString && v.toString() === "Invalid Date";
|
|
999
999
|
}
|
|
@@ -1018,7 +1018,7 @@ var InputMixin = {
|
|
|
1018
1018
|
modelValue(val, old) {
|
|
1019
1019
|
var cleanedValue = this.cleanInput(val);
|
|
1020
1020
|
var cleanedModel = this.cleanInput(this.model);
|
|
1021
|
-
if (safeJsonStringify
|
|
1021
|
+
if (safeJsonStringify(cleanedValue) != safeJsonStringify(cleanedModel)) {
|
|
1022
1022
|
this.model = cleanedValue;
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
@@ -10023,14 +10023,29 @@ function getDefaultValue(fieldData, currentValue) {
|
|
|
10023
10023
|
}
|
|
10024
10024
|
break;
|
|
10025
10025
|
case "reference":
|
|
10026
|
-
if (
|
|
10027
|
-
|
|
10028
|
-
|
|
10026
|
+
if (fieldData.widget === "form") {
|
|
10027
|
+
var number = ask;
|
|
10028
|
+
if (multiValue) {
|
|
10029
|
+
if (number > 0) {
|
|
10030
|
+
output = Array(number).fill().map(function() {
|
|
10031
|
+
return {};
|
|
10032
|
+
});
|
|
10033
|
+
} else {
|
|
10034
|
+
output = [];
|
|
10035
|
+
}
|
|
10029
10036
|
} else {
|
|
10030
|
-
output =
|
|
10037
|
+
output = isUndefined2(firstDefaultValue) ? {} : firstDefaultValue;
|
|
10031
10038
|
}
|
|
10032
10039
|
} else {
|
|
10033
|
-
|
|
10040
|
+
if (multiValue) {
|
|
10041
|
+
if (defaultValues.length) {
|
|
10042
|
+
output = defaultValues.slice(0, maximum);
|
|
10043
|
+
} else {
|
|
10044
|
+
output = [];
|
|
10045
|
+
}
|
|
10046
|
+
} else {
|
|
10047
|
+
output = isUndefined2(firstDefaultValue) ? void 0 : firstDefaultValue;
|
|
10048
|
+
}
|
|
10034
10049
|
}
|
|
10035
10050
|
break;
|
|
10036
10051
|
case "string":
|
|
@@ -10723,7 +10738,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10723
10738
|
$options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$g, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
|
|
10724
10739
|
], 34)) : createCommentVNode("", true);
|
|
10725
10740
|
}
|
|
10726
|
-
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
10741
|
+
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-54e7b3ce"]]);
|
|
10727
10742
|
var form_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10728
10743
|
const _sfc_main$k = {
|
|
10729
10744
|
props: {
|