@qikdev/vue-ui 0.1.53 → 0.1.57

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, 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.53";
35
+ const version$1 = "0.1.57";
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;
@@ -4630,13 +4630,13 @@ const _sfc_main$Y = {
4630
4630
  }
4631
4631
  };
4632
4632
  const _hoisted_1$K = { class: "table-date-cell" };
4633
- const _hoisted_2$B = { key: 0 };
4633
+ const _hoisted_2$C = { key: 0 };
4634
4634
  const _hoisted_3$v = { class: "off" };
4635
4635
  const _hoisted_4$r = { class: "on" };
4636
4636
  const _hoisted_5$l = { class: "spacer" };
4637
4637
  function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
4638
4638
  return openBlock(), createElementBlock("td", _hoisted_1$K, [
4639
- $options.hasValue ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
4639
+ $options.hasValue ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
4640
4640
  createElementVNode("span", _hoisted_3$v, toDisplayString($options.readable), 1),
4641
4641
  createElementVNode("span", _hoisted_4$r, toDisplayString($options.timeago), 1),
4642
4642
  createElementVNode("span", _hoisted_5$l, toDisplayString($options.readable), 1)
@@ -4679,7 +4679,7 @@ const _sfc_main$W = {
4679
4679
  }
4680
4680
  };
4681
4681
  const _hoisted_1$J = { class: "table-url-cell" };
4682
- const _hoisted_2$A = ["href"];
4682
+ const _hoisted_2$B = ["href"];
4683
4683
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
4684
4684
  const _component_ux_icon = resolveComponent("ux-icon");
4685
4685
  return openBlock(), createElementBlock("td", _hoisted_1$J, [
@@ -4693,7 +4693,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
4693
4693
  right: "",
4694
4694
  icon: "fa-external-link"
4695
4695
  })
4696
- ], 8, _hoisted_2$A)
4696
+ ], 8, _hoisted_2$B)
4697
4697
  ]);
4698
4698
  }
4699
4699
  var URLCell = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-17cf3a86"]]);
@@ -4870,7 +4870,7 @@ const _hoisted_1$H = {
4870
4870
  key: 1,
4871
4871
  class: "table-cell"
4872
4872
  };
4873
- const _hoisted_2$z = { class: "value" };
4873
+ const _hoisted_2$A = { class: "value" };
4874
4874
  const _hoisted_3$u = { class: "value" };
4875
4875
  function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
4876
4876
  const _component_value_renderer = resolveComponent("value-renderer");
