@onereach/ui-components 4.3.11 → 4.3.12-beta.2674.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/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -1
- package/dist/esm/v2/{OrSelect-9c8f96b2.js → OrSelect-9d6b3363.js} +2 -1
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrSelect-b1d7651a.js → OrSelect-3dbddc6b.js} +2 -1
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-select-v3/OrSelect.stories3.ts +39 -1
- package/src/components/or-select-v3/OrSelect.vue +1 -0
|
@@ -143,12 +143,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
143
143
|
return openBlock(), createBlock(_component_OrTag, {
|
|
144
144
|
key: option.value,
|
|
145
145
|
variant: 'reset',
|
|
146
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
146
147
|
onReset: $event => _ctx.deselect(option)
|
|
147
148
|
}, {
|
|
148
149
|
default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1 /* TEXT */)]),
|
|
149
150
|
|
|
150
151
|
_: 2 /* DYNAMIC */
|
|
151
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
152
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "onReset"]);
|
|
152
153
|
}), 128 /* KEYED_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
153
154
|
key: 1,
|
|
154
155
|
class: normalizeClass(_ctx.placeholderStyles)
|
|
@@ -73,7 +73,7 @@ export { _ as OrSearch } from '../OrSearch-330e9af0.js';
|
|
|
73
73
|
export { _ as OrSearchV3 } from '../OrSearch-7ccc1f33.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a1ea5b72.js';
|
|
75
75
|
export { _ as OrSelect } from '../OrSelect-22eea9cc.js';
|
|
76
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from '../OrSelect-9d6b3363.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
|
|
78
78
|
export { _ as OrSidebarV3 } from '../OrSidebar-b8387abe.js';
|
|
79
79
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-9d6b3363.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -73,7 +73,7 @@ export { _ as OrSearch } from './OrSearch-330e9af0.js';
|
|
|
73
73
|
export { _ as OrSearchV3 } from './OrSearch-7ccc1f33.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-a1ea5b72.js';
|
|
75
75
|
export { _ as OrSelect } from './OrSelect-22eea9cc.js';
|
|
76
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from './OrSelect-9d6b3363.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
|
|
78
78
|
export { _ as OrSidebarV3 } from './OrSidebar-b8387abe.js';
|
|
79
79
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -359,12 +359,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
359
|
return openBlock(), createBlock(_component_OrTag, {
|
|
360
360
|
key: option.value,
|
|
361
361
|
variant: 'reset',
|
|
362
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
362
363
|
onReset: $event => _ctx.deselect(option)
|
|
363
364
|
}, {
|
|
364
365
|
default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1 /* TEXT */)]),
|
|
365
366
|
|
|
366
367
|
_: 2 /* DYNAMIC */
|
|
367
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
368
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "onReset"]);
|
|
368
369
|
}), 128 /* KEYED_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
|
|
369
370
|
key: 1,
|
|
370
371
|
class: normalizeClass(_ctx.placeholderStyles)
|
|
@@ -71,7 +71,7 @@ export { s as OrSearch } from '../OrSearch-f4ad73db.js';
|
|
|
71
71
|
export { s as OrSearchV3 } from '../OrSearch-e15c7fd2.js';
|
|
72
72
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-359fbf3a.js';
|
|
73
73
|
export { s as OrSelect } from '../OrSelect-6ff34196.js';
|
|
74
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
74
|
+
export { s as OrSelectV3 } from '../OrSelect-3dbddc6b.js';
|
|
75
75
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
76
76
|
export { s as OrSidebarV3 } from '../OrSidebar-bfd19c4c.js';
|
|
77
77
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-63914891.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -71,7 +71,7 @@ export { s as OrSearch } from './OrSearch-f4ad73db.js';
|
|
|
71
71
|
export { s as OrSearchV3 } from './OrSearch-e15c7fd2.js';
|
|
72
72
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-359fbf3a.js';
|
|
73
73
|
export { s as OrSelect } from './OrSelect-6ff34196.js';
|
|
74
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
74
|
+
export { s as OrSelectV3 } from './OrSelect-3dbddc6b.js';
|
|
75
75
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
76
76
|
export { s as OrSidebarV3 } from './OrSidebar-bfd19c4c.js';
|
|
77
77
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-63914891.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.12-beta.2674.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -153,6 +153,5 @@
|
|
|
153
153
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
154
154
|
},
|
|
155
155
|
"./package.json": "./package.json"
|
|
156
|
-
}
|
|
157
|
-
"gitHead": "b11ae2e324c85b8d9a760aa7027fc6fdd2796bcc"
|
|
156
|
+
}
|
|
158
157
|
}
|
|
@@ -168,7 +168,7 @@ const Template: StoryFn<typeof OrSelect> = (args) => ({
|
|
|
168
168
|
|
|
169
169
|
setup() {
|
|
170
170
|
// State
|
|
171
|
-
const model = ref<string | string[]>();
|
|
171
|
+
const model = ref<string | string[]>(args.modelValue);
|
|
172
172
|
const searchOptions = ref<SelectOption[]>(args.options);
|
|
173
173
|
|
|
174
174
|
// Handlers
|
|
@@ -468,3 +468,41 @@ WithLongStrings.args = {
|
|
|
468
468
|
|
|
469
469
|
placeholder: 'Wery Wery Wery WeryWeryWeryWery Wery Wery long placeholder',
|
|
470
470
|
};
|
|
471
|
+
|
|
472
|
+
export const MultipleReadonly = Template.bind({});
|
|
473
|
+
|
|
474
|
+
MultipleReadonly.args = {
|
|
475
|
+
...Default.args,
|
|
476
|
+
readonly: true,
|
|
477
|
+
options: Array.from<string, SelectOption>([
|
|
478
|
+
'Alfa',
|
|
479
|
+
'Bravo',
|
|
480
|
+
'Charlie',
|
|
481
|
+
'Delta',
|
|
482
|
+
'Echo',
|
|
483
|
+
], (item) => ({
|
|
484
|
+
value: item.toLowerCase().replace(/\s/g, ''),
|
|
485
|
+
label: item,
|
|
486
|
+
})),
|
|
487
|
+
multiple: true,
|
|
488
|
+
modelValue: ['alfa', 'bravo'],
|
|
489
|
+
};
|
|
490
|
+
export const MultipleDisabled = Template.bind({});
|
|
491
|
+
|
|
492
|
+
MultipleDisabled.args = {
|
|
493
|
+
...Default.args,
|
|
494
|
+
options: Array.from<string, SelectOption>([
|
|
495
|
+
'Alfa',
|
|
496
|
+
'Bravo',
|
|
497
|
+
'Charlie',
|
|
498
|
+
'Delta',
|
|
499
|
+
'Echo',
|
|
500
|
+
], (item) => ({
|
|
501
|
+
value: item.toLowerCase().replace(/\s/g, ''),
|
|
502
|
+
label: item,
|
|
503
|
+
})),
|
|
504
|
+
disabled: true,
|
|
505
|
+
multiple: true,
|
|
506
|
+
modelValue: ['alfa', 'bravo'],
|
|
507
|
+
paceholder: 'disabled placeholder',
|
|
508
|
+
};
|