@onereach/ui-components 2.69.1-beta.2097.0 → 2.69.1-beta.2099.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.
Files changed (40) hide show
  1. package/dist/bundled/v2/{OrCardCollection-8606c407.js → OrCardCollection-953657a7.js} +15 -4
  2. package/dist/bundled/v2/{OrSearch-19f43fe5.js → OrSearch-a11b3621.js} +7 -1
  3. package/dist/bundled/v2/components/index.js +2 -2
  4. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +1 -0
  5. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +4 -4
  6. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  7. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  8. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  9. package/dist/bundled/v2/index.js +3 -3
  10. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-80c10c12.js → OrCardCollection.vue_vue_type_script_lang-4debae8a.js} +2 -2
  11. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-cb2d6612.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +7 -1
  12. package/dist/bundled/v3/components/index.js +2 -2
  13. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +1 -0
  14. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +4 -4
  15. package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
  16. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  17. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  18. package/dist/bundled/v3/index.js +15 -7
  19. package/dist/esm/v2/{OrCardCollection-e7a4ead6.js → OrCardCollection-55e282a7.js} +15 -4
  20. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
  21. package/dist/esm/v2/components/index.js +2 -2
  22. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +1 -0
  23. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +4 -4
  24. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  25. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  26. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  27. package/dist/esm/v2/index.js +2 -2
  28. package/dist/esm/v3/{OrCardCollection-3bd67c5c.js → OrCardCollection-0c6da4b8.js} +13 -5
  29. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
  30. package/dist/esm/v3/components/index.js +2 -2
  31. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +1 -0
  32. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +4 -4
  33. package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
  34. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  35. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  36. package/dist/esm/v3/index.js +2 -2
  37. package/package.json +1 -1
  38. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +40 -4
  39. package/src/components/or-card-collection-v3/OrCardCollection.vue +11 -2
  40. package/src/components/or-search-v3/OrSearch.vue +7 -1
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-0e91a808.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-19f43fe5.js';
9
+ import { O as OrSearch } from './OrSearch-a11b3621.js';
10
10
  import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
11
11
 
12
12
  var CardCollectionView;
@@ -150,7 +150,7 @@ var script = defineComponent({
150
150
  },
151
151
  search: {
152
152
  type: String,
153
- default: undefined
153
+ default: ''
154
154
  }
155
155
  },
156
156
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -273,6 +273,13 @@ var __vue_render__ = function () {
273
273
  },
274
274
  on: {
275
275
  "search": _vm.handleSearch
276
+ },
277
+ model: {
278
+ value: _vm.proxySearch,
279
+ callback: function ($$v) {
280
+ _vm.proxySearch = $$v;
281
+ },
282
+ expression: "proxySearch"
276
283
  }
277
284
  }), _vm._v(" "), _c('div', {
278
285
  staticClass: "layout-row gap-sm"
@@ -294,7 +301,7 @@ var __vue_render__ = function () {
294
301
  }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
295
302
  items: _vm.items,
296
303
  mode: _vm.proxyView
297
- }), _vm._v(" "), _vm._t(_vm.proxyView, function () {
304
+ }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
298
305
  return [_c('OrCardCollectionView', {
299
306
  attrs: {
300
307
  "items": _vm.items,
@@ -309,7 +316,11 @@ var __vue_render__ = function () {
309
316
  })];
310
317
  }, null, {
311
318
  items: _vm.items
312
- })], 2);
319
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
320
+ return [_vm._v("\n No results\n ")];
321
+ }, null, {
322
+ search: _vm.proxySearch
323
+ }) : _vm._e()], 2);
313
324
  };
314
325
  var __vue_staticRenderFns__ = [];
315
326
 
