@qikdev/vue-ui 0.2.50 → 0.2.51

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, normalizeClass, Fragment, createVNode, withCtx, renderList, toDisplayString, withDirectives, createBlock, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, h, mergeProps, toHandlers, vModelSelect, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelText, withKeys, TransitionGroup, defineComponent, nextTick, vModelDynamic, reactive, watch } from "vue";
34
34
  import { EventDispatcher } from "@qikdev/sdk";
35
- const version$1 = "0.2.50";
35
+ const version$1 = "0.2.51";
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;
@@ -142,6 +142,9 @@ const _sfc_main$1g = {
142
142
  props: {
143
143
  vertical: {
144
144
  type: Boolean
145
+ },
146
+ inline: {
147
+ type: Boolean
145
148
  }
146
149
  },
147
150
  data() {
@@ -162,7 +165,8 @@ const _sfc_main$1g = {
162
165
  if (!child.props) {
163
166
  return;
164
167
  }
165
- if (((_a = child.props) == null ? void 0 : _a.enabled) === false) {
168
+ const disabled = ((_a = child.props) == null ? void 0 : _a.enabled) === false;
169
+ if (disabled) {
166
170
  return;
167
171
  }
168
172
  return child;
@@ -179,7 +183,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
179
183
  const _component_flex_row = resolveComponent("flex-row");
180
184
  const _component_flex_header = resolveComponent("flex-header");
181
185
  return openBlock(), createElementBlock("div", {
182
- class: normalizeClass(["ux-tabset", { vertical: $props.vertical, horizontal: !$props.vertical }])
186
+ class: normalizeClass(["ux-tabset", { vertical: $props.vertical, horizontal: !$props.vertical, inline: $props.inline, block: !$props.inline }])
183
187
  }, [
184
188
  $props.vertical ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
185
189
  createVNode(_component_flex_column, { class: "tabset-menu" }, {
@@ -254,7 +258,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
254
258
  ], 64))
255
259
  ], 2);
256
260
  }
257
- var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__scopeId", "data-v-621f2a2f"]]);
261
+ var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__scopeId", "data-v-fc1e48c4"]]);
258
262
  const _sfc_main$1f = {
259
263
  props: {
260
264
  heading: {
@@ -13425,6 +13429,16 @@ const _sfc_main$x = {
13425
13429
  field() {
13426
13430
  return this.fieldHash[this.model.key];
13427
13431
  },
13432
+ fieldWidget() {
13433
+ var _a, _b;
13434
+ if ((_a = this.comparator) == null ? void 0 : _a.inputWidget) {
13435
+ return this.comparator.inputWidget;
13436
+ }
13437
+ switch ((_b = this.field) == null ? void 0 : _b.widget) {
13438
+ case "currency":
13439
+ return this.field.widget;
13440
+ }
13441
+ },
13428
13442
  fieldType() {
13429
13443
  if (!this.field) {
13430
13444
  return;
@@ -13586,12 +13600,18 @@ const _sfc_main$x = {
13586
13600
  };
13587
13601
  },
13588
13602
  normalField() {
13589
- return {
13603
+ var _a, _b;
13604
+ const settings = {};
13605
+ const extras = {};
13606
+ extras.currency = (_a = this.field) == null ? void 0 : _a.currency;
13607
+ extras.syntax = (_b = this.field) == null ? void 0 : _b.syntax;
13608
+ return Object.assign(settings, {
13590
13609
  type: this.fieldType,
13591
13610
  maximum: 1,
13592
13611
  minimum: 1,
13593
- placeholder: this.inputPlaceholder
13594
- };
13612
+ placeholder: this.inputPlaceholder,
13613
+ widget: this.fieldWidget
13614
+ }, extras);
13595
13615
  },
13596
13616
  arrayField() {
13597
13617
  return {
@@ -13625,6 +13645,7 @@ const _sfc_main$x = {
13625
13645
  methods: {},
13626
13646
  components: {
13627
13647
  TextField,
13648
+ CurrencyField,
13628
13649
  DateField,
13629
13650
  NativeSelect,
13630
13651
  ContentSelect
@@ -13649,6 +13670,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13649
13670
  const _component_native_select = resolveComponent("native-select");
13650
13671
  const _component_flex_cell = resolveComponent("flex-cell");
13651
13672
  const _component_text_field = resolveComponent("text-field");
13673
+ const _component_currency_field = resolveComponent("currency-field");
13652
13674
  const _component_flex_row = resolveComponent("flex-row");
13653
13675
  const _component_date_field = resolveComponent("date-field");
13654
13676
  const _component_content_select = resolveComponent("content-select");
@@ -13699,17 +13721,31 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13699
13721
  }, null, 8, ["field", "modelValue"]))
13700
13722
  ])) : createCommentVNode("", true),
13701
13723
  $options.inputType == "range" ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
13702
- createVNode(_component_text_field, {
13703
- field: $options.normalField,
13704
- modelValue: $data.model.value,
13705
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.model.value = $event)
13706
- }, null, 8, ["field", "modelValue"]),
13707
- createTextVNode(" And "),
13708
- createVNode(_component_text_field, {
13709
- field: $options.normalField,
13710
- modelValue: $data.model.value2,
13711
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.model.value2 = $event)
13712
- }, null, 8, ["field", "modelValue"])
13724
+ $options.fieldWidget == "currency" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
13725
+ createVNode(_component_currency_field, {
13726
+ field: $options.normalField,
13727
+ modelValue: $data.model.value,
13728
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.model.value = $event)
13729
+ }, null, 8, ["field", "modelValue"]),
13730
+ createTextVNode(" And "),
13731
+ createVNode(_component_currency_field, {
13732
+ field: $options.normalField,
13733
+ modelValue: $data.model.value2,
13734
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.model.value2 = $event)
13735
+ }, null, 8, ["field", "modelValue"])
13736
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13737
+ createVNode(_component_text_field, {
13738
+ field: $options.normalField,
13739
+ modelValue: $data.model.value,
13740
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.model.value = $event)
13741
+ }, null, 8, ["field", "modelValue"]),
13742
+ createTextVNode(" And "),
13743
+ createVNode(_component_text_field, {
13744
+ field: $options.normalField,
13745
+ modelValue: $data.model.value2,
13746
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.model.value2 = $event)
13747
+ }, null, 8, ["field", "modelValue"])
13748
+ ], 64))
13713
13749
  ])) : createCommentVNode("", true),
