@qikdev/vue-ui 0.2.137 → 0.2.139
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 +19 -9
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { defineComponent as Vi, ref as Zt, toRefs as ba, onMounted as ka, onBeforeUnmount as zo, watch as Ci, computed as di, openBlock as o, createElementBlock as d, renderSlot as B, createCommentVNode as _, useSlots as Ho, reactive as Sr, provide as $r, resolveComponent as y, normalizeClass as U, Fragment as w, unref as Bn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as v, withDirectives as K, vShow as ci, createElementVNode as x, withModifiers as W, createTextVNode as S, h as fi, resolveDynamicComponent as Ot, mergeProps as Ei, toHandlers as xa, vModelSelect as Tt, pushScopeId as tt, popScopeId as nt, normalizeStyle as ut, Teleport as qo, vModelText as se, withKeys as ge, TransitionGroup as Go, nextTick as wa, vModelDynamic as zn } from "vue";
|
|
3
3
|
import { EventDispatcher as Wo } from "@qikdev/sdk";
|
|
4
|
-
const Ko = "0.2.
|
|
4
|
+
const Ko = "0.2.139";
|
|
5
5
|
class Lt extends Error {
|
|
6
6
|
}
|
|
7
7
|
class Yo extends Lt {
|
|
@@ -11366,12 +11366,13 @@ const d1 = {
|
|
|
11366
11366
|
});
|
|
11367
11367
|
},
|
|
11368
11368
|
async create() {
|
|
11369
|
-
var
|
|
11369
|
+
var i;
|
|
11370
11370
|
const e = this;
|
|
11371
|
-
if (!((
|
|
11371
|
+
if (!((i = e.$sdk.global) != null && i.create))
|
|
11372
11372
|
return;
|
|
11373
|
-
|
|
11374
|
-
|
|
11373
|
+
let t = e.field.createModel;
|
|
11374
|
+
const n = await e.$sdk.global.create(e.field.referenceType, { model: t, preselected: !!t });
|
|
11375
|
+
e.multiValue ? (e.model || (e.model = []), e.model.push(n)) : e.model = n;
|
|
11375
11376
|
},
|
|
11376
11377
|
clear() {
|
|
11377
11378
|
this.model = void 0, this.touch();
|
|
@@ -11614,7 +11615,7 @@ function p1(e, t, n, i, s, r) {
|
|
|
11614
11615
|
})) : _("", !0)
|
|
11615
11616
|
], 64);
|
|
11616
11617
|
}
|
|
11617
|
-
const lo = /* @__PURE__ */ V(d1, [["render", p1], ["__scopeId", "data-v-
|
|
11618
|
+
const lo = /* @__PURE__ */ V(d1, [["render", p1], ["__scopeId", "data-v-059e18e6"]]);
|
|
11618
11619
|
function y1(e) {
|
|
11619
11620
|
return e === void 0 || typeof e > "u" || e === null || String(e) === "null" || String(e) === "undefined";
|
|
11620
11621
|
}
|
|
@@ -20313,6 +20314,9 @@ function IV(e, t, n, i, s, r) {
|
|
|
20313
20314
|
const _a = /* @__PURE__ */ V(SV, [["render", IV], ["__scopeId", "data-v-e1ea11cb"]]);
|
|
20314
20315
|
const DV = {
|
|
20315
20316
|
props: {
|
|
20317
|
+
autofocus: {
|
|
20318
|
+
type: Boolean
|
|
20319
|
+
},
|
|
20316
20320
|
modelValue: {
|
|
20317
20321
|
type: String
|
|
20318
20322
|
},
|
|
@@ -20333,7 +20337,11 @@ const DV = {
|
|
|
20333
20337
|
var e = this;
|
|
20334
20338
|
e.dispatch = ln(() => {
|
|
20335
20339
|
e.$emit("update:modelValue", e.value);
|
|
20336
|
-
}, e.debounce);
|
|
20340
|
+
}, e.debounce), e.autofocus && e.$refs.input.focus();
|
|
20341
|
+
},
|
|
20342
|
+
activated() {
|
|
20343
|
+
var e = this;
|
|
20344
|
+
e.autofocus && e.$refs.input.focus();
|
|
20337
20345
|
},
|
|
20338
20346
|
data() {
|
|
20339
20347
|
return {
|
|
@@ -20377,6 +20385,7 @@ function NV(e, t, n, i, s, r) {
|
|
|
20377
20385
|
const a = y("ux-icon");
|
|
20378
20386
|
return o(), d("div", FV, [
|
|
20379
20387
|
K(x("input", {
|
|
20388
|
+
ref: "input",
|
|
20380
20389
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => r.model = l),
|
|
20381
20390
|
placeholder: n.placeholder
|
|
20382
20391
|
}, null, 8, $V), [
|
|
@@ -20390,7 +20399,7 @@ function NV(e, t, n, i, s, r) {
|
|
|
20390
20399
|
])
|
|
20391
20400
|
]);
|
|
20392
20401
|
}
|
|
20393
|
-
const Wi = /* @__PURE__ */ V(DV, [["render", NV], ["__scopeId", "data-v-
|
|
20402
|
+
const Wi = /* @__PURE__ */ V(DV, [["render", NV], ["__scopeId", "data-v-08cae0e6"]]);
|
|
20394
20403
|
function LV(e) {
|
|
20395
20404
|
const t = /<\/?([a-zA-Z0-9]+)[^>]*>/g, n = [];
|
|
20396
20405
|
let i;
|
|
@@ -22850,6 +22859,7 @@ function qE(e, t, n, i, s, r) {
|
|
|
22850
22859
|
default: h(() => [
|
|
22851
22860
|
s.showFilters ? _("", !0) : (o(), k(u, {
|
|
22852
22861
|
key: 0,
|
|
22862
|
+
autofocus: "",
|
|
22853
22863
|
modelValue: s.search,
|
|
22854
22864
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => s.search = T),
|
|
22855
22865
|
loading: s.searching,
|
|
@@ -22951,7 +22961,7 @@ function qE(e, t, n, i, s, r) {
|
|
|
22951
22961
|
_: 1
|
|
22952
22962
|
});
|
|
22953
22963
|
}
|
|
22954
|
-
const GE = /* @__PURE__ */ V(RE, [["render", qE], ["__scopeId", "data-v-
|
|
22964
|
+
const GE = /* @__PURE__ */ V(RE, [["render", qE], ["__scopeId", "data-v-6a29c685"]]);
|
|
22955
22965
|
const WE = {
|
|
22956
22966
|
components: {
|
|
22957
22967
|
ScopeSelect: F1
|