@onereach/ui-components 2.70.2-beta.2199.0 → 2.70.2-beta.2203.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-1bb83cfb.js → OrCardCollection-0141a358.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-251ecafc.js → OrCheckbox-dbef9f9a.js} +17 -32
- package/dist/bundled/v2/{OrConfirm-4cae7867.js → OrConfirm-057e997e.js} +13 -6
- package/dist/bundled/v2/{OrInlineInput-2133e469.js → OrInlineInput-87589946.js} +22 -38
- package/dist/bundled/v2/{OrInlineTextarea-d61ca596.js → OrInlineTextarea-21b0e6fc.js} +18 -34
- package/dist/bundled/v2/{OrInput-770f1bed.js → OrInput-82ccfe00.js} +30 -38
- package/dist/bundled/v2/{OrPagination-468d0964.js → OrPagination-379c10b8.js} +1 -1
- package/dist/bundled/v2/{OrRadio-ae89bc9b.js → OrRadio-cd39b20b.js} +15 -30
- package/dist/bundled/v2/{OrSearch-2e5f9e24.js → OrSearch-53470b0e.js} +1 -1
- package/dist/bundled/v2/{OrSelect-039c0711.js → OrSelect-c49e1bcf.js} +2 -2
- package/dist/bundled/v2/{OrSwitch-20640a05.js → OrSwitch-237a2081.js} +15 -30
- package/dist/bundled/v2/{OrTabs-85aefcba.js → OrTabs-42f7c52c.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-0ff8063b.js → OrTextarea-5593fbe9.js} +20 -39
- package/dist/bundled/v2/components/index.js +13 -15
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -5
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -6
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/bundled/v2/components/or-input-v3/index.js +1 -3
- package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +2 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -5
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/bundled/v2/components/or-textarea-v3/index.js +1 -3
- package/dist/bundled/v2/hooks/index.d.ts +0 -3
- package/dist/bundled/v2/hooks/index.js +0 -2
- package/dist/bundled/v2/index.js +14 -16
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-a0f29a55.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-2024ec32.js → OrCheckbox.vue_vue_type_script_lang-8b36e06c.js} +7 -22
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-7d9d3810.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +14 -7
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-40f0073f.js → OrInlineInput.vue_vue_type_script_lang-67218502.js} +11 -27
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js → OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js} +11 -27
- package/dist/bundled/v3/{OrInput-e325a104.js → OrInput-a4f220ed.js} +12 -12
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-fd850b82.js → OrInput.vue_vue_type_script_lang-607d79d4.js} +15 -26
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-0d9daaa7.js → OrPagination.vue_vue_type_script_lang-c96d7cd7.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-29e8b856.js → OrRadio.vue_vue_type_script_lang-2e666a56.js} +7 -22
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-480f4b1c.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7aa8956a.js → OrSelect.vue_vue_type_script_lang-58e5a52b.js} +15 -17
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-02b4913a.js → OrSwitch.vue_vue_type_script_lang-04829f64.js} +7 -22
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-01188224.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-2fdac7b2.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +12 -31
- package/dist/bundled/v3/components/index.js +14 -16
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/bundled/v3/components/or-input-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-radio-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +4 -6
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-switch-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/bundled/v3/components/or-textarea-v3/index.js +1 -3
- package/dist/bundled/v3/hooks/index.d.ts +0 -3
- package/dist/bundled/v3/hooks/index.js +0 -2
- package/dist/bundled/v3/index.js +69 -77
- package/dist/esm/v2/{OrCardCollection-784318ac.js → OrCardCollection-3c38fc85.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-7317fe1a.js → OrCheckbox-567e387c.js} +17 -32
- package/dist/esm/v2/{OrConfirm-3d064f6c.js → OrConfirm-047d4086.js} +13 -6
- package/dist/esm/v2/{OrInlineInput-7c4f1f92.js → OrInlineInput-10205811.js} +22 -38
- package/dist/esm/v2/{OrInlineTextarea-3381e2a9.js → OrInlineTextarea-7658611e.js} +18 -34
- package/dist/esm/v2/{OrInput-e10cc643.js → OrInput-ada3a970.js} +30 -38
- package/dist/esm/v2/{OrPagination-291bd1b9.js → OrPagination-c0dbec6a.js} +1 -1
- package/dist/esm/v2/{OrRadio-b0a560d2.js → OrRadio-848ce55d.js} +15 -30
- package/dist/esm/v2/{OrSearch-1490c00b.js → OrSearch-0f08f2f5.js} +1 -1
- package/dist/esm/v2/{OrSelect-1fbeed4f.js → OrSelect-1d705445.js} +2 -2
- package/dist/esm/v2/{OrSwitch-133052ca.js → OrSwitch-13b6a7ee.js} +15 -30
- package/dist/esm/v2/{OrTabs-e5b81f4b.js → OrTabs-71bd3fd2.js} +1 -1
- package/dist/esm/v2/{OrTextarea-a7c846da.js → OrTextarea-6712a150.js} +20 -39
- package/dist/esm/v2/components/index.js +13 -15
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -5
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -10
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -3
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/esm/v2/components/or-input-v3/index.js +1 -3
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v2/components/or-search-v3/index.js +2 -4
- package/dist/esm/v2/components/or-select-v3/index.js +3 -5
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/esm/v2/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v2/hooks/index.d.ts +0 -3
- package/dist/esm/v2/hooks/index.js +0 -2
- package/dist/esm/v2/index.js +13 -15
- package/dist/esm/v3/{OrCardCollection-110b3a0b.js → OrCardCollection-dbb3e839.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-7144da06.js → OrCheckbox-3e139eac.js} +19 -36
- package/dist/esm/v3/{OrConfirm-1a38ed1b.js → OrConfirm-fee3c859.js} +13 -6
- package/dist/esm/v3/{OrInlineInput-a6b19dbe.js → OrInlineInput-507fc99c.js} +20 -37
- package/dist/esm/v3/{OrInlineTextarea-9eb60363.js → OrInlineTextarea-53a9e027.js} +20 -37
- package/dist/esm/v3/{OrInput-e07ec00c.js → OrInput-9c0426b9.js} +26 -37
- package/dist/esm/v3/{OrPagination-5e01a0a5.js → OrPagination-a703307d.js} +1 -1
- package/dist/esm/v3/{OrRadio-39d1905d.js → OrRadio-54b6d0de.js} +17 -34
- package/dist/esm/v3/{OrSearch-a60f67f0.js → OrSearch-9885d178.js} +1 -1
- package/dist/esm/v3/{OrSelect-2c70e384.js → OrSelect-dfa4885f.js} +2 -2
- package/dist/esm/v3/{OrSwitch-3e9a699d.js → OrSwitch-cca30aa0.js} +18 -34
- package/dist/esm/v3/{OrTabs-91618aab.js → OrTabs-d0ee6cef.js} +1 -1
- package/dist/esm/v3/{OrTextarea-fd6b9f31.js → OrTextarea-bb9ef3f2.js} +22 -42
- package/dist/esm/v3/components/index.js +13 -15
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -5
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +7 -9
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -3
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -3
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
- package/dist/esm/v3/components/or-input-v3/index.js +1 -3
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v3/components/or-search-v3/index.js +2 -4
- package/dist/esm/v3/components/or-select-v3/index.js +3 -5
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v3/hooks/index.d.ts +0 -3
- package/dist/esm/v3/hooks/index.js +0 -2
- package/dist/esm/v3/index.js +13 -15
- package/package.json +1 -1
- package/src/components/or-checkbox-v3/OrCheckbox.vue +10 -28
- package/src/components/or-confirm-v3/OrConfirm.vue +11 -10
- package/src/components/or-confirm-v3/styles.ts +13 -3
- package/src/components/or-inline-input-v3/OrInlineInput.vue +13 -32
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +13 -32
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
- package/src/components/or-input-v3/OrInput.vue +19 -31
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-radio-v3/OrRadio.vue +9 -27
- package/src/components/or-switch-v3/OrSwitch.vue +9 -27
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +4 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +14 -36
- package/src/hooks/index.ts +0 -3
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +0 -22
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +0 -17
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +0 -21
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +0 -16
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v2/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +0 -16
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +0 -8
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +0 -2
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +0 -12
- package/dist/esm/v3/useIdAttribute-859439f0.js +0 -21
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +0 -16
- package/src/hooks/useControlAttributes.ts +0 -19
- package/src/hooks/useIdAttribute.ts +0 -9
- package/src/hooks/useValidationAttributes.ts +0 -25
|
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-a846fa7e.js';
|
|
|
6
6
|
import { O as OrMenu } from './OrMenu-fa47c888.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-53470b0e.js';
|
|
10
10
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
11
11
|
|
|
12
12
|
const CardCollectionRoot = [
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
2
|
import { O as OrLabel, L as LabelVariant } from './OrLabel-172c4b89.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
4
|
-
import {
|
|
5
|
-
import { defineComponent, ref, computed, reactive } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
|
+
import { defineComponent, getCurrentInstance, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
6
|
import { c as createInjector } from './browser-82dea9ed.js';
|
|
8
7
|
|
|
@@ -77,20 +76,18 @@ var script = defineComponent({
|
|
|
77
76
|
}
|
|
78
77
|
},
|
|
79
78
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
80
|
-
expose: ['root'
|
|
79
|
+
expose: ['root'],
|
|
81
80
|
setup(props, context) {
|
|
81
|
+
var _a;
|
|
82
|
+
const currentInstance = getCurrentInstance();
|
|
82
83
|
// Refs
|
|
83
84
|
const root = ref();
|
|
84
|
-
const control = ref();
|
|
85
85
|
// Styles
|
|
86
86
|
const classAttribute = useClassAttribute();
|
|
87
87
|
const rootStyles = computed(() => ['or-checkbox', ...CheckboxRoot, classAttribute.value]);
|
|
88
88
|
const controlStyles = computed(() => [...CheckboxControl, ...CheckboxControlHandle]);
|
|
89
89
|
// State
|
|
90
|
-
const
|
|
91
|
-
id: useIdAttribute(),
|
|
92
|
-
...useControlAttributes()
|
|
93
|
-
});
|
|
90
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
94
91
|
const proxyModelValue = computed({
|
|
95
92
|
get: () => {
|
|
96
93
|
var _a;
|
|
@@ -102,24 +99,12 @@ var script = defineComponent({
|
|
|
102
99
|
context.emit('update:modelValue', value);
|
|
103
100
|
}
|
|
104
101
|
});
|
|
105
|
-
// Methods
|
|
106
|
-
function focus() {
|
|
107
|
-
var _a;
|
|
108
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
109
|
-
}
|
|
110
|
-
function blur() {
|
|
111
|
-
var _a;
|
|
112
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
113
|
-
}
|
|
114
102
|
return {
|
|
115
103
|
root,
|
|
116
|
-
control,
|
|
117
104
|
rootStyles,
|
|
118
105
|
controlStyles,
|
|
119
|
-
|
|
120
|
-
proxyModelValue
|
|
121
|
-
focus,
|
|
122
|
-
blur
|
|
106
|
+
controlId,
|
|
107
|
+
proxyModelValue
|
|
123
108
|
};
|
|
124
109
|
}
|
|
125
110
|
});
|
|
@@ -132,23 +117,23 @@ var __vue_render__ = function () {
|
|
|
132
117
|
var _vm = this;
|
|
133
118
|
var _h = _vm.$createElement;
|
|
134
119
|
var _c = _vm._self._c || _h;
|
|
135
|
-
return _c('div',
|
|
120
|
+
return _c('div', {
|
|
136
121
|
ref: "root",
|
|
137
122
|
class: _vm.rootStyles
|
|
138
|
-
},
|
|
123
|
+
}, [_c('input', _vm._b({
|
|
139
124
|
directives: [{
|
|
140
125
|
name: "model",
|
|
141
126
|
rawName: "v-model",
|
|
142
127
|
value: _vm.proxyModelValue,
|
|
143
128
|
expression: "proxyModelValue"
|
|
144
129
|
}],
|
|
145
|
-
ref: "control",
|
|
146
130
|
class: _vm.controlStyles,
|
|
147
131
|
attrs: {
|
|
132
|
+
"id": _vm.controlId,
|
|
133
|
+
"type": "checkbox",
|
|
148
134
|
"indeterminate": _vm.indeterminate,
|
|
149
135
|
"required": _vm.required,
|
|
150
|
-
"disabled": _vm.disabled
|
|
151
|
-
"type": "checkbox"
|
|
136
|
+
"disabled": _vm.disabled
|
|
152
137
|
},
|
|
153
138
|
domProps: {
|
|
154
139
|
"value": _vm.inputValue,
|
|
@@ -178,9 +163,9 @@ var __vue_render__ = function () {
|
|
|
178
163
|
}
|
|
179
164
|
}
|
|
180
165
|
}
|
|
181
|
-
}, 'input', _vm
|
|
166
|
+
}, 'input', _vm.$attrs, false)), _vm._v(" "), _vm.$slots.default || _vm.label ? [_c('OrLabel', {
|
|
182
167
|
attrs: {
|
|
183
|
-
"control-id": _vm.
|
|
168
|
+
"control-id": _vm.controlId,
|
|
184
169
|
"variant": _vm.labelVariant,
|
|
185
170
|
"required": _vm.required,
|
|
186
171
|
"disabled": _vm.disabled
|
|
@@ -201,14 +186,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
201
186
|
/* style */
|
|
202
187
|
const __vue_inject_styles__ = function (inject) {
|
|
203
188
|
if (!inject) return;
|
|
204
|
-
inject("data-v-
|
|
205
|
-
source: "input[data-v-
|
|
189
|
+
inject("data-v-2076b35e_0", {
|
|
190
|
+
source: "input[data-v-2076b35e]{appearance:none;line-height:0}",
|
|
206
191
|
map: undefined,
|
|
207
192
|
media: undefined
|
|
208
193
|
});
|
|
209
194
|
};
|
|
210
195
|
/* scoped */
|
|
211
|
-
const __vue_scope_id__ = "data-v-
|
|
196
|
+
const __vue_scope_id__ = "data-v-2076b35e";
|
|
212
197
|
/* module identifier */
|
|
213
198
|
const __vue_module_identifier__ = undefined;
|
|
214
199
|
/* functional template */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
1
|
+
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
3
2
|
import { l as logicAnd } from './index-17f264f9.js';
|
|
3
|
+
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-3c89d622.js';
|
|
5
5
|
import { O as OrButton, a as ButtonColor } from './OrButton-a846fa7e.js';
|
|
6
|
-
import { O as OrInput } from './OrInput-
|
|
6
|
+
import { O as OrInput } from './OrInput-82ccfe00.js';
|
|
7
7
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
9
|
|
|
@@ -14,12 +14,14 @@ var ConfirmType;
|
|
|
14
14
|
})(ConfirmType || (ConfirmType = {}));
|
|
15
15
|
|
|
16
16
|
const ConfirmRoot = [
|
|
17
|
+
// Position
|
|
18
|
+
'fixed md:static', 'left-none', 'right-none', 'bottom-none',
|
|
17
19
|
// Layout
|
|
18
20
|
'layout-column',
|
|
19
21
|
// Box
|
|
20
|
-
'w-[320px]',
|
|
22
|
+
'w-full md:w-[320px]',
|
|
21
23
|
// Shape
|
|
22
|
-
'rounded-md',
|
|
24
|
+
'rounded-0 md:rounded-md',
|
|
23
25
|
// Spacing
|
|
24
26
|
'px-lg', 'py-lg', 'gap-md',
|
|
25
27
|
// Typography
|
|
@@ -52,8 +54,10 @@ const ConfirmFooterTypes = {
|
|
|
52
54
|
'flex-row-reverse']
|
|
53
55
|
};
|
|
54
56
|
const ConfirmFooterButtons = [
|
|
57
|
+
// Layout
|
|
58
|
+
'grow',
|
|
55
59
|
// Box
|
|
56
|
-
'w-[128px]'];
|
|
60
|
+
'w-auto md:w-[128px]'];
|
|
57
61
|
|
|
58
62
|
var script = defineComponent({
|
|
59
63
|
name: 'OrConfirm',
|
|
@@ -195,6 +199,9 @@ var script = defineComponent({
|
|
|
195
199
|
const inputBoxStyles = computed(() => [...ConfirmInput]);
|
|
196
200
|
const footerStyles = computed(() => [...ConfirmFooter, ...ConfirmFooterTypes[props.confirmType]]);
|
|
197
201
|
const buttonsStyles = computed(() => [...ConfirmFooterButtons]);
|
|
202
|
+
// #region Click Outside
|
|
203
|
+
onClickOutside(root, close);
|
|
204
|
+
// #endregion
|
|
198
205
|
return {
|
|
199
206
|
root,
|
|
200
207
|
confirmationInput,
|
|
@@ -4,9 +4,7 @@ import { O as OrHint } from './OrHint-f38a1940.js';
|
|
|
4
4
|
import { O as OrIconButton } from './OrIconButton-a2ba92df.js';
|
|
5
5
|
import { O as OrInlineInputBox, I as InlineInputBoxSize } from './OrInlineInputBox-f457210f.js';
|
|
6
6
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
7
|
-
import {
|
|
8
|
-
import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
|
|
9
|
-
import { defineComponent, ref, computed, reactive, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
7
|
+
import { defineComponent, getCurrentInstance, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
10
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
9
|
import { c as createInjector } from './browser-82dea9ed.js';
|
|
12
10
|
|
|
@@ -88,22 +86,19 @@ var script = defineComponent({
|
|
|
88
86
|
}
|
|
89
87
|
},
|
|
90
88
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
91
|
-
expose: ['root'
|
|
89
|
+
expose: ['root'],
|
|
92
90
|
setup(props, context) {
|
|
91
|
+
var _a;
|
|
92
|
+
const currentInstance = getCurrentInstance();
|
|
93
93
|
// Refs
|
|
94
94
|
const root = ref();
|
|
95
|
-
const control = ref();
|
|
96
95
|
// Styles
|
|
97
96
|
const classAttribute = useClassAttribute();
|
|
98
97
|
const rootStyles = computed(() => ['or-inline-input', ...InlineInputRoot, classAttribute.value]);
|
|
99
98
|
const controlStyles = computed(() => [...InlineInputControl]);
|
|
100
99
|
const actionStyles = computed(() => [...InlineInputAction, ...InlineInputActionSizes[props.size]]);
|
|
101
100
|
// State
|
|
102
|
-
const
|
|
103
|
-
id: useIdAttribute(),
|
|
104
|
-
...useControlAttributes(),
|
|
105
|
-
...useValidationAttributes()
|
|
106
|
-
});
|
|
101
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
107
102
|
const proxyModelValue = computed({
|
|
108
103
|
get: () => {
|
|
109
104
|
var _a;
|
|
@@ -116,13 +111,13 @@ var script = defineComponent({
|
|
|
116
111
|
}
|
|
117
112
|
});
|
|
118
113
|
const draftModelValue = ref('');
|
|
114
|
+
const activated = ref(false);
|
|
115
|
+
const invalid = computed(() => !!props.error);
|
|
119
116
|
const currentLength = computed(() => {
|
|
120
117
|
var _a, _b;
|
|
121
118
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
122
119
|
});
|
|
123
|
-
const maxLength = computed(() =>
|
|
124
|
-
const invalid = computed(() => !!props.error);
|
|
125
|
-
const activated = ref(false);
|
|
120
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
126
121
|
// Handlers
|
|
127
122
|
function onFocus(event) {
|
|
128
123
|
activated.value = true;
|
|
@@ -135,14 +130,6 @@ var script = defineComponent({
|
|
|
135
130
|
context.emit('blur', event);
|
|
136
131
|
}
|
|
137
132
|
// Methods
|
|
138
|
-
function focus() {
|
|
139
|
-
var _a;
|
|
140
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
141
|
-
}
|
|
142
|
-
function blur() {
|
|
143
|
-
var _a;
|
|
144
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
145
|
-
}
|
|
146
133
|
function apply() {
|
|
147
134
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
148
135
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -164,21 +151,18 @@ var script = defineComponent({
|
|
|
164
151
|
});
|
|
165
152
|
return {
|
|
166
153
|
root,
|
|
167
|
-
control,
|
|
168
154
|
rootStyles,
|
|
169
155
|
controlStyles,
|
|
170
156
|
actionStyles,
|
|
171
|
-
|
|
157
|
+
controlId,
|
|
172
158
|
proxyModelValue,
|
|
173
159
|
draftModelValue,
|
|
160
|
+
activated,
|
|
161
|
+
invalid,
|
|
174
162
|
currentLength,
|
|
175
163
|
maxLength,
|
|
176
|
-
invalid,
|
|
177
|
-
activated,
|
|
178
164
|
onFocus,
|
|
179
165
|
onBlur,
|
|
180
|
-
focus,
|
|
181
|
-
blur,
|
|
182
166
|
apply,
|
|
183
167
|
reset
|
|
184
168
|
};
|
|
@@ -193,10 +177,10 @@ var __vue_render__ = function () {
|
|
|
193
177
|
var _vm = this;
|
|
194
178
|
var _h = _vm.$createElement;
|
|
195
179
|
var _c = _vm._self._c || _h;
|
|
196
|
-
return _c('div',
|
|
180
|
+
return _c('div', {
|
|
197
181
|
ref: "root",
|
|
198
182
|
class: _vm.rootStyles
|
|
199
|
-
},
|
|
183
|
+
}, [_c('div', {
|
|
200
184
|
class: ['layout-row', 'gap-sm+']
|
|
201
185
|
}, [_c('OrInlineInputBox', {
|
|
202
186
|
attrs: {
|
|
@@ -210,9 +194,9 @@ var __vue_render__ = function () {
|
|
|
210
194
|
value: _vm.draftModelValue,
|
|
211
195
|
expression: "draftModelValue"
|
|
212
196
|
}],
|
|
213
|
-
ref: "control",
|
|
214
197
|
class: _vm.controlStyles,
|
|
215
198
|
attrs: {
|
|
199
|
+
"id": _vm.controlId,
|
|
216
200
|
"placeholder": _vm.placeholder,
|
|
217
201
|
"activated": _vm.activated ? '' : null,
|
|
218
202
|
"type": "checkbox"
|
|
@@ -246,16 +230,16 @@ var __vue_render__ = function () {
|
|
|
246
230
|
}
|
|
247
231
|
}
|
|
248
232
|
}
|
|
249
|
-
}, 'input', _vm
|
|
233
|
+
}, 'input', _vm.$attrs, false)) : _vm.type === 'radio' ? _c('input', _vm._b({
|
|
250
234
|
directives: [{
|
|
251
235
|
name: "model",
|
|
252
236
|
rawName: "v-model",
|
|
253
237
|
value: _vm.draftModelValue,
|
|
254
238
|
expression: "draftModelValue"
|
|
255
239
|
}],
|
|
256
|
-
ref: "control",
|
|
257
240
|
class: _vm.controlStyles,
|
|
258
241
|
attrs: {
|
|
242
|
+
"id": _vm.controlId,
|
|
259
243
|
"placeholder": _vm.placeholder,
|
|
260
244
|
"activated": _vm.activated ? '' : null,
|
|
261
245
|
"type": "radio"
|
|
@@ -276,16 +260,16 @@ var __vue_render__ = function () {
|
|
|
276
260
|
_vm.draftModelValue = null;
|
|
277
261
|
}
|
|
278
262
|
}
|
|
279
|
-
}, 'input', _vm
|
|
263
|
+
}, 'input', _vm.$attrs, false)) : _c('input', _vm._b({
|
|
280
264
|
directives: [{
|
|
281
265
|
name: "model",
|
|
282
266
|
rawName: "v-model",
|
|
283
267
|
value: _vm.draftModelValue,
|
|
284
268
|
expression: "draftModelValue"
|
|
285
269
|
}],
|
|
286
|
-
ref: "control",
|
|
287
270
|
class: _vm.controlStyles,
|
|
288
271
|
attrs: {
|
|
272
|
+
"id": _vm.controlId,
|
|
289
273
|
"placeholder": _vm.placeholder,
|
|
290
274
|
"activated": _vm.activated ? '' : null,
|
|
291
275
|
"type": _vm.type
|
|
@@ -309,7 +293,7 @@ var __vue_render__ = function () {
|
|
|
309
293
|
_vm.draftModelValue = $event.target.value;
|
|
310
294
|
}
|
|
311
295
|
}
|
|
312
|
-
}, 'input', _vm
|
|
296
|
+
}, 'input', _vm.$attrs, false))]), _vm._v(" "), _vm.activated && !_vm.saveOnBlur ? [_c('div', {
|
|
313
297
|
class: _vm.actionStyles
|
|
314
298
|
}, [_c('OrIconButton', {
|
|
315
299
|
attrs: {
|
|
@@ -356,14 +340,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
356
340
|
/* style */
|
|
357
341
|
const __vue_inject_styles__ = function (inject) {
|
|
358
342
|
if (!inject) return;
|
|
359
|
-
inject("data-v-
|
|
360
|
-
source: "input[data-v-
|
|
343
|
+
inject("data-v-0c9a54ea_0", {
|
|
344
|
+
source: "input[data-v-0c9a54ea]{min-width:0;background:0 0;outline:0}input[type=number][data-v-0c9a54ea]::-webkit-inner-spin-button{display:none}input[type=search][data-v-0c9a54ea]::-webkit-search-cancel-button{display:none}",
|
|
361
345
|
map: undefined,
|
|
362
346
|
media: undefined
|
|
363
347
|
});
|
|
364
348
|
};
|
|
365
349
|
/* scoped */
|
|
366
|
-
const __vue_scope_id__ = "data-v-
|
|
350
|
+
const __vue_scope_id__ = "data-v-0c9a54ea";
|
|
367
351
|
/* module identifier */
|
|
368
352
|
const __vue_module_identifier__ = undefined;
|
|
369
353
|
/* functional template */
|
|
@@ -4,9 +4,7 @@ import { O as OrHint } from './OrHint-f38a1940.js';
|
|
|
4
4
|
import { O as OrIconButton } from './OrIconButton-a2ba92df.js';
|
|
5
5
|
import { O as OrInlineInputBox } from './OrInlineInputBox-f457210f.js';
|
|
6
6
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
7
|
-
import {
|
|
8
|
-
import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
|
|
9
|
-
import { defineComponent, ref, computed, reactive, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
7
|
+
import { defineComponent, getCurrentInstance, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
10
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
9
|
import { c as createInjector } from './browser-82dea9ed.js';
|
|
12
10
|
|
|
@@ -66,22 +64,19 @@ var script = defineComponent({
|
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
69
|
-
expose: ['root'
|
|
67
|
+
expose: ['root'],
|
|
70
68
|
setup(props, context) {
|
|
69
|
+
var _a;
|
|
70
|
+
const currentInstance = getCurrentInstance();
|
|
71
71
|
// Refs
|
|
72
72
|
const root = ref();
|
|
73
|
-
const control = ref();
|
|
74
73
|
// Styles
|
|
75
74
|
const classAttribute = useClassAttribute();
|
|
76
75
|
const rootStyles = computed(() => ['or-inline-textarea', ...InlineTextareaRoot, classAttribute.value]);
|
|
77
76
|
const controlStyles = computed(() => [...InlineTextareaControl]);
|
|
78
77
|
const actionStyles = computed(() => [...InlineTextareaAction]);
|
|
79
78
|
// State
|
|
80
|
-
const
|
|
81
|
-
id: useIdAttribute(),
|
|
82
|
-
...useControlAttributes(),
|
|
83
|
-
...useValidationAttributes()
|
|
84
|
-
});
|
|
79
|
+
const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
|
|
85
80
|
const proxyModelValue = computed({
|
|
86
81
|
get: () => {
|
|
87
82
|
var _a;
|
|
@@ -94,13 +89,13 @@ var script = defineComponent({
|
|
|
94
89
|
}
|
|
95
90
|
});
|
|
96
91
|
const draftModelValue = ref('');
|
|
92
|
+
const activated = ref(false);
|
|
93
|
+
const invalid = computed(() => !!props.error);
|
|
97
94
|
const currentLength = computed(() => {
|
|
98
95
|
var _a, _b;
|
|
99
96
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
100
97
|
});
|
|
101
|
-
const maxLength = computed(() =>
|
|
102
|
-
const invalid = computed(() => !!props.error);
|
|
103
|
-
const activated = ref(false);
|
|
98
|
+
const maxLength = computed(() => context.attrs.maxlength);
|
|
104
99
|
// Handlers
|
|
105
100
|
function onFocus(event) {
|
|
106
101
|
activated.value = true;
|
|
@@ -113,14 +108,6 @@ var script = defineComponent({
|
|
|
113
108
|
context.emit('blur', event);
|
|
114
109
|
}
|
|
115
110
|
// Methods
|
|
116
|
-
function focus() {
|
|
117
|
-
var _a;
|
|
118
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
119
|
-
}
|
|
120
|
-
function blur() {
|
|
121
|
-
var _a;
|
|
122
|
-
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
123
|
-
}
|
|
124
111
|
function apply() {
|
|
125
112
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
126
113
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -142,21 +129,18 @@ var script = defineComponent({
|
|
|
142
129
|
});
|
|
143
130
|
return {
|
|
144
131
|
root,
|
|
145
|
-
control,
|
|
146
132
|
rootStyles,
|
|
147
133
|
controlStyles,
|
|
148
134
|
actionStyles,
|
|
149
|
-
|
|
135
|
+
controlId,
|
|
150
136
|
proxyModelValue,
|
|
151
137
|
draftModelValue,
|
|
138
|
+
activated,
|
|
139
|
+
invalid,
|
|
152
140
|
currentLength,
|
|
153
141
|
maxLength,
|
|
154
|
-
invalid,
|
|
155
|
-
activated,
|
|
156
142
|
onFocus,
|
|
157
143
|
onBlur,
|
|
158
|
-
focus,
|
|
159
|
-
blur,
|
|
160
144
|
apply,
|
|
161
145
|
reset
|
|
162
146
|
};
|
|
@@ -171,10 +155,10 @@ var __vue_render__ = function () {
|
|
|
171
155
|
var _vm = this;
|
|
172
156
|
var _h = _vm.$createElement;
|
|
173
157
|
var _c = _vm._self._c || _h;
|
|
174
|
-
return _c('div',
|
|
158
|
+
return _c('div', {
|
|
175
159
|
ref: "root",
|
|
176
160
|
class: _vm.rootStyles
|
|
177
|
-
},
|
|
161
|
+
}, [_c('div', {
|
|
178
162
|
class: ['layout-row', 'gap-sm+']
|
|
179
163
|
}, [_c('OrInlineInputBox', {
|
|
180
164
|
attrs: {
|
|
@@ -188,9 +172,9 @@ var __vue_render__ = function () {
|
|
|
188
172
|
value: _vm.draftModelValue,
|
|
189
173
|
expression: "draftModelValue"
|
|
190
174
|
}],
|
|
191
|
-
ref: "control",
|
|
192
175
|
class: _vm.controlStyles,
|
|
193
176
|
attrs: {
|
|
177
|
+
"id": _vm.controlId,
|
|
194
178
|
"placeholder": _vm.placeholder,
|
|
195
179
|
"activated": _vm.activated ? '' : null
|
|
196
180
|
},
|
|
@@ -213,7 +197,7 @@ var __vue_render__ = function () {
|
|
|
213
197
|
_vm.draftModelValue = $event.target.value;
|
|
214
198
|
}
|
|
215
199
|
}
|
|
216
|
-
}, 'textarea', _vm
|
|
200
|
+
}, 'textarea', _vm.$attrs, false))]), _vm._v(" "), _vm.activated && !_vm.saveOnBlur ? [_c('div', {
|
|
217
201
|
class: _vm.actionStyles
|
|
218
202
|
}, [_c('OrIconButton', {
|
|
219
203
|
attrs: {
|
|
@@ -260,14 +244,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
260
244
|
/* style */
|
|
261
245
|
const __vue_inject_styles__ = function (inject) {
|
|
262
246
|
if (!inject) return;
|
|
263
|
-
inject("data-v-
|
|
264
|
-
source: "textarea[data-v-
|
|
247
|
+
inject("data-v-5a4c8a4e_0", {
|
|
248
|
+
source: "textarea[data-v-5a4c8a4e]{min-width:0;background:0 0;outline:0}",
|
|
265
249
|
map: undefined,
|
|
266
250
|
media: undefined
|
|
267
251
|
});
|
|
268
252
|
};
|
|
269
253
|
/* scoped */
|
|
270
|
-
const __vue_scope_id__ = "data-v-
|
|
254
|
+
const __vue_scope_id__ = "data-v-5a4c8a4e";
|
|
271
255
|
/* module identifier */
|
|
272
256
|
const __vue_module_identifier__ = undefined;
|
|
273
257
|
/* functional template */
|