@katlux/toolkit 0.1.0-beta.50 → 0.1.0-beta.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  3. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +21 -0
  4. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +3 -1
  5. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +21 -0
  6. package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +11 -0
  7. package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +9 -0
  8. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +36 -6
  9. package/dist/runtime/components/KCombobox/KCombobox.global.vue +4 -1
  10. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +36 -6
  11. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +19 -3
  12. package/dist/runtime/components/KCombobox/KCombobox.logic.js +52 -6
  13. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +29 -9
  14. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +2 -21
  15. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +29 -9
  16. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +15 -4
  17. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +16 -5
  18. package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +20 -0
  19. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +12 -0
  20. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +24 -3
  21. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +3 -1
  22. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +24 -3
  23. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +11 -0
  24. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +9 -0
  25. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +24 -3
  26. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +3 -1
  27. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +24 -3
  28. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +11 -0
  29. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +9 -0
  30. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +21 -0
  31. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +3 -1
  32. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +21 -0
  33. package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +12 -0
  34. package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +9 -0
  35. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +21 -0
  36. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +3 -1
  37. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +21 -0
  38. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +11 -0
  39. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +9 -0
  40. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
  41. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
  42. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
  43. package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
  44. package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
  45. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +21 -0
  46. package/dist/runtime/components/KTextarea/KTextarea.global.vue +3 -1
  47. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +21 -0
  48. package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +11 -0
  49. package/dist/runtime/components/KTextarea/KTextarea.logic.js +9 -0
  50. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +20 -0
  51. package/dist/runtime/components/KTextbox/KTextbox.global.vue +3 -1
  52. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +20 -0
  53. package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +11 -0
  54. package/dist/runtime/components/KTextbox/KTextbox.logic.js +9 -0
  55. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
  56. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
  57. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +37 -8
  58. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +4 -1
  59. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +37 -8
  60. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +17 -0
  61. package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +18 -1
  62. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
  63. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
  64. package/dist/runtime/presets/default/assets/scss/index.css +27 -0
  65. package/dist/runtime/presets/default/assets/scss/index.scss +30 -0
  66. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +2 -0
  67. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +10 -6
  68. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +2 -0
  69. package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +2 -0
  70. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +25 -21
  71. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +2 -0
  72. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +2 -0
  73. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +91 -79
  74. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +2 -0
  75. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +2 -0
  76. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +13 -1
  77. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +2 -0
  78. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +2 -0
  79. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +12 -1
  80. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +2 -0
  81. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +2 -0
  82. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +4 -0
  83. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +2 -0
  84. package/dist/runtime/presets/default/components/KLoader/KLoader.vue +13 -2
  85. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +2 -0
  86. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +4 -0
  87. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +2 -0
  88. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
  89. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +10 -6
  90. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
  91. package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +2 -0
  92. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +5 -1
  93. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +2 -0
  94. package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +2 -0
  95. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +7 -3
  96. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +2 -0
  97. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +2 -0
  98. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +4 -0
  99. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +2 -0
  100. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { type PropType } from 'vue';
1
2
  export interface KHourPickerProps {
2
3
  step?: number;
3
4
  format?: string;
@@ -8,6 +9,8 @@ export interface KHourPickerProps {
8
9
  disabled?: boolean;
9
10
  isOpen?: boolean;
10
11
  showClear?: boolean;
12
+ validation?: 'success' | 'warning' | 'error' | null;
13
+ validationText?: string;
11
14
  }
12
15
  export declare const KHourPickerDefaultProps: {
13
16
  step: {
@@ -46,6 +49,15 @@ export declare const KHourPickerDefaultProps: {
46
49
  type: BooleanConstructor;
47
50
  default: boolean;
48
51
  };
52
+ validation: {
53
+ type: PropType<KHourPickerProps["validation"]>;
54
+ default: null;
55
+ validator: (value: string) => boolean;
56
+ };
57
+ validationText: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
49
61
  };
50
62
  export declare function useKHourPickerLogic(props: KHourPickerProps): {
51
63
  isOpen: import("vue").Ref<boolean, boolean>;
@@ -36,6 +36,15 @@ export const KHourPickerDefaultProps = {
36
36
  showClear: {
37
37
  type: Boolean,
38
38
  default: false
39
+ },
40
+ validation: {
41
+ type: String,
42
+ default: null,
43
+ validator: (value) => [null, "success", "warning", "error"].includes(value)
44
+ },
45
+ validationText: {
46
+ type: String,
47
+ default: ""
39
48
  }
40
49
  };
41
50
  export function useKHourPickerLogic(props) {
@@ -1,3 +1,4 @@
1
+ import { type KMaskTextboxProps } from './KMaskTextbox.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  modelValue: {
3
4
  type: StringConstructor;
@@ -15,6 +16,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
15
16
  type: StringConstructor;
16
17
  required: boolean;
17
18
  };
19
+ validation: {
20
+ type: import("vue").PropType<KMaskTextboxProps["validation"]>;
21
+ default: null;
22
+ validator: (value: string) => boolean;
23
+ };
24
+ validationText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
18
28
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
29
  "update:modelValue": (value: string) => any;
20
30
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -34,9 +44,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
34
44
  type: StringConstructor;
35
45
  required: boolean;
36
46
  };
47
+ validation: {
48
+ type: import("vue").PropType<KMaskTextboxProps["validation"]>;
49
+ default: null;
50
+ validator: (value: string) => boolean;
51
+ };
52
+ validationText: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
37
56
  }>> & Readonly<{
38
57
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
58
  }>, {
59
+ validation: "error" | "success" | "warning" | null | undefined;
60
+ validationText: string;
40
61
  modelValue: string;
41
62
  placeholder: string;
42
63
  showClear: boolean;
@@ -11,7 +11,9 @@ const templateProps = computed(() => ({
11
11
  maskedValue: maskedValue.value,
12
12
  placeholder: placeholder.value,
13
13
  showClear: showClear.value,
14
- mask: props.mask
14
+ mask: props.mask,
15
+ validation: props.validation,
16
+ validationText: props.validationText
15
17
  }));
16
18
  </script>
17
19
 
@@ -1,3 +1,4 @@
1
+ import { type KMaskTextboxProps } from './KMaskTextbox.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  modelValue: {
3
4
  type: StringConstructor;
@@ -15,6 +16,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
15
16
  type: StringConstructor;
16
17
  required: boolean;
17
18
  };
19
+ validation: {
20
+ type: import("vue").PropType<KMaskTextboxProps["validation"]>;
21
+ default: null;
22
+ validator: (value: string) => boolean;
23
+ };
24
+ validationText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
18
28
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
29
  "update:modelValue": (value: string) => any;
20
30
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -34,9 +44,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
34
44
  type: StringConstructor;
35
45
  required: boolean;
36
46
  };
