@qikdev/vue-ui 0.2.185 → 0.2.187

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 Vr, ref as Jt, toRefs as xa, onMounted as wa, onBeforeUnmount as Ho, watch as Er, computed as fr, openBlock as o, createElementBlock as d, renderSlot as H, createCommentVNode as _, normalizeClass as L, useSlots as qo, 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 z, createTextVNode as T, h as mr, mergeProps as Oi, toHandlers as Ar, normalizeStyle as He, resolveDynamicComponent as ft, vModelSelect as Tt, pushScopeId as qe, popScopeId as We, Teleport as Wo, vModelText as se, withKeys as ge, TransitionGroup as Go, nextTick as Sa, vModelDynamic as Hn } from "vue";
3
3
  import { EventDispatcher as Ko } from "@qikdev/sdk";
4
- const Yo = "0.2.185";
4
+ const Yo = "0.2.187";
5
5
  class Pt extends Error {
6
6
  }
7
7
  class Zo extends Pt {
@@ -5002,7 +5002,7 @@ function Fc(e, t, n, r, s, i) {
5002
5002
  H(e.$slots, "default", {}, void 0, !0)
5003
5003
  ]);
5004
5004
  }
5005
- const $c = /* @__PURE__ */ C(Dc, [["render", Fc], ["__scopeId", "data-v-a86e146d"]]);
5005
+ const $c = /* @__PURE__ */ C(Dc, [["render", Fc], ["__scopeId", "data-v-b89677dc"]]);
5006
5006
  const Nc = {}, Lc = { class: "panel-body" };
5007
5007
  function Pc(e, t, n, r, s, i) {
5008
5008
  return o(), d("div", Lc, [
@@ -5229,7 +5229,7 @@ const Bf = ["onClick"], zf = ["onClick"], Hf = {
5229
5229
  ], 2);
5230
5230
  };
5231
5231
  }
5232
- }, qf = /* @__PURE__ */ C(Hf, [["__scopeId", "data-v-66869b50"]]), Wf = {
5232
+ }, qf = /* @__PURE__ */ C(Hf, [["__scopeId", "data-v-0df63d4b"]]), Wf = {
5233
5233
  name: "tab",
5234
5234
  props: {
5235
5235
  heading: {
@@ -6173,7 +6173,7 @@ function Iy(e, t, n, r, s, i) {
6173
6173
  }, 8, ["modelValue"])
6174
6174
  ]);
6175
6175
  }
6176
- const Fy = /* @__PURE__ */ C(Ay, [["render", Iy], ["__scopeId", "data-v-75bd65c9"]]);
6176
+ const Fy = /* @__PURE__ */ C(Ay, [["render", Iy], ["__scopeId", "data-v-1cdab26c"]]);
6177
6177
  const $y = {
6178
6178
  mixins: [Ae],
6179
6179
  computed: {
@@ -6985,7 +6985,7 @@ function x_(e, t, n, r, s, i) {
6985
6985
  ], 512)
6986
6986
  ]);
6987
6987
  }
6988
- const w_ = /* @__PURE__ */ C(y_, [["render", x_], ["__scopeId", "data-v-ea2342d0"]]);
6988
+ const w_ = /* @__PURE__ */ C(y_, [["render", x_], ["__scopeId", "data-v-6804395e"]]);
6989
6989
  var tn = {}, S_ = {
6990
6990
  get exports() {
6991
6991
  return tn;
@@ -8011,7 +8011,7 @@ function pg(e, t, n, r, s, i) {
8011
8011
  })
8012
8012
  ], 2);
8013
8013
  }
8014
- const Ll = /* @__PURE__ */ C(hg, [["render", pg], ["__scopeId", "data-v-46a835a5"]]);
8014
+ const Ll = /* @__PURE__ */ C(hg, [["render", pg], ["__scopeId", "data-v-23f90447"]]);
8015
8015
  const yg = {
8016
8016
  // components:{
8017
8017
  // UxIcon,
@@ -8050,7 +8050,7 @@ function _g(e, t, n, r, s, i) {
8050
8050
  ])
8051
8051
  ], 2);
8052
8052
  }
8053
- const Pl = /* @__PURE__ */ C(yg, [["render", _g], ["__scopeId", "data-v-9663da46"]]);
8053
+ const Pl = /* @__PURE__ */ C(yg, [["render", _g], ["__scopeId", "data-v-51e4f653"]]);
8054
8054
  const gg = {
8055
8055
  props: {
8056
8056
  to: {
@@ -9059,7 +9059,7 @@ function tv(e, t, n, r, s, i) {
9059
9059
  _: 3
9060
9060
  }, 8, ["to", "href", "target", "disabled"]);
9061
9061
  }
9062
- const nv = /* @__PURE__ */ C(ev, [["render", tv], ["__scopeId", "data-v-a5af4698"]]);
9062
+ const nv = /* @__PURE__ */ C(ev, [["render", tv], ["__scopeId", "data-v-ebb9a7bc"]]);
9063
9063
  function gn(e) {
9064
9064
  var t = new Date(e);
9065
9065
  if (t instanceof Date && !isNaN(t))
@@ -10028,7 +10028,7 @@ function Nv(e, t, n, r, s, i) {
10028
10028
  })
10029
10029
  ]);