13714
13750
  $options.inputType == "daterelative" ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
13715
13751
  createVNode(_component_flex_row, null, {
@@ -13719,7 +13755,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13719
13755
  createVNode(_component_text_field, {
13720
13756
  field: $options.relativeNumberField,
13721
13757
  modelValue: $data.model.value,
13722
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.model.value = $event)
13758
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.model.value = $event)
13723
13759
  }, null, 8, ["field", "modelValue"])
13724
13760
  ]),
13725
13761
  _: 1
@@ -13728,7 +13764,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13728
13764
  default: withCtx(() => [
13729
13765
  createVNode(_component_native_select, {
13730
13766
  modelValue: $data.model.value2,
13731
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.model.value2 = $event),
13767
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.model.value2 = $event),
13732
13768
  field: $options.relativePeriodField
13733
13769
  }, null, 8, ["modelValue", "field"])
13734
13770
  ]),
@@ -13742,34 +13778,34 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13742
13778
  createVNode(_component_date_field, {
13743
13779
  field: $options.dateField,
13744
13780
  modelValue: $data.model.value,
13745
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.model.value = $event)
13781
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.model.value = $event)
13746
13782
  }, null, 8, ["field", "modelValue"]),
13747
13783
  createTextVNode(" And "),
13748
13784
  createVNode(_component_date_field, {
13749
13785
  field: $options.dateField,
13750
13786
  modelValue: $data.model.value2,
13751
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.model.value2 = $event)
13787
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.model.value2 = $event)
13752
13788
  }, null, 8, ["field", "modelValue"])
13753
13789
  ])) : createCommentVNode("", true),
13754
13790
  $options.inputType == "date" ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
13755
13791
  createVNode(_component_date_field, {
13756
13792
  field: $options.dateField,
13757
13793
  modelValue: $data.model.value,
13758
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.model.value = $event)
13794
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.model.value = $event)
13759
13795
  }, null, 8, ["field", "modelValue"])
13760
13796
  ])) : createCommentVNode("", true),
13761
13797
  $options.inputType == "reference" ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
13762
13798
  createVNode(_component_content_select, {
13763
13799
  field: $options.singleReferenceField,
13764
13800
  modelValue: $data.model.value,
13765
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.model.value = $event)
13801
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.model.value = $event)
13766
13802
  }, null, 8, ["field", "modelValue"])
