@ldmjs/ui 1.0.0-dev-18 → 1.0.0-dev-20

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/index.js CHANGED
@@ -2548,7 +2548,6 @@ class ValidatableMixin extends external_vue_property_decorator_.Vue {
2548
2548
  super(...arguments);
2549
2549
  this.myRules = [];
2550
2550
  this.validationMessage = '';
2551
- this.errorBucket = [];
2552
2551
  this.uid = uidGen(6, '0-9');
2553
2552
  }
2554
2553
  onRulesChanged(newVal) {
@@ -3333,7 +3332,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
3333
3332
  this.timeMenu = false;
3334
3333
  this.event = null;
3335
3334
  this.validationMesssage = '';
3336
- this.errorBucket = [];
3337
3335
  this.errorsHandler = [];
3338
3336
  this.isHours = true;
3339
3337
  this.isMinutes = false;
@@ -3410,7 +3408,6 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
3410
3408
  if (this.form) {
3411
3409
  this.form.register(this, null);
3412
3410
  }
3413
- this.fullErrorBucket();
3414
3411
  }
3415
3412
  unmounted() {
3416
3413
  window.removeEventListener('wheel', this.datepickerScrollHandler);
@@ -3695,30 +3692,17 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
3695
3692
  dt.setSeconds(0);
3696
3693
  this.emitInput(dt);
3697
3694
  }
3698
- /** Функции, отвечающие за работу валидации */
3699
3695
  validate() {
3700
- this.errorBucket = [];
3701
3696
  let funcResult = null;
3702
3697
  this.validationMesssage = '';
3703
3698
  this.validRules.forEach(func => {
3704
3699
  funcResult = func(this.date);
3705
3700
  if (funcResult !== true) {
3706
3701
  this.validationMesssage = funcResult;
3707
- this.errorBucket.push(funcResult);
3708
3702
  }
3709
3703
  });
3710
3704
  return !this.validationMesssage;
3711
3705
  }
