@onereach/ui-components 4.3.11 → 4.3.12-beta.2670.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.
@@ -360,7 +360,8 @@ var __vue_render__ = function () {
360
360
  return _c('OrTag', {
361
361
  key: option.value,
362
362
  attrs: {
363
- "variant": 'reset'
363
+ "variant": 'reset',
364
+ "disabled": _vm.disabled || _vm.readonly
364
365
  },
365
366
  on: {
366
367
  "reset": function ($event) {
@@ -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)
@@ -360,7 +360,8 @@ var __vue_render__ = function () {
360
360
  return _c('OrTag', {
361
361
  key: option.value,
362
362
  attrs: {
363
- "variant": 'reset'
363
+ "variant": 'reset',
364
+ "disabled": _vm.disabled || _vm.readonly
364
365
  },
365
366
  on: {
366
367
  "reset": function ($event) {
@@ -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-9c8f96b2.js';
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-9c8f96b2.js';
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';
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue-demi';
2
2
  import { TabsVariant } from './props';
3
3
  import { TabsItem } from './types';
4
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
6
  overflowTab: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
7
7
  [x: string]: ((...args: any[]) => any) | null;
@@ -54,7 +54,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
54
  type: PropType<TabsVariant>;
55
55
  default: TabsVariant;
56
56
  };
57
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
57
+ }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
58
58
  modelValue: string | number;
59
59
  items: TabsItem[];
60
60
  variant: TabsVariant;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {
2
+ declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {
3
3
  handleDeleteClick(event: MouseEvent): void;
4
4
  }, {
5
5
  rootClasses(): Record<string, boolean>;
@@ -44,7 +44,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
44
44
  required: false;
45
45
  default: boolean;
46
46
  };
47
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
47
+ }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
48
48
  content: string;
49
49
  color: string;
50
50
  canDelete: boolean;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue-demi';
2
2
  import { ToastType } from './props';
3
3
  import { ToastLink } from './types';
4
- declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
6
  toastIconStyle: import("@vue/composition-api").ComputedRef<string[]>;
7
7
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -45,7 +45,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
45
45
  type: BooleanConstructor;
46
46
  default: boolean;
47
47
  };
48
- }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
48
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
49
49
  toastType: ToastType;
50
50
  link: ToastLink;
51
51
  messageText: string;
@@ -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-9c8f96b2.js';
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-b1d7651a.js';
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';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-b1d7651a.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-3dbddc6b.js';
2
2
  export { I as SelectSize } from '../../OrInputBox-ba40bbdf.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-e1f90e0a.js';
@@ -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-b1d7651a.js';
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.11",
3
+ "version": "4.3.12-beta.2670.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
+ };
@@ -48,6 +48,7 @@
48
48
  v-for="option in selection"
49
49
  :key="option.value"
50
50
  :variant="'reset'"
51
+ :disabled="disabled || readonly"
51
52
  @reset="deselect(option)"
52
53
  >
53
54
  {{ option.label }}