10030
10030
  }
10031
- const jl = /* @__PURE__ */ C($v, [["render", Nv], ["__scopeId", "data-v-fa516443"]]);
10031
+ const jl = /* @__PURE__ */ C($v, [["render", Nv], ["__scopeId", "data-v-2ce8bfb1"]]);
10032
10032
  /**!
10033
10033
  * Sortable 1.14.0
10034
10034
  * @author RubaXa <trash@rubaxa.org>
@@ -12325,7 +12325,7 @@ function J1(e, t, n, r, s, i) {
12325
12325
  ])) : _("", !0)
12326
12326
  ]);
12327
12327
  }
12328
- const X1 = /* @__PURE__ */ C(K1, [["render", J1], ["__scopeId", "data-v-8d5e6312"]]);
12328
+ const X1 = /* @__PURE__ */ C(K1, [["render", J1], ["__scopeId", "data-v-33a8fd08"]]);
12329
12329
  let sr;
12330
12330
  const Q1 = {
12331
12331
  components: {
@@ -12457,7 +12457,7 @@ function eb(e, t, n, r, s, i) {
12457
12457
  }, null, 8, ["click", "item"]))), 256))
12458
12458
  ], 2);
12459
12459
  }
12460
- const tb = /* @__PURE__ */ C(Q1, [["render", eb], ["__scopeId", "data-v-5a02acfe"]]);
12460
+ const tb = /* @__PURE__ */ C(Q1, [["render", eb], ["__scopeId", "data-v-89454c4d"]]);
12461
12461
  const nb = {
12462
12462
  components: {
12463
12463
  UxCircle: zr
@@ -14809,7 +14809,7 @@ const w0 = {
14809
14809
  NativeSelect: Ct,
14810
14810
  ContentSelect: oo
14811
14811
  }
14812
- }, S0 = (e) => (qe("data-v-dea7dbcc"), e = e(), We(), e), T0 = {
14812
+ }, S0 = (e) => (qe("data-v-1f7b70c4"), e = e(), We(), e), T0 = {
14813
14813
  key: 0,
14814
14814
  class: "filter-condition"
14815
14815
  }, O0 = { key: 0 }, C0 = { key: 1 }, V0 = { key: 2 }, E0 = { key: 3 }, A0 = { key: 4 }, M0 = { key: 5 }, D0 = { key: 6 }, I0 = { key: 7 }, F0 = { key: 8 }, $0 = { key: 9 }, N0 = { key: 10 }, L0 = /* @__PURE__ */ S0(() => /* @__PURE__ */ x("label", null, "Where:", -1));
@@ -15051,7 +15051,7 @@ function P0(e, t, n, r, s, i) {
15051
15051
  ], 64)) : _("", !0)
15052
15052
  ])) : _("", !0);
15053
15053
  }
15054
- const U0 = /* @__PURE__ */ C(w0, [["render", P0], ["__scopeId", "data-v-dea7dbcc"]]);
15054
+ const U0 = /* @__PURE__ */ C(w0, [["render", P0], ["__scopeId", "data-v-1f7b70c4"]]);
15055
15055
  function j0(e) {
15056
15056
  let t = [];
15057
15057
  if (t.push({
@@ -15368,7 +15368,7 @@ const q0 = {
15368
15368
  FilterCondition: U0,
15369
15369
  NativeSelect: Ct
15370
15370
  }
15371
- }, W0 = (e) => (qe("data-v-98575002"), e = e(), We(), e), G0 = {
15371
+ }, W0 = (e) => (qe("data-v-f372c803"), e = e(), We(), e), G0 = {
15372
15372
  key: 0,
15373
15373
  class: "filter-rule"
15374
15374
  }, K0 = { class: "top" }, Y0 = { class: "summary" }, Z0 = /* @__PURE__ */ W0(() => /* @__PURE__ */ x("span", { class: "line" }, null, -1)), J0 = { class: "operator" };
@@ -15468,7 +15468,7 @@ function X0(e, t, n, r, s, i) {
15468
15468
  }, 8, ["onClick"])
15469
15469
  ])) : _("", !0);
15470
15470
  }