3712
- fullErrorBucket() {
3713
- this.errorBucket = [];
3714
- let funcResult = null;
3715
- this.validRules.forEach(func => {
3716
- funcResult = func(this.date);
3717
- if (funcResult !== true) {
3718
- this.errorBucket.push(funcResult);
3719
- }
3720
- });
3721
- }
3722
3706
  async setTimeMask() {
3723
3707
  if (this.isMobileGlobal) {
3724
3708
  return;
@@ -4517,33 +4501,33 @@ function ld_page_toolbar_reg(vue, options) {
4517
4501
  }
4518
4502
  /* harmony default export */ const src_ld_page_toolbar = (ld_page_toolbar_reg);
4519
4503
 
4520
- ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=1cac121a&scoped=true&ts=true
4504
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=f07bf04a&scoped=true&ts=true
4521
4505
 
4522
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-1cac121a"), n = n(), _popScopeId(), n);
4523
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
4524
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_2 = {
4506
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-f07bf04a"), n = n(), _popScopeId(), n);
4507
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
4508
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_2 = {
4525
4509
  key: 0,
4526
4510
  class: "d-flex align-center"
4527
4511
  };
4528
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column justify-center" };
4529
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_4 = {
4512
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column justify-center" };
4513
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_4 = {
4530
4514
  key: 0,
4531
4515
  class: "grey--text",
4532
4516
  style: { "font-size": "var(--font-size--1)" }
4533
4517
  };
4534
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_5 = {
4535
- key: 0,
4536
- class: "select-list-textbox-loading"
4518
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_5 = {
4519
+ key: 1,
4520
+ class: "select-list-box-loading"
4537
4521
  };
4538
- const ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_6 = {
4522
+ const ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_6 = {
4539
4523
  key: 0,
4540
- class: "select-list-textbox-validate"
4524
+ class: "select-list-box-validate"
4541
4525
  };
4542
4526
  const _hoisted_7 = {
4543
4527
  key: 0,
4544
4528
  class: "select-list-textbox-validate"
4545
4529
  };
4546
- function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4530
+ function ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4547
4531
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
4548
4532
  const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
4549
4533
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
@@ -4610,7 +4594,11 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4610
4594
  onSearchChange: _ctx.getItems
4611
4595
  }, {
4612
4596
  tag: (0,external_vue_.withCtx)(({ option }) => [
4613
- (0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, onRemove: _ctx.onRemoveItem })), () => [
4597
+ (0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({
4598
+ item: option,
4599
+ onRemove: _ctx.onRemoveItem,
4600
+ canRemove: _ctx.canRemove,
4601
+ })), () => [
4614
4602
  ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
4615
4603
  key: JSON.stringify(option),
4616
4604
  color: _ctx.disabled ? 'grey' : 'primary',
@@ -4618,7 +4606,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4618
4606
  "onClick:close": ($event) => (_ctx.onRemoveItem(option))
4619
4607
  }, {
4620
4608
  default: (0,external_vue_.withCtx)(() => [
4621
- (0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
4609
+ (0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
4622
4610
  ]),
4623
4611
  _: 2
4624
4612
  }, 1032, ["color", "closable", "onClick:close"]))
@@ -4633,7 +4621,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4633
4621
  (0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center" }, {
4634
4622
  default: (0,external_vue_.withCtx)(() => [
4635
4623
  (_ctx.multiselect)
4636
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_2, [
4624
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_2, [
4637
4625
  ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
4638
4626
  key: JSON.stringify(option),
4639
4627
  "model-value": _ctx.checkedItems,
@@ -4648,13 +4636,13 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4648
4636
  }, [
4649
4637
  (0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
4650
4638
  (0,external_vue_.createTextVNode)(),
4651
- (0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_3, [
4639
+ (0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_3, [
4652
4640
  (0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
4653
4641
  (0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
4654
4642
  ], true),
4655
4643
  (0,external_vue_.createTextVNode)(),
4656
4644
  (_ctx.optionHint)
4657
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_4, [
4645
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_4, [
4658
4646
  (0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), () => [
4659
4647
  (0,external_vue_.createTextVNode)("\r\n no slot \"option-hint\" found\r\n ")
4660
4648
  ], true)
@@ -4675,29 +4663,32 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4675
4663
  _: 3
4676
4664
  }, 8, ["modelValue", "multiple", "placeholder", "options", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allowEmpty", "onClose", "onSearchChange", "onUpdate:modelValue"]),
4677
4665
  (0,external_vue_.createTextVNode)(),
4678
- (0,external_vue_.createVNode)(_component_square_button, {
4679
- variant: "outlined",
4680
- id: "selectButton",
4681
- color: "grey",
4682
- disabled: _ctx.readonly || _ctx.disabled || _ctx.disableDialog,
4683
- loading: _ctx.loading,
4684
- onClick: _ctx.onSelect
4685
- }, {
4686
- default: (0,external_vue_.withCtx)(() => [
4687
- ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
4688
- color: _ctx.validationMessage && !_ctx.readonly && !_ctx.disabled ? 'error' : 'grey'
4689
- }, {
4690
- default: (0,external_vue_.withCtx)(() => [
4691
- (0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(_ctx.icon), 1)
4692
- ]),
4693
- _: 1
4694
- }, 8, ["color"]))
4695
- ]),
4696
- _: 1
4697
- }, 8, ["disabled", "loading", "onClick"]),
4666
+ (!_ctx.disableDialog)
4667
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
4668
+ key: 0,
4669
+ variant: "outlined",
4670
+ id: "selectButton",
4671
+ color: "grey",
4672
+ disabled: _ctx.readonly || _ctx.disabled,
4673
+ loading: _ctx.loading,
4674
+ onClick: _ctx.onSelect
4675
+ }, {
4676
+ default: (0,external_vue_.withCtx)(() => [
4677
+ ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
4678
+ color: _ctx.validationMessage && !_ctx.readonly && !_ctx.disabled ? 'error' : 'grey'
4679
+ }, {
4680
+ default: (0,external_vue_.withCtx)(() => [
4681
+ (0,external_vue_.createTextVNode)((0,external_vue_.toDisplayString)(_ctx.icon), 1)
4682
+ ]),
4683
+ _: 1
4684
+ }, 8, ["color"]))
4685
+ ]),
4686
+ _: 1
4687
+ }, 8, ["disabled", "loading", "onClick"]))
4688
+ : (0,external_vue_.createCommentVNode)("", true),
4698
4689
  (0,external_vue_.createTextVNode)(),
4699
4690
  (_ctx.loading)
4700
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_5))
4691
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_5))
4701
4692
  : (0,external_vue_.createCommentVNode)("", true)
4702
4693
  ]),
4703
4694
  _: 3
@@ -4707,7 +4698,7 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4707
4698
  }),
4708
4699
  (0,external_vue_.createTextVNode)(),
4709
4700
  (!_ctx.hideDetails)
4710
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_hoisted_6, [
4701
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_hoisted_6, [
4711
4702
  (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
4712
4703
  default: (0,external_vue_.withCtx)(() => [
4713
4704
  (_ctx.showHint)
@@ -4759,11 +4750,52 @@ function ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_ren
4759
4750
  }));
4760
4751
  }
4761
4752
 
4762
- ;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=1cac121a&scoped=true&ts=true
4753
+ ;// CONCATENATED MODULE: ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=f07bf04a&scoped=true&ts=true
4763
4754
 
4764
4755
  // EXTERNAL MODULE: external "./multiselect.js"
4765
4756
  var external_multiselect_js_ = __webpack_require__(9225);
4766
4757
  var external_multiselect_js_default = /*#__PURE__*/__webpack_require__.n(external_multiselect_js_);
4758
+ // EXTERNAL MODULE: external "./floating.js"
4759
+ var external_floating_js_ = __webpack_require__(3654);
4760
+ ;// CONCATENATED MODULE: ./src/mixins/floatingUI.mixin.ts
4761
+
4762
+
4763
+ class FloatingUI extends external_vue_class_component_.Vue {
4764
+ mounted() {
4765
+ this.addPosWatcher();
4766
+ }
4767
+ beforeUnmount() {
4768
+ this.removePosWatcher();
4769
+ }
4770
+ addPosWatcher() {
4771
+ const referenceEl = this.$refs.multiselect.$el;
4772
+ const dropdownEl = referenceEl.querySelector('.multiselect__content-wrapper');
4773
+ if (!dropdownEl || !referenceEl || !window.ResizeObserver) {
4774
+ return;
4775
+ }
4776
+ FloatingUI.CleanupPosWatcher = (0,external_floating_js_.autoUpdate)(referenceEl, dropdownEl, async () => {
4777
+ const { y, strategy } = await (0,external_floating_js_.computePosition)(referenceEl, dropdownEl, {
4778
+ strategy: 'fixed',
4779
+ middleware: [
4780
+ (0,external_floating_js_.autoPlacement)({
4781
+ allowedPlacements: ['top', 'bottom'],
4782
+ }),
4783
+ ],
4784
+ });
4785
+ dropdownEl.style.position = strategy;
4786
+ dropdownEl.style.top = `${y}px`;
4787
+ dropdownEl.style.maxWidth = `${referenceEl.clientWidth}px`;
4788
+ });
4789
+ }
4790
+ removePosWatcher() {
4791
+ if (FloatingUI.CleanupPosWatcher) {
4792
+ FloatingUI.CleanupPosWatcher();
4793
+ }
4794
+ FloatingUI.CleanupPosWatcher = null;
4795
+ }
4796
+ }
4797
+ FloatingUI.CleanupPosWatcher = null;
4798
+
4767
4799
  ;// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheClear.js
4768
4800
  /**
4769
4801
  * Removes all key-value entries from the list cache.
@@ -7049,52 +7081,6 @@ function isEqual(value, other) {
7049
7081
 
7050
7082
  /* harmony default export */ const lodash_es_isEqual = (isEqual);
7051
7083
 
7052
- // EXTERNAL MODULE: external "./floating.js"
7053
- var external_floating_js_ = __webpack_require__(3654);
7054
- ;// CONCATENATED MODULE: ./src/ld-select-list-box/floatingUI.mixin.ts
7055
-
7056
-
7057
- class FloatingUI extends external_vue_class_component_.Vue {
7058
- constructor() {
7059
- super(...arguments);
7060
- this.cleanupPosWatcher = null;
7061
- }
7062
- mounted() {
7063
- this.addPosWatcher();
7064
- }
7065
- beforeUnmount() {
7066
- this.removePosWatcher();
7067
- }
7068
- addPosWatcher() {
7069
- const referenceEl = this.$refs.multiselect.$el;
7070
- const dropdownEl = referenceEl.querySelector('.multiselect__content-wrapper');
7071
- if (!dropdownEl || !referenceEl || !window.ResizeObserver) {
7072
- return;
7073
- }
7074
- this.cleanupPosWatcher = (0,external_floating_js_.autoUpdate)(referenceEl, dropdownEl, async () => {
7075
- const { y, strategy } = await (0,external_floating_js_.computePosition)(referenceEl, dropdownEl, {
7076
- strategy: 'fixed',
7077
- middleware: [
7078
- (0,external_floating_js_.autoPlacement)({
7079
- allowedPlacements: ['top', 'bottom'],
7080
- }),
7081
- ],
7082
- });
7083
- Object.assign(dropdownEl.style, {
7084
- top: `${y}px`,
7085
- position: strategy,
7086
- 'max-width': `${referenceEl.clientWidth}px`,
7087
- });
7088
- });
7089
- }
7090
- removePosWatcher() {
7091
- if (this.cleanupPosWatcher) {
7092
- this.cleanupPosWatcher();
7093
- }
7094
- this.cleanupPosWatcher = null;
7095
- }
7096
- }
7097
-
7098
7084
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select-list-box/ld-select-list-box.ts?vue&type=script&lang=ts&external
7099
7085
  var ld_select_list_boxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7100
7086
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -7184,15 +7170,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7184
7170
  this.loading = false;
7185
7171
  }
7186
7172
  }
7187
- async onShowInputChange(newVal) {
7188
- if (newVal && !this.cleanupPosWatcher) {
7189
- await this.$nextTick();
7190
- this.addPosWatcher();
7191
- }
7192
- else {
7193
- this.removePosWatcher();
7194
- }
7195
- }
7196
7173
  created() {
7197
7174
  this.messagesBucket = {
7198
7175
  ...this.messagesBucket,
@@ -7203,7 +7180,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7203
7180
  if (this.form) {
7204
7181
  this.form.register(this, null);
7205
7182
  }
7206
- this.fullErrorBucket();
7207
7183
  }
7208
7184
  mounted() {
7209
7185
  if (this.autofocus) {
@@ -7236,6 +7212,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7236
7212
  }
7237
7213
  }
7238
7214
  else {
7215
+ if (!this.hasItems) {
7216
+ await this.fetchData();
7217
+ }
7239
7218
  this.optionsList = this.filterOptions(searchTerm);
7240
7219
  }
7241
7220
  }