13767
13803
  ])) : createCommentVNode("", true),
13768
13804
  $options.inputType == "multireference" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
13769
13805
  createVNode(_component_content_select, {
13770
13806
  field: $options.multiReferenceField,
13771
13807
  modelValue: $data.model.values,
13772
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.model.values = $event)
13808
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.model.values = $event)
13773
13809
  }, null, 8, ["field", "modelValue"])
13774
13810
  ])) : createCommentVNode("", true),
13775
13811
  $options.inputType == "boolean" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
@@ -13781,7 +13817,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13781
13817
  createVNode(_component_flex_cell, { shrink: "" }, {
13782
13818
  default: withCtx(() => [
13783
13819
  createVNode(_component_ux_switch, {
13784
- onClick: _cache[13] || (_cache[13] = ($event) => $data.model.value = !$data.model.value),
13820
+ onClick: _cache[15] || (_cache[15] = ($event) => $data.model.value = !$data.model.value),
13785
13821
  value: $data.model.value
13786
13822
  }, null, 8, ["value"])
13787
13823
  ]),
@@ -13799,23 +13835,29 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13799
13835
  ])) : createCommentVNode("", true),
13800
13836
  $options.inputType == "none" ? (openBlock(), createElementBlock("div", _hoisted_10$2)) : createCommentVNode("", true),
13801
13837
  $options.inputType == "number" ? (openBlock(), createElementBlock("div", _hoisted_11$2, [
13802
- createVNode(_component_text_field, {
13838
+ $options.fieldWidget == "currency" ? (openBlock(), createBlock(_component_currency_field, {
13839
+ key: 0,
13803
13840
  field: $options.normalField,
13804
13841
  modelValue: $data.model.value,
13805
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.model.value = $event)
13806
- }, null, 8, ["field", "modelValue"])
13842
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.model.value = $event)
13843
+ }, null, 8, ["field", "modelValue"])) : (openBlock(), createBlock(_component_text_field, {
13844
+ key: 1,
13845
+ field: $options.normalField,
13846
+ modelValue: $data.model.value,
13847
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $data.model.value = $event)
13848
+ }, null, 8, ["field", "modelValue"]))
13807
13849
  ])) : createCommentVNode("", true),
13808
13850
  $options.inputType == "normal" ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
13809
13851
  $options.hasOptions ? (openBlock(), createBlock(_component_native_select, {
13810
13852
  key: 0,
13811
13853
  modelValue: $data.model.value,
13812
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.model.value = $event),
13854
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $data.model.value = $event),
13813
13855
  field: $options.singleOptionsField
13814
13856
  }, null, 8, ["modelValue", "field"])) : (openBlock(), createBlock(_component_text_field, {
13815
13857
  key: 1,
13816
13858
  field: $options.normalField,
13817
13859
  modelValue: $data.model.value,
13818
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.model.value = $event)
13860
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.model.value = $event)
13819
13861
  }, null, 8, ["field", "modelValue"]))
13820
13862
  ])) : createCommentVNode("", true)
13821
13863
  ]),
