@ldmjs/ui 1.0.14 → 1.0.15

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.
@@ -4,7 +4,7 @@
4
4
 
5
5
  .label[data-v-12071c41]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-12071c41]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-12071c41]::after{content:'*';display:inline-block;color:var(--error)}
6
6
 
7
- .ld-edit-text[data-v-3f17f967]{min-width:100%}.input-class[data-v-3f17f967]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-3f17f967]:not(.disabled){background-color:var(--white)}.input-class[data-v-3f17f967]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-3f17f967]{position:absolute;top:3px;right:6px;color:var(--label)}
7
+ .ld-edit-text[data-v-3a89856c]{min-width:100%}.input-class[data-v-3a89856c]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-3a89856c]:not(.disabled){background-color:var(--white)}.input-class[data-v-3a89856c]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-3a89856c]{position:absolute;top:3px;right:6px;color:var(--label)}
8
8
 
9
9
  .ld-datepicker[data-v-98da67e2]{display:flex;min-width:100%;max-width:100%;width:100%;font-size:var(--font-size)}.ld-datepicker.column[data-v-98da67e2]{flex-flow:column nowrap}.ld-datepicker-validate[data-v-98da67e2]{overflow:hidden;height:20px}.custom-time-picker[data-v-98da67e2]{max-width:var(--date-time-width);border-radius:var(--border-radius);background-color:var(--white);font-size:inherit !important}.custom-time-picker-validate[data-v-98da67e2]{overflow:hidden;height:20px}.date-input[data-v-98da67e2]{padding-left:5px;width:100%;font-size:var(--font-size)}.time-input[data-v-98da67e2]{width:100%;padding-left:5px;font-size:var(--font-size)}.time-input-btn[data-v-98da67e2]{padding-right:5px}.dt-col[data-v-98da67e2]{max-width:110px}.time-selector[data-v-98da67e2]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-98da67e2]{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-98da67e2]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}[data-v-98da67e2] .vc-popover-content-wrapper{position:fixed !important}[data-v-98da67e2] .v-input--is-disabled input{color:var(--text) !important}[data-v-98da67e2] .vc-popover-content{border-color:var(--grey-l-5)}[data-v-98da67e2] .vc-title span{color:var(--text);font-size:var(--font-size-2);font-weight:600;font-family:'Roboto'}[data-v-98da67e2] .vc-arrow{color:var(--grey)}[data-v-98da67e2] .vc-weekday{color:var(--grey-l-2);font-size:var(--font-size);font-weight:600;font-family:'Roboto'}[data-v-98da67e2] .vc-day-content{color:var(--text);font-size:var(--font-size);font-weight:400;font-family:'Roboto'}[data-v-98da67e2] .vc-day-content.vc-disabled{color:var(--grey-l-2) !important}[data-v-98da67e2] .vc-day-content.vc-highlight-content-solid{color:var(--white) !important;font-weight:600 !important}
