@onereach/ui-components 2.71.2-beta.2241.0 → 2.71.2
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-c1ccde63.js → OrCardCollection-091e2193.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-89428bbf.js → OrCardCollection-166cfcc6.js} +5 -5
- package/dist/bundled/v2/{OrConfirm-56d01cff.js → OrConfirm-55b89b17.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-cc8b767f.js → OrConfirm-bb2df177.js} +1 -1
- package/dist/bundled/v2/{OrInput-c539e47c.js → OrInput-5404a234.js} +6 -23
- package/dist/bundled/v2/{OrListOfInputs-8f076650.js → OrListOfInputs-ab7f9d97.js} +4 -4
- package/dist/bundled/v2/OrNumberInput-face8ccc.js +227 -0
- package/dist/bundled/v2/OrPassword-a818e7b5.js +227 -0
- package/dist/bundled/v2/{OrSearch-f7cfa52f.js → OrSearch-832d7978.js} +4 -4
- package/dist/bundled/v2/{OrSearch-d7326373.js → OrSearch-d1169241.js} +1 -1
- package/dist/bundled/v2/{OrSelect-8802f330.js → OrSelect-5634790b.js} +1 -1
- package/dist/bundled/v2/{OrPassword-7da938aa.js → OrTextarea-71ff236d.js} +7 -449
- package/dist/bundled/v2/components/index.d.ts +5 -1
- package/dist/bundled/v2/components/index.js +15 -13
- package/dist/bundled/v2/components/or-card-collection/index.js +4 -4
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm/index.js +2 -2
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-input/index.js +13 -0
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v2/components/or-input-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-list-of-inputs/index.js +2 -2
- package/dist/bundled/v2/components/or-number-input/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-number-input/index.js +14 -0
- package/dist/bundled/v2/components/or-password/index.d.ts +1 -0
- package/dist/bundled/v2/components/{or-inputs → or-password}/index.js +3 -4
- package/dist/bundled/v2/components/or-search/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-search/index.js +25 -0
- package/dist/bundled/v2/components/or-search-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-select-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-textarea/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-textarea/index.js +13 -0
- package/dist/bundled/v2/index.js +13 -11
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f9897e01.js → OrCardCollection.vue_vue_type_script_lang-60403ae6.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-d8124dda.js → OrCardCollection.vue_vue_type_script_lang-cd84f344.js} +4 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f16fc67.js → OrConfirm.vue_vue_type_script_lang-41b4d791.js} +2 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e9ba9909.js → OrConfirm.vue_vue_type_script_lang-9231d51e.js} +2 -2
- package/dist/bundled/v3/{OrInput-41f8351a.js → OrInput-2a7c6b57.js} +4 -13
- package/dist/bundled/v3/{OrInput-7d4b571a.js → OrInput-704e72ba.js} +5 -193
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-409235cc.js +190 -0
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-b88324b6.js → OrInput.vue_vue_type_script_lang-509de504.js} +1 -13
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js → OrListOfInputs.vue_vue_type_script_lang-6c5cf7a5.js} +2 -1
- package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-f061d829.js +113 -0
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-b75f6543.js +99 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-16fbccc0.js → OrSearch.vue_vue_type_script_lang-5356fa79.js} +2 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-56eb4e93.js → OrSearch.vue_vue_type_script_lang-ab2ef22c.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ee433d47.js → OrSelect.vue_vue_type_script_lang-54f683a2.js} +2 -2
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-69ea22e9.js +187 -0
- package/dist/bundled/v3/components/index.d.ts +5 -1
- package/dist/bundled/v3/components/index.js +17 -14
- package/dist/bundled/v3/components/or-card-collection/index.js +5 -4
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-confirm/index.js +3 -2
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-input/index.js +14 -0
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/bundled/v3/components/or-input-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-list-of-inputs/index.js +3 -2
- package/dist/bundled/v3/components/or-number-input/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-number-input/index.js +16 -0
- package/dist/bundled/v3/components/or-password/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-password/index.js +31 -0
- package/dist/bundled/v3/components/or-search/index.d.ts +1 -0
- package/dist/bundled/v3/components/{or-inputs → or-search}/index.js +4 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +3 -5
- package/dist/bundled/v3/components/or-textarea/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-textarea/index.js +14 -0
- package/dist/bundled/v3/index.js +664 -659
- package/dist/esm/v2/{OrCardCollection-f6b07557.js → OrCardCollection-19582949.js} +6 -7
- package/dist/esm/v2/{OrCardCollection-ff1e9819.js → OrCardCollection-bbdb6159.js} +1 -1
- package/dist/esm/v2/{OrConfirm-ec81498e.js → OrConfirm-cfaf4266.js} +1 -1
- package/dist/esm/v2/{OrConfirm-d7112dd3.js → OrConfirm-ede619eb.js} +4 -4
- package/dist/esm/v2/{OrSearch.vue_rollup-plugin-vue_script-197d77fc.js → OrInput-6e6cfd11.js} +4 -492
- package/dist/esm/v2/{OrInput-b029d058.js → OrInput-e8fe9102.js} +6 -23
- package/dist/esm/v2/{OrListOfInputs-50aa1ef1.js → OrListOfInputs-4298fa2c.js} +5 -5
- package/dist/esm/v2/OrNumberInput-b20d75d2.js +225 -0
- package/dist/esm/v2/OrPassword-e6d5e968.js +225 -0
- package/dist/esm/v2/{OrSearch-1c934f72.js → OrSearch-4b774707.js} +1 -1
- package/dist/esm/v2/{OrSearch-0589d17d.js → OrSearch-b4f4d59b.js} +122 -5
- package/dist/esm/v2/{OrSelect-cfcb233a.js → OrSelect-d7016575.js} +1 -1
- package/dist/esm/v2/{OrPassword-1fa97156.js → OrTextarea-91a95068.js} +187 -245
- package/dist/esm/v2/components/index.d.ts +5 -1
- package/dist/esm/v2/components/index.js +15 -13
- package/dist/esm/v2/components/or-card-collection/index.js +3 -4
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm/index.js +2 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-input/index.d.ts +1 -0
- package/dist/esm/v2/components/or-input/index.js +11 -0
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v2/components/or-input-v3/index.js +2 -3
- package/dist/esm/v2/components/or-list-of-inputs/index.js +2 -4
- package/dist/esm/v2/components/or-number-input/index.d.ts +1 -0
- package/dist/esm/v2/components/or-number-input/index.js +12 -0
- package/dist/esm/v2/components/or-password/index.d.ts +1 -0
- package/dist/esm/v2/components/{or-inputs → or-password}/index.js +5 -6
- package/dist/esm/v2/components/or-search/index.d.ts +1 -0
- package/dist/esm/v2/components/or-search/index.js +23 -0
- package/dist/esm/v2/components/or-search-v3/index.js +3 -4
- package/dist/esm/v2/components/or-select-v3/index.js +3 -4
- package/dist/esm/v2/components/or-textarea/index.d.ts +1 -0
- package/dist/esm/v2/components/or-textarea/index.js +11 -0
- package/dist/esm/v2/index.js +13 -11
- package/dist/esm/v3/{OrCardCollection-a5e326ef.js → OrCardCollection-1e44c758.js} +2 -2
- package/dist/esm/v3/{OrCardCollection-5ecdcbaf.js → OrCardCollection-47f61c40.js} +1 -1
- package/dist/esm/v3/{OrConfirm-f39bd784.js → OrConfirm-c11ee2ec.js} +1 -1
- package/dist/esm/v3/{OrConfirm-beeb74d6.js → OrConfirm-e7cbf54c.js} +1 -1
- package/dist/esm/v3/{OrInput-8a4573cd.js → OrInput-6fb81556.js} +4 -24
- package/dist/esm/v3/OrInput-81125804.js +295 -0
- package/dist/esm/v3/{OrListOfInputs-7a67440f.js → OrListOfInputs-508e056f.js} +1 -1
- package/dist/esm/v3/OrNumberInput-b32b5ce3.js +170 -0
- package/dist/esm/v3/OrPassword-b0cbb578.js +162 -0
- package/dist/esm/v3/OrSearch-11fdf667.js +188 -0
- package/dist/esm/v3/{OrSearch-10d09806.js → OrSearch-e15955a7.js} +1 -1
- package/dist/esm/v3/{OrSelect-1e4c6062.js → OrSelect-027b5e8f.js} +1 -1
- package/dist/esm/v3/OrTextarea-1f5c3be1.js +290 -0
- package/dist/esm/v3/components/index.d.ts +5 -1
- package/dist/esm/v3/components/index.js +15 -11
- package/dist/esm/v3/components/or-card-collection/index.js +3 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm/index.js +2 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-input/index.d.ts +1 -0
- package/dist/esm/v3/components/or-input/index.js +11 -0
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -13
- package/dist/esm/v3/components/or-input-v3/index.js +2 -3
- package/dist/esm/v3/components/or-list-of-inputs/index.js +2 -4
- package/dist/esm/v3/components/or-number-input/index.d.ts +1 -0
- package/dist/esm/v3/components/or-number-input/index.js +12 -0
- package/dist/esm/v3/components/or-password/index.d.ts +1 -0
- package/dist/esm/v3/components/{or-inputs → or-password}/index.js +3 -2
- package/dist/esm/v3/components/or-search/index.d.ts +1 -0
- package/dist/esm/v3/components/or-search/index.js +20 -0
- package/dist/esm/v3/components/or-search-v3/index.js +3 -4
- package/dist/esm/v3/components/or-select-v3/index.js +3 -4
- package/dist/esm/v3/components/or-textarea/index.d.ts +1 -0
- package/dist/esm/v3/components/or-textarea/index.js +11 -0
- package/dist/esm/v3/index.js +13 -9
- package/package.json +3 -2
- package/src/components/index.ts +5 -1
- package/src/components/or-card-collection/OrCardCollection.vue +8 -8
- package/src/components/or-confirm/OrConfirm.vue +1 -1
- package/src/components/or-input/index.ts +1 -0
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
- package/src/components/or-input-v3/OrInput.vue +17 -37
- package/src/components/or-list/OrList.stories.ts +1 -1
- package/src/components/or-list-of-inputs/OrListOfInputs.vue +1 -1
- package/src/components/or-modal/OrModal.stories.ts +1 -1
- package/src/components/{or-inputs → or-number-input}/OrNumberInput.vue +1 -1
- package/src/components/or-number-input/index.ts +1 -0
- package/src/components/{or-inputs → or-password}/OrPassword.vue +1 -1
- package/src/components/or-password/index.ts +1 -0
- package/src/components/{or-inputs → or-search}/OrSearch.vue +1 -1
- package/src/components/or-search/index.ts +1 -0
- package/src/components/{or-inputs → or-textarea}/OrTextarea.vue +225 -6
- package/src/components/or-textarea/index.ts +1 -0
- package/dist/bundled/v2/components/or-inputs/index.d.ts +0 -5
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-13bc5b00.js +0 -390
- package/dist/bundled/v3/components/or-inputs/index.d.ts +0 -5
- package/dist/esm/v2/components/or-inputs/index.d.ts +0 -5
- package/dist/esm/v3/OrSearch-7cb2c91c.js +0 -1075
- package/dist/esm/v3/components/or-inputs/index.d.ts +0 -5
- package/src/components/or-inputs/index.ts +0 -5
- /package/dist/bundled/v2/{OrInput-08f2f666.js → OrInput-df1a14fa.js} +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/src/components/{or-inputs → or-input}/OrInput.stories.ts +0 -0
- /package/src/components/{or-inputs → or-input}/OrInput.vue +0 -0
- /package/src/components/{or-inputs → or-input}/or-textbox-migration.stories.mdx +0 -0
- /package/src/components/{or-inputs → or-input}/styles.scss +0 -0
- /package/src/components/{or-inputs → or-number-input}/OrNumberInput.stories.ts +0 -0
- /package/src/components/{or-inputs → or-password}/OrPassword.stories.ts +0 -0
- /package/src/components/{or-inputs → or-search}/OrSearch.stories.ts +0 -0
- /package/src/components/{or-inputs → or-textarea}/OrTextarea.stories.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref } from 'vue-demi';
|
|
2
2
|
import { _ as __vue_component__$1 } from './OrCard-b7268256.js';
|
|
3
3
|
import { _ as __vue_component__$2 } from './OrIcon-819166f6.js';
|
|
4
|
-
import './OrSearch
|
|
5
|
-
import { c as createInjector } from './browser-82dea9ed.js';
|
|
6
|
-
import { _ as __vue_component__$3 } from './OrSearch-0589d17d.js';
|
|
4
|
+
import { _ as __vue_component__$3 } from './OrSearch-b4f4d59b.js';
|
|
7
5
|
import './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
|
|
6
|
+
import { c as createInjector } from './browser-82dea9ed.js';
|
|
8
7
|
import { _ as __vue_component__$4 } from './OrIconButton-014e86a7.js';
|
|
9
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
10
9
|
|
|
@@ -198,18 +197,18 @@ var __vue_staticRenderFns__ = [];
|
|
|
198
197
|
/* style */
|
|
199
198
|
const __vue_inject_styles__ = function (inject) {
|
|
200
199
|
if (!inject) return;
|
|
201
|
-
inject("data-v-
|
|
202
|
-
source: "@keyframes spinAround-data-v-
|
|
200
|
+
inject("data-v-06085c59_0", {
|
|
201
|
+
source: "@keyframes spinAround-data-v-06085c59{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-06085c59{from{opacity:1}to{opacity:0}}.or-card-collection .or-card-collection-toolbar[data-v-06085c59]{display:flex;column-gap:var(--s-4);align-items:center;justify-content:space-between;margin:0 var(--s-4)}.or-card-collection .or-card-collection-toolbar .or-card-collection-sorting[data-v-06085c59]{flex-grow:1;cursor:pointer}.or-card-collection .or-card-collection-toolbar .or-card-collection-sorting .or-card-collection-sorting-column[data-v-06085c59]{display:inline-flex;margin:var(--s-2) var(--s-6);font-size:var(--fs-0);font-weight:var(--fw-0);line-height:var(--lh-0);color:var(--c-neutral-4);text-transform:capitalize;letter-spacing:0;user-select:none}.or-card-collection .or-card-collection-toolbar .or-card-collection-sorting .or-card-collection-sorting-column.sorting-selected[data-v-06085c59]{font-weight:700;color:var(--c-neutral-6)}.or-card-collection .or-card-collection-toolbar .or-card-collection-sorting .or-card-collection-sorting-column.sorting-selected .or-card-collection-sort-direction[data-v-06085c59]{width:14px;height:14px;margin-left:var(--s-1)}.or-card-collection .or-card-collection-toolbar .or-card-collection-layout-buttons .or-icon-button[data-v-06085c59]{border-radius:0}.or-card-collection .or-card-collection-wrapper[data-v-06085c59]{display:flex;margin-top:var(--s-5)}.or-card-collection.or-card-collection-grid .or-card-collection-wrapper[data-v-06085c59]{flex-flow:row wrap}.or-card-collection.or-card-collection-grid .or-card-collection-wrapper .or-card[data-v-06085c59]{margin-right:auto}.or-card-collection.or-card-collection-list .or-card-collection-wrapper[data-v-06085c59]{flex-direction:column}",
|
|
203
202
|
map: undefined,
|
|
204
203
|
media: undefined
|
|
205
|
-
}), inject("data-v-
|
|
204
|
+
}), inject("data-v-06085c59_1", {
|
|
206
205
|
source: ".or-card-collection-filter .or-textbox .or-textbox--input{max-width:256px;height:30px}.or-card-collection-sort-direction .or-icon{font-size:1rem}",
|
|
207
206
|
map: undefined,
|
|
208
207
|
media: undefined
|
|
209
208
|
});
|
|
210
209
|
};
|
|
211
210
|
/* scoped */
|
|
212
|
-
const __vue_scope_id__ = "data-v-
|
|
211
|
+
const __vue_scope_id__ = "data-v-06085c59";
|
|
213
212
|
/* module identifier */
|
|
214
213
|
const __vue_module_identifier__ = undefined;
|
|
215
214
|
/* functional template */
|
|
@@ -5,7 +5,7 @@ import { _ as __vue_component__$6 } from './OrIcon-f34e0e6f.js';
|
|
|
5
5
|
import { _ as __vue_component__$5 } from './OrMenuItem-7b7fbf8a.js';
|
|
6
6
|
import { _ as __vue_component__$4 } from './OrMenu-c276db74.js';
|
|
7
7
|
import './OrPopover-d5d4f62a.js';
|
|
8
|
-
import { _ as __vue_component__$7 } from './OrSearch-
|
|
8
|
+
import { _ as __vue_component__$7 } from './OrSearch-4b774707.js';
|
|
9
9
|
import './OrInputBox-9ceb9fc4.js';
|
|
10
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@ import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
|
2
2
|
import { logicAnd } from '@vueuse/math';
|
|
3
3
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
4
4
|
import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-66964360.js';
|
|
5
|
-
import { _ as __vue_component__$3 } from './OrInput-
|
|
5
|
+
import { _ as __vue_component__$3 } from './OrInput-e8fe9102.js';
|
|
6
6
|
import { _ as __vue_component__$1 } from './OrOverlay-a019186f.js';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { _ as __vue_component__$1 } from './OrButton-c4f9955b.js';
|
|
|
3
3
|
import { a as BUTTON_COLOR } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
|
|
4
4
|
import { c as createInjector } from './browser-82dea9ed.js';
|
|
5
5
|
import { _ as __vue_component__$2, O as OrModalSizes } from './OrModal-97e83549.js';
|
|
6
|
-
import { _ as __vue_component__$3 } from './
|
|
6
|
+
import { _ as __vue_component__$3 } from './OrInput-6e6cfd11.js';
|
|
7
7
|
import { useMagicKeys, useActiveElement, whenever } from '@vueuse/core';
|
|
8
8
|
import { logicAnd } from '@vueuse/math';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -237,14 +237,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
237
237
|
/* style */
|
|
238
238
|
const __vue_inject_styles__ = function (inject) {
|
|
239
239
|
if (!inject) return;
|
|
240
|
-
inject("data-v-
|
|
241
|
-
source: "@keyframes spinAround-data-v-
|
|
240
|
+
inject("data-v-8712b442_0", {
|
|
241
|
+
source: "@keyframes spinAround-data-v-8712b442{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-8712b442{from{opacity:1}to{opacity:0}}.or-confirm-footer[data-v-8712b442]{display:flex;flex-direction:row;gap:var(--s-4);justify-content:end}.confirmation-textbox[data-v-8712b442]{margin-top:var(--s-3)}.or-modal[data-v-8712b442] .header{padding-bottom:var(--s-4)!important}.or-modal[data-v-8712b442] .content{padding-bottom:0!important;font-size:var(--fs-1);font-weight:400;line-height:var(--lh-1)}.or-modal[data-v-8712b442] .footer{box-shadow:none!important}",
|
|
242
242
|
map: undefined,
|
|
243
243
|
media: undefined
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
246
|
/* scoped */
|
|
247
|
-
const __vue_scope_id__ = "data-v-
|
|
247
|
+
const __vue_scope_id__ = "data-v-8712b442";
|
|
248
248
|
/* module identifier */
|
|
249
249
|
const __vue_module_identifier__ = undefined;
|
|
250
250
|
/* functional template */
|
package/dist/esm/v2/{OrSearch.vue_rollup-plugin-vue_script-197d77fc.js → OrInput-6e6cfd11.js}
RENAMED
|
@@ -5,188 +5,10 @@ import { _ as __vue_component__$1 } from './OrLabel-33b41516.js';
|
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrHint-c45f1e09.js';
|
|
6
6
|
import { _ as __vue_component__$3 } from './OrError-081130bb.js';
|
|
7
7
|
import { _ as __vue_component__$4 } from './OrCollapse-4d892ca3.js';
|
|
8
|
-
import { useVModel, debouncedWatch } from '@vueuse/core';
|
|
9
|
-
import { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
10
|
-
import { b as BUTTON_SIZE } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
|
|
11
|
-
import { c as createInjector } from './browser-82dea9ed.js';
|
|
12
|
-
import { _ as __vue_component__$5 } from './OrIconButton-014e86a7.js';
|
|
13
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
|
+
import { c as createInjector } from './browser-82dea9ed.js';
|
|
14
10
|
|
|
15
|
-
var script
|
|
16
|
-
name: 'OrTextarea',
|
|
17
|
-
components: {
|
|
18
|
-
OrLabel: __vue_component__$1,
|
|
19
|
-
OrHint: __vue_component__$2,
|
|
20
|
-
OrError: __vue_component__$3,
|
|
21
|
-
OrCollapse: __vue_component__$4
|
|
22
|
-
},
|
|
23
|
-
model: {
|
|
24
|
-
prop: 'modelValue',
|
|
25
|
-
event: 'update:modelValue'
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: '',
|
|
31
|
-
required: false
|
|
32
|
-
},
|
|
33
|
-
htmlId: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: '',
|
|
36
|
-
required: false
|
|
37
|
-
},
|
|
38
|
-
placeholder: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: '',
|
|
41
|
-
required: false
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: '',
|
|
46
|
-
required: false
|
|
47
|
-
},
|
|
48
|
-
error: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: '',
|
|
51
|
-
required: false
|
|
52
|
-
},
|
|
53
|
-
hint: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: '',
|
|
56
|
-
required: false
|
|
57
|
-
},
|
|
58
|
-
maxLength: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: undefined,
|
|
61
|
-
required: false
|
|
62
|
-
},
|
|
63
|
-
isSmall: Boolean,
|
|
64
|
-
isRequired: Boolean,
|
|
65
|
-
isDisabled: Boolean,
|
|
66
|
-
isReadonly: Boolean,
|
|
67
|
-
isInvalid: Boolean
|
|
68
|
-
},
|
|
69
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
|
|
70
|
-
setup() {
|
|
71
|
-
const inputRef = ref();
|
|
72
|
-
return {
|
|
73
|
-
inputRef
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
data() {
|
|
77
|
-
return {
|
|
78
|
-
reqAF: null,
|
|
79
|
-
isFocused: false
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
localValue() {
|
|
84
|
-
if (this.maxLength && this.modelValue.length > this.maxLength) {
|
|
85
|
-
return this.modelValue.slice(0, -(this.modelValue.length - this.maxLength));
|
|
86
|
-
}
|
|
87
|
-
return this.modelValue;
|
|
88
|
-
},
|
|
89
|
-
localId() {
|
|
90
|
-
var _a;
|
|
91
|
-
return this.htmlId || `input-${(_a = getCurrentInstance()) === null || _a === void 0 ? void 0 : _a.uid}`;
|
|
92
|
-
},
|
|
93
|
-
hasValue() {
|
|
94
|
-
return !!this.localValue.length;
|
|
95
|
-
},
|
|
96
|
-
counterString() {
|
|
97
|
-
return this.maxLength && this.maxLength > 0 ? `${this.localValue.length} / ${this.maxLength}` : '';
|
|
98
|
-
},
|
|
99
|
-
isInactive() {
|
|
100
|
-
return this.isDisabled || this.isReadonly;
|
|
101
|
-
},
|
|
102
|
-
isShowError() {
|
|
103
|
-
return !!this.error && this.isInvalid;
|
|
104
|
-
},
|
|
105
|
-
isShowHint() {
|
|
106
|
-
return !!this.hint && !this.isShowError;
|
|
107
|
-
},
|
|
108
|
-
isShowInfo() {
|
|
109
|
-
return this.isShowError || this.isShowHint || !!this.maxLength;
|
|
110
|
-
},
|
|
111
|
-
rootClasses() {
|
|
112
|
-
return ['or-textbox', {
|
|
113
|
-
'is-show-info': this.isShowInfo,
|
|
114
|
-
'is-small': this.isSmall,
|
|
115
|
-
'has-counter': !!this.maxLength,
|
|
116
|
-
'has-label': !!this.label || !!this.$slots['label-default']
|
|
117
|
-
}];
|
|
118
|
-
},
|
|
119
|
-
inputClasses() {
|
|
120
|
-
return ['or-textbox--input-textarea', {
|
|
121
|
-
'is-disabled': this.isDisabled,
|
|
122
|
-
'is-readonly': this.isReadonly,
|
|
123
|
-
'is-focused': this.isFocused,
|
|
124
|
-
'is-required': this.isRequired,
|
|
125
|
-
'has-error': this.isInvalid
|
|
126
|
-
}];
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
methods: {
|
|
130
|
-
focus() {
|
|
131
|
-
var _a;
|
|
132
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
133
|
-
},
|
|
134
|
-
calcTextareaHeight() {
|
|
135
|
-
var _a;
|
|
136
|
-
if (this.inputRef) {
|
|
137
|
-
setStyle(this.inputRef, 'height', 0);
|
|
138
|
-
setStyle(this.inputRef, 'height', pxToRem((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.scrollHeight));
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
onInput(event) {
|
|
142
|
-
if (this.isInactive) return;
|
|
143
|
-
this.calcTextareaHeight();
|
|
144
|
-
this.$emit('update:modelValue', event.target.value);
|
|
145
|
-
this.$emit('input', event.target.value);
|
|
146
|
-
},
|
|
147
|
-
onFocus(event) {
|
|
148
|
-
var _a;
|
|
149
|
-
this.isFocused = true;
|
|
150
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
151
|
-
this.$emit('focus', event);
|
|
152
|
-
},
|
|
153
|
-
onBlur(event) {
|
|
154
|
-
var _a;
|
|
155
|
-
this.isFocused = false;
|
|
156
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
|
|
157
|
-
this.$emit('blur', event);
|
|
158
|
-
},
|
|
159
|
-
beforeEnter(el) {
|
|
160
|
-
setStyle(el, 'opacity', 0);
|
|
161
|
-
},
|
|
162
|
-
enter(el) {
|
|
163
|
-
const {
|
|
164
|
-
scrollHeight,
|
|
165
|
-
parentElement
|
|
166
|
-
} = el;
|
|
167
|
-
this.reqAF = requestAF(() => {
|
|
168
|
-
const pt = parseFloat(getCS(parentElement).paddingTop);
|
|
169
|
-
const pb = parseFloat(getCS(parentElement).paddingBottom);
|
|
170
|
-
const height = scrollHeight + pt + pb;
|
|
171
|
-
if (parentElement) {
|
|
172
|
-
reflow(parentElement);
|
|
173
|
-
setStyle(parentElement, 'height', pxToRem(height));
|
|
174
|
-
}
|
|
175
|
-
setStyle(el, 'opacity', 1);
|
|
176
|
-
});
|
|
177
|
-
},
|
|
178
|
-
leave(el) {
|
|
179
|
-
this.reqAF = requestAF(() => {
|
|
180
|
-
el.style.opacity = '0';
|
|
181
|
-
});
|
|
182
|
-
},
|
|
183
|
-
cancelRequestAF() {
|
|
184
|
-
cancelAF(this.reqAF);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
var script$3 = defineComponent({
|
|
11
|
+
var script = defineComponent({
|
|
190
12
|
name: 'OrInput',
|
|
191
13
|
components: {
|
|
192
14
|
OrLabel: __vue_component__$1,
|
|
@@ -364,7 +186,7 @@ var script$3 = defineComponent({
|
|
|
364
186
|
});
|
|
365
187
|
|
|
366
188
|
/* script */
|
|
367
|
-
const __vue_script__ = script
|
|
189
|
+
const __vue_script__ = script;
|
|
368
190
|
|
|
369
191
|
/* template */
|
|
370
192
|
var __vue_render__ = function () {
|
|
@@ -507,314 +329,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
507
329
|
staticRenderFns: __vue_staticRenderFns__
|
|
508
330
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
|
|
509
331
|
|
|
510
|
-
|
|
511
|
-
name: 'OrNumberInput',
|
|
512
|
-
components: {
|
|
513
|
-
OrInput: __vue_component__
|
|
514
|
-
},
|
|
515
|
-
model: {
|
|
516
|
-
prop: 'modelValue',
|
|
517
|
-
event: 'update:modelValue'
|
|
518
|
-
},
|
|
519
|
-
props: {
|
|
520
|
-
modelValue: {
|
|
521
|
-
type: Number,
|
|
522
|
-
default: undefined,
|
|
523
|
-
required: false
|
|
524
|
-
},
|
|
525
|
-
htmlId: {
|
|
526
|
-
type: String,
|
|
527
|
-
default: '',
|
|
528
|
-
required: false
|
|
529
|
-
},
|
|
530
|
-
placeholder: {
|
|
531
|
-
type: String,
|
|
532
|
-
default: '',
|
|
533
|
-
required: false
|
|
534
|
-
},
|
|
535
|
-
label: {
|
|
536
|
-
type: String,
|
|
537
|
-
default: '',
|
|
538
|
-
required: false
|
|
539
|
-
},
|
|
540
|
-
error: {
|
|
541
|
-
type: String,
|
|
542
|
-
default: '',
|
|
543
|
-
required: false
|
|
544
|
-
},
|
|
545
|
-
hint: {
|
|
546
|
-
type: String,
|
|
547
|
-
default: '',
|
|
548
|
-
required: false
|
|
549
|
-
},
|
|
550
|
-
minValue: {
|
|
551
|
-
type: Number,
|
|
552
|
-
default: undefined,
|
|
553
|
-
required: false
|
|
554
|
-
},
|
|
555
|
-
maxValue: {
|
|
556
|
-
type: Number,
|
|
557
|
-
default: undefined,
|
|
558
|
-
required: false
|
|
559
|
-
},
|
|
560
|
-
stepValue: {
|
|
561
|
-
type: Number,
|
|
562
|
-
default: undefined,
|
|
563
|
-
required: false
|
|
564
|
-
},
|
|
565
|
-
isSmall: Boolean,
|
|
566
|
-
isRequired: Boolean,
|
|
567
|
-
isDisabled: Boolean,
|
|
568
|
-
isReadonly: Boolean,
|
|
569
|
-
isInvalid: Boolean
|
|
570
|
-
},
|
|
571
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
|
|
572
|
-
setup(props, {
|
|
573
|
-
emit
|
|
574
|
-
}) {
|
|
575
|
-
const inputRef = ref();
|
|
576
|
-
if (props.modelValue) {
|
|
577
|
-
if (props.minValue !== undefined && props.modelValue < props.minValue) {
|
|
578
|
-
emit('update:modelValue', props.minValue);
|
|
579
|
-
} else if (props.maxValue !== undefined && props.modelValue > props.maxValue) {
|
|
580
|
-
emit('update:modelValue', props.maxValue);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return {
|
|
584
|
-
inputRef
|
|
585
|
-
};
|
|
586
|
-
},
|
|
587
|
-
computed: {
|
|
588
|
-
htmlInputAttrs() {
|
|
589
|
-
return {
|
|
590
|
-
min: this.minValue,
|
|
591
|
-
max: this.maxValue,
|
|
592
|
-
step: this.stepValue
|
|
593
|
-
};
|
|
594
|
-
},
|
|
595
|
-
localValue: {
|
|
596
|
-
get() {
|
|
597
|
-
var _a;
|
|
598
|
-
return ((_a = this.modelValue) !== null && _a !== void 0 ? _a : '') + '';
|
|
599
|
-
},
|
|
600
|
-
set(val) {
|
|
601
|
-
if (val === undefined || val === '') {
|
|
602
|
-
this.$emit('update:modelValue', undefined);
|
|
603
|
-
return;
|
|
604
|
-
}
|
|
605
|
-
const numVal = +val;
|
|
606
|
-
if (this.minValue !== undefined && numVal < this.minValue) {
|
|
607
|
-
this.$emit('update:modelValue', this.minValue);
|
|
608
|
-
} else if (this.maxValue !== undefined && numVal > this.maxValue) {
|
|
609
|
-
this.$emit('update:modelValue', this.maxValue);
|
|
610
|
-
} else {
|
|
611
|
-
this.$emit('update:modelValue', numVal);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
var script$1 = defineComponent({
|
|
619
|
-
name: 'OrPassword',
|
|
620
|
-
components: {
|
|
621
|
-
OrInput: __vue_component__,
|
|
622
|
-
OrIconButton: __vue_component__$5
|
|
623
|
-
},
|
|
624
|
-
model: {
|
|
625
|
-
prop: 'modelValue',
|
|
626
|
-
event: 'update:modelValue'
|
|
627
|
-
},
|
|
628
|
-
props: {
|
|
629
|
-
modelValue: {
|
|
630
|
-
type: String,
|
|
631
|
-
default: '',
|
|
632
|
-
required: false
|
|
633
|
-
},
|
|
634
|
-
htmlId: {
|
|
635
|
-
type: String,
|
|
636
|
-
default: '',
|
|
637
|
-
required: false
|
|
638
|
-
},
|
|
639
|
-
placeholder: {
|
|
640
|
-
type: String,
|
|
641
|
-
default: '',
|
|
642
|
-
required: false
|
|
643
|
-
},
|
|
644
|
-
label: {
|
|
645
|
-
type: String,
|
|
646
|
-
default: '',
|
|
647
|
-
required: false
|
|
648
|
-
},
|
|
649
|
-
error: {
|
|
650
|
-
type: String,
|
|
651
|
-
default: '',
|
|
652
|
-
required: false
|
|
653
|
-
},
|
|
654
|
-
hint: {
|
|
655
|
-
type: String,
|
|
656
|
-
default: '',
|
|
657
|
-
required: false
|
|
658
|
-
},
|
|
659
|
-
maxLength: {
|
|
660
|
-
type: Number,
|
|
661
|
-
default: undefined,
|
|
662
|
-
required: false
|
|
663
|
-
},
|
|
664
|
-
isSmall: Boolean,
|
|
665
|
-
isRequired: Boolean,
|
|
666
|
-
isDisabled: Boolean,
|
|
667
|
-
isReadonly: Boolean,
|
|
668
|
-
isInvalid: Boolean
|
|
669
|
-
},
|
|
670
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
|
|
671
|
-
setup(props, {
|
|
672
|
-
emit
|
|
673
|
-
}) {
|
|
674
|
-
const inputRef = ref();
|
|
675
|
-
const localValue = useVModel(props, 'modelValue', emit);
|
|
676
|
-
const {
|
|
677
|
-
isActiveToggle,
|
|
678
|
-
toggle
|
|
679
|
-
} = useToggle();
|
|
680
|
-
return {
|
|
681
|
-
inputRef,
|
|
682
|
-
localValue,
|
|
683
|
-
isActiveToggle,
|
|
684
|
-
toggle
|
|
685
|
-
};
|
|
686
|
-
},
|
|
687
|
-
computed: {
|
|
688
|
-
currentButtonIcon() {
|
|
689
|
-
return this.isActiveToggle ? 'visibility' : 'visibility_off';
|
|
690
|
-
},
|
|
691
|
-
type() {
|
|
692
|
-
return this.isActiveToggle ? 'text' : 'password';
|
|
693
|
-
},
|
|
694
|
-
size() {
|
|
695
|
-
return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
methods: {
|
|
699
|
-
onClick() {
|
|
700
|
-
var _a;
|
|
701
|
-
this.toggle();
|
|
702
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
var script = defineComponent({
|
|
708
|
-
name: 'OrSearch',
|
|
709
|
-
components: {
|
|
710
|
-
OrInput: __vue_component__,
|
|
711
|
-
OrIconButton: __vue_component__$5
|
|
712
|
-
},
|
|
713
|
-
model: {
|
|
714
|
-
prop: 'modelValue',
|
|
715
|
-
event: 'update:modelValue'
|
|
716
|
-
},
|
|
717
|
-
props: {
|
|
718
|
-
modelValue: {
|
|
719
|
-
type: String,
|
|
720
|
-
default: '',
|
|
721
|
-
required: false
|
|
722
|
-
},
|
|
723
|
-
htmlId: {
|
|
724
|
-
type: String,
|
|
725
|
-
default: '',
|
|
726
|
-
required: false
|
|
727
|
-
},
|
|
728
|
-
placeholder: {
|
|
729
|
-
type: String,
|
|
730
|
-
default: '',
|
|
731
|
-
required: false
|
|
732
|
-
},
|
|
733
|
-
label: {
|
|
734
|
-
type: String,
|
|
735
|
-
default: '',
|
|
736
|
-
required: false
|
|
737
|
-
},
|
|
738
|
-
error: {
|
|
739
|
-
type: String,
|
|
740
|
-
default: '',
|
|
741
|
-
required: false
|
|
742
|
-
},
|
|
743
|
-
hint: {
|
|
744
|
-
type: String,
|
|
745
|
-
default: '',
|
|
746
|
-
required: false
|
|
747
|
-
},
|
|
748
|
-
debounce: {
|
|
749
|
-
type: Number,
|
|
750
|
-
default: 500,
|
|
751
|
-
required: false
|
|
752
|
-
},
|
|
753
|
-
isUsingTrim: {
|
|
754
|
-
type: Boolean,
|
|
755
|
-
default: true,
|
|
756
|
-
required: false
|
|
757
|
-
},
|
|
758
|
-
maxLength: {
|
|
759
|
-
type: Number,
|
|
760
|
-
default: undefined,
|
|
761
|
-
required: false
|
|
762
|
-
},
|
|
763
|
-
isSmall: Boolean,
|
|
764
|
-
isRequired: Boolean,
|
|
765
|
-
isDisabled: Boolean,
|
|
766
|
-
isReadonly: Boolean,
|
|
767
|
-
isInvalid: Boolean
|
|
768
|
-
},
|
|
769
|
-
emits: ['focus', 'blur', 'update:modelValue', 'input', 'search', 'clear', 'keypress', 'keyup', 'keydown'],
|
|
770
|
-
setup(props, {
|
|
771
|
-
emit
|
|
772
|
-
}) {
|
|
773
|
-
var _a;
|
|
774
|
-
const inputRef = ref();
|
|
775
|
-
const localValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
776
|
-
debouncedWatch(localValue, () => {
|
|
777
|
-
emit('search', props.isUsingTrim ? localValue.value.trim() : localValue.value);
|
|
778
|
-
}, {
|
|
779
|
-
debounce: +props.debounce
|
|
780
|
-
});
|
|
781
|
-
return {
|
|
782
|
-
inputRef,
|
|
783
|
-
localValue
|
|
784
|
-
};
|
|
785
|
-
},
|
|
786
|
-
computed: {
|
|
787
|
-
hasValue() {
|
|
788
|
-
var _a;
|
|
789
|
-
return !!((_a = this.localValue) === null || _a === void 0 ? void 0 : _a.length);
|
|
790
|
-
},
|
|
791
|
-
currentButtonIcon() {
|
|
792
|
-
return this.hasValue ? 'close' : 'search';
|
|
793
|
-
},
|
|
794
|
-
size() {
|
|
795
|
-
return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
watch: {
|
|
799
|
-
modelValue(val) {
|
|
800
|
-
if (this.localValue !== val) this.localValue = val;
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
methods: {
|
|
804
|
-
onClick() {
|
|
805
|
-
var _a;
|
|
806
|
-
if (this.hasValue) {
|
|
807
|
-
this.localValue = '';
|
|
808
|
-
this.$emit('update:modelValue', '');
|
|
809
|
-
this.$emit('clear');
|
|
810
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
onModelValueUpdate(value) {
|
|
814
|
-
this.localValue = value;
|
|
815
|
-
this.$emit('update:modelValue', value);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
|
|
820
|
-
export { __vue_component__ as _, script$2 as a, script$1 as b, script as c, script$4 as s };
|
|
332
|
+
export { __vue_component__ as _ };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
2
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
4
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
5
|
import { _ as __vue_component__$1 } from './OrError-13845bb0.js';
|
|
7
6
|
import { _ as __vue_component__$2 } from './OrHint-78b399cb.js';
|
|
@@ -9,7 +8,6 @@ import { _ as __vue_component__$4 } from './OrIconButton-5fa56aec.js';
|
|
|
9
8
|
import { _ as __vue_component__$3 } from './OrIcon-f34e0e6f.js';
|
|
10
9
|
import { _ as __vue_component__$5, a as InputBoxSize } from './OrInputBox-9ceb9fc4.js';
|
|
11
10
|
import { _ as __vue_component__$6 } from './OrLabel-0945a4d9.js';
|
|
12
|
-
import { _ as __vue_component__$7 } from './OrLoader-76307488.js';
|
|
13
11
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
14
12
|
import { c as createInjector } from './browser-82dea9ed.js';
|
|
15
13
|
|
|
@@ -42,8 +40,7 @@ var script = defineComponent({
|
|
|
42
40
|
OrIcon: __vue_component__$3,
|
|
43
41
|
OrIconButton: __vue_component__$4,
|
|
44
42
|
OrInputBox: __vue_component__$5,
|
|
45
|
-
OrLabel: __vue_component__$6
|
|
46
|
-
OrLoader: __vue_component__$7
|
|
43
|
+
OrLabel: __vue_component__$6
|
|
47
44
|
},
|
|
48
45
|
model: {
|
|
49
46
|
prop: 'modelValue',
|
|
@@ -78,10 +75,6 @@ var script = defineComponent({
|
|
|
78
75
|
type: String,
|
|
79
76
|
default: undefined
|
|
80
77
|
},
|
|
81
|
-
loading: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: false
|
|
84
|
-
},
|
|
85
78
|
required: {
|
|
86
79
|
type: Boolean,
|
|
87
80
|
default: false
|
|
@@ -127,9 +120,6 @@ var script = defineComponent({
|
|
|
127
120
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
128
121
|
const invalid = computed(() => !!props.error);
|
|
129
122
|
const disclosed = ref(false);
|
|
130
|
-
const {
|
|
131
|
-
isMobile
|
|
132
|
-
} = useResponsive();
|
|
133
123
|
// Methods
|
|
134
124
|
function focus() {
|
|
135
125
|
var _a;
|
|
@@ -150,7 +140,6 @@ var script = defineComponent({
|
|
|
150
140
|
maxLength,
|
|
151
141
|
invalid,
|
|
152
142
|
disclosed,
|
|
153
|
-
isMobile,
|
|
154
143
|
focus,
|
|
155
144
|
blur
|
|
156
145
|
};
|
|
@@ -316,13 +305,7 @@ var __vue_render__ = function () {
|
|
|
316
305
|
}
|
|
317
306
|
}, 'input', _vm.controlAttributes, false)), _vm._v(" "), _c('div', {
|
|
318
307
|
class: ['layout-row']
|
|
319
|
-
}, [_vm.
|
|
320
|
-
attrs: {
|
|
321
|
-
"variant": 'circular',
|
|
322
|
-
"color": 'primary',
|
|
323
|
-
"size": _vm.isMobile ? 'm' : 's'
|
|
324
|
-
}
|
|
325
|
-
})] : [_vm.type === 'password' ? [_c('OrIconButton', {
|
|
308
|
+
}, [_vm.type === 'password' ? [_c('OrIconButton', {
|
|
326
309
|
attrs: {
|
|
327
310
|
"icon": {
|
|
328
311
|
icon: _vm.disclosed ? 'visibility_off' : 'visibility',
|
|
@@ -354,7 +337,7 @@ var __vue_render__ = function () {
|
|
|
354
337
|
"icon": 'search',
|
|
355
338
|
"variant": 'outlined'
|
|
356
339
|
}
|
|
357
|
-
})]] : _vm._e()]
|
|
340
|
+
})]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
358
341
|
attrs: {
|
|
359
342
|
"disabled": _vm.disabled
|
|
360
343
|
},
|
|
@@ -383,14 +366,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
383
366
|
/* style */
|
|
384
367
|
const __vue_inject_styles__ = function (inject) {
|
|
385
368
|
if (!inject) return;
|
|
386
|
-
inject("data-v-
|
|
387
|
-
source: "input[data-v-
|
|
369
|
+
inject("data-v-1243ae22_0", {
|
|
370
|
+
source: "input[data-v-1243ae22]{min-width:0;background:0 0;outline:0}input[type=number][data-v-1243ae22]::-webkit-inner-spin-button{display:none}input[type=search][data-v-1243ae22]::-webkit-search-cancel-button{display:none}",
|
|
388
371
|
map: undefined,
|
|
389
372
|
media: undefined
|
|
390
373
|
});
|
|
391
374
|
};
|
|
392
375
|
/* scoped */
|
|
393
|
-
const __vue_scope_id__ = "data-v-
|
|
376
|
+
const __vue_scope_id__ = "data-v-1243ae22";
|
|
394
377
|
/* module identifier */
|
|
395
378
|
const __vue_module_identifier__ = undefined;
|
|
396
379
|
/* functional template */
|