@@ -13,6 +13,11 @@ var script = defineComponent({
13
13
  },
14
14
  inheritAttrs: false,
15
15
  props: {
16
+ modelValue: {
17
+ type: String,
18
+ default: '',
19
+ required: false
20
+ },
16
21
  size: {
17
22
  type: String,
18
23
  default: InputBoxSize.M
@@ -37,13 +42,14 @@ var script = defineComponent({
37
42
  emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
38
43
  expose: ['root', 'focus', 'clear'],
39
44
  setup(props, context) {
45
+ var _a;
40
46
  // Refs
41
47
  const root = ref();
42
48
  // Styles
43
49
  const classAttribute = useClassAttribute();
44
50
  const rootStyles = computed(() => ['or-search', classAttribute.value]);
45
51
  // State
46
- const localModelValue = ref('');
52
+ const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
47
53
  // Events
48
54
  debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
49
55
  debounce: props.debounce
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
8
8
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../OrButton-0e91a808.js';
9
9
  export { O as OrCard } from '../OrCard-a6b30f8f.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-89428bbf.js';
11
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-8606c407.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-953657a7.js';
12
12
  export { _ as OrCardV3 } from '../OrCard-29116e1f.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
14
14
  export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
@@ -63,7 +63,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
64
64
  export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
65
65
  export { _ as OrRadioV3 } from '../OrRadio-cd39b20b.js';
66
- export { O as OrSearchV3 } from '../OrSearch-19f43fe5.js';
66
+ export { O as OrSearchV3 } from '../OrSearch-a11b3621.js';
67
67
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-21cc914e.js';
68
68
  export { _ as OrSelect } from '../OrSelect-a23d4210.js';
69
69
  export { _ as OrSelectV3 } from '../OrSelect-759b4410.js';
@@ -19,3 +19,4 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
19
19
  export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
20
  export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
21
  export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
+ export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
@@ -29,7 +29,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
29
29
  default: CardCollectionItem[];
30
30
  };
31
31
  view: {
32
- type: PropType<string>;
32
+ type: StringConstructor;
33
33
  default: CardCollectionView;
34
34
  };
35
35
  viewModes: {
@@ -46,7 +46,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
46
46
  };
47
47
  search: {
48
48
  type: StringConstructor;
49
- default: undefined;
49
+ default: string;
50
50
  };
51
51
  }, import("@vue/composition-api").ExtractPropTypes<{
52
52
  items: {
@@ -54,7 +54,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
54
  default: CardCollectionItem[];
55
55
  };
56
56
  view: {
57
- type: PropType<string>;
57
+ type: StringConstructor;
58
58
  default: CardCollectionView;
59
59
  };
60
60
  viewModes: {
@@ -71,7 +71,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
71
71
  };
72
72
  search: {
73
73
  type: StringConstructor;
74
- default: undefined;
74
+ default: string;
75
75
  };
76
76
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
77
77
  search: string;
@@ -1,4 +1,4 @@
1
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-8606c407.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-953657a7.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -20,7 +20,7 @@ import '../../OrButton-0e91a808.js';
20
20
  import '../../OrLoader-6a1f937b.js';
21
21
  import '../../OrMenu-fa47c888.js';
22
22
  import '../../OrMenuItem-26420908.js';
23
- import '../../OrSearch-19f43fe5.js';
23
+ import '../../OrSearch-a11b3621.js';
24
24
  import '../../OrInput-8b90e08f.js';
25
25
  import '../../OrError-aad17598.js';
26
26
  import '../../OrHint-f38a1940.js';
@@ -11,6 +11,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
11
11
  focus: () => void;
12
12
  clear: () => void;
13
13
  }> & import("@vue/composition-api").Data, {}, {}, {
14
+ modelValue: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ required: false;
18
+ };
14
19
  size: {
15
20
  type: PropType<SearchSize>;
16
21
  default: SearchSize;
@@ -32,6 +37,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
37
  default: boolean;
33
38
  };
34
39
  }, import("@vue/composition-api").ExtractPropTypes<{
40
+ modelValue: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ required: false;
44
+ };
35
45
  size: {
36
46
  type: PropType<SearchSize>;
37
47
  default: SearchSize;
@@ -53,6 +63,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
53
63
  default: boolean;
54
64
  };
55
65
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
66
+ modelValue: string;
56
67
  size: SearchSize;
57
68
  placeholder: string;
58
69
  debounce: number;
@@ -71,6 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
71
82
  focus: () => void;
72
83
  clear: () => void;
73
84
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
85
+ modelValue: string;
74
86
  size: SearchSize;
75
87
  placeholder: string;
76
88
  debounce: number;
@@ -79,6 +91,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
79
91
  } & {} & {
80
92
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
81
93
  }, {
94
+ modelValue: string;
82
95
  size: SearchSize;
83
96
  placeholder: string;
84
97
  debounce: number;
@@ -1,4 +1,4 @@
1
- export { O as OrSearchV3 } from '../../OrSearch-19f43fe5.js';
1
+ export { O as OrSearchV3 } from '../../OrSearch-a11b3621.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-79ec54ad.js';
3
3
  import '../../index-fa6eb4ca.js';
4
4
  import 'vue';