@qikdev/vue-ui 0.2.285 → 0.2.287

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
@@ -47,7 +47,7 @@ import {
47
47
  vModelDynamic as Zn,
48
48
  } from "vue";
49
49
  import { EventDispatcher as jl } from "@qikdev/sdk";
50
- const fu = "0.2.285";
50
+ const fu = "0.2.287";
51
51
  class qt extends Error {}
52
52
  class mu extends qt {
53
53
  constructor(t) {
@@ -9146,10 +9146,14 @@ const te = {
9146
9146
  computed: {
9147
9147
  asyncOptionsURL() {
9148
9148
  const e = this;
9149
- if (e.field.asyncOptions) return e.field.asyncOptions;
9149
+ if (
9150
+ e.field.asyncOptions &&
9151
+ String(e.field.asyncOptions || "").trim().length
9152
+ )
9153
+ return e.field.asyncOptions;
9150
9154
  if (e.field.dynamicOptions) {
9151
9155
  const t = e.$sdk.utils.id(e.field.dynamicOptions);
9152
- return e.$sdk.api.generateEndpointURL(`/smartlist/${t}`);
9156
+ if (t) return e.$sdk.api.generateEndpointURL(`/smartlist/${t}/select`);
9153
9157
  }
9154
9158
  },
9155
9159
  hasAsyncOptions() {
@@ -9714,7 +9718,7 @@ const Qg = {
9714
9718
  },
9715
9719
  },
9716
9720
  },
9717
- e_ = (e) => (Ze("data-v-efa84717"), (e = e()), Je(), e),
9721
+ e_ = (e) => (Ze("data-v-4d64a70a"), (e = e()), Je(), e),
9718
9722
  t_ = {
9719
9723
  key: 0,
9720
9724
  class: "ux-field-title",
@@ -10109,7 +10113,7 @@ function v_(e, t, n, r, s, i) {
10109
10113
  }
10110
10114
  const gt = /* @__PURE__ */ V(Qg, [
10111
10115
  ["render", v_],
10112
- ["__scopeId", "data-v-efa84717"],
10116
+ ["__scopeId", "data-v-4d64a70a"],
10113
10117
  ]);
10114
10118
  const b_ = {
10115
10119
  props: {
@@ -10434,7 +10438,7 @@ function k_(e, t, n, r, s, i) {
10434
10438
  )
10435
10439
  );
10436
10440
  }
10437
- const QM = /* @__PURE__ */ V(b_, [
10441
+ const eI = /* @__PURE__ */ V(b_, [
10438
10442
  ["render", k_],
10439
10443
  ["__scopeId", "data-v-6cb45aad"],
10440
10444
  ]);
@@ -39250,16 +39254,17 @@ const aM = {
39250
39254
  cM = { class: "options-modal-header" },
39251
39255
  fM = { class: "padder" },
39252
39256
  mM = ["onClick"],
39253
- hM = {
39257
+ hM = ["innerHTML"],
39258
+ pM = {
39254
39259
  key: 0,
39255
39260
  class: "title",
39256
39261
  },
39257
- pM = {
39262
+ yM = {
39258
39263
  key: 1,
39259
39264
  class: "description",
39260
39265
  },
39261
- yM = { class: "padder" };
39262
- function gM(e, t, n, r, s, i) {
39266
+ gM = { class: "padder" };
39267
+ function _M(e, t, n, r, s, i) {
39263
39268
  const l = y("flex-header"),
39264
39269
  o = y("search"),
39265
39270
  u = y("flex-cell"),
@@ -39358,17 +39363,43 @@ function gM(e, t, n, r, s, i) {
39358
39363
  },
39359
39364
  {
39360
39365
  default: h(() => [
39366
+ O.icon
39367
+ ? (a(),
39368
+ k(
39369
+ u,
39370
+ {
39371
+ key: 0,
39372
+ shrink: "",
39373
+ },
39374
+ {
39375
+ default: h(() => [
39376
+ x(
39377
+ "div",
39378
+ {
39379
+ class: "option-icon",
39380
+ innerHTML: O.icon,
39381
+ },
39382
+ null,
39383
+ 8,
39384
+ hM,
39385
+ ),
39386
+ ]),
39387
+ _: 2,
39388
+ },
39389
+ 1024,
39390
+ ))
39391
+ : g("", !0),
39361
39392
  c(
39362
39393
  u,
39363
39394
  null,
39364
39395
  {
39365
39396
  default: h(() => [
39366
39397
  O.title
39367
- ? (a(), d("div", hM, b(O.title), 1))
39398
+ ? (a(), d("div", pM, b(O.title), 1))
39368
39399
  : g("", !0),
39369
39400
  O.description
39370
39401
  ? (a(),
39371
- d("div", pM, b(O.description), 1))
39402
+ d("div", yM, b(O.description), 1))
39372
39403
  : g("", !0),
39373
39404
  ]),
39374
39405
  _: 2,
@@ -39413,7 +39444,7 @@ function gM(e, t, n, r, s, i) {
39413
39444
  { class: "options-modal-footer" },
39414
39445
  {
39415
39446
  default: h(() => [
39416
- x("div", yM, [
39447
+ x("div", gM, [
39417
39448
  c(
39418
39449
  _,
39419
39450
  {
@@ -39438,11 +39469,11 @@ function gM(e, t, n, r, s, i) {
39438
39469
  )
39439
39470
  );
39440
39471
  }
39441
- const _M = /* @__PURE__ */ V(aM, [
39442
- ["render", gM],
39443
- ["__scopeId", "data-v-60de0d31"],
39472
+ const vM = /* @__PURE__ */ V(aM, [
39473
+ ["render", _M],
39474
+ ["__scopeId", "data-v-9cb46497"],
39444
39475
  ]);
39445
- const vM = {
39476
+ const bM = {
39446
39477
  mixins: [_n],
39447
39478
  data() {
39448
39479
  return {
@@ -39469,10 +39500,10 @@ const vM = {
39469
39500
  this.options.model && (this.model = this.options.model);
39470
39501
  },
39471
39502
  },
39472
- bM = { class: "padder" },
39473
- kM = { key: 0 },
39474
- xM = { class: "padder" };
39475
- function wM(e, t, n, r, s, i) {
39503
+ kM = { class: "padder" },
39504
+ xM = { key: 0 },
39505
+ wM = { class: "padder" };
39506
+ function SM(e, t, n, r, s, i) {
39476
39507
  const l = y("ux-form"),
39477
39508
  o = y("flex-body"),
39478
39509
  u = y("ux-button"),
@@ -39496,10 +39527,10 @@ function wM(e, t, n, r, s, i) {
39496
39527
  default: h(() => [
39497
39528
  c(o, null, {
39498
39529
  default: h(() => [
39499
- x("div", bM, [
39530
+ x("div", kM, [
39500
39531
  x("h5", null, b(e.options.title), 1),
39501
39532
  e.options.description
39502
- ? (a(), d("p", kM, b(e.options.description), 1))
39533
+ ? (a(), d("p", xM, b(e.options.description), 1))
39503
39534
  : g("", !0),
39504
39535
  c(
39505
39536
  l,
@@ -39524,7 +39555,7 @@ function wM(e, t, n, r, s, i) {
39524
39555
  { class: "border-top" },
39525
39556
  {
39526
39557
  default: h(() => [
39527
- x("div", xM, [
39558
+ x("div", wM, [
39528
39559
  c(p, null, {
39529
39560
  default: h(() => [
39530
39561
  c(
@@ -39591,11 +39622,11 @@ function wM(e, t, n, r, s, i) {
39591
39622
  )
39592
39623
  );
39593
39624
  }
39594
- const SM = /* @__PURE__ */ V(vM, [
39595
- ["render", wM],
39625
+ const TM = /* @__PURE__ */ V(bM, [
39626
+ ["render", SM],
39596
39627
  ["__scopeId", "data-v-99b9c871"],
39597
39628
  ]);
39598
- const TM = {
39629
+ const OM = {
39599
39630
  components: {
39600
39631
  ContentBrowser: JF,
39601
39632
  Search: Bi,
@@ -39692,10 +39723,10 @@ const TM = {
39692
39723
  },
39693
39724
  },
39694
39725
  },
39695
- OM = { class: "header" },
39696
- VM = { class: "font-muted font-sm" },
39697
- CM = { class: "rolodex" };
39698
- function EM(e, t, n, r, s, i) {
39726
+ VM = { class: "header" },
39727
+ CM = { class: "font-muted font-sm" },
39728
+ EM = { class: "rolodex" };
39729
+ function DM(e, t, n, r, s, i) {
39699
39730
  const l = y("flex-column"),
39700
39731
  o = y("flex-cell"),
39701
39732
  u = y("search"),
@@ -39734,7 +39765,7 @@ function EM(e, t, n, r, s, i) {
39734
39765
  [
39735
39766
  c(_, null, {
39736
39767
  default: h(() => [
39737
- x("div", OM, [
39768
+ x("div", VM, [
39738
39769
  c(
39739
39770
  p,
39740
39771
  {
@@ -39772,7 +39803,7 @@ function EM(e, t, n, r, s, i) {
39772
39803
  default: h(() => [
39773
39804
  x(
39774
39805
  "span",
39775
- VM,
39806
+ CM,
39776
39807
  "(" +
39777
39808
  b(s.model.length) +
39778
39809
  " of " +
@@ -39917,7 +39948,7 @@ function EM(e, t, n, r, s, i) {
39917
39948
  { key: 0 },
39918
39949
  {
39919
39950
  default: h(() => [
39920
- x("div", CM, [
39951
+ x("div", EM, [
39921
39952
  c(
39922
39953
  f,
39923
39954
  {
@@ -40005,11 +40036,11 @@ function EM(e, t, n, r, s, i) {
40005
40036
  )
40006
40037
  );
40007
40038
  }
40008
- const DM = /* @__PURE__ */ V(TM, [
40009
- ["render", EM],
40039
+ const FM = /* @__PURE__ */ V(OM, [
40040
+ ["render", DM],
40010
40041
  ["__scopeId", "data-v-651362cd"],
40011
40042
  ]);
40012
- const FM = {
40043
+ const MM = {
40013
40044
  components: {
40014
40045
  ScopeSelect: J1,
40015
40046
  // Search,
@@ -40069,13 +40100,13 @@ const FM = {
40069
40100
  },
40070
40101
  },
40071
40102
  },
40072
- MM = (e) => (Ze("data-v-0952db70"), (e = e()), Je(), e),
40073
- IM = { class: "header" },
40074
- $M = /* @__PURE__ */ MM(() =>
40103
+ IM = (e) => (Ze("data-v-0952db70"), (e = e()), Je(), e),
40104
+ $M = { class: "header" },
40105
+ AM = /* @__PURE__ */ IM(() =>
40075
40106
  /* @__PURE__ */ x("h3", null, "Select Scopes", -1),
40076
40107
  ),
40077
- AM = { class: "padder" };
40078
- function LM(e, t, n, r, s, i) {
40108
+ LM = { class: "padder" };
40109
+ function NM(e, t, n, r, s, i) {
40079
40110
  const l = y("flex-cell"),
40080
40111
  o = y("ux-button"),
40081
40112
  u = y("flex-row"),
@@ -40092,7 +40123,7 @@ function LM(e, t, n, r, s, i) {
40092
40123
  default: h(() => [
40093
40124
  c(m, null, {
40094
40125
  default: h(() => [
40095
- x("div", IM, [
40126
+ x("div", $M, [
40096
40127
  c(
40097
40128
  u,
40098
40129
  {
@@ -40102,7 +40133,7 @@ function LM(e, t, n, r, s, i) {
40102
40133
  {
40103
40134
  default: h(() => [
40104
40135
  c(l, null, {
40105
- default: h(() => [$M]),
40136
+ default: h(() => [AM]),
40106
40137
  _: 1,
40107
40138
  }),
40108
40139
  c(
@@ -40140,7 +40171,7 @@ function LM(e, t, n, r, s, i) {
40140
40171
  { class: "scroll-body" },
40141
40172
  {
40142
40173
  default: h(() => [
40143
- x("div", AM, [
40174
+ x("div", LM, [
40144
40175
  c(
40145
40176
  f,
40146
40177
  {
@@ -40166,20 +40197,20 @@ function LM(e, t, n, r, s, i) {
40166
40197
  )
40167
40198
  );
40168
40199
  }
40169
- const NM = /* @__PURE__ */ V(FM, [
40170
- ["render", LM],
40200
+ const UM = /* @__PURE__ */ V(MM, [
40201
+ ["render", NM],
40171
40202
  ["__scopeId", "data-v-0952db70"],
40172
40203
  ]),
40173
40204
  ot = "uploading",
40174
40205
  ai = "complete",
40175
40206
  Nt = "ready",
40176
- UM = "error",
40177
- PM = "upload.cancel",
40178
- jM = "upload.start",
40207
+ PM = "error",
40208
+ jM = "upload.cancel",
40209
+ RM = "upload.start",
40179
40210
  Al = "upload.complete",
40180
- RM = "upload.progress",
40181
- BM = "upload.error",
40182
- zM = {
40211
+ BM = "upload.progress",
40212
+ zM = "upload.error",
40213
+ qM = {
40183
40214
  props: {
40184
40215
  accept: {
40185
40216
  type: String,
@@ -40327,7 +40358,7 @@ const NM = /* @__PURE__ */ V(FM, [
40327
40358
  (e.bytesLoaded = 0),
40328
40359
  (e.percent = 0),
40329
40360
  (e.state = Nt),
40330
- e.dispatch(PM));
40361
+ e.dispatch(jM));
40331
40362
  },
40332
40363
  removeFile(e) {
40333
40364
  var t = this.queue.indexOf(e);
@@ -40354,7 +40385,7 @@ const NM = /* @__PURE__ */ V(FM, [
40354
40385
  case ot:
40355
40386
  return;
40356
40387
  }
40357
- (e.state = ot), e.dispatch(jM);
40388
+ (e.state = ot), e.dispatch(RM);
40358
40389
  {
40359
40390
  const f = e.size,
40360
40391
  p = e.name,
@@ -40393,7 +40424,7 @@ const NM = /* @__PURE__ */ V(FM, [
40393
40424
  (e.percent = p),
40394
40425
  (e.bytesLoaded = f.loaded),
40395
40426
  (e.bytesTotal = f.total),
40396
- e.dispatch(RM, f);
40427
+ e.dispatch(BM, f);
40397
40428
  },
40398
40429
  };
40399
40430
  const o = t.$sdk.api.CancelToken.source();
@@ -40413,7 +40444,7 @@ const NM = /* @__PURE__ */ V(FM, [
40413
40444
  var p = t.$sdk.api.wasCancelled(f);
40414
40445
  p
40415
40446
  ? (e.state = Nt)
40416
- : ((e.state = UM), e.dispatch(BM, f), t.uploadNextFile());
40447
+ : ((e.state = PM), e.dispatch(zM, f), t.uploadNextFile());
40417
40448
  });
40418
40449
  },
40419
40450
  toggle() {
@@ -40458,13 +40489,13 @@ const NM = /* @__PURE__ */ V(FM, [
40458
40489
  },
40459
40490
  },
40460
40491
  },
40461
- qM = { class: "uploader" },
40462
- HM = ["accept"],
40463
- WM = ["accept"];
40464
- function GM(e, t, n, r, s, i) {
40492
+ HM = { class: "uploader" },
40493
+ WM = ["accept"],
40494
+ GM = ["accept"];
40495
+ function YM(e, t, n, r, s, i) {
40465
40496
  return (
40466
40497
  a(),
40467
- d("div", qM, [
40498
+ d("div", HM, [
40468
40499
  x(
40469
40500
  "input",
40470
40501
  {
@@ -40477,7 +40508,7 @@ function GM(e, t, n, r, s, i) {
40477
40508
  },
40478
40509
  null,
40479
40510
  40,
40480
- HM,
40511
+ WM,
40481
40512
  ),
40482
40513
  x(
40483
40514
  "input",
@@ -40489,7 +40520,7 @@ function GM(e, t, n, r, s, i) {
40489
40520
  },
40490
40521
  null,
40491
40522
  8,
40492
- WM,
40523
+ GM,
40493
40524
  ),
40494
40525
  H(e.$slots, "default", {
40495
40526
  queue: s.queue,
@@ -40503,11 +40534,11 @@ function GM(e, t, n, r, s, i) {
40503
40534
  ])
40504
40535
  );
40505
40536
  }
40506
- const eI = /* @__PURE__ */ V(zM, [["render", GM]]);
40507
- function YM(e, t) {
40537
+ const tI = /* @__PURE__ */ V(qM, [["render", YM]]);
40538
+ function KM(e, t) {
40508
40539
  return t.reduce((n, r) => (Math.abs(r - e) < Math.abs(n - e) ? r : n));
40509
40540
  }
40510
- function tI() {
40541
+ function nI() {
40511
40542
  var e = Rt({
40512
40543
  mounted: !1,
40513
40544
  screen: {
@@ -40627,7 +40658,7 @@ function tI() {
40627
40658
  (i.lgAndUp = !0)),
40628
40659
  (e.point = l),
40629
40660
  (e.breakpoint = i);
40630
- const u = YM(r, [320, 768, 1200, 1800, 2e3]),
40661
+ const u = KM(r, [320, 768, 1200, 1800, 2e3]),
40631
40662
  m = u * 1,
40632
40663
  f = u * 1.5,
40633
40664
  p = u * 2;
@@ -40656,7 +40687,7 @@ function tI() {
40656
40687
  e
40657
40688
  );
40658
40689
  }
40659
- const KM = `qik vue ui ${fu}`,
40690
+ const ZM = `qik vue ui ${fu}`,
40660
40691
  Ll = {
40661
40692
  FlexColumn: Oc,
40662
40693
  FlexBody: Dc,
@@ -40701,10 +40732,10 @@ const KM = `qik vue ui ${fu}`,
40701
40732
  UxModal: tM,
40702
40733
  Compile: Ja,
40703
40734
  },
40704
- nI = {
40735
+ iI = {
40705
40736
  install(e, t) {
40706
40737
  var n;
40707
- console.log(KM),
40738
+ console.log(ZM),
40708
40739
  (t.date = oe),
40709
40740
  (t.global = t.global || Rt({})),
40710
40741
  ((n = t.global) != null && n.cacheKeys) ||
@@ -40724,7 +40755,7 @@ const KM = `qik vue ui ${fu}`,
40724
40755
  (s.model = s.model || {}),
40725
40756
  (s.fields = r),
40726
40757
  t.modal({
40727
- component: SM,
40758
+ component: TM,
40728
40759
  options: s,
40729
40760
  })
40730
40761
  );
@@ -40735,7 +40766,7 @@ const KM = `qik vue ui ${fu}`,
40735
40766
  (s.type = r),
40736
40767
  (s.model = s.model || []),
40737
40768
  t.modal({
40738
- component: DM,
40769
+ component: FM,
40739
40770
  options: s,
40740
40771
  })
40741
40772
  );
@@ -40755,7 +40786,7 @@ const KM = `qik vue ui ${fu}`,
40755
40786
  );
40756
40787
  }
40757
40788
  return t.modal({
40758
- component: NM,
40789
+ component: UM,
40759
40790
  options: r,
40760
40791
  });
40761
40792
  }),
@@ -40773,7 +40804,7 @@ const KM = `qik vue ui ${fu}`,
40773
40804
  return (
40774
40805
  (l = l || {}),
40775
40806
  t.modal({
40776
- component: _M,
40807
+ component: vM,
40777
40808
  options: {
40778
40809
  title: s,
40779
40810
  description: i,
@@ -40801,7 +40832,7 @@ export {
40801
40832
  v2 as CodeEditor,
40802
40833
  JF as ContentBrowser,
40803
40834
  Pv as DateRange,
40804
- tI as Device,
40835
+ nI as Device,
40805
40836
  tS as FileDrop,
40806
40837
  Dc as FlexBody,
40807
40838
  Rc as FlexCell,
@@ -40814,13 +40845,13 @@ export {
40814
40845
  ia as Item,
40815
40846
  _n as ModalMixin,
40816
40847
  gt as NativeSelect,
40817
- QM as Pager,
40848
+ eI as Pager,
40818
40849
  Xc as Panel,
40819
40850
  nf as PanelBody,
40820
40851
  cf as PanelFooter,
40821
40852
  of as PanelHeader,
40822
40853
  el as ProgressBar,
40823
- nI as QikUI,
40854
+ iI as QikUI,
40824
40855
  Pg as RememberScrollMixin,
40825
40856
  J1 as ScopeSelect,
40826
40857
  tk as ScopeSelectButton,
@@ -40853,12 +40884,12 @@ export {
40853
40884
  Gg as UXTable,
40854
40885
  am as UXTabset,
40855
40886
  bv as UXVideo,
40856
- eI as UploadService,
40887
+ tI as UploadService,
40857
40888
  oM as UxConfirmModal,
40858
- DM as UxContentModal,
40889
+ FM as UxContentModal,
40859
40890
  tM as UxModal,
40860
- _M as UxOptionsModal,
40861
- SM as UxPromptModal,
40862
- NM as UxScopeModal,
40891
+ vM as UxOptionsModal,
40892
+ TM as UxPromptModal,
40893
+ UM as UxScopeModal,
40863
40894
  };
40864
40895
  //# sourceMappingURL=lib.es.js.map