@qikdev/vue-ui 0.1.93 → 0.2.0

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.1.93";
35
+ const version$1 = "0.2.0";
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;
@@ -5990,6 +5990,13 @@ const _sfc_main$S = {
5990
5990
  default: "none"
5991
5991
  }
5992
5992
  },
5993
+ computed: {
5994
+ filteredItems() {
5995
+ return this.items.filter(function(item) {
5996
+ return !item.disabled;
5997
+ });
5998
+ }
5999
+ },
5993
6000
  methods: {
5994
6001
  toggle(item) {
5995
6002
  item.expanded = !item.expanded;
@@ -6004,7 +6011,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
6004
6011
  const _component_ux_link = resolveComponent("ux-link");
6005
6012
  const _component_menulist = resolveComponent("menulist", true);
6006
6013
  return openBlock(), createElementBlock("ul", null, [
6007
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.items, (item) => {
6014
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.filteredItems, (item) => {
6008
6015
  var _a;
6009
6016
  return openBlock(), createElementBlock("li", {
6010
6017
  class: normalizeClass({ expanded: item.expanded, collapsed: item.collapsed })
@@ -6165,13 +6172,13 @@ const _sfc_main$R = {
6165
6172
  return params;
6166
6173
  },
6167
6174
  src() {
6168
- return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, this.params);
6175
+ return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, this.params, { file: true });
6169
6176
  },
6170
6177
  previewSrc() {
6171
6178
  var params = Object.assign({}, this.params);
6172
6179
  params.w = 50;
6173
6180
  delete params.h;
6174
- return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, params);
6181
+ return this.$sdk.api.generateEndpointURL(`/${this.type}/${this.id}`, params, { file: true });
6175
6182
  },
6176
6183
  imageStyle() {
6177
6184
  var style = {};
@@ -6241,7 +6248,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
6241
6248
  }, null, 12, _hoisted_2$C))
6242
6249
  ], 6);
6243
6250
  }
6244
- var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-1f7127ce"]]);
6251
+ var UXImage = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-a5d2a840"]]);
6245
6252
  var progressbar_vue_vue_type_style_index_0_scoped_true_lang = "";
6246
6253
  const _sfc_main$Q = {
6247
6254
  props: {
@@ -14427,8 +14434,8 @@ const _hoisted_3$c = {
14427
14434
  const _hoisted_4$c = { key: 2 };
14428
14435
  const _hoisted_5$7 = { class: "ux-text-wrap prefixed" };
14429
14436
  const _hoisted_6$7 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Label", -1));
14430
- const _hoisted_7$5 = ["onBlur", "onUpdate:modelValue"];
14431
- const _hoisted_8$2 = ["onBlur", "onUpdate:modelValue"];
14437
+ const _hoisted_7$5 = ["onBlur", "on:update:modelValue", "onUpdate:modelValue"];
14438
+ const _hoisted_8$2 = ["onBlur", "on:update:modelValue", "onUpdate:modelValue"];
14432
14439
  const _hoisted_9$2 = { class: "ux-text-wrap prefixed" };
14433
14440
  const _hoisted_10$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "ux-text-prefix" }, "Value", -1));
14434
14441
  const _hoisted_11$1 = ["onFocus", "onUpdate:modelValue"];
@@ -14468,7 +14475,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
14468
14475
  ref: "input",
14469
14476
  onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
14470
14477
  onBlur: ($event) => $options.titleBlurred(index2),
14471
- "onUpdate:modelValue": [($event) => $options.entryTitleChanged(index2), ($event) => _ctx.model[index2].title = $event]
14478
+ "on:update:modelValue": ($event) => $options.entryTitleChanged(index2),
14479
+ "onUpdate:modelValue": ($event) => _ctx.model[index2].title = $event
14472
14480
  }, null, 40, _hoisted_7$5)), [
14473
14481
  [
14474
14482
  vModelText,
@@ -14486,7 +14494,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
14486
14494
  ref: "input",
14487
14495
  onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
14488
14496
  onBlur: ($event) => $options.titleBlurred(index2),
14489
- "onUpdate:modelValue": [($event) => $options.entryTitleChanged(index2), ($event) => _ctx.model[index2].title = $event]
14497
+ "on:update:modelValue": ($event) => $options.entryTitleChanged(index2),
14498
+ "onUpdate:modelValue": ($event) => _ctx.model[index2].title = $event
14490
14499
  }, null, 40, _hoisted_8$2)), [
14491
14500
  [vModelText, _ctx.model[index2].title]
14492
14501
  ]) : createCommentVNode("", true)
@@ -14584,10 +14593,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
14584
14593
  ref: "input",
14585
14594
  onKeydown: _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
14586
14595
  onBlur: _cache[9] || (_cache[9] = ($event) => $options.titleBlurred(_ctx.index)),
14587
- "onUpdate:modelValue": [
14588
- _cache[10] || (_cache[10] = (...args) => $options.entryTitleChanged && $options.entryTitleChanged(...args)),
14589
- _cache[11] || (_cache[11] = ($event) => _ctx.model.title = $event)
14590
- ]
14596
+ "on:update:modelValue": _cache[10] || (_cache[10] = (...args) => $options.entryTitleChanged && $options.entryTitleChanged(...args)),
14597
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => _ctx.model.title = $event)
14591
14598
  }, null, 544)), [
14592
14599
  [
14593
14600
  vModelText,
@@ -14604,10 +14611,8 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
14604
14611
  ref: "input",
14605
14612
  onKeydown: _cache[13] || (_cache[13] = withKeys(withModifiers(($event) => _ctx.add(), ["stop", "prevent"]), ["enter"])),
14606
14613
  onBlur: _cache[14] || (_cache[14] = ($event) => $options.titleBlurred(_ctx.index)),
14607
- "onUpdate:modelValue": [
14608
- _cache[15] || (_cache[15] = (...args) => $options.entryTitleChanged && $options.entryTitleChanged(...args)),
14609
- _cache[16] || (_cache[16] = ($event) => _ctx.model.title = $event)
14610
- ]
14614
+ "on:update:modelValue": _cache[15] || (_cache[15] = (...args) => $options.entryTitleChanged && $options.entryTitleChanged(...args)),
14615
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.model.title = $event)
14611
14616
  }, null, 544)), [
14612
14617
  [vModelText, _ctx.model.title]
14613
14618
  ]) : createCommentVNode("", true)
@@ -19058,7 +19063,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
19058
19063
  "onClick:actions": $options.actionsClicked,
19059
19064
  "onSelect:item:toggle": $options.rowToggled,
19060
19065
  "onClick:item": $options.rowClicked
19061
- }, null, 8, ["cacheKey", "selection", "items", "onClick:actions", "onSelect:item:toggle", "onClick:item"])) : (openBlock(), createBlock(_component_native_table, {
19066
+ }, null, 40, ["cacheKey", "selection", "items", "onClick:actions", "onSelect:item:toggle", "onClick:item"])) : (openBlock(), createBlock(_component_native_table, {
19062
19067
  key: 1,
19063
19068
  sort: $data.sort,
19064
19069
  "onUpdate:sort": _cache[0] || (_cache[0] = ($event) => $data.sort = $event),