47
+ validation: {
48
+ type: import("vue").PropType<KMaskTextboxProps["validation"]>;
49
+ default: null;
50
+ validator: (value: string) => boolean;
51
+ };
52
+ validationText: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
37
56
  }>> & Readonly<{
38
57
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
58
  }>, {
59
+ validation: "error" | "success" | "warning" | null | undefined;
60
+ validationText: string;
40
61
  modelValue: string;
41
62
  placeholder: string;
42
63
  showClear: boolean;
@@ -3,6 +3,8 @@ export interface KMaskTextboxProps {
3
3
  placeholder?: string;
4
4
  showClear?: boolean;
5
5
  mask: string;
6
+ validation?: 'success' | 'warning' | 'error' | null;
7
+ validationText?: string;
6
8
  }
7
9
  export interface KMaskTextboxEmits {
8
10
  (e: 'update:modelValue', value: string): void;
@@ -24,6 +26,15 @@ export declare const KMaskTextboxDefaultProps: {
24
26
  type: StringConstructor;
25
27
  required: boolean;
26
28
  };
29
+ validation: {
30
+ type: import("vue").PropType<KMaskTextboxProps["validation"]>;
31
+ default: null;
32
+ validator: (value: string) => boolean;
33
+ };
34
+ validationText: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
27
38
  };
28
39
  /**
29
40
  * Pattern definition for mask characters
@@ -15,6 +15,15 @@ export const KMaskTextboxDefaultProps = {
15
15
  mask: {
16
16
  type: String,
17
17
  required: true
18
+ },
19
+ validation: {
20
+ type: String,
21
+ default: null,
22
+ validator: (value) => [null, "success", "warning", "error"].includes(value)
23
+ },
24
+ validationText: {
25
+ type: String,
26
+ default: ""
18
27
  }
19
28
  };
20
29
  function getMaskPatternDef(mask, position) {
@@ -1,3 +1,4 @@
1
+ import { type KRadioboxProps } from './KRadiobox.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  label: {
3
4
  type: StringConstructor;
@@ -9,6 +10,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
9
10
  type: BooleanConstructor;
10
11
  default: boolean;
11
12
  };
13
+ validation: {
14
+ type: import("vue").PropType<KRadioboxProps["validation"]>;
15
+ default: null;
16
+ validator: (value: string) => boolean;
17
+ };
18
+ validationText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
12
22
  modelValue: {
13
23
  type: import("vue").PropType<any>;
14
24
  };
@@ -25,6 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
25
35
  type: BooleanConstructor;
26
36
  default: boolean;
27
37
  };
38
+ validation: {
39
+ type: import("vue").PropType<KRadioboxProps["validation"]>;
40
+ default: null;
41
+ validator: (value: string) => boolean;
42
+ };
43
+ validationText: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
28
47
  modelValue: {
29
48
  type: import("vue").PropType<any>;
30
49
  };
@@ -32,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
32
51
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
33
52
  }>, {
34
53
  disabled: boolean;
54
+ validation: "error" | "success" | "warning" | null | undefined;
55
+ validationText: string;
35
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
57
  declare const _default: typeof __VLS_export;
37
58
  export default _default;
@@ -11,7 +11,9 @@ const templateProps = computed(() => ({
11
11
  model: model.value,
12
12
  label: props.label,
13
13
  value: props.value,
14
- disabled: props.disabled
14
+ disabled: props.disabled,
15
+ validation: props.validation,
16
+ validationText: props.validationText
15
17
  }));
16
18
  </script>
17
19
 
@@ -1,3 +1,4 @@
1
+ import { type KRadioboxProps } from './KRadiobox.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  label: {
3
4
  type: StringConstructor;
@@ -9,6 +10,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
9
10
  type: BooleanConstructor;
10
11
  default: boolean;
11
12
  };
13
+ validation: {
14
+ type: import("vue").PropType<KRadioboxProps["validation"]>;
15
+ default: null;
16
+ validator: (value: string) => boolean;
17
+ };
18
+ validationText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
12
22
  modelValue: {
13
23
  type: import("vue").PropType<any>;
14
24
  };
@@ -25,6 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
25
35
  type: BooleanConstructor;
26
36
  default: boolean;
27
37
  };
38
+ validation: {
39
+ type: import("vue").PropType<KRadioboxProps["validation"]>;
40
+ default: null;
41
+ validator: (value: string) => boolean;
42
+ };
43
+ validationText: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
28
47
  modelValue: {
29
48
  type: import("vue").PropType<any>;
30
49
  };
@@ -32,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
32
51
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
33
52
  }>, {
34
53
  disabled: boolean;
54
+ validation: "error" | "success" | "warning" | null | undefined;
55
+ validationText: string;
35
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
57
  declare const _default: typeof __VLS_export;
37
58
  export default _default;
@@ -2,6 +2,8 @@ export interface KRadioboxProps {
2
2
  label?: string;
3
3
  value?: string;
4
4
  disabled?: boolean;
5
+ validation?: 'success' | 'warning' | 'error' | null;
6
+ validationText?: string;
5
7
  }
6
8
  export declare const KRadioboxDefaultProps: {
7
9
  label: {
@@ -14,6 +16,15 @@ export declare const KRadioboxDefaultProps: {
14
16
  type: BooleanConstructor;
15
17
  default: boolean;
16
18
  };
19
+ validation: {
20
+ type: import("vue").PropType<KRadioboxProps["validation"]>;
21
+ default: null;
22
+ validator: (value: string) => boolean;
23
+ };
24
+ validationText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
17
28
  };
18
29
  export declare function useKRadioboxLogic(props: KRadioboxProps, model: any): {
19
30
  label: string | undefined;
@@ -8,6 +8,15 @@ export const KRadioboxDefaultProps = {
8
8
  disabled: {
9
9
  type: Boolean,
10
10
  default: false
11
+ },
12
+ validation: {
13
+ type: String,
14
+ default: null,
15
+ validator: (value) => [null, "success", "warning", "error"].includes(value)
16
+ },
17
+ validationText: {
18
+ type: String,
19
+ default: ""
11
20
  }
12
21
  };
13
22
  export function useKRadioboxLogic(props, model) {
@@ -1,3 +1,4 @@
1
+ import { type KTextareaProps } from './KTextarea.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  modelValue: {
3
4
  type: StringConstructor;
@@ -11,6 +12,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
11
12
  type: NumberConstructor;
12
13
  default: number;
13
14
  };
15
+ validation: {
16
+ type: import("vue").PropType<KTextareaProps["validation"]>;
17
+ default: null;
18
+ validator: (value: string) => boolean;
19
+ };
20
+ validationText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
14
24
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
25
  "update:modelValue": (value: string) => any;
16
26
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -26,10 +36,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
26
36
  type: NumberConstructor;
27
37
  default: number;
28
38
  };
39
+ validation: {
40
+ type: import("vue").PropType<KTextareaProps["validation"]>;
41
+ default: null;
42
+ validator: (value: string) => boolean;
43
+ };
44
+ validationText: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
29
48
  }>> & Readonly<{
30
49
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
50
  }>, {
32
51
  rows: number;
52
+ validation: "error" | "success" | "warning" | null | undefined;
53
+ validationText: string;
33
54
  placeholder: string;
34
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
56
  declare const _default: typeof __VLS_export;
@@ -10,7 +10,9 @@ const presetComponent = usePresetComponent("KTextarea", KTextareaDefault);
10
10
  const templateProps = computed(() => ({
11
11
  text: text.value,
12
12
  placeholder: props.placeholder,
13
- rows: props.rows
13
+ rows: props.rows,
14
+ validation: props.validation,
15
+ validationText: props.validationText
14
16
  }));
15
17
  </script>
16
18
 
@@ -1,3 +1,4 @@
1
+ import { type KTextareaProps } from './KTextarea.logic.js';
1
2
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  modelValue: {
3
4
  type: StringConstructor;
@@ -11,6 +12,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
11
12
  type: NumberConstructor;
12
13
  default: number;
13
14
  };
15
+ validation: {
16
+ type: import("vue").PropType<KTextareaProps["validation"]>;
17
+ default: null;
18
+ validator: (value: string) => boolean;
19
+ };
20
+ validationText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
14
24
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
25
  "update:modelValue": (value: string) => any;
16
26
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -26,10 +36,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
26
36
  type: NumberConstructor;
27
37
  default: number;
28
38
  };
39
+ validation: {
40
+ type: import("vue").PropType<KTextareaProps["validation"]>;
41
+ default: null;
42
+ validator: (value: string) => boolean;
43
+ };
44
+ validationText: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
29
48
  }>> & Readonly<{
30
49
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
50
  }>, {
32
51
  rows: number;
52
+ validation: "error" | "success" | "warning" | null | undefined;
53
+ validationText: string;
33
54
  placeholder: string;
34
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
56
  declare const _default: typeof __VLS_export;
@@ -2,6 +2,8 @@ export interface KTextareaProps {
2
2
  modelValue: string;
3
3
  placeholder?: string;
4
4
  rows?: number;
5
+ validation?: 'success' | 'warning' | 'error' | null;
6
+ validationText?: string;
5
7
  }
6
8
  export interface KTextareaEmits {
7
9
  (e: 'update:modelValue', value: string): void;
@@ -28,4 +30,13 @@ export declare const KTextareaDefaultProps: {
28
30
  type: NumberConstructor;
29
31
  default: number;
30
32
  };
33
+ validation: {
34
+ type: import("vue").PropType<KTextareaProps["validation"]>;
35
+ default: null;
36
+ validator: (value: string) => boolean;
37
+ };
38
+ validationText: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
31
42
  };
@@ -20,5 +20,14 @@ export const KTextareaDefaultProps = {
20
20
  rows: {
21
21
  type: Number,
22
22
  default: 4
23
+ },
24
+ validation: {
25
+ type: String,
26
+ default: null,
27
+ validator: (value) => [null, "success", "warning", "error"].includes(value)
28
+ },
29
+ validationText: {
30
+ type: String,
31
+ default: ""
23
32
  }
24
33
  };
@@ -17,6 +17,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
17
17
  default: string;
18
18
  validator: (value: string) => boolean;
19
19
  };
20
+ validation: {
21
+ type: import("vue").PropType<KTextboxProps["validation"]>;
22
+ default: null;
23
+ validator: (value: string) => boolean;
24
+ };
25
+ validationText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
20
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
30
  "update:modelValue": (value: string) => any;
22
31
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -37,10 +46,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
37
46
  default: string;
38
47
  validator: (value: string) => boolean;
39
48
  };
49
+ validation: {
50
+ type: import("vue").PropType<KTextboxProps["validation"]>;
51
+ default: null;
52
+ validator: (value: string) => boolean;
53
+ };
54
+ validationText: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
40
58
  }>> & Readonly<{
41
59
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
60
  }>, {
43
61
  type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
62
+ validation: "error" | "success" | "warning" | null | undefined;
63
+ validationText: string;
44
64
  modelValue: string;
45
65
  placeholder: string;
46
66
  showClear: boolean;
@@ -12,7 +12,9 @@ const templateProps = computed(() => ({
12
12
  showClear: showClear.value,
13
13
  clear,
14
14
  placeholder: props.placeholder,
15
- type: props.type
15
+ type: props.type,
16
+ validation: props.validation,
17
+ validationText: props.validationText
16
18
  }));
17
19
  </script>
18
20
 
@@ -17,6 +17,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
17
17
  default: string;
18
18
  validator: (value: string) => boolean;
19
19
  };
20
+ validation: {
21
+ type: import("vue").PropType<KTextboxProps["validation"]>;
22
+ default: null;
23
+ validator: (value: string) => boolean;
24
+ };
25
+ validationText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
20
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
30
  "update:modelValue": (value: string) => any;
22
31
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -37,10 +46,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
37
46
  default: string;
38
47
  validator: (value: string) => boolean;
39
48
  };
49
+ validation: {
50
+ type: import("vue").PropType<KTextboxProps["validation"]>;
51
+ default: null;
52
+ validator: (value: string) => boolean;
53
+ };
54
+ validationText: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
40
58
  }>> & Readonly<{
41
59
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
60
  }>, {
43
61
  type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
62
+ validation: "error" | "success" | "warning" | null | undefined;
63
+ validationText: string;
44
64
  modelValue: string;
45
65
  placeholder: string;
46
66
  showClear: boolean;
@@ -3,6 +3,8 @@ export interface KTextboxProps {
3
3
  placeholder?: string;
4
4
  showClear?: boolean;
5
5
  type?: 'text' | 'password' | 'email' | 'url' | 'tel' | 'search' | 'number';
6
+ validation?: 'success' | 'warning' | 'error' | null;
7
+ validationText?: string;
6
8
  }
7
9
  export interface KTextboxEmits {
8
10
  (e: 'update:modelValue', value: string): void;
@@ -36,4 +38,13 @@ export declare const KTextboxDefaultProps: {
36
38
  default: string;
37
39
  validator: (value: string) => boolean;
38
40
  };
41
+ validation: {
42
+ type: import("vue").PropType<KTextboxProps["validation"]>;
43
+ default: null;
44
+ validator: (value: string) => boolean;
45
+ };
46
+ validationText: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
39
50
  };
@@ -35,5 +35,14 @@ export const KTextboxDefaultProps = {
35
35
  validator: (value) => {
36
36
  return ["text", "password", "email", "url", "tel", "search", "number"].includes(value);
37
37
  }
38
+ },
39
+ validation: {
40
+ type: String,
41
+ default: null,
42
+ validator: (value) => [null, "success", "warning", "error"].includes(value)
43
+ },
44
+ validationText: {
45
+ type: String,
46
+ default: ""
38
47
  }
39
48
  };
@@ -66,8 +66,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
68
  disabled: boolean;
69
- labelField: string;
70
69
  searchtext: string;
70
+ labelField: string;
71
71
  multiSelect: boolean;
72
72
  iconField: string;
73
73
  isNodeSelected: (node: any) => boolean;
@@ -66,8 +66,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
68
  disabled: boolean;
69
- labelField: string;
70
69
  searchtext: string;
70
+ labelField: string;
71
71
  multiSelect: boolean;
72
72
  iconField: string;
73
73
  isNodeSelected: (node: any) => boolean;