@qikdev/vue-ui 0.2.53 → 0.2.55

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 CHANGED
@@ -30,9 +30,9 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- import { openBlock, createElementBlock, renderSlot, resolveComponent, normalizeClass, Fragment, createVNode, withCtx, renderList, toDisplayString, withDirectives, createBlock, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, h, mergeProps, toHandlers, vModelSelect, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelText, withKeys, TransitionGroup, defineComponent, nextTick, vModelDynamic, reactive, watch } from "vue";
33
+ import { openBlock, createElementBlock, renderSlot, resolveComponent, normalizeClass, Fragment, createBlock, withCtx, createVNode, renderList, toDisplayString, createCommentVNode, withDirectives, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createElementVNode, h, mergeProps, toHandlers, vModelSelect, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelText, withKeys, TransitionGroup, defineComponent, nextTick, vModelDynamic, reactive, watch } from "vue";
34
34
  import { EventDispatcher } from "@qikdev/sdk";
35
- const version$1 = "0.2.53";
35
+ const version$1 = "0.2.55";
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;
@@ -158,6 +158,9 @@ const _sfc_main$1h = {
158
158
  }
159
159
  },
160
160
  computed: {
161
+ menuRequired() {
162
+ return this.tabs.length > 1;
163
+ },
161
164
  tabs() {
162
165
  const self2 = this;
163
166
  const slotChildren = self2.$slots.default().map(function(child) {
@@ -186,7 +189,10 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
186
189
  class: normalizeClass(["ux-tabset", { vertical: $props.vertical, horizontal: !$props.vertical, inline: $props.inline, block: !$props.inline }])
187
190
  }, [
188
191
  $props.vertical ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
189
- createVNode(_component_flex_column, { class: "tabset-menu" }, {
192
+ $options.menuRequired ? (openBlock(), createBlock(_component_flex_column, {
193
+ key: 0,
194
+ class: "tabset-menu"
195
+ }, {
190
196
  default: withCtx(() => [
191
197
  createVNode(_component_flex_body, null, {
192
198
  default: withCtx(() => [
@@ -202,7 +208,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
202
208
  })
203
209
  ]),
204
210
  _: 1
205
- }),
211
+ })) : createCommentVNode("", true),
206
212
  createVNode(_component_flex_column, null, {
207
213
  default: withCtx(() => [
208
214
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
@@ -221,7 +227,10 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
221
227
  _: 1
222
228
  })
223
229
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
224
- createVNode(_component_flex_header, { class: "tabset-menu" }, {
230
+ $options.menuRequired ? (openBlock(), createBlock(_component_flex_header, {
231
+ key: 0,
232
+ class: "tabset-menu"
233
+ }, {
225
234
  default: withCtx(() => [
226
235
  createVNode(_component_flex_row, null, {
227
236
  default: withCtx(() => [
@@ -237,7 +246,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
237
246
  })
238
247
  ]),
239
248
  _: 1
240
- }),
249
+ })) : createCommentVNode("", true),
241
250
  createVNode(_component_flex_column, null, {
242
251
  default: withCtx(() => [
243
252
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
@@ -258,7 +267,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
258
267
  ], 64))
259
268
  ], 2);
260
269
  }
261
- var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__scopeId", "data-v-fc1e48c4"]]);
270
+ var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__scopeId", "data-v-99e2c0be"]]);
262
271
  const _sfc_main$1g = {
263
272
  props: {
264
273
  heading: {
@@ -5765,11 +5774,7 @@ var InputMixin = {
5765
5774
  },
5766
5775
  watch: {
5767
5776
  modelValue(val, old) {
5768
- var cleanedValue = this.cleanInput(val);
5769
- var cleanedModel = this.cleanInput(this.model);
5770
- if (safeJsonStringify(cleanedValue) != safeJsonStringify(cleanedModel)) {
5771
- this.model = cleanedValue;
5772
- }
5777
+ this.model = val;
5773
5778
  }
5774
5779
  },
5775
5780
  mounted() {
@@ -5797,9 +5802,22 @@ var InputMixin = {
5797
5802
  return cleaned;
5798
5803
  },
5799
5804
  set(val) {
5800
- this.value = this.cleanInput(val);
5801
- this.checkAutofocus();
5802
- this.dispatch();
5805
+ let force;
5806
+ if (this.isGroup || this.widget === "form") {
5807
+ if (val === this.value) {
5808
+ force = false;
5809
+ } else {
5810
+ force = true;
5811
+ }
5812
+ }
5813
+ const cleanedValue = this.cleanInput(val);
5814
+ const cleanedModel = this.cleanInput(this.value);
5815
+ const contentHasChanged = safeJsonStringify(cleanedValue) != safeJsonStringify(cleanedModel);
5816
+ if (contentHasChanged || force) {
5817
+ this.value = cleanedValue;
5818
+ this.checkAutofocus();
5819
+ this.dispatch();
5820
+ }
5803
5821
  }
5804
5822
  },
5805
5823
  options() {
@@ -6029,6 +6047,7 @@ var InputMixin = {
6029
6047
  },
6030
6048
  dispatch() {
6031
6049
  this.$emit("update:modelValue", this.value);
6050
+ console.log("Update", this.field.title);
6032
6051
  },
6033
6052
  cleanInputValue(val) {
6034
6053
  return val;
@@ -6733,6 +6752,9 @@ const _sfc_main$Y = {
6733
6752
  },
6734
6753
  disabled: {
6735
6754
  type: Boolean
6755
+ },
6756
+ active: {
6757
+ type: Boolean
6736
6758
  }
6737
6759
  },
6738
6760
  methods: {
@@ -6774,6 +6796,9 @@ const _sfc_main$Y = {
6774
6796
  if (this.disabled) {
6775
6797
  array.push("disabled");
6776
6798
  }
6799
+ if (this.active) {
6800
+ array.push("active");
6801
+ }
6777
6802
  if (this.href || this.to) {
6778
6803
  array.push("haslink");
6779
6804
  }
@@ -6807,7 +6832,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
6807
6832
  _: 3
6808
6833
  }, 8, ["onClick", "to", "href", "target", "class"]);
6809
6834
  }
6810
- var UXLink = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__scopeId", "data-v-8b82829a"]]);
6835
+ var UXLink = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__scopeId", "data-v-f100ab44"]]);
6811
6836
  var icon_vue_vue_type_style_index_0_scoped_true_lang = "";
6812
6837
  const _sfc_main$X = {
6813
6838
  props: {
@@ -7338,10 +7363,12 @@ const _sfc_main$T = {
7338
7363
  },
7339
7364
  computed: {
7340
7365
  mediaType() {
7341
- return this.model.mediaIntegrationType || "upload";
7366
+ var _a;
7367
+ return ((_a = this.model) == null ? void 0 : _a.mediaIntegrationType) || "upload";
7342
7368
  },
7343
7369
  mimetype() {
7344
- return this.model.fileMime || "video/mp4";
7370
+ var _a;
7371
+ return ((_a = this.model) == null ? void 0 : _a.fileMime) || "video/mp4";
7345
7372
  },
7346
7373
  actualWidth() {
7347
7374
  return parseInt(this.width) || this.modelWidth || 1920;
@@ -7415,7 +7442,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
7415
7442
  ])
7416
7443
  ], 6);
7417
7444
  }
7418
- var UXVideo = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__scopeId", "data-v-c85ee2a2"]]);
7445
+ var UXVideo = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__scopeId", "data-v-1f51798b"]]);
7419
7446
  var progressbar_vue_vue_type_style_index_0_scoped_true_lang = "";
7420
7447
  const _sfc_main$S = {
7421
7448
  props: {
@@ -15141,11 +15168,8 @@ const _sfc_main$q = {
15141
15168
  return `${this.label} ${index2 + 1}`;
15142
15169
  },
15143
15170
  enterPress(event) {
15144
- if (this.canAddValue) {
15145
- event.stopImmediatePropagation();
15146
- event.preventDefault();
15147
- this.add();
15148
- }
15171
+ console.log("Enter", event);
15172
+ return;
15149
15173
  },
15150
15174
  refocus() {
15151
15175
  this.$nextTick(function() {
@@ -15578,7 +15602,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
15578
15602
  ], 64))
15579
15603
  ], 64));
15580
15604
  }
15581
- var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-66c6137b"]]);
15605
+ var FieldGroup$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-f616ab46"]]);
15582
15606
  const _sfc_main$p = {
15583
15607
  props: {
15584
15608
  option: {
@@ -18554,7 +18578,8 @@ const _sfc_main$e = {
18554
18578
  },
18555
18579
  set(value) {
18556
18580
  var cleaned = this.cleanInput(value);
18557
- if (this.model[this.key] != cleaned) {
18581
+ const existing = this.model[this.key];
18582
+ if (existing != cleaned) {
18558
18583
  this.model[this.key] = cleaned;
18559
18584
  this.isDirty = true;
18560
18585
  this.$emit("update:modelValue", this.model);
@@ -18931,7 +18956,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
18931
18956
  $options.error && $data.validateResults.message ? (openBlock(), createElementBlock("div", _hoisted_1$b, toDisplayString($data.validateResults.message), 1)) : createCommentVNode("", true)
18932
18957
  ], 34)) : createCommentVNode("", true);
18933
18958
  }
18934
- var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-5b27e0f0"]]);
18959
+ var UXFormField = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-353dd59e"]]);
18935
18960
  function arrayReduce$1(array, iteratee, accumulator, initAccum) {
18936
18961
  var index2 = -1, length = array == null ? 0 : array.length;
18937
18962
  if (initAccum && length) {