@ldmjs/ui 1.0.14 → 1.0.16

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.d.ts CHANGED
@@ -4,12 +4,46 @@ import { IToasted } from './types/toasted';
4
4
  import { IInput, IWatcher } from './types/validation';
5
5
  import { Dialog } from './types/dialogs';
6
6
 
7
+ /**
8
+ * awaiting any event
9
+ * use:
10
+ * async function() {
11
+ * let a = 0;
12
+ * setTimeout(() => {
13
+ * a = 1;
14
+ * }, 3000)
15
+ * await awaiting(() => a === 1);
16
+ * console.log(a) // 1;
17
+ * }
18
+ */
7
19
  declare function awaiting(callback: () => unknown): Promise<any>;
20
+ /**
21
+ * a = null (undefined, '', NaN) => isDefined(a) // false
22
+ */
8
23
  declare function isDefined(value: unknown): boolean;
24
+ /**
25
+ * generate an unique id by a format: 'a-z', 'A-Z', '0-9', 'a-zA-Z', 'a-z0-9', all)
26
+ */
9
27
  declare function uidGen(len?: number, format?: string): string | number;
28
+ /**
29
+ * async function() {
30
+ * await delay(1000);
31
+ * }
32
+ */
10
33
  declare function delay(timeout: number): Promise<void>;
34
+ /**
35
+ * returns a deep object given a string
36
+ * use:
37
+ * Record.Key1.Key2.Key3 = Value;
38
+ * const value = deepValueGetter(Record, 'Key1.Key2.Key3');
39
+ */
11
40
  declare function deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
41
+ /**
42
+ * const obj = {};
43
+ * isObjectEmpty(obj) // true
44
+ */
12
45
  declare function isObjectEmpty(obj: Record<string, unknown>): boolean;
46
+
13
47
  declare module '@vue/runtime-core' {
14
48
  export interface ComponentCustomProperties {
15
49
  $utils: {
package/dist/index.js CHANGED
@@ -396,7 +396,11 @@ let IconButtonComponent = class IconButtonComponent extends external_vue_class_c
396
396
  };
397
397
  }
398
398
  get array() {
399
- return this.map.icons.find((el) => el[0] === this.current) || [];
399
+ const found = this.map.icons.find((el) => el[0] === this.current);
400
+ if (found) {
401
+ return found;
402
+ }
403
+ return [this.current, this.current];
400
404
  }
401
405
  get className() {
402
406
  if (this.color) {
@@ -1893,22 +1897,22 @@ function ld_breadcrumbs_reg(vue, options) {
1893
1897
  }
1894
1898
  /* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
1895
1899
 
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
1900
+ ;// 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
1901
 
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 = {
1902
+ 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);
1903
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
1904
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_2 = { key: 0 };
1905
+ 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));
1906
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_4 = {
1903
1907
  key: 1,
1904
1908
  class: "d-flex w-100 flex-column",
1905
1909
  style: { "position": "relative", "flex-wrap": "wrap" }
1906
1910
  };
1907
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_5 = {
1911
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_5 = {
1908
1912
  key: 0,
1909
1913
  class: "input-class__suffix"
1910
1914
  };
1911
- const ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_6 = {
1915
+ const ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_6 = {
1912
1916
  key: 1,
1913
1917
  class: "v-input__details"
1914
1918
  };
@@ -1920,7 +1924,7 @@ const _hoisted_8 = {
1920
1924
  key: 1,
1921
1925
  class: "grey--text"
1922
1926
  };
1923
- function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
1927
+ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
1924
1928
  const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
1925
1929
  const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
1926
1930
  const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
@@ -1929,7 +1933,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
1929
1933
  const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
1930
1934
  const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
1931
1935
  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, [
1936
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_1, [
1933
1937
  (0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
1934
1938
  default: (0,external_vue_.withCtx)(() => [
1935
1939
  (_ctx.label)
@@ -2019,7 +2023,10 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2019
2023
  (_ctx.type === 'password')
2020
2024
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, { key: 1 }, {
2021
2025
  activator: (0,external_vue_.withCtx)(({ props }) => [
2022
- (0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({ tabindex: "1" }, props, {
2026
+ (0,external_vue_.createVNode)(_component_square_button, (0,external_vue_.mergeProps)({
2027
+ id: "pswd-toggle",
2028
+ tabindex: "1"
2029
+ }, props, {
2023
2030
  icon: "",
2024
2031
  color: "grey",
2025
2032
  onClick: _ctx.passwordVisibilityToggle
@@ -2045,10 +2052,10 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2045
2052
  default: (0,external_vue_.withCtx)(() => [
2046
2053
  (0,external_vue_.createTextVNode)(),
2047
2054
  (_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, "Скрыть пароль"))
2055
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
2049
2056
  : (0,external_vue_.createCommentVNode)("", true),
2050
2057
  (0,external_vue_.createTextVNode)(),
2051
- ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_hoisted_3
2058
+ ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_3
2052
2059
  ]),
2053
2060
  _: 1
2054
2061
  }))
@@ -2058,7 +2065,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2058
2065
  }
2059
2066
  : undefined
2060
2067
  ]), 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, [
2068
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_4, [
2062
2069
  (0,external_vue_.createVNode)(_component_imask_input, {
2063
2070
  ref: "maskInput",
2064
2071
  value: _ctx.value,
@@ -2081,11 +2088,11 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2081
2088
  }, null, 8, ["value", "maxlength", "scale", "signed", "min", "max", "disabled", "tabindex", "class", "placeholder", "onBlur", "onClick", "onFocus"]),
2082
2089
  (0,external_vue_.createTextVNode)(),
2083
2090
  (_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))
2091
+ ? ((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
2092
  : (0,external_vue_.createCommentVNode)("", true),
2086
2093
  (0,external_vue_.createTextVNode)(),
2087
2094
  (!_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, [
2095
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_6, [
2089
2096
  (0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
2090
2097
  default: (0,external_vue_.withCtx)(() => [
2091
2098
  (_ctx.showError)
@@ -2108,7 +2115,7 @@ function ld_edit_textvue_type_template_id_3f17f967_scoped_true_ts_true_render(_c
2108
2115
  ]));
2109
2116
  }
2110
2117
 
2111
- ;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3f17f967&scoped=true&ts=true
2118
+ ;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=3a89856c&scoped=true&ts=true
2112
2119
 
2113
2120
  ;// CONCATENATED MODULE: ./src/decorators/emit.decorator.ts
2114
2121
 
@@ -2680,7 +2687,11 @@ var ld_edit_textvue_type_script_lang_ts_external_a, ld_edit_textvue_type_script_
2680
2687
  let EditTextComponent = class EditTextComponent extends (0,external_vue_class_component_.mixins)(ValidatableMixin, GridMixin, InputMixin) {
2681
2688
  constructor() {
2682
2689
  super(...arguments);
2683
- this.value = '-1'; // используется для числового ввода (onlyNumbers = true), string из-за требований imask-input (он ждёт строку)
2690
+ /**
2691
+ * используется для числового ввода (onlyNumbers = true),
2692
+ * string из-за требований imask-input (он ждёт строку)
2693
+ */
2694
+ this.value = '-1';
2684
2695
  this.debouncedFunc = null;
2685
2696
  this.savedModelValue = '';
2686
2697
  this.passwordVisible = false;
@@ -2724,6 +2735,16 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2724
2735
  this.validate();
2725
2736
  }
2726
2737
  }
2738
+ onValueChanged(newVal) {
2739
+ if (newVal === '') {
2740
+ return;
2741
+ }
2742
+ const emitData = this.$utils.isDefined(newVal) ? Number(newVal) : null;
2743
+ if (this.nonZero && emitData === 0) {
2744
+ this.value = null;
2745
+ }
2746
+ this.emitUpdateModelValue(emitData);
2747
+ }
2727
2748
  onlyNumbersChange(newVal) {
2728
2749
  if (newVal) {
2729
2750
  if (!this.modelValue) {
@@ -2738,16 +2759,6 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2738
2759
  this.form?.unregister(this, null);
2739
2760
  }
2740
2761
  }
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
2762
  onDebouncedChanged() {
2752
2763
  if (this.debounced && !this.debouncedFunc) {
2753
2764
  this.debouncedFunc = lodash_es_debounce((value) => this.emitUpdateModelValue(value), this.debounced);
@@ -2760,6 +2771,9 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2760
2771
  if (this.debounced) {
2761
2772
  this.debouncedFunc = lodash_es_debounce((value) => this.emitUpdateModelValue(value), this.debounced);
2762
2773
  }
2774
+ if (this.modelValue) {
2775
+ this.onUpdateModelValue(String(this.modelValue));
2776
+ }
2763
2777
  }
2764
2778
  unmounted() {
2765
2779
  if (this.form) {
@@ -2768,7 +2782,7 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2768
2782
  }
2769
2783
  onBlur(e) {
2770
2784
  this.emitBlur(e);
2771
- if (this.value === '') {
2785
+ if (this.onlyNumbers && this.value === '') {
2772
2786
  this.value = '0';
2773
2787
  }
2774
2788
  this.validate();
@@ -2802,6 +2816,9 @@ let EditTextComponent = class EditTextComponent extends (0,external_vue_class_co
2802
2816
  .map(i => '•')
2803
2817
  .join('');
2804
2818
  }
2819
+ else {
2820
+ this.savedModelValue = value;
2821
+ }
2805
2822
  if (this.debounced) {
2806
2823
  this.debouncedFunc(value);
2807
2824
  }
@@ -2983,18 +3000,18 @@ ld_edit_textvue_type_script_lang_ts_external_decorate([
2983
3000
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
2984
3001
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
2985
3002
  ], 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
3003
  ld_edit_textvue_type_script_lang_ts_external_decorate([
2993
3004
  (0,external_vue_property_decorator_.Watch)('value'),
2994
3005
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
2995
3006
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [String]),
2996
3007
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
2997
3008
  ], EditTextComponent.prototype, "onValueChanged", null);
3009
+ ld_edit_textvue_type_script_lang_ts_external_decorate([
3010
+ (0,external_vue_property_decorator_.Watch)('onlyNumbers', { immediate: true }),
3011
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
3012
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:paramtypes", [Boolean]),
3013
+ ld_edit_textvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
3014
+ ], EditTextComponent.prototype, "onlyNumbersChange", null);
2998
3015
  ld_edit_textvue_type_script_lang_ts_external_decorate([
2999
3016
  (0,external_vue_property_decorator_.Watch)('debounced'),
3000
3017
  ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Function),
@@ -3021,7 +3038,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
3021
3038
  ;
3022
3039
 
3023
3040
 
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"]])
3041
+ 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
3042
 
3026
3043
  /* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
3027
3044
  ;// CONCATENATED MODULE: ./src/ld-edit-text/index.ts
@@ -11433,15 +11450,16 @@ function ld_select_list_box_reg(vue, options) {
11433
11450
  }
11434
11451
  /* harmony default export */ const src_ld_select_list_box = (ld_select_list_box_reg);
11435
11452
 
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
11453
+ ;// 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
11454
 
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) {
11455
+ const ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_1 = { class: "d-flex align-center" };
11456
+ const ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_2 = ["checked", "data-testid", "tabindex", "disabled"];
11457
+ function ld_checkboxvue_type_template_id_26c765c2_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
11442
11458
  const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip");
11443
11459
  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, [
11460
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11461
+ class: (0,external_vue_.normalizeClass)(["ld-checkbox", { 'ld-checkbox--focused': _ctx.isFocused }])
11462
+ }, [
11445
11463
  (_ctx.label && _ctx.labelOnLeft)
11446
11464
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11447
11465
  key: 0,
@@ -11472,19 +11490,24 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11472
11490
  ]))
11473
11491
  : (0,external_vue_.createCommentVNode)("", true),
11474
11492
  (0,external_vue_.createTextVNode)(),
11475
- (0,external_vue_.createElementVNode)("label", ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_2, [
11493
+ (0,external_vue_.createElementVNode)("label", ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_1, [
11476
11494
  (0,external_vue_.createElementVNode)("input", {
11477
11495
  ref: "checkbox",
11478
11496
  type: "checkbox",
11479
- class: "d-none",
11480
11497
  checked: _ctx.internalValue,
11481
11498
  "data-testid": _ctx.dataTestid,
11482
11499
  tabindex: _ctx.tabIndex,
11483
11500
  disabled: _ctx.disabled,
11484
- onInput: _cache[1] || (_cache[1] =
11501
+ onFocus: _cache[1] || (_cache[1] =
11502
+ //@ts-ignore
11503
+ (...args) => (_ctx.onFocus && _ctx.onFocus(...args))),
11504
+ onBlur: _cache[2] || (_cache[2] =
11505
+ //@ts-ignore
11506
+ (...args) => (_ctx.onBlur && _ctx.onBlur(...args))),
11507
+ onInput: _cache[3] || (_cache[3] =
11485
11508
  //@ts-ignore
11486
11509
  (...args) => (_ctx.onChange && _ctx.onChange(...args)))
11487
- }, null, 40, ld_checkboxvue_type_template_id_4cf873fa_ts_true_hoisted_3),
11510
+ }, null, 40, ld_checkboxvue_type_template_id_26c765c2_ts_true_hoisted_2),
11488
11511
  (0,external_vue_.createTextVNode)(),
11489
11512
  (0,external_vue_.createVNode)(_component_v_icon, { icon: "check" })
11490
11513
  ]),
@@ -11493,7 +11516,7 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11493
11516
  ? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
11494
11517
  key: 1,
11495
11518
  class: "d-flex align-center",
11496
- onClick: _cache[2] || (_cache[2] =
11519
+ onClick: _cache[4] || (_cache[4] =
11497
11520
  //@ts-ignore
11498
11521
  (...args) => (_ctx.onLabelClick && _ctx.onLabelClick(...args)))
11499
11522
  }, [
@@ -11519,10 +11542,10 @@ function ld_checkboxvue_type_template_id_4cf873fa_ts_true_render(_ctx, _cache, $
11519
11542
  }, (0,external_vue_.toDisplayString)(_ctx.label), 3))
11520
11543
  ]))
11521
11544
  : (0,external_vue_.createCommentVNode)("", true)
11522
- ]));
11545
+ ], 2));
11523
11546
  }