@@ -13829,7 +13871,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
13829
13871
  createVNode(_component_ux_button, {
13830
13872
  size: "sm",
13831
13873
  icon: "",
13832
- onClick: _cache[17] || (_cache[17] = ($event) => _ctx.$emit("remove"))
13874
+ onClick: _cache[20] || (_cache[20] = ($event) => _ctx.$emit("remove"))
13833
13875
  }, {
13834
13876
  default: withCtx(() => [
13835
13877
  createVNode(_component_ux_icon, { icon: "fa-times" })
@@ -20721,7 +20763,7 @@ function emptyFilter() {
20721
20763
  filters: []
20722
20764
  };
20723
20765
  }
20724
- let cancelInflight;
20766
+ let inflightRequest;
20725
20767
  let cancelledUnmount;
20726
20768
  let typeCacheKey;
20727
20769
  const _sfc_main$6 = {
@@ -20813,9 +20855,9 @@ const _sfc_main$6 = {
20813
20855
  },
20814
20856
  deactivated() {
20815
20857
  typeCacheKey = this.$sdk.global.cacheKeys[this.type];
20816
- if (cancelInflight) {
20817
- cancelInflight();
20818
- cancelInflight = null;
20858
+ if (inflightRequest) {
20859
+ inflightRequest.cancel();
20860
+ inflightRequest = null;
20819
20861
  cancelledUnmount = true;
20820
20862
  }
20821
20863
  },
@@ -20893,6 +20935,15 @@ const _sfc_main$6 = {
20893
20935
  }
20894
20936
  },
20895
20937
  computed: {
20938
+ showFilterSidebar() {
20939
+ return this.showFilters;
20940
+ },
20941
+ boundaryMessage() {
20942
+ var _a;
20943
+ if ((_a = this.dataSource) == null ? void 0 : _a.boundary) {
20944
+ return this.dataSource.message || "Limit was reached. Please provide more selective criteria";
20945
+ }
20946
+ },
20896
20947
  viewModeCacheKey() {
20897
20948
  return `${this.cacheKey}-${this.loadKey}`;
20898
20949
  },
@@ -21228,9 +21279,9 @@ const _sfc_main$6 = {
21228
21279
  var _a, _b, _c, _d;
21229
21280
  var self2 = this;
21230
21281
  self2.loading = true;
21231
- if (cancelInflight) {
21232
- cancelInflight();
21233
- cancelInflight = null;
21282
+ if (inflightRequest) {
21283
+ inflightRequest.cancel();
21284
+ inflightRequest = null;
21234
21285
  }
21235
21286
  var loadCriteria = Object.assign({}, self2.loadCriteria);
21236
21287
  loadCriteria.includeAll = includeAll;
@@ -21258,15 +21309,20 @@ const _sfc_main$6 = {
21258
21309
  };
21259
21310
  }
21260
21311
  }
21312
+ const id = Math.random();
21261
21313
  const { promise, cancel } = await self2.$sdk.content.list(self2.type, loadCriteria, { cancellable: true });
21262
- cancelInflight = cancel;
21314
+ inflightRequest = { id, cancel };
21263
21315
  promise.then(function(res) {
21264
- cancelInflight = null;
21265
- self2.loading = false;
21266
- self2.loadKey++;
21316
+ if ((inflightRequest == null ? void 0 : inflightRequest.id) === id) {
21317
+ inflightRequest = null;
21318
+ self2.loading = false;
21319
+ self2.loadKey++;
21320
+ }
21267
21321
  });
21268
21322
  promise.catch(function(err) {
21269
- cancelInflight = null;
21323
+ if ((inflightRequest == null ? void 0 : inflightRequest.id) === id) {
21324
+ inflightRequest = null;
21325
+ }
21270
21326
  });
21271
21327
  const { data } = await promise;
21272
21328
  data.items.forEach(self2.ensureMeta);
@@ -21304,28 +21360,28 @@ const _sfc_main$6 = {
21304
21360
  };
21305
21361
  }
21306
21362
  };
21307
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-510c624f"), n2 = n2(), popScopeId(), n2);
21308
- const _hoisted_1$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
21309
- const _hoisted_2$5 = { key: 0 };
21310
- const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
21311
- const _hoisted_4$1 = { class: "footer" };
21363
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-ebe5f108"), n2 = n2(), popScopeId(), n2);
21364
+ const _hoisted_1$6 = { class: "footer" };
21365
+ const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
21366
+ const _hoisted_3$5 = { key: 0 };
21367
+ const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, null, -1));
21312
21368
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
21313
21369
  const _component_ux_icon = resolveComponent("ux-icon");
21370
+ const _component_ux_panel_body = resolveComponent("ux-panel-body");
21371
+ const _component_ux_panel = resolveComponent("ux-panel");
21372
+ const _component_flex_column = resolveComponent("flex-column");
21314
21373
  const _component_ux_button = resolveComponent("ux-button");
21315
21374
  const _component_ux_list_item = resolveComponent("ux-list-item");
21316
21375
  const _component_ux_list = resolveComponent("ux-list");
21317
21376
  const _component_ux_menu = resolveComponent("ux-menu");
21318
21377
  const _component_native_table = resolveComponent("native-table");
21319
- const _component_flex_column = resolveComponent("flex-column");
21320
- const _component_ux_panel_body = resolveComponent("ux-panel-body");
21321
- const _component_ux_panel = resolveComponent("ux-panel");
21378
+ const _component_pager = resolveComponent("pager");
21379
+ const _component_flex_footer = resolveComponent("flex-footer");
21322
21380
  const _component_flex_row = resolveComponent("flex-row");
21323
21381
  const _component_search = resolveComponent("search");
21324
21382
  const _component_ux_field = resolveComponent("ux-field");
21325
21383
  const _component_filter_builder = resolveComponent("filter-builder");
21326
21384
  const _component_flex_body = resolveComponent("flex-body");
21327
- const _component_pager = resolveComponent("pager");
21328
- const _component_flex_footer = resolveComponent("flex-footer");
21329
21385
  const _component_spinner = resolveComponent("spinner");
21330
21386
  return $data.definition ? (openBlock(), createBlock(_component_flex_column, {
21331
21387
  key: 0,
@@ -21342,107 +21398,148 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
21342
21398
  default: withCtx(() => [
21343
21399
  createVNode(_component_flex_column, null, {
21344
21400
  default: withCtx(() => [
21345
- $data.dataSource ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
21346
- renderSlot(_ctx.$slots, "abovecontent", {}, void 0, true),
21347
- $options.items.length ? (openBlock(), createBlock(_component_flex_column, { key: 0 }, {
21348
- default: withCtx(() => [
21349
- $options.viewMode && $options.viewMode.component ? (openBlock(), createBlock(resolveDynamicComponent($options.viewMode.component), {
21401
+ createVNode(_component_flex_column, null, {
21402
+ default: withCtx(() => [
21403
+ $data.dataSource ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
21404
+ renderSlot(_ctx.$slots, "abovecontent", {}, void 0, true),
21405
+ $options.boundaryMessage ? (openBlock(), createBlock(_component_flex_column, {
21350
21406
  key: 0,
21351
- cacheKey: $options.viewModeCacheKey,
21352
- selection: $data.manager.items,
21353
- items: $options.items,
21354
- "onClick:actions": $options.actionsClicked,
21355
- "onSelect:item:toggle": $options.rowToggled,
21356
- "onClick:item": $options.rowClicked
21357
- }, null, 40, ["cacheKey", "selection", "items", "onClick:actions", "onSelect:item:toggle", "onClick:item"])) : (openBlock(), createBlock(_component_native_table, {
21358
- key: 1,
21359
- sort: $data.sort,
21360
- "onUpdate:sort": _cache[0] || (_cache[0] = ($event) => $data.sort = $event),
21361
- enableSelection: $props.enableSelection,
21362
- enableActions: $props.enableActions,
21363
- total: $options.totalItems,
21364
- selectAll: $options.selectAll,
21365
- deselectAll: $options.deselectAllFunction,
21366
- selection: $data.manager.items,
21367
- "onClick:row": $options.rowClicked,
21368
- "onClick:actions": $options.actionsClicked,
21369
- "onSelect:row:toggle": $options.rowToggled,
21370
- "onSelect:multiple": $options.selectMultiple,
21371
- "onDeselect:multiple": $options.deselectMultiple,
21372
- rows: $options.items,
21373
- columns: $options.columns
21407
+ class: "empty"
21374
21408
  }, {
21375
- corner: withCtx(() => [
21376
- createVNode(_component_ux_menu, { right: "" }, {
21377
- activator: withCtx(({ on: on2 }) => [
21378
- createVNode(_component_ux_button, mergeProps({ icon: "" }, toHandlers(on2)), {
21409
+ default: withCtx(() => [
21410
+ createVNode(_component_ux_panel, null, {
21411
+ default: withCtx(() => [
21412
+ createVNode(_component_ux_panel_body, null, {
21379
21413
  default: withCtx(() => [
21380
- createVNode(_component_ux_icon, { icon: "fa-cog" })
21414
+ createVNode(_component_ux_icon, {
21415
+ class: "large-icon",
21416
+ icon: "fa-database"
21417
+ }),
21418
+ createElementVNode("div", null, toDisplayString($options.boundaryMessage), 1)
21381
21419
  ]),
21382
- _: 2
21383
- }, 1040)
21420
+ _: 1
21421
+ })
21384
21422
  ]),
21385
- default: withCtx(() => [
21386
- createVNode(_component_ux_list, null, {
21423
+ _: 1
21424
+ })
21425
+ ]),
21426
+ _: 1
21427
+ })) : $options.items.length ? (openBlock(), createBlock(_component_flex_column, { key: 1 }, {
21428
+ default: withCtx(() => [
21429
+ $options.viewMode && $options.viewMode.component ? (openBlock(), createBlock(resolveDynamicComponent($options.viewMode.component), {
21430
+ key: 0,
21431
+ cacheKey: $options.viewModeCacheKey,
21432
+ selection: $data.manager.items,
21433
+ items: $options.items,
21434
+ "onClick:actions": $options.actionsClicked,
21435
+ "onSelect:item:toggle": $options.rowToggled,
21436
+ "onClick:item": $options.rowClicked
21437
+ }, null, 40, ["cacheKey", "selection", "items", "onClick:actions", "onSelect:item:toggle", "onClick:item"])) : (openBlock(), createBlock(_component_native_table, {
21438
+ key: 1,
21439
+ sort: $data.sort,
21440
+ "onUpdate:sort": _cache[0] || (_cache[0] = ($event) => $data.sort = $event),
21441
+ enableSelection: $props.enableSelection,
21442
+ enableActions: $props.enableActions,
21443
+ total: $options.totalItems,
21444
+ selectAll: $options.selectAll,
21445
+ deselectAll: $options.deselectAllFunction,
21446
+ selection: $data.manager.items,
21447
+ "onClick:row": $options.rowClicked,
21448
+ "onClick:actions": $options.actionsClicked,
21449
+ "onSelect:row:toggle": $options.rowToggled,
21450
+ "onSelect:multiple": $options.selectMultiple,
21451
+ "onDeselect:multiple": $options.deselectMultiple,
21452
+ rows: $options.items,
21453
+ columns: $options.columns
21454
+ }, {
21455
+ corner: withCtx(() => [
21456
+ createVNode(_component_ux_menu, { right: "" }, {
21457
+ activator: withCtx(({ on: on2 }) => [
21458
+ createVNode(_component_ux_button, mergeProps({ icon: "" }, toHandlers(on2)), {
21459
+ default: withCtx(() => [
21460
+ createVNode(_component_ux_icon, { icon: "fa-cog" })
21461
+ ]),
21462
+ _: 2
21463
+ }, 1040)
21464
+ ]),
21387
21465
  default: withCtx(() => [
21388
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.fields, (field) => {
21389
- return openBlock(), createBlock(_component_ux_list_item, {
21390
- onClick: ($event) => $options.toggleField(field),
21391
- key: field.path
21392
- }, {
21393
- default: withCtx(() => [
21394
- createVNode(_component_ux_icon, {
21395
- icon: $options.fieldEnabled[field.path] ? "fa-check-square" : "fa-regular fa-square",
21396
- left: ""
21397
- }, null, 8, ["icon"]),
21398
- createTextVNode(" " + toDisplayString(field.title), 1)
21399
- ]),
21400
- _: 2
21401
- }, 1032, ["onClick"]);
21402
- }), 128))
21466
+ createVNode(_component_ux_list, null, {
21467
+ default: withCtx(() => [
21468
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.fields, (field) => {
21469
+ return openBlock(), createBlock(_component_ux_list_item, {
21470
+ onClick: ($event) => $options.toggleField(field),
21471
+ key: field.path
21472
+ }, {
21473
+ default: withCtx(() => [
21474
+ createVNode(_component_ux_icon, {
21475
+ icon: $options.fieldEnabled[field.path] ? "fa-check-square" : "fa-regular fa-square",
21476
+ left: ""
21477
+ }, null, 8, ["icon"]),
21478
+ createTextVNode(" " + toDisplayString(field.title), 1)
21479
+ ]),
21480
+ _: 2
21481
+ }, 1032, ["onClick"]);
21482
+ }), 128))
21483
+ ]),
21484
+ _: 1
21485
+ })
21403
21486
  ]),
21404
21487
  _: 1
21405
21488
  })
21406
21489
  ]),
21407
21490
  _: 1
21408
- })
21491
+ }, 8, ["sort", "enableSelection", "enableActions", "total", "selectAll", "deselectAll", "selection", "onClick:row", "onClick:actions", "onSelect:row:toggle", "onSelect:multiple", "onDeselect:multiple", "rows", "columns"]))
21409
21492
  ]),
21410
21493
  _: 1
21411
- }, 8, ["sort", "enableSelection", "enableActions", "total", "selectAll", "deselectAll", "selection", "onClick:row", "onClick:actions", "onSelect:row:toggle", "onSelect:multiple", "onDeselect:multiple", "rows", "columns"]))
21412
- ]),
21413
- _: 1
21414
- })) : !$data.loading ? (openBlock(), createBlock(_component_flex_column, {
21415
- key: 1,
21416
- class: "empty",
21417
- center: ""
21418
- }, {
21419
- default: withCtx(() => [
21420
- createVNode(_component_ux_panel, null, {
21494
+ })) : !$data.loading ? (openBlock(), createBlock(_component_flex_column, {
21495
+ key: 2,
21496
+ class: "empty",
21497
+ center: ""
21498
+ }, {
21421
21499
  default: withCtx(() => [
21422
- createVNode(_component_ux_panel_body, null, {
21500
+ createVNode(_component_ux_panel, null, {
21423
21501
  default: withCtx(() => [
21424
- createElementVNode("div", null, "No " + toDisplayString($data.definition.plural) + " found.", 1)
21502
+ createVNode(_component_ux_panel_body, null, {
21503
+ default: withCtx(() => [
21504
+ createElementVNode("div", null, "No " + toDisplayString($data.definition.plural) + " found.", 1)
21505
+ ]),
21506
+ _: 1
21507
+ })
21425
21508
  ]),
21426
21509
  _: 1
21427
21510
  })
21428
21511
  ]),
21429
21512
  _: 1
21430
- })
21513
+ })) : (openBlock(), createBlock(_component_flex_column, {
21514
+ key: 3,
21515
+ class: "empty",
21516
+ center: ""
21517
+ }))
21518
+ ], 64)) : createCommentVNode("", true)
21519
+ ]),
21520
+ _: 3
21521
+ }),
21522
+ $data.dataSource && !$options.boundaryMessage ? (openBlock(), createBlock(_component_flex_footer, { key: 0 }, {
21523
+ default: withCtx(() => [
21524
+ renderSlot(_ctx.$slots, "footera", {}, void 0, true),
21525
+ createElementVNode("div", _hoisted_1$6, [
21526
+ createVNode(_component_pager, {
21527
+ page: $data.page,
21528
+ "onUpdate:page": _cache[1] || (_cache[1] = ($event) => $data.page = $event),
21529
+ total: $options.totalItems
21530
+ }, null, 8, ["page", "total"])
21431
21531
  ]),
21432
- _: 1
21433
- })) : (openBlock(), createBlock(_component_flex_column, {
21434
- key: 2,
21435
- class: "empty",
21436
- center: ""
21437
- }))
21438
- ], 64)) : createCommentVNode("", true)
21532
+ renderSlot(_ctx.$slots, "footerb", {}, void 0, true)
21533
+ ]),
21534
+ _: 3
21535
+ })) : createCommentVNode("", true)
21439
21536
  ]),
21440
21537
  _: 3
21441
21538
  })
21442
21539
  ]),
21443
21540
  _: 3
21444
21541
  }, 8, ["class"]),
21445
- $props.showFilters ? (openBlock(), createBlock(_component_flex_column, {
21542
+ $options.showFilterSidebar ? (openBlock(), createBlock(_component_flex_column, {
21446
21543
  key: 0,
21447
21544
  class: "filter-column"
21448
21545
  }, {
@@ -21452,24 +21549,24 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
21452
21549
  default: withCtx(() => [
21453
21550
  createVNode(_component_search, {
21454
21551
  modelValue: $data.keywords,
21455
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.keywords = $event),
21552
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.keywords = $event),
21456
21553
  loading: $options.searching,
21457
21554
  debounce: 500,
21458
21555
  placeholder: "Keyword Search"
21459
21556
  }, null, 8, ["modelValue", "loading"]),
21460
- _hoisted_1$6,
21461
- $props.dateFilterEnabled ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
21557
+ _hoisted_2$5,
21558
+ $props.dateFilterEnabled ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
21462
21559
  createVNode(_component_ux_field, {
21463
21560
  field: $options.dateRangeField,
21464
21561
  modelValue: $data.dateRangeFilter,
21465
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.dateRangeFilter = $event)
21562
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.dateRangeFilter = $event)
21466
21563
  }, null, 8, ["field", "modelValue"])
21467
21564
  ])) : createCommentVNode("", true),
21468
- _hoisted_3$5,
21565
+ _hoisted_4$1,
21469
21566
  createVNode(_component_filter_builder, {
21470
21567
  definition: $data.definition,
21471
21568
  modelValue: $data.actualFilter,
21472
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.actualFilter = $event)
21569
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.actualFilter = $event)
21473
21570
  }, null, 8, ["definition", "modelValue"])
21474
21571
  ]),
