@qikdev/vue-ui 0.2.6 → 0.2.8
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 +51 -33
- 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, vModelText, vModelSelect, withKeys, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, reactive, watch } from "vue";
|
|
34
34
|
import { EventDispatcher } from "@qikdev/sdk";
|
|
35
|
-
const version$1 = "0.2.
|
|
35
|
+
const version$1 = "0.2.8";
|
|
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;
|
|
@@ -151,7 +151,14 @@ const _sfc_main$19 = {
|
|
|
151
151
|
},
|
|
152
152
|
computed: {
|
|
153
153
|
tabs() {
|
|
154
|
-
|
|
154
|
+
const self2 = this;
|
|
155
|
+
const slotChildren = self2.$slots.default().map(function(child) {
|
|
156
|
+
if (child.props.enabled === false) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
return child;
|
|
160
|
+
}).filter(Boolean);
|
|
161
|
+
console.log("TABS", slotChildren);
|
|
155
162
|
return slotChildren;
|
|
156
163
|
}
|
|
157
164
|
}
|
|
@@ -170,9 +177,10 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
177
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
|
|
171
178
|
return openBlock(), createElementBlock("a", {
|
|
172
179
|
class: normalizeClass({ active: index2 === $data.activeIndex }),
|
|
180
|
+
key: `tab-link-${tab.props.heading}`,
|
|
173
181
|
onClick: ($event) => $options.select(index2)
|
|
174
182
|
}, toDisplayString(tab.props.heading), 11, _hoisted_1$T);
|
|
175
|
-
}),
|
|
183
|
+
}), 128))
|
|
176
184
|
]),
|
|
177
185
|
_: 1
|
|
178
186
|
})
|
|
@@ -182,7 +190,9 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
182
190
|
createVNode(_component_flex_column, null, {
|
|
183
191
|
default: withCtx(() => [
|
|
184
192
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
|
|
185
|
-
return withDirectives((openBlock(), createBlock(_component_flex_column, {
|
|
193
|
+
return withDirectives((openBlock(), createBlock(_component_flex_column, {
|
|
194
|
+
key: `tab-panel-${tab.props.heading}`
|
|
195
|
+
}, {
|
|
186
196
|
default: withCtx(() => [
|
|
187
197
|
(openBlock(), createBlock(resolveDynamicComponent(tab)))
|
|
188
198
|
]),
|
|
@@ -198,12 +208,16 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
208
|
_: 1
|
|
199
209
|
});
|
|
200
210
|
}
|
|
201
|
-
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__scopeId", "data-v-
|
|
211
|
+
var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__scopeId", "data-v-7e39d77e"]]);
|
|
202
212
|
const _sfc_main$18 = {
|
|
203
213
|
props: {
|
|
204
214
|
heading: {
|
|
205
215
|
type: String,
|
|
206
216
|
required: true
|
|
217
|
+
},
|
|
218
|
+
enabled: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
default: true
|
|
207
221
|
}
|
|
208
222
|
},
|
|
209
223
|
data() {
|
|
@@ -7112,7 +7126,7 @@ const _hoisted_8$7 = { class: "ux-text-wrap" };
|
|
|
7112
7126
|
const _hoisted_9$6 = ["placeholder", "onUpdate:modelValue"];
|
|
7113
7127
|
const _hoisted_10$5 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
|
|
7114
7128
|
const _hoisted_11$4 = ["value"];
|
|
7115
|
-
const _hoisted_12$
|
|
7129
|
+
const _hoisted_12$4 = { class: "ux-text-wrap" };
|
|
7116
7130
|
const _hoisted_13$3 = ["placeholder"];
|
|
7117
7131
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7118
7132
|
const _component_ux_button = resolveComponent("ux-button");
|
|
@@ -7240,7 +7254,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7240
7254
|
}),
|
|
7241
7255
|
createVNode(_component_flex_cell, null, {
|
|
7242
7256
|
default: withCtx(() => [
|
|
7243
|
-
createElementVNode("div", _hoisted_12$
|
|
7257
|
+
createElementVNode("div", _hoisted_12$4, [
|
|
7244
7258
|
withDirectives(createElementVNode("input", {
|
|
7245
7259
|
class: "ux-field-focus ux-text-input-multiple",
|
|
7246
7260
|
placeholder: $options.actualPlaceholder,
|
|
@@ -11397,7 +11411,7 @@ const _hoisted_11$3 = {
|
|
|
11397
11411
|
key: 0,
|
|
11398
11412
|
class: "ux-text-prefix"
|
|
11399
11413
|
};
|
|
11400
|
-
const _hoisted_12$
|
|
11414
|
+
const _hoisted_12$3 = ["type", "placeholder"];
|
|
11401
11415
|
const _hoisted_13$2 = ["type", "placeholder"];
|
|
11402
11416
|
const _hoisted_14$2 = {
|
|
11403
11417
|
key: 3,
|
|
@@ -11507,7 +11521,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11507
11521
|
placeholder: $options.actualPlaceholder,
|
|
11508
11522
|
onFocus: _cache[5] || (_cache[5] = (...args) => _ctx.touch && _ctx.touch(...args)),
|
|
11509
11523
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.model = $event)
|
|
11510
|
-
}, null, 40, _hoisted_12$
|
|
11524
|
+
}, null, 40, _hoisted_12$3)), [
|
|
11511
11525
|
[
|
|
11512
11526
|
vModelDynamic,
|
|
11513
11527
|
_ctx.model,
|
|
@@ -12360,7 +12374,7 @@ const _hoisted_8$4 = { key: 4 };
|
|
|
12360
12374
|
const _hoisted_9$3 = { key: 5 };
|
|
12361
12375
|
const _hoisted_10$3 = { key: 6 };
|
|
12362
12376
|
const _hoisted_11$2 = { key: 7 };
|
|
12363
|
-
const _hoisted_12$
|
|
12377
|
+
const _hoisted_12$2 = { key: 8 };
|
|
12364
12378
|
const _hoisted_13$1 = { key: 9 };
|
|
12365
12379
|
const _hoisted_14$1 = { key: 10 };
|
|
12366
12380
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -12497,7 +12511,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12497
12511
|
[vModelCheckbox, $data.model.value]
|
|
12498
12512
|
])
|
|
12499
12513
|
])) : createCommentVNode("", true),
|
|
12500
|
-
$options.inputType == "none" ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
12514
|
+
$options.inputType == "none" ? (openBlock(), createElementBlock("div", _hoisted_12$2)) : createCommentVNode("", true),
|
|
12501
12515
|
$options.inputType == "number" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
12502
12516
|
createVNode(_component_text_field, {
|
|
12503
12517
|
field: $options.normalField,
|
|
@@ -14460,7 +14474,7 @@ const _hoisted_8$2 = ["onBlur", "on:update:modelValue", "onUpdate:modelValue"];
|
|
|
14460
14474
|
const _hoisted_9$2 = { class: "ux-text-wrap prefixed" };
|
|
14461
14475
|
const _hoisted_10$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Value", -1));
|
|
14462
14476
|
const _hoisted_11$1 = ["onFocus", "onUpdate:modelValue"];
|
|
14463
|
-
const _hoisted_12 = ["onFocus", "onUpdate:modelValue"];
|
|
14477
|
+
const _hoisted_12$1 = ["onFocus", "onUpdate:modelValue"];
|
|
14464
14478
|
const _hoisted_13 = { class: "ux-text-wrap prefixed" };
|
|
14465
14479
|
const _hoisted_14 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Label", -1));
|
|
14466
14480
|
const _hoisted_15 = { class: "ux-text-wrap prefixed" };
|
|
@@ -14554,7 +14568,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14554
14568
|
ref: "valueInput",
|
|
14555
14569
|
onKeydown: _cache[5] || (_cache[5] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
|
|
14556
14570
|
"onUpdate:modelValue": ($event) => _ctx.model[index2].value = $event
|
|
14557
|
-
}, null, 40, _hoisted_12)), [
|
|
14571
|
+
}, null, 40, _hoisted_12$1)), [
|
|
14558
14572
|
[vModelText, _ctx.model[index2].value]
|
|
14559
14573
|
]) : createCommentVNode("", true)
|
|
14560
14574
|
])
|
|
@@ -17873,16 +17887,17 @@ const _sfc_main$c = {
|
|
|
17873
17887
|
}
|
|
17874
17888
|
};
|
|
17875
17889
|
const _hoisted_1$8 = { class: "ux-field-title" };
|
|
17876
|
-
const _hoisted_2$7 =
|
|
17877
|
-
const _hoisted_3$6 =
|
|
17890
|
+
const _hoisted_2$7 = ["innerHTML"];
|
|
17891
|
+
const _hoisted_3$6 = ["innerHTML"];
|
|
17878
17892
|
const _hoisted_4$6 = { key: 1 };
|
|
17879
|
-
const _hoisted_5$1 =
|
|
17880
|
-
const _hoisted_6$1 =
|
|
17881
|
-
const _hoisted_7$1 =
|
|
17893
|
+
const _hoisted_5$1 = { key: 1 };
|
|
17894
|
+
const _hoisted_6$1 = ["href"];
|
|
17895
|
+
const _hoisted_7$1 = { key: 1 };
|
|
17882
17896
|
const _hoisted_8 = ["href"];
|
|
17883
|
-
const _hoisted_9 =
|
|
17884
|
-
const _hoisted_10 =
|
|
17885
|
-
const _hoisted_11 =
|
|
17897
|
+
const _hoisted_9 = ["href"];
|
|
17898
|
+
const _hoisted_10 = { key: 1 };
|
|
17899
|
+
const _hoisted_11 = ["href"];
|
|
17900
|
+
const _hoisted_12 = { key: 1 };
|
|
17886
17901
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17887
17902
|
const _component_field_group = resolveComponent("field-group");
|
|
17888
17903
|
const _component_item = resolveComponent("item");
|
|
@@ -17930,50 +17945,53 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17930
17945
|
], 64)) : createCommentVNode("", true),
|
|
17931
17946
|
$options.type == "string" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
17932
17947
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17933
|
-
return openBlock(), createElementBlock("div", null,
|
|
17934
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17948
|
+
return openBlock(), createElementBlock("div", { innerHTML: value }, null, 8, _hoisted_2$7);
|
|
17949
|
+
}), 256)) : (openBlock(), createElementBlock("div", {
|
|
17950
|
+
key: 1,
|
|
17951
|
+
innerHTML: $options.fieldModel
|
|
17952
|
+
}, null, 8, _hoisted_3$6))
|
|
17935
17953
|
], 64)) : createCommentVNode("", true),
|
|
17936
17954
|
$options.type == "boolean" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
17937
17955
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17938
17956
|
return openBlock(), createElementBlock("div", null, toDisplayString(!!value), 1);
|
|
17939
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17957
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(!!$options.fieldModel), 1))
|
|
17940
17958
|
], 64)) : createCommentVNode("", true),
|
|
17941
17959
|
$options.type == "date" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
17942
17960
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17943
17961
|
return openBlock(), createElementBlock("div", null, toDisplayString(value), 1);
|
|
17944
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17962
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString($options.fieldModel), 1))
|
|
17945
17963
|
], 64)) : createCommentVNode("", true),
|
|
17946
17964
|
$options.type == "email" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
17947
17965
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17948
17966
|
return openBlock(), createElementBlock("div", null, [
|
|
17949
17967
|
createElementVNode("a", {
|
|
17950
17968
|
href: `mailto:${value}`
|
|
17951
|
-
}, toDisplayString(value), 9,
|
|
17969
|
+
}, toDisplayString(value), 9, _hoisted_6$1)
|
|
17952
17970
|
]);
|
|
17953
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17971
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
17954
17972
|
createElementVNode("a", {
|
|
17955
17973
|
href: `mailto:${$options.fieldModel}`
|
|
17956
|
-
}, toDisplayString($options.fieldModel), 9,
|
|
17974
|
+
}, toDisplayString($options.fieldModel), 9, _hoisted_8)
|
|
17957
17975
|
]))
|
|
17958
17976
|
], 64)) : createCommentVNode("", true),
|
|
17959
17977
|
$options.type == "url" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
17960
17978
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17961
17979
|
return openBlock(), createElementBlock("div", null, [
|
|
17962
|
-
createElementVNode("a", { href: value }, toDisplayString(value), 9,
|
|
17980
|
+
createElementVNode("a", { href: value }, toDisplayString(value), 9, _hoisted_9)
|
|
17963
17981
|
]);
|
|
17964
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17965
|
-
createElementVNode("a", { href: $options.fieldModel }, toDisplayString($options.fieldModel), 9,
|
|
17982
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
17983
|
+
createElementVNode("a", { href: $options.fieldModel }, toDisplayString($options.fieldModel), 9, _hoisted_11)
|
|
17966
17984
|
]))
|
|
17967
17985
|
], 64)) : createCommentVNode("", true),
|
|
17968
17986
|
$options.isNumber ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
17969
17987
|
$options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
|
|
17970
17988
|
return openBlock(), createElementBlock("div", null, toDisplayString(value), 1);
|
|
17971
|
-
}), 256)) : (openBlock(), createElementBlock("div",
|
|
17989
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_12, toDisplayString($options.fieldModel), 1))
|
|
17972
17990
|
], 64)) : createCommentVNode("", true)
|
|
17973
17991
|
], 64))
|
|
17974
17992
|
], 2)) : createCommentVNode("", true);
|
|
17975
17993
|
}
|
|
17976
|
-
var UXRenderField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
17994
|
+
var UXRenderField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-3ba53078"]]);
|
|
17977
17995
|
var render_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17978
17996
|
const _sfc_main$b = {
|
|
17979
17997
|
props: {
|