@onereach/ui-components 2.74.13-beta.2365.0 → 2.74.13
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/{OrButton-0a9470c0.js → OrButton-0242b4c0.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-638bc4a8.js → OrCardCollection-04e767c2.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-f7ade1d1.js → OrConfirm-a76ff6d2.js} +2 -2
- package/dist/bundled/v2/{OrInlineInput-20e93482.js → OrInlineInput-9304f205.js} +11 -9
- package/dist/bundled/v2/{OrInlineTextarea-e849ae9b.js → OrInlineTextarea-e0d28fc6.js} +11 -9
- package/dist/bundled/v2/{OrInput-15c2b072.js → OrInput-b8511a0c.js} +13 -12
- package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
- package/dist/bundled/v2/{OrLoader-cf28bfa6.js → OrLoader-6bec8824.js} +10 -2
- package/dist/bundled/v2/{OrPagination-95f37111.js → OrPagination-166592a5.js} +1 -1
- package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-01123d1f.js} +6 -2
- package/dist/bundled/v2/{OrSearch-8df5d7fd.js → OrSearch-60b64568.js} +2 -2
- package/dist/bundled/v2/{OrSelect-3ac5eefe.js → OrSelect-752bdd3b.js} +10 -11
- package/dist/bundled/v2/{OrSwitch-34f79eb1.js → OrSwitch-aa0da6b9.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-53d756e4.js → OrTextarea-5fdf63d0.js} +12 -11
- package/dist/bundled/v2/components/index.js +15 -16
- package/dist/bundled/v2/components/or-button-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -7
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -6
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-loader-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-switch-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +16 -17
- package/dist/bundled/v2/{types-0e3ca5b9.js → types-e494517f.js} +1 -1
- package/dist/bundled/v3/{OrButton-a5b98ee2.js → OrButton-452d3149.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-e75f9a10.js → OrButton.vue_vue_type_script_lang-7d4f420c.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-990fb52d.js → OrCardCollection.vue_vue_type_script_lang-e71a0ea0.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-8ac01851.js → OrConfirm.vue_vue_type_script_lang-b550c3d3.js} +4 -4
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-18853dd7.js → OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js} +5 -3
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js → OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js} +5 -3
- package/dist/bundled/v3/{OrInput-2c10c351.js → OrInput-6d49f353.js} +5 -5
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ce8b23e8.js → OrInput.vue_vue_type_script_lang-af68d0e7.js} +9 -8
- package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
- package/dist/bundled/v3/{OrLoader-663e062d.js → OrLoader-be9d72cd.js} +11 -11
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-8fc03499.js → OrLoader.vue_vue_type_script_lang-65971a23.js} +8 -0
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b6e7592e.js → OrPagination.vue_vue_type_script_lang-a79c359c.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-c387db0b.js} +4 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-db6e6f7f.js → OrSearch.vue_vue_type_script_lang-8c37e5a7.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-52193c4c.js → OrSelect.vue_vue_type_script_lang-35ac0247.js} +8 -9
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-f6039c8f.js → OrSwitch.vue_vue_type_script_lang-fd43080e.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-b2899ba6.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +7 -6
- package/dist/bundled/v3/{OrToastContainer-5c99d3ce.js → OrToastContainer-6a85ebf8.js} +1 -1
- package/dist/bundled/v3/components/index.js +19 -20
- package/dist/bundled/v3/components/or-button-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -11
- package/dist/bundled/v3/components/or-confirm-v3/index.js +9 -10
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-input-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-loader-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +7 -8
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +7 -8
- package/dist/bundled/v3/components/or-switch-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +65 -65
- package/dist/bundled/v3/{types-5a9ace3b.js → types-661a05a5.js} +2 -2
- package/dist/esm/v2/{OrButton-49f7f20b.js → OrButton-c5ec96e7.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-ffa4e842.js → OrCardCollection-f7856175.js} +3 -3
- package/dist/esm/v2/{OrConfirm-73a902ce.js → OrConfirm-98d62065.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-b003ddde.js → OrInlineInput-df02ab5d.js} +11 -9
- package/dist/esm/v2/{OrInlineTextarea-6349b529.js → OrInlineTextarea-ad120656.js} +11 -9
- package/dist/esm/v2/{OrInput-67eb3178.js → OrInput-3bb91436.js} +13 -12
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
- package/dist/esm/v2/{OrLoader-8f1f3af1.js → OrLoader-b11ed386.js} +10 -2
- package/dist/esm/v2/{OrPagination-81d4476a.js → OrPagination-a9233838.js} +1 -1
- package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-ff999494.js} +6 -2
- package/dist/esm/v2/{OrSearch-a5cab600.js → OrSearch-dad9b02f.js} +2 -2
- package/dist/esm/v2/{OrSelect-2773ebeb.js → OrSelect-7ef80130.js} +10 -11
- package/dist/esm/v2/{OrSwitch-1bd5b4d1.js → OrSwitch-6129b63d.js} +1 -1
- package/dist/esm/v2/{OrTextarea-0bf9bf33.js → OrTextarea-0a64f718.js} +12 -11
- package/dist/esm/v2/components/index.js +15 -16
- package/dist/esm/v2/components/or-button-v3/index.js +3 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -8
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -6
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-input-v3/index.js +3 -4
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +4 -4
- package/dist/esm/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -5
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-select-v3/index.js +4 -5
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/index.js +15 -16
- package/dist/esm/v2/{types-d5127999.js → types-e9a54dcf.js} +1 -1
- package/dist/esm/v3/{OrButton-eab948fb.js → OrButton-9f059df6.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-274a413e.js → OrCardCollection-4cb41408.js} +2 -2
- package/dist/esm/v3/{OrConfirm-c73aa589.js → OrConfirm-19da64d1.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-65127ed7.js → OrInlineInput-cd3753ee.js} +9 -7
- package/dist/esm/v3/{OrInlineTextarea-176a2701.js → OrInlineTextarea-4c5b0390.js} +9 -7
- package/dist/esm/v3/{OrInput-86c9d300.js → OrInput-ae9f6871.js} +10 -8
- package/dist/esm/v3/{OrLoader-3a918ce9.js → OrLoader-18f66bca.js} +18 -10
- package/dist/esm/v3/{OrPagination-94c2095f.js → OrPagination-183803e7.js} +1 -1
- package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-f881a58a.js} +15 -10
- package/dist/esm/v3/{OrSearch-1a92f8cf.js → OrSearch-6f6b4fcd.js} +1 -1
- package/dist/esm/v3/{OrSelect-e1443e71.js → OrSelect-96bf9b63.js} +9 -9
- package/dist/esm/v3/{OrSwitch-0e92c92c.js → OrSwitch-2a23a9b8.js} +1 -1
- package/dist/esm/v3/{OrTextarea-14a6b456.js → OrTextarea-42d21f77.js} +9 -7
- package/dist/esm/v3/components/index.js +14 -14
- package/dist/esm/v3/components/or-button-v3/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-loader-v3/index.js +2 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +4 -4
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/index.js +14 -14
- package/dist/esm/v3/{types-f6f8ab6b.js → types-b9717ff2.js} +1 -1
- package/package.json +4 -3
- package/src/components/or-inline-input-v3/OrInlineInput.vue +7 -4
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +7 -4
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +7 -4
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-loader-v3/OrLoader.vue +12 -2
- package/src/components/or-progress-v3/OrProgress.vue +9 -2
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +6 -4
- package/src/components/or-select-v3/styles.ts +1 -4
- package/src/components/or-textarea-v3/OrTextarea.vue +7 -4
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -146
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/props-78496a2d.js +0 -12
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -128
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/props-78496a2d.js +0 -12
- package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -143
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -127
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -127
- package/src/components/or-combined-input-v3/index.ts +0 -2
- package/src/components/or-combined-input-v3/props.ts +0 -1
- package/src/components/or-combined-input-v3/styles.ts +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrLoader } from './OrLoader-
|
|
2
|
+
import { O as OrLoader } from './OrLoader-6bec8824.js';
|
|
3
3
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
@@ -2,11 +2,11 @@ import './index-fa6eb4ca.js';
|
|
|
2
2
|
import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
4
|
import { O as OrIconButton } from './OrIconButton-deec1d4d.js';
|
|
5
|
-
import { O as OrButton } from './OrButton-
|
|
5
|
+
import { O as OrButton } from './OrButton-0242b4c0.js';
|
|
6
6
|
import { O as OrMenu } from './OrMenu-82c77b2c.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-2efd1925.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-60b64568.js';
|
|
10
10
|
|
|
11
11
|
const CardCollectionRoot = [
|
|
12
12
|
// Layout
|
|
@@ -2,8 +2,8 @@ import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
|
2
2
|
import { l as logicAnd } from './index-17f264f9.js';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-cb55bf20.js';
|
|
5
|
-
import { O as OrButton, a as ButtonColor } from './OrButton-
|
|
6
|
-
import { O as OrInput } from './OrInput-
|
|
5
|
+
import { O as OrButton, a as ButtonColor } from './OrButton-0242b4c0.js';
|
|
6
|
+
import { O as OrInput } from './OrInput-b8511a0c.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
|
|
|
@@ -21,8 +21,8 @@ const InlineInputRoot = [
|
|
|
21
21
|
// Spacing
|
|
22
22
|
'gap-xs'];
|
|
23
23
|
const InlineInputControl = [
|
|
24
|
-
//
|
|
25
|
-
'
|
|
24
|
+
// Layout
|
|
25
|
+
'grow',
|
|
26
26
|
// Typography
|
|
27
27
|
'typography-inherit',
|
|
28
28
|
// Theme
|
|
@@ -81,7 +81,7 @@ var script = defineComponent({
|
|
|
81
81
|
default: undefined
|
|
82
82
|
},
|
|
83
83
|
error: {
|
|
84
|
-
type:
|
|
84
|
+
type: String,
|
|
85
85
|
default: undefined
|
|
86
86
|
}
|
|
87
87
|
},
|
|
@@ -113,6 +113,7 @@ var script = defineComponent({
|
|
|
113
113
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
114
114
|
});
|
|
115
115
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
116
|
+
const invalid = computed(() => !!props.error);
|
|
116
117
|
const activated = ref(false);
|
|
117
118
|
// Handlers
|
|
118
119
|
function onFocus(event) {
|
|
@@ -164,6 +165,7 @@ var script = defineComponent({
|
|
|
164
165
|
draftModelValue,
|
|
165
166
|
currentLength,
|
|
166
167
|
maxLength,
|
|
168
|
+
invalid,
|
|
167
169
|
activated,
|
|
168
170
|
onFocus,
|
|
169
171
|
onBlur,
|
|
@@ -175,7 +177,7 @@ var script = defineComponent({
|
|
|
175
177
|
}
|
|
176
178
|
});
|
|
177
179
|
|
|
178
|
-
var css_248z = "input[data-v-
|
|
180
|
+
var css_248z = "input[data-v-a3451ac6]{min-width:0;background:0 0;outline:0}input[type=number][data-v-a3451ac6]::-webkit-inner-spin-button{display:none}input[type=search][data-v-a3451ac6]::-webkit-search-cancel-button{display:none}";
|
|
179
181
|
styleInject(css_248z);
|
|
180
182
|
|
|
181
183
|
/* script */
|
|
@@ -193,7 +195,7 @@ var __vue_render__ = function () {
|
|
|
193
195
|
}, [_c('OrInlineInputBox', {
|
|
194
196
|
attrs: {
|
|
195
197
|
"size": _vm.size,
|
|
196
|
-
"invalid":
|
|
198
|
+
"invalid": _vm.invalid
|
|
197
199
|
}
|
|
198
200
|
}, [_vm.type === 'checkbox' ? _c('input', _vm._b({
|
|
199
201
|
directives: [{
|
|
@@ -325,7 +327,7 @@ var __vue_render__ = function () {
|
|
|
325
327
|
return _vm.reset.apply(null, arguments);
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
|
-
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.
|
|
330
|
+
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
329
331
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
330
332
|
key: "addon",
|
|
331
333
|
fn: function () {
|
|
@@ -333,7 +335,7 @@ var __vue_render__ = function () {
|
|
|
333
335
|
},
|
|
334
336
|
proxy: true
|
|
335
337
|
} : null], null, true)
|
|
336
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] :
|
|
338
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
337
339
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
338
340
|
key: "addon",
|
|
339
341
|
fn: function () {
|
|
@@ -341,14 +343,14 @@ var __vue_render__ = function () {
|
|
|
341
343
|
},
|
|
342
344
|
proxy: true
|
|
343
345
|
} : null], null, true)
|
|
344
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]
|
|
346
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]], 2);
|
|
345
347
|
};
|
|
346
348
|
var __vue_staticRenderFns__ = [];
|
|
347
349
|
|
|
348
350
|
/* style */
|
|
349
351
|
const __vue_inject_styles__ = undefined;
|
|
350
352
|
/* scoped */
|
|
351
|
-
const __vue_scope_id__ = "data-v-
|
|
353
|
+
const __vue_scope_id__ = "data-v-a3451ac6";
|
|
352
354
|
/* module identifier */
|
|
353
355
|
const __vue_module_identifier__ = undefined;
|
|
354
356
|
/* functional template */
|
|
@@ -15,8 +15,8 @@ const InlineTextareaRoot = [
|
|
|
15
15
|
// Spacing
|
|
16
16
|
'gap-xs'];
|
|
17
17
|
const InlineTextareaControl = [
|
|
18
|
-
//
|
|
19
|
-
'
|
|
18
|
+
// Layout
|
|
19
|
+
'grow',
|
|
20
20
|
// Typography
|
|
21
21
|
'typography-inherit',
|
|
22
22
|
// Theme
|
|
@@ -59,7 +59,7 @@ var script = defineComponent({
|
|
|
59
59
|
default: undefined
|
|
60
60
|
},
|
|
61
61
|
error: {
|
|
62
|
-
type:
|
|
62
|
+
type: String,
|
|
63
63
|
default: undefined
|
|
64
64
|
}
|
|
65
65
|
},
|
|
@@ -91,6 +91,7 @@ var script = defineComponent({
|
|
|
91
91
|
return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
92
92
|
});
|
|
93
93
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
94
|
+
const invalid = computed(() => !!props.error);
|
|
94
95
|
const activated = ref(false);
|
|
95
96
|
// Handlers
|
|
96
97
|
function onFocus(event) {
|
|
@@ -142,6 +143,7 @@ var script = defineComponent({
|
|
|
142
143
|
draftModelValue,
|
|
143
144
|
currentLength,
|
|
144
145
|
maxLength,
|
|
146
|
+
invalid,
|
|
145
147
|
activated,
|
|
146
148
|
onFocus,
|
|
147
149
|
onBlur,
|
|
@@ -153,7 +155,7 @@ var script = defineComponent({
|
|
|
153
155
|
}
|
|
154
156
|
});
|
|
155
157
|
|
|
156
|
-
var css_248z = "textarea[data-v-
|
|
158
|
+
var css_248z = "textarea[data-v-03ea829d]{min-width:0;background:0 0;outline:0}";
|
|
157
159
|
styleInject(css_248z);
|
|
158
160
|
|
|
159
161
|
/* script */
|
|
@@ -171,7 +173,7 @@ var __vue_render__ = function () {
|
|
|
171
173
|
}, [_c('OrInlineInputBox', {
|
|
172
174
|
attrs: {
|
|
173
175
|
"size": 's',
|
|
174
|
-
"invalid":
|
|
176
|
+
"invalid": _vm.invalid
|
|
175
177
|
}
|
|
176
178
|
}, [_c('textarea', _vm._b({
|
|
177
179
|
directives: [{
|
|
@@ -229,7 +231,7 @@ var __vue_render__ = function () {
|
|
|
229
231
|
return _vm.reset.apply(null, arguments);
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
|
-
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.
|
|
234
|
+
})], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
233
235
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
234
236
|
key: "addon",
|
|
235
237
|
fn: function () {
|
|
@@ -237,7 +239,7 @@ var __vue_render__ = function () {
|
|
|
237
239
|
},
|
|
238
240
|
proxy: true
|
|
239
241
|
} : null], null, true)
|
|
240
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] :
|
|
242
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
241
243
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
242
244
|
key: "addon",
|
|
243
245
|
fn: function () {
|
|
@@ -245,14 +247,14 @@ var __vue_render__ = function () {
|
|
|
245
247
|
},
|
|
246
248
|
proxy: true
|
|
247
249
|
} : null], null, true)
|
|
248
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]
|
|
250
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]], 2);
|
|
249
251
|
};
|
|
250
252
|
var __vue_staticRenderFns__ = [];
|
|
251
253
|
|
|
252
254
|
/* style */
|
|
253
255
|
const __vue_inject_styles__ = undefined;
|
|
254
256
|
/* scoped */
|
|
255
|
-
const __vue_scope_id__ = "data-v-
|
|
257
|
+
const __vue_scope_id__ = "data-v-03ea829d";
|
|
256
258
|
/* module identifier */
|
|
257
259
|
const __vue_module_identifier__ = undefined;
|
|
258
260
|
/* functional template */
|
|
@@ -3,10 +3,9 @@ import { O as OrError } from './OrError-52f668a4.js';
|
|
|
3
3
|
import { O as OrHint } from './OrHint-fde53334.js';
|
|
4
4
|
import { O as OrIcon } from './OrIcon-2efd1925.js';
|
|
5
5
|
import { O as OrIconButton } from './OrIconButton-deec1d4d.js';
|
|
6
|
-
import { O as OrInputBox } from './OrInputBox-
|
|
6
|
+
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-e54dcef9.js';
|
|
7
7
|
import { O as OrLabel } from './OrLabel-aff09c39.js';
|
|
8
|
-
import { O as OrLoader } from './OrLoader-
|
|
9
|
-
import { a as InputBoxSize } from './props-78496a2d.js';
|
|
8
|
+
import { O as OrLoader } from './OrLoader-6bec8824.js';
|
|
10
9
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
|
|
11
10
|
import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
|
|
12
11
|
import { u as useResponsive } from './useResponsive-e13dfbb0.js';
|
|
@@ -28,8 +27,8 @@ const InputRoot = [
|
|
|
28
27
|
// Spacing
|
|
29
28
|
'gap-xs'];
|
|
30
29
|
const InputControl = [
|
|
31
|
-
//
|
|
32
|
-
'
|
|
30
|
+
// Layout
|
|
31
|
+
'grow',
|
|
33
32
|
// Typography
|
|
34
33
|
'typography-inherit',
|
|
35
34
|
// Theme
|
|
@@ -76,7 +75,7 @@ var script = defineComponent({
|
|
|
76
75
|
default: undefined
|
|
77
76
|
},
|
|
78
77
|
error: {
|
|
79
|
-
type:
|
|
78
|
+
type: String,
|
|
80
79
|
default: undefined
|
|
81
80
|
},
|
|
82
81
|
loading: {
|
|
@@ -130,6 +129,7 @@ var script = defineComponent({
|
|
|
130
129
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
131
130
|
});
|
|
132
131
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
132
|
+
const invalid = computed(() => !!props.error);
|
|
133
133
|
const disclosed = ref(false);
|
|
134
134
|
const {
|
|
135
135
|
isMobile
|
|
@@ -152,6 +152,7 @@ var script = defineComponent({
|
|
|
152
152
|
proxyModelValue,
|
|
153
153
|
currentLength,
|
|
154
154
|
maxLength,
|
|
155
|
+
invalid,
|
|
155
156
|
disclosed,
|
|
156
157
|
isMobile,
|
|
157
158
|
focus,
|
|
@@ -160,7 +161,7 @@ var script = defineComponent({
|
|
|
160
161
|
}
|
|
161
162
|
});
|
|
162
163
|
|
|
163
|
-
var css_248z = "input[data-v-
|
|
164
|
+
var css_248z = "input[data-v-67c137e7]{min-width:0;background:0 0;outline:0}input[type=number][data-v-67c137e7]::-webkit-inner-spin-button{display:none}input[type=search][data-v-67c137e7]::-webkit-search-cancel-button{display:none}";
|
|
164
165
|
styleInject(css_248z);
|
|
165
166
|
|
|
166
167
|
/* script */
|
|
@@ -191,7 +192,7 @@ var __vue_render__ = function () {
|
|
|
191
192
|
attrs: {
|
|
192
193
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
193
194
|
"size": _vm.size,
|
|
194
|
-
"invalid":
|
|
195
|
+
"invalid": _vm.invalid,
|
|
195
196
|
"readonly": _vm.readonly || _vm.loading,
|
|
196
197
|
"disabled": _vm.disabled
|
|
197
198
|
}
|
|
@@ -362,7 +363,7 @@ var __vue_render__ = function () {
|
|
|
362
363
|
"icon": 'search',
|
|
363
364
|
"variant": 'outlined'
|
|
364
365
|
}
|
|
365
|
-
})]] : _vm._e()]], 2)]), _vm._v(" "), !_vm.
|
|
366
|
+
})]] : _vm._e()]], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
366
367
|
attrs: {
|
|
367
368
|
"disabled": _vm.disabled
|
|
368
369
|
},
|
|
@@ -373,7 +374,7 @@ var __vue_render__ = function () {
|
|
|
373
374
|
},
|
|
374
375
|
proxy: true
|
|
375
376
|
} : null], null, true)
|
|
376
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] :
|
|
377
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
377
378
|
attrs: {
|
|
378
379
|
"disabled": _vm.disabled
|
|
379
380
|
},
|
|
@@ -384,14 +385,14 @@ var __vue_render__ = function () {
|
|
|
384
385
|
},
|
|
385
386
|
proxy: true
|
|
386
387
|
} : null], null, true)
|
|
387
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]
|
|
388
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]], 2);
|
|
388
389
|
};
|
|
389
390
|
var __vue_staticRenderFns__ = [];
|
|
390
391
|
|
|
391
392
|
/* style */
|
|
392
393
|
const __vue_inject_styles__ = undefined;
|
|
393
394
|
/* scoped */
|
|
394
|
-
const __vue_scope_id__ = "data-v-
|
|
395
|
+
const __vue_scope_id__ = "data-v-67c137e7";
|
|
395
396
|
/* module identifier */
|
|
396
397
|
const __vue_module_identifier__ = undefined;
|
|
397
398
|
/* functional template */
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { I as InputBoxVariant, a as InputBoxSize } from './props-78496a2d.js';
|
|
3
2
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
4
|
|
|
5
|
+
var InputBoxVariant;
|
|
6
|
+
(function (InputBoxVariant) {
|
|
7
|
+
InputBoxVariant["Styled"] = "styled";
|
|
8
|
+
InputBoxVariant["Unstyled"] = "unstyled";
|
|
9
|
+
})(InputBoxVariant || (InputBoxVariant = {}));
|
|
10
|
+
var InputBoxSize;
|
|
11
|
+
(function (InputBoxSize) {
|
|
12
|
+
InputBoxSize["M"] = "m";
|
|
13
|
+
InputBoxSize["S"] = "s";
|
|
14
|
+
})(InputBoxSize || (InputBoxSize = {}));
|
|
15
|
+
|
|
6
16
|
const InputBoxRoot = [
|
|
7
17
|
// Layout
|
|
8
18
|
'layout-row',
|
|
@@ -124,4 +134,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
124
134
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
125
135
|
var OrInputBox = __vue_component__;
|
|
126
136
|
|
|
127
|
-
export { OrInputBox as O };
|
|
137
|
+
export { InputBoxVariant as I, OrInputBox as O, InputBoxSize as a };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
+
import { useElementSize } from '@vueuse/core';
|
|
2
3
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
5
|
|
|
@@ -70,6 +71,9 @@ var script = defineComponent({
|
|
|
70
71
|
setup(props) {
|
|
71
72
|
// Refs
|
|
72
73
|
const root = ref();
|
|
74
|
+
const {
|
|
75
|
+
width: loaderContainerWidth
|
|
76
|
+
} = useElementSize(root);
|
|
73
77
|
// Styles
|
|
74
78
|
const rootStyles = computed(() => ['or-loader', ...LoaderRoot, ...LoaderRootColors[props.color]]);
|
|
75
79
|
const titleStyles = computed(() => [...LoaderTitle]);
|
|
@@ -84,6 +88,9 @@ var script = defineComponent({
|
|
|
84
88
|
return 16;
|
|
85
89
|
}
|
|
86
90
|
});
|
|
91
|
+
const strokeWidth = computed(() => {
|
|
92
|
+
return loaderContainerWidth.value ? loaderContainerWidth.value - 2 : '100%';
|
|
93
|
+
});
|
|
87
94
|
/**
|
|
88
95
|
* Preserves circular loading indicator from shrinking caused by external styles.
|
|
89
96
|
*/
|
|
@@ -97,6 +104,7 @@ var script = defineComponent({
|
|
|
97
104
|
titleStyles,
|
|
98
105
|
descriptionStyles,
|
|
99
106
|
computedSize,
|
|
107
|
+
strokeWidth,
|
|
100
108
|
wrapperStyle
|
|
101
109
|
};
|
|
102
110
|
}
|
|
@@ -154,7 +162,7 @@ var __vue_render__ = function () {
|
|
|
154
162
|
attrs: {
|
|
155
163
|
"x1": "2",
|
|
156
164
|
"y1": "50%",
|
|
157
|
-
"x2":
|
|
165
|
+
"x2": _vm.strokeWidth,
|
|
158
166
|
"y2": "50%"
|
|
159
167
|
}
|
|
160
168
|
}), _vm._v(" "), _c('line', {
|
|
@@ -162,7 +170,7 @@ var __vue_render__ = function () {
|
|
|
162
170
|
attrs: {
|
|
163
171
|
"x1": "2",
|
|
164
172
|
"y1": "50%",
|
|
165
|
-
"x2":
|
|
173
|
+
"x2": _vm.strokeWidth,
|
|
166
174
|
"y2": "50%",
|
|
167
175
|
"stroke": _vm.color === 'inherit' ? 'currentColor' : 'inherit'
|
|
168
176
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrButton } from './OrButton-
|
|
2
|
+
import { O as OrButton } from './OrButton-0242b4c0.js';
|
|
3
3
|
import { O as OrIcon } from './OrIcon-2efd1925.js';
|
|
4
4
|
import { O as OrMenu } from './OrMenu-82c77b2c.js';
|
|
5
5
|
import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
|
|
@@ -180,6 +180,9 @@ var script = defineComponent({
|
|
|
180
180
|
isCircleType.value ? 14 * Math.PI :
|
|
181
181
|
// 14 = diameter = viewBox - stroke-width
|
|
182
182
|
0);
|
|
183
|
+
const strokeWidth = computed(() => {
|
|
184
|
+
return width.value ? width.value - 2 : '100%';
|
|
185
|
+
});
|
|
183
186
|
const strokeDashoffset = computed(() => props.loading ? undefined : (1 - localProgress.value) * strokeDasharray.value);
|
|
184
187
|
return {
|
|
185
188
|
root,
|
|
@@ -192,6 +195,7 @@ var script = defineComponent({
|
|
|
192
195
|
progressBarMainPartStyles,
|
|
193
196
|
strokeDasharray,
|
|
194
197
|
strokeDashoffset,
|
|
198
|
+
strokeWidth,
|
|
195
199
|
localProgress,
|
|
196
200
|
localValue,
|
|
197
201
|
percent,
|
|
@@ -244,7 +248,7 @@ var __vue_render__ = function () {
|
|
|
244
248
|
attrs: {
|
|
245
249
|
"x1": "2",
|
|
246
250
|
"y1": "50%",
|
|
247
|
-
"x2":
|
|
251
|
+
"x2": _vm.strokeWidth,
|
|
248
252
|
"y2": "50%"
|
|
249
253
|
}
|
|
250
254
|
}), _vm._v(" "), _c('line', {
|
|
@@ -252,7 +256,7 @@ var __vue_render__ = function () {
|
|
|
252
256
|
attrs: {
|
|
253
257
|
"x1": "2",
|
|
254
258
|
"y1": "50%",
|
|
255
|
-
"x2":
|
|
259
|
+
"x2": _vm.strokeWidth,
|
|
256
260
|
"y2": "50%",
|
|
257
261
|
"stroke-dasharray": _vm.strokeDasharray,
|
|
258
262
|
"stroke-dashoffset": _vm.strokeDashoffset
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import './index-fa6eb4ca.js';
|
|
3
|
-
import { O as OrInput } from './OrInput-
|
|
3
|
+
import { O as OrInput } from './OrInput-b8511a0c.js';
|
|
4
4
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
-
import { a as InputBoxSize } from './
|
|
5
|
+
import { a as InputBoxSize } from './OrInputBox-e54dcef9.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
7
|
|
|
8
8
|
var script = defineComponent({
|
|
@@ -4,8 +4,8 @@ import { O as OrError } from './OrError-52f668a4.js';
|
|
|
4
4
|
import { O as OrExpansionPanel } from './OrExpansionPanel-8968da49.js';
|
|
5
5
|
import { O as OrHint } from './OrHint-fde53334.js';
|
|
6
6
|
import { O as OrIcon } from './OrIcon-2efd1925.js';
|
|
7
|
-
import { O as OrInput } from './OrInput-
|
|
8
|
-
import { O as OrInputBox } from './OrInputBox-
|
|
7
|
+
import { O as OrInput } from './OrInput-b8511a0c.js';
|
|
8
|
+
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-e54dcef9.js';
|
|
9
9
|
import { O as OrLabel } from './OrLabel-aff09c39.js';
|
|
10
10
|
import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
|
|
11
11
|
import { O as OrPopover } from './OrPopover-597ad11f.js';
|
|
@@ -13,7 +13,6 @@ import { O as OrTag } from './OrTag-dee4c7e4.js';
|
|
|
13
13
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.js';
|
|
14
14
|
import { u as useOverflow } from './useOverflow-bae6342f.js';
|
|
15
15
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
16
|
-
import { a as InputBoxSize } from './props-78496a2d.js';
|
|
17
16
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
17
|
|
|
19
18
|
const SelectRoot = [
|
|
@@ -23,9 +22,7 @@ const SelectRoot = [
|
|
|
23
22
|
'gap-xs'];
|
|
24
23
|
const SelectControl = [
|
|
25
24
|
// Layout
|
|
26
|
-
'layout-row',
|
|
27
|
-
// Box
|
|
28
|
-
'w-full',
|
|
25
|
+
'layout-row grow',
|
|
29
26
|
// Overflow
|
|
30
27
|
'overflow-hidden',
|
|
31
28
|
// Spacing
|
|
@@ -115,7 +112,7 @@ var script = defineComponent({
|
|
|
115
112
|
default: undefined
|
|
116
113
|
},
|
|
117
114
|
error: {
|
|
118
|
-
type:
|
|
115
|
+
type: String,
|
|
119
116
|
default: undefined
|
|
120
117
|
},
|
|
121
118
|
required: {
|
|
@@ -192,6 +189,7 @@ var script = defineComponent({
|
|
|
192
189
|
proxyModelValue.value = [];
|
|
193
190
|
}
|
|
194
191
|
});
|
|
192
|
+
const invalid = computed(() => !!props.error);
|
|
195
193
|
const readonly = computed(() => context.attrs.readonly);
|
|
196
194
|
const selection = computed(() => {
|
|
197
195
|
const modelValue = proxyModelValue.value;
|
|
@@ -272,6 +270,7 @@ var script = defineComponent({
|
|
|
272
270
|
noSearchResultsStyles,
|
|
273
271
|
controlId,
|
|
274
272
|
proxyModelValue,
|
|
273
|
+
invalid,
|
|
275
274
|
readonly,
|
|
276
275
|
selection,
|
|
277
276
|
searchText,
|
|
@@ -329,7 +328,7 @@ var __vue_render__ = function () {
|
|
|
329
328
|
attrs: {
|
|
330
329
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
331
330
|
"size": _vm.size,
|
|
332
|
-
"invalid":
|
|
331
|
+
"invalid": _vm.invalid,
|
|
333
332
|
"readonly": _vm.readonly,
|
|
334
333
|
"disabled": _vm.disabled
|
|
335
334
|
}
|
|
@@ -493,15 +492,15 @@ var __vue_render__ = function () {
|
|
|
493
492
|
class: _vm.noSearchResultsStyles
|
|
494
493
|
}, [_vm._t("noSearchResultsTemplate", function () {
|
|
495
494
|
return [_vm._v("\n No results\n ")];
|
|
496
|
-
})], 2)]], 2)], 2), _vm._v(" "), !_vm.
|
|
495
|
+
})], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint ? [_c('OrHint', {
|
|
497
496
|
attrs: {
|
|
498
497
|
"disabled": _vm.disabled
|
|
499
498
|
}
|
|
500
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] :
|
|
499
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : [_c('OrError', {
|
|
501
500
|
attrs: {
|
|
502
501
|
"disabled": _vm.disabled
|
|
503
502
|
}
|
|
504
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])]
|
|
503
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])]], 2);
|
|
505
504
|
};
|
|
506
505
|
var __vue_staticRenderFns__ = [];
|
|
507
506
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
2
|
import { O as OrLabel, L as LabelVariant } from './OrLabel-aff09c39.js';
|
|
3
|
-
import { O as OrLoader } from './OrLoader-
|
|
3
|
+
import { O as OrLoader } from './OrLoader-6bec8824.js';
|
|
4
4
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
|
|
5
5
|
import { defineComponent, ref, computed, reactive } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
2
|
import { O as OrError } from './OrError-52f668a4.js';
|
|
3
3
|
import { O as OrHint } from './OrHint-fde53334.js';
|
|
4
|
-
import { O as OrInputBox } from './OrInputBox-
|
|
4
|
+
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-e54dcef9.js';
|
|
5
5
|
import { O as OrLabel } from './OrLabel-aff09c39.js';
|
|
6
6
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
|
|
7
7
|
import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
|
|
8
8
|
import { defineComponent, ref, computed, reactive } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
9
|
-
import { a as InputBoxSize } from './props-78496a2d.js';
|
|
10
9
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
11
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
12
11
|
|
|
@@ -16,8 +15,8 @@ const TextareaRoot = [
|
|
|
16
15
|
// Spacing
|
|
17
16
|
'gap-xs'];
|
|
18
17
|
const TextareaControl = [
|
|
19
|
-
//
|
|
20
|
-
'
|
|
18
|
+
// Layout
|
|
19
|
+
'grow',
|
|
21
20
|
// Typography
|
|
22
21
|
'typography-inherit',
|
|
23
22
|
// Theme
|
|
@@ -57,7 +56,7 @@ var script = defineComponent({
|
|
|
57
56
|
default: undefined
|
|
58
57
|
},
|
|
59
58
|
error: {
|
|
60
|
-
type:
|
|
59
|
+
type: String,
|
|
61
60
|
default: undefined
|
|
62
61
|
},
|
|
63
62
|
required: {
|
|
@@ -99,6 +98,7 @@ var script = defineComponent({
|
|
|
99
98
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
|
|
100
99
|
});
|
|
101
100
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
101
|
+
const invalid = computed(() => !!props.error);
|
|
102
102
|
// Methods
|
|
103
103
|
function focus() {
|
|
104
104
|
var _a;
|
|
@@ -117,13 +117,14 @@ var script = defineComponent({
|
|
|
117
117
|
proxyModelValue,
|
|
118
118
|
currentLength,
|
|
119
119
|
maxLength,
|
|
120
|
+
invalid,
|
|
120
121
|
focus,
|
|
121
122
|
blur
|
|
122
123
|
};
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
126
|
|
|
126
|
-
var css_248z = "textarea[data-v-
|
|
127
|
+
var css_248z = "textarea[data-v-41547036]{min-width:0;background:0 0;outline:0}";
|
|
127
128
|
styleInject(css_248z);
|
|
128
129
|
|
|
129
130
|
/* script */
|
|
@@ -153,7 +154,7 @@ var __vue_render__ = function () {
|
|
|
153
154
|
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
154
155
|
attrs: {
|
|
155
156
|
"size": _vm.size,
|
|
156
|
-
"invalid":
|
|
157
|
+
"invalid": _vm.invalid,
|
|
157
158
|
"readonly": _vm.readonly,
|
|
158
159
|
"disabled": _vm.disabled
|
|
159
160
|
}
|
|
@@ -195,7 +196,7 @@ var __vue_render__ = function () {
|
|
|
195
196
|
_vm.proxyModelValue = $event.target.value;
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
|
-
}, 'textarea', _vm.controlAttributes, false))]), _vm._v(" "), !_vm.
|
|
199
|
+
}, 'textarea', _vm.controlAttributes, false))]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
199
200
|
attrs: {
|
|
200
201
|
"disabled": _vm.disabled
|
|
201
202
|
},
|
|
@@ -206,7 +207,7 @@ var __vue_render__ = function () {
|
|
|
206
207
|
},
|
|
207
208
|
proxy: true
|
|
208
209
|
} : null], null, true)
|
|
209
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] :
|
|
210
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
210
211
|
attrs: {
|
|
211
212
|
"disabled": _vm.disabled
|
|
212
213
|
},
|
|
@@ -217,14 +218,14 @@ var __vue_render__ = function () {
|
|
|
217
218
|
},
|
|
218
219
|
proxy: true
|
|
219
220
|
} : null], null, true)
|
|
220
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]
|
|
221
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])]], 2);
|
|
221
222
|
};
|
|
222
223
|
var __vue_staticRenderFns__ = [];
|
|
223
224
|
|
|
224
225
|
/* style */
|
|
225
226
|
const __vue_inject_styles__ = undefined;
|
|
226
227
|
/* scoped */
|
|
227
|
-
const __vue_scope_id__ = "data-v-
|
|
228
|
+
const __vue_scope_id__ = "data-v-41547036";
|
|
228
229
|
/* module identifier */
|
|
229
230
|
const __vue_module_identifier__ = undefined;
|
|
230
231
|
/* functional template */
|