@onereach/ui-components 2.75.2-beta.2390.0 → 2.75.2-beta.2391.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCardCollection-e3986f07.js → OrCardCollection-04e767c2.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-498fa802.js → OrConfirm-a76ff6d2.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-5f0b99f9.js → OrInlineInput-9304f205.js} +11 -25
- package/dist/bundled/v2/{OrInlineTextarea-975b8706.js → OrInlineTextarea-e0d28fc6.js} +11 -25
- package/dist/bundled/v2/{OrInput-822eb9f5.js → OrInput-b8511a0c.js} +12 -27
- package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
- package/dist/bundled/v2/{OrModal-d845da2d.js → OrModal-5f094323.js} +4 -4
- package/dist/bundled/v2/{OrSearch-f9d46a70.js → OrSearch-60b64568.js} +2 -2
- package/dist/bundled/v2/{OrSelect-0c0c01d4.js → OrSelect-752bdd3b.js} +10 -27
- package/dist/bundled/v2/{OrTextarea-c56f19db.js → OrTextarea-5fdf63d0.js} +12 -27
- package/dist/bundled/v2/components/index.js +10 -11
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-modal-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/bundled/v2/index.js +11 -12
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f2fdaa33.js → OrCardCollection.vue_vue_type_script_lang-e71a0ea0.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-2bb4e530.js → OrConfirm.vue_vue_type_script_lang-b550c3d3.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-18853dd7.js → OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js} +5 -3
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js → OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js} +5 -3
- package/dist/bundled/v3/{OrInput-13a84d53.js → OrInput-6d49f353.js} +9 -12
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-09a6138d.js → OrInput.vue_vue_type_script_lang-af68d0e7.js} +7 -6
- package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-3f3ce339.js → OrModal.vue_vue_type_script_lang-92339e0f.js} +4 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-9028a3c5.js → OrSearch.vue_vue_type_script_lang-8c37e5a7.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-30c61027.js → OrSelect.vue_vue_type_script_lang-35ac0247.js} +8 -9
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-b2899ba6.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +7 -6
- package/dist/bundled/v3/components/index.js +12 -13
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -7
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-modal-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/index.js +131 -142
- package/dist/esm/v2/{OrCardCollection-59455d23.js → OrCardCollection-f7856175.js} +2 -2
- package/dist/esm/v2/{OrConfirm-b31e3d3d.js → OrConfirm-98d62065.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-36d79e50.js → OrInlineInput-df02ab5d.js} +11 -25
- package/dist/esm/v2/{OrInlineTextarea-e2d61e44.js → OrInlineTextarea-ad120656.js} +11 -25
- package/dist/esm/v2/{OrInput-06003aad.js → OrInput-3bb91436.js} +12 -27
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
- package/dist/esm/v2/{OrModal-370cfc3b.js → OrModal-407f3ac7.js} +4 -4
- package/dist/esm/v2/{OrSearch-44645202.js → OrSearch-dad9b02f.js} +2 -2
- package/dist/esm/v2/{OrSelect-a51044ed.js → OrSelect-7ef80130.js} +10 -27
- package/dist/esm/v2/{OrTextarea-5fa93c9a.js → OrTextarea-0a64f718.js} +12 -27
- package/dist/esm/v2/components/index.js +10 -11
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -5
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -4
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-input-v3/index.js +2 -3
- package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +3 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-select-v3/index.js +3 -4
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/esm/v2/index.js +10 -11
- package/dist/esm/v3/{OrCardCollection-5c0d53e0.js → OrCardCollection-4cb41408.js} +1 -1
- package/dist/esm/v3/{OrConfirm-c7304c10.js → OrConfirm-19da64d1.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-651c9155.js → OrInlineInput-cd3753ee.js} +14 -14
- package/dist/esm/v3/{OrInlineTextarea-d16af66a.js → OrInlineTextarea-4c5b0390.js} +14 -14
- package/dist/esm/v3/{OrInput-b3939d15.js → OrInput-ae9f6871.js} +13 -14
- package/dist/esm/v3/{OrModal-f9f2279b.js → OrModal-17c3a1cb.js} +4 -4
- package/dist/esm/v3/{OrSearch-d16d0331.js → OrSearch-6f6b4fcd.js} +1 -1
- package/dist/esm/v3/{OrSelect-19c2e7d2.js → OrSelect-96bf9b63.js} +13 -16
- package/dist/esm/v3/{OrTextarea-dfc6a453.js → OrTextarea-42d21f77.js} +13 -14
- package/dist/esm/v3/components/index.js +9 -9
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +9 -9
- package/package.json +2 -2
- package/src/components/or-inline-input-v3/OrInlineInput.vue +9 -12
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +9 -12
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +9 -12
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-modal-v3/OrModal.stories3.ts +19 -0
- package/src/components/or-modal-v3/styles.ts +1 -4
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +8 -12
- package/src/components/or-select-v3/styles.ts +1 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +9 -12
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -162
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/props-78496a2d.js +0 -12
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -131
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/props-78496a2d.js +0 -12
- package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -159
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -130
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -133
- package/src/components/or-combined-input-v3/index.ts +0 -2
- package/src/components/or-combined-input-v3/props.ts +0 -1
- package/src/components/or-combined-input-v3/styles.ts +0 -25
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
23
23
|
draftModelValue: import("@vue/composition-api").Ref<string | number>;
|
|
24
24
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
25
25
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
26
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
26
27
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
27
28
|
onFocus: (event: Event) => void;
|
|
28
29
|
onBlur: (event: Event) => void;
|
|
@@ -56,7 +57,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
56
57
|
default: undefined;
|
|
57
58
|
};
|
|
58
59
|
error: {
|
|
59
|
-
type:
|
|
60
|
+
type: StringConstructor;
|
|
60
61
|
default: undefined;
|
|
61
62
|
};
|
|
62
63
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
@@ -85,7 +86,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
85
86
|
default: undefined;
|
|
86
87
|
};
|
|
87
88
|
error: {
|
|
88
|
-
type:
|
|
89
|
+
type: StringConstructor;
|
|
89
90
|
default: undefined;
|
|
90
91
|
};
|
|
91
92
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
@@ -95,7 +96,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
95
96
|
size: InlineInputSize;
|
|
96
97
|
placeholder: string;
|
|
97
98
|
hint: string;
|
|
98
|
-
error: string
|
|
99
|
+
error: string;
|
|
99
100
|
} & {} & {
|
|
100
101
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
101
102
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -121,6 +122,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
121
122
|
draftModelValue: import("@vue/composition-api").Ref<string | number>;
|
|
122
123
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
123
124
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
125
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
124
126
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
125
127
|
onFocus: (event: Event) => void;
|
|
126
128
|
onBlur: (event: Event) => void;
|
|
@@ -135,7 +137,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
135
137
|
size: InlineInputSize;
|
|
136
138
|
placeholder: string;
|
|
137
139
|
hint: string;
|
|
138
|
-
error: string
|
|
140
|
+
error: string;
|
|
139
141
|
} & {} & {
|
|
140
142
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
141
143
|
}, {
|
|
@@ -145,6 +147,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
145
147
|
size: InlineInputSize;
|
|
146
148
|
placeholder: string;
|
|
147
149
|
hint: string;
|
|
148
|
-
error: string
|
|
150
|
+
error: string;
|
|
149
151
|
}, true>);
|
|
150
152
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from '../../OrInlineInput-
|
|
1
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from '../../OrInlineInput-cd3753ee.js';
|
|
2
2
|
export { I as InlineInputSize } from '../../OrInlineInputBox-09b33e18.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
draftModelValue: import("@vue/composition-api").Ref<string>;
|
|
22
22
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
24
25
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
25
26
|
onFocus: (event: Event) => void;
|
|
26
27
|
onBlur: (event: Event) => void;
|
|
@@ -46,7 +47,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
46
47
|
default: undefined;
|
|
47
48
|
};
|
|
48
49
|
error: {
|
|
49
|
-
type:
|
|
50
|
+
type: StringConstructor;
|
|
50
51
|
default: undefined;
|
|
51
52
|
};
|
|
52
53
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
@@ -67,7 +68,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
67
68
|
default: undefined;
|
|
68
69
|
};
|
|
69
70
|
error: {
|
|
70
|
-
type:
|
|
71
|
+
type: StringConstructor;
|
|
71
72
|
default: undefined;
|
|
72
73
|
};
|
|
73
74
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
@@ -75,7 +76,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
75
76
|
saveOnBlur: boolean;
|
|
76
77
|
placeholder: string;
|
|
77
78
|
hint: string;
|
|
78
|
-
error: string
|
|
79
|
+
error: string;
|
|
79
80
|
} & {} & {
|
|
80
81
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
81
82
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -101,6 +102,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
101
102
|
draftModelValue: import("@vue/composition-api").Ref<string>;
|
|
102
103
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
103
104
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
105
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
104
106
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
105
107
|
onFocus: (event: Event) => void;
|
|
106
108
|
onBlur: (event: Event) => void;
|
|
@@ -113,7 +115,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
113
115
|
saveOnBlur: boolean;
|
|
114
116
|
placeholder: string;
|
|
115
117
|
hint: string;
|
|
116
|
-
error: string
|
|
118
|
+
error: string;
|
|
117
119
|
} & {} & {
|
|
118
120
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
119
121
|
}, {
|
|
@@ -121,6 +123,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
121
123
|
saveOnBlur: boolean;
|
|
122
124
|
placeholder: string;
|
|
123
125
|
hint: string;
|
|
124
|
-
error: string
|
|
126
|
+
error: string;
|
|
125
127
|
}, true>);
|
|
126
128
|
export default _default;
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number>;
|
|
22
22
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
24
25
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
25
26
|
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
26
27
|
focus: () => void;
|
|
@@ -51,7 +52,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
51
52
|
default: undefined;
|
|
52
53
|
};
|
|
53
54
|
error: {
|
|
54
|
-
type:
|
|
55
|
+
type: StringConstructor;
|
|
55
56
|
default: undefined;
|
|
56
57
|
};
|
|
57
58
|
loading: {
|
|
@@ -104,7 +105,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
104
105
|
default: undefined;
|
|
105
106
|
};
|
|
106
107
|
error: {
|
|
107
|
-
type:
|
|
108
|
+
type: StringConstructor;
|
|
108
109
|
default: undefined;
|
|
109
110
|
};
|
|
110
111
|
loading: {
|
|
@@ -138,7 +139,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
138
139
|
label: string;
|
|
139
140
|
placeholder: string;
|
|
140
141
|
hint: string;
|
|
141
|
-
error: string
|
|
142
|
+
error: string;
|
|
142
143
|
loading: boolean;
|
|
143
144
|
required: boolean;
|
|
144
145
|
readonly: boolean;
|
|
@@ -168,6 +169,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
168
169
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number>;
|
|
169
170
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
170
171
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
172
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
171
173
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
172
174
|
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
173
175
|
focus: () => void;
|
|
@@ -179,7 +181,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
179
181
|
label: string;
|
|
180
182
|
placeholder: string;
|
|
181
183
|
hint: string;
|
|
182
|
-
error: string
|
|
184
|
+
error: string;
|
|
183
185
|
loading: boolean;
|
|
184
186
|
required: boolean;
|
|
185
187
|
readonly: boolean;
|
|
@@ -195,7 +197,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
195
197
|
label: string;
|
|
196
198
|
placeholder: string;
|
|
197
199
|
hint: string;
|
|
198
|
-
error: string
|
|
200
|
+
error: string;
|
|
199
201
|
loading: boolean;
|
|
200
202
|
required: boolean;
|
|
201
203
|
readonly: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from '../../OrInput-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from '../../OrInput-ae9f6871.js';
|
|
2
2
|
export { a as InputSize } from '../../OrInputBox-2467d7e4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch-6f6b4fcd.js';
|
|
2
2
|
export { a as SearchSize } from '../../OrInputBox-2467d7e4.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../../OrInput-
|
|
5
|
+
import '../../OrInput-ae9f6871.js';
|
|
6
6
|
import '../../useIdAttribute-859439f0.js';
|
|
7
7
|
import '../../useResponsive-a02e95b7.js';
|
|
8
8
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
@@ -24,6 +24,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
24
24
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
25
25
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
26
26
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
27
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
27
28
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
28
29
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
29
30
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
@@ -72,7 +73,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
72
73
|
default: undefined;
|
|
73
74
|
};
|
|
74
75
|
error: {
|
|
75
|
-
type:
|
|
76
|
+
type: StringConstructor;
|
|
76
77
|
default: undefined;
|
|
77
78
|
};
|
|
78
79
|
required: {
|
|
@@ -137,7 +138,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
137
138
|
default: undefined;
|
|
138
139
|
};
|
|
139
140
|
error: {
|
|
140
|
-
type:
|
|
141
|
+
type: StringConstructor;
|
|
141
142
|
default: undefined;
|
|
142
143
|
};
|
|
143
144
|
required: {
|
|
@@ -177,7 +178,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
177
178
|
size: SelectSize;
|
|
178
179
|
placeholder: string;
|
|
179
180
|
hint: string;
|
|
180
|
-
error: string
|
|
181
|
+
error: string;
|
|
181
182
|
required: boolean;
|
|
182
183
|
disabled: boolean;
|
|
183
184
|
disableDefaultStyles: boolean;
|
|
@@ -210,6 +211,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
210
211
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
211
212
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
212
213
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
214
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
213
215
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
214
216
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
215
217
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
@@ -233,7 +235,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
233
235
|
size: SelectSize;
|
|
234
236
|
placeholder: string;
|
|
235
237
|
hint: string;
|
|
236
|
-
error: string
|
|
238
|
+
error: string;
|
|
237
239
|
required: boolean;
|
|
238
240
|
disabled: boolean;
|
|
239
241
|
disableDefaultStyles: boolean;
|
|
@@ -252,7 +254,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
252
254
|
size: SelectSize;
|
|
253
255
|
placeholder: string;
|
|
254
256
|
hint: string;
|
|
255
|
-
error: string
|
|
257
|
+
error: string;
|
|
256
258
|
required: boolean;
|
|
257
259
|
disabled: boolean;
|
|
258
260
|
disableDefaultStyles: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-96bf9b63.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-2467d7e4.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -13,7 +13,7 @@ import '../../OrError-19198748.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-541cc4c1.js';
|
|
14
14
|
import '../../OrIcon-ea40e58c.js';
|
|
15
15
|
import '../../OrHint-6863124f.js';
|
|
16
|
-
import '../../OrInput-
|
|
16
|
+
import '../../OrInput-ae9f6871.js';
|
|
17
17
|
import '../../useResponsive-a02e95b7.js';
|
|
18
18
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
19
19
|
import '../../OrIconButton-385e997c.js';
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
22
22
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
24
25
|
focus: () => void;
|
|
25
26
|
blur: () => void;
|
|
26
27
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -45,7 +46,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
45
46
|
default: undefined;
|
|
46
47
|
};
|
|
47
48
|
error: {
|
|
48
|
-
type:
|
|
49
|
+
type: StringConstructor;
|
|
49
50
|
default: undefined;
|
|
50
51
|
};
|
|
51
52
|
required: {
|
|
@@ -82,7 +83,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
82
83
|
default: undefined;
|
|
83
84
|
};
|
|
84
85
|
error: {
|
|
85
|
-
type:
|
|
86
|
+
type: StringConstructor;
|
|
86
87
|
default: undefined;
|
|
87
88
|
};
|
|
88
89
|
required: {
|
|
@@ -103,7 +104,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
103
104
|
label: string;
|
|
104
105
|
placeholder: string;
|
|
105
106
|
hint: string;
|
|
106
|
-
error: string
|
|
107
|
+
error: string;
|
|
107
108
|
required: boolean;
|
|
108
109
|
readonly: boolean;
|
|
109
110
|
disabled: boolean;
|
|
@@ -130,6 +131,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
130
131
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
131
132
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
132
133
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
134
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
133
135
|
focus: () => void;
|
|
134
136
|
blur: () => void;
|
|
135
137
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -138,7 +140,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
138
140
|
label: string;
|
|
139
141
|
placeholder: string;
|
|
140
142
|
hint: string;
|
|
141
|
-
error: string
|
|
143
|
+
error: string;
|
|
142
144
|
required: boolean;
|
|
143
145
|
readonly: boolean;
|
|
144
146
|
disabled: boolean;
|
|
@@ -150,7 +152,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
150
152
|
label: string;
|
|
151
153
|
placeholder: string;
|
|
152
154
|
hint: string;
|
|
153
|
-
error: string
|
|
155
|
+
error: string;
|
|
154
156
|
required: boolean;
|
|
155
157
|
readonly: boolean;
|
|
156
158
|
disabled: boolean;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-9f059df6.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1258cd45.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-4cb41408.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-a3a855e8.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-8d8887ea.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-fe49ca8e.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-9a149e6b.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-45796889.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-19da64d1.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-efd8aae7.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-0025b17c.js';
|
|
@@ -31,11 +31,11 @@ export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-ed3e10
|
|
|
31
31
|
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-385e997c.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-ea40e58c.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-cd3753ee.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-adf71cc1.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-4c5b0390.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-2467d7e4.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-ae9f6871.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-0dbd5a01.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -48,7 +48,7 @@ export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-b4e8136c.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-35ee1b1e.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-153310f7.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-17c3a1cb.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-2d77aae4.js';
|
|
53
53
|
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-aab2e22a.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-dca5e850.js';
|
|
@@ -63,10 +63,10 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-97fb105f.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-4a5c943b.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-6f6b4fcd.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-88e5dfaf.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-96bf9b63.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { s as OrSidebarV3 } from './OrSidebar-64703ef6.js';
|
|
72
72
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-506fc73c.js';
|
|
@@ -88,7 +88,7 @@ export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
|
88
88
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
89
89
|
export { s as OrTextV3 } from './OrText-a3b00048.js';
|
|
90
90
|
export { s as OrTextarea } from './OrTextarea-de1ecb0f.js';
|
|
91
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
91
|
+
export { s as OrTextareaV3 } from './OrTextarea-42d21f77.js';
|
|
92
92
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-5c1cf735.js';
|
|
93
93
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-11a58425.js';
|
|
94
94
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.75.2-beta.
|
|
3
|
+
"version": "2.75.2-beta.2391.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.36.
|
|
41
|
+
"@onereach/styles": "^2.36.1",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div :class="['layout-row', 'gap-sm+']">
|
|
7
7
|
<OrInlineInputBox
|
|
8
8
|
:size="size"
|
|
9
|
-
:invalid="
|
|
9
|
+
:invalid="invalid"
|
|
10
10
|
>
|
|
11
11
|
<input
|
|
12
12
|
ref="control"
|
|
@@ -40,10 +40,7 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
|
-
<
|
|
44
|
-
v-show="!error"
|
|
45
|
-
:class="['contents']"
|
|
46
|
-
>
|
|
43
|
+
<template v-if="!invalid">
|
|
47
44
|
<template v-if="hint || maxLength">
|
|
48
45
|
<OrHint>
|
|
49
46
|
{{ hint }}
|
|
@@ -56,12 +53,9 @@
|
|
|
56
53
|
</template>
|
|
57
54
|
</OrHint>
|
|
58
55
|
</template>
|
|
59
|
-
</
|
|
56
|
+
</template>
|
|
60
57
|
|
|
61
|
-
<
|
|
62
|
-
v-show="typeof error === 'string'"
|
|
63
|
-
:class="['contents']"
|
|
64
|
-
>
|
|
58
|
+
<template v-else>
|
|
65
59
|
<OrError>
|
|
66
60
|
{{ error }}
|
|
67
61
|
|
|
@@ -72,7 +66,7 @@
|
|
|
72
66
|
{{ currentLength }} / {{ maxLength }}
|
|
73
67
|
</template>
|
|
74
68
|
</OrError>
|
|
75
|
-
</
|
|
69
|
+
</template>
|
|
76
70
|
</div>
|
|
77
71
|
</template>
|
|
78
72
|
|
|
@@ -133,7 +127,7 @@ export default defineComponent({
|
|
|
133
127
|
},
|
|
134
128
|
|
|
135
129
|
error: {
|
|
136
|
-
type:
|
|
130
|
+
type: String,
|
|
137
131
|
default: undefined,
|
|
138
132
|
},
|
|
139
133
|
},
|
|
@@ -194,6 +188,8 @@ export default defineComponent({
|
|
|
194
188
|
const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
|
|
195
189
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
196
190
|
|
|
191
|
+
const invalid = computed(() => !!props.error);
|
|
192
|
+
|
|
197
193
|
const activated = ref(false);
|
|
198
194
|
|
|
199
195
|
// Handlers
|
|
@@ -252,6 +248,7 @@ export default defineComponent({
|
|
|
252
248
|
draftModelValue,
|
|
253
249
|
currentLength,
|
|
254
250
|
maxLength,
|
|
251
|
+
invalid,
|
|
255
252
|
activated,
|
|
256
253
|
onFocus,
|
|
257
254
|
onBlur,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div :class="['layout-row', 'gap-sm+']">
|
|
7
7
|
<OrInlineInputBox
|
|
8
8
|
:size="'s'"
|
|
9
|
-
:invalid="
|
|
9
|
+
:invalid="invalid"
|
|
10
10
|
>
|
|
11
11
|
<textarea
|
|
12
12
|
ref="control"
|
|
@@ -39,10 +39,7 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
|
-
<
|
|
43
|
-
v-show="!error"
|
|
44
|
-
:class="['contents']"
|
|
45
|
-
>
|
|
42
|
+
<template v-if="!invalid">
|
|
46
43
|
<template v-if="hint || maxLength">
|
|
47
44
|
<OrHint>
|
|
48
45
|
{{ hint }}
|
|
@@ -55,12 +52,9 @@
|
|
|
55
52
|
</template>
|
|
56
53
|
</OrHint>
|
|
57
54
|
</template>
|
|
58
|
-
</
|
|
55
|
+
</template>
|
|
59
56
|
|
|
60
|
-
<
|
|
61
|
-
v-show="typeof error === 'string'"
|
|
62
|
-
:class="['contents']"
|
|
63
|
-
>
|
|
57
|
+
<template v-else>
|
|
64
58
|
<OrError>
|
|
65
59
|
{{ error }}
|
|
66
60
|
|
|
@@ -71,7 +65,7 @@
|
|
|
71
65
|
{{ currentLength }} / {{ maxLength }}
|
|
72
66
|
</template>
|
|
73
67
|
</OrError>
|
|
74
|
-
</
|
|
68
|
+
</template>
|
|
75
69
|
</div>
|
|
76
70
|
</template>
|
|
77
71
|
|
|
@@ -121,7 +115,7 @@ export default defineComponent({
|
|
|
121
115
|
},
|
|
122
116
|
|
|
123
117
|
error: {
|
|
124
|
-
type:
|
|
118
|
+
type: String,
|
|
125
119
|
default: undefined,
|
|
126
120
|
},
|
|
127
121
|
},
|
|
@@ -181,6 +175,8 @@ export default defineComponent({
|
|
|
181
175
|
const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
|
|
182
176
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
183
177
|
|
|
178
|
+
const invalid = computed(() => !!props.error);
|
|
179
|
+
|
|
184
180
|
const activated = ref(false);
|
|
185
181
|
|
|
186
182
|
// Handlers
|
|
@@ -239,6 +235,7 @@ export default defineComponent({
|
|
|
239
235
|
draftModelValue,
|
|
240
236
|
currentLength,
|
|
241
237
|
maxLength,
|
|
238
|
+
invalid,
|
|
242
239
|
activated,
|
|
243
240
|
onFocus,
|
|
244
241
|
onBlur,
|