11524
11547
 
11525
- ;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=4cf873fa&ts=true
11548
+ ;// CONCATENATED MODULE: ./src/ld-checkbox/ld-checkbox.vue?vue&type=template&id=26c765c2&ts=true
11526
11549
 
11527
11550
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-checkbox/ld-checkbox.ts?vue&type=script&lang=ts&external
11528
11551
  var ld_checkboxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -11546,6 +11569,7 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
11546
11569
  constructor() {
11547
11570
  super(...arguments);
11548
11571
  this.internalValue = false;
11572
+ this.isFocused = false;
11549
11573
  }
11550
11574
  emitUpdateModelValue(value) {
11551
11575
  return value;
@@ -11592,6 +11616,12 @@ class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(Inpu
11592
11616
  this.fireinputEvent(checked);
11593
11617
  }
11594
11618
  }
11619
+ onFocus() {
11620
+ this.isFocused = true;
11621
+ }
11622
+ onBlur() {
11623
+ this.isFocused = false;
11624
+ }
11595
11625
  onLabelClick() {
11596
11626
  this.$refs.checkbox.click();
11597
11627
  }
@@ -11688,7 +11718,7 @@ ld_checkboxvue_type_script_lang_ts_external_decorate([
11688
11718
  ;
11689
11719
 
11690
11720
 
11691
- const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',ld_checkboxvue_type_template_id_4cf873fa_ts_true_render]])
11721
+ const ld_checkbox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CheckboxComponent, [['render',ld_checkboxvue_type_template_id_26c765c2_ts_true_render]])
11692
11722
 
11693
11723
  /* harmony default export */ const ld_checkbox = (ld_checkbox_exports_);
11694
11724
  ;// 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.16",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {