@qikdev/vue-ui 0.1.43 → 0.1.45
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 +35 -24
- 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.45";
|
|
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;
|
|
@@ -6571,8 +6571,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6571
6571
|
modelValue: $data.model.key,
|
|
6572
6572
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.model.key = $event),
|
|
6573
6573
|
field: $options.keyField
|
|
6574
|
-
}, null, 8, ["modelValue", "field"])
|
|
6575
|
-
createElementVNode("pre", null, toDisplayString($options.keyOptions), 1)
|
|
6574
|
+
}, null, 8, ["modelValue", "field"])
|
|
6576
6575
|
]),
|
|
6577
6576
|
_: 1
|
|
6578
6577
|
}),
|
|
@@ -11042,17 +11041,15 @@ const _sfc_main$j = {
|
|
|
11042
11041
|
self2.state = STATE_PROCESSING;
|
|
11043
11042
|
await self2.preSubmit();
|
|
11044
11043
|
const submission = JSON.parse(JSON.stringify(self2.model));
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
}
|
|
11054
|
-
await self2.postSubmit();
|
|
11055
|
-
self2.state = STATE_COMPLETE;
|
|
11044
|
+
self2.$qik.api.post(`/form/${self2.formID}`, submission).then(submissionComplete, submissionFailed);
|
|
11045
|
+
async function submissionComplete(res) {
|
|
11046
|
+
await self2.postSubmit();
|
|
11047
|
+
self2.state = STATE_COMPLETE;
|
|
11048
|
+
}
|
|
11049
|
+
async function submissionFailed(err) {
|
|
11050
|
+
self2.error = err;
|
|
11051
|
+
self2.state = STATE_ERROR;
|
|
11052
|
+
}
|
|
11056
11053
|
},
|
|
11057
11054
|
async preSubmit() {
|
|
11058
11055
|
},
|
|
@@ -16344,9 +16341,6 @@ const _sfc_main$9 = {
|
|
|
16344
16341
|
},
|
|
16345
16342
|
value() {
|
|
16346
16343
|
var v = extract(this.row, this.column.key);
|
|
16347
|
-
if (!v) {
|
|
16348
|
-
console.log(this.row, this.column.key);
|
|
16349
|
-
}
|
|
16350
16344
|
return v;
|
|
16351
16345
|
}
|
|
16352
16346
|
}
|
|
@@ -16392,7 +16386,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16392
16386
|
}, null, 8, ["type", "value"]))
|
|
16393
16387
|
]));
|
|
16394
16388
|
}
|
|
16395
|
-
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-
|
|
16389
|
+
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-054965d2"]]);
|
|
16396
16390
|
const _sfc_main$8 = {
|
|
16397
16391
|
components: {
|
|
16398
16392
|
TableCell
|
|
@@ -17443,7 +17437,18 @@ const _sfc_main$5 = {
|
|
|
17443
17437
|
return this.manager.items.slice();
|
|
17444
17438
|
},
|
|
17445
17439
|
activeFilters() {
|
|
17446
|
-
var activeFilters = this.$qik.filter.activeFilters(this.filter)
|
|
17440
|
+
var activeFilters = this.$qik.filter.activeFilters(this.filter).reduce(function(set, filter) {
|
|
17441
|
+
if (!filter.key) {
|
|
17442
|
+
return set;
|
|
17443
|
+
}
|
|
17444
|
+
filter = __spreadValues({}, filter);
|
|
17445
|
+
filter.title = `Filter ${set.length + 1}`;
|
|
17446
|
+
filter.key = filter.key.split("[]").join("");
|
|
17447
|
+
filter.class = "active-filter";
|
|
17448
|
+
filter.shrink = true;
|
|
17449
|
+
set.push(filter);
|
|
17450
|
+
return set;
|
|
17451
|
+
}, []);
|
|
17447
17452
|
return activeFilters;
|
|
17448
17453
|
},
|
|
17449
17454
|
searching() {
|
|
@@ -17459,7 +17464,9 @@ const _sfc_main$5 = {
|
|
|
17459
17464
|
const self2 = this;
|
|
17460
17465
|
var fields = self2.columns.map(function(column) {
|
|
17461
17466
|
return column.path || column.key;
|
|
17462
|
-
}).flat()
|
|
17467
|
+
}).flat().filter(Boolean).map(function(string) {
|
|
17468
|
+
return string.split("[]").join("");
|
|
17469
|
+
});
|
|
17463
17470
|
if (self2.options.select) {
|
|
17464
17471
|
fields = [...fields, ...self2.options.select];
|
|
17465
17472
|
}
|
|
@@ -17654,7 +17661,7 @@ const _sfc_main$5 = {
|
|
|
17654
17661
|
};
|
|
17655
17662
|
}
|
|
17656
17663
|
};
|
|
17657
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
17664
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-93998f7a"), n2 = n2(), popScopeId(), n2);
|
|
17658
17665
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
17659
17666
|
const _hoisted_2$4 = { class: "footer" };
|
|
17660
17667
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -17768,9 +17775,13 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17768
17775
|
})
|
|
17769
17776
|
]),
|
|
17770
17777
|
_: 1
|
|
17771
|
-
})) :
|
|
17772
|
-
$props.showFilters ? (openBlock(), createBlock(_component_flex_column, {
|
|
17778
|
+
})) : (openBlock(), createBlock(_component_flex_column, {
|
|
17773
17779
|
key: 2,
|
|
17780
|
+
class: "empty",
|
|
17781
|
+
center: ""
|
|
17782
|
+
})),
|
|
17783
|
+
$props.showFilters ? (openBlock(), createBlock(_component_flex_column, {
|
|
17784
|
+
key: 3,
|
|
17774
17785
|
class: "filter-column"
|
|
17775
17786
|
}, {
|
|
17776
17787
|
default: withCtx(() => [
|
|
@@ -17824,7 +17835,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17824
17835
|
_: 3
|
|
17825
17836
|
})) : createCommentVNode("", true);
|
|
17826
17837
|
}
|
|
17827
|
-
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
17838
|
+
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-93998f7a"]]);
|
|
17828
17839
|
var ModalMixin = {
|
|
17829
17840
|
props: {
|
|
17830
17841
|
options: {
|