@onereach/ui-components 2.69.7-beta.2181.0 → 2.69.7-beta.2182.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-c4209a92.js → OrCardCollection-aa6b8553.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-4f665252.js} +3 -3
- package/dist/bundled/v2/{OrConfirm-cab6535b.js → OrConfirm-dc704484.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-9add2e1e.js → OrInlineInput-6af4fe07.js} +2 -2
- package/dist/bundled/v2/{OrInlineTextarea-9c6f9044.js → OrInlineTextarea-ddf84267.js} +2 -2
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-e7b864c1.js} +20 -13
- package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-de8ce3ac.js} +2 -12
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-a60fc5c0.js} +3 -3
- package/dist/bundled/v2/{OrSearch-76b002cf.js → OrSearch-ad84b460.js} +2 -2
- package/dist/bundled/v2/{OrSelect-b7d93d4e.js → OrSelect-b393f564.js} +13 -5
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-fe9b7de7.js} +3 -3
- package/dist/bundled/v2/{OrTag-20db902b.js → OrTag-6440aa89.js} +4 -4
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-59fba95c.js} +14 -11
- package/dist/bundled/v2/components/index.js +14 -13
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +149 -0
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +6 -5
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +15 -14
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js → OrCardCollection.vue_vue_type_script_lang-ece2eab6.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f57ffa1a.js → OrConfirm.vue_vue_type_script_lang-fcbdf2c6.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-84c521f9.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js} +2 -2
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-4ccc2c7b.js} +17 -14
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-96ce8121.js} +5 -4
- package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-27aa1cec.js} +1 -1
- package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-28353c10.js} +4 -55
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-014ad470.js → OrSearch.vue_vue_type_script_lang-71fbb2fc.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-25dee18b.js → OrSelect.vue_vue_type_script_lang-363605c5.js} +16 -8
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-8cf66d48.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +4 -4
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-9f2a0234.js} +5 -4
- package/dist/bundled/v3/components/index.js +13 -12
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +7 -6
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-search-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +7 -6
- package/dist/bundled/v3/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
- package/dist/bundled/v3/index.js +41 -36
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/esm/v2/{OrCardCollection-57d11adf.js → OrCardCollection-fe34fef3.js} +2 -2
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-ea48d156.js} +3 -3
- package/dist/esm/v2/{OrConfirm-ec7aef0e.js → OrConfirm-3bead0be.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-cfeeea33.js → OrInlineInput-e32f322f.js} +2 -2
- package/dist/esm/v2/{OrInlineTextarea-897b5377.js → OrInlineTextarea-7296fbdb.js} +2 -2
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-db0e2368.js} +20 -13
- package/dist/esm/v2/OrInputBox-9d1193b5.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-328ae841.js} +3 -2
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-6e10f071.js} +3 -3
- package/dist/esm/v2/{OrSearch-2f260b09.js → OrSearch-9d9459f5.js} +2 -2
- package/dist/esm/v2/{OrSelect-8dbd2696.js → OrSelect-e6aa1b2a.js} +13 -5
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-c628d2c5.js} +3 -3
- package/dist/esm/v2/{OrTag-e2e7264d.js → OrTag-cf9c6195.js} +4 -4
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-52354386.js} +14 -11
- package/dist/esm/v2/components/index.js +14 -13
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.js +147 -0
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
- package/dist/esm/v2/components/or-input-v3/index.js +3 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -3
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-select-v3/index.js +6 -5
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/esm/v2/index.js +14 -13
- package/dist/esm/v3/{OrCardCollection-2a6514f3.js → OrCardCollection-8a84f69c.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-d1b516c8.js} +3 -2
- package/dist/esm/v3/{OrConfirm-5d56cbd3.js → OrConfirm-5bd1f4db.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-31026cd0.js → OrInlineInput-00f0d1b8.js} +2 -2
- package/dist/esm/v3/{OrInlineTextarea-b28c3d8c.js → OrInlineTextarea-c1babfda.js} +2 -2
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-2b447f81.js} +18 -15
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-ef9d4c6e.js} +3 -2
- package/dist/esm/v3/{OrSearch-e5a2e93e.js → OrSearch-d72cfc74.js} +1 -1
- package/dist/esm/v3/{OrSelect-87a1cc1d.js → OrSelect-e6e006d5.js} +12 -5
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-cc797a48.js} +3 -3
- package/dist/esm/v3/{OrTag-29dac834.js → OrTag-c0bbaa58.js} +4 -4
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-ed35cd0b.js} +16 -14
- package/dist/esm/v3/components/index.js +12 -12
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-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 +11 -0
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +12 -12
- package/package.json +2 -2
- package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -0
- package/src/components/or-combined-input-v3/index.ts +2 -0
- package/src/components/or-combined-input-v3/props.ts +1 -0
- package/src/components/or-combined-input-v3/styles.ts +25 -0
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +28 -22
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-radio-v3/OrRadio.vue +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +6 -0
- package/src/components/or-select-v3/styles.ts +4 -1
- package/src/components/or-switch-v3/OrSwitch.vue +1 -1
- package/src/components/or-tag-v3/OrTag.vue +1 -1
- package/src/components/or-tag-v3/props.ts +1 -1
- package/src/components/or-tag-v3/styles.ts +1 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +5 -1
- package/src/components/or-textarea-v3/styles.ts +2 -2
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
:class="rootStyles"
|
|
6
|
+
>
|
|
7
|
+
<template v-if="label">
|
|
8
|
+
<OrLabel
|
|
9
|
+
:variant="'input'"
|
|
10
|
+
:required="required"
|
|
11
|
+
:disabled="disabled"
|
|
12
|
+
>
|
|
13
|
+
{{ label }}
|
|
14
|
+
|
|
15
|
+
<template v-slot:addon>
|
|
16
|
+
<slot name="addon" />
|
|
17
|
+
</template>
|
|
18
|
+
</OrLabel>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<div :class="controlGroup">
|
|
22
|
+
<slot
|
|
23
|
+
:size="size"
|
|
24
|
+
:required="required"
|
|
25
|
+
:readonly="readonly"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
:disable-default-styles="disableDefaultStyles"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<template v-if="!invalid">
|
|
32
|
+
<template v-if="hint">
|
|
33
|
+
<OrHint :disabled="disabled">
|
|
34
|
+
{{ hint }}
|
|
35
|
+
</OrHint>
|
|
36
|
+
</template>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<template v-else>
|
|
40
|
+
<OrError :disabled="disabled">
|
|
41
|
+
{{ error }}
|
|
42
|
+
</OrError>
|
|
43
|
+
</template>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script lang="ts">
|
|
48
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
49
|
+
import { useClassAttribute } from '../../hooks';
|
|
50
|
+
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
51
|
+
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
52
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
53
|
+
import { CombinedInputSize } from './props';
|
|
54
|
+
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
55
|
+
|
|
56
|
+
export default defineComponent({
|
|
57
|
+
name: 'OrCombinedInput',
|
|
58
|
+
|
|
59
|
+
components: {
|
|
60
|
+
OrError,
|
|
61
|
+
OrHint,
|
|
62
|
+
OrLabel,
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
inheritAttrs: false,
|
|
66
|
+
|
|
67
|
+
props: {
|
|
68
|
+
size: {
|
|
69
|
+
type: String as PropType<CombinedInputSize>,
|
|
70
|
+
default: CombinedInputSize.M,
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
label: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: undefined,
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
hint: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: undefined,
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
error: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: undefined,
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
required: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false,
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
disabled: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
disableDefaultStyles: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
setup(props, context) {
|
|
105
|
+
// Refs
|
|
106
|
+
const root = ref<HTMLElement>();
|
|
107
|
+
|
|
108
|
+
// Styles
|
|
109
|
+
const classAttribute = useClassAttribute();
|
|
110
|
+
|
|
111
|
+
const rootStyles = computed(() => [
|
|
112
|
+
'or-combined-input',
|
|
113
|
+
...CombinedInputRoot,
|
|
114
|
+
classAttribute.value,
|
|
115
|
+
]);
|
|
116
|
+
|
|
117
|
+
const controlGroup = computed(() => [
|
|
118
|
+
...CombinedInputControlGroup,
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
// State
|
|
122
|
+
const invalid = computed(() => !!props.error);
|
|
123
|
+
const readonly = computed(() => context.attrs.readonly as boolean);
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
root,
|
|
127
|
+
rootStyles,
|
|
128
|
+
controlGroup,
|
|
129
|
+
invalid,
|
|
130
|
+
readonly,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const CombinedInputRoot: string[] = [
|
|
2
|
+
// Layout
|
|
3
|
+
'layout-column',
|
|
4
|
+
|
|
5
|
+
// Spacing
|
|
6
|
+
'gap-xs',
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export const CombinedInputControlGroup: string[] = [
|
|
10
|
+
// Layout
|
|
11
|
+
'layout-row',
|
|
12
|
+
|
|
13
|
+
// Box
|
|
14
|
+
'w-full',
|
|
15
|
+
|
|
16
|
+
// Shape (.or-input-box)
|
|
17
|
+
'[&_.or-input-box]:first-child:rounded-r-0',
|
|
18
|
+
'[&_.or-input-box]:intermediate-child:rounded-0',
|
|
19
|
+
'[&_.or-input-box]:last-child:rounded-l-0',
|
|
20
|
+
|
|
21
|
+
// Spacing (.or-input-box)
|
|
22
|
+
'[&_.or-input-box]:first-child:mr-[-1px]',
|
|
23
|
+
'[&_.or-input-box]:intermediate-child:border-x-0',
|
|
24
|
+
'[&_.or-input-box]:last-child:ml-[-1px]',
|
|
25
|
+
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
4
5
|
:class="rootStyles"
|
|
5
6
|
>
|
|
6
7
|
<template v-if="label">
|
|
@@ -29,46 +30,51 @@
|
|
|
29
30
|
:id="controlId"
|
|
30
31
|
ref="input"
|
|
31
32
|
v-model="proxyModelValue"
|
|
32
|
-
v-bind="$attrs"
|
|
33
33
|
:class="controlStyles"
|
|
34
34
|
:type="type === 'password' && disclosed ? 'text' : type"
|
|
35
35
|
:placeholder="placeholder"
|
|
36
36
|
:required="required"
|
|
37
37
|
:disabled="disabled"
|
|
38
|
+
|
|
39
|
+
:readonly="readonly"
|
|
40
|
+
:maxlength="maxLength"
|
|
41
|
+
|
|
38
42
|
@keydown="$emit('keydown', $event)"
|
|
39
43
|
@keyup="$emit('keyup', $event)"
|
|
40
44
|
@focus="$emit('focus', $event)"
|
|
41
45
|
@blur="$emit('blur', $event)"
|
|
42
46
|
>
|
|
43
47
|
|
|
44
|
-
<
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
48
|
-
:color="'inherit'"
|
|
49
|
-
:disabled="disabled"
|
|
50
|
-
@click.stop="disclosed = !disclosed"
|
|
51
|
-
/>
|
|
52
|
-
</template>
|
|
53
|
-
|
|
54
|
-
<template v-if="type === 'search'">
|
|
55
|
-
<template v-if="modelValue">
|
|
48
|
+
<template v-if="type !== 'text'">
|
|
49
|
+
<div :class="['layout-row']">
|
|
50
|
+
<template v-if="type === 'password'">
|
|
56
51
|
<OrIconButton
|
|
57
|
-
:icon="'
|
|
52
|
+
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
58
53
|
:color="'inherit'"
|
|
59
54
|
:disabled="disabled"
|
|
60
|
-
@click.stop="
|
|
55
|
+
@click.stop="disclosed = !disclosed"
|
|
61
56
|
/>
|
|
62
57
|
</template>
|
|
63
58
|
|
|
64
|
-
<template v-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
<template v-if="type === 'search'">
|
|
60
|
+
<template v-if="modelValue">
|
|
61
|
+
<OrIconButton
|
|
62
|
+
:icon="'close'"
|
|
63
|
+
:color="'inherit'"
|
|
64
|
+
:disabled="disabled"
|
|
65
|
+
@click.stop="$emit('update:modelValue', '')"
|
|
66
|
+
/>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<template v-else>
|
|
70
|
+
<OrIcon
|
|
71
|
+
:icon="'search'"
|
|
72
|
+
:variant="'outlined'"
|
|
73
|
+
/>
|
|
74
|
+
</template>
|
|
69
75
|
</template>
|
|
70
|
-
</
|
|
71
|
-
</
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
72
78
|
</OrInputBox>
|
|
73
79
|
|
|
74
80
|
<template v-if="!invalid">
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
v-dropdown-open="toggle"
|
|
25
25
|
v-dropdown-close="close"
|
|
26
26
|
:class="[popoverState === 'open' && 'rounded-b-0']"
|
|
27
|
+
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
27
28
|
:size="size"
|
|
28
29
|
:invalid="invalid"
|
|
29
30
|
:readonly="readonly"
|
|
@@ -314,6 +315,11 @@ export default defineComponent({
|
|
|
314
315
|
default: false,
|
|
315
316
|
},
|
|
316
317
|
|
|
318
|
+
disableDefaultStyles: {
|
|
319
|
+
type: Boolean,
|
|
320
|
+
default: false,
|
|
321
|
+
},
|
|
322
|
+
|
|
317
323
|
enableSearch: {
|
|
318
324
|
type: Boolean,
|
|
319
325
|
default: false,
|
|
@@ -45,13 +45,10 @@ export const TagRootVariants: Record<TagVariant, string[]> = {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const TagRootColors: Record<TagColor, string[]> = {
|
|
48
|
-
'
|
|
48
|
+
'primary': [
|
|
49
49
|
// Theme
|
|
50
50
|
'theme-preset-2-primary',
|
|
51
51
|
'dark:theme-preset-2-primary-dark',
|
|
52
|
-
|
|
53
|
-
'theme-foreground-default',
|
|
54
|
-
'dark:theme-foreground-default-dark',
|
|
55
52
|
],
|
|
56
53
|
|
|
57
54
|
'danger': [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
4
5
|
:class="rootStyles"
|
|
5
6
|
>
|
|
6
7
|
<template v-if="label">
|
|
@@ -27,11 +28,14 @@
|
|
|
27
28
|
<textarea
|
|
28
29
|
:id="controlId"
|
|
29
30
|
v-model="proxyModelValue"
|
|
30
|
-
v-bind="$attrs"
|
|
31
31
|
:class="controlStyles"
|
|
32
32
|
:placeholder="placeholder"
|
|
33
33
|
:required="required"
|
|
34
34
|
:disabled="disabled"
|
|
35
|
+
|
|
36
|
+
:readonly="readonly"
|
|
37
|
+
:maxlength="maxLength"
|
|
38
|
+
|
|
35
39
|
@keydown="$emit('keydown', $event)"
|
|
36
40
|
@keyup="$emit('keyup', $event)"
|
|
37
41
|
@focus="$emit('focus', $event)"
|