@@ -4882,7 +4882,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
4882
4882
  }, null, 8, ["column", "row", "value"])) : (openBlock(), createElementBlock("td", _hoisted_1$H, [
4883
4883
  $options.multiValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4884
4884
  $options.complex ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.value, (entry, index2) => {
4885
- return openBlock(), createElementBlock("span", _hoisted_2$z, [
4885
+ return openBlock(), createElementBlock("span", _hoisted_2$A, [
4886
4886
  createVNode(_component_value_renderer, {
4887
4887
  type: $props.column.type,
4888
4888
  multi: "",
@@ -5177,7 +5177,7 @@ const _sfc_main$S = {
5177
5177
  }
5178
5178
  };
5179
5179
  const _hoisted_1$G = { class: "table-wrapper" };
5180
- const _hoisted_2$y = {
5180
+ const _hoisted_2$z = {
5181
5181
  class: "table-scroll",
5182
5182
  ref: "scroll"
5183
5183
  };
@@ -5200,7 +5200,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5200
5200
  const _component_ux_menu = resolveComponent("ux-menu");
5201
5201
  const _component_table_row = resolveComponent("table-row");
5202
5202
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
5203
- createElementVNode("div", _hoisted_2$y, [
5203
+ createElementVNode("div", _hoisted_2$z, [
5204
5204
  createElementVNode("table", null, [
5205
5205
  createElementVNode("thead", null, [
5206
5206
  createElementVNode("tr", null, [
@@ -5296,13 +5296,13 @@ const _sfc_main$R = {
5296
5296
  };
5297
5297
  const _withScopeId$5 = (n2) => (pushScopeId("data-v-27f20370"), n2 = n2(), popScopeId(), n2);
5298
5298
  const _hoisted_1$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "fa fa-spin fa-spinner" }, null, -1));
5299
- const _hoisted_2$x = [
5299
+ const _hoisted_2$y = [
5300
5300
  _hoisted_1$F
5301
5301
  ];
5302
5302
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
5303
5303
  return openBlock(), createElementBlock("div", {
5304
5304
  class: normalizeClass(["ux-spinner", { large: $props.large }])
5305
- }, _hoisted_2$x, 2);
5305
+ }, _hoisted_2$y, 2);
5306
5306
  }
5307
5307
  var Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-27f20370"]]);
5308
5308
  var button_vue_vue_type_style_index_0_scoped_true_lang = "";
@@ -5379,12 +5379,7 @@ const _sfc_main$Q = {
5379
5379
  if (this.icon) {
5380
5380
  array.push(`ux-btn-icon`);
5381
5381
  }
5382
- if (this.color == "default") {
5383
- array.push("ux-btn-color-default");
5384
- }
5385
- if (this.color == "primary") {
5386
- array.push("ux-btn-color-primary");
5387
- }
5382
+ array.push(`ux-btn-${this.color}`);
5388
5383
  if (this.disabled) {
5389
5384
  array.push(`ux-btn-disabled`);
5390
5385
  }
@@ -5427,7 +5422,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
5427
5422
  _: 3
5428
5423
  }, 8, ["active", "loading", "to", "href", "target", "style", "class", "disabled"]);
5429
5424
  }
5430
- var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-ef0c5e26"]]);
5425
+ var UXButton = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q], ["__scopeId", "data-v-7db8ccb4"]]);
5431
5426
  var checkbox_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
5432
5427
  const _sfc_main$P = {
5433
5428
  props: {
@@ -5921,6 +5916,9 @@ const _sfc_main$J = {
5921
5916
  type: {
5922
5917
  type: String,
5923
5918
  default: "image"
5919
+ },
5920
+ svg: {
5921
+ type: Boolean
5924
5922
  }
5925
5923
  },
5926
5924
  data() {
@@ -5929,6 +5927,17 @@ const _sfc_main$J = {
5929
5927
  };
5930
5928
  },
5931
5929
  computed: {
5930
+ isSvg() {
5931
+ var _a;
5932
+ if (this.svg) {
5933
+ return true;
5934
+ }
5935
+ switch ((_a = this.item) == null ? void 0 : _a.fileMime) {
5936
+ case "image/svg+xml":
5937
+ case "image/svg":
5938
+ return true;
5939
+ }
5940
+ },
5932
5941
  defaultWidth() {
5933
5942
  return;
5934
5943
  },
@@ -5995,21 +6004,33 @@ const _sfc_main$J = {
5995
6004
  style.height = 0;
5996
6005
  style.paddingBottom = `${dimensionHeight / dimensionWidth * 100}%`;
5997
6006
  }
5998
- style.backgroundImage = `url(${this.previewSrc})`;
6007
+ if (this.isSvg)
6008
+ ;
6009
+ else {
6010
+ style.backgroundImage = `url(${this.previewSrc})`;
6011
+ }
5999
6012
  return style;
6000
6013
  }
6001
6014
  }
6002
6015
  };
6003
- const _hoisted_1$D = ["src"];
6016
+ const _hoisted_1$D = ["data"];
6017
+ const _hoisted_2$x = ["src"];
6004
6018
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
6005
6019
  return openBlock(), createElementBlock("div", {
6006
6020
  class: "ux-image",
6007
6021
  style: normalizeStyle($options.style)
6008
6022
  }, [
6009
- createElementVNode("img", { src: $options.src }, null, 8, _hoisted_1$D)
6023
+ $props.svg ? (openBlock(), createElementBlock("object", {
6024
+ key: 0,
6025
+ type: "image/svg+xml",
6026
+ data: $options.src
6027
+ }, null, 8, _hoisted_1$D)) : (openBlock(), createElementBlock("img", {
6028
+ key: 1,
6029
+ src: $options.src
6030
+ }, null, 8, _hoisted_2$x))
6010
6031
  ], 4);
6011
6032
  }
6012
- var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-3d48a5ec"]]);
6033
+ var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J], ["__scopeId", "data-v-4c8cc011"]]);
6013
6034
  var progressbar_vue_vue_type_style_index_0_scoped_true_lang = "";
6014
6035
  const _sfc_main$I = {
6015
6036
  props: {
@@ -12626,6 +12647,9 @@ const _sfc_main$o = {
12626
12647
  props: {
12627
12648
  multiple: {
12628
12649
  type: Boolean
12650
+ },
12651
+ accept: {
12652
+ type: String
12629
12653
  }
12630
12654
  },
12631
12655
  methods: {
@@ -12656,7 +12680,7 @@ const _sfc_main$o = {
12656
12680
  }
12657
12681
  }
12658
12682
  };
12659
- const _hoisted_1$j = ["multiple"];
12683
+ const _hoisted_1$j = ["accept", "multiple"];
12660
12684
  const _hoisted_2$f = /* @__PURE__ */ createTextVNode("Select Files");
12661
12685
  function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
12662
12686
  const _component_ux_button = resolveComponent("ux-button");
@@ -12667,6 +12691,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
12667
12691
  }, [
12668
12692
  createElementVNode("input", {
12669
12693
  ref: "file",
12694
+ accept: $props.accept,
12670
12695
  type: "file",
12671
12696
  multiple: $props.multiple,
12672
12697
  onChange: _cache[0] || (_cache[0] = ($event) => $options.filesSelected($event.target.files))
@@ -12686,7 +12711,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
12686
12711
  ])
12687
12712
  ], 32);
12688
12713
  }
12689
- var FileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-67879182"]]);
12714
+ var FileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-65e7e548"]]);
12690
12715
  var upload_vue_vue_type_style_index_0_scoped_true_lang = "";
12691
12716
  const _sfc_main$n = {
12692
12717
  mixins: [InputMixin],
@@ -18860,5 +18885,5 @@ const QikUI = {
18860
18885
  }
18861
18886
  }
18862
18887
  };
18863
- 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 };
18888
+ export { CodeEditor, ContentBrowser, device as Device, FileDrop, 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 };
18864
18889
  //# sourceMappingURL=lib.es.js.map