@onereach/ui-components 2.70.1 → 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/{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 +15 -13
- 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-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 +15 -13
- 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/{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 +16 -14
- 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-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 +76 -68
- 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/{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 +15 -13
- 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-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 +15 -13
- 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/{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 +15 -13
- 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-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 +15 -13
- package/dist/esm/v3/useIdAttribute-859439f0.js +21 -0
- package/dist/esm/v3/useValidationAttributes-d1abbe34.js +16 -0
- package/package.json +2 -3
- 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-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/index.js
CHANGED
|
@@ -13,18 +13,18 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
13
13
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from './OrButton-a846fa7e.js';
|
|
14
14
|
export { O as OrCard } from './OrCard-a6b30f8f.js';
|
|
15
15
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-89428bbf.js';
|
|
16
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
16
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-1bb83cfb.js';
|
|
17
17
|
export { _ as OrCardV3 } from './OrCard-29116e1f.js';
|
|
18
18
|
export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-6da755c0.js';
|
|
19
19
|
export { O as OrCheckbox } from './OrCheckbox-4cbddd67.js';
|
|
20
|
-
export { O as OrCheckboxV3 } from './OrCheckbox-
|
|
20
|
+
export { O as OrCheckboxV3 } from './OrCheckbox-251ecafc.js';
|
|
21
21
|
export { O as OrChip } from './OrChip-000fe7b5.js';
|
|
22
22
|
export { _ as OrChips } from './OrChips-890b8476.js';
|
|
23
23
|
export { _ as OrCode, O as OrCodeLanguages } from './OrCode-fc6876ec.js';
|
|
24
24
|
export { O as OrCollapse } from './OrCollapse-3aa9a9b7.js';
|
|
25
25
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-a1a37e83.js';
|
|
26
26
|
export { _ as OrConfirm } from './OrConfirm-56d01cff.js';
|
|
27
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
27
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-4cae7867.js';
|
|
28
28
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-e212f892.js';
|
|
29
29
|
export { O as OrError } from './OrError-31503e4c.js';
|
|
30
30
|
export { _ as OrErrorTagV3 } from './OrErrorTag-d0c5bcf4.js';
|
|
@@ -39,11 +39,11 @@ export { O as OrIcon, a as OrIconColors, b as OrIconType } from './OrIcon-10ec45
|
|
|
39
39
|
export { I as IconButtonColor, O as OrIconButtonV3 } from './OrIconButton-a2ba92df.js';
|
|
40
40
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, O as OrIconV3 } from './OrIcon-8625385f.js';
|
|
41
41
|
export { I as InlineInputBoxSize, I as InlineInputSize, O as OrInlineInputBoxV3 } from './OrInlineInputBox-f457210f.js';
|
|
42
|
-
export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-
|
|
42
|
+
export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-2133e469.js';
|
|
43
43
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from './OrInlineTextEdit-7262efdf.js';
|
|
44
|
-
export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
44
|
+
export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-d61ca596.js';
|
|
45
45
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, O as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-79ec54ad.js';
|
|
46
|
-
export { I as InputType, O as OrInputV3 } from './OrInput-
|
|
46
|
+
export { I as InputType, O as OrInputV3 } from './OrInput-770f1bed.js';
|
|
47
47
|
export { a as OrNumberInput, b as OrPassword, _ as OrTextarea } from './OrPassword-7da938aa.js';
|
|
48
48
|
export { O as OrInput } from './OrInput-08f2f666.js';
|
|
49
49
|
export { O as OrSearch } from './OrSearch-f7cfa52f.js';
|
|
@@ -64,16 +64,16 @@ export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotificatio
|
|
|
64
64
|
export { _ as OrOverflowMenu } from './OrOverflowMenu-711e460e.js';
|
|
65
65
|
export { O as OrOverlay } from './OrOverlay-47967a8b.js';
|
|
66
66
|
export { O as OrOverlayV3 } from './OrOverlay-3c89d622.js';
|
|
67
|
-
export { _ as OrPaginationV3 } from './OrPagination-
|
|
67
|
+
export { _ as OrPaginationV3 } from './OrPagination-468d0964.js';
|
|
68
68
|
export { O as OrProgress, a as OrProgressColors, b as OrProgressTypes } from './OrProgress-de947341.js';
|
|
69
69
|
export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-cc397a38.js';
|
|
70
70
|
export { _ as OrRadio } from './OrRadio-187d6fc7.js';
|
|
71
71
|
export { _ as OrRadioGroup } from './OrRadioGroup-aa9f0757.js';
|
|
72
|
-
export { _ as OrRadioV3 } from './OrRadio-
|
|
73
|
-
export { O as OrSearchV3 } from './OrSearch-
|
|
72
|
+
export { _ as OrRadioV3 } from './OrRadio-ae89bc9b.js';
|
|
73
|
+
export { O as OrSearchV3 } from './OrSearch-2e5f9e24.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-21cc914e.js';
|
|
75
75
|
export { _ as OrSelect } from './OrSelect-a23d4210.js';
|
|
76
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from './OrSelect-039c0711.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-e2b2c9ec.js';
|
|
78
78
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-c95ef614.js';
|
|
79
79
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-242d22f3.js';
|
|
@@ -82,18 +82,18 @@ export { _ as OrSlider } from './OrSlider-59d05856.js';
|
|
|
82
82
|
export { _ as OrSortHeaderV3 } from './OrSortHeader-9932d28f.js';
|
|
83
83
|
export { _ as OrStepper } from './OrStepper-3fc1a2b3.js';
|
|
84
84
|
export { _ as OrSwitch } from './OrSwitch-47670dbd.js';
|
|
85
|
-
export { _ as OrSwitchV3 } from './OrSwitch-
|
|
85
|
+
export { _ as OrSwitchV3 } from './OrSwitch-20640a05.js';
|
|
86
86
|
export { _ as OrTab } from './OrTab-b2c6d977.js';
|
|
87
87
|
export { O as OrTabHeaderItem } from './OrTabHeaderItem-d39c3cf7.js';
|
|
88
88
|
export { O as OrTabV3 } from './OrTab-dd949240.js';
|
|
89
89
|
export { _ as OrTabs } from './OrTabs-4c8f6422.js';
|
|
90
|
-
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
90
|
+
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-85aefcba.js';
|
|
91
91
|
export { _ as OrTag } from './OrTag-79e48fec.js';
|
|
92
92
|
export { O as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-e3e6fdd6.js';
|
|
93
93
|
export { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
|
|
94
94
|
export { O as OrTeleportV3 } from './OrTeleport.vue2-e9ba3054.js';
|
|
95
95
|
export { _ as OrTextV3 } from './OrText-eac4b9f5.js';
|
|
96
|
-
export { _ as OrTextareaV3 } from './OrTextarea-
|
|
96
|
+
export { _ as OrTextareaV3 } from './OrTextarea-0ff8063b.js';
|
|
97
97
|
export { _ as OrTextbox, T as TextboxTypes } from './OrTextbox-eacd9b19.js';
|
|
98
98
|
export { O as OrToast, _ as OrToastContainer } from './OrToastContainer-b03adc37.js';
|
|
99
99
|
export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from './types-8fe4e345.js';
|
|
@@ -102,8 +102,10 @@ export { O as OrTooltipContent } from './OrTooltipContent-f0fd5f75.js';
|
|
|
102
102
|
export { O as OrTooltipV3 } from './OrTooltip-fbfa05fd.js';
|
|
103
103
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.js';
|
|
104
104
|
export { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
105
|
+
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-cf61643f.js';
|
|
105
106
|
export { u as useElevation } from './useElevation-aac032f4.js';
|
|
106
107
|
export { u as useOverflow } from './useOverflow-bae6342f.js';
|
|
108
|
+
export { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
|
|
107
109
|
import './index-fa6eb4ca.js';
|
|
108
110
|
import 'vue';
|
|
109
111
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -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
|
|