@@ -7247,7 +7226,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7247
7226
  async onSelect() {
7248
7227
  if (this.handlers.select instanceof Function) {
7249
7228
  const selected = await this.handlers.select();
7250
- if (selected && selected.length) {
7229
+ if (Array.isArray(selected) && selected.length || !Array.isArray(selected) && selected) {
7251
7230
  this.selected = selected;
7252
7231
  this.onInput();
7253
7232
  this.validate();
@@ -7255,37 +7234,31 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7255
7234
  }
7256
7235
  }
7257
7236
  validate() {
7258
- this.errorBucket = [];
7259
- let funcResult = requiredRule()(this.selectedToArray);
7260
- if (funcResult !== true) {
7261
- this.validationMessage = this.messagesBucket.validation || funcResult;
7262
- return false;
7237
+ this.validationMessage = '';
7238
+ let funcResult = true;
7239
+ if (this.required) {
7240
+ funcResult = requiredRule()(this.selectedToArray);
7241
+ if (funcResult !== true) {
7242
+ this.validationMessage = this.messagesBucket.validation || funcResult;
7243
+ return false;
7244
+ }
7263
7245
  }
7264
- this.validRules.forEach(func => {
7246
+ this.myRules.forEach(func => {
7265
7247
  funcResult = func(this.selectedToArray);
7266
7248
  if (funcResult !== true) {
7267
7249
  this.validationMessage = funcResult;
7268
- if (!this.selected)
7269
- this.errorBucket.push(funcResult);
7270
7250
  }
7271
7251
  });
7272
7252
  return !this.validationMessage;
7273
7253
  }
7274
- fullErrorBucket() {
7275
- this.errorBucket = [];
7276
- let funcResult = null;
7277
- this.validRules.forEach(func => {
7278
- funcResult = func(this.selectedToArray);
7279
- if (funcResult !== true) {
7280
- this.errorBucket.push(funcResult);
7281
- }
7282
- });
7283
- }
7284
7254
  onInput() {
7285
7255
  this.$nextTick(() => {
7286
7256
  this.checkedItems = [...this.selectedIds];
7287
7257
  });
7288
7258
  this.emitUpdate();
7259
+ if (this.required) {
7260
+ this.validate();
7261
+ }
7289
7262
  }
7290
7263
  onCheckItem(checked, item) {
7291
7264
  if (Array.isArray(this.selected)) {
@@ -7317,6 +7290,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7317
7290
  this.readedItems = await this.handlers.fetchData();
7318
7291
  }
7319
7292
  }
7293
+ get hasItems() {
7294
+ return this.readedItems.length > 0;
7295
+ }
7320
7296
  get showHint() {
7321
7297
  return this.validationMessage || Boolean(this.inputHint && this.persistentHint);
7322
7298
  }
@@ -7330,7 +7306,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7330
7306
  return this.validationMessage ? this.validationMessage : this.inputHint;
7331
7307
  }
7332
7308
  get hasError() {
7333
- return Boolean(this.validationMessage) || this.errorBucket.length > 0;
7309
+ return Boolean(this.validationMessage);
7334
7310
  }
7335
7311
  get singeItem() {
7336
7312
  return this.toSingleItem(this.selected);
@@ -7344,9 +7320,6 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
7344
7320
  }
7345
7321
  return this.selectedToArray.map(item => this.itemIdentity(item));
7346
7322
  }
7347
- get showInput() {
7348
- return this.multiselect || !this.selectedIds.length;
7349
- }
7350
7323
  get canRemove() {
7351
7324
  const result = !this.readonly && !this.disabled;
7352
7325
  if (!result) {
@@ -7430,7 +7403,7 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7430
7403
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Number)
7431
7404
  ], SelectListBoxComponent.prototype, "limit", void 0);
7432
7405
  ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7433
- (0,external_vue_property_decorator_.Prop)({ default: true }),
7406
+ (0,external_vue_property_decorator_.Prop)({ default: false }),
7434
7407
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
7435
7408
  ], SelectListBoxComponent.prototype, "disableDialog", void 0);
7436
7409
  ld_select_list_boxvue_type_script_lang_ts_external_decorate([
@@ -7445,10 +7418,6 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7445
7418
  (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
7446
7419
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
7447
7420
  ], SelectListBoxComponent.prototype, "allowEmpty", void 0);
7448
- ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7449
- (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
7450
- ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
7451
- ], SelectListBoxComponent.prototype, "setFocus", void 0);
7452
7421
  ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7453
7422
  (0,external_vue_property_decorator_.Prop)({ default: () => ({}) }),
7454
7423
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
@@ -7493,12 +7462,6 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7493
7462
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
7494
7463
  ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
7495
7464
  ], SelectListBoxComponent.prototype, "onValueChanged", null);
7496
- ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7497
- (0,external_vue_property_decorator_.Watch)('showInput'),
7498
- ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Function),
7499
- ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
7500
- ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
7501
- ], SelectListBoxComponent.prototype, "onShowInputChange", null);
7502
7465
  SelectListBoxComponent = ld_select_list_boxvue_type_script_lang_ts_external_decorate([
7503
7466
  (0,external_vue_property_decorator_.Options)({
7504
7467
  components: {
@@ -7519,7 +7482,7 @@ SelectListBoxComponent = ld_select_list_boxvue_type_script_lang_ts_external_deco
7519
7482
  ;
7520
7483
 
7521
7484
 
7522
- const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',ld_select_list_boxvue_type_template_id_1cac121a_scoped_true_ts_true_render],['__scopeId',"data-v-1cac121a"]])
7485
+ const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',ld_select_list_boxvue_type_template_id_f07bf04a_scoped_true_ts_true_render],['__scopeId',"data-v-f07bf04a"]])
7523
7486
 
7524
7487
  /* harmony default export */ const ld_select_list_box = (ld_select_list_box_exports_);
7525
7488
  ;// CONCATENATED MODULE: ./src/ld-select-list-box/index.ts
@@ -7788,20 +7751,20 @@ function ld_checkbox_reg(vue, options) {
7788
7751
  }
7789
7752
  /* harmony default export */ const src_ld_checkbox = (ld_checkbox_reg);
7790
7753
 
7791
- ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=5bb8c592&scoped=true&ts=true
7754
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=2d8a7abd&scoped=true&ts=true
7792
7755
 
7793
- const ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-5bb8c592"), n = n(), _popScopeId(), n);
7794
- const ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_1 = {
7756
+ const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-2d8a7abd"), n = n(), _popScopeId(), n);
7757
+ const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_1 = {
7795
7758
  key: 1,
7796
7759
  class: "text-color w-auto",
7797
7760
  style: {}
7798
7761
  };
7799
- const ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_2 = {
7762
+ const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_2 = {
7800
7763
  class: "mr-1 d-flex flex-grow-0 align-center",
7801
7764
  style: { "max-width": "100%" }
7802
7765
  };
7803
- const ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_3 = ["value", "id", "disabled", "checked"];
7804
- function ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
7766
+ const ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_3 = ["value", "id", "disabled", "checked"];
7767
+ function ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
7805
7768
  const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
7806
7769
  return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
7807
7770
  class: (0,external_vue_.normalizeClass)(["ld-radiobutton", {
@@ -7830,15 +7793,15 @@ function ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render(
7830
7793
  ]),
7831
7794
  _: 1
7832
7795
  }))
7833
- : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.label), 1))
7796
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.label), 1))
7834
7797
  ]),
7835
7798
  (0,external_vue_.createTextVNode)(),
7836
- (0,external_vue_.createElementVNode)("div", ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_2, [
7799
+ (0,external_vue_.createElementVNode)("div", ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_2, [
7837
7800
  (0,external_vue_.createElementVNode)("input", {
7838
7801
  ref: "radioInput",
7839
7802
  type: "radio",
7840
7803
  style: { "height": "var(--font-size)" },
7841
- class: (0,external_vue_.normalizeClass)({ checked: _ctx.isActive }),
7804
+ class: (0,external_vue_.normalizeClass)({ checked: _ctx.isActive, 'cursor-pointer': !_ctx.isDisabled }),
7842
7805
  value: _ctx.value,
7843
7806
  id: `radiobutton-${_ctx.uid}`,
7844
7807
  disabled: _ctx.isDisabled,
@@ -7847,12 +7810,12 @@ function ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render(
7847
7810
  onBlur: _cache[2] || (_cache[2] =
7848
7811
  //@ts-ignore
7849
7812
  (...args) => (_ctx.emitBlur && _ctx.emitBlur(...args)))
7850
- }, null, 42, ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_hoisted_3)
7813
+ }, null, 42, ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_hoisted_3)
7851
7814
  ])
7852
7815
  ], 2));
