@qikdev/vue-ui 0.1.77 → 0.1.80
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 +99 -41
- 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, withModifiers, createTextVNode, createCommentVNode, createElementVNode, mergeProps, toHandlers, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelSelect, withKeys, vModelText, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.1.
|
|
35
|
+
const version$1 = "0.1.80";
|
|
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;
|
|
@@ -5927,10 +5927,13 @@ const _sfc_main$L = {
|
|
|
5927
5927
|
type: Object
|
|
5928
5928
|
},
|
|
5929
5929
|
width: {
|
|
5930
|
-
type:
|
|
5930
|
+
type: Number
|
|
5931
5931
|
},
|
|
5932
5932
|
height: {
|
|
5933
|
-
type:
|
|
5933
|
+
type: Number
|
|
5934
|
+
},
|
|
5935
|
+
inline: {
|
|
5936
|
+
type: Boolean
|
|
5934
5937
|
},
|
|
5935
5938
|
quality: {
|
|
5936
5939
|
type: Number
|
|
@@ -5967,11 +5970,12 @@ const _sfc_main$L = {
|
|
|
5967
5970
|
};
|
|
5968
5971
|
},
|
|
5969
5972
|
computed: {
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
"
|
|
5974
|
-
}
|
|
5973
|
+
className() {
|
|
5974
|
+
var classes = [];
|
|
5975
|
+
if (this.portrait) {
|
|
5976
|
+
classes.push("img-portrait");
|
|
5977
|
+
}
|
|
5978
|
+
return classes.join(" ");
|
|
5975
5979
|
},
|
|
5976
5980
|
isSvg() {
|
|
5977
5981
|
var _a;
|
|
@@ -5984,11 +5988,8 @@ const _sfc_main$L = {
|
|
|
5984
5988
|
return true;
|
|
5985
5989
|
}
|
|
5986
5990
|
},
|
|
5987
|
-
|
|
5988
|
-
return;
|
|
5989
|
-
},
|
|
5990
|
-
defaultHeight() {
|
|
5991
|
-
return;
|
|
5991
|
+
portrait() {
|
|
5992
|
+
return this.crop ? this.dimensionHeight > this.dimensionWidth : this.modelHeight > this.modelWidth;
|
|
5992
5993
|
},
|
|
5993
5994
|
imageWidth() {
|
|
5994
5995
|
return parseInt(this.width);
|
|
@@ -5996,6 +5997,14 @@ const _sfc_main$L = {
|
|
|
5996
5997
|
imageHeight() {
|
|
5997
5998
|
return parseInt(this.height);
|
|
5998
5999
|
},
|
|
6000
|
+
modelWidth() {
|
|
6001
|
+
var _a;
|
|
6002
|
+
return parseInt((_a = this.model) == null ? void 0 : _a.width);
|
|
6003
|
+
},
|
|
6004
|
+
modelHeight() {
|
|
6005
|
+
var _a;
|
|
6006
|
+
return parseInt((_a = this.model) == null ? void 0 : _a.height);
|
|
6007
|
+
},
|
|
5999
6008
|
id() {
|
|
6000
6009
|
return this.$sdk.utils.id(this.model);
|
|
6001
6010
|
},
|
|
@@ -6003,10 +6012,10 @@ const _sfc_main$L = {
|
|
|
6003
6012
|
var params = {};
|
|
6004
6013
|
params.access_token = this.$sdk.auth.getCurrentToken();
|
|
6005
6014
|
if (this.imageWidth) {
|
|
6006
|
-
params.w = this.imageWidth ? this.imageWidth :
|
|
6015
|
+
params.w = this.imageWidth ? this.imageWidth : null;
|
|
6007
6016
|
}
|
|
6008
6017
|
if (this.imageHeight) {
|
|
6009
|
-
params.h = this.imageHeight ? this.imageHeight :
|
|
6018
|
+
params.h = this.imageHeight ? this.imageHeight : null;
|
|
6010
6019
|
}
|
|
6011
6020
|
if (this.crop) {
|
|
6012
6021
|
params.c = true;
|
|
@@ -6035,23 +6044,45 @@ const _sfc_main$L = {
|
|
|
6035
6044
|
delete params.h;
|
|
6036
6045
|
return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, params);
|
|
6037
6046
|
},
|
|
6047
|
+
imageStyle() {
|
|
6048
|
+
var style = {};
|
|
6049
|
+
if (!this.crop) {
|
|
6050
|
+
style["object-fit"] = "contain";
|
|
6051
|
+
}
|
|
6052
|
+
if (this.inline) {
|
|
6053
|
+
style.maxWidth = "100%";
|
|
6054
|
+
} else {
|
|
6055
|
+
style.width = "100%";
|
|
6056
|
+
style.height = "100%";
|
|
6057
|
+
style.top = `0`;
|
|
6058
|
+
style.left = `0`;
|
|
6059
|
+
style.position = "absolute";
|
|
6060
|
+
}
|
|
6061
|
+
return style;
|
|
6062
|
+
},
|
|
6063
|
+
dimensionWidth() {
|
|
6064
|
+
return this.imageWidth && this.imageHeight ? this.imageWidth : this.modelWidth;
|
|
6065
|
+
},
|
|
6066
|
+
dimensionHeight() {
|
|
6067
|
+
return this.imageWidth && this.imageHeight ? this.imageHeight : this.modelHeight;
|
|
6068
|
+
},
|
|
6038
6069
|
style() {
|
|
6039
6070
|
var _a, _b, _c;
|
|
6040
6071
|
var style = {};
|
|
6072
|
+
if (this.inline) {
|
|
6073
|
+
style.display = "inline-block";
|
|
6074
|
+
} else {
|
|
6075
|
+
if (this.dimensionHeight && this.dimensionWidth) {
|
|
6076
|
+
style.height = 0;
|
|
6077
|
+
style.overflow = "hidden";
|
|
6078
|
+
style.paddingBottom = `${this.dimensionHeight / this.dimensionWidth * 100}%`;
|
|
6079
|
+
style.position = "relative";
|
|
6080
|
+
}
|
|
6081
|
+
}
|
|
6041
6082
|
var colors = (_c = (_b = (_a = this.model) == null ? void 0 : _a.fileMeta) == null ? void 0 : _b.colors) == null ? void 0 : _c.colors;
|
|
6042
6083
|
if (colors && colors.length) {
|
|
6043
6084
|
style.backgroundColor = colors[0];
|
|
6044
6085
|
}
|
|
6045
|
-
var dimensionWidth = this.model.width;
|
|
6046
|
-
var dimensionHeight = this.model.height;
|
|
6047
|
-
if (this.width && this.height) {
|
|
6048
|
-
dimensionWidth = this.width;
|
|
6049
|
-
dimensionHeight = this.height;
|
|
6050
|
-
}
|
|
6051
|
-
if (dimensionHeight && dimensionWidth) {
|
|
6052
|
-
style.height = 0;
|
|
6053
|
-
style.paddingBottom = `${dimensionHeight / dimensionWidth * 100}%`;
|
|
6054
|
-
}
|
|
6055
6086
|
if (this.isSvg)
|
|
6056
6087
|
;
|
|
6057
6088
|
else {
|
|
@@ -6067,7 +6098,7 @@ const _hoisted_1$F = ["data"];
|
|
|
6067
6098
|
const _hoisted_2$y = ["src"];
|
|
6068
6099
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6069
6100
|
return openBlock(), createElementBlock("div", {
|
|
6070
|
-
class: "ux-image",
|
|
6101
|
+
class: normalizeClass(["ux-image", $options.className]),
|
|
6071
6102
|
style: normalizeStyle($options.style)
|
|
6072
6103
|
}, [
|
|
6073
6104
|
$props.svg ? (openBlock(), createElementBlock("object", {
|
|
@@ -6076,12 +6107,12 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6076
6107
|
data: $options.src
|
|
6077
6108
|
}, null, 8, _hoisted_1$F)) : (openBlock(), createElementBlock("img", {
|
|
6078
6109
|
key: 1,
|
|
6079
|
-
|
|
6080
|
-
|
|
6110
|
+
style: normalizeStyle($options.imageStyle),
|
|
6111
|
+
src: $options.src
|
|
6081
6112
|
}, null, 12, _hoisted_2$y))
|
|
6082
|
-
],
|
|
6113
|
+
], 6);
|
|
6083
6114
|
}
|
|
6084
|
-
var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-
|
|
6115
|
+
var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-1f7127ce"]]);
|
|
6085
6116
|
var progressbar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6086
6117
|
const _sfc_main$K = {
|
|
6087
6118
|
props: {
|
|
@@ -12363,14 +12394,17 @@ const _sfc_main$u = {
|
|
|
12363
12394
|
NativeSelect
|
|
12364
12395
|
}
|
|
12365
12396
|
};
|
|
12366
|
-
const _hoisted_1$o = {
|
|
12397
|
+
const _hoisted_1$o = {
|
|
12398
|
+
key: 0,
|
|
12399
|
+
class: "filter-rule"
|
|
12400
|
+
};
|
|
12367
12401
|
const _hoisted_2$k = { class: "top" };
|
|
12368
12402
|
const _hoisted_3$h = { class: "summary" };
|
|
12369
12403
|
const _hoisted_4$g = /* @__PURE__ */ createTextVNode(" Match ");
|
|
12370
12404
|
const _hoisted_5$b = /* @__PURE__ */ createTextVNode(" of the following conditions ");
|
|
12371
12405
|
const _hoisted_6$a = /* @__PURE__ */ createElementVNode("span", { class: "line" }, null, -1);
|
|
12372
12406
|
const _hoisted_7$7 = { class: "operator" };
|
|
12373
|
-
const _hoisted_8$3 = /* @__PURE__ */ createTextVNode("Add Condition");
|
|
12407
|
+
const _hoisted_8$3 = /* @__PURE__ */ createTextVNode(" Add Condition ");
|
|
12374
12408
|
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12375
12409
|
const _component_native_select = resolveComponent("native-select");
|
|
12376
12410
|
const _component_flex_cell = resolveComponent("flex-cell");
|
|
@@ -12378,7 +12412,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12378
12412
|
const _component_ux_button = resolveComponent("ux-button");
|
|
12379
12413
|
const _component_flex_row = resolveComponent("flex-row");
|
|
12380
12414
|
const _component_filter_condition = resolveComponent("filter-condition");
|
|
12381
|
-
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12415
|
+
return $props.definition ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12382
12416
|
createElementVNode("div", _hoisted_2$k, [
|
|
12383
12417
|
createVNode(_component_flex_row, null, {
|
|
12384
12418
|
default: withCtx(() => [
|
|
@@ -12456,13 +12490,20 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12456
12490
|
_: 2
|
|
12457
12491
|
}, 1024);
|
|
12458
12492
|
}), 128)),
|
|
12459
|
-
createVNode(_component_ux_button, {
|
|
12493
|
+
createVNode(_component_ux_button, {
|
|
12494
|
+
size: "sm",
|
|
12495
|
+
onClick: $options.addCondition
|
|
12496
|
+
}, {
|
|
12460
12497
|
default: withCtx(() => [
|
|
12461
|
-
_hoisted_8$3
|
|
12498
|
+
_hoisted_8$3,
|
|
12499
|
+
createVNode(_component_ux_icon, {
|
|
12500
|
+
icon: "fa-plus",
|
|
12501
|
+
right: ""
|
|
12502
|
+
})
|
|
12462
12503
|
]),
|
|
12463
12504
|
_: 1
|
|
12464
12505
|
}, 8, ["onClick"])
|
|
12465
|
-
]);
|
|
12506
|
+
])) : createCommentVNode("", true);
|
|
12466
12507
|
}
|
|
12467
12508
|
var FilterRule = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]);
|
|
12468
12509
|
var FilterBuilder_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -12615,6 +12656,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12615
12656
|
}, null, 8, ["onRemove", "definition", "modelValue", "onUpdate:modelValue", "index"]);
|
|
12616
12657
|
}), 128)),
|
|
12617
12658
|
createVNode(_component_ux_button, {
|
|
12659
|
+
size: "sm",
|
|
12618
12660
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.addRule())
|
|
12619
12661
|
}, {
|
|
12620
12662
|
default: withCtx(() => [
|
|
@@ -12630,7 +12672,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12630
12672
|
_: 1
|
|
12631
12673
|
});
|
|
12632
12674
|
}
|
|
12633
|
-
var FilterBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-
|
|
12675
|
+
var FilterBuilder = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-7933a5ee"]]);
|
|
12634
12676
|
var filter_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12635
12677
|
const _sfc_main$s = {
|
|
12636
12678
|
mixins: [InputMixin],
|
|
@@ -12740,6 +12782,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12740
12782
|
}), 128)),
|
|
12741
12783
|
_ctx.canAddValue ? (openBlock(), createBlock(_component_ux_button, {
|
|
12742
12784
|
key: 0,
|
|
12785
|
+
size: "sm",
|
|
12743
12786
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.add())
|
|
12744
12787
|
}, {
|
|
12745
12788
|
default: withCtx(() => [
|
|
@@ -12755,7 +12798,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12755
12798
|
}, null, 8, ["definition", "modelValue"]))
|
|
12756
12799
|
], 64);
|
|
12757
12800
|
}
|
|
12758
|
-
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-
|
|
12801
|
+
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-4aae9a4a"]]);
|
|
12759
12802
|
var switch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12760
12803
|
const _sfc_main$r = {
|
|
12761
12804
|
mixins: [InputMixin],
|
|
@@ -18168,12 +18211,25 @@ const _sfc_main$5 = {
|
|
|
18168
18211
|
return view;
|
|
18169
18212
|
},
|
|
18170
18213
|
sort() {
|
|
18171
|
-
var
|
|
18214
|
+
var _a;
|
|
18215
|
+
var defaultSort = ((_a = this.definition) == null ? void 0 : _a.defaultSort) || {
|
|
18172
18216
|
key: "title",
|
|
18173
18217
|
direction: "asc",
|
|
18174
18218
|
type: "string"
|
|
18175
18219
|
};
|
|
18176
18220
|
switch (this.basicType) {
|
|
18221
|
+
case "email":
|
|
18222
|
+
case "notification":
|
|
18223
|
+
case "transaction":
|
|
18224
|
+
case "campaign":
|
|
18225
|
+
case "transaction":
|
|
18226
|
+
case "componentsnapshot":
|
|
18227
|
+
case "interfacesnapshot":
|
|
18228
|
+
case "image":
|
|
18229
|
+
case "video":
|
|
18230
|
+
case "audio":
|
|
18231
|
+
case "file":
|
|
18232
|
+
case "submission":
|
|
18177
18233
|
case "log":
|
|
18178
18234
|
defaultSort = {
|
|
18179
18235
|
key: "meta.created",
|
|
@@ -18441,9 +18497,11 @@ const _sfc_main$5 = {
|
|
|
18441
18497
|
const { promise, cancel } = await self2.$sdk.content.list(self2.type, loadCriteria, { cancellable: true });
|
|
18442
18498
|
cancelInflight = cancel;
|
|
18443
18499
|
promise.then(function(res) {
|
|
18500
|
+
cancelInflight = null;
|
|
18444
18501
|
self2.loading = false;
|
|
18445
18502
|
});
|
|
18446
18503
|
promise.catch(function(err) {
|
|
18504
|
+
cancelInflight = null;
|
|
18447
18505
|
});
|
|
18448
18506
|
const { data } = await promise;
|
|
18449
18507
|
data.items.forEach(self2.ensureMeta);
|
|
@@ -18476,7 +18534,7 @@ const _sfc_main$5 = {
|
|
|
18476
18534
|
};
|
|
18477
18535
|
}
|
|
18478
18536
|
};
|
|
18479
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
18537
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-34d46a88"), n2 = n2(), popScopeId(), n2);
|
|
18480
18538
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
18481
18539
|
const _hoisted_2$4 = { class: "footer" };
|
|
18482
18540
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -18650,7 +18708,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18650
18708
|
_: 3
|
|
18651
18709
|
})) : createCommentVNode("", true);
|
|
18652
18710
|
}
|
|
18653
|
-
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
18711
|
+
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-34d46a88"]]);
|
|
18654
18712
|
var ModalMixin = {
|
|
18655
18713
|
props: {
|
|
18656
18714
|
options: {
|