@qikdev/vue-ui 0.1.31 → 0.1.34
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 +52 -17
- 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 -2
package/dist/lib.es.js
CHANGED
|
@@ -31,9 +31,8 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
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
|
-
import { VAceEditor } from "vue3-ace-editor";
|
|
35
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
36
|
-
const version$1 = "0.1.
|
|
35
|
+
const version$1 = "0.1.34";
|
|
37
36
|
var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
38
37
|
var _export_sfc = (sfc, props2) => {
|
|
39
38
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -412,6 +411,12 @@ const _sfc_main$S = {
|
|
|
412
411
|
default() {
|
|
413
412
|
return false;
|
|
414
413
|
}
|
|
414
|
+
},
|
|
415
|
+
loading: {
|
|
416
|
+
type: Boolean,
|
|
417
|
+
default() {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
415
420
|
}
|
|
416
421
|
},
|
|
417
422
|
computed: {
|
|
@@ -422,16 +427,27 @@ const _sfc_main$S = {
|
|
|
422
427
|
} else {
|
|
423
428
|
array.push(`ux-switch-false`);
|
|
424
429
|
}
|
|
430
|
+
if (this.loading) {
|
|
431
|
+
array.push(`ux-switch-loading`);
|
|
432
|
+
}
|
|
425
433
|
return array;
|
|
426
434
|
}
|
|
427
435
|
}
|
|
428
436
|
};
|
|
429
437
|
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
438
|
+
const _component_ux_icon = resolveComponent("ux-icon");
|
|
430
439
|
return openBlock(), createElementBlock("a", {
|
|
431
440
|
class: normalizeClass(["ux-switch", $options.classes])
|
|
432
|
-
},
|
|
441
|
+
}, [
|
|
442
|
+
createElementVNode("span", null, [
|
|
443
|
+
createVNode(_component_ux_icon, {
|
|
444
|
+
spin: "",
|
|
445
|
+
icon: "fa-spinner"
|
|
446
|
+
})
|
|
447
|
+
])
|
|
448
|
+
], 2);
|
|
433
449
|
}
|
|
434
|
-
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__scopeId", "data-v-
|
|
450
|
+
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__scopeId", "data-v-4063e9b5"]]);
|
|
435
451
|
var link_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
436
452
|
const _sfc_main$R = {
|
|
437
453
|
props: {
|
|
@@ -4985,11 +5001,17 @@ const _sfc_main$G = {
|
|
|
4985
5001
|
open() {
|
|
4986
5002
|
var self2 = this;
|
|
4987
5003
|
self2.touch();
|
|
4988
|
-
|
|
5004
|
+
var modalOptions = {
|
|
4989
5005
|
field: self2.field,
|
|
4990
5006
|
model: self2.multiValue ? self2.value : [self2.value].filter(Boolean),
|
|
4991
|
-
maximum: self2.field.maximum
|
|
4992
|
-
|
|
5007
|
+
maximum: self2.field.maximum,
|
|
5008
|
+
browserOptions: {
|
|
5009
|
+
columns: self2.field.columns,
|
|
5010
|
+
select: self2.field.select
|
|
5011
|
+
}
|
|
5012
|
+
};
|
|
5013
|
+
console.log("Modal options", modalOptions);
|
|
5014
|
+
self2.$qik.browse(this.field.referenceType, modalOptions).then(function(newSelection) {
|
|
4993
5015
|
self2.model = self2.multiValue ? newSelection : newSelection[0];
|
|
4994
5016
|
}).catch(function(err) {
|
|
4995
5017
|
console.log("Error", err);
|
|
@@ -5144,7 +5166,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5144
5166
|
}, 8, ["onClick"])
|
|
5145
5167
|
], 64);
|
|
5146
5168
|
}
|
|
5147
|
-
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-
|
|
5169
|
+
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-858ab1cc"]]);
|
|
5148
5170
|
var typeSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5149
5171
|
function isUndefined$4(entry) {
|
|
5150
5172
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -8693,9 +8715,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8693
8715
|
var OptionsManager = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-42a51394"]]);
|
|
8694
8716
|
var codeEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8695
8717
|
const _sfc_main$m = {
|
|
8696
|
-
components: {
|
|
8697
|
-
VAceEditor
|
|
8698
|
-
},
|
|
8718
|
+
components: {},
|
|
8699
8719
|
methods: {
|
|
8700
8720
|
editorInit() {
|
|
8701
8721
|
}
|
|
@@ -8748,7 +8768,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8748
8768
|
_: 1
|
|
8749
8769
|
})) : createCommentVNode("", true);
|
|
8750
8770
|
}
|
|
8751
|
-
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-
|
|
8771
|
+
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-38988542"]]);
|
|
8752
8772
|
var codeEditorField_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8753
8773
|
const _sfc_main$l = {
|
|
8754
8774
|
components: {
|
|
@@ -16934,12 +16954,16 @@ const _sfc_main$5 = {
|
|
|
16934
16954
|
return this.definition.plural;
|
|
16935
16955
|
},
|
|
16936
16956
|
selectFields() {
|
|
16937
|
-
|
|
16957
|
+
var fields = this.columns.map(function(column) {
|
|
16938
16958
|
if (column.fields) {
|
|
16939
16959
|
return [column.key, ...column.fields];
|
|
16940
16960
|
}
|
|
16941
16961
|
return column.key;
|
|
16942
16962
|
}).flat();
|
|
16963
|
+
if (this.options.select) {
|
|
16964
|
+
fields = [...fields, ...this.options.select];
|
|
16965
|
+
}
|
|
16966
|
+
return fields;
|
|
16943
16967
|
},
|
|
16944
16968
|
columns() {
|
|
16945
16969
|
let columns = [];
|
|
@@ -16948,6 +16972,17 @@ const _sfc_main$5 = {
|
|
|
16948
16972
|
set[column.key] = 1;
|
|
16949
16973
|
return set;
|
|
16950
16974
|
}, {});
|
|
16975
|
+
var augmentColumns = this.options.columns || [];
|
|
16976
|
+
augmentColumns.forEach(function(field) {
|
|
16977
|
+
if (!existingColumns[field.key]) {
|
|
16978
|
+
existingColumns[field.key] = 1;
|
|
16979
|
+
columns.push({
|
|
16980
|
+
title: field.title,
|
|
16981
|
+
key: field.path,
|
|
16982
|
+
type: field.type
|
|
16983
|
+
});
|
|
16984
|
+
}
|
|
16985
|
+
});
|
|
16951
16986
|
var additionalFields = this.additionalFields;
|
|
16952
16987
|
additionalFields.forEach(function(field) {
|
|
16953
16988
|
if (!existingColumns[field.key]) {
|
|
@@ -17120,7 +17155,7 @@ const _sfc_main$5 = {
|
|
|
17120
17155
|
};
|
|
17121
17156
|
}
|
|
17122
17157
|
};
|
|
17123
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
17158
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-3bfbea74"), n2 = n2(), popScopeId(), n2);
|
|
17124
17159
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
17125
17160
|
const _hoisted_2$4 = { class: "footer" };
|
|
17126
17161
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -17289,7 +17324,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17289
17324
|
_: 3
|
|
17290
17325
|
})) : createCommentVNode("", true);
|
|
17291
17326
|
}
|
|
17292
|
-
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
17327
|
+
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-3bfbea74"]]);
|
|
17293
17328
|
var ModalMixin = {
|
|
17294
17329
|
props: {
|
|
17295
17330
|
options: {
|
|
@@ -17644,7 +17679,7 @@ const _sfc_main = {
|
|
|
17644
17679
|
return this.options.maximum || 0;
|
|
17645
17680
|
},
|
|
17646
17681
|
browserOptions() {
|
|
17647
|
-
return {};
|
|
17682
|
+
return this.options.browserOptions || {};
|
|
17648
17683
|
}
|
|
17649
17684
|
},
|
|
17650
17685
|
data() {
|
|
@@ -17755,7 +17790,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17755
17790
|
_: 1
|
|
17756
17791
|
});
|
|
17757
17792
|
}
|
|
17758
|
-
var QikContentModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
17793
|
+
var QikContentModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2efc11d9"]]);
|
|
17759
17794
|
function device() {
|
|
17760
17795
|
var service2 = reactive({
|
|
17761
17796
|
mounted: false,
|