@onereach/ui-components 2.70.2-beta.2198.0 → 2.70.2-beta.2199.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-0141a358.js → OrCardCollection-1bb83cfb.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-251ecafc.js} +32 -17
- package/dist/bundled/v2/{OrConfirm-23c3ce56.js → OrConfirm-4cae7867.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-87589946.js → OrInlineInput-2133e469.js} +38 -22
- package/dist/bundled/v2/{OrInlineTextarea-21b0e6fc.js → OrInlineTextarea-d61ca596.js} +34 -18
- package/dist/bundled/v2/{OrInput-82ccfe00.js → OrInput-770f1bed.js} +38 -30
- package/dist/bundled/v2/{OrPagination-379c10b8.js → OrPagination-468d0964.js} +1 -1
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-ae89bc9b.js} +30 -15
- package/dist/bundled/v2/{OrSearch-53470b0e.js → OrSearch-2e5f9e24.js} +1 -1
- package/dist/bundled/v2/{OrSelect-c49e1bcf.js → OrSelect-039c0711.js} +2 -2
- package/dist/bundled/v2/OrSidebar-c95ef614.js +230 -0
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-20640a05.js} +30 -15
- package/dist/bundled/v2/{OrTabs-42f7c52c.js → OrTabs-85aefcba.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-0ff8063b.js} +39 -20
- package/dist/bundled/v2/components/index.js +16 -14
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-radio-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -1
- package/dist/bundled/v2/hooks/index.d.ts +3 -0
- package/dist/bundled/v2/hooks/index.js +2 -0
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v2/index.js +17 -15
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +22 -0
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +17 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-2d78a51a.js → OrCardCollection.vue_vue_type_script_lang-a0f29a55.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-8b36e06c.js → OrCheckbox.vue_vue_type_script_lang-2024ec32.js} +22 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05b21989.js → OrConfirm.vue_vue_type_script_lang-7d9d3810.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-67218502.js → OrInlineInput.vue_vue_type_script_lang-40f0073f.js} +27 -11
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js → OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js} +27 -11
- package/dist/bundled/v3/{OrInput-a4f220ed.js → OrInput-e325a104.js} +12 -12
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-607d79d4.js → OrInput.vue_vue_type_script_lang-fd850b82.js} +26 -15
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c96d7cd7.js → OrPagination.vue_vue_type_script_lang-0d9daaa7.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2e666a56.js → OrRadio.vue_vue_type_script_lang-29e8b856.js} +22 -7
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-06f318ca.js → OrSearch.vue_vue_type_script_lang-480f4b1c.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-58e5a52b.js → OrSelect.vue_vue_type_script_lang-7aa8956a.js} +17 -15
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-04829f64.js → OrSwitch.vue_vue_type_script_lang-02b4913a.js} +22 -7
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-01188224.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-2fdac7b2.js} +31 -12
- package/dist/bundled/v3/components/index.js +17 -15
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-radio-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -4
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +1 -15
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-switch-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -1
- package/dist/bundled/v3/hooks/index.d.ts +3 -0
- package/dist/bundled/v3/hooks/index.js +2 -0
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/bundled/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/bundled/v3/index.js +85 -93
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +21 -0
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +16 -0
- package/dist/esm/v2/{OrCardCollection-3c38fc85.js → OrCardCollection-784318ac.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-7317fe1a.js} +32 -17
- package/dist/esm/v2/{OrConfirm-e2ab9b4c.js → OrConfirm-3d064f6c.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-10205811.js → OrInlineInput-7c4f1f92.js} +38 -22
- package/dist/esm/v2/{OrInlineTextarea-7658611e.js → OrInlineTextarea-3381e2a9.js} +34 -18
- package/dist/esm/v2/{OrInput-ada3a970.js → OrInput-e10cc643.js} +38 -30
- package/dist/esm/v2/{OrPagination-c0dbec6a.js → OrPagination-291bd1b9.js} +1 -1
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-b0a560d2.js} +30 -15
- package/dist/esm/v2/{OrSearch-0f08f2f5.js → OrSearch-1490c00b.js} +1 -1
- package/dist/esm/v2/{OrSelect-1d705445.js → OrSelect-1fbeed4f.js} +2 -2
- package/dist/esm/v2/OrSidebar-fabc7bc9.js +228 -0
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-133052ca.js} +30 -15
- package/dist/esm/v2/{OrTabs-71bd3fd2.js → OrTabs-e5b81f4b.js} +1 -1
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-a7c846da.js} +39 -20
- package/dist/esm/v2/components/index.js +16 -14
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -2
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/esm/v2/components/or-input-v3/index.js +3 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -2
- package/dist/esm/v2/components/or-select-v3/index.js +5 -3
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v2/hooks/index.d.ts +3 -0
- package/dist/esm/v2/hooks/index.js +2 -0
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v2/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v2/index.js +16 -14
- package/dist/esm/v2/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v2/useValidationAttributes-d1abbe34.js +16 -0
- package/dist/esm/v3/{OrCardCollection-dbb3e839.js → OrCardCollection-110b3a0b.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-7144da06.js} +36 -19
- package/dist/esm/v3/{OrConfirm-1bcd39b1.js → OrConfirm-1a38ed1b.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-507fc99c.js → OrInlineInput-a6b19dbe.js} +37 -20
- package/dist/esm/v3/{OrInlineTextarea-53a9e027.js → OrInlineTextarea-9eb60363.js} +37 -20
- package/dist/esm/v3/{OrInput-9c0426b9.js → OrInput-e07ec00c.js} +37 -26
- package/dist/esm/v3/{OrPagination-a703307d.js → OrPagination-5e01a0a5.js} +1 -1
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-39d1905d.js} +34 -17
- package/dist/esm/v3/{OrSearch-9885d178.js → OrSearch-a60f67f0.js} +1 -1
- package/dist/esm/v3/{OrSelect-dfa4885f.js → OrSelect-2c70e384.js} +2 -2
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-3e9a699d.js} +34 -18
- package/dist/esm/v3/{OrTabs-d0ee6cef.js → OrTabs-91618aab.js} +1 -1
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-fd6b9f31.js} +42 -22
- package/dist/esm/v3/components/index.js +16 -14
- package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +36 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +36 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +43 -8
- package/dist/esm/v3/components/or-input-v3/index.js +3 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v3/components/or-search-v3/index.js +4 -2
- package/dist/esm/v3/components/or-select-v3/index.js +5 -3
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -12
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +45 -6
- package/dist/esm/v3/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v3/hooks/index.d.ts +3 -0
- package/dist/esm/v3/hooks/index.js +2 -0
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +8 -0
- package/dist/esm/v3/hooks/useIdAttribute.d.ts +2 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +12 -0
- package/dist/esm/v3/index.js +16 -14
- package/dist/esm/v3/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +16 -0
- package/package.json +1 -1
- package/src/components/or-checkbox-v3/OrCheckbox.vue +28 -10
- package/src/components/or-inline-input-v3/OrInlineInput.vue +32 -13
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +32 -13
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
- package/src/components/or-input-v3/OrInput.vue +31 -19
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-radio-v3/OrRadio.vue +27 -9
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +6 -219
- package/src/components/or-sidebar-v3/OrSidebar.vue +22 -121
- package/src/components/or-sidebar-v3/styles.ts +9 -153
- package/src/components/or-switch-v3/OrSwitch.vue +27 -9
- 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 +36 -14
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useControlAttributes.ts +19 -0
- package/src/hooks/useIdAttribute.ts +9 -0
- package/src/hooks/useValidationAttributes.ts +25 -0
- package/dist/bundled/v2/OrSidebar-2a7d62a8.js +0 -455
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-b4fa1550.js +0 -347
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/esm/v2/OrSidebar-1e02702f.js +0 -452
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/dist/esm/v3/OrSidebar-749bbcba.js +0 -387
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -59
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +0 -64
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './index-fa6eb4ca.js';
|
|
2
|
+
import { useAttrs, computed, getCurrentInstance } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
+
|
|
4
|
+
function useControlAttributes() {
|
|
5
|
+
const attributes = useAttrs();
|
|
6
|
+
return {
|
|
7
|
+
readonly: computed(() => attributes['readonly']),
|
|
8
|
+
disabled: computed(() => attributes['disabled']),
|
|
9
|
+
'force-state': computed(() => attributes['force-state'])
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function useIdAttribute() {
|
|
14
|
+
const attributes = useAttrs(),
|
|
15
|
+
component = getCurrentInstance();
|
|
16
|
+
return computed(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { useIdAttribute as a, useControlAttributes as u };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './index-fa6eb4ca.js';
|
|
2
|
+
import { useAttrs, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
+
|
|
4
|
+
function useValidationAttributes() {
|
|
5
|
+
const attributes = useAttrs();
|
|
6
|
+
return {
|
|
7
|
+
required: computed(() => attributes['required']),
|
|
8
|
+
minlength: computed(() => attributes['minlength']),
|
|
9
|
+
maxlength: computed(() => attributes['maxlength']),
|
|
10
|
+
pattern: computed(() => attributes['pattern']),
|
|
11
|
+
min: computed(() => attributes['min']),
|
|
12
|
+
max: computed(() => attributes['max']),
|
|
13
|
+
step: computed(() => attributes['step'])
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { useValidationAttributes as u };
|
|
@@ -7,7 +7,7 @@ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
|
|
|
7
7
|
import './OrMenuItem-4feaba6c.js';
|
|
8
8
|
import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
9
9
|
import './OrIcon-d878b768.js';
|
|
10
|
-
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-
|
|
10
|
+
import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-480f4b1c.js';
|
|
11
11
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
12
12
|
import { s as script$4 } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
13
13
|
import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue';
|
|
2
2
|
import './OrLabel-c6873e79.js';
|
|
3
3
|
import { s as script$1, L as LabelVariant } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
5
6
|
|
|
6
7
|
const CheckboxRoot = [
|
|
7
8
|
// Layout
|
|
@@ -74,18 +75,20 @@ var script = defineComponent({
|
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
77
|
-
expose: ['root'],
|
|
78
|
+
expose: ['root', 'focus', 'blur'],
|
|
78
79
|
setup(props, context) {
|
|
79
|
-
var _a;
|
|
80
|
-
const currentInstance = getCurrentInstance();
|
|
81
80
|
// Refs
|
|
82
81
|
const root = ref();
|
|
82
|
+
const control = ref();
|
|
83
83
|
// Styles
|
|
84
84
|
const classAttribute = useClassAttribute();
|
|
85
85
|
const rootStyles = computed(() => ['or-checkbox', ...CheckboxRoot, classAttribute.value]);
|
|
86
86
|
const controlStyles = computed(() => [...CheckboxControl, ...CheckboxControlHandle]);
|
|
87
87
|
// State
|
|
88
|
-
const
|
|
88
|
+
const controlAttributes = reactive({
|
|
89
|
+
id: useIdAttribute(),
|
|
90
|
+
...useControlAttributes()
|
|
91
|
+
});
|
|
89
92
|
const proxyModelValue = computed({
|
|
90
93
|
get: () => {
|
|
91
94
|
var _a;
|
|
@@ -97,12 +100,24 @@ var script = defineComponent({
|
|
|
97
100
|
context.emit('update:modelValue', value);
|
|
98
101
|
}
|
|
99
102
|
});
|
|
103
|
+
// Methods
|
|
104
|
+
function focus() {
|
|
105
|
+
var _a;
|
|
106
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
107
|
+
}
|
|
108
|
+
function blur() {
|
|
109
|
+
var _a;
|
|
110
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
111
|
+
}
|
|
100
112
|
return {
|
|
101
113
|
root,
|
|
114
|
+
control,
|
|
102
115
|
rootStyles,
|
|
103
116
|
controlStyles,
|
|
104
|
-
|
|
105
|
-
proxyModelValue
|
|
117
|
+
controlAttributes,
|
|
118
|
+
proxyModelValue,
|
|
119
|
+
focus,
|
|
120
|
+
blur
|
|
106
121
|
};
|
|
107
122
|
}
|
|
108
123
|
});
|
|
@@ -3,10 +3,10 @@ import { useMagicKeys, whenever } from '@vueuse/core';
|
|
|
3
3
|
import { l as logicAnd } from './index-01519e46.js';
|
|
4
4
|
import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
|
|
5
5
|
import './OrButton-2b27c1fd.js';
|
|
6
|
-
import './OrInput-
|
|
6
|
+
import './OrInput-e325a104.js';
|
|
7
7
|
import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
|
|
8
8
|
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
9
|
-
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-
|
|
9
|
+
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
10
10
|
|
|
11
11
|
var ConfirmType;
|
|
12
12
|
(function (ConfirmType) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import './OrIconButton-cd62526d.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
6
6
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
7
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
8
|
+
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
7
9
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
8
10
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
9
11
|
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
@@ -86,19 +88,22 @@ var script = defineComponent({
|
|
|
86
88
|
}
|
|
87
89
|
},
|
|
88
90
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
89
|
-
expose: ['root'],
|
|
91
|
+
expose: ['root', 'focus', 'blur'],
|
|
90
92
|
setup(props, context) {
|
|
91
|
-
var _a;
|
|
92
|
-
const currentInstance = getCurrentInstance();
|
|
93
93
|
// Refs
|
|
94
94
|
const root = ref();
|
|
95
|
+
const control = ref();
|
|
95
96
|
// Styles
|
|
96
97
|
const classAttribute = useClassAttribute();
|
|
97
98
|
const rootStyles = computed(() => ['or-inline-input', ...InlineInputRoot, classAttribute.value]);
|
|
98
99
|
const controlStyles = computed(() => [...InlineInputControl]);
|
|
99
100
|
const actionStyles = computed(() => [...InlineInputAction, ...InlineInputActionSizes[props.size]]);
|
|
100
101
|
// State
|
|
101
|
-
const
|
|
102
|
+
const controlAttributes = reactive({
|
|
103
|
+
id: useIdAttribute(),
|
|
104
|
+
...useControlAttributes(),
|
|
105
|
+
...useValidationAttributes()
|
|
106
|
+
});
|
|
102
107
|
const proxyModelValue = computed({
|
|
103
108
|
get: () => {
|
|
104
109
|
var _a;
|
|
@@ -111,13 +116,13 @@ var script = defineComponent({
|
|
|
111
116
|
}
|
|
112
117
|
});
|
|
113
118
|
const draftModelValue = ref('');
|
|
114
|
-
const activated = ref(false);
|
|
115
|
-
const invalid = computed(() => !!props.error);
|
|
116
119
|
const currentLength = computed(() => {
|
|
117
120
|
var _a, _b;
|
|
118
121
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
119
122
|
});
|
|
120
|
-
const maxLength = computed(() =>
|
|
123
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
124
|
+
const invalid = computed(() => !!props.error);
|
|
125
|
+
const activated = ref(false);
|
|
121
126
|
// Handlers
|
|
122
127
|
function onFocus(event) {
|
|
123
128
|
activated.value = true;
|
|
@@ -130,6 +135,14 @@ var script = defineComponent({
|
|
|
130
135
|
context.emit('blur', event);
|
|
131
136
|
}
|
|
132
137
|
// 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
|
+
}
|
|
133
146
|
function apply() {
|
|
134
147
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
135
148
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -151,18 +164,21 @@ var script = defineComponent({
|
|
|
151
164
|
});
|
|
152
165
|
return {
|
|
153
166
|
root,
|
|
167
|
+
control,
|
|
154
168
|
rootStyles,
|
|
155
169
|
controlStyles,
|
|
156
170
|
actionStyles,
|
|
157
|
-
|
|
171
|
+
controlAttributes,
|
|
158
172
|
proxyModelValue,
|
|
159
173
|
draftModelValue,
|
|
160
|
-
activated,
|
|
161
|
-
invalid,
|
|
162
174
|
currentLength,
|
|
163
175
|
maxLength,
|
|
176
|
+
invalid,
|
|
177
|
+
activated,
|
|
164
178
|
onFocus,
|
|
165
179
|
onBlur,
|
|
180
|
+
focus,
|
|
181
|
+
blur,
|
|
166
182
|
apply,
|
|
167
183
|
reset
|
|
168
184
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import './OrIconButton-cd62526d.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
7
|
+
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
6
8
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
7
9
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
8
10
|
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
@@ -64,19 +66,22 @@ var script = defineComponent({
|
|
|
64
66
|
}
|
|
65
67
|
},
|
|
66
68
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
67
|
-
expose: ['root'],
|
|
69
|
+
expose: ['root', 'focus', 'blur'],
|
|
68
70
|
setup(props, context) {
|
|
69
|
-
var _a;
|
|
70
|
-
const currentInstance = getCurrentInstance();
|
|
71
71
|
// Refs
|
|
72
72
|
const root = ref();
|
|
73
|
+
const control = ref();
|
|
73
74
|
// Styles
|
|
74
75
|
const classAttribute = useClassAttribute();
|
|
75
76
|
const rootStyles = computed(() => ['or-inline-textarea', ...InlineTextareaRoot, classAttribute.value]);
|
|
76
77
|
const controlStyles = computed(() => [...InlineTextareaControl]);
|
|
77
78
|
const actionStyles = computed(() => [...InlineTextareaAction]);
|
|
78
79
|
// State
|
|
79
|
-
const
|
|
80
|
+
const controlAttributes = reactive({
|
|
81
|
+
id: useIdAttribute(),
|
|
82
|
+
...useControlAttributes(),
|
|
83
|
+
...useValidationAttributes()
|
|
84
|
+
});
|
|
80
85
|
const proxyModelValue = computed({
|
|
81
86
|
get: () => {
|
|
82
87
|
var _a;
|
|
@@ -89,13 +94,13 @@ var script = defineComponent({
|
|
|
89
94
|
}
|
|
90
95
|
});
|
|
91
96
|
const draftModelValue = ref('');
|
|
92
|
-
const activated = ref(false);
|
|
93
|
-
const invalid = computed(() => !!props.error);
|
|
94
97
|
const currentLength = computed(() => {
|
|
95
98
|
var _a, _b;
|
|
96
99
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
97
100
|
});
|
|
98
|
-
const maxLength = computed(() =>
|
|
101
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
102
|
+
const invalid = computed(() => !!props.error);
|
|
103
|
+
const activated = ref(false);
|
|
99
104
|
// Handlers
|
|
100
105
|
function onFocus(event) {
|
|
101
106
|
activated.value = true;
|
|
@@ -108,6 +113,14 @@ var script = defineComponent({
|
|
|
108
113
|
context.emit('blur', event);
|
|
109
114
|
}
|
|
110
115
|
// 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
|
+
}
|
|
111
124
|
function apply() {
|
|
112
125
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
113
126
|
proxyModelValue.value = draftModelValue.value;
|
|
@@ -129,18 +142,21 @@ var script = defineComponent({
|
|
|
129
142
|
});
|
|
130
143
|
return {
|
|
131
144
|
root,
|
|
145
|
+
control,
|
|
132
146
|
rootStyles,
|
|
133
147
|
controlStyles,
|
|
134
148
|
actionStyles,
|
|
135
|
-
|
|
149
|
+
controlAttributes,
|
|
136
150
|
proxyModelValue,
|
|
137
151
|
draftModelValue,
|
|
138
|
-
activated,
|
|
139
|
-
invalid,
|
|
140
152
|
currentLength,
|
|
141
153
|
maxLength,
|
|
154
|
+
invalid,
|
|
155
|
+
activated,
|
|
142
156
|
onFocus,
|
|
143
157
|
onBlur,
|
|
158
|
+
focus,
|
|
159
|
+
blur,
|
|
144
160
|
apply,
|
|
145
161
|
reset
|
|
146
162
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as script } from './OrInput.vue_vue_type_script_lang-
|
|
2
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
1
|
+
import { s as script } from './OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, vModelDynamic, withModifiers, Fragment, createSlots, normalizeClass } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
|
|
5
|
-
const _hoisted_1 = ["
|
|
5
|
+
const _hoisted_1 = ["type", "placeholder", "required", "disabled"];
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
8
8
|
};
|
|
@@ -13,12 +13,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13
13
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
14
14
|
const _component_OrHint = resolveComponent("OrHint");
|
|
15
15
|
const _component_OrError = resolveComponent("OrError");
|
|
16
|
-
return openBlock(), createElementBlock("div", {
|
|
17
|
-
ref: "root"
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
17
|
+
ref: "root"
|
|
18
|
+
}, _ctx.$attrs, {
|
|
19
|
+
class: _ctx.rootStyles
|
|
20
|
+
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
20
21
|
key: 0,
|
|
21
|
-
"control-id": _ctx.
|
|
22
|
+
"control-id": _ctx.controlAttributes.id,
|
|
22
23
|
variant: 'input',
|
|
23
24
|
required: _ctx.required,
|
|
24
25
|
disabled: _ctx.disabled
|
|
@@ -35,10 +36,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35
36
|
disabled: _ctx.disabled
|
|
36
37
|
}, {
|
|
37
38
|
default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
|
|
38
|
-
|
|
39
|
-
ref: "input",
|
|
39
|
+
ref: "control",
|
|
40
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
41
|
-
}, _ctx
|
|
41
|
+
}, _ctx.controlAttributes, {
|
|
42
42
|
class: _ctx.controlStyles,
|
|
43
43
|
type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
|
|
44
44
|
placeholder: _ctx.placeholder,
|
|
@@ -97,7 +97,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
98
98
|
|
|
99
99
|
key: "0"
|
|
100
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))],
|
|
100
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 16 /* FULL_PROPS */);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
var css_248z = "\ninput[data-v-78975fa2] {\n min-width: 0;\n background: none;\n outline: none;\n}\ninput[type=\"number\"][data-v-78975fa2]::-webkit-inner-spin-button {\n display: none;\n}\ninput[type=\"search\"][data-v-78975fa2]::-webkit-search-cancel-button {\n display: none;\n}\n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
3
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
4
4
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
@@ -9,6 +9,8 @@ import { s as script$5, a as InputBoxSize } from './OrInputBox.vue_vue_type_scri
|
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
11
11
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
12
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
13
|
+
import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
|
|
12
14
|
import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
13
15
|
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
|
|
14
16
|
|
|
@@ -81,6 +83,10 @@ var script = defineComponent({
|
|
|
81
83
|
type: Boolean,
|
|
82
84
|
default: false
|
|
83
85
|
},
|
|
86
|
+
readonly: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: false
|
|
89
|
+
},
|
|
84
90
|
disabled: {
|
|
85
91
|
type: Boolean,
|
|
86
92
|
default: false
|
|
@@ -91,19 +97,21 @@ var script = defineComponent({
|
|
|
91
97
|
}
|
|
92
98
|
},
|
|
93
99
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
|
|
94
|
-
expose: ['root', 'focus'],
|
|
100
|
+
expose: ['root', 'focus', 'blur'],
|
|
95
101
|
setup(props, context) {
|
|
96
|
-
var _a;
|
|
97
|
-
const currentInstance = getCurrentInstance();
|
|
98
102
|
// Refs
|
|
99
103
|
const root = ref();
|
|
100
|
-
const
|
|
104
|
+
const control = ref();
|
|
101
105
|
// Styles
|
|
102
106
|
const classAttribute = useClassAttribute();
|
|
103
107
|
const rootStyles = computed(() => ['or-input', ...InputRoot, classAttribute.value]);
|
|
104
108
|
const controlStyles = computed(() => [...InputControl]);
|
|
105
109
|
// State
|
|
106
|
-
const
|
|
110
|
+
const controlAttributes = reactive({
|
|
111
|
+
id: useIdAttribute(),
|
|
112
|
+
...useControlAttributes(),
|
|
113
|
+
...useValidationAttributes()
|
|
114
|
+
});
|
|
107
115
|
const proxyModelValue = computed({
|
|
108
116
|
get: () => {
|
|
109
117
|
var _a;
|
|
@@ -115,32 +123,35 @@ var script = defineComponent({
|
|
|
115
123
|
context.emit('update:modelValue', value);
|
|
116
124
|
}
|
|
117
125
|
});
|
|
118
|
-
const invalid = computed(() => !!props.error);
|
|
119
|
-
const readonly = computed(() => context.attrs.readonly);
|
|
120
126
|
const currentLength = computed(() => {
|
|
121
127
|
var _a, _b;
|
|
122
128
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
123
129
|
});
|
|
124
|
-
const maxLength = computed(() =>
|
|
130
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
131
|
+
const invalid = computed(() => !!props.error);
|
|
125
132
|
const disclosed = ref(false);
|
|
126
133
|
// Methods
|
|
127
134
|
function focus() {
|
|
128
135
|
var _a;
|
|
129
|
-
(_a =
|
|
136
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
137
|
+
}
|
|
138
|
+
function blur() {
|
|
139
|
+
var _a;
|
|
140
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
130
141
|
}
|
|
131
142
|
return {
|
|
132
143
|
root,
|
|
133
|
-
|
|
144
|
+
control,
|
|
134
145
|
rootStyles,
|
|
135
146
|
controlStyles,
|
|
136
|
-
|
|
147
|
+
controlAttributes,
|
|
137
148
|
proxyModelValue,
|
|
138
|
-
invalid,
|
|
139
|
-
readonly,
|
|
140
149
|
currentLength,
|
|
141
150
|
maxLength,
|
|
151
|
+
invalid,
|
|
142
152
|
disclosed,
|
|
143
|
-
focus
|
|
153
|
+
focus,
|
|
154
|
+
blur
|
|
144
155
|
};
|
|
145
156
|
}
|
|
146
157
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue';
|
|
2
2
|
import './OrLabel-c6873e79.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
4
|
+
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
|
|
4
5
|
import { s as script$1, L as LabelVariant } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
5
6
|
|
|
6
7
|
const RadioRoot = [
|
|
@@ -70,18 +71,20 @@ var script = defineComponent({
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
73
|
-
expose: ['root'],
|
|
74
|
+
expose: ['root', 'focus', 'blur'],
|
|
74
75
|
setup(props, context) {
|
|
75
|
-
var _a;
|
|
76
|
-
const currentInstance = getCurrentInstance();
|
|
77
76
|
// Refs
|
|
78
77
|
const root = ref();
|
|
78
|
+
const control = ref();
|
|
79
79
|
// Styles
|
|
80
80
|
const classAttribute = useClassAttribute();
|
|
81
81
|
const rootStyles = computed(() => ['or-radio', ...RadioRoot, classAttribute.value]);
|
|
82
82
|
const controlStyles = computed(() => [...RadioControl, ...RadioControlHandle]);
|
|
83
83
|
// State
|
|
84
|
-
const
|
|
84
|
+
const controlAttributes = reactive({
|
|
85
|
+
id: useIdAttribute(),
|
|
86
|
+
...useControlAttributes()
|
|
87
|
+
});
|
|
85
88
|
const proxyModelValue = computed({
|
|
86
89
|
get: () => {
|
|
87
90
|
var _a;
|
|
@@ -93,12 +96,24 @@ var script = defineComponent({
|
|
|
93
96
|
context.emit('update:modelValue', value);
|
|
94
97
|
}
|
|
95
98
|
});
|
|
99
|
+
// Methods
|
|
100
|
+
function focus() {
|
|
101
|
+
var _a;
|
|
102
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
103
|
+
}
|
|
104
|
+
function blur() {
|
|
105
|
+
var _a;
|
|
106
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
107
|
+
}
|
|
96
108
|
return {
|
|
97
109
|
root,
|
|
110
|
+
control,
|
|
98
111
|
rootStyles,
|
|
99
112
|
controlStyles,
|
|
100
|
-
|
|
101
|
-
proxyModelValue
|
|
113
|
+
controlAttributes,
|
|
114
|
+
proxyModelValue,
|
|
115
|
+
focus,
|
|
116
|
+
blur
|
|
102
117
|
};
|
|
103
118
|
}
|
|
104
119
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
|
-
import './OrInput-
|
|
4
|
-
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-
|
|
3
|
+
import './OrInput-e325a104.js';
|
|
4
|
+
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
6
|
import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
2
|
-
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, withDirectives, createElementVNode, vModelDynamic, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, normalizeClass, withModifiers, createVNode, vShow, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue';
|
|
2
|
+
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-2024ec32.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
import './OrHint-9592499e.js';
|
|
5
5
|
import { s as script$2 } from './OrExpansionPanel.vue_vue_type_script_lang-5360f580.js';
|
|
6
6
|
import './OrIcon-d878b768.js';
|
|
7
|
-
import './OrInput-
|
|
7
|
+
import './OrInput-e325a104.js';
|
|
8
8
|
import './OrInputBox-eb54d73d.js';
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import './OrMenuItem-4feaba6c.js';
|
|
@@ -16,32 +16,34 @@ import { u as useOverflow } from './useOverflow-6dce216b.js';
|
|
|
16
16
|
import { s as script$4 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
17
17
|
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
18
18
|
import { s as script$6 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
19
|
-
import { s as script$7 } from './OrInput.vue_vue_type_script_lang-
|
|
19
|
+
import { s as script$7 } from './OrInput.vue_vue_type_script_lang-fd850b82.js';
|
|
20
20
|
import { s as script$8, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
21
21
|
import { s as script$9 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
22
22
|
import { s as script$a } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
23
23
|
import { s as script$b } from './OrPopover.vue_vue_type_script_lang-54c7b11c.js';
|
|
24
24
|
|
|
25
|
-
const _hoisted_1$2 = ["
|
|
25
|
+
const _hoisted_1$2 = ["value", "indeterminate", "required", "disabled"];
|
|
26
26
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27
27
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
28
|
-
return openBlock(), createElementBlock("div", {
|
|
29
|
-
ref: "root"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
29
|
+
ref: "root"
|
|
30
|
+
}, _ctx.$attrs, {
|
|
31
|
+
class: _ctx.rootStyles
|
|
32
|
+
}), [withDirectives(createElementVNode("input", mergeProps({
|
|
33
|
+
ref: "control",
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
35
|
+
}, _ctx.controlAttributes, {
|
|
34
36
|
class: _ctx.controlStyles,
|
|
35
|
-
type:
|
|
37
|
+
type: 'checkbox',
|
|
36
38
|
value: _ctx.inputValue,
|
|
37
39
|
indeterminate: _ctx.indeterminate,
|
|
38
40
|
required: _ctx.required,
|
|
39
41
|
disabled: _ctx.disabled,
|
|
40
42
|
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
41
43
|
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
|
|
42
|
-
}), null, 16 /* FULL_PROPS */, _hoisted_1$2), [[
|
|
44
|
+
}), null, 16 /* FULL_PROPS */, _hoisted_1$2), [[vModelDynamic, _ctx.proxyModelValue]]), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
43
45
|
key: 0,
|
|
44
|
-
"control-id": _ctx.
|
|
46
|
+
"control-id": _ctx.controlAttributes.id,
|
|
45
47
|
variant: _ctx.labelVariant,
|
|
46
48
|
required: _ctx.required,
|
|
47
49
|
disabled: _ctx.disabled
|
|
@@ -50,7 +52,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50
52
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
|
|
51
53
|
|
|
52
54
|
_: 3 /* FORWARDED */
|
|
53
|
-
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)],
|
|
55
|
+
}, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
var css_248z = "\ninput[data-v-5358d710] {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n line-height: 0;\n}\n";
|