15471
- const Q0 = /* @__PURE__ */ C(q0, [["render", X0], ["__scopeId", "data-v-98575002"]]);
15471
+ const Q0 = /* @__PURE__ */ C(q0, [["render", X0], ["__scopeId", "data-v-f372c803"]]);
15472
15472
  const ex = {
15473
15473
  components: {
15474
15474
  FilterRule: Q0,
@@ -15612,7 +15612,7 @@ function rx(e, t, n, r, s, i) {
15612
15612
  _: 1
15613
15613
  });
15614
15614
  }
15615
- const _o = /* @__PURE__ */ C(ex, [["render", rx], ["__scopeId", "data-v-ad924bf2"]]);
15615
+ const _o = /* @__PURE__ */ C(ex, [["render", rx], ["__scopeId", "data-v-fcb41aed"]]);
15616
15616
  const sx = {
15617
15617
  mixins: [ne],
15618
15618
  components: {
@@ -16003,7 +16003,7 @@ function Cx(e, t, n, r, s, i) {
16003
16003
  x("output", Ox, null, 512)
16004
16004
  ]);
16005
16005
  }
16006
- const Vx = /* @__PURE__ */ C(wx, [["render", Cx], ["__scopeId", "data-v-91a821a5"]]);
16006
+ const Vx = /* @__PURE__ */ C(wx, [["render", Cx], ["__scopeId", "data-v-ad12314c"]]);
16007
16007
  const Ex = {
16008
16008
  components: {
16009
16009
  RangeSlider: Vx
@@ -19600,7 +19600,7 @@ function jO(e, t, n, r, s, i) {
19600
19600
  })
19601
19601
  ]);
19602
19602
  }
19603
- const RO = /* @__PURE__ */ C($O, [["render", jO], ["__scopeId", "data-v-7377ca22"]]), BO = {
19603
+ const RO = /* @__PURE__ */ C($O, [["render", jO], ["__scopeId", "data-v-415b9a32"]]), BO = {
19604
19604
  props: {
19605
19605
  modelValue: {
19606
19606
  type: Object
@@ -21413,7 +21413,7 @@ function wV(e, t, n, r, s, i) {
21413
21413
  ])
21414
21414
  ]);
21415
21415
  }
21416
- const Yr = /* @__PURE__ */ C(bV, [["render", wV], ["__scopeId", "data-v-9628644c"]]);
21416
+ const Yr = /* @__PURE__ */ C(bV, [["render", wV], ["__scopeId", "data-v-d4e9271a"]]);
21417
21417
  function SV(e) {
21418
21418
  const t = /<\/?([a-zA-Z0-9]+)[^>]*>/g, n = [];
21419
21419
  let r;
@@ -23200,7 +23200,7 @@ const YE = {
23200
23200
  actualOptions: this.options
23201
23201
  };
23202
23202
  }
23203
- }, Lo = (e) => (qe("data-v-23a934dc"), e = e(), We(), e), ZE = { class: "footer" }, JE = /* @__PURE__ */ Lo(() => /* @__PURE__ */ x("p", null, null, -1)), XE = { key: 0 }, QE = /* @__PURE__ */ Lo(() => /* @__PURE__ */ x("p", null, null, -1));
23203
+ }, Lo = (e) => (qe("data-v-5c346861"), e = e(), We(), e), ZE = { class: "footer" }, JE = /* @__PURE__ */ Lo(() => /* @__PURE__ */ x("p", null, null, -1)), XE = { key: 0 }, QE = /* @__PURE__ */ Lo(() => /* @__PURE__ */ x("p", null, null, -1));
23204
23204
  function eA(e, t, n, r, s, i) {
23205
23205
  const a = y("ux-icon"), l = 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"), O = y("pager"), j = y("flex-footer"), M = y("flex-row"), Y = y("search"), ie = y("ux-field"), oe = y("filter-builder"), ue = y("flex-body"), q = y("spinner");
23206
23206
  return i.actualDefinition ? (o(), k(f, {
@@ -23421,7 +23421,7 @@ function eA(e, t, n, r, s, i) {
23421
23421
  _: 3
23422
23422
  })) : _("", !0);
23423
23423
  }
23424
- const tA = /* @__PURE__ */ C(YE, [["render", eA], ["__scopeId", "data-v-23a934dc"]]);
23424
+ const tA = /* @__PURE__ */ C(YE, [["render", eA], ["__scopeId", "data-v-5c346861"]]);
23425
23425
  const nA = {
23426
23426
  props: {
23427
23427
  modal: {
@@ -23472,7 +23472,7 @@ function rA(e, t, n, r, s, i) {
23472
23472
  ], 4)
23473
23473
  ]);
23474
23474
  }