10
10
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  .ld-select-list-box[data-v-4ccf12f8]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-select-list-box .select-list-box-validate[data-v-4ccf12f8]{overflow:hidden;height:20px}.ld-select-list-box .select-list-box-loading[data-v-4ccf12f8]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-select-list-box .select-list-box-loading[data-v-4ccf12f8]:before{content:'';display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-4ccf12f8 1.4s linear;animation-iteration-count:infinite}@keyframes loading-4ccf12f8{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
16
16
 
17
- .ld-checkbox{display:flex;align-items:center;height:var(--input-height);font-size:var(--font-size);cursor:pointer}.ld-checkbox input[type='checkbox']+.v-icon{display:block;width:12px !important;height:12px !important;font-size:10px !important;background-color:var(--white);color:transparent;border:1px solid var(--grey-l-5)}.ld-checkbox input[type='checkbox']:checked+.v-icon{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.ld-checkbox input[type='checkbox']:disabled+.v-icon{background-color:var(--grey-l-3)}.checkbox-label{word-wrap:break-word;max-width:100%}.checkbox-label--disabled{color:var(--grey-l-3) !important}
17
+ .ld-checkbox{display:flex;align-items:center;position:relative;height:var(--input-height);font-size:var(--font-size);cursor:pointer}.ld-checkbox input[type='checkbox']{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.ld-checkbox input[type='checkbox']+.v-icon{display:flex;align-items:center;width:14px !important;height:15px !important;font-size:11px !important;background-color:var(--white);color:transparent;border:1px solid var(--grey-l-5)}.ld-checkbox input[type='checkbox']:focus+.v-icon{background-color:var(--grey-l-6)}.ld-checkbox input[type='checkbox']:checked+.v-icon{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.ld-checkbox input[type='checkbox']:checked:focus+.v-icon{background-color:var(--primary-l-3)}.ld-checkbox input[type='checkbox']:disabled+.v-icon{background-color:var(--grey-l-3)}.checkbox-label{word-wrap:break-word;max-width:100%}.checkbox-label--disabled{color:var(--grey-l-3) !important}
18
18
 
19
19
  .ld-radiobutton[data-v-2d8a7abd]{display:flex;align-items:center;font-size:var(--font-size)}
20
20
 
package/dist/index.js CHANGED
@@ -1893,22 +1893,22 @@ function ld_breadcrumbs_reg(vue, options) {
1893
1893
  }
1894
1894
  /* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
1895
1895
 
1896
- ;// 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!./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3f17f967&scoped=true&ts=true
1896
+ ;// 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!./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3a89856c&scoped=true&ts=true
1897
1897
 
1898
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_withScopeId = n => ((0,external_vue_.pushScopeId)("data-v-3f17f967"), n = n(), (0,external_vue_.popScopeId)(), n);
1899
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
1900
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_2 = { key: 0 };
1901
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_3 = /*#__PURE__*/ ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_withScopeId(() => /*#__PURE__*/ (0,external_vue_.createElementVNode)("span", null, "Показать пароль", -1));
1902
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_4 = {
1898
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_withScopeId = n => ((0,external_vue_.pushScopeId)("data-v-3a89856c"), n = n(), (0,external_vue_.popScopeId)(), n);
1899
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
1900
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_2 = { key: 0 };
1901
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_3 = /*#__PURE__*/ ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_withScopeId(() => /*#__PURE__*/ (0,external_vue_.createElementVNode)("span", null, "Показать пароль", -1));
1902
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_4 = {
1903
1903
  key: 1,
1904
1904
  class: "d-flex w-100 flex-column",
1905
1905
  style: { "position": "relative", "flex-wrap": "wrap" }
1906
1906
  };
1907
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_5 = {
1907
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_5 = {
1908
1908
  key: 0,
1909
1909
  class: "input-class__suffix"
1910
1910
  };
1911
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_6 = {
1911
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_6 = {
1912
1912
  key: 1,
1913
1913
  class: "v-input__details"
1914
1914
  };
@@ -1920,7 +1920,7 @@ const _hoisted_8 = {
1920
1920
  key: 1,
1921
1921
  class: "grey--text"
1922
1922
  };
1923
- function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
1923
+ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
1924
1924
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
1925
1925
  const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
1926
1926
  const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
@@ -1929,7 +1929,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
1929
1929
  const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
1930
1930
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
1931
1931
  const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
1932
- return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_1, [
1932
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_1, [
1933
1933
  (0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
1934
1934
  default: (0,external_vue_.withCtx)(() => [
1935
1935
  (_ctx.label)
@@ -2019,7 +2019,10 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2019
2019
  (_ctx.type === 'password')
2020
2020
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, { key: 1 }, {
2021
2021
  activator: (0,external_vue_.withCtx)(({ props }) => [
2022
- (0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({ tabindex: "1" }, props, {
2022
+ (0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({
2023
+ id: "pswd-toggle",
2024
+ tabindex: "1"
2025
+ }, props, {
2023
2026
  icon: "",
2024
2027
  color: "grey",
2025
2028
  onClick: _ctx.passwordVisibilityToggle
@@ -2045,10 +2048,10 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2045
2048
  default: (0,external_vue_.withCtx)(() => [
2046
2049
  (0,external_vue_.createTextVNode)(),
2047
2050
  (_ctx.passwordVisible)
2048
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
2051
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
2049
2052
  : (0,external_vue_.createCommentVNode)("", true),
2050
2053
  (0,external_vue_.createTextVNode)(),
2051
- ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_3
2054
+ ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_3
2052
2055
  ]),
2053
2056
  _: 1
2054
2057
  }))
@@ -2058,7 +2061,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2058
2061
  }
2059
2062
  : undefined
2060
2063
  ]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "validation-value", "placeholder", "disabled", "readonly", "hint", "mask", "tabindex", "maxlength", "autofocus", "hide-details", "prefix", "suffix", "clearable", "error", "error-messages", "prepend-inner-icon", "autocomplete", "onChange", "onUpdate:modelValue", "onBlur", "onFocus", "onClick", "onKeydown", "onCopy"]))
2061
- : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_4, [
2064
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_4, [
2062
2065
  (0,external_vue_.createVNode)(_component_imask_input, {
2063
2066
  ref: "maskInput",
2064
2067
  value: _ctx.value,
@@ -2081,11 +2084,11 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2081
2084
  }, null, 8, ["value", "maxlength", "scale", "signed", "min", "max", "disabled", "tabindex", "class", "placeholder", "onBlur", "onClick", "onFocus"]),
2082
2085
  (0,external_vue_.createTextVNode)(),
2083
2086
  (_ctx.suffix)
2084
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_5, (0,external_vue_.toDisplayString)(_ctx.suffix), 1))
2087
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_5, (0,external_vue_.toDisplayString)(_ctx.suffix), 1))
2085
2088
  : (0,external_vue_.createCommentVNode)("", true),
2086
2089
  (0,external_vue_.createTextVNode)(),
2087
2090
  (!_ctx.hideDetails)
2088
- ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_6, [
2091
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_6, [
2089
2092
  (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
2090
2093
  default: (0,external_vue_.withCtx)(() => [
2091
2094
  (_ctx.showError)
@@ -2108,7 +2111,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2108
2111
  ]));
2109
2112
  }
2110
2113
 
2111
- ;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3f17f967&scoped=true&ts=true
2114
+ ;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3a89856c&scoped=true&ts=true
2112
2115
 
2113
2116
  ;// CONCATENATED MODULE: ./src/decorators/emit.decorator.ts
2114
2117
 
@@ -2680,7 +2683,11 @@ var ld_edit_textvue_type_script_lang_ts_external_a, ld_edit_textvue_type_script_
2680
2683
  let EditTextComponent = class EditTextComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
2681
2684
  constructor() {
2682
2685
  super(...arguments);
2683
- this.value = '-1'; // используется для числового ввода (onlyNumbers = true), string из-за требований imask-input (он ждёт строку)
2686
+ /**
2687
+ * используется для числового ввода (onlyNumbers = true),
2688
+ * string из-за требований imask-input (он ждёт строку)
2689
+ */
2690
+ this.value = '-1';
2684
2691
  this.debouncedFunc = null;
2685
2692
  this.savedModelValue = '';
2686
2693
  this.passwordVisible = false;
@@ -2724,6 +2731,16 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2724
2731
  this.validate();
2725
2732
  }
2726
2733
  }
2734
+ onValueChanged(newVal) {
2735
+ if (newVal === '') {
2736
+ return;
2737
+ }
2738
+ const emitData = this.$utils.isDefined(newVal) ? Number(newVal) : null;
2739
+ if (this.nonZero && emitData === 0) {
2740
+ this.value = null;
2741
+ }
2742
+ this.emitUpdateModelValue(emitData);
2743
+ }
2727
2744
  onlyNumbersChange(newVal) {
2728
2745
  if (newVal) {
2729
2746
  if (!this.modelValue) {
@@ -2738,16 +2755,6 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2738
2755
  this.form?.unregister(this, null);
2739
2756
  }
2740
2757
  }
2741
- onValueChanged(newVal) {
2742
- if (newVal === '') {
2743
- return;
2744
- }
2745
- const emitData = this.$utils.isDefined(newVal) ? Number(newVal) : null;
2746
- if (this.nonZero && emitData === 0) {
2747
- this.value = null;
2748
- }
2749
- this.emitUpdateModelValue(emitData);
2750
- }
2751
2758
  onDebouncedChanged() {
2752
2759
  if (this.debounced && !this.debouncedFunc) {
2753
2760
  this.debouncedFunc = lodash_es_debounce((value) => this.emitUpdateModelValue(value), this.debounced);
@@ -2760,6 +2767,9 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2760
2767
  if (this.debounced) {
2761
2768
  this.debouncedFunc = lodash_es_debounce((value) => this.emitUpdateModelValue(value), this.debounced);
2762
2769
  }
2770
+ if (this.modelValue) {
2771
+ this.onUpdateModelValue(String(this.modelValue));
2772
+ }
2763
2773
  }
2764
2774
  unmounted() {
2765
2775
  if (this.form) {
@@ -2768,7 +2778,7 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2768
2778
  }
2769
2779
  onBlur(e) {
2770
2780
  this.emitBlur(e);
2771
- if (this.value === '') {
2781
+ if (this.onlyNumbers && this.value === '') {
2772
2782
  this.value = '0';
2773
2783
  }
2774
2784
  this.validate();
@@ -2802,6 +2812,9 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2802
2812
  .map(i => '•')
2803
2813
  .join('');
2804
2814
  }
2815
+ else {
2816
+ this.savedModelValue = value;
2817
+ }
2805
2818
  if (this.debounced) {
2806
2819
  this.debouncedFunc(value);
2807
2820
  }
@@ -2983,18 +2996,18 @@ ld_edit_textvue_type_script_lang_ts_external_decorate([
2983
2996
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
2984
2997
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
2985
2998
  ], EditTextComponent.prototype, "onTextChanged", null);
2986
- ld_edit_textvue_type_script_lang_ts_external_decorate([
2987
- (0,external_vue_property_decorator_.Watch)('onlyNumbers', { immediate: true }),
2988
- ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
2989
- ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
2990
- ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
2991
- ], EditTextComponent.prototype, "onlyNumbersChange", null);
2992
2999
  ld_edit_textvue_type_script_lang_ts_external_decorate([
2993
3000
  (0,external_vue_property_decorator_.Watch)('value'),
2994
3001
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
2995
3002
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
2996
3003
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
2997
3004
  ], EditTextComponent.prototype, "onValueChanged", null);
3005
+ ld_edit_textvue_type_script_lang_ts_external_decorate([
3006
+ (0,external_vue_property_decorator_.Watch)('onlyNumbers', { immediate: true }),
3007
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
3008
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
3009
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
3010
+ ], EditTextComponent.prototype, "onlyNumbersChange", null);
2998
3011
  ld_edit_textvue_type_script_lang_ts_external_decorate([
2999
3012
  (0,external_vue_property_decorator_.Watch)('debounced'),
3000
3013
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
@@ -3021,7 +3034,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
3021
3034
  ;
3022
3035
 
3023
3036
 
3024
- const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render],['__scopeId',"data-v-3f17f967"]])
3037
+ const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render],['__scopeId',"data-v-3a89856c"]])
3025
3038
 
3026
3039
  /* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
3027
3040
  ;// CONCATENATED MODULE: ./src/ld-edit-text/index.ts
@@ -11433,15 +11446,16 @@ function ld_select_list_box_reg(vue, options) {
11433
11446
  }
11434
11447
  /* harmony default export */ const src_ld_select_list_box = (ld_select_list_box_reg);
11435
11448
 
11436
- ;// 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!./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=4cf873fa&ts=true
11449
+ ;// 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!./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=26c765c2&ts=true
11437
11450
 
11438
- const ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_1 = { class: "ld-checkbox" };
11439
- const ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_2 = { class: "d-flex align-center" };
11440
- const ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_3 = ["checked", "data-testid", "tabindex", "disabled"];
11441
- function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
11451
+ const ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_1 = { class: "d-flex align-center" };
11452
+ const ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_2 = ["checked", "data-testid", "tabindex", "disabled"];
11453
+ function ld_checkboxvue_type_template_id_26c765c2_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
11442
11454
  const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
11443
11455
  const _component_v_icon = (0,external_vue_.resolveComponent)("v-icon");
11444
- return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_1, [
11456
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11457
+ class: (0,external_vue_.normalizeClass)(["ld-checkbox", { 'ld-checkbox--focused': _ctx.isFocused }])
11458
+ }, [
11445
11459
  (_ctx.label && _ctx.labelOnLeft)
11446
11460
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11447
11461
  key: 0,
@@ -11472,19 +11486,24 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11472
11486
  ]))
11473
11487
  : (0,external_vue_.createCommentVNode)("", true),
11474
11488
  (0,external_vue_.createTextVNode)(),
11475
- (0,external_vue_.createElementVNode)("label", ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_2, [
11489
+ (0,external_vue_.createElementVNode)("label", ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_1, [
11476
11490
  (0,external_vue_.createElementVNode)("input", {
11477
11491
  ref: "checkbox",
11478
11492
  type: "checkbox",
11479
- class: "d-none",
11480
11493
  checked: _ctx.internalValue,
11481
11494
  "data-testid": _ctx.dataTestid,
11482
11495
  tabindex: _ctx.tabIndex,
11483
11496
  disabled: _ctx.disabled,
11484
- onInput: _cache[1] || (_cache[1] =
11497
+ onFocus: _cache[1] || (_cache[1] =
11498
+ //@ts-ignore
11499
+ (...args) => (_ctx.onFocus && _ctx.onFocus(...args))),
11500
+ onBlur: _cache[2] || (_cache[2] =
11501
+ //@ts-ignore
11502
+ (...args) => (_ctx.onBlur && _ctx.onBlur(...args))),
11503
+ onInput: _cache[3] || (_cache[3] =
11485
11504
  //@ts-ignore
11486
11505
  (...args) => (_ctx.onChange && _ctx.onChange(...args)))
11487
- }, null, 40, ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_3),
11506
+ }, null, 40, ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_2),
11488
11507
  (0,external_vue_.createTextVNode)(),
11489
11508
  (0,external_vue_.createVNode)(_component_v_icon, { icon: "check" })
11490
11509
  ]),
@@ -11493,7 +11512,7 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11493
11512
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11494
11513
  key: 1,
11495
11514
  class: "d-flex align-center",
11496
- onClick: _cache[2] || (_cache[2] =
11515
+ onClick: _cache[4] || (_cache[4] =
11497
11516
  //@ts-ignore
11498
11517
  (...args) => (_ctx.onLabelClick && _ctx.onLabelClick(...args)))
11499
11518
  }, [
@@ -11519,10 +11538,10 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11519
11538
  }, (0,external_vue_.toDisplayString)(_ctx.label), 3))
11520
11539
  ]))
11521
11540
  : (0,external_vue_.createCommentVNode)("", true)
11522
- ]));
11541
+ ], 2));
11523
11542
  }
