@qikdev/vue-ui 0.2.5 → 0.2.7

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
@@ -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.5";
35
+ const version$1 = "0.2.7";
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;
@@ -17608,15 +17608,6 @@ const _sfc_main$d = {
17608
17608
  },
17609
17609
  methods: {
17610
17610
  multiLabel(entry, index2) {
17611
- if (entry.title) {
17612
- return entry.title;
17613
- }
17614
- if (entry.name) {
17615
- return entry.name;
17616
- }
17617
- if (entry.firstName) {
17618
- return entry.firstName;
17619
- }
17620
17611
  return `${this.label} ${index2 + 1}`;
17621
17612
  }
17622
17613
  }
@@ -17685,7 +17676,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
17685
17676
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event)
17686
17677
  }, null, 8, ["submission", "fields", "flex", "parentModel", "modelValue"]));
17687
17678
  }
17688
- var FieldGroup = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-5d97d5ca"]]);
17679
+ var FieldGroup = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-32d789d7"]]);
17689
17680
  var field_vue_vue_type_style_index_0_scoped_true_lang = "";
17690
17681
  const _sfc_main$c = {
17691
17682
  components: {
@@ -17827,6 +17818,10 @@ const _sfc_main$c = {
17827
17818
  array.push(`ux-field-render-${this.type}`);
17828
17819
  if (this.layoutGroup) {
17829
17820
  array.push("ux-layout-only");
17821
+ } else {
17822
+ if (!this.fieldModel || Array.isArray(this.fieldModel) && !this.fieldModel.length) {
17823
+ array.push("ux-empty");
17824
+ }
17830
17825
  }
17831
17826
  return array;
17832
17827
  },
@@ -17878,8 +17873,8 @@ const _sfc_main$c = {
17878
17873
  }
17879
17874
  };
17880
17875
  const _hoisted_1$8 = { class: "ux-field-title" };
17881
- const _hoisted_2$7 = { class: "ux-field-description" };
17882
- const _hoisted_3$6 = { key: 1 };
17876
+ const _hoisted_2$7 = ["innerHTML"];
17877
+ const _hoisted_3$6 = ["innerHTML"];
17883
17878
  const _hoisted_4$6 = { key: 1 };
17884
17879
  const _hoisted_5$1 = { key: 1 };
17885
17880
  const _hoisted_6$1 = ["href"];
@@ -17897,7 +17892,6 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
17897
17892
  class: normalizeClass(["ux-field-render", $options.classes])
17898
17893
  }, [
17899
17894
  createElementVNode("label", _hoisted_1$8, toDisplayString($options.title), 1),
17900
- createElementVNode("div", _hoisted_2$7, toDisplayString($props.field.description), 1),
17901
17895
  $options.widget === "group" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
17902
17896
  $options.asObject ? (openBlock(), createBlock(_component_field_group, {
17903
17897
  key: 0,
@@ -17937,8 +17931,11 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
17937
17931
  ], 64)) : createCommentVNode("", true),
17938
17932
  $options.type == "string" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
17939
17933
  $options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
17940
- return openBlock(), createElementBlock("div", null, toDisplayString(value), 1);
17941
- }), 256)) : (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString($options.fieldModel), 1))
17934
+ return openBlock(), createElementBlock("div", { innerHTML: value }, null, 8, _hoisted_2$7);
17935
+ }), 256)) : (openBlock(), createElementBlock("div", {
17936
+ key: 1,
17937
+ innerHTML: $options.fieldModel
17938
+ }, null, 8, _hoisted_3$6))
17942
17939
  ], 64)) : createCommentVNode("", true),
17943
17940
  $options.type == "boolean" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
17944
17941
  $options.multiValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.fieldModel, (value, index2) => {
@@ -17980,7 +17977,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
17980
17977
  ], 64))
17981
17978
  ], 2)) : createCommentVNode("", true);
17982
17979
  }
17983
- var UXRenderField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-05569ffc"]]);
17980
+ var UXRenderField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-3ba53078"]]);
17984
17981
  var render_vue_vue_type_style_index_0_scoped_true_lang = "";
17985
17982
  const _sfc_main$b = {
17986
17983
  props: {