23475
- const sA = /* @__PURE__ */ C(nA, [["render", rA], ["__scopeId", "data-v-3f68f622"]]);
23475
+ const sA = /* @__PURE__ */ C(nA, [["render", rA], ["__scopeId", "data-v-a41c6963"]]);
23476
23476
  const aA = {
23477
23477
  mixins: [cn],
23478
23478
  computed: {
@@ -23543,7 +23543,7 @@ function dA(e, t, n, r, s, i) {
23543
23543
  _: 1
23544
23544
  });
23545
23545
  }
23546
- const cA = /* @__PURE__ */ C(aA, [["render", dA], ["__scopeId", "data-v-dcd25d42"]]);
23546
+ const cA = /* @__PURE__ */ C(aA, [["render", dA], ["__scopeId", "data-v-be545ba8"]]);
23547
23547
  const fA = {
23548
23548
  data() {
23549
23549
  return {
@@ -23670,7 +23670,7 @@ function xA(e, t, n, r, s, i) {
23670
23670
  _: 1
23671
23671
  });
23672
23672
  }
23673
- const wA = /* @__PURE__ */ C(fA, [["render", xA], ["__scopeId", "data-v-05472a27"]]);
23673
+ const wA = /* @__PURE__ */ C(fA, [["render", xA], ["__scopeId", "data-v-f99d3671"]]);
23674
23674
  const SA = {
23675
23675
  mixins: [cn],
23676
23676
  data() {
@@ -23771,7 +23771,7 @@ function VA(e, t, n, r, s, i) {
23771
23771
  })
23772
23772
  ], 32);
23773
23773
  }
23774
- const EA = /* @__PURE__ */ C(SA, [["render", VA], ["__scopeId", "data-v-8b5c1faf"]]);
23774
+ const EA = /* @__PURE__ */ C(SA, [["render", VA], ["__scopeId", "data-v-99b9c871"]]);
23775
23775
  const AA = {
23776
23776
  components: {
23777
23777
  ContentBrowser: tA,
@@ -23999,7 +23999,7 @@ function FA(e, t, n, r, s, i) {
23999
23999
  _: 1
24000
24000
  });
24001
24001
  }
24002
- const $A = /* @__PURE__ */ C(AA, [["render", FA], ["__scopeId", "data-v-6a29c685"]]);
24002
+ const $A = /* @__PURE__ */ C(AA, [["render", FA], ["__scopeId", "data-v-c9f9fa0a"]]);
24003
24003
  const NA = {
24004
24004
  components: {
24005
24005
  ScopeSelect: tb
@@ -24056,7 +24056,7 @@ const NA = {
24056
24056
  this.close(this.model);
24057
24057
  }
24058
24058
  }
24059
- }, LA = (e) => (qe("data-v-e905a558"), e = e(), We(), e), PA = { class: "header" }, UA = /* @__PURE__ */ LA(() => /* @__PURE__ */ x("h3", null, "Select Scopes", -1)), jA = { class: "padder" };
24059
+ }, LA = (e) => (qe("data-v-fca1794b"), e = e(), We(), e), PA = { class: "header" }, UA = /* @__PURE__ */ LA(() => /* @__PURE__ */ x("h3", null, "Select Scopes", -1)), jA = { class: "padder" };
24060
24060
  function RA(e, t, n, r, s, i) {
24061
24061
  const a = y("flex-cell"), l = y("ux-button"), u = y("flex-row"), f = y("flex-header"), c = y("scope-select"), p = y("flex-body"), g = y("flex-column");
24062
24062
  return o(), k(g, { class: "wrapper" }, {
@@ -24113,7 +24113,7 @@ function RA(e, t, n, r, s, i) {
24113
24113
  _: 1
24114
24114
  });
24115
24115
  }
24116
- const BA = /* @__PURE__ */ C(NA, [["render", RA], ["__scopeId", "data-v-e905a558"]]);
24116
+ const BA = /* @__PURE__ */ C(NA, [["render", RA], ["__scopeId", "data-v-fca1794b"]]);
24117
24117
  function zA(e, t) {
24118
24118
  return t.reduce((n, r) => Math.abs(r - e) < Math.abs(n - e) ? r : n);
24119
24119
  }
@@ -24259,8 +24259,12 @@ const HA = `qik vue ui ${Yo}`, ka = {
24259
24259
  component: $A,
24260
24260
  options: r
24261
24261
  });
24262
- }, t.selectScopes = function(n) {
24263
- return n = n || {}, n.model = n.model || [], t.modal({
24262
+ }, t.selectScopes = async function(n) {
24263
+ n = n || {}, n.model = n.model || [];
24264
+ const { session: r } = await t.auth.getCurrentUser(), { type: s, action: i } = n;
24265
+ let a = n.definition || n.type;
24266
+ const l = t.access.actionableScopes(r, i, a, s);
24267
+ return l.length === 1 ? Promise.resolve(l) : t.modal({
24264
24268
  component: BA,
24265
24269
  options: n
24266
24270
  });