@onereach/ui-components 2.71.2-beta.2238.0 → 2.71.2-beta.2240.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-166cfcc6.js → OrCardCollection-89428bbf.js} +5 -5
- package/dist/bundled/v2/{OrCardCollection-091e2193.js → OrCardCollection-c1ccde63.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-55b89b17.js → OrConfirm-56d01cff.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-bb2df177.js → OrConfirm-cc8b767f.js} +1 -1
- package/dist/bundled/v2/{OrInput-5404a234.js → OrInput-c539e47c.js} +23 -6
- package/dist/bundled/v2/{OrListOfInputs-ab7f9d97.js → OrListOfInputs-8f076650.js} +4 -4
- package/dist/bundled/v2/{OrTextarea-71ff236d.js → OrPassword-7da938aa.js} +449 -7
- package/dist/bundled/v2/{OrSearch-d1169241.js → OrSearch-d7326373.js} +1 -1
- package/dist/bundled/v2/{OrSearch-832d7978.js → OrSearch-f7cfa52f.js} +4 -4
- package/dist/bundled/v2/{OrSelect-5634790b.js → OrSelect-8802f330.js} +1 -1
- package/dist/bundled/v2/components/index.d.ts +1 -5
- package/dist/bundled/v2/components/index.js +13 -15
- package/dist/bundled/v2/components/or-card-collection/index.js +4 -4
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm/index.js +2 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-inputs/index.d.ts +5 -0
- package/dist/bundled/v2/components/{or-password → or-inputs}/index.js +4 -3
- package/dist/bundled/v2/components/or-list-of-inputs/index.js +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +11 -13
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-cd84f344.js → OrCardCollection.vue_vue_type_script_lang-d8124dda.js} +4 -4
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60403ae6.js → OrCardCollection.vue_vue_type_script_lang-f9897e01.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-41b4d791.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +1 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9231d51e.js → OrConfirm.vue_vue_type_script_lang-e9ba9909.js} +2 -2
- package/dist/bundled/v3/{OrInput-2a7c6b57.js → OrInput-41f8351a.js} +13 -4
- package/dist/bundled/v3/{OrInput-704e72ba.js → OrInput-7d4b571a.js} +193 -5
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-509de504.js → OrInput.vue_vue_type_script_lang-b88324b6.js} +13 -1
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-6c5cf7a5.js → OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js} +1 -2
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-13bc5b00.js +390 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-5356fa79.js → OrSearch.vue_vue_type_script_lang-16fbccc0.js} +1 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ab2ef22c.js → OrSearch.vue_vue_type_script_lang-56eb4e93.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-54f683a2.js → OrSelect.vue_vue_type_script_lang-ee433d47.js} +2 -2
- package/dist/bundled/v3/components/index.d.ts +1 -5
- package/dist/bundled/v3/components/index.js +14 -17
- package/dist/bundled/v3/components/or-card-collection/index.js +4 -5
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-confirm/index.js +2 -3
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-inputs/index.d.ts +5 -0
- package/dist/bundled/v3/components/{or-search → or-inputs}/index.js +5 -4
- package/dist/bundled/v3/components/or-list-of-inputs/index.js +2 -3
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v3/index.js +659 -664
- package/dist/esm/v2/{OrCardCollection-19582949.js → OrCardCollection-f6b07557.js} +7 -6
- package/dist/esm/v2/{OrCardCollection-bbdb6159.js → OrCardCollection-ff1e9819.js} +1 -1
- package/dist/esm/v2/{OrConfirm-ede619eb.js → OrConfirm-d7112dd3.js} +4 -4
- package/dist/esm/v2/{OrConfirm-cfaf4266.js → OrConfirm-ec81498e.js} +1 -1
- package/dist/esm/v2/{OrInput-e8fe9102.js → OrInput-b029d058.js} +23 -6
- package/dist/esm/v2/{OrListOfInputs-4298fa2c.js → OrListOfInputs-50aa1ef1.js} +5 -5
- package/dist/esm/v2/{OrTextarea-91a95068.js → OrPassword-1fa97156.js} +245 -187
- package/dist/esm/v2/{OrSearch-b4f4d59b.js → OrSearch-0589d17d.js} +5 -122
- package/dist/esm/v2/{OrSearch-4b774707.js → OrSearch-1c934f72.js} +1 -1
- package/dist/esm/v2/{OrInput-6e6cfd11.js → OrSearch.vue_rollup-plugin-vue_script-197d77fc.js} +492 -4
- package/dist/esm/v2/{OrSelect-d7016575.js → OrSelect-cfcb233a.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +1 -5
- package/dist/esm/v2/components/index.js +13 -15
- package/dist/esm/v2/components/or-card-collection/index.js +4 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm/index.js +3 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v2/components/or-input-v3/index.js +3 -2
- package/dist/esm/v2/components/or-inputs/index.d.ts +5 -0
- package/dist/esm/v2/components/{or-password → or-inputs}/index.js +6 -5
- package/dist/esm/v2/components/or-list-of-inputs/index.js +4 -2
- package/dist/esm/v2/components/or-search-v3/index.js +4 -3
- package/dist/esm/v2/components/or-select-v3/index.js +4 -3
- package/dist/esm/v2/index.js +11 -13
- package/dist/esm/v3/{OrCardCollection-47f61c40.js → OrCardCollection-5ecdcbaf.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-1e44c758.js → OrCardCollection-a5e326ef.js} +2 -2
- package/dist/esm/v3/{OrConfirm-e7cbf54c.js → OrConfirm-beeb74d6.js} +1 -1
- package/dist/esm/v3/{OrConfirm-c11ee2ec.js → OrConfirm-f39bd784.js} +1 -1
- package/dist/esm/v3/{OrInput-6fb81556.js → OrInput-8a4573cd.js} +24 -4
- package/dist/esm/v3/{OrListOfInputs-508e056f.js → OrListOfInputs-7a67440f.js} +1 -1
- package/dist/esm/v3/{OrSearch-e15955a7.js → OrSearch-10d09806.js} +1 -1
- package/dist/esm/v3/OrSearch-7cb2c91c.js +1075 -0
- package/dist/esm/v3/{OrSelect-027b5e8f.js → OrSelect-1e4c6062.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +1 -5
- package/dist/esm/v3/components/index.js +11 -15
- package/dist/esm/v3/components/or-card-collection/index.js +3 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm/index.js +3 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v3/components/or-input-v3/index.js +3 -2
- package/dist/esm/v3/components/or-inputs/index.d.ts +5 -0
- package/dist/esm/v3/components/{or-password → or-inputs}/index.js +2 -3
- package/dist/esm/v3/components/or-list-of-inputs/index.js +4 -2
- package/dist/esm/v3/components/or-search-v3/index.js +4 -3
- package/dist/esm/v3/components/or-select-v3/index.js +4 -3
- package/dist/esm/v3/index.js +9 -13
- package/package.json +1 -1
- package/src/components/index.ts +1 -5
- package/src/components/or-card-collection/OrCardCollection.vue +8 -8
- package/src/components/or-confirm/OrConfirm.vue +1 -1
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
- package/src/components/or-input-v3/OrInput.vue +37 -17
- package/src/components/{or-number-input → or-inputs}/OrNumberInput.vue +1 -1
- package/src/components/{or-password → or-inputs}/OrPassword.vue +1 -1
- package/src/components/{or-search → or-inputs}/OrSearch.vue +1 -1
- package/src/components/{or-textarea → or-inputs}/OrTextarea.vue +6 -225
- package/src/components/or-inputs/index.ts +5 -0
- package/src/components/or-list/OrList.stories.ts +1 -1
- package/src/components/or-list-of-inputs/OrListOfInputs.vue +1 -1
- package/src/components/or-modal/OrModal.stories.ts +1 -1
- package/dist/bundled/v2/OrNumberInput-face8ccc.js +0 -227
- package/dist/bundled/v2/OrPassword-a818e7b5.js +0 -227
- package/dist/bundled/v2/components/or-input/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-input/index.js +0 -13
- package/dist/bundled/v2/components/or-number-input/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-number-input/index.js +0 -14
- package/dist/bundled/v2/components/or-password/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-search/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-search/index.js +0 -25
- package/dist/bundled/v2/components/or-textarea/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-textarea/index.js +0 -13
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-409235cc.js +0 -190
- package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-f061d829.js +0 -113
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-b75f6543.js +0 -99
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-69ea22e9.js +0 -187
- package/dist/bundled/v3/components/or-input/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-input/index.js +0 -14
- package/dist/bundled/v3/components/or-number-input/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-number-input/index.js +0 -16
- package/dist/bundled/v3/components/or-password/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-password/index.js +0 -31
- package/dist/bundled/v3/components/or-search/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-textarea/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-textarea/index.js +0 -14
- package/dist/esm/v2/OrNumberInput-b20d75d2.js +0 -225
- package/dist/esm/v2/OrPassword-e6d5e968.js +0 -225
- package/dist/esm/v2/components/or-input/index.d.ts +0 -1
- package/dist/esm/v2/components/or-input/index.js +0 -11
- package/dist/esm/v2/components/or-number-input/index.d.ts +0 -1
- package/dist/esm/v2/components/or-number-input/index.js +0 -12
- package/dist/esm/v2/components/or-password/index.d.ts +0 -1
- package/dist/esm/v2/components/or-search/index.d.ts +0 -1
- package/dist/esm/v2/components/or-search/index.js +0 -23
- package/dist/esm/v2/components/or-textarea/index.d.ts +0 -1
- package/dist/esm/v2/components/or-textarea/index.js +0 -11
- package/dist/esm/v3/OrInput-81125804.js +0 -295
- package/dist/esm/v3/OrNumberInput-b32b5ce3.js +0 -170
- package/dist/esm/v3/OrPassword-b0cbb578.js +0 -162
- package/dist/esm/v3/OrSearch-11fdf667.js +0 -188
- package/dist/esm/v3/OrTextarea-1f5c3be1.js +0 -290
- package/dist/esm/v3/components/or-input/index.d.ts +0 -1
- package/dist/esm/v3/components/or-input/index.js +0 -11
- package/dist/esm/v3/components/or-number-input/index.d.ts +0 -1
- package/dist/esm/v3/components/or-number-input/index.js +0 -12
- package/dist/esm/v3/components/or-password/index.d.ts +0 -1
- package/dist/esm/v3/components/or-search/index.d.ts +0 -1
- package/dist/esm/v3/components/or-search/index.js +0 -20
- package/dist/esm/v3/components/or-textarea/index.d.ts +0 -1
- package/dist/esm/v3/components/or-textarea/index.js +0 -11
- package/src/components/or-input/index.ts +0 -1
- package/src/components/or-number-input/index.ts +0 -1
- package/src/components/or-password/index.ts +0 -1
- package/src/components/or-search/index.ts +0 -1
- package/src/components/or-textarea/index.ts +0 -1
- /package/dist/bundled/v2/{OrInput-df1a14fa.js → OrInput-08f2f666.js} +0 -0
- /package/dist/bundled/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
- /package/src/components/{or-input → or-inputs}/OrInput.stories.ts +0 -0
- /package/src/components/{or-input → or-inputs}/OrInput.vue +0 -0
- /package/src/components/{or-number-input → or-inputs}/OrNumberInput.stories.ts +0 -0
- /package/src/components/{or-password → or-inputs}/OrPassword.stories.ts +0 -0
- /package/src/components/{or-search → or-inputs}/OrSearch.stories.ts +0 -0
- /package/src/components/{or-textarea → or-inputs}/OrTextarea.stories.ts +0 -0
- /package/src/components/{or-input → or-inputs}/or-textbox-migration.stories.mdx +0 -0
- /package/src/components/{or-input → or-inputs}/styles.scss +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref } from 'vue-demi';
|
|
2
|
-
import { s as script$1 } from './OrInput-81125804.js';
|
|
3
|
-
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, renderSlot } from 'vue';
|
|
4
|
-
|
|
5
|
-
var script = defineComponent({
|
|
6
|
-
name: 'OrNumberInput',
|
|
7
|
-
components: {
|
|
8
|
-
OrInput: script$1
|
|
9
|
-
},
|
|
10
|
-
model: {
|
|
11
|
-
prop: 'modelValue',
|
|
12
|
-
event: 'update:modelValue'
|
|
13
|
-
},
|
|
14
|
-
props: {
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: undefined,
|
|
18
|
-
required: false
|
|
19
|
-
},
|
|
20
|
-
htmlId: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: '',
|
|
23
|
-
required: false
|
|
24
|
-
},
|
|
25
|
-
placeholder: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: '',
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
label: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: '',
|
|
33
|
-
required: false
|
|
34
|
-
},
|
|
35
|
-
error: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: '',
|
|
38
|
-
required: false
|
|
39
|
-
},
|
|
40
|
-
hint: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: '',
|
|
43
|
-
required: false
|
|
44
|
-
},
|
|
45
|
-
minValue: {
|
|
46
|
-
type: Number,
|
|
47
|
-
default: undefined,
|
|
48
|
-
required: false
|
|
49
|
-
},
|
|
50
|
-
maxValue: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: undefined,
|
|
53
|
-
required: false
|
|
54
|
-
},
|
|
55
|
-
stepValue: {
|
|
56
|
-
type: Number,
|
|
57
|
-
default: undefined,
|
|
58
|
-
required: false
|
|
59
|
-
},
|
|
60
|
-
isSmall: Boolean,
|
|
61
|
-
isRequired: Boolean,
|
|
62
|
-
isDisabled: Boolean,
|
|
63
|
-
isReadonly: Boolean,
|
|
64
|
-
isInvalid: Boolean
|
|
65
|
-
},
|
|
66
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
|
|
67
|
-
setup(props, {
|
|
68
|
-
emit
|
|
69
|
-
}) {
|
|
70
|
-
const inputRef = ref();
|
|
71
|
-
if (props.modelValue) {
|
|
72
|
-
if (props.minValue !== undefined && props.modelValue < props.minValue) {
|
|
73
|
-
emit('update:modelValue', props.minValue);
|
|
74
|
-
} else if (props.maxValue !== undefined && props.modelValue > props.maxValue) {
|
|
75
|
-
emit('update:modelValue', props.maxValue);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
inputRef
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
htmlInputAttrs() {
|
|
84
|
-
return {
|
|
85
|
-
min: this.minValue,
|
|
86
|
-
max: this.maxValue,
|
|
87
|
-
step: this.stepValue
|
|
88
|
-
};
|
|
89
|
-
},
|
|
90
|
-
localValue: {
|
|
91
|
-
get() {
|
|
92
|
-
var _a;
|
|
93
|
-
return ((_a = this.modelValue) !== null && _a !== void 0 ? _a : '') + '';
|
|
94
|
-
},
|
|
95
|
-
set(val) {
|
|
96
|
-
if (val === undefined || val === '') {
|
|
97
|
-
this.$emit('update:modelValue', undefined);
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const numVal = +val;
|
|
101
|
-
if (this.minValue !== undefined && numVal < this.minValue) {
|
|
102
|
-
this.$emit('update:modelValue', this.minValue);
|
|
103
|
-
} else if (this.maxValue !== undefined && numVal > this.maxValue) {
|
|
104
|
-
this.$emit('update:modelValue', this.maxValue);
|
|
105
|
-
} else {
|
|
106
|
-
this.$emit('update:modelValue', numVal);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
114
|
-
const _component_or_input = resolveComponent("or-input");
|
|
115
|
-
return openBlock(), createBlock(_component_or_input, {
|
|
116
|
-
ref: "inputRef",
|
|
117
|
-
modelValue: _ctx.localValue,
|
|
118
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localValue = $event),
|
|
119
|
-
class: "or-password",
|
|
120
|
-
"html-id": _ctx.htmlId,
|
|
121
|
-
placeholder: _ctx.placeholder,
|
|
122
|
-
"html-type": "number",
|
|
123
|
-
"html-input-attrs": _ctx.htmlInputAttrs,
|
|
124
|
-
label: _ctx.label,
|
|
125
|
-
error: _ctx.error,
|
|
126
|
-
hint: _ctx.hint,
|
|
127
|
-
"is-small": _ctx.isSmall,
|
|
128
|
-
"is-required": _ctx.isRequired,
|
|
129
|
-
"is-disabled": _ctx.isDisabled,
|
|
130
|
-
"is-readonly": _ctx.isReadonly,
|
|
131
|
-
"is-invalid": _ctx.isInvalid,
|
|
132
|
-
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
133
|
-
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event)),
|
|
134
|
-
onInput: _cache[3] || (_cache[3] = $event => _ctx.$emit('input', $event)),
|
|
135
|
-
onKeypress: _cache[4] || (_cache[4] = $event => _ctx.$emit('keypress', $event)),
|
|
136
|
-
onKeyup: _cache[5] || (_cache[5] = $event => _ctx.$emit('keyup', $event)),
|
|
137
|
-
onKeydown: _cache[6] || (_cache[6] = $event => _ctx.$emit('keydown', $event))
|
|
138
|
-
}, createSlots({
|
|
139
|
-
_: 2 /* DYNAMIC */
|
|
140
|
-
}, [_ctx.$slots.prepend ? {
|
|
141
|
-
name: "prepend",
|
|
142
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "prepend")]),
|
|
143
|
-
key: "0"
|
|
144
|
-
} : undefined, _ctx.$slots['label-default'] ? {
|
|
145
|
-
name: "label-default",
|
|
146
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-default")]),
|
|
147
|
-
key: "1"
|
|
148
|
-
} : undefined, _ctx.$slots['label-append'] ? {
|
|
149
|
-
name: "label-append",
|
|
150
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-append")]),
|
|
151
|
-
key: "2"
|
|
152
|
-
} : undefined, _ctx.$slots['wrapper-end'] ? {
|
|
153
|
-
name: "wrapper-end",
|
|
154
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "wrapper-end")]),
|
|
155
|
-
key: "3"
|
|
156
|
-
} : undefined, _ctx.$slots['input-end'] ? {
|
|
157
|
-
name: "input-end",
|
|
158
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "input-end")]),
|
|
159
|
-
key: "4"
|
|
160
|
-
} : undefined, _ctx.$slots.append ? {
|
|
161
|
-
name: "append",
|
|
162
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "append")]),
|
|
163
|
-
key: "5"
|
|
164
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "html-id", "placeholder", "html-input-attrs", "label", "error", "hint", "is-small", "is-required", "is-disabled", "is-readonly", "is-invalid"]);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
script.render = render;
|
|
168
|
-
script.__file = "src/components/or-number-input/OrNumberInput.vue";
|
|
169
|
-
|
|
170
|
-
export { script as s };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref } from 'vue-demi';
|
|
2
|
-
import { useVModel } from '@vueuse/core';
|
|
3
|
-
import { s as script$1 } from './OrInput-81125804.js';
|
|
4
|
-
import { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
5
|
-
import { a as script$2, c as BUTTON_SIZE } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, createVNode, renderSlot } from 'vue';
|
|
7
|
-
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
8
|
-
|
|
9
|
-
var script = defineComponent({
|
|
10
|
-
name: 'OrPassword',
|
|
11
|
-
components: {
|
|
12
|
-
OrInput: script$1,
|
|
13
|
-
OrIconButton: script$2
|
|
14
|
-
},
|
|
15
|
-
model: {
|
|
16
|
-
prop: 'modelValue',
|
|
17
|
-
event: 'update:modelValue'
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: '',
|
|
23
|
-
required: false
|
|
24
|
-
},
|
|
25
|
-
htmlId: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: '',
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
placeholder: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: '',
|
|
33
|
-
required: false
|
|
34
|
-
},
|
|
35
|
-
label: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: '',
|
|
38
|
-
required: false
|
|
39
|
-
},
|
|
40
|
-
error: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: '',
|
|
43
|
-
required: false
|
|
44
|
-
},
|
|
45
|
-
hint: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: '',
|
|
48
|
-
required: false
|
|
49
|
-
},
|
|
50
|
-
maxLength: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: undefined,
|
|
53
|
-
required: false
|
|
54
|
-
},
|
|
55
|
-
isSmall: Boolean,
|
|
56
|
-
isRequired: Boolean,
|
|
57
|
-
isDisabled: Boolean,
|
|
58
|
-
isReadonly: Boolean,
|
|
59
|
-
isInvalid: Boolean
|
|
60
|
-
},
|
|
61
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
|
|
62
|
-
setup(props, {
|
|
63
|
-
emit
|
|
64
|
-
}) {
|
|
65
|
-
const inputRef = ref();
|
|
66
|
-
const localValue = useVModel(props, 'modelValue', emit);
|
|
67
|
-
const {
|
|
68
|
-
isActiveToggle,
|
|
69
|
-
toggle
|
|
70
|
-
} = useToggle();
|
|
71
|
-
return {
|
|
72
|
-
inputRef,
|
|
73
|
-
localValue,
|
|
74
|
-
isActiveToggle,
|
|
75
|
-
toggle
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
computed: {
|
|
79
|
-
currentButtonIcon() {
|
|
80
|
-
return this.isActiveToggle ? 'visibility' : 'visibility_off';
|
|
81
|
-
},
|
|
82
|
-
type() {
|
|
83
|
-
return this.isActiveToggle ? 'text' : 'password';
|
|
84
|
-
},
|
|
85
|
-
size() {
|
|
86
|
-
return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
methods: {
|
|
90
|
-
onClick() {
|
|
91
|
-
var _a;
|
|
92
|
-
this.toggle();
|
|
93
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
99
|
-
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
100
|
-
const _component_or_input = resolveComponent("or-input");
|
|
101
|
-
return openBlock(), createBlock(_component_or_input, {
|
|
102
|
-
ref: "inputRef",
|
|
103
|
-
modelValue: _ctx.localValue,
|
|
104
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localValue = $event),
|
|
105
|
-
class: "or-password",
|
|
106
|
-
"html-id": _ctx.htmlId,
|
|
107
|
-
placeholder: _ctx.placeholder,
|
|
108
|
-
"html-type": _ctx.type,
|
|
109
|
-
label: _ctx.label,
|
|
110
|
-
error: _ctx.error,
|
|
111
|
-
hint: _ctx.hint,
|
|
112
|
-
"max-length": _ctx.maxLength,
|
|
113
|
-
"is-small": _ctx.isSmall,
|
|
114
|
-
"is-required": _ctx.isRequired,
|
|
115
|
-
"is-disabled": _ctx.isDisabled,
|
|
116
|
-
"is-readonly": _ctx.isReadonly,
|
|
117
|
-
"is-invalid": _ctx.isInvalid,
|
|
118
|
-
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
119
|
-
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event)),
|
|
120
|
-
onInput: _cache[3] || (_cache[3] = $event => _ctx.$emit('input', $event)),
|
|
121
|
-
onKeypress: _cache[4] || (_cache[4] = $event => _ctx.$emit('keypress', $event)),
|
|
122
|
-
onKeyup: _cache[5] || (_cache[5] = $event => _ctx.$emit('keyup', $event)),
|
|
123
|
-
onKeydown: _cache[6] || (_cache[6] = $event => _ctx.$emit('keydown', $event))
|
|
124
|
-
}, createSlots({
|
|
125
|
-
"wrapper-end": withCtx(() => [createVNode(_component_or_icon_button, {
|
|
126
|
-
icon: _ctx.currentButtonIcon,
|
|
127
|
-
"icon-color": "neutral-4",
|
|
128
|
-
size: _ctx.size,
|
|
129
|
-
onClick: _ctx.onClick
|
|
130
|
-
}, null, 8 /* PROPS */, ["icon", "size", "onClick"])]),
|
|
131
|
-
_: 2 /* DYNAMIC */
|
|
132
|
-
}, [_ctx.$slots.prepend ? {
|
|
133
|
-
name: "prepend",
|
|
134
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "prepend")]),
|
|
135
|
-
key: "0"
|
|
136
|
-
} : undefined, _ctx.$slots['label-default'] ? {
|
|
137
|
-
name: "label-default",
|
|
138
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-default")]),
|
|
139
|
-
key: "1"
|
|
140
|
-
} : undefined, _ctx.$slots['label-append'] ? {
|
|
141
|
-
name: "label-append",
|
|
142
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-append")]),
|
|
143
|
-
key: "2"
|
|
144
|
-
} : undefined, _ctx.$slots['input-end'] ? {
|
|
145
|
-
name: "input-end",
|
|
146
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "input-end")]),
|
|
147
|
-
key: "3"
|
|
148
|
-
} : undefined, _ctx.$slots.append ? {
|
|
149
|
-
name: "append",
|
|
150
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "append")]),
|
|
151
|
-
key: "4"
|
|
152
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "html-id", "placeholder", "html-type", "label", "error", "hint", "max-length", "is-small", "is-required", "is-disabled", "is-readonly", "is-invalid"]);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-4b6cde50 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-4b6cde50 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-password .or-icon-button-root[data-v-4b6cde50] {\n position: absolute;\n top: 50%;\n right: 0;\n z-index: 1;\n transform: translate(-0.625rem, -50%);\n}\n.or-password[data-v-4b6cde50] .or-textbox--input {\n padding-right: calc(0.625rem + 1.625rem);\n}\n.or-password.is-small[data-v-4b6cde50] .or-textbox--input {\n padding-right: calc(0.625rem + 1.5rem);\n}";
|
|
156
|
-
styleInject(css_248z);
|
|
157
|
-
|
|
158
|
-
script.render = render;
|
|
159
|
-
script.__scopeId = "data-v-4b6cde50";
|
|
160
|
-
script.__file = "src/components/or-password/OrPassword.vue";
|
|
161
|
-
|
|
162
|
-
export { script as s };
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref } from 'vue-demi';
|
|
2
|
-
import { s as script$1 } from './OrInput-81125804.js';
|
|
3
|
-
import { debouncedWatch } from '@vueuse/core';
|
|
4
|
-
import { a as script$2, c as BUTTON_SIZE } from './OrIconButton-8be9c89f.js';
|
|
5
|
-
import { resolveComponent, openBlock, createBlock, createSlots, withCtx, createVNode, normalizeStyle, renderSlot } from 'vue';
|
|
6
|
-
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
7
|
-
|
|
8
|
-
var script = defineComponent({
|
|
9
|
-
name: 'OrSearch',
|
|
10
|
-
components: {
|
|
11
|
-
OrInput: script$1,
|
|
12
|
-
OrIconButton: script$2
|
|
13
|
-
},
|
|
14
|
-
model: {
|
|
15
|
-
prop: 'modelValue',
|
|
16
|
-
event: 'update:modelValue'
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
modelValue: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: '',
|
|
22
|
-
required: false
|
|
23
|
-
},
|
|
24
|
-
htmlId: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: '',
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
placeholder: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: '',
|
|
32
|
-
required: false
|
|
33
|
-
},
|
|
34
|
-
label: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: '',
|
|
37
|
-
required: false
|
|
38
|
-
},
|
|
39
|
-
error: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: '',
|
|
42
|
-
required: false
|
|
43
|
-
},
|
|
44
|
-
hint: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: '',
|
|
47
|
-
required: false
|
|
48
|
-
},
|
|
49
|
-
debounce: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: 500,
|
|
52
|
-
required: false
|
|
53
|
-
},
|
|
54
|
-
isUsingTrim: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: true,
|
|
57
|
-
required: false
|
|
58
|
-
},
|
|
59
|
-
maxLength: {
|
|
60
|
-
type: Number,
|
|
61
|
-
default: undefined,
|
|
62
|
-
required: false
|
|
63
|
-
},
|
|
64
|
-
isSmall: Boolean,
|
|
65
|
-
isRequired: Boolean,
|
|
66
|
-
isDisabled: Boolean,
|
|
67
|
-
isReadonly: Boolean,
|
|
68
|
-
isInvalid: Boolean
|
|
69
|
-
},
|
|
70
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'search', 'clear', 'keypress', 'keyup', 'keydown'],
|
|
71
|
-
setup(props, {
|
|
72
|
-
emit
|
|
73
|
-
}) {
|
|
74
|
-
var _a;
|
|
75
|
-
const inputRef = ref();
|
|
76
|
-
const localValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
77
|
-
debouncedWatch(localValue, () => {
|
|
78
|
-
emit('search', props.isUsingTrim ? localValue.value.trim() : localValue.value);
|
|
79
|
-
}, {
|
|
80
|
-
debounce: +props.debounce
|
|
81
|
-
});
|
|
82
|
-
return {
|
|
83
|
-
inputRef,
|
|
84
|
-
localValue
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
computed: {
|
|
88
|
-
hasValue() {
|
|
89
|
-
var _a;
|
|
90
|
-
return !!((_a = this.localValue) === null || _a === void 0 ? void 0 : _a.length);
|
|
91
|
-
},
|
|
92
|
-
currentButtonIcon() {
|
|
93
|
-
return this.hasValue ? 'close' : 'search';
|
|
94
|
-
},
|
|
95
|
-
size() {
|
|
96
|
-
return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
watch: {
|
|
100
|
-
modelValue(val) {
|
|
101
|
-
if (this.localValue !== val) this.localValue = val;
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
methods: {
|
|
105
|
-
onClick() {
|
|
106
|
-
var _a;
|
|
107
|
-
if (this.hasValue) {
|
|
108
|
-
this.localValue = '';
|
|
109
|
-
this.$emit('update:modelValue', '');
|
|
110
|
-
this.$emit('clear');
|
|
111
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
onModelValueUpdate(value) {
|
|
115
|
-
this.localValue = value;
|
|
116
|
-
this.$emit('update:modelValue', value);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
122
|
-
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
123
|
-
const _component_or_input = resolveComponent("or-input");
|
|
124
|
-
return openBlock(), createBlock(_component_or_input, {
|
|
125
|
-
ref: "inputRef",
|
|
126
|
-
class: "or-search",
|
|
127
|
-
"model-value": _ctx.localValue,
|
|
128
|
-
"html-id": _ctx.htmlId,
|
|
129
|
-
placeholder: _ctx.placeholder,
|
|
130
|
-
"html-type": "search",
|
|
131
|
-
label: _ctx.label,
|
|
132
|
-
error: _ctx.error,
|
|
133
|
-
hint: _ctx.hint,
|
|
134
|
-
"max-length": _ctx.maxLength,
|
|
135
|
-
"is-small": _ctx.isSmall,
|
|
136
|
-
"is-required": _ctx.isRequired,
|
|
137
|
-
"is-disabled": _ctx.isDisabled,
|
|
138
|
-
"is-readonly": _ctx.isReadonly,
|
|
139
|
-
"is-invalid": _ctx.isInvalid,
|
|
140
|
-
onFocus: _cache[0] || (_cache[0] = $event => _ctx.$emit('focus', $event)),
|
|
141
|
-
onBlur: _cache[1] || (_cache[1] = $event => _ctx.$emit('blur', $event)),
|
|
142
|
-
"onUpdate:modelValue": _ctx.onModelValueUpdate,
|
|
143
|
-
onInput: _cache[2] || (_cache[2] = $event => _ctx.$emit('input', $event)),
|
|
144
|
-
onKeypress: _cache[3] || (_cache[3] = $event => _ctx.$emit('keypress', $event)),
|
|
145
|
-
onKeyup: _cache[4] || (_cache[4] = $event => _ctx.$emit('keyup', $event)),
|
|
146
|
-
onKeydown: _cache[5] || (_cache[5] = $event => _ctx.$emit('keydown', $event))
|
|
147
|
-
}, createSlots({
|
|
148
|
-
"wrapper-end": withCtx(() => [createVNode(_component_or_icon_button, {
|
|
149
|
-
icon: _ctx.currentButtonIcon,
|
|
150
|
-
style: normalizeStyle(!_ctx.hasValue ? {
|
|
151
|
-
pointerEvents: 'none'
|
|
152
|
-
} : null),
|
|
153
|
-
"icon-color": "neutral-4",
|
|
154
|
-
size: _ctx.size,
|
|
155
|
-
onClick: _ctx.onClick
|
|
156
|
-
}, null, 8 /* PROPS */, ["icon", "style", "size", "onClick"])]),
|
|
157
|
-
_: 2 /* DYNAMIC */
|
|
158
|
-
}, [_ctx.$slots.prepend ? {
|
|
159
|
-
name: "prepend",
|
|
160
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "prepend")]),
|
|
161
|
-
key: "0"
|
|
162
|
-
} : undefined, _ctx.$slots['label-default'] ? {
|
|
163
|
-
name: "label-default",
|
|
164
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-default")]),
|
|
165
|
-
key: "1"
|
|
166
|
-
} : undefined, _ctx.$slots['label-append'] ? {
|
|
167
|
-
name: "label-append",
|
|
168
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "label-append")]),
|
|
169
|
-
key: "2"
|
|
170
|
-
} : undefined, _ctx.$slots['input-end'] ? {
|
|
171
|
-
name: "input-end",
|
|
172
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "input-end")]),
|
|
173
|
-
key: "3"
|
|
174
|
-
} : undefined, _ctx.$slots.append ? {
|
|
175
|
-
name: "append",
|
|
176
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "append")]),
|
|
177
|
-
key: "4"
|
|
178
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "html-id", "placeholder", "label", "error", "hint", "max-length", "is-small", "is-required", "is-disabled", "is-readonly", "is-invalid", "onUpdate:modelValue"]);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-056f5f90 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-056f5f90 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-search .or-icon-button-root[data-v-056f5f90] {\n position: absolute;\n top: 50%;\n right: 0;\n z-index: 1;\n transform: translate(-0.625rem, -50%);\n}\n.or-search[data-v-056f5f90] .or-textbox--input {\n padding-right: calc(0.625rem + 1.625rem);\n}\n.or-search.is-small[data-v-056f5f90] .or-textbox--input {\n padding-right: calc(0.625rem + 1.5rem);\n}";
|
|
182
|
-
styleInject(css_248z);
|
|
183
|
-
|
|
184
|
-
script.render = render;
|
|
185
|
-
script.__scopeId = "data-v-056f5f90";
|
|
186
|
-
script.__file = "src/components/or-search/OrSearch.vue";
|
|
187
|
-
|
|
188
|
-
export { script as s };
|