@qikdev/vue-ui 0.1.48 → 0.1.51
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 +258 -175
- 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.51";
|
|
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;
|
|
@@ -41,104 +41,104 @@ var _export_sfc = (sfc, props2) => {
|
|
|
41
41
|
}
|
|
42
42
|
return target;
|
|
43
43
|
};
|
|
44
|
-
const _sfc_main$
|
|
44
|
+
const _sfc_main$1a = {};
|
|
45
45
|
const _hoisted_1$Y = { class: "flex-column" };
|
|
46
|
-
function _sfc_render$
|
|
46
|
+
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
47
47
|
return openBlock(), createElementBlock("div", _hoisted_1$Y, [
|
|
48
48
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
49
49
|
]);
|
|
50
50
|
}
|
|
51
|
-
var FlexColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
51
|
+
var FlexColumn = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$1a], ["__scopeId", "data-v-203ea86f"]]);
|
|
52
52
|
var flexBody_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
53
|
-
const _sfc_main$
|
|
53
|
+
const _sfc_main$19 = {};
|
|
54
54
|
const _hoisted_1$X = { class: "flex-column-body" };
|
|
55
|
-
function _sfc_render$
|
|
55
|
+
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
56
|
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
57
57
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
|
-
var FlexBody = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
60
|
+
var FlexBody = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__scopeId", "data-v-64850355"]]);
|
|
61
61
|
var flexHeader_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
62
|
-
const _sfc_main$
|
|
62
|
+
const _sfc_main$18 = {};
|
|
63
63
|
const _hoisted_1$W = { class: "flex-column-header" };
|
|
64
|
-
function _sfc_render$
|
|
64
|
+
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65
65
|
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
66
66
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
67
67
|
]);
|
|
68
68
|
}
|
|
69
|
-
var FlexHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
69
|
+
var FlexHeader = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render$18], ["__scopeId", "data-v-10b28f00"]]);
|
|
70
70
|
var flexFooter_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
71
|
-
const _sfc_main$
|
|
71
|
+
const _sfc_main$17 = {};
|
|
72
72
|
const _hoisted_1$V = { class: "flex-column-footer" };
|
|
73
|
-
function _sfc_render$
|
|
73
|
+
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74
74
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
75
75
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
76
76
|
]);
|
|
77
77
|
}
|
|
78
|
-
var FlexFooter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
78
|
+
var FlexFooter = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["render", _sfc_render$17], ["__scopeId", "data-v-68216a72"]]);
|
|
79
79
|
var flexCell_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
80
|
-
const _sfc_main$
|
|
80
|
+
const _sfc_main$16 = {};
|
|
81
81
|
const _hoisted_1$U = { class: "flex-cell" };
|
|
82
|
-
function _sfc_render$
|
|
82
|
+
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
83
83
|
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
84
84
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
85
85
|
]);
|
|
86
86
|
}
|
|
87
|
-
var FlexCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87
|
+
var FlexCell = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$16], ["__scopeId", "data-v-644bb279"]]);
|
|
88
88
|
var flexRow_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
89
|
-
const _sfc_main$
|
|
89
|
+
const _sfc_main$15 = {};
|
|
90
90
|
const _hoisted_1$T = { class: "flex-row" };
|
|
91
|
-
function _sfc_render$
|
|
91
|
+
function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
92
|
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
93
93
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
94
94
|
]);
|
|
95
95
|
}
|
|
96
|
-
var FlexRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
96
|
+
var FlexRow = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15], ["__scopeId", "data-v-5b76ad1f"]]);
|
|
97
97
|
var flexSpacer_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
98
|
-
const _sfc_main$
|
|
98
|
+
const _sfc_main$14 = {};
|
|
99
99
|
const _hoisted_1$S = { class: "flex-spacer" };
|
|
100
|
-
function _sfc_render$
|
|
100
|
+
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
101
101
|
return openBlock(), createElementBlock("div", _hoisted_1$S);
|
|
102
102
|
}
|
|
103
|
-
var FlexSpacer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
103
|
+
var FlexSpacer = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14], ["__scopeId", "data-v-35b15579"]]);
|
|
104
104
|
var panel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
105
|
-
const _sfc_main$
|
|
105
|
+
const _sfc_main$13 = {};
|
|
106
106
|
const _hoisted_1$R = { class: "panel" };
|
|
107
|
-
function _sfc_render$
|
|
107
|
+
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
108
|
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
109
109
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
110
110
|
]);
|
|
111
111
|
}
|
|
112
|
-
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
112
|
+
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13], ["__scopeId", "data-v-50ae77fc"]]);
|
|
113
113
|
var panelBody_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
114
|
-
const _sfc_main$
|
|
114
|
+
const _sfc_main$12 = {};
|
|
115
115
|
const _hoisted_1$Q = { class: "panel-body" };
|
|
116
|
-
function _sfc_render$
|
|
116
|
+
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
117
|
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
118
118
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
119
119
|
]);
|
|
120
120
|
}
|
|
121
|
-
var PanelBody = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
121
|
+
var PanelBody = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["__scopeId", "data-v-c82dca76"]]);
|
|
122
122
|
var panelHeader_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
123
|
-
const _sfc_main$
|
|
123
|
+
const _sfc_main$11 = {};
|
|
124
124
|
const _hoisted_1$P = { class: "panel-header" };
|
|
125
|
-
function _sfc_render$
|
|
125
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
126
126
|
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
127
127
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
128
128
|
]);
|
|
129
129
|
}
|
|
130
|
-
var PanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
130
|
+
var PanelHeader = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__scopeId", "data-v-13bf11da"]]);
|
|
131
131
|
var panelFooter_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
132
|
-
const _sfc_main
|
|
132
|
+
const _sfc_main$10 = {};
|
|
133
133
|
const _hoisted_1$O = { class: "panel-footer" };
|
|
134
|
-
function _sfc_render
|
|
134
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
135
135
|
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
136
136
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
137
137
|
]);
|
|
138
138
|
}
|
|
139
|
-
var PanelFooter = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
139
|
+
var PanelFooter = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__scopeId", "data-v-b4f4786a"]]);
|
|
140
140
|
var tabset_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
141
|
-
const _sfc_main
|
|
141
|
+
const _sfc_main$$ = {
|
|
142
142
|
data() {
|
|
143
143
|
return {
|
|
144
144
|
activeIndex: 0
|
|
@@ -157,7 +157,7 @@ const _sfc_main$_ = {
|
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
const _hoisted_1$N = ["onClick"];
|
|
160
|
-
function _sfc_render
|
|
160
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
161
161
|
const _component_flex_row = resolveComponent("flex-row");
|
|
162
162
|
const _component_flex_header = resolveComponent("flex-header");
|
|
163
163
|
const _component_flex_column = resolveComponent("flex-column");
|
|
@@ -198,8 +198,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
198
|
_: 1
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
202
|
-
const _sfc_main$
|
|
201
|
+
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__scopeId", "data-v-1449f192"]]);
|
|
202
|
+
const _sfc_main$_ = {
|
|
203
203
|
props: {
|
|
204
204
|
heading: {
|
|
205
205
|
type: String,
|
|
@@ -222,7 +222,7 @@ const _sfc_main$Z = {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
function _sfc_render$
|
|
225
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
226
226
|
const _component_flex_column = resolveComponent("flex-column");
|
|
227
227
|
return openBlock(), createBlock(_component_flex_column, null, {
|
|
228
228
|
default: withCtx(() => [
|
|
@@ -231,7 +231,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
231
|
_: 3
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
var UXTab = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
234
|
+
var UXTab = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_]]);
|
|
235
235
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
236
236
|
var isArray$3 = Array.isArray;
|
|
237
237
|
var isArray_1 = isArray$3;
|
|
@@ -699,7 +699,7 @@ var TableCellMixin = {
|
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
701
|
var Thumbnail_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
702
|
-
const _sfc_main$
|
|
702
|
+
const _sfc_main$Z = {
|
|
703
703
|
mixins: [TableCellMixin],
|
|
704
704
|
computed: {
|
|
705
705
|
type() {
|
|
@@ -709,7 +709,7 @@ const _sfc_main$Y = {
|
|
|
709
709
|
}
|
|
710
710
|
};
|
|
711
711
|
const _hoisted_1$M = { class: "table-image-cell" };
|
|
712
|
-
function _sfc_render$
|
|
712
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
713
713
|
const _component_ux_image = resolveComponent("ux-image");
|
|
714
714
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
715
715
|
return openBlock(), createElementBlock("td", _hoisted_1$M, [
|
|
@@ -724,9 +724,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
724
724
|
}))
|
|
725
725
|
]);
|
|
726
726
|
}
|
|
727
|
-
var ThumbnailCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
727
|
+
var ThumbnailCell = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__scopeId", "data-v-6dbe8d2c"]]);
|
|
728
728
|
var Button_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
729
|
-
const _sfc_main$
|
|
729
|
+
const _sfc_main$Y = {
|
|
730
730
|
data() {
|
|
731
731
|
return {
|
|
732
732
|
processing: false
|
|
@@ -751,7 +751,7 @@ const _sfc_main$X = {
|
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
753
|
const _hoisted_1$L = { class: "table-button-cell" };
|
|
754
|
-
function _sfc_render$
|
|
754
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
755
755
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
756
756
|
const _component_ux_button = resolveComponent("ux-button");
|
|
757
757
|
return openBlock(), createElementBlock("td", _hoisted_1$L, [
|
|
@@ -774,7 +774,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
774
774
|
}, 8, ["size", "loading", "onClick"])
|
|
775
775
|
]);
|
|
776
776
|
}
|
|
777
|
-
var ButtonCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
777
|
+
var ButtonCell = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__scopeId", "data-v-3cbecb7e"]]);
|
|
778
778
|
class LuxonError extends Error {
|
|
779
779
|
}
|
|
780
780
|
class InvalidDateTimeError extends LuxonError {
|
|
@@ -4608,7 +4608,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
}
|
|
4610
4610
|
var DateCell_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4611
|
-
const _sfc_main$
|
|
4611
|
+
const _sfc_main$X = {
|
|
4612
4612
|
mixins: [TableCellMixin],
|
|
4613
4613
|
computed: {
|
|
4614
4614
|
timeago() {
|
|
@@ -4630,7 +4630,7 @@ const _hoisted_1$K = { class: "table-date-cell" };
|
|
|
4630
4630
|
const _hoisted_2$B = { class: "off" };
|
|
4631
4631
|
const _hoisted_3$v = { class: "on" };
|
|
4632
4632
|
const _hoisted_4$r = { class: "spacer" };
|
|
4633
|
-
function _sfc_render$
|
|
4633
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4634
4634
|
return openBlock(), createElementBlock("td", _hoisted_1$K, [
|
|
4635
4635
|
createElementVNode("div", null, [
|
|
4636
4636
|
createElementVNode("span", _hoisted_2$B, toDisplayString($options.readable), 1),
|
|
@@ -4639,9 +4639,9 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4639
4639
|
])
|
|
4640
4640
|
]);
|
|
4641
4641
|
}
|
|
4642
|
-
var DateCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4642
|
+
var DateCell = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-bde0ae3a"]]);
|
|
4643
4643
|
var URLCell_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4644
|
-
const _sfc_main$
|
|
4644
|
+
const _sfc_main$W = {
|
|
4645
4645
|
mixins: [TableCellMixin],
|
|
4646
4646
|
methods: {
|
|
4647
4647
|
open() {
|
|
@@ -4656,7 +4656,7 @@ const _sfc_main$V = {
|
|
|
4656
4656
|
};
|
|
4657
4657
|
const _hoisted_1$J = { class: "table-url-cell" };
|
|
4658
4658
|
const _hoisted_2$A = ["href"];
|
|
4659
|
-
function _sfc_render$
|
|
4659
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4660
4660
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
4661
4661
|
return openBlock(), createElementBlock("td", _hoisted_1$J, [
|
|
4662
4662
|
createElementVNode("a", {
|
|
@@ -4672,9 +4672,9 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4672
4672
|
], 8, _hoisted_2$A)
|
|
4673
4673
|
]);
|
|
4674
4674
|
}
|
|
4675
|
-
var URLCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4675
|
+
var URLCell = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-17cf3a86"]]);
|
|
4676
4676
|
var Value_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4677
|
-
const _sfc_main$
|
|
4677
|
+
const _sfc_main$V = {
|
|
4678
4678
|
props: {
|
|
4679
4679
|
multi: {
|
|
4680
4680
|
type: Boolean
|
|
@@ -4718,12 +4718,12 @@ const _sfc_main$U = {
|
|
|
4718
4718
|
},
|
|
4719
4719
|
methods: {
|
|
4720
4720
|
clicked(item) {
|
|
4721
|
-
this.$
|
|
4721
|
+
this.$sdk.dispatch("item:view", item);
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
4724
4724
|
};
|
|
4725
4725
|
const _hoisted_1$I = /* @__PURE__ */ createTextVNode(",\xA0");
|
|
4726
|
-
function _sfc_render$
|
|
4726
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4727
4727
|
return $options.reference ? (openBlock(), createElementBlock("a", {
|
|
4728
4728
|
key: 0,
|
|
4729
4729
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $options.clicked($props.value), ["stop", "prevent"]))
|
|
@@ -4736,7 +4736,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4736
4736
|
], 64)) : createCommentVNode("", true)
|
|
4737
4737
|
], 64));
|
|
4738
4738
|
}
|
|
4739
|
-
var ValueRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4739
|
+
var ValueRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__scopeId", "data-v-255b9ec8"]]);
|
|
4740
4740
|
var TableCell_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4741
4741
|
function extract(row, path) {
|
|
4742
4742
|
if (!row) {
|
|
@@ -4761,7 +4761,7 @@ function extract(row, path) {
|
|
|
4761
4761
|
return extract(stub, remainder);
|
|
4762
4762
|
}
|
|
4763
4763
|
}
|
|
4764
|
-
const _sfc_main$
|
|
4764
|
+
const _sfc_main$U = {
|
|
4765
4765
|
data() {
|
|
4766
4766
|
return {
|
|
4767
4767
|
component: null
|
|
@@ -4842,7 +4842,7 @@ const _hoisted_1$H = {
|
|
|
4842
4842
|
};
|
|
4843
4843
|
const _hoisted_2$z = { class: "value" };
|
|
4844
4844
|
const _hoisted_3$u = { class: "value" };
|
|
4845
|
-
function _sfc_render$
|
|
4845
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4846
4846
|
const _component_value_renderer = resolveComponent("value-renderer");
|
|
4847
4847
|
return $data.component ? (openBlock(), createBlock(resolveDynamicComponent($data.component), {
|
|
4848
4848
|
key: 0,
|
|
@@ -4877,8 +4877,8 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4877
4877
|
}, null, 8, ["type", "value"]))
|
|
4878
4878
|
]));
|
|
4879
4879
|
}
|
|
4880
|
-
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4881
|
-
const _sfc_main$
|
|
4880
|
+
var TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__scopeId", "data-v-d2ef28aa"]]);
|
|
4881
|
+
const _sfc_main$T = {
|
|
4882
4882
|
components: {
|
|
4883
4883
|
TableCell
|
|
4884
4884
|
},
|
|
@@ -4929,7 +4929,7 @@ const _sfc_main$S = {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
}
|
|
4931
4931
|
};
|
|
4932
|
-
function _sfc_render$
|
|
4932
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4933
4933
|
const _component_ux_checkbox = resolveComponent("ux-checkbox");
|
|
4934
4934
|
const _component_table_cell = resolveComponent("table-cell");
|
|
4935
4935
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
@@ -4971,7 +4971,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4971
4971
|
])
|
|
4972
4972
|
], 2);
|
|
4973
4973
|
}
|
|
4974
|
-
var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4974
|
+
var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T]]);
|
|
4975
4975
|
var RememberScrollMixin = {
|
|
4976
4976
|
data() {
|
|
4977
4977
|
return {
|
|
@@ -5002,7 +5002,7 @@ var RememberScrollMixin = {
|
|
|
5002
5002
|
}
|
|
5003
5003
|
};
|
|
5004
5004
|
var Table_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5005
|
-
const _sfc_main$
|
|
5005
|
+
const _sfc_main$S = {
|
|
5006
5006
|
mixins: [RememberScrollMixin],
|
|
5007
5007
|
components: {
|
|
5008
5008
|
TableRow,
|
|
@@ -5163,7 +5163,7 @@ const _hoisted_8$8 = {
|
|
|
5163
5163
|
key: 1,
|
|
5164
5164
|
class: "last shrink"
|
|
5165
5165
|
};
|
|
5166
|
-
function _sfc_render$
|
|
5166
|
+
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5167
5167
|
const _component_ux_checkbox = resolveComponent("ux-checkbox");
|
|
5168
5168
|
const _component_ux_list_item = resolveComponent("ux-list-item");
|
|
5169
5169
|
const _component_ux_list = resolveComponent("ux-list");
|
|
@@ -5255,9 +5255,9 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5255
5255
|
], 512)
|
|
5256
5256
|
]);
|
|
5257
5257
|
}
|
|
5258
|
-
var NativeTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5258
|
+
var NativeTable = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S], ["__scopeId", "data-v-e626ef3a"]]);
|
|
5259
5259
|
var spinner_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5260
|
-
const _sfc_main$
|
|
5260
|
+
const _sfc_main$R = {
|
|
5261
5261
|
props: {
|
|
5262
5262
|
large: {
|
|
5263
5263
|
type: Boolean
|
|
@@ -5269,14 +5269,14 @@ const _hoisted_1$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ create
|
|
|
5269
5269
|
const _hoisted_2$x = [
|
|
5270
5270
|
_hoisted_1$F
|
|
5271
5271
|
];
|
|
5272
|
-
function _sfc_render$
|
|
5272
|
+
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5273
5273
|
return openBlock(), createElementBlock("div", {
|
|
5274
5274
|
class: normalizeClass(["ux-spinner", { large: $props.large }])
|
|
5275
5275
|
}, _hoisted_2$x, 2);
|
|
5276
5276
|
}
|
|
5277
|
-
var Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5277
|
+
var Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-27f20370"]]);
|
|
5278
5278
|
var button_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5279
|
-
const _sfc_main$
|
|
5279
|
+
const _sfc_main$Q = {
|
|
5280
5280
|
components: {
|
|
5281
5281
|
Spinner
|
|
5282
5282
|
},
|
|
@@ -5376,7 +5376,7 @@ const _sfc_main$P = {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
};
|
|
5378
5378
|
const _hoisted_1$E = { class: "ux-btn-text" };
|
|
5379
|
-
function _sfc_render$
|
|
5379
|
+
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5380
5380
|
const _component_spinner = resolveComponent("spinner");
|
|
5381
5381
|
return openBlock(), createBlock(resolveDynamicComponent($options.element), {
|
|
5382
5382
|
active: $props.active,
|
|
@@ -5397,9 +5397,9 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5397
5397
|
_: 3
|
|
5398
5398
|
}, 8, ["active", "loading", "to", "href", "target", "style", "class", "disabled"]);
|
|
5399
5399
|
}
|
|
5400
|
-
var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5400
|
+
var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-ef0c5e26"]]);
|
|
5401
5401
|
var checkbox_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
5402
|
-
const _sfc_main$
|
|
5402
|
+
const _sfc_main$P = {
|
|
5403
5403
|
props: {
|
|
5404
5404
|
value: {
|
|
5405
5405
|
type: Boolean,
|
|
@@ -5420,7 +5420,7 @@ const _sfc_main$O = {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
}
|
|
5422
5422
|
};
|
|
5423
|
-
function _sfc_render$
|
|
5423
|
+
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5424
5424
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
5425
5425
|
return openBlock(), createElementBlock("button", {
|
|
5426
5426
|
class: normalizeClass(["ux-checkbox", $options.classes])
|
|
@@ -5431,9 +5431,9 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5431
5431
|
})
|
|
5432
5432
|
], 2);
|
|
5433
5433
|
}
|
|
5434
|
-
var UXCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5434
|
+
var UXCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__scopeId", "data-v-73f2c6b6"]]);
|
|
5435
5435
|
var switch_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
5436
|
-
const _sfc_main$
|
|
5436
|
+
const _sfc_main$O = {
|
|
5437
5437
|
props: {
|
|
5438
5438
|
value: {
|
|
5439
5439
|
type: Boolean,
|
|
@@ -5463,7 +5463,7 @@ const _sfc_main$N = {
|
|
|
5463
5463
|
}
|
|
5464
5464
|
}
|
|
5465
5465
|
};
|
|
5466
|
-
function _sfc_render$
|
|
5466
|
+
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5467
5467
|
const _component_ux_icon = resolveComponent("ux-icon");
|
|
5468
5468
|
return openBlock(), createElementBlock("a", {
|
|
5469
5469
|
class: normalizeClass(["ux-switch", $options.classes])
|
|
@@ -5476,9 +5476,9 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5476
5476
|
])
|
|
5477
5477
|
], 2);
|
|
5478
5478
|
}
|
|
5479
|
-
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5479
|
+
var UXSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__scopeId", "data-v-57a418e1"]]);
|
|
5480
5480
|
var link_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5481
|
-
const _sfc_main$
|
|
5481
|
+
const _sfc_main$N = {
|
|
5482
5482
|
props: {
|
|
5483
5483
|
to: {
|
|
5484
5484
|
type: [Object, String]
|
|
@@ -5496,10 +5496,19 @@ const _sfc_main$M = {
|
|
|
5496
5496
|
methods: {
|
|
5497
5497
|
clicked(event) {
|
|
5498
5498
|
var self2 = this;
|
|
5499
|
-
if (self2.
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5499
|
+
if (self2.to) {
|
|
5500
|
+
if (self2.buildMode || self2.nuxtMode) {
|
|
5501
|
+
event.preventDefault();
|
|
5502
|
+
event.stopImmediatePropagation();
|
|
5503
|
+
return self2.$sdk.app.to(self2.to);
|
|
5504
|
+
}
|
|
5505
|
+
}
|
|
5506
|
+
if (self2.href) {
|
|
5507
|
+
if (self2.buildMode || self2.nuxtMode) {
|
|
5508
|
+
event.preventDefault();
|
|
5509
|
+
event.stopImmediatePropagation();
|
|
5510
|
+
return;
|
|
5511
|
+
}
|
|
5503
5512
|
}
|
|
5504
5513
|
}
|
|
5505
5514
|
},
|
|
@@ -5509,14 +5518,14 @@ const _sfc_main$M = {
|
|
|
5509
5518
|
return this.href;
|
|
5510
5519
|
}
|
|
5511
5520
|
if (this.nuxtMode) {
|
|
5512
|
-
return this.$
|
|
5521
|
+
return this.$sdk.app.createHref(this.to);
|
|
5513
5522
|
}
|
|
5514
5523
|
},
|
|
5515
5524
|
nuxtMode() {
|
|
5516
|
-
return this.to && this.$
|
|
5525
|
+
return this.to && this.$sdk.nuxt && this.$sdk.app && this.$sdk.app.createHref;
|
|
5517
5526
|
},
|
|
5518
5527
|
buildMode() {
|
|
5519
|
-
return !!this.$
|
|
5528
|
+
return !!this.$sdk && this.$sdk.app && this.$sdk.app.builder;
|
|
5520
5529
|
},
|
|
5521
5530
|
class() {
|
|
5522
5531
|
var array = [];
|
|
@@ -5543,7 +5552,7 @@ const _sfc_main$M = {
|
|
|
5543
5552
|
}
|
|
5544
5553
|
}
|
|
5545
5554
|
};
|
|
5546
|
-
function _sfc_render$
|
|
5555
|
+
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5547
5556
|
return openBlock(), createBlock(resolveDynamicComponent($options.element), {
|
|
5548
5557
|
onClick: $options.clicked,
|
|
5549
5558
|
to: $props.to,
|
|
@@ -5557,9 +5566,9 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5557
5566
|
_: 3
|
|
5558
5567
|
}, 8, ["onClick", "to", "href", "target", "class"]);
|
|
5559
5568
|
}
|
|
5560
|
-
var UXLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5569
|
+
var UXLink = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N], ["__scopeId", "data-v-efa81728"]]);
|
|
5561
5570
|
var icon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5562
|
-
const _sfc_main$
|
|
5571
|
+
const _sfc_main$M = {
|
|
5563
5572
|
props: {
|
|
5564
5573
|
icon: {
|
|
5565
5574
|
type: [Object, String]
|
|
@@ -5594,17 +5603,17 @@ const _sfc_main$L = {
|
|
|
5594
5603
|
}
|
|
5595
5604
|
}
|
|
5596
5605
|
};
|
|
5597
|
-
function _sfc_render$
|
|
5606
|
+
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5598
5607
|
return openBlock(), createBlock(resolveDynamicComponent($options.element), {
|
|
5599
5608
|
class: normalizeClass(["ux-icon fa", $options.classes])
|
|
5600
5609
|
}, null, 8, ["class"]);
|
|
5601
5610
|
}
|
|
5602
|
-
var UXIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5611
|
+
var UXIcon = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-1764a3d0"]]);
|
|
5603
5612
|
var UXMenuService = {
|
|
5604
5613
|
cache: {}
|
|
5605
5614
|
};
|
|
5606
5615
|
var menu_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5607
|
-
const _sfc_main$
|
|
5616
|
+
const _sfc_main$L = {
|
|
5608
5617
|
props: {
|
|
5609
5618
|
group: {
|
|
5610
5619
|
type: String
|
|
@@ -5756,7 +5765,7 @@ const _sfc_main$K = {
|
|
|
5756
5765
|
}
|
|
5757
5766
|
}
|
|
5758
5767
|
};
|
|
5759
|
-
function _sfc_render$
|
|
5768
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5760
5769
|
return openBlock(), createElementBlock("div", {
|
|
5761
5770
|
class: normalizeClass(["ux-menu", { right: $props.right }])
|
|
5762
5771
|
}, [
|
|
@@ -5780,7 +5789,80 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5780
5789
|
]))
|
|
5781
5790
|
], 2);
|
|
5782
5791
|
}
|
|
5783
|
-
var UXMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5792
|
+
var UXMenu = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L], ["__scopeId", "data-v-29d476a2"]]);
|
|
5793
|
+
const _sfc_main$K = {
|
|
5794
|
+
name: "menulist",
|
|
5795
|
+
props: {
|
|
5796
|
+
items: {
|
|
5797
|
+
type: Array,
|
|
5798
|
+
default() {
|
|
5799
|
+
return [];
|
|
5800
|
+
}
|
|
5801
|
+
},
|
|
5802
|
+
expandOn: {
|
|
5803
|
+
type: String,
|
|
5804
|
+
default: "click"
|
|
5805
|
+
}
|
|
5806
|
+
},
|
|
5807
|
+
methods: {
|
|
5808
|
+
toggle(item) {
|
|
5809
|
+
item.expanded = !item.expanded;
|
|
5810
|
+
item.collapsed = !item.expanded;
|
|
5811
|
+
}
|
|
5812
|
+
},
|
|
5813
|
+
data() {
|
|
5814
|
+
return {};
|
|
5815
|
+
}
|
|
5816
|
+
};
|
|
5817
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5818
|
+
const _component_ux_link = resolveComponent("ux-link");
|
|
5819
|
+
const _component_menulist = resolveComponent("menulist", true);
|
|
5820
|
+
return openBlock(), createElementBlock("ul", null, [
|
|
5821
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, (item) => {
|
|
5822
|
+
var _a;
|
|
5823
|
+
return openBlock(), createElementBlock("li", {
|
|
5824
|
+
class: normalizeClass({ expanded: item.expanded, collapsed: item.collapsed })
|
|
5825
|
+
}, [
|
|
5826
|
+
$props.expandOn === "click" && ((_a = item.items) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_ux_link, {
|
|
5827
|
+
key: 0,
|
|
5828
|
+
onClick: withModifiers(($event) => $options.toggle(item), ["stop", "prevent"]),
|
|
5829
|
+
class: normalizeClass(item.class)
|
|
5830
|
+
}, {
|
|
5831
|
+
default: withCtx(() => [
|
|
5832
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
5833
|
+
]),
|
|
5834
|
+
_: 2
|
|
5835
|
+
}, 1032, ["onClick", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5836
|
+
item.type === "url" ? (openBlock(), createBlock(_component_ux_link, {
|
|
5837
|
+
key: 0,
|
|
5838
|
+
class: normalizeClass(item.class),
|
|
5839
|
+
target: item.target,
|
|
5840
|
+
href: item.href || item.url
|
|
5841
|
+
}, {
|
|
5842
|
+
default: withCtx(() => [
|
|
5843
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
5844
|
+
]),
|
|
5845
|
+
_: 2
|
|
5846
|
+
}, 1032, ["class", "target", "href"])) : item.type === "route" ? (openBlock(), createBlock(_component_ux_link, {
|
|
5847
|
+
key: 1,
|
|
5848
|
+
class: normalizeClass(item.class),
|
|
5849
|
+
to: { name: item.route }
|
|
5850
|
+
}, {
|
|
5851
|
+
default: withCtx(() => [
|
|
5852
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
5853
|
+
]),
|
|
5854
|
+
_: 2
|
|
5855
|
+
}, 1032, ["class", "to"])) : createCommentVNode("", true)
|
|
5856
|
+
], 64)),
|
|
5857
|
+
item.items && item.items.length ? (openBlock(), createBlock(_component_menulist, {
|
|
5858
|
+
key: 2,
|
|
5859
|
+
items: item.items
|
|
5860
|
+
}, null, 8, ["items"])) : createCommentVNode("", true)
|
|
5861
|
+
], 2);
|
|
5862
|
+
}), 256))
|
|
5863
|
+
]);
|
|
5864
|
+
}
|
|
5865
|
+
var UXMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]);
|
|
5784
5866
|
var image_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5785
5867
|
const _sfc_main$J = {
|
|
5786
5868
|
props: {
|
|
@@ -5830,11 +5912,11 @@ const _sfc_main$J = {
|
|
|
5830
5912
|
return parseInt(this.height);
|
|
5831
5913
|
},
|
|
5832
5914
|
id() {
|
|
5833
|
-
return this.$
|
|
5915
|
+
return this.$sdk.utils.id(this.model);
|
|
5834
5916
|
},
|
|
5835
5917
|
params() {
|
|
5836
5918
|
var params = {};
|
|
5837
|
-
params.access_token = this.$
|
|
5919
|
+
params.access_token = this.$sdk.auth.getCurrentToken();
|
|
5838
5920
|
if (this.imageWidth) {
|
|
5839
5921
|
params.w = this.imageWidth ? this.imageWidth : this.defaultWidth;
|
|
5840
5922
|
}
|
|
@@ -5858,13 +5940,13 @@ const _sfc_main$J = {
|
|
|
5858
5940
|
return params;
|
|
5859
5941
|
},
|
|
5860
5942
|
src() {
|
|
5861
|
-
return this.$
|
|
5943
|
+
return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, this.params);
|
|
5862
5944
|
},
|
|
5863
5945
|
previewSrc() {
|
|
5864
5946
|
var params = Object.assign({}, this.params);
|
|
5865
5947
|
params.w = 50;
|
|
5866
5948
|
delete params.h;
|
|
5867
|
-
return this.$
|
|
5949
|
+
return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, params);
|
|
5868
5950
|
},
|
|
5869
5951
|
style() {
|
|
5870
5952
|
var _a, _b, _c;
|
|
@@ -5897,7 +5979,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5897
5979
|
createElementVNode("img", { src: $options.src }, null, 8, _hoisted_1$D)
|
|
5898
5980
|
], 4);
|
|
5899
5981
|
}
|
|
5900
|
-
var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-
|
|
5982
|
+
var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-3d48a5ec"]]);
|
|
5901
5983
|
var progressbar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
5902
5984
|
const _sfc_main$I = {
|
|
5903
5985
|
props: {
|
|
@@ -6212,10 +6294,10 @@ var InputMixin = {
|
|
|
6212
6294
|
cleanTextInput(val, type, instance) {
|
|
6213
6295
|
switch (type) {
|
|
6214
6296
|
case "url":
|
|
6215
|
-
val = instance.$
|
|
6297
|
+
val = instance.$sdk.utils.parseURL(val);
|
|
6216
6298
|
break;
|
|
6217
6299
|
case "key":
|
|
6218
|
-
val = instance.$
|
|
6300
|
+
val = instance.$sdk.utils.machineName(val);
|
|
6219
6301
|
break;
|
|
6220
6302
|
case "integer":
|
|
6221
6303
|
val = parseInt(String(val).replace(/[^0-9-]/g, ""));
|
|
@@ -6528,7 +6610,7 @@ const _sfc_main$E = {
|
|
|
6528
6610
|
},
|
|
6529
6611
|
mixins: [InputMixin],
|
|
6530
6612
|
async created() {
|
|
6531
|
-
var countries = await this.$
|
|
6613
|
+
var countries = await this.$sdk.system.countries();
|
|
6532
6614
|
var mapped = countries.reduce(function(set, country) {
|
|
6533
6615
|
if (!country.countryCallingCodes || !country.countryCallingCodes.length) {
|
|
6534
6616
|
return set;
|
|
@@ -6588,7 +6670,7 @@ const _sfc_main$E = {
|
|
|
6588
6670
|
}
|
|
6589
6671
|
}
|
|
6590
6672
|
};
|
|
6591
|
-
const _withScopeId$3 = (n2) => (pushScopeId("data-v-
|
|
6673
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-79694d60"), n2 = n2(), popScopeId(), n2);
|
|
6592
6674
|
const _hoisted_1$y = {
|
|
6593
6675
|
key: 0,
|
|
6594
6676
|
class: "ux-field-title"
|
|
@@ -6750,7 +6832,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6750
6832
|
}))
|
|
6751
6833
|
], 64);
|
|
6752
6834
|
}
|
|
6753
|
-
var PhoneNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__scopeId", "data-v-
|
|
6835
|
+
var PhoneNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E], ["__scopeId", "data-v-79694d60"]]);
|
|
6754
6836
|
var timezone_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
6755
6837
|
function isUndefined$4(entry) {
|
|
6756
6838
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -7354,7 +7436,7 @@ const _sfc_main$C = {
|
|
|
7354
7436
|
},
|
|
7355
7437
|
methods: {
|
|
7356
7438
|
clicked() {
|
|
7357
|
-
this.$
|
|
7439
|
+
this.$sdk.dispatch("item:view", this.item);
|
|
7358
7440
|
}
|
|
7359
7441
|
}
|
|
7360
7442
|
};
|
|
@@ -7387,7 +7469,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7387
7469
|
})
|
|
7388
7470
|
]);
|
|
7389
7471
|
}
|
|
7390
|
-
var Item = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__scopeId", "data-v-
|
|
7472
|
+
var Item = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__scopeId", "data-v-1eeabf50"]]);
|
|
7391
7473
|
/**!
|
|
7392
7474
|
* Sortable 1.14.0
|
|
7393
7475
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -10080,10 +10162,10 @@ const _sfc_main$B = {
|
|
|
10080
10162
|
if (!user) {
|
|
10081
10163
|
return false;
|
|
10082
10164
|
}
|
|
10083
|
-
return this.$
|
|
10165
|
+
return this.$sdk.access.canEditItem(user, item);
|
|
10084
10166
|
},
|
|
10085
10167
|
async edit(item) {
|
|
10086
|
-
var result = await this.$
|
|
10168
|
+
var result = await this.$sdk.global.edit(item, true).catch(function(err) {
|
|
10087
10169
|
});
|
|
10088
10170
|
for (var prop in result) {
|
|
10089
10171
|
item[prop] = result[prop];
|
|
@@ -10102,7 +10184,7 @@ const _sfc_main$B = {
|
|
|
10102
10184
|
lockFilter: self2.field.lockFilter
|
|
10103
10185
|
}
|
|
10104
10186
|
};
|
|
10105
|
-
self2.$
|
|
10187
|
+
self2.$sdk.browse(this.field.referenceType, modalOptions).then(function(newSelection) {
|
|
10106
10188
|
self2.model = self2.multiValue ? newSelection : newSelection[0];
|
|
10107
10189
|
}).catch(function(err) {
|
|
10108
10190
|
console.log("Error", err);
|
|
@@ -10257,7 +10339,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10257
10339
|
}, 8, ["onClick"])
|
|
10258
10340
|
], 64);
|
|
10259
10341
|
}
|
|
10260
|
-
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B], ["__scopeId", "data-v-
|
|
10342
|
+
var ContentSelect = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B], ["__scopeId", "data-v-49f2d443"]]);
|
|
10261
10343
|
var typeSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10262
10344
|
function isUndefined$3(entry) {
|
|
10263
10345
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -10272,7 +10354,7 @@ const _sfc_main$A = {
|
|
|
10272
10354
|
mixins: [InputMixin],
|
|
10273
10355
|
async created() {
|
|
10274
10356
|
this.model = this.model;
|
|
10275
|
-
var glossary = await this.$
|
|
10357
|
+
var glossary = await this.$sdk.content.glossary();
|
|
10276
10358
|
var typeList = glossary;
|
|
10277
10359
|
if (this.field.basicTypes === false) {
|
|
10278
10360
|
typeList = typeList.filter(function(definition) {
|
|
@@ -10429,7 +10511,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10429
10511
|
])
|
|
10430
10512
|
], 2);
|
|
10431
10513
|
}
|
|
10432
|
-
var TypeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A], ["__scopeId", "data-v-
|
|
10514
|
+
var TypeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A], ["__scopeId", "data-v-49a55ef8"]]);
|
|
10433
10515
|
var currency_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10434
10516
|
const _sfc_main$z = {
|
|
10435
10517
|
props: {
|
|
@@ -10501,7 +10583,7 @@ const _sfc_main$z = {
|
|
|
10501
10583
|
return String(this.field.currency || "usd").toLowerCase();
|
|
10502
10584
|
},
|
|
10503
10585
|
prefix() {
|
|
10504
|
-
return this.$
|
|
10586
|
+
return this.$sdk.utils.currencySymbol(this.currency);
|
|
10505
10587
|
},
|
|
10506
10588
|
suffix() {
|
|
10507
10589
|
return String(this.currency).toUpperCase();
|
|
@@ -10646,7 +10728,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10646
10728
|
], 2))
|
|
10647
10729
|
], 64);
|
|
10648
10730
|
}
|
|
10649
|
-
var CurrencyField = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__scopeId", "data-v-
|
|
10731
|
+
var CurrencyField = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__scopeId", "data-v-5dd6344d"]]);
|
|
10650
10732
|
var textfield_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10651
10733
|
const _sfc_main$y = {
|
|
10652
10734
|
props: {
|
|
@@ -11329,7 +11411,7 @@ const _sfc_main$t = {
|
|
|
11329
11411
|
}
|
|
11330
11412
|
},
|
|
11331
11413
|
async created() {
|
|
11332
|
-
this.comparators = await this.$
|
|
11414
|
+
this.comparators = await this.$sdk.content.comparators();
|
|
11333
11415
|
},
|
|
11334
11416
|
data() {
|
|
11335
11417
|
return {
|
|
@@ -11997,7 +12079,7 @@ const _sfc_main$s = {
|
|
|
11997
12079
|
allFields.push(dataFields);
|
|
11998
12080
|
}
|
|
11999
12081
|
}
|
|
12000
|
-
var mapped = self2.$
|
|
12082
|
+
var mapped = self2.$sdk.utils.mapFields(allFields, { includeArrayDelimeter: true });
|
|
12001
12083
|
return mapped;
|
|
12002
12084
|
},
|
|
12003
12085
|
operatorField() {
|
|
@@ -12316,7 +12398,7 @@ const _sfc_main$q = {
|
|
|
12316
12398
|
if (!referenceType2) {
|
|
12317
12399
|
return this.definition = null;
|
|
12318
12400
|
}
|
|
12319
|
-
var glossary = await this.$
|
|
12401
|
+
var glossary = await this.$sdk.content.glossary({ hash: true });
|
|
12320
12402
|
this.definition = glossary[referenceType2];
|
|
12321
12403
|
},
|
|
12322
12404
|
immediate: true
|
|
@@ -12418,7 +12500,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12418
12500
|
}, null, 8, ["definition", "modelValue"]))
|
|
12419
12501
|
], 64);
|
|
12420
12502
|
}
|
|
12421
|
-
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
12503
|
+
var FilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-1721388e"]]);
|
|
12422
12504
|
var switch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12423
12505
|
const _sfc_main$p = {
|
|
12424
12506
|
mixins: [InputMixin],
|
|
@@ -12591,7 +12673,7 @@ const _sfc_main$n = {
|
|
|
12591
12673
|
},
|
|
12592
12674
|
methods: {
|
|
12593
12675
|
filesize(size) {
|
|
12594
|
-
return this.$
|
|
12676
|
+
return this.$sdk.files.filesize(size);
|
|
12595
12677
|
},
|
|
12596
12678
|
remove(index2) {
|
|
12597
12679
|
var self2 = this;
|
|
@@ -12638,14 +12720,14 @@ const _sfc_main$n = {
|
|
|
12638
12720
|
}, 0);
|
|
12639
12721
|
}
|
|
12640
12722
|
};
|
|
12641
|
-
const CancelToken = self2.$
|
|
12723
|
+
const CancelToken = self2.$sdk.api.CancelToken;
|
|
12642
12724
|
const source = CancelToken.source();
|
|
12643
12725
|
config.cancelToken = source.token;
|
|
12644
12726
|
fileItem.cancelToken = source;
|
|
12645
12727
|
config.headers = {
|
|
12646
12728
|
"Content-Type": void 0
|
|
12647
12729
|
};
|
|
12648
|
-
return self2.$
|
|
12730
|
+
return self2.$sdk.api.post(`/file/upload`, body, config).then(function(res) {
|
|
12649
12731
|
fileItem.state = "complete";
|
|
12650
12732
|
fileItem.result = res.data;
|
|
12651
12733
|
fileItem.cancelToken = null;
|
|
@@ -12809,7 +12891,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12809
12891
|
}, 8, ["onFiles"]))
|
|
12810
12892
|
], 64);
|
|
12811
12893
|
}
|
|
12812
|
-
var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
12894
|
+
var Upload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-1c070f26"]]);
|
|
12813
12895
|
var group_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
12814
12896
|
const _sfc_main$m = {
|
|
12815
12897
|
mixins: [InputMixin],
|
|
@@ -14084,7 +14166,7 @@ const _sfc_main$f = {
|
|
|
14084
14166
|
},
|
|
14085
14167
|
computed: {
|
|
14086
14168
|
interface() {
|
|
14087
|
-
var editor = this.$
|
|
14169
|
+
var editor = this.$sdk.global.editor;
|
|
14088
14170
|
if (!editor) {
|
|
14089
14171
|
return;
|
|
14090
14172
|
}
|
|
@@ -14203,7 +14285,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14203
14285
|
])
|
|
14204
14286
|
], 2);
|
|
14205
14287
|
}
|
|
14206
|
-
var InternalRouteSelect = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
14288
|
+
var InternalRouteSelect = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-7b06d646"]]);
|
|
14207
14289
|
var InternalMenuSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14208
14290
|
function isUndefined(entry) {
|
|
14209
14291
|
return entry === void 0 || typeof entry === "undefined" || entry === null || String(entry) === "null" || String(entry) === "undefined";
|
|
@@ -14266,7 +14348,7 @@ const _sfc_main$e = {
|
|
|
14266
14348
|
},
|
|
14267
14349
|
computed: {
|
|
14268
14350
|
interface() {
|
|
14269
|
-
var editor = this.$
|
|
14351
|
+
var editor = this.$sdk.global.editor;
|
|
14270
14352
|
if (!editor) {
|
|
14271
14353
|
return;
|
|
14272
14354
|
}
|
|
@@ -14369,7 +14451,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14369
14451
|
])
|
|
14370
14452
|
], 2);
|
|
14371
14453
|
}
|
|
14372
|
-
var InternalMenuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-
|
|
14454
|
+
var InternalMenuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-a04e9882"]]);
|
|
14373
14455
|
var jsep = { exports: {} };
|
|
14374
14456
|
(function(module, exports) {
|
|
14375
14457
|
(function(root2) {
|
|
@@ -15394,7 +15476,7 @@ const _sfc_main$d = {
|
|
|
15394
15476
|
this.$emit("field:dirty", this);
|
|
15395
15477
|
},
|
|
15396
15478
|
changeString(v) {
|
|
15397
|
-
this.validateResults = this.$
|
|
15479
|
+
this.validateResults = this.$sdk.content.validateField(this.fieldModel, this.actualField);
|
|
15398
15480
|
},
|
|
15399
15481
|
modelValue(val, old) {
|
|
15400
15482
|
if (this.watching) {
|
|
@@ -15853,7 +15935,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15853
15935
|
$options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$a, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
|
|
15854
15936
|
], 34)) : createCommentVNode("", true);
|
|
15855
15937
|
}
|
|
15856
|
-
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
15938
|
+
var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-44748cb0"]]);
|
|
15857
15939
|
var form_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
15858
15940
|
const _sfc_main$c = {
|
|
15859
15941
|
props: {
|
|
@@ -16142,7 +16224,7 @@ const _sfc_main$b = {
|
|
|
16142
16224
|
self2.state = STATE_PROCESSING;
|
|
16143
16225
|
await self2.preSubmit();
|
|
16144
16226
|
const submission = JSON.parse(JSON.stringify(self2.model));
|
|
16145
|
-
self2.$
|
|
16227
|
+
self2.$sdk.api.post(`/form/${self2.formID}`, submission).then(submissionComplete, submissionFailed);
|
|
16146
16228
|
async function submissionComplete(res) {
|
|
16147
16229
|
await self2.postSubmit();
|
|
16148
16230
|
self2.state = STATE_COMPLETE;
|
|
@@ -16207,14 +16289,14 @@ const _sfc_main$b = {
|
|
|
16207
16289
|
return (_a = this.formState) == null ? void 0 : _a.invalid;
|
|
16208
16290
|
},
|
|
16209
16291
|
formID() {
|
|
16210
|
-
return this.$
|
|
16292
|
+
return this.$sdk.utils.id(this.form);
|
|
16211
16293
|
},
|
|
16212
16294
|
fields() {
|
|
16213
16295
|
return this.form.fields || [];
|
|
16214
16296
|
}
|
|
16215
16297
|
}
|
|
16216
16298
|
};
|
|
16217
|
-
const _withScopeId$1 = (n2) => (pushScopeId("data-v-
|
|
16299
|
+
const _withScopeId$1 = (n2) => (pushScopeId("data-v-7ac54a6a"), n2 = n2(), popScopeId(), n2);
|
|
16218
16300
|
const _hoisted_1$9 = { class: "ux-submission-form" };
|
|
16219
16301
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("h3", null, "An error occurred", -1));
|
|
16220
16302
|
const _hoisted_3$5 = { key: 0 };
|
|
@@ -16287,7 +16369,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16287
16369
|
], 64))
|
|
16288
16370
|
]);
|
|
16289
16371
|
}
|
|
16290
|
-
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-
|
|
16372
|
+
var UXSubmissionForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-7ac54a6a"]]);
|
|
16291
16373
|
var search_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16292
16374
|
const _sfc_main$a = {
|
|
16293
16375
|
props: {
|
|
@@ -17385,8 +17467,8 @@ function defaultColumns(self2, type) {
|
|
|
17385
17467
|
icon: "fa-download",
|
|
17386
17468
|
action(row) {
|
|
17387
17469
|
return new Promise(async function(resolve, reject) {
|
|
17388
|
-
await self2.$
|
|
17389
|
-
var url = self2.$
|
|
17470
|
+
await self2.$sdk.auth.ensureValidToken();
|
|
17471
|
+
var url = self2.$sdk.files.downloadUrl(self2.basicType, row);
|
|
17390
17472
|
window.open(url);
|
|
17391
17473
|
resolve();
|
|
17392
17474
|
});
|
|
@@ -17461,11 +17543,11 @@ const _sfc_main$5 = {
|
|
|
17461
17543
|
Search
|
|
17462
17544
|
},
|
|
17463
17545
|
deactivated() {
|
|
17464
|
-
typeCacheKey = this.$
|
|
17546
|
+
typeCacheKey = this.$sdk.global.cacheKeys[this.type];
|
|
17465
17547
|
},
|
|
17466
17548
|
async activated() {
|
|
17467
17549
|
var self2 = this;
|
|
17468
|
-
var nowCacheKey = self2.$
|
|
17550
|
+
var nowCacheKey = self2.$sdk.global.cacheKeys[self2.type];
|
|
17469
17551
|
if (typeCacheKey != nowCacheKey) {
|
|
17470
17552
|
typeCacheKey = nowCacheKey;
|
|
17471
17553
|
self2.dataSource = await self2.load();
|
|
@@ -17475,7 +17557,7 @@ const _sfc_main$5 = {
|
|
|
17475
17557
|
var self2 = this;
|
|
17476
17558
|
await Promise.all([
|
|
17477
17559
|
new Promise(async function(resolve, reject) {
|
|
17478
|
-
var glossary = await self2.$
|
|
17560
|
+
var glossary = await self2.$sdk.content.glossary({ hash: true });
|
|
17479
17561
|
var definition = glossary[self2.type];
|
|
17480
17562
|
self2.definition = definition;
|
|
17481
17563
|
if (!definition) {
|
|
@@ -17600,7 +17682,7 @@ const _sfc_main$5 = {
|
|
|
17600
17682
|
allFields.push(dataFields);
|
|
17601
17683
|
}
|
|
17602
17684
|
}
|
|
17603
|
-
var mapped = self2.$
|
|
17685
|
+
var mapped = self2.$sdk.utils.mapFields(allFields).filter(function(field) {
|
|
17604
17686
|
var isObject2 = field.type == "group" && field.asObject && (field.minimum == 1 && field.maximum == 1);
|
|
17605
17687
|
return !isObject2;
|
|
17606
17688
|
}).map(function(field) {
|
|
@@ -17618,7 +17700,7 @@ const _sfc_main$5 = {
|
|
|
17618
17700
|
return this.manager.items.slice();
|
|
17619
17701
|
},
|
|
17620
17702
|
activeFilters() {
|
|
17621
|
-
var activeFilters = this.$
|
|
17703
|
+
var activeFilters = this.$sdk.filter.activeFilters(this.filter).reduce(function(set, filter) {
|
|
17622
17704
|
if (!filter.key) {
|
|
17623
17705
|
return set;
|
|
17624
17706
|
}
|
|
@@ -17687,11 +17769,11 @@ const _sfc_main$5 = {
|
|
|
17687
17769
|
return columns;
|
|
17688
17770
|
},
|
|
17689
17771
|
filterChangeString() {
|
|
17690
|
-
var string = this.$
|
|
17772
|
+
var string = this.$sdk.filter.filterChangeString(this.filter);
|
|
17691
17773
|
return string;
|
|
17692
17774
|
},
|
|
17693
17775
|
change() {
|
|
17694
|
-
return `${JSON.stringify([this.page, this.sort, this.keywords, this.selectFields, this.type, this.filterChangeString])}-${this.cacheKey}-${this.$
|
|
17776
|
+
return `${JSON.stringify([this.page, this.sort, this.keywords, this.selectFields, this.type, this.filterChangeString])}-${this.cacheKey}-${this.$sdk.global.cacheKeys[this.type]}`;
|
|
17695
17777
|
},
|
|
17696
17778
|
items() {
|
|
17697
17779
|
return this.dataSource.items;
|
|
@@ -17807,7 +17889,7 @@ const _sfc_main$5 = {
|
|
|
17807
17889
|
if (self2.trash) {
|
|
17808
17890
|
loadCriteria.trash = true;
|
|
17809
17891
|
}
|
|
17810
|
-
const { promise, cancel } = await self2.$
|
|
17892
|
+
const { promise, cancel } = await self2.$sdk.content.list(self2.type, loadCriteria, { cancellable: true });
|
|
17811
17893
|
cancelInflight = cancel;
|
|
17812
17894
|
promise.then(function(res) {
|
|
17813
17895
|
self2.loading = false;
|
|
@@ -17845,7 +17927,7 @@ const _sfc_main$5 = {
|
|
|
17845
17927
|
};
|
|
17846
17928
|
}
|
|
17847
17929
|
};
|
|
17848
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
17930
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-444f4547"), n2 = n2(), popScopeId(), n2);
|
|
17849
17931
|
const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
|
|
17850
17932
|
const _hoisted_2$4 = { class: "footer" };
|
|
17851
17933
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -18019,7 +18101,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18019
18101
|
_: 3
|
|
18020
18102
|
})) : createCommentVNode("", true);
|
|
18021
18103
|
}
|
|
18022
|
-
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
18104
|
+
var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-444f4547"]]);
|
|
18023
18105
|
var ModalMixin = {
|
|
18024
18106
|
props: {
|
|
18025
18107
|
options: {
|
|
@@ -18057,11 +18139,11 @@ const _sfc_main$4 = {
|
|
|
18057
18139
|
this.dismiss();
|
|
18058
18140
|
},
|
|
18059
18141
|
dismiss(err) {
|
|
18060
|
-
this.$
|
|
18142
|
+
this.$sdk.closeModal(this.modal.id);
|
|
18061
18143
|
this.modal.reject(err);
|
|
18062
18144
|
},
|
|
18063
18145
|
close(value) {
|
|
18064
|
-
this.$
|
|
18146
|
+
this.$sdk.closeModal(this.modal.id);
|
|
18065
18147
|
this.modal.resolve(value);
|
|
18066
18148
|
}
|
|
18067
18149
|
},
|
|
@@ -18098,7 +18180,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18098
18180
|
], 4)
|
|
18099
18181
|
]);
|
|
18100
18182
|
}
|
|
18101
|
-
var
|
|
18183
|
+
var UxModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-53027fe5"]]);
|
|
18102
18184
|
var ConfirmModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18103
18185
|
const _sfc_main$3 = {
|
|
18104
18186
|
mixins: [ModalMixin]
|
|
@@ -18163,7 +18245,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18163
18245
|
_: 1
|
|
18164
18246
|
});
|
|
18165
18247
|
}
|
|
18166
|
-
var
|
|
18248
|
+
var UxConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-20b62981"]]);
|
|
18167
18249
|
var OptionsModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18168
18250
|
const _sfc_main$2 = {
|
|
18169
18251
|
data() {
|
|
@@ -18261,7 +18343,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18261
18343
|
_: 1
|
|
18262
18344
|
});
|
|
18263
18345
|
}
|
|
18264
|
-
var
|
|
18346
|
+
var UxOptionsModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-09008c8a"]]);
|
|
18265
18347
|
var PromptModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18266
18348
|
const _sfc_main$1 = {
|
|
18267
18349
|
mixins: [ModalMixin],
|
|
@@ -18362,7 +18444,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18362
18444
|
})
|
|
18363
18445
|
], 32);
|
|
18364
18446
|
}
|
|
18365
|
-
var
|
|
18447
|
+
var UxPromptModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4af3c888"]]);
|
|
18366
18448
|
var ContentModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18367
18449
|
const _sfc_main = {
|
|
18368
18450
|
components: {
|
|
@@ -18372,11 +18454,11 @@ const _sfc_main = {
|
|
|
18372
18454
|
mixins: [ModalMixin],
|
|
18373
18455
|
async created() {
|
|
18374
18456
|
var self2 = this;
|
|
18375
|
-
var glossary = await self2.$
|
|
18457
|
+
var glossary = await self2.$sdk.content.glossary({ hash: true });
|
|
18376
18458
|
self2.loading = false;
|
|
18377
18459
|
var definition = glossary[self2.type];
|
|
18378
18460
|
if (!definition) {
|
|
18379
|
-
self2.$
|
|
18461
|
+
self2.$sdk.notify("You do not have the required permissions to list content of this type");
|
|
18380
18462
|
self2.dismiss();
|
|
18381
18463
|
return;
|
|
18382
18464
|
}
|
|
@@ -18507,7 +18589,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18507
18589
|
_: 1
|
|
18508
18590
|
});
|
|
18509
18591
|
}
|
|
18510
|
-
var
|
|
18592
|
+
var UxContentModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-57c31aea"]]);
|
|
18511
18593
|
function device() {
|
|
18512
18594
|
var service2 = reactive({
|
|
18513
18595
|
mounted: false,
|
|
@@ -18675,6 +18757,7 @@ const defaultComponents = {
|
|
|
18675
18757
|
UxRenderField: UXRenderField,
|
|
18676
18758
|
UxIcon: UXIcon,
|
|
18677
18759
|
UxMenu: UXMenu,
|
|
18760
|
+
UxMenuList: UXMenuList,
|
|
18678
18761
|
UxImage: UXImage,
|
|
18679
18762
|
UxButton: UXButton,
|
|
18680
18763
|
UxCheckbox: UXCheckbox,
|
|
@@ -18684,32 +18767,32 @@ const defaultComponents = {
|
|
|
18684
18767
|
UxTab: UXTab,
|
|
18685
18768
|
Spinner,
|
|
18686
18769
|
ProgressBar,
|
|
18687
|
-
|
|
18770
|
+
UxModal
|
|
18688
18771
|
};
|
|
18689
18772
|
const QikUI = {
|
|
18690
|
-
install(Vue,
|
|
18773
|
+
install(Vue, sdk) {
|
|
18691
18774
|
console.log(versionName);
|
|
18692
|
-
|
|
18693
|
-
|
|
18775
|
+
sdk.modals = reactive([]);
|
|
18776
|
+
sdk.modal = function(modal) {
|
|
18694
18777
|
return new Promise(function(resolve, reject) {
|
|
18695
|
-
modal.id =
|
|
18778
|
+
modal.id = sdk.modals.length;
|
|
18696
18779
|
modal.resolve = resolve;
|
|
18697
18780
|
modal.reject = reject;
|
|
18698
|
-
|
|
18781
|
+
sdk.modals.splice(modal.id, 0, modal);
|
|
18699
18782
|
});
|
|
18700
18783
|
};
|
|
18701
|
-
|
|
18784
|
+
sdk.browse = function(type, options) {
|
|
18702
18785
|
options = options || {};
|
|
18703
18786
|
options.type = type;
|
|
18704
18787
|
options.model = options.model || [];
|
|
18705
|
-
return
|
|
18706
|
-
component:
|
|
18788
|
+
return sdk.modal({
|
|
18789
|
+
component: UxContentModal,
|
|
18707
18790
|
options
|
|
18708
18791
|
});
|
|
18709
18792
|
};
|
|
18710
|
-
|
|
18711
|
-
return
|
|
18712
|
-
component:
|
|
18793
|
+
sdk.options = function(choices, title, description) {
|
|
18794
|
+
return sdk.modal({
|
|
18795
|
+
component: UxOptionsModal,
|
|
18713
18796
|
options: {
|
|
18714
18797
|
title,
|
|
18715
18798
|
description,
|
|
@@ -18717,29 +18800,29 @@ const QikUI = {
|
|
|
18717
18800
|
}
|
|
18718
18801
|
});
|
|
18719
18802
|
};
|
|
18720
|
-
|
|
18803
|
+
sdk.prompt = function(fields, options) {
|
|
18721
18804
|
options = options || {};
|
|
18722
18805
|
options.model = options.model || {};
|
|
18723
18806
|
options.fields = fields;
|
|
18724
|
-
return
|
|
18725
|
-
component:
|
|
18807
|
+
return sdk.modal({
|
|
18808
|
+
component: UxPromptModal,
|
|
18726
18809
|
options
|
|
18727
18810
|
});
|
|
18728
18811
|
};
|
|
18729
|
-
|
|
18812
|
+
sdk.confirm = function(title, options) {
|
|
18730
18813
|
options = options || {};
|
|
18731
18814
|
options.title = title;
|
|
18732
|
-
return
|
|
18733
|
-
component:
|
|
18815
|
+
return sdk.modal({
|
|
18816
|
+
component: UxConfirmModal,
|
|
18734
18817
|
options
|
|
18735
18818
|
});
|
|
18736
18819
|
};
|
|
18737
|
-
|
|
18738
|
-
var modal =
|
|
18820
|
+
sdk.closeModal = function(id) {
|
|
18821
|
+
var modal = sdk.modals.find(function(modal2) {
|
|
18739
18822
|
return modal2.id == id;
|
|
18740
18823
|
});
|
|
18741
|
-
var index2 =
|
|
18742
|
-
|
|
18824
|
+
var index2 = sdk.modals.indexOf(modal);
|
|
18825
|
+
sdk.modals.splice(index2, 1);
|
|
18743
18826
|
};
|
|
18744
18827
|
for (const prop in defaultComponents) {
|
|
18745
18828
|
const component = defaultComponents[prop];
|
|
@@ -18747,5 +18830,5 @@ const QikUI = {
|
|
|
18747
18830
|
}
|
|
18748
18831
|
}
|
|
18749
18832
|
};
|
|
18750
|
-
export { CodeEditor, ContentBrowser, device as Device, FlexBody, FlexCell, FlexColumn, FlexFooter, FlexHeader, FlexRow, FlexSpacer, ModalMixin, NativeSelect, Panel, PanelBody, PanelFooter, PanelHeader, ProgressBar,
|
|
18833
|
+
export { CodeEditor, ContentBrowser, device as Device, FlexBody, FlexCell, FlexColumn, FlexFooter, FlexHeader, FlexRow, FlexSpacer, ModalMixin, NativeSelect, Panel, PanelBody, PanelFooter, PanelHeader, ProgressBar, QikUI, RememberScrollMixin, Search, Selection, Spinner, UXButton, UXCheckbox, UXForm, UXFormField, UXIcon, UXImage, UXLink, UXList, UXListItem, UXMenu, UXMenuList, UXRender, UXRenderField, UXSubmissionForm, UXSwitch, UXTab, NativeTable as UXTable, UXTabset, UxConfirmModal, UxContentModal, UxModal, UxOptionsModal, UxPromptModal };
|
|
18751
18834
|
//# sourceMappingURL=lib.es.js.map
|