7853
7816
  }
7854
7817
 
7855
- ;// CONCATENATED MODULE: ./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=5bb8c592&scoped=true&ts=true
7818
+ ;// CONCATENATED MODULE: ./src/ld-radiobutton/ld-radiobutton.vue?vue&type=template&id=2d8a7abd&scoped=true&ts=true
7856
7819
 
7857
7820
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-radiobutton/ld-radiobutton.ts?vue&type=script&lang=ts&external
7858
7821
  var ld_radiobuttonvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -7947,7 +7910,7 @@ ld_radiobuttonvue_type_script_lang_ts_external_decorate([
7947
7910
  ;
7948
7911
 
7949
7912
 
7950
- const ld_radiobutton_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(RadiobuttonComponent, [['render',ld_radiobuttonvue_type_template_id_5bb8c592_scoped_true_ts_true_render],['__scopeId',"data-v-5bb8c592"]])
7913
+ const ld_radiobutton_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(RadiobuttonComponent, [['render',ld_radiobuttonvue_type_template_id_2d8a7abd_scoped_true_ts_true_render],['__scopeId',"data-v-2d8a7abd"]])
7951
7914
 
7952
7915
  /* harmony default export */ const ld_radiobutton = (ld_radiobutton_exports_);
7953
7916
  ;// CONCATENATED MODULE: ./src/ld-radiobutton/index.ts
@@ -7957,22 +7920,22 @@ function ld_radiobutton_reg(vue, options) {
7957
7920
  }
7958
7921
  /* harmony default export */ const src_ld_radiobutton = (ld_radiobutton_reg);
7959
7922
 
7960
- ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=0aee9d13&scoped=true&ts=true
7923
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=1c1e9efc&scoped=true&ts=true
7961
7924
 
7962
- const ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-0aee9d13"), n = n(), _popScopeId(), n);
7963
- const ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_1 = {
7925
+ const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-1c1e9efc"), n = n(), _popScopeId(), n);
7926
+ const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_1 = {
7964
7927
  key: 1,
7965
7928
  class: "d-flex flex-wrap"
7966
7929
  };
7967
- const ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_2 = {
7930
+ const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_2 = {
7968
7931
  key: 2,
7969
7932
  class: "validate"
7970
7933
  };
7971
- const ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_3 = {
7934
+ const ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_3 = {
7972
7935
  key: 0,
7973
7936
  class: "error--text"
7974
7937
  };
7975
- function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
7938
+ function ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
7976
7939
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
7977
7940
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
7978
7941
  const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
@@ -8001,7 +7964,7 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
8001
7964
  return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-radiobutton']), (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(el)), null, 16));
8002
7965
  }), 256))
8003
7966
  ], true)
8004
- : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_1, [
7967
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_1, [
8005
7968
  (0,external_vue_.renderSlot)(_ctx.$slots, "default", {}, () => [
8006
7969
  ((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(_ctx.values, (el) => {
8007
7970
  return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-radiobutton']), (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(el)), null, 16));
@@ -8010,11 +7973,11 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
8010
7973
  ])),
8011
7974
  (0,external_vue_.createTextVNode)(),
8012
7975
  (!_ctx.hideDetails)
8013
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_2, [
7976
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_2, [
8014
7977
  (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
8015
7978
  default: (0,external_vue_.withCtx)(() => [
8016
7979
  (_ctx.hasError)
8017
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.validationMesssage), 1))
7980
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 1))
8018
7981
  : (0,external_vue_.createCommentVNode)("", true)
8019
7982
  ]),
8020
7983
  _: 1
@@ -8029,7 +7992,7 @@ function ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render(_
8029
7992
  }, 8, ["class"]));
8030
7993
  }
8031
7994
 
8032
- ;// CONCATENATED MODULE: ./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=0aee9d13&scoped=true&ts=true
7995
+ ;// CONCATENATED MODULE: ./src/ld-radiogroup/ld-radiogroup.vue?vue&type=template&id=1c1e9efc&scoped=true&ts=true
8033
7996
 
8034
7997
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-radiogroup/ld-radiogroup.ts?vue&type=script&lang=ts&external
8035
7998
  var ld_radiogroupvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -8065,13 +8028,9 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
8065
8028
  disabled: this.disabled,
8066
8029
  };
8067
8030
  this.radiogroup = null;
8068
- this.validationMessage = '';
8069
8031
  this.radios = [];
8070
8032
  this.internalValue = null;
8071
8033
  this.hasInput = false;
8072
- this.myRules = [];
8073
- this.errorBucket = [];
8074
- this.validationMesssage = '';
8075
8034
  this.showInputHint = false;
8076
8035
  }
