@qikdev/vue-ui 0.2.205 → 0.2.206

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
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import { defineComponent as Cr, ref as Jt, toRefs as wl, onMounted as Sl, onBeforeUnmount as qo, watch as Er, computed as fr, openBlock as o, createElementBlock as d, renderSlot as H, createCommentVNode as _, normalizeClass as N, useSlots as Go, reactive as Ti, provide as Li, resolveComponent as y, Fragment as S, unref as zn, createBlock as k, withCtx as h, createVNode as m, renderList as F, toDisplayString as v, withDirectives as K, vShow as di, createElementVNode as x, withModifiers as B, createTextVNode as T, h as mr, mergeProps as Oi, toHandlers as Ar, normalizeStyle as He, resolveDynamicComponent as ft, vModelSelect as Ot, pushScopeId as Ye, popScopeId as Ze, Teleport as Wo, vModelText as se, withKeys as _e, TransitionGroup as Ko, nextTick as Tl, vModelDynamic as Hn } from "vue";
3
3
  import { EventDispatcher as Yo } from "@qikdev/sdk";
4
- const Zo = "0.2.205";
4
+ const Zo = "0.2.206";
5
5
  class Pt extends Error {
6
6
  }
7
7
  class Jo extends Pt {
@@ -23095,15 +23095,15 @@ const tA = {
23095
23095
  var e = this, t = e.$sdk.global.cacheKeys[e.type];
23096
23096
  cr != t && (cr = t, e.dataSource = await e.load()), dr && (dr = !1, e.dataSource = await e.load());
23097
23097
  },
23098
+ mounted() {
23099
+ this.$sdk.addEventListener("glossary", this.reloadGlossary);
23100
+ },
23101
+ beforeUnmount() {
23102
+ this.$sdk.removeEventListener("glossary", this.reloadGlossary);
23103
+ },
23098
23104
  async created() {
23099
23105
  var e = this;
23100
- await new Promise(async function(t, n) {
23101
- e.glossary = await e.$sdk.content.glossary({ hash: !0 });
23102
- var r = e.glossary[e.type];
23103
- if (e.definition = r, !r)
23104
- return n();
23105
- t();
23106
- }), e.sort = e.defaultSort;
23106
+ await e.reloadGlossary(), e.sort = e.defaultSort;
23107
23107
  },
23108
23108
  watch: {
23109
23109
  keywords(e) {
@@ -23151,6 +23151,10 @@ const tA = {
23151
23151
  }
23152
23152
  },
23153
23153
  computed: {
23154
+ definition() {
23155
+ const e = this;
23156
+ return e.glossary ? e.glossary[e.type] : null;
23157
+ },
23154
23158
  profileDetailTypes() {
23155
23159
  const e = this;
23156
23160
  return e.glossary ? Object.entries(e.glossary).reduce(function(n, [r, s]) {
@@ -23159,7 +23163,7 @@ const tA = {
23159
23163
  },
23160
23164
  actualDefinition() {
23161
23165
  var e;
23162
- return this.definition || ((e = this.options) == null ? void 0 : e.definition);
23166
+ return ((e = this.options) == null ? void 0 : e.definition) || this.definition;
23163
23167
  },
23164
23168
  showFilterSidebar() {
23165
23169
  return this.showFilters;
@@ -23472,6 +23476,9 @@ const tA = {
23472
23476
  }
23473
23477
  },
23474
23478
  methods: {
23479
+ async reloadGlossary() {
23480
+ this.glossary = await this.$sdk.content.glossary({ hash: !0 });
23481
+ },
23475
23482
  debounceReload: Nn(function() {
23476
23483
  this.reload();
23477
23484
  }),
@@ -23557,7 +23564,6 @@ const tA = {
23557
23564
  data() {
23558
23565
  var e = this.selectionManager;
23559
23566
  return e || (e = new dE({ minimum: this.minimum, maximum: this.maximum })), this.modelValue && e.setSelection(this.modelValue), {
23560
- definition: null,
23561
23567
  manager: e,
23562
23568
  glossary: null,
23563
23569
  loading: !0,
@@ -23579,7 +23585,7 @@ const tA = {
23579
23585
  actualOptions: this.options
23580
23586
  };
23581
23587
  }
23582
- }, Po = (e) => (Ye("data-v-5de84b21"), e = e(), Ze(), e), nA = { class: "footer" }, iA = /* @__PURE__ */ Po(() => /* @__PURE__ */ x("p", null, null, -1)), rA = { key: 0 }, sA = /* @__PURE__ */ Po(() => /* @__PURE__ */ x("p", null, null, -1));
23588
+ }, Po = (e) => (Ye("data-v-01686597"), e = e(), Ze(), e), nA = { class: "footer" }, iA = /* @__PURE__ */ Po(() => /* @__PURE__ */ x("p", null, null, -1)), rA = { key: 0 }, sA = /* @__PURE__ */ Po(() => /* @__PURE__ */ x("p", null, null, -1));
23583
23589
  function lA(e, t, n, r, s, i) {
23584
23590
  const l = y("ux-icon"), a = y("ux-panel-body"), u = y("ux-panel"), f = y("flex-column"), c = y("ux-button"), p = y("ux-list-item"), g = y("ux-list"), b = y("ux-menu"), w = y("native-table"), C = y("pager"), U = y("flex-footer"), z = y("flex-row"), D = y("search"), ee = y("ux-field"), ie = y("filter-builder"), oe = y("flex-body"), q = y("spinner");
23585
23591
  return i.actualDefinition ? (o(), k(f, {
@@ -23800,7 +23806,7 @@ function lA(e, t, n, r, s, i) {
23800
23806
  _: 3
23801
23807
  })) : _("", !0);
23802
23808
  }
23803
- const aA = /* @__PURE__ */ V(tA, [["render", lA], ["__scopeId", "data-v-5de84b21"]]);
23809
+ const aA = /* @__PURE__ */ V(tA, [["render", lA], ["__scopeId", "data-v-01686597"]]);
23804
23810
  const oA = {
23805
23811
  props: {
23806
23812
  modal: {