21475
21572
  _: 1
@@ -21484,29 +21581,15 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
21484
21581
  ]),
21485
21582
  _: 3
21486
21583
  }),
21487
- $data.dataSource ? (openBlock(), createBlock(_component_flex_footer, { key: 0 }, {
21488
- default: withCtx(() => [
21489
- renderSlot(_ctx.$slots, "footera", {}, void 0, true),
21490
- createElementVNode("div", _hoisted_4$1, [
21491
- createVNode(_component_pager, {
21492
- page: $data.page,
21493
- "onUpdate:page": _cache[4] || (_cache[4] = ($event) => $data.page = $event),
21494
- total: $options.totalItems
21495
- }, null, 8, ["page", "total"])
21496
- ]),
21497
- renderSlot(_ctx.$slots, "footerb", {}, void 0, true)
21498
- ]),
21499
- _: 3
21500
- })) : createCommentVNode("", true),
21501
21584
  $data.loading ? (openBlock(), createBlock(_component_spinner, {
21502
- key: 1,
21585
+ key: 0,
21503
21586
  large: ""
21504
21587
  })) : createCommentVNode("", true)
21505
21588
  ]),
21506
21589
  _: 3
21507
21590
  })) : createCommentVNode("", true);
21508
21591
  }
21509
- var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-510c624f"]]);
21592
+ var ContentBrowser = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-ebe5f108"]]);
21510
21593
  var ModalMixin = {
21511
21594
  props: {
21512
21595
  options: {
@@ -22018,7 +22101,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
22018
22101
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.search = $event),
22019
22102
  loading: $data.searching,
22020
22103
  debounce: 500,
22021
- placeholder: "Search"
22104
+ placeholder: "Keyword Search"
22022
22105
  }, null, 8, ["modelValue", "loading"])
22023
22106
  ]),
22024
22107
  _: 1
@@ -22065,14 +22148,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
22065
22148
  }),
22066
22149
  createVNode(_component_content_browser, {
22067
22150
  rolodexPrimary: $options.rolodexPrimary,
22068
- "onUpdate:rolodexPrimary": _cache[2] || (_cache[2] = ($event) => $options.rolodexPrimary = $event),
22151
+ "onUpdate:rolodexPrimary": _cache[3] || (_cache[3] = ($event) => $options.rolodexPrimary = $event),
22069
22152
  showFilters: $data.showFilters,
22070
22153
  ref: "browser",
22071
22154
  search: $data.search,
22072
22155
  "onClick:row": $options.rowClicked,
22073
22156
  maximum: _ctx.options.maximum,
22074
22157
  modelValue: $data.model,
22075
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.model = $event),
22158
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.model = $event),
22076
22159
  type: _ctx.options.type,
22077
22160
  options: $options.browserOptions
22078
22161
  }, {
@@ -22080,6 +22163,17 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
22080
22163
  $options.rolodexEnabled ? (openBlock(), createBlock(_component_flex_header, { key: 0 }, {
22081
22164
  default: withCtx(() => [
22082
22165
  createElementVNode("div", _hoisted_3$1, [
22166
+ createVNode(_component_ux_button, {
22167
+ size: "sm",
22168
+ onClick: _cache[2] || (_cache[2] = ($event) => $options.toggleRolodex("")),
22169
+ icon: "",
22170
+ color: !$options.rolodexPrimary ? "primary" : ""
22171
+ }, {
22172
+ default: withCtx(() => [
22173
+ createTextVNode("All")
22174
+ ]),
22175
+ _: 1
22176
+ }, 8, ["color"]),
22083
22177
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.letters, (letter) => {
22084
22178
  return openBlock(), createBlock(_component_ux_button, {
22085
22179
  size: "sm",
@@ -22106,7 +22200,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
22106
22200
  _: 1
22107
22201
  });
22108
22202
  }
22109
- var UxContentModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-0eebffb8"]]);
22203
+ var UxContentModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-46991808"]]);
22110
22204
  var ScopeModal_vue_vue_type_style_index_0_scoped_true_lang = "";
22111
22205
  const _sfc_main = {
22112
22206
  components: {