11524
11543
 
11525
- ;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=4cf873fa&ts=true
11544
+ ;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=26c765c2&ts=true
11526
11545
 
11527
11546
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-checkbox/ld-checkbox.ts?vue&type=script&lang=ts&external
11528
11547
  var ld_checkboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -11546,6 +11565,7 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
11546
11565
  constructor() {
11547
11566
  super(...arguments);
11548
11567
  this.internalValue = false;
11568
+ this.isFocused = false;
11549
11569
  }
11550
11570
  emitUpdateModelValue(value) {
11551
11571
  return value;
@@ -11592,6 +11612,12 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
11592
11612
  this.fireinputEvent(checked);
11593
11613
  }
11594
11614
  }
11615
+ onFocus() {
11616
+ this.isFocused = true;
11617
+ }
11618
+ onBlur() {
11619
+ this.isFocused = false;
11620
+ }
11595
11621
  onLabelClick() {
11596
11622
  this.$refs.checkbox.click();
11597
11623
  }
@@ -11688,7 +11714,7 @@ ld_checkboxvue_type_script_lang_ts_external_decorate([
11688
11714
  ;
11689
11715
 
11690
11716
 
11691
- const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',ld_checkboxvue_type_template_id_4cf873fa_ts_true_render]])
11717
+ const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',ld_checkboxvue_type_template_id_26c765c2_ts_true_render]])
11692
11718
 
11693
11719
  /* harmony default export */ const ld_checkbox = (ld_checkbox_exports_);
11694
11720
  ;// CONCATENATED MODULE: ./src/ld-checkbox/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {