@ldmjs/ui 1.0.54 → 1.0.55

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.
@@ -11,7 +11,7 @@
11
11
  .ld-ragiogroup .validate[data-v-bd740210]{overflow:hidden;height:20px}.ld-ragiogroup--row[data-v-bd740210] .ld-radiobutton:not(:first-child){margin-left:8px}
12
12
  .ld-textarea[data-v-5e5438c4]{display:flex;min-width:100%;max-width:100%;width:100%}[data-v-5e5438c4] .none-resizable textarea{resize:none}
13
13
  .ld-select[data-v-5d9c6c2a]{position:relative;min-width:100%}.ld-select[data-v-5d9c6c2a] .v-field__append-inner{display:none}.ld-select[data-v-5d9c6c2a] .v-select{position:relative}.ld-select[data-v-5d9c6c2a] .v-select:before{display:block;position:absolute;right:20px;top:calc(var(--input-height)/2);margin-top:-2px;color:var(--grey);border-style:solid;border-width:5px 5px 0;border-color:var(--grey) rgba(0,0,0,0) rgba(0,0,0,0);transition:transform .2s ease;content:"";z-index:1}.ld-select[data-v-5d9c6c2a] .v-select--active-menu:before{transform:rotate(180deg)}input[type=checkbox]+.v-icon[data-v-5d9c6c2a]{display:block;width:12px !important;height:12px !important;font-size:10px !important;background-color:var(--white);color:rgba(0,0,0,0);border:1px solid var(--grey-l-5)}input[type=checkbox]:checked+.v-icon[data-v-5d9c6c2a]{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.v-list-item--density-compact.v-list-item--one-line[data-v-5d9c6c2a]{min-height:var(--input-height)}.v-list-item--density-compact.v-list-item--one-line[data-v-5d9c6c2a] .v-list-item__content{display:flex;flex-wrap:nowrap}.v-list-item--density-compact.v-list-item--one-line[data-v-5d9c6c2a] .v-list-item__content .v-list-item-title{font-size:var(--font-size)}
14
- .ld-combobox[data-v-af1428d4]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-af1428d4]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-af1428d4]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-af1428d4]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-af1428d4 1.4s linear;animation-iteration-count:infinite}@keyframes loading-af1428d4{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
14
+ .ld-combobox[data-v-63c0f476]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-63c0f476]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-63c0f476]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-63c0f476]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-63c0f476 1.4s linear;animation-iteration-count:infinite}@keyframes loading-63c0f476{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
15
15
  .time-selector[data-v-15511ea0]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-15511ea0]{display:inline-block;width:100%;text-align:center;font-family:"Roboto";font-size:var(--font-size-2);font-weight:700}.time-selector .v-btn[data-v-15511ea0]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}.ld-timepicker-validate[data-v-15511ea0]{overflow:hidden;height:20px}
16
16
  .ld-text-viewer[data-v-3fa037a4]{min-width:100%;display:flex;flex-direction:column;white-space:break-spaces;font-size:var(--font-size)}.ld-text-viewer .column[data-v-3fa037a4]{flex-flow:column}
17
17
  .ld-edit-masked-text[data-v-33aa4ec6]{min-width:100%;font-size:inherit !important;display:flex}.ld-edit-masked-text .column[data-v-33aa4ec6]{flex-flow:column}input[data-v-33aa4ec6]{border:1px solid var(--grey-l-5);border-radius:var(--border-radius);width:100%;padding:0 8px;font-size:var(--font-size);height:var(--input-height)}input[data-v-33aa4ec6]:focus,input[data-v-33aa4ec6]:active{outline:none;border:1px solid var(--grey-l-4)}.ld-edit-masked-text-validate[data-v-33aa4ec6]{overflow:hidden;height:20px}
package/dist/index.js CHANGED
@@ -11294,7 +11294,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
11294
11294
  }
11295
11295
  let val = Array.from(new Set(this.toArray(value)));
11296
11296
  if (!val.length) {
11297
- this.clear();
11297
+ if (this.hasSelected) {
11298
+ this.clear();
11299
+ }
11298
11300
  return;
11299
11301
  }
11300
11302
  if (lodash_es_isEqual(val, this.selectedIds)) {
@@ -11534,7 +11536,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
11534
11536
  });
11535
11537
  }
11536
11538
  toArray(value) {
11537
- if (!this.$utils.isDefined(value)) {
11539
+ if (!this.$utils.isDefined(value) || value === '') {
11538
11540
  return [];
11539
11541
  }
11540
11542
  if (Array.isArray(value)) {
@@ -13126,33 +13128,33 @@ function ld_select_reg(vue, options) {
13126
13128
  }
13127
13129
  /* harmony default export */ const src_ld_select = (ld_select_reg);
13128
13130
 
13129
- ;// ./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!./src/ld-combobox/ld-combobox.vue?vue&type=template&id=af1428d4&scoped=true&ts=true
13131
+ ;// ./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!./src/ld-combobox/ld-combobox.vue?vue&type=template&id=63c0f476&scoped=true&ts=true
13130
13132
 
13131
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_1 = {
13133
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_1 = {
13132
13134
  class: "w-full overflow-hidden",
13133
13135
  style: { "border-radius": "var(--border-radius)" }
13134
13136
  };
13135
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_2 = { class: "w-full d-flex position-relative" };
13136
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_3 = { class: "text-crop" };
13137
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_4 = {
13137
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_2 = { class: "w-full d-flex position-relative" };
13138
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_3 = { class: "text-crop" };
13139
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_4 = {
13138
13140
  key: 0,
13139
13141
  class: "d-flex align-center"
13140
13142
  };
13141
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_5 = { class: "d-flex flex-column justify-center" };
13142
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_6 = {
13143
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_5 = { class: "d-flex flex-column justify-center" };
13144
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_6 = {
13143
13145
  key: 0,
13144
13146
  class: "grey--text",
13145
13147
  style: { "font-size": "var(--font-size--1)" }
13146
13148
  };
13147
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_7 = {
13149
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_7 = {
13148
13150
  key: 0,
13149
13151
  class: "combobox-loading"
13150
13152
  };
13151
- const ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_8 = {
13153
+ const ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_8 = {
13152
13154
  key: 0,
13153
13155
  class: "combobox-validate"
13154
13156
  };
13155
- function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
13157
+ function ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
13156
13158
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
13157
13159
  const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
13158
13160
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
@@ -13177,8 +13179,8 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13177
13179
  class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
13178
13180
  }, {
13179
13181
  default: (0,external_vue_.withCtx)(() => [
13180
- (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_1, [
13181
- (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_2, [
13182
+ (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_1, [
13183
+ (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_2, [
13182
13184
  (0,external_vue_.createVNode)(_component_multiselect, {
13183
13185
  ref: "multiselect",
13184
13186
  modelValue: _ctx.selected,
@@ -13188,7 +13190,7 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13188
13190
  ],
13189
13191
  "track-by": "id",
13190
13192
  class: "multiselect--arrow",
13191
- uid: _ctx.uid,
13193
+ uid: String(_ctx.uid),
13192
13194
  multiple: _ctx.multiselect,
13193
13195
  placeholder: _ctx.placeholder,
13194
13196
  "select-label": '',
@@ -13221,7 +13223,7 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13221
13223
  "onClick:close": ($event) => (_ctx.onRemoveItem(option))
13222
13224
  }, {
13223
13225
  default: (0,external_vue_.withCtx)(() => [
13224
- (0,external_vue_.createElementVNode)("span", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
13226
+ (0,external_vue_.createElementVNode)("span", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
13225
13227
  ]),
13226
13228
  _: 2
13227
13229
  }, 1032, ["color", "closable", "onClick:close"]))
@@ -13249,7 +13251,7 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13249
13251
  (0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center py-1" }, {
13250
13252
  default: (0,external_vue_.withCtx)(() => [
13251
13253
  (_ctx.multiselect)
13252
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_4, [
13254
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_4, [
13253
13255
  ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
13254
13256
  key: JSON.stringify(option),
13255
13257
  "model-value": _ctx.checkedItems,
@@ -13264,13 +13266,13 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13264
13266
  }, [
13265
13267
  (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),
13266
13268
  _cache[2] || (_cache[2] = (0,external_vue_.createTextVNode)()),
13267
- (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_5, [
13269
+ (0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_5, [
13268
13270
  (0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
13269
13271
  (0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
13270
13272
  ], true),
13271
13273
  _cache[1] || (_cache[1] = (0,external_vue_.createTextVNode)()),
13272
13274
  (_ctx.optionHint)
13273
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_6, [
13275
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_6, [
13274
13276
  (0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), undefined, true)
13275
13277
  ]))
13276
13278
  : (0,external_vue_.createCommentVNode)("", true)
@@ -13290,13 +13292,13 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13290
13292
  }, 8, ["modelValue", "uid", "multiple", "placeholder", "options", "searchable", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allowEmpty", "onClose", "onOpen", "onSearchChange", "onUpdate:modelValue"]),
13291
13293
  _cache[7] || (_cache[7] = (0,external_vue_.createTextVNode)()),
13292
13294
  (_ctx.loading)
13293
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_7))
13295
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_7))
13294
13296
  : (0,external_vue_.createCommentVNode)("", true)
13295
13297
  ])
13296
13298
  ]),
13297
13299
  _cache[8] || (_cache[8] = (0,external_vue_.createTextVNode)()),
13298
13300
  (!_ctx.hideDetails)
13299
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_hoisted_8, [
13301
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_hoisted_8, [
13300
13302
  (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
13301
13303
  default: (0,external_vue_.withCtx)(() => [
13302
13304
  (_ctx.showHint)
@@ -13319,7 +13321,7 @@ function ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render(_ct
13319
13321
  }));
13320
13322
  }
13321
13323
 
13322
- ;// ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=af1428d4&scoped=true&ts=true
13324
+ ;// ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=63c0f476&scoped=true&ts=true
13323
13325
 
13324
13326
  ;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-combobox/ld-combobox.ts?vue&type=script&lang=ts&external
13325
13327
  var ld_comboboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -13590,7 +13592,7 @@ let ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = class S
13590
13592
  return [];
13591
13593
  }
13592
13594
  toArray(value) {
13593
- if (!this.$utils.isDefined(value)) {
13595
+ if (!this.$utils.isDefined(value) || value === '') {
13594
13596
  return [];
13595
13597
  }
13596
13598
  if (Array.isArray(value)) {
@@ -13790,7 +13792,7 @@ ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = ld_combobox
13790
13792
  ;
13791
13793
 
13792
13794
 
13793
- const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',ld_comboboxvue_type_template_id_af1428d4_scoped_true_ts_true_render],['__scopeId',"data-v-af1428d4"]])
13795
+ const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',ld_comboboxvue_type_template_id_63c0f476_scoped_true_ts_true_render],['__scopeId',"data-v-63c0f476"]])
13794
13796
 
13795
13797
  /* harmony default export */ const ld_combobox = (ld_combobox_exports_);
13796
13798
  ;// ./src/ld-combobox/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {