@onereach/ui-components 2.69.7-beta.2168.0 → 2.69.7-beta.2170.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/{OrButton-4b99c680.js → OrButton-a846fa7e.js} +10 -1
- package/dist/bundled/v2/{OrCardCollection-aa6b8553.js → OrCardCollection-15d11d05.js} +2 -2
- package/dist/bundled/v2/{OrCheckbox-4f665252.js → OrCheckbox-dbef9f9a.js} +3 -3
- package/dist/bundled/v2/{OrConfirm-dc704484.js → OrConfirm-ec3feaf5.js} +2 -2
- package/dist/bundled/v2/{OrInlineInput-6af4fe07.js → OrInlineInput-9add2e1e.js} +2 -2
- package/dist/bundled/v2/{OrInlineTextarea-ddf84267.js → OrInlineTextarea-9c6f9044.js} +2 -2
- package/dist/bundled/v2/{OrInput-e7b864c1.js → OrInput-8b90e08f.js} +13 -20
- package/dist/bundled/v2/{OrInputBox-de8ce3ac.js → OrInputBox-79ec54ad.js} +12 -2
- package/dist/bundled/v2/OrPagination-379c10b8.js +308 -0
- package/dist/bundled/v2/{OrRadio-a60fc5c0.js → OrRadio-cd39b20b.js} +3 -3
- package/dist/bundled/v2/{OrSearch-ad84b460.js → OrSearch-76b002cf.js} +2 -2
- package/dist/bundled/v2/{OrSelect-b393f564.js → OrSelect-8a4d227e.js} +14 -15
- package/dist/bundled/v2/{OrSwitch-fe9b7de7.js → OrSwitch-237a2081.js} +3 -3
- package/dist/bundled/v2/{OrTextarea-59fba95c.js → OrTextarea-5593fbe9.js} +11 -14
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +14 -14
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -6
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- 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/index.js +2 -3
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
- package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +4 -0
- package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/bundled/v2/index.js +15 -15
- package/dist/bundled/v3/{OrButton-a671b8a1.js → OrButton-2b27c1fd.js} +3 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b0dc31ca.js → OrButton.vue_vue_type_script_lang-8c44986c.js} +9 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ece2eab6.js → OrCardCollection.vue_vue_type_script_lang-bd852915.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-fcbdf2c6.js → OrConfirm.vue_vue_type_script_lang-9e4e2884.js} +4 -4
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-84c521f9.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
- package/dist/bundled/v3/{OrInput-4ccc2c7b.js → OrInput-fa782fc1.js} +14 -17
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-96ce8121.js → OrInput.vue_vue_type_script_lang-f6d793d3.js} +4 -5
- package/dist/bundled/v3/{OrInputBox-27aa1cec.js → OrInputBox-eb54d73d.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-328ae841.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js} +2 -3
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-c96d7cd7.js +187 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-71fbb2fc.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-363605c5.js → OrSelect.vue_vue_type_script_lang-94063fc4.js} +9 -13
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-9f2a0234.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +4 -5
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +14 -14
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +8 -9
- package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -8
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- 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/index.js +3 -4
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
- package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +4 -0
- package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
- package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/index.js +277 -191
- package/dist/esm/v2/{OrButton-357e1e2c.js → OrButton-835d4f11.js} +10 -1
- package/dist/esm/v2/{OrCardCollection-fe34fef3.js → OrCardCollection-024cfba9.js} +3 -3
- package/dist/esm/v2/{OrCheckbox-ea48d156.js → OrCheckbox-567e387c.js} +3 -3
- package/dist/esm/v2/{OrConfirm-3bead0be.js → OrConfirm-5e8dd4b6.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-e32f322f.js → OrInlineInput-cfeeea33.js} +2 -2
- package/dist/esm/v2/{OrInlineTextarea-7296fbdb.js → OrInlineTextarea-897b5377.js} +2 -2
- package/dist/esm/v2/{OrInput-db0e2368.js → OrInput-2f16a7ac.js} +13 -20
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-28353c10.js → esm/v2/OrInputBox-4d5a318d.js} +55 -4
- package/dist/esm/v2/OrPagination-c0dbec6a.js +308 -0
- package/dist/esm/v2/{OrRadio-6e10f071.js → OrRadio-848ce55d.js} +3 -3
- package/dist/esm/v2/{OrSearch-9d9459f5.js → OrSearch-2f260b09.js} +2 -2
- package/dist/esm/v2/{OrSelect-e6aa1b2a.js → OrSelect-641184f0.js} +14 -15
- package/dist/esm/v2/{OrSwitch-c628d2c5.js → OrSwitch-13b6a7ee.js} +3 -3
- package/dist/esm/v2/{OrTextarea-52354386.js → OrTextarea-6712a150.js} +11 -14
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +14 -14
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -6
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -5
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- 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/index.js +2 -3
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
- package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +4 -0
- package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +3 -4
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/index.js +4 -5
- package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
- package/dist/esm/v2/index.js +14 -14
- package/dist/esm/v3/{OrButton-bb6bf8a9.js → OrButton-0fa67a0d.js} +11 -2
- package/dist/esm/v3/{OrCardCollection-8a84f69c.js → OrCardCollection-286d0f3f.js} +2 -2
- package/dist/esm/v3/{OrCheckbox-d1b516c8.js → OrCheckbox-3e139eac.js} +2 -3
- package/dist/esm/v3/{OrConfirm-5bd1f4db.js → OrConfirm-56ae1494.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-00f0d1b8.js → OrInlineInput-31026cd0.js} +2 -2
- package/dist/esm/v3/{OrInlineTextarea-c1babfda.js → OrInlineTextarea-b28c3d8c.js} +2 -2
- package/dist/esm/v3/{OrInput-2b447f81.js → OrInput-41691fb3.js} +15 -18
- package/dist/esm/v3/OrPagination-a703307d.js +269 -0
- package/dist/esm/v3/{OrRadio-ef9d4c6e.js → OrRadio-54b6d0de.js} +2 -3
- package/dist/esm/v3/{OrSearch-d72cfc74.js → OrSearch-e5a2e93e.js} +1 -1
- package/dist/esm/v3/{OrSelect-e6e006d5.js → OrSelect-08bd0f60.js} +16 -13
- package/dist/esm/v3/{OrSwitch-cc797a48.js → OrSwitch-cca30aa0.js} +3 -3
- package/dist/esm/v3/{OrTextarea-ed35cd0b.js → OrTextarea-bb9ef3f2.js} +14 -16
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +13 -12
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
- package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +4 -0
- package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +13 -12
- package/package.json +2 -2
- package/src/components/index.ts +1 -0
- package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
- package/src/components/or-button-v3/OrButton.vue +6 -0
- package/src/components/or-button-v3/styles.ts +9 -1
- package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +22 -28
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
- package/src/components/or-pagination-v3/OrPagination.vue +270 -0
- package/src/components/or-pagination-v3/index.ts +2 -0
- package/src/components/or-pagination-v3/styles.ts +38 -0
- package/src/components/or-pagination-v3/types.ts +4 -0
- package/src/components/or-radio-v3/OrRadio.vue +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/OrSelect.vue +20 -14
- package/src/components/or-select-v3/index.ts +1 -0
- package/src/components/or-select-v3/styles.ts +1 -4
- package/src/components/or-select-v3/types.ts +1 -1
- package/src/components/or-switch-v3/OrSwitch.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +1 -5
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -149
- 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.stories3.d.ts +0 -27
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -132
- 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-9d1193b5.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -147
- 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.stories3.d.ts +0 -27
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
- 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 -132
- 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 -202
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -134
- 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
|
@@ -81,7 +81,11 @@ const ButtonRootColors = {
|
|
|
81
81
|
'danger-link': [
|
|
82
82
|
// Theme
|
|
83
83
|
'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
|
|
84
|
-
'inherit-link': [
|
|
84
|
+
'inherit-link': [
|
|
85
|
+
// Theme
|
|
86
|
+
'theme-foreground-inherit', 'dark:theme-foreground-inherit',
|
|
87
|
+
// Theme (activated)
|
|
88
|
+
'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
|
|
85
89
|
};
|
|
86
90
|
|
|
87
91
|
var script = defineComponent({
|
|
@@ -103,6 +107,10 @@ var script = defineComponent({
|
|
|
103
107
|
type: String,
|
|
104
108
|
default: ButtonColor.Primary
|
|
105
109
|
},
|
|
110
|
+
activated: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
106
114
|
disabled: {
|
|
107
115
|
type: Boolean,
|
|
108
116
|
default: false
|
|
@@ -144,6 +152,7 @@ var __vue_render__ = function () {
|
|
|
144
152
|
class: _vm.rootStyles,
|
|
145
153
|
attrs: {
|
|
146
154
|
"type": _vm.type,
|
|
155
|
+
"activated": _vm.activated ? '' : null,
|
|
147
156
|
"disabled": _vm.disabled
|
|
148
157
|
},
|
|
149
158
|
on: {
|
|
@@ -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-a215104c.js';
|
|
5
|
-
import { O as OrButton } from './OrButton-
|
|
5
|
+
import { O as OrButton } from './OrButton-a846fa7e.js';
|
|
6
6
|
import { O as OrMenu } from './OrMenu-fa47c888.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-76b002cf.js';
|
|
10
10
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
11
11
|
|
|
12
12
|
const CardCollectionRoot = [
|
|
@@ -186,14 +186,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
186
186
|
/* style */
|
|
187
187
|
const __vue_inject_styles__ = function (inject) {
|
|
188
188
|
if (!inject) return;
|
|
189
|
-
inject("data-v-
|
|
190
|
-
source: "input[data-v-
|
|
189
|
+
inject("data-v-2076b35e_0", {
|
|
190
|
+
source: "input[data-v-2076b35e]{appearance:none;line-height:0}",
|
|
191
191
|
map: undefined,
|
|
192
192
|
media: undefined
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
195
|
/* scoped */
|
|
196
|
-
const __vue_scope_id__ = "data-v-
|
|
196
|
+
const __vue_scope_id__ = "data-v-2076b35e";
|
|
197
197
|
/* module identifier */
|
|
198
198
|
const __vue_module_identifier__ = undefined;
|
|
199
199
|
/* functional template */
|
|
@@ -2,8 +2,8 @@ import './index-fa6eb4ca.js';
|
|
|
2
2
|
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
3
3
|
import { l as logicAnd } from './index-17f264f9.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-3c89d622.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-a846fa7e.js';
|
|
6
|
+
import { O as OrInput } from './OrInput-8b90e08f.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
|
|
|
@@ -3,9 +3,8 @@ import { O as OrError } from './OrError-aad17598.js';
|
|
|
3
3
|
import { O as OrHint } from './OrHint-f38a1940.js';
|
|
4
4
|
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
5
5
|
import { O as OrIconButton } from './OrIconButton-a215104c.js';
|
|
6
|
-
import { O as OrInputBox } from './OrInputBox-
|
|
6
|
+
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-79ec54ad.js';
|
|
7
7
|
import { O as OrLabel } from './OrLabel-172c4b89.js';
|
|
8
|
-
import { a as InputBoxSize } from './props-78496a2d.js';
|
|
9
8
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
10
9
|
import { defineComponent, getCurrentInstance, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
11
10
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -25,8 +24,8 @@ const InputRoot = [
|
|
|
25
24
|
// Spacing
|
|
26
25
|
'gap-xs'];
|
|
27
26
|
const InputControl = [
|
|
28
|
-
//
|
|
29
|
-
'
|
|
27
|
+
// Layout
|
|
28
|
+
'grow',
|
|
30
29
|
// Typography
|
|
31
30
|
'typography-inherit',
|
|
32
31
|
// Theme
|
|
@@ -152,10 +151,10 @@ var __vue_render__ = function () {
|
|
|
152
151
|
var _vm = this;
|
|
153
152
|
var _h = _vm.$createElement;
|
|
154
153
|
var _c = _vm._self._c || _h;
|
|
155
|
-
return _c('div',
|
|
154
|
+
return _c('div', {
|
|
156
155
|
ref: "root",
|
|
157
156
|
class: _vm.rootStyles
|
|
158
|
-
},
|
|
157
|
+
}, [_vm.label ? [_c('OrLabel', {
|
|
159
158
|
attrs: {
|
|
160
159
|
"control-id": _vm.controlId,
|
|
161
160
|
"variant": 'input',
|
|
@@ -177,7 +176,7 @@ var __vue_render__ = function () {
|
|
|
177
176
|
"readonly": _vm.readonly,
|
|
178
177
|
"disabled": _vm.disabled
|
|
179
178
|
}
|
|
180
|
-
}, [(_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'checkbox' ? _c('input', {
|
|
179
|
+
}, [(_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'checkbox' ? _c('input', _vm._b({
|
|
181
180
|
directives: [{
|
|
182
181
|
name: "model",
|
|
183
182
|
rawName: "v-model",
|
|
@@ -191,8 +190,6 @@ var __vue_render__ = function () {
|
|
|
191
190
|
"placeholder": _vm.placeholder,
|
|
192
191
|
"required": _vm.required,
|
|
193
192
|
"disabled": _vm.disabled,
|
|
194
|
-
"readonly": _vm.readonly,
|
|
195
|
-
"maxlength": _vm.maxLength,
|
|
196
193
|
"type": "checkbox"
|
|
197
194
|
},
|
|
198
195
|
domProps: {
|
|
@@ -228,7 +225,7 @@ var __vue_render__ = function () {
|
|
|
228
225
|
}
|
|
229
226
|
}
|
|
230
227
|
}
|
|
231
|
-
}) : (_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'radio' ? _c('input', {
|
|
228
|
+
}, 'input', _vm.$attrs, false)) : (_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'radio' ? _c('input', _vm._b({
|
|
232
229
|
directives: [{
|
|
233
230
|
name: "model",
|
|
234
231
|
rawName: "v-model",
|
|
@@ -242,8 +239,6 @@ var __vue_render__ = function () {
|
|
|
242
239
|
"placeholder": _vm.placeholder,
|
|
243
240
|
"required": _vm.required,
|
|
244
241
|
"disabled": _vm.disabled,
|
|
245
|
-
"readonly": _vm.readonly,
|
|
246
|
-
"maxlength": _vm.maxLength,
|
|
247
242
|
"type": "radio"
|
|
248
243
|
},
|
|
249
244
|
domProps: {
|
|
@@ -266,7 +261,7 @@ var __vue_render__ = function () {
|
|
|
266
261
|
_vm.proxyModelValue = null;
|
|
267
262
|
}
|
|
268
263
|
}
|
|
269
|
-
}) : _c('input', {
|
|
264
|
+
}, 'input', _vm.$attrs, false)) : _c('input', _vm._b({
|
|
270
265
|
directives: [{
|
|
271
266
|
name: "model",
|
|
272
267
|
rawName: "v-model",
|
|
@@ -280,8 +275,6 @@ var __vue_render__ = function () {
|
|
|
280
275
|
"placeholder": _vm.placeholder,
|
|
281
276
|
"required": _vm.required,
|
|
282
277
|
"disabled": _vm.disabled,
|
|
283
|
-
"readonly": _vm.readonly,
|
|
284
|
-
"maxlength": _vm.maxLength,
|
|
285
278
|
"type": _vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type
|
|
286
279
|
},
|
|
287
280
|
domProps: {
|
|
@@ -307,7 +300,7 @@ var __vue_render__ = function () {
|
|
|
307
300
|
_vm.proxyModelValue = $event.target.value;
|
|
308
301
|
}
|
|
309
302
|
}
|
|
310
|
-
}), _vm._v(" "),
|
|
303
|
+
}, 'input', _vm.$attrs, false)), _vm._v(" "), _c('div', {
|
|
311
304
|
class: ['layout-row']
|
|
312
305
|
}, [_vm.type === 'password' ? [_c('OrIconButton', {
|
|
313
306
|
attrs: {
|
|
@@ -341,7 +334,7 @@ var __vue_render__ = function () {
|
|
|
341
334
|
"icon": 'search',
|
|
342
335
|
"variant": 'outlined'
|
|
343
336
|
}
|
|
344
|
-
})]] : _vm._e()], 2)]
|
|
337
|
+
})]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
345
338
|
attrs: {
|
|
346
339
|
"disabled": _vm.disabled
|
|
347
340
|
},
|
|
@@ -370,14 +363,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
370
363
|
/* style */
|
|
371
364
|
const __vue_inject_styles__ = function (inject) {
|
|
372
365
|
if (!inject) return;
|
|
373
|
-
inject("data-v-
|
|
374
|
-
source: "input[data-v-
|
|
366
|
+
inject("data-v-677a1aa4_0", {
|
|
367
|
+
source: "input[data-v-677a1aa4]{min-width:0;background:0 0;outline:0}input[type=number][data-v-677a1aa4]::-webkit-inner-spin-button{display:none}input[type=search][data-v-677a1aa4]::-webkit-search-cancel-button{display:none}",
|
|
375
368
|
map: undefined,
|
|
376
369
|
media: undefined
|
|
377
370
|
});
|
|
378
371
|
};
|
|
379
372
|
/* scoped */
|
|
380
|
-
const __vue_scope_id__ = "data-v-
|
|
373
|
+
const __vue_scope_id__ = "data-v-677a1aa4";
|
|
381
374
|
/* module identifier */
|
|
382
375
|
const __vue_module_identifier__ = undefined;
|
|
383
376
|
/* functional template */
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { I as InputBoxVariant, a as InputBoxSize } from './props-78496a2d.js';
|
|
3
2
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
4
3
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
5
|
|
|
6
|
+
var InputBoxVariant;
|
|
7
|
+
(function (InputBoxVariant) {
|
|
8
|
+
InputBoxVariant["Styled"] = "styled";
|
|
9
|
+
InputBoxVariant["Unstyled"] = "unstyled";
|
|
10
|
+
})(InputBoxVariant || (InputBoxVariant = {}));
|
|
11
|
+
var InputBoxSize;
|
|
12
|
+
(function (InputBoxSize) {
|
|
13
|
+
InputBoxSize["M"] = "m";
|
|
14
|
+
InputBoxSize["S"] = "s";
|
|
15
|
+
})(InputBoxSize || (InputBoxSize = {}));
|
|
16
|
+
|
|
7
17
|
const InputBoxRoot = [
|
|
8
18
|
// Layout
|
|
9
19
|
'layout-row',
|
|
@@ -127,4 +137,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
127
137
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
128
138
|
var OrInputBox = __vue_component__;
|
|
129
139
|
|
|
130
|
-
export { OrInputBox as O };
|
|
140
|
+
export { InputBoxVariant as I, OrInputBox as O, InputBoxSize as a };
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import './index-fa6eb4ca.js';
|
|
2
|
+
import { O as OrButton } from './OrButton-a846fa7e.js';
|
|
3
|
+
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
4
|
+
import { O as OrMenu } from './OrMenu-fa47c888.js';
|
|
5
|
+
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
6
|
+
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
7
|
+
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
|
+
|
|
10
|
+
const PaginationRoot = [
|
|
11
|
+
// Layout
|
|
12
|
+
'layout-row',
|
|
13
|
+
// Spacing
|
|
14
|
+
'gap-xl',
|
|
15
|
+
// Typography
|
|
16
|
+
'typography-caption-regular',
|
|
17
|
+
// Theme
|
|
18
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
19
|
+
const PaginationOffsetControl = [
|
|
20
|
+
// Layout
|
|
21
|
+
'layout-row',
|
|
22
|
+
// Spacing
|
|
23
|
+
'gap-md'];
|
|
24
|
+
const PaginationLimitControl = [
|
|
25
|
+
// Layout
|
|
26
|
+
'layout-row',
|
|
27
|
+
// Spacing
|
|
28
|
+
'gap-sm'];
|
|
29
|
+
const PaginationItem = [
|
|
30
|
+
// Typography
|
|
31
|
+
'typography-caption-regular',
|
|
32
|
+
// Typography (activated)
|
|
33
|
+
'activated:typography-caption-bold'];
|
|
34
|
+
|
|
35
|
+
var script = defineComponent({
|
|
36
|
+
name: 'OrPagination',
|
|
37
|
+
components: {
|
|
38
|
+
OrButton,
|
|
39
|
+
OrIcon,
|
|
40
|
+
OrMenu,
|
|
41
|
+
OrMenuItem
|
|
42
|
+
},
|
|
43
|
+
inheritAttrs: false,
|
|
44
|
+
props: {
|
|
45
|
+
modelValue: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: undefined
|
|
48
|
+
},
|
|
49
|
+
value: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: undefined
|
|
52
|
+
},
|
|
53
|
+
length: {
|
|
54
|
+
type: Number,
|
|
55
|
+
required: true
|
|
56
|
+
},
|
|
57
|
+
pageSizeOptions: {
|
|
58
|
+
type: Array,
|
|
59
|
+
default: () => [50, 20, 10, 5]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
emits: ['update:modelValue', 'input'],
|
|
63
|
+
expose: ['root'],
|
|
64
|
+
setup(props, context) {
|
|
65
|
+
// Refs
|
|
66
|
+
const root = ref();
|
|
67
|
+
const limitButton = ref();
|
|
68
|
+
const limitButtonRoot = computed(() => {
|
|
69
|
+
var _a;
|
|
70
|
+
return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
71
|
+
});
|
|
72
|
+
const limitMenu = ref();
|
|
73
|
+
const limitMenuRoot = computed(() => {
|
|
74
|
+
var _a;
|
|
75
|
+
return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
76
|
+
});
|
|
77
|
+
// Styles
|
|
78
|
+
const classAttribute = useClassAttribute();
|
|
79
|
+
const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
|
|
80
|
+
const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
|
|
81
|
+
const limitControlStyles = computed(() => [...PaginationLimitControl]);
|
|
82
|
+
const itemStyles = computed(() => [...PaginationItem]);
|
|
83
|
+
// State
|
|
84
|
+
const proxyModelValue = computed({
|
|
85
|
+
get: () => {
|
|
86
|
+
var _a;
|
|
87
|
+
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
set: value => {
|
|
91
|
+
context.emit('input', value);
|
|
92
|
+
context.emit('update:modelValue', value);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const currentLimit = computed({
|
|
96
|
+
get: () => {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
|
|
99
|
+
},
|
|
100
|
+
set: value => {
|
|
101
|
+
proxyModelValue.value = {
|
|
102
|
+
limit: value,
|
|
103
|
+
offset: 0
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const currentOffset = computed({
|
|
108
|
+
get: () => {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
|
|
111
|
+
},
|
|
112
|
+
set: value => {
|
|
113
|
+
proxyModelValue.value = {
|
|
114
|
+
limit: currentLimit.value,
|
|
115
|
+
offset: value
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const currentPage = computed({
|
|
120
|
+
get: () => {
|
|
121
|
+
return Math.floor(currentOffset.value / currentLimit.value) + 1;
|
|
122
|
+
},
|
|
123
|
+
set: value => {
|
|
124
|
+
currentOffset.value = (value - 1) * currentLimit.value;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const firstPage = computed(() => {
|
|
128
|
+
return 1;
|
|
129
|
+
});
|
|
130
|
+
const lastPage = computed(() => {
|
|
131
|
+
return Math.ceil(props.length / currentLimit.value);
|
|
132
|
+
});
|
|
133
|
+
const buttonGroup = computed(() => {
|
|
134
|
+
return Array.from({
|
|
135
|
+
length: lastPage.value
|
|
136
|
+
}, (_, index) => index + 1).map(page => {
|
|
137
|
+
switch (true) {
|
|
138
|
+
case page > firstPage.value && page < currentPage.value - 1:
|
|
139
|
+
case page > currentPage.value + 1 && page < lastPage.value:
|
|
140
|
+
return '…';
|
|
141
|
+
default:
|
|
142
|
+
return page;
|
|
143
|
+
}
|
|
144
|
+
}).reduce((accumulator, page) => {
|
|
145
|
+
if (accumulator[accumulator.length - 1] === page) {
|
|
146
|
+
return accumulator;
|
|
147
|
+
}
|
|
148
|
+
return [...accumulator, page];
|
|
149
|
+
}, []);
|
|
150
|
+
});
|
|
151
|
+
// Functions
|
|
152
|
+
function toPreviousPage() {
|
|
153
|
+
currentPage.value = currentPage.value - 1;
|
|
154
|
+
}
|
|
155
|
+
function toNextPage() {
|
|
156
|
+
currentPage.value = currentPage.value + 1;
|
|
157
|
+
}
|
|
158
|
+
function toPage(page) {
|
|
159
|
+
currentPage.value = page;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
root,
|
|
163
|
+
limitButton,
|
|
164
|
+
limitButtonRoot,
|
|
165
|
+
limitMenu,
|
|
166
|
+
limitMenuRoot,
|
|
167
|
+
rootStyles,
|
|
168
|
+
offsetControlStyles,
|
|
169
|
+
limitControlStyles,
|
|
170
|
+
itemStyles,
|
|
171
|
+
proxyModelValue,
|
|
172
|
+
currentLimit,
|
|
173
|
+
currentOffset,
|
|
174
|
+
currentPage,
|
|
175
|
+
firstPage,
|
|
176
|
+
lastPage,
|
|
177
|
+
buttonGroup,
|
|
178
|
+
toPreviousPage,
|
|
179
|
+
toNextPage,
|
|
180
|
+
toPage
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
/* script */
|
|
186
|
+
const __vue_script__ = script;
|
|
187
|
+
|
|
188
|
+
/* template */
|
|
189
|
+
var __vue_render__ = function () {
|
|
190
|
+
var _vm = this;
|
|
191
|
+
var _h = _vm.$createElement;
|
|
192
|
+
var _c = _vm._self._c || _h;
|
|
193
|
+
return _c('div', _vm._b({
|
|
194
|
+
ref: "root",
|
|
195
|
+
class: _vm.rootStyles
|
|
196
|
+
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
197
|
+
class: _vm.offsetControlStyles
|
|
198
|
+
}, [_c('OrButton', {
|
|
199
|
+
class: _vm.itemStyles,
|
|
200
|
+
attrs: {
|
|
201
|
+
"variant": 'link',
|
|
202
|
+
"color": 'inherit',
|
|
203
|
+
"disabled": _vm.currentPage === _vm.firstPage
|
|
204
|
+
},
|
|
205
|
+
on: {
|
|
206
|
+
"click": function ($event) {
|
|
207
|
+
$event.stopPropagation();
|
|
208
|
+
return _vm.toPreviousPage();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}, [_c('OrIcon', {
|
|
212
|
+
attrs: {
|
|
213
|
+
"icon": 'keyboard_arrow_left'
|
|
214
|
+
}
|
|
215
|
+
})], 1), _vm._v(" "), _vm._l(_vm.buttonGroup, function (page, index) {
|
|
216
|
+
return _c('OrButton', {
|
|
217
|
+
key: index,
|
|
218
|
+
class: _vm.itemStyles,
|
|
219
|
+
attrs: {
|
|
220
|
+
"variant": 'link',
|
|
221
|
+
"color": 'inherit',
|
|
222
|
+
"activated": _vm.currentPage === page
|
|
223
|
+
},
|
|
224
|
+
on: {
|
|
225
|
+
"click": function ($event) {
|
|
226
|
+
$event.stopPropagation();
|
|
227
|
+
typeof page === 'number' && _vm.toPage(page);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
231
|
+
}), _vm._v(" "), _c('OrButton', {
|
|
232
|
+
class: _vm.itemStyles,
|
|
233
|
+
attrs: {
|
|
234
|
+
"variant": 'link',
|
|
235
|
+
"color": 'inherit',
|
|
236
|
+
"disabled": _vm.currentPage === _vm.lastPage
|
|
237
|
+
},
|
|
238
|
+
on: {
|
|
239
|
+
"click": function ($event) {
|
|
240
|
+
$event.stopPropagation();
|
|
241
|
+
return _vm.toNextPage();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}, [_c('OrIcon', {
|
|
245
|
+
attrs: {
|
|
246
|
+
"icon": 'keyboard_arrow_right'
|
|
247
|
+
}
|
|
248
|
+
})], 1)], 2), _vm._v(" "), _c('div', {
|
|
249
|
+
class: _vm.limitControlStyles
|
|
250
|
+
}, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
|
|
251
|
+
ref: "limitButton",
|
|
252
|
+
class: _vm.itemStyles,
|
|
253
|
+
attrs: {
|
|
254
|
+
"variant": 'link',
|
|
255
|
+
"color": 'inherit',
|
|
256
|
+
"activated": true
|
|
257
|
+
},
|
|
258
|
+
on: {
|
|
259
|
+
"click": function ($event) {
|
|
260
|
+
$event.stopPropagation();
|
|
261
|
+
return _vm.limitMenu.open();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
|
|
265
|
+
attrs: {
|
|
266
|
+
"icon": 'arrow_drop_down'
|
|
267
|
+
}
|
|
268
|
+
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
269
|
+
ref: "limitMenu",
|
|
270
|
+
attrs: {
|
|
271
|
+
"trigger": _vm.limitButtonRoot,
|
|
272
|
+
"placement": 'top'
|
|
273
|
+
}
|
|
274
|
+
}, _vm._l(_vm.pageSizeOptions, function (pageSize) {
|
|
275
|
+
return _c('OrMenuItem', {
|
|
276
|
+
key: pageSize,
|
|
277
|
+
on: {
|
|
278
|
+
"click": function ($event) {
|
|
279
|
+
$event.stopPropagation();
|
|
280
|
+
_vm.currentLimit = pageSize;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}, [_vm._v("\n " + _vm._s(pageSize) + "\n ")]);
|
|
284
|
+
}), 1)], 1)]);
|
|
285
|
+
};
|
|
286
|
+
var __vue_staticRenderFns__ = [];
|
|
287
|
+
|
|
288
|
+
/* style */
|
|
289
|
+
const __vue_inject_styles__ = undefined;
|
|
290
|
+
/* scoped */
|
|
291
|
+
const __vue_scope_id__ = undefined;
|
|
292
|
+
/* module identifier */
|
|
293
|
+
const __vue_module_identifier__ = undefined;
|
|
294
|
+
/* functional template */
|
|
295
|
+
const __vue_is_functional_template__ = false;
|
|
296
|
+
/* style inject */
|
|
297
|
+
|
|
298
|
+
/* style inject SSR */
|
|
299
|
+
|
|
300
|
+
/* style inject shadow dom */
|
|
301
|
+
|
|
302
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
303
|
+
render: __vue_render__,
|
|
304
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
305
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
306
|
+
var __vue_component__$1 = __vue_component__;
|
|
307
|
+
|
|
308
|
+
export { __vue_component__$1 as _ };
|
|
@@ -168,14 +168,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
168
168
|
/* style */
|
|
169
169
|
const __vue_inject_styles__ = function (inject) {
|
|
170
170
|
if (!inject) return;
|
|
171
|
-
inject("data-v-
|
|
172
|
-
source: "input[data-v-
|
|
171
|
+
inject("data-v-3a964458_0", {
|
|
172
|
+
source: "input[data-v-3a964458]{appearance:none;line-height:0}",
|
|
173
173
|
map: undefined,
|
|
174
174
|
media: undefined
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
177
|
/* scoped */
|
|
178
|
-
const __vue_scope_id__ = "data-v-
|
|
178
|
+
const __vue_scope_id__ = "data-v-3a964458";
|
|
179
179
|
/* module identifier */
|
|
180
180
|
const __vue_module_identifier__ = undefined;
|
|
181
181
|
/* functional template */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
|
-
import { O as OrInput } from './OrInput-
|
|
3
|
+
import { O as OrInput } from './OrInput-8b90e08f.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
5
5
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
|
-
import { a as InputBoxSize } from './
|
|
6
|
+
import { a as InputBoxSize } from './OrInputBox-79ec54ad.js';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
8
|
|
|
9
9
|
var script = defineComponent({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrCheckbox } from './OrCheckbox-
|
|
2
|
+
import { O as OrCheckbox } from './OrCheckbox-dbef9f9a.js';
|
|
3
3
|
import { O as OrError } from './OrError-aad17598.js';
|
|
4
4
|
import { O as OrExpansionPanel } from './OrExpansionPanel-995caa85.js';
|
|
5
5
|
import { O as OrHint } from './OrHint-f38a1940.js';
|
|
6
6
|
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
7
|
-
import { O as OrInput } from './OrInput-
|
|
8
|
-
import { O as OrInputBox } from './OrInputBox-
|
|
7
|
+
import { O as OrInput } from './OrInput-8b90e08f.js';
|
|
8
|
+
import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-79ec54ad.js';
|
|
9
9
|
import { O as OrLabel } from './OrLabel-172c4b89.js';
|
|
10
10
|
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
11
11
|
import { O as OrPopover } from './OrPopover-5dc240f1.js';
|
|
@@ -14,7 +14,6 @@ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.
|
|
|
14
14
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
15
15
|
import { u as useOverflow } from './useOverflow-bae6342f.js';
|
|
16
16
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
17
|
-
import { a as InputBoxSize } from './props-78496a2d.js';
|
|
18
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
19
18
|
|
|
20
19
|
const SelectRoot = [
|
|
@@ -24,9 +23,7 @@ const SelectRoot = [
|
|
|
24
23
|
'gap-xs'];
|
|
25
24
|
const SelectControl = [
|
|
26
25
|
// Layout
|
|
27
|
-
'layout-row',
|
|
28
|
-
// Box
|
|
29
|
-
'w-full',
|
|
26
|
+
'layout-row grow',
|
|
30
27
|
// Overflow
|
|
31
28
|
'overflow-hidden',
|
|
32
29
|
// Spacing
|
|
@@ -85,11 +82,11 @@ var script = defineComponent({
|
|
|
85
82
|
default: []
|
|
86
83
|
},
|
|
87
84
|
modelValue: {
|
|
88
|
-
type: [String, Array],
|
|
85
|
+
type: [String, Number, Array],
|
|
89
86
|
default: undefined
|
|
90
87
|
},
|
|
91
88
|
value: {
|
|
92
|
-
type: [String, Array],
|
|
89
|
+
type: [String, Number, Array],
|
|
93
90
|
default: undefined
|
|
94
91
|
},
|
|
95
92
|
multiple: {
|
|
@@ -355,8 +352,8 @@ var __vue_render__ = function () {
|
|
|
355
352
|
return _vm.$emit('blur', $event);
|
|
356
353
|
}
|
|
357
354
|
}
|
|
358
|
-
}, [_vm.
|
|
359
|
-
return _vm._l(_vm.selection, function (option) {
|
|
355
|
+
}, [_vm.multiple ? [_vm._t("valueTemplate", function () {
|
|
356
|
+
return [_vm.proxyModelValue && _vm.proxyModelValue.length > 0 ? _vm._l(_vm.selection, function (option) {
|
|
360
357
|
return _c('OrTag', {
|
|
361
358
|
key: option.value,
|
|
362
359
|
attrs: {
|
|
@@ -368,16 +365,18 @@ var __vue_render__ = function () {
|
|
|
368
365
|
}
|
|
369
366
|
}
|
|
370
367
|
}, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
|
|
371
|
-
})
|
|
368
|
+
}) : [_c('span', {
|
|
369
|
+
class: _vm.placeholderStyles
|
|
370
|
+
}, [_vm._v(_vm._s(_vm.placeholder))])]];
|
|
372
371
|
}, {
|
|
373
372
|
"model": _vm.proxyModelValue
|
|
374
|
-
})] : [_vm._t("valueTemplate", function () {
|
|
373
|
+
})] : [_vm.proxyModelValue ? [_vm._t("valueTemplate", function () {
|
|
375
374
|
return [_vm._v("\n " + _vm._s(_vm.selection.label) + "\n ")];
|
|
376
375
|
}, {
|
|
377
376
|
"model": _vm.proxyModelValue
|
|
378
|
-
})]
|
|
377
|
+
})] : [_c('span', {
|
|
379
378
|
class: _vm.placeholderStyles
|
|
380
|
-
}, [_vm._v(_vm._s(_vm.placeholder))])]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _c('div', {
|
|
379
|
+
}, [_vm._v(_vm._s(_vm.placeholder))])]]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _c('div', {
|
|
381
380
|
class: ['layout-row']
|
|
382
381
|
}, [_c('OrIcon', {
|
|
383
382
|
attrs: {
|