8077
8036
  emitUpdateModelValue(value) {
@@ -8102,7 +8061,6 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
8102
8061
  if (this.form) {
8103
8062
  this.form.register(this, null);
8104
8063
  }
8105
- this.fullErrorBucket();
8106
8064
  this.radiogroup = {
8107
8065
  onRadioChange: () => {
8108
8066
  this.emitUpdateModelValue(this.internalValue);
@@ -8140,14 +8098,12 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
8140
8098
  }
8141
8099
  }
8142
8100
  validate() {
8143
- this.errorBucket = [];
8144
- this.validationMesssage = '';
8101
+ this.validationMessage = '';
8145
8102
  const validationResult = requiredRule()(String(this.modelValue));
8146
8103
  if (validationResult !== true) {
8147
- this.validationMesssage = validationResult;
8148
- this.errorBucket.push(validationResult);
8104
+ this.validationMessage = validationResult;
8149
8105
  }
8150
- return !this.validationMesssage;
8106
+ return !this.validationMessage;
8151
8107
  }
8152
8108
  setActiveRadio() {
8153
8109
  for (let index = this.radios.length; --index >= 0; index) {
@@ -8159,18 +8115,11 @@ let RadioGroupComponent = class RadioGroupComponent extends (0,external_vue_clas
8159
8115
  radio.isActive = this.internalValue == radio.value || lodash_es_isEqual(this.internalValue, radio.value);
8160
8116
  }
8161
8117
  }
8162
- fullErrorBucket() {
8163
- this.errorBucket = [];
8164
- const validationResult = requiredRule()(this.modelValue);
8165
- if (validationResult !== true) {
8166
- this.errorBucket.push(validationResult);
8167
- }
8168
- }
8169
8118
  get showHint() {
8170
- return Boolean(this.validationMesssage || (this.inputHint && this.showInputHint));
8119
+ return Boolean(this.validationMessage || (this.inputHint && this.showInputHint));
8171
8120
  }
8172
8121
  get hasError() {
8173
- return Boolean(this.validationMesssage) || this.errorBucket.length > 0;
8122
+ return Boolean(this.validationMessage);
8174
8123
  }
8175
8124
  };
8176
8125
  ld_radiogroupvue_type_script_lang_ts_external_decorate([
@@ -8244,7 +8193,7 @@ RadioGroupComponent = ld_radiogroupvue_type_script_lang_ts_external_decorate([
8244
8193
  ;
8245
8194
 
8246
8195
 
8247
- const ld_radiogroup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_radiogroupvue_type_script_lang_ts_external, [['render',ld_radiogroupvue_type_template_id_0aee9d13_scoped_true_ts_true_render],['__scopeId',"data-v-0aee9d13"]])
8196
+ const ld_radiogroup_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_radiogroupvue_type_script_lang_ts_external, [['render',ld_radiogroupvue_type_template_id_1c1e9efc_scoped_true_ts_true_render],['__scopeId',"data-v-1c1e9efc"]])
8248
8197
 
8249
8198
  /* harmony default export */ const ld_radiogroup = (ld_radiogroup_exports_);
8250
8199
  ;// CONCATENATED MODULE: ./src/ld-radiogroup/index.ts
@@ -8494,17 +8443,17 @@ function ld_textarea_reg(vue, options) {
8494
8443
  }
8495
8444
  /* harmony default export */ const src_ld_textarea = (ld_textarea_reg);
8496
8445
 
8497
- ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select/ld-select.vue?vue&type=template&id=6124ddba&scoped=true&ts=true
8446
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-select/ld-select.vue?vue&type=template&id=f3fdbf56&scoped=true&ts=true
8498
8447
 
8499
- const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-6124ddba"), n = n(), _popScopeId(), n);
8500
- const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_1 = { class: "ld-select" };
8501
- const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_2 = {
8448
+ const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-f3fdbf56"), n = n(), _popScopeId(), n);
8449
+ const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_1 = { class: "ld-select" };
8450
+ const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_2 = {
8502
8451
  key: 1,
8503
8452
  class: "text-crop"
8504
8453
  };
8505
- const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_3 = { class: "justify mr-2 flex items-center" };
8506
- const ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_4 = ["checked"];
8507
- function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
8454
+ const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_3 = { class: "justify mr-2 flex items-center" };
8455
+ const ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_4 = ["checked"];
8456
+ function ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
8508
8457
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
8509
8458
  const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
8510
8459
  const _component_v_icon = (0,external_vue_.resolveComponent)("v-icon");
@@ -8512,7 +8461,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8512
8461
  const _component_v_select = (0,external_vue_.resolveComponent)("v-select");
8513
8462
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
8514
8463
  const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
8515
- return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_1, [
8464
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_1, [
8516
8465
  (0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
8517
8466
  default: (0,external_vue_.withCtx)(() => [
8518
8467
  (_ctx.label)
@@ -8526,7 +8475,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8526
8475
  : (0,external_vue_.createCommentVNode)("", true),
8527
8476
  (0,external_vue_.createTextVNode)(),
8528
8477
  (0,external_vue_.createVNode)(_component_v_col, {
8529
- class: (0,external_vue_.normalizeClass)([{ 'only-view': _ctx.readonly }, _ctx.inputSizeClasses])
8478
+ class: (0,external_vue_.normalizeClass)([_ctx.inputSizeClasses])
8530
8479
  }, {
8531
8480
  default: (0,external_vue_.withCtx)(() => [
8532
8481
  (0,external_vue_.createVNode)(_component_v_select, {
@@ -8546,7 +8495,6 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8546
8495
  "error-messages": _ctx.validationMessage,
8547
8496
  readonly: _ctx.readonly,
8548
8497
  disabled: _ctx.disabled,
8549
- "menu-icon": "arrow_drop_down",
8550
8498
  onBlur: _ctx.onBlur,
8551
8499
  onFocus: _ctx.onFocus
8552
8500
  }, {
@@ -8580,7 +8528,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8580
8528
  : (0,external_vue_.createCommentVNode)("", true)
8581
8529
  ], 64))
8582
8530
  ], 64))
8583
- : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(item.title), 1))
8531
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(item.title), 1))
8584
8532
  ]),
8585
8533
  item: (0,external_vue_.withCtx)(({ item, props }) => [
8586
8534
  (0,external_vue_.createVNode)(_component_v_list_item, (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)(props)), (0,external_vue_.createSlots)({ _: 2 }, [
@@ -8588,13 +8536,13 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8588
8536
  ? {
8589
8537
  name: "prepend",
8590
8538
  fn: (0,external_vue_.withCtx)(() => [
8591
- (0,external_vue_.createElementVNode)("label", ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_3, [
8539
+ (0,external_vue_.createElementVNode)("label", ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_3, [
8592
8540
  (0,external_vue_.createElementVNode)("input", {
8593
8541
  ref: "checkbox",
8594
8542
  type: "checkbox",
8595
8543
  class: "d-none",
8596
8544
  checked: _ctx.itemSelected(item.raw)
8597
- }, null, 8, ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_hoisted_4),
8545
+ }, null, 8, ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_hoisted_4),
8598
8546
  (0,external_vue_.createTextVNode)(),
8599
8547
  (0,external_vue_.createVNode)(_component_v_icon, {
8600
8548
  icon: "check",
@@ -8623,7 +8571,7 @@ function ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render(_ctx,
8623
8571
  ]));
8624
8572
  }
8625
8573
 
8626
- ;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue?vue&type=template&id=6124ddba&scoped=true&ts=true
8574
+ ;// CONCATENATED MODULE: ./src/ld-select/ld-select.vue?vue&type=template&id=f3fdbf56&scoped=true&ts=true
8627
8575
 
8628
8576
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select/ld-select.ts?vue&type=script&lang=ts&external
8629
8577
  var ld_selectvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -8845,7 +8793,7 @@ SelectComponent = ld_selectvue_type_script_lang_ts_external_decorate([
8845
8793
  ;
8846
8794
 
8847
8795
 
8848
- const ld_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_selectvue_type_script_lang_ts_external, [['render',ld_selectvue_type_template_id_6124ddba_scoped_true_ts_true_render],['__scopeId',"data-v-6124ddba"]])
8796
+ const ld_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_selectvue_type_script_lang_ts_external, [['render',ld_selectvue_type_template_id_f3fdbf56_scoped_true_ts_true_render],['__scopeId',"data-v-f3fdbf56"]])
8849
8797
 
8850
8798
  /* harmony default export */ const ld_select = (ld_select_exports_);
8851
8799
  ;// CONCATENATED MODULE: ./src/ld-select/index.ts
@@ -8855,6 +8803,653 @@ function ld_select_reg(vue, options) {
8855
8803
  }
8856
8804
  /* harmony default export */ const src_ld_select = (ld_select_reg);
8857
8805
 
8806
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-combobox/ld-combobox.vue?vue&type=template&id=7bbbdbd8&scoped=true&ts=true
8807
+
8808
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-7bbbdbd8"), n = n(), _popScopeId(), n);
8809
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_1 = { class: "text-crop" };
8810
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_2 = {
8811
+ key: 0,
8812
+ class: "d-flex align-center"
8813
+ };
8814
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_3 = { class: "d-flex flex-column justify-center" };
8815
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_4 = {
8816
+ key: 0,
8817
+ class: "grey--text",
8818
+ style: { "font-size": "var(--font-size--1)" }
8819
+ };
8820
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_5 = {
8821
+ key: 0,
8822
+ class: "combobox-loading"
8823
+ };
8824
+ const ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_6 = {
8825
+ key: 0,
8826
+ class: "combobox-validate"
8827
+ };
8828
+ function ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
8829
+ const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
8830
+ const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
8831
+ const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
8832
+ const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
8833
+ const _component_multiselect = (0,external_vue_.resolveComponent)("multiselect");
8834
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_row, {
8835
+ "no-gutters": "",
8836
+ class: "ld-combobox"
8837
+ }, {
8838
+ default: (0,external_vue_.withCtx)(() => [
8839
+ (_ctx.label)
8840
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_label, {
8841
+ key: 0,
8842
+ class: (0,external_vue_.normalizeClass)([_ctx.labelSizeClasses]),
8843
+ label: _ctx.label,
8844
+ required: _ctx.required,
8845
+ "align-label-to-right": _ctx.alignLabelToRight
8846
+ }, null, 8, ["class", "label", "required", "align-label-to-right"]))
8847
+ : (0,external_vue_.createCommentVNode)("", true),
8848
+ (0,external_vue_.createTextVNode)(),
8849
+ (0,external_vue_.createVNode)(_component_v_col, {
8850
+ class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
8851
+ }, {
8852
+ default: (0,external_vue_.withCtx)(() => [
8853
+ (0,external_vue_.createVNode)(_component_v_row, {
8854
+ "no-gutters": "",
8855
+ style: { "border-radius": "var(--border-radius)", "overflow": "hidden" }
8856
+ }, {
8857
+ default: (0,external_vue_.withCtx)(() => [
8858
+ (0,external_vue_.createVNode)(_component_v_col, {
8859
+ class: "d-flex",
8860
+ style: { "position": "relative" }
8861
+ }, {
8862
+ default: (0,external_vue_.withCtx)(() => [
8863
+ (0,external_vue_.createVNode)(_component_multiselect, {
8864
+ ref: "multiselect",
8865
+ modelValue: _ctx.selected,
8866
+ "onUpdate:modelValue": [
8867
+ _cache[0] || (_cache[0] = ($event) => ((_ctx.selected) = $event)),
8868
+ _ctx.onInput
8869
+ ],
8870
+ "track-by": "id",
8871
+ class: "multiselect--arrow",
8872
+ multiple: _ctx.multiselect,
8873
+ placeholder: _ctx.placeholder,
8874
+ "select-label": '',
8875
+ options: _ctx.optionsList,
8876
+ searchable: true,
8877
+ "internal-search": _ctx.internalSearch,
8878
+ "clear-on-select": true,
8879
+ "close-on-select": !_ctx.multiselect,
8880
+ "options-limit": 300,
8881
+ "max-height": 250,
8882
+ "show-no-results": true,
8883
+ "show-no-options": false,
8884
+ disabled: _ctx.readonly || _ctx.disabled,
8885
+ limit: _ctx.limit,
8886
+ tabindex: _ctx.tabIndex,
8887
+ allowEmpty: _ctx.allowEmpty,
8888
+ onClose: _ctx.dropdownClose,
8889
+ onOpen: _ctx.goSearch,
8890
+ onSearchChange: _ctx.getItems
8891
+ }, {
8892
+ tag: (0,external_vue_.withCtx)(({ option }) => [
8893
+ (0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({
8894
+ item: option,
8895
+ onRemove: _ctx.onRemoveItem,
8896
+ canRemove: _ctx.canRemove,
8897
+ })), () => [
8898
+ ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
8899
+ key: JSON.stringify(option),
8900
+ color: _ctx.disabled ? 'grey' : 'primary',
8901
+ closable: _ctx.canRemove,
8902
+ "onClick:close": ($event) => (_ctx.onRemoveItem(option))
8903
+ }, {
8904
+ default: (0,external_vue_.withCtx)(() => [
8905
+ (0,external_vue_.createElementVNode)("span", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_1, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
8906
+ ]),
8907
+ _: 2
8908
+ }, 1032, ["color", "closable", "onClick:close"]))
8909
+ ], true)
8910
+ ]),
8911
+ option: (0,external_vue_.withCtx)(({ option }) => [
8912
+ (0,external_vue_.createVNode)(_component_v_row, {
8913
+ "no-gutters": "",
8914
+ class: "mb-1"
8915
+ }, {
8916
+ default: (0,external_vue_.withCtx)(() => [
8917
+ (0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center py-1" }, {
8918
+ default: (0,external_vue_.withCtx)(() => [
8919
+ (_ctx.multiselect)
8920
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_2, [
8921
+ ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
8922
+ key: JSON.stringify(option),
8923
+ "model-value": _ctx.checkedItems,
8924
+ "initial-value": _ctx.$utils.deepValueGetter(option, _ctx.itemValue),
8925
+ "onUpdate:modelValue": ($event) => (_ctx.onCheckItem($event, option))
8926
+ }, null, 8, ["model-value", "initial-value", "onUpdate:modelValue"]))
8927
+ ]))
8928
+ : (0,external_vue_.createCommentVNode)("", true),
8929
+ (0,external_vue_.createTextVNode)(),
8930
+ (0,external_vue_.createElementVNode)("div", {
8931
+ class: (0,external_vue_.normalizeClass)(["d-flex align-center", { 'ml-1': _ctx.multiselect }])
8932
+ }, [
8933
+ (0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
8934
+ (0,external_vue_.createTextVNode)(),
8935
+ (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_3, [
8936
+ (0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
8937
+ (0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
8938
+ ], true),
8939
+ (0,external_vue_.createTextVNode)(),
8940
+ (_ctx.optionHint)
8941
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_4, [
8942
+ (0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), undefined, true)
8943
+ ]))
8944
+ : (0,external_vue_.createCommentVNode)("", true)
8945
+ ])
8946
+ ], 2)
8947
+ ]),
8948
+ _: 2
8949
+ }, 1024)
8950
+ ]),
8951
+ _: 2
8952
+ }, 1024)
8953
+ ]),
8954
+ noResult: (0,external_vue_.withCtx)(() => [
8955
+ (0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.message), 1)
8956
+ ]),
8957
+ _: 3
8958
+ }, 8, ["modelValue", "multiple", "placeholder", "options", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allowEmpty", "onClose", "onOpen", "onSearchChange", "onUpdate:modelValue"]),
8959
+ (0,external_vue_.createTextVNode)(),
8960
+ (_ctx.loading)
8961
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_5))
8962
+ : (0,external_vue_.createCommentVNode)("", true)
8963
+ ]),
8964
+ _: 3
8965
+ })
8966
+ ]),
8967
+ _: 3
8968
+ }),
8969
+ (0,external_vue_.createTextVNode)(),
8970
+ (!_ctx.hideDetails)
8971
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_hoisted_6, [
8972
+ (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
8973
+ default: (0,external_vue_.withCtx)(() => [
8974
+ (_ctx.showHint)
8975
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", {
8976
+ key: 0,
8977
+ style: { "font-size": "var(--font-size--1)" },
8978
+ class: (0,external_vue_.normalizeClass)({ 'error--text': _ctx.warningHint, 'grey--text': !_ctx.validationMessage })
8979
+ }, (0,external_vue_.toDisplayString)(_ctx.displayingInputHint), 3))
8980
+ : (0,external_vue_.createCommentVNode)("", true)
8981
+ ]),
8982
+ _: 1
8983
+ })
8984
+ ]))
8985
+ : (0,external_vue_.createCommentVNode)("", true)
8986
+ ]),
8987
+ _: 3
8988
+ }, 8, ["class"])
8989
+ ]),
8990
+ _: 3
8991
+ }));
8992
+ }
8993
+
8994
+ ;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=7bbbdbd8&scoped=true&ts=true
8995
+
8996
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-combobox/ld-combobox.ts?vue&type=script&lang=ts&external
8997
+ var ld_comboboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8998
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8999
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9000
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9001
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9002
+ };
9003
+ var ld_comboboxvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
9004
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9005
+ };
9006
+ var ld_comboboxvue_type_script_lang_ts_external_a, ld_comboboxvue_type_script_lang_ts_external_b;
9007
+
9008
+
9009
+
9010
+
9011
+
9012
+
9013
+
9014
+
9015
+
9016
+
9017
+
9018
+
9019
+ class InternalError extends Error {
9020
+ constructor(message = 'internal error') {
9021
+ super(message);
9022
+ }
9023
+ }
9024
+ /**
9025
+ * @displayName ld-combobox
9026
+ */
9027
+ let ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin, FloatingUI) {
9028
+ constructor() {
9029
+ super(...arguments);
9030
+ this.readedItems = [];
9031
+ this.optionsList = [];
9032
+ this.selected = [];
9033
+ this.checkedItems = [];
9034
+ this.getItems = null;
9035
+ this.errors = [];
9036
+ this.messagesBucket = {
9037
+ search: 'Идет поиск...',
9038
+ empty: 'Поиск не дал результатов',
9039
+ validation: ''
9040
+ };
9041
+ this.message = '';
9042
+ this.loading = false;
9043
+ }
9044
+ emitUpdateValue() {
9045
+ if (this.multiselect) {
9046
+ return this.selectedIds;
9047
+ }
9048
+ else {
9049
+ return this.selectedIds.length ? this.selectedIds[0] : null;
9050
+ }
9051
+ }
9052
+ emitUpdateItems() {
9053
+ return this.selectedToArray;
9054
+ }
9055
+ emitInput() {
9056
+ return true;
9057
+ }
9058
+ emitBlur(value) {
9059
+ return value;
9060
+ }
9061
+ emitClick() {
9062
+ return true;
9063
+ }
9064
+ async onValueChanged(value) {
9065
+ if (!this.$utils.isDefined(value)) {
9066
+ return;
9067
+ }
9068
+ let val = this.toArray(value);
9069
+ if (lodash_es_isEqual(val, this.selectedIds)) {
9070
+ return;
9071
+ }
9072
+ if (val.length) {
9073
+ try {
9074
+ await this.setSelected(val);
9075
+ }
9076
+ catch (e) {
9077
+ this.throwError(e);
9078
+ }
9079
+ }
9080
+ else if (!this.hasItems && !this.lazyLoad) {
9081
+ try {
9082
+ await this.fetchItems();
9083
+ }
9084
+ catch (e) {
9085
+ this.throwError(e);
9086
+ }
9087
+ }
9088
+ }
9089
+ onItemsChanged() {
9090
+ this.onValueChanged(this.modelValue);
9091
+ }
9092
+ created() {
9093
+ this.messagesBucket = {
9094
+ ...this.messagesBucket,
9095
+ ...this.messages,
9096
+ };
9097
+ this.message = this.messagesBucket.search;
9098
+ this.getItems = lodash_es_debounce(this.goSearch.bind(this), 600);
9099
+ if (this.form) {
9100
+ this.form.register(this, null);
9101
+ }
9102
+ }
9103
+ mounted() {
9104
+ if (this.autofocus) {
9105
+ const selectElem = this.$refs.multiselect.$el;
9106
+ if (selectElem) {
9107
+ selectElem.getElementsByClassName('multiselect__input')[0].focus();
9108
+ }
9109
+ }
9110
+ }
9111
+ unmounted() {
9112
+ if (this.form) {
9113
+ this.form.unregister(this, null);
9114
+ }
9115
+ }
9116
+ async goSearch(searchTerm) {
9117
+ if (this.hasItems || this.hasReadedItems) {
9118
+ this.optionsList = this.filterOptions(searchTerm);
9119
+ if (this.optionsList.length === 0) {
9120
+ this.message = this.messagesBucket.empty;
9121
+ }
9122
+ return;
9123
+ }
9124
+ try {
9125
+ this.loading = true;
9126
+ await this.fetchItems(searchTerm);
9127
+ this.optionsList = this.filterOptions(this.internalSearch ? searchTerm : null);
9128
+ }
9129
+ catch (e) {
9130
+ this.throwError(e);
9131
+ }
9132
+ finally {
9133
+ this.loading = false;
9134
+ }
9135
+ }
9136
+ dropdownClose() {
9137
+ this.validate();
9138
+ this.emitBlur(this.selectedToArray);
9139
+ }
9140
+ validate() {
9141
+ this.validationMessage = '';
9142
+ let funcResult = true;
9143
+ if (this.required) {
9144
+ funcResult = requiredRule()(this.selectedToArray);
9145
+ if (funcResult !== true) {
9146
+ this.validationMessage = this.messagesBucket.validation || funcResult;
9147
+ return false;
9148
+ }
9149
+ }
9150
+ this.myRules.forEach(func => {
9151
+ funcResult = func(this.selectedToArray);
9152
+ if (funcResult !== true) {
9153
+ this.validationMessage = funcResult;
9154
+ }
9155
+ });
9156
+ return !this.validationMessage;
9157
+ }
9158
+ onInput() {
9159
+ this.$nextTick(() => {
9160
+ this.checkedItems = [...this.selectedIds];
9161
+ });
9162
+ this.emitUpdate();
9163
+ if (this.required) {
9164
+ this.validate();
9165
+ }
9166
+ }
9167
+ onCheckItem(checked, item) {
9168
+ if (Array.isArray(this.selected)) {
9169
+ const id = this.itemIdentity(item);
9170
+ if (checked.includes(id)) {
9171
+ this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
9172
+ }
9173
+ else {
9174
+ this.selected.push({ ...item });
9175
+ }
9176
+ this.onInput();
9177
+ }
9178
+ }
9179
+ onRemoveItem(item) {
9180
+ const id = this.itemIdentity(item);
9181
+ if (Array.isArray(this.selected)) {
9182
+ this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
9183
+ }
9184
+ else {
9185
+ this.selected = null;
9186
+ }
9187
+ this.onInput();
9188
+ }
9189
+ itemIdentity(item) {
9190
+ return this.$utils.deepValueGetter(item, this.itemValue);
9191
+ }
9192
+ emitUpdate() {
9193
+ this.emitUpdateValue();
9194
+ this.emitUpdateItems();
9195
+ this.emitInput();
9196
+ }
9197
+ async fetchItems(searchTerm = null) {
9198
+ if (this.fetchData instanceof Function) {
9199
+ try {
9200
+ this.loading = true;
9201
+ this.readedItems = await this.fetchData(searchTerm);
9202
+ }
9203
+ catch (e) {
9204
+ /* eslint-disable no-console */
9205
+ console.error(e);
9206
+ }
9207
+ finally {
9208
+ this.loading = false;
9209
+ }
9210
+ }
9211
+ else {
9212
+ throw new InternalError();
9213
+ }
9214
+ }
9215
+ async setSelected(ids) {
9216
+ const func = (item) => {
9217
+ const id = this.$utils.deepValueGetter(item, this.itemValue);
9218
+ ;
9219
+ return ids.includes(id);
9220
+ };
9221
+ const find = (items) => {
9222
+ return this.multiselect ? items.filter(func) : items.find(func);
9223
+ };
9224
+ if (this.hasItems) {
9225
+ this.selected = find(this.items);
9226
+ this.onInput();
9227
+ return;
9228
+ }
9229
+ if (this.itemsIsDefined) {
9230
+ return;
9231
+ }
9232
+ if (!this.hasReadedItems) {
9233
+ await this.fetchItems();
9234
+ }
9235
+ if (this.hasReadedItems) {
9236
+ this.selected = find(this.readedItems);
9237
+ this.onInput();
9238
+ }
9239
+ }
9240
+ filterOptions(searchTerm) {
9241
+ const func = (item) => {
9242
+ if (this.itemTitle in item) {
9243
+ const value = String(this.$utils.deepValueGetter(item, this.itemTitle));
9244
+ return value.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1;
9245
+ }
9246
+ };
9247
+ if (this.hasItems) {
9248
+ return searchTerm ? this.items.filter(func) : this.items;
9249
+ }
9250
+ if (this.hasReadedItems) {
9251
+ return searchTerm ? this.readedItems.filter(func) : this.readedItems;
9252
+ }
9253
+ return [];
9254
+ }
9255
+ toArray(value) {
9256
+ if (!this.$utils.isDefined(value)) {
9257
+ return [];
9258
+ }
9259
+ if (Array.isArray(value)) {
9260
+ return [...value];
9261
+ }
9262
+ return [value];
9263
+ }
9264
+ throwError(e) {
9265
+ if (e instanceof InternalError || e.message === 'internal error') {
9266
+ //
9267
+ }
9268
+ else {
9269
+ /* eslint-disable no-console */
9270
+ console.error(e);
9271
+ }
9272
+ }
9273
+ get itemsIsDefined() {
9274
+ return this.items !== undefined;
9275
+ }
9276
+ get hasItems() {
9277
+ return Array.isArray(this.items) && this.items.length > 0;
9278
+ }
9279
+ get hasReadedItems() {
9280
+ return Array.isArray(this.readedItems) && this.readedItems.length > 0;
9281
+ }
9282
+ get showHint() {
9283
+ return this.validationMessage || Boolean(this.inputHint && this.persistentHint);
9284
+ }
9285
+ get warningHint() {
9286
+ return Boolean(this.validationMessage) || this.errors.length > 0;
9287
+ }
9288
+ get displayingInputHint() {
9289
+ if (this.errors.length) {
9290
+ return this.errors[this.errors.length - 1];
9291
+ }
9292
+ return this.validationMessage ? this.validationMessage : this.inputHint;
9293
+ }
9294
+ get hasError() {
9295
+ return Boolean(this.validationMessage);
9296
+ }
9297
+ get selectedToArray() {
9298
+ return this.toArray(this.selected);
9299
+ }
9300
+ get selectedIds() {
9301
+ if (!this.selectedToArray.length) {
9302
+ return [];
9303
+ }
9304
+ return this.selectedToArray.map(item => this.itemIdentity(item));
9305
+ }
9306
+ get canRemove() {
9307
+ const result = !this.readonly && !this.disabled;
9308
+ if (!result) {
9309
+ return false;
9310
+ }
9311
+ if (!this.allowEmpty && this.multiselect && Array.isArray(this.selected)) {
9312
+ return this.selected.length > 1;
9313
+ }
9314
+ return result;
9315
+ }
9316
+ };
9317
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9318
+ (0,external_vue_property_decorator_.Prop)(),
9319
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
9320
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "modelValue", void 0);
9321
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9322
+ (0,external_vue_property_decorator_.Prop)(),
9323
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
9324
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "modelItems", void 0);
9325
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9326
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
9327
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9328
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "multiselect", void 0);
9329
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9330
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: 'value' }),
9331
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
9332
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "itemTitle", void 0);
9333
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9334
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: 'id' }),
9335
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
9336
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "itemValue", void 0);
9337
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9338
+ (0,external_vue_property_decorator_.Prop)({ type: Object, default: () => ({}) }),
9339
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
9340
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "messages", void 0);
9341
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9342
+ (0,external_vue_property_decorator_.Prop)(),
9343
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", String)
9344
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "inputHint", void 0);
9345
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9346
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
9347
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9348
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "persistentHint", void 0);
9349
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9350
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
9351
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9352
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "optionHint", void 0);
9353
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9354
+ (0,external_vue_property_decorator_.Prop)(),
9355
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Number)
9356
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "limit", void 0);
9357
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9358
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
9359
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9360
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "internalSearch", void 0);
9361
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9362
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
9363
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9364
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "allowEmpty", void 0);
9365
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9366
+ (0,external_vue_property_decorator_.Prop)({ type: Array, default: undefined }),
9367
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", typeof (ld_comboboxvue_type_script_lang_ts_external_b = typeof Array !== "undefined" && Array) === "function" ? ld_comboboxvue_type_script_lang_ts_external_b : Object)
9368
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "items", void 0);
9369
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9370
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
9371
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
9372
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "lazyLoad", void 0);
9373
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9374
+ (0,external_vue_property_decorator_.Prop)(),
9375
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function)
9376
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "fetchData", void 0);
9377
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9378
+ (0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
9379
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Object)
9380
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "form", void 0);
9381
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9382
+ Emit('update:model-value'),
9383
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9384
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
9385
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9386
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitUpdateValue", null);
9387
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9388
+ Emit('update:model-items'),
9389
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9390
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
9391
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9392
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitUpdateItems", null);
9393
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9394
+ Emit('input'),
9395
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9396
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
9397
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9398
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitInput", null);
9399
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9400
+ Emit('blur'),
9401
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9402
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
9403
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9404
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitBlur", null);
9405
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9406
+ Emit('click'),
9407
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9408
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
9409
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9410
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "emitClick", null);
9411
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9412
+ (0,external_vue_property_decorator_.Watch)('modelValue', { deep: true, immediate: true }),
9413
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9414
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", [Object]),
9415
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
9416
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "onValueChanged", null);
9417
+ ld_comboboxvue_type_script_lang_ts_external_decorate([
9418
+ (0,external_vue_property_decorator_.Watch)('items'),
9419
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:type", Function),
9420
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
9421
+ ld_comboboxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
9422
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent.prototype, "onItemsChanged", null);
9423
+ ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = ld_comboboxvue_type_script_lang_ts_external_decorate([
9424
+ (0,external_vue_property_decorator_.Options)({
9425
+ components: {
9426
+ 'ld-label': ld_label,
9427
+ 'multiselect': (external_multiselect_js_default()),
9428
+ },
9429
+ })
9430
+ ], ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent);
9431
+ /* harmony default export */ const ld_comboboxvue_type_script_lang_ts_external = (ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent);
9432
+
9433
+ ;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.ts?vue&type=script&lang=ts&external
9434
+
9435
+ ;// CONCATENATED MODULE: ./src/ld-combobox/ld-combobox.vue
9436
+
9437
+
9438
+
9439
+
9440
+ ;
9441
+
9442
+
9443
+ const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',ld_comboboxvue_type_template_id_7bbbdbd8_scoped_true_ts_true_render],['__scopeId',"data-v-7bbbdbd8"]])
9444
+
9445
+ /* harmony default export */ const ld_combobox = (ld_combobox_exports_);
9446
+ ;// CONCATENATED MODULE: ./src/ld-combobox/index.ts
9447
+
9448
+ function ld_combobox_reg(vue, options) {
9449
+ vue.component(options.aliases['ld-combobox'], ld_combobox);
9450
+ }
9451
+ /* harmony default export */ const src_ld_combobox = (ld_combobox_reg);
9452
+
8858
9453
  ;// CONCATENATED MODULE: ./src/utils/delay.ts
8859
9454
  async function delay(timeout) {
8860
9455
  return new Promise(resolve => setTimeout(() => resolve(), timeout));
@@ -9270,6 +9865,7 @@ const ActiveDirectiveOptions = {
9270
9865
 
9271
9866
 
9272
9867
 
9868
+
9273
9869
 
9274
9870
 
9275
9871
  const ldmuiPlugin = {
@@ -9296,6 +9892,7 @@ const ldmuiPlugin = {
9296
9892
  'ld-radiogroup': options.aliases?.['ld-radiogroup'] ?? 'ld-radiogroup',
9297
9893
  'ld-textarea': options.aliases?.['ld-textarea'] ?? 'ld-textarea',
9298
9894
  'ld-select': options.aliases?.['ld-select'] ?? 'ld-select',
9895
+ 'ld-combobox': options.aliases?.['ld-combobox'] ?? 'ld-combobox',
9299
9896
  };
9300
9897
  vue.config.globalProperties.$utils = {
9301
9898
  ...utils_namespaceObject,
@@ -9328,6 +9925,7 @@ const ldmuiPlugin = {
9328
9925
  src_ld_radiogroup(vue, options);
9329
9926
  src_ld_textarea(vue, options);
9330
9927
  src_ld_select(vue, options);
9928
+ src_ld_combobox(vue, options);
9331
9929
  },
9332
9930
  };
9333
9931
  /* harmony default export */ const src = (ldmuiPlugin);