@onereach/ui-components 8.8.2-beta.3723.0 → 8.8.2-beta.3724.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 (28) hide show
  1. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +1 -1
  2. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +11 -0
  3. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -1
  4. package/dist/bundled/v2/components/OrCardCollectionV3/props.js +1 -1
  5. package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +1 -1
  6. package/dist/bundled/v2/components/{OrCardCollectionV3-fd707c35.js → OrCardCollectionV3-d1a732a8.js} +13 -3
  7. package/dist/bundled/v2/components/index.js +1 -1
  8. package/dist/bundled/v2/index.js +1 -1
  9. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +1 -1
  10. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +9 -0
  11. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  12. package/dist/bundled/v3/components/OrCardCollectionV3/props.js +1 -1
  13. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +1 -1
  14. package/dist/bundled/v3/components/{OrCardCollectionV3-e7260b17.js → OrCardCollectionV3-3db80008.js} +16 -4
  15. package/dist/bundled/v3/components/index.js +1 -1
  16. package/dist/bundled/v3/index.js +1 -1
  17. package/dist/esm/v2/{OrCardCollection-26e41ea3.js → OrCardCollection-cbecf129.js} +13 -3
  18. package/dist/esm/v2/components/index.js +1 -1
  19. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +11 -0
  20. package/dist/esm/v2/components/or-card-collection-v3/index.js +1 -1
  21. package/dist/esm/v2/index.js +1 -1
  22. package/dist/esm/v3/{OrCardCollection-761cb932.js → OrCardCollection-c5395a2f.js} +16 -4
  23. package/dist/esm/v3/components/index.js +1 -1
  24. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +9 -0
  25. package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
  26. package/dist/esm/v3/index.js +1 -1
  27. package/package.json +1 -1
  28. package/src/components/or-card-collection-v3/OrCardCollection.vue +17 -2
@@ -1,2 +1,2 @@
1
- export { _ as default } from '../OrCardCollectionV3-fd707c35.js';
1
+ export { _ as default } from '../OrCardCollectionV3-d1a732a8.js';
2
2
  import '../OrAvatar-7bdb7c9d.js';
@@ -43,6 +43,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
43
43
  type: NumberConstructor;
44
44
  default: undefined;
45
45
  };
46
+ loading: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
46
50
  }, import("@vue/composition-api").ExtractPropTypes<{
47
51
  items: {
48
52
  type: PropType<CardCollectionItem[]>;
@@ -76,6 +80,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
76
80
  type: NumberConstructor;
77
81
  default: undefined;
78
82
  };
83
+ loading: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
79
87
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
80
88
  sort: string;
81
89
  items: CardCollectionItem[];
@@ -85,6 +93,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
85
93
  search: string;
86
94
  searchPlaceholder: string;
87
95
  searchDebounce: number;
96
+ loading: boolean;
88
97
  } & {} & {
89
98
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
90
99
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -105,6 +114,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
105
114
  search: string;
106
115
  searchPlaceholder: string;
107
116
  searchDebounce: number;
117
+ loading: boolean;
108
118
  } & {} & {
109
119
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
110
120
  }, {
@@ -116,5 +126,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
116
126
  search: string;
117
127
  searchPlaceholder: string;
118
128
  searchDebounce: number;
129
+ loading: boolean;
119
130
  }, true>);
120
131
  export default _default;
@@ -1 +1 @@
1
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-fd707c35.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-d1a732a8.js';
@@ -1 +1 @@
1
- export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-fd707c35.js';
1
+ export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-d1a732a8.js';
@@ -1 +1 @@
1
- export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-fd707c35.js';
1
+ export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-d1a732a8.js';
@@ -3,6 +3,7 @@ import { n as normalizeComponent } from './OrAvatar-7bdb7c9d.js';
3
3
  import { _ as __vue_component__$2 } from './OrIconButtonV3-9003932a.js';
4
4
  import { _ as __vue_component__$3 } from './OrSortingV3-cb5a552c.js';
5
5
  import { OrSearchV3 as __vue_component__$4 } from './OrSearchV3/index.js';
6
+ import { _ as __vue_component__$5 } from './OrLoaderV3-b132904d.js';
6
7
 
7
8
  var CardCollectionView;
8
9
  (function (CardCollectionView) {
@@ -122,7 +123,8 @@ var script = defineComponent({
122
123
  OrCardCollectionView,
123
124
  OrIconButton: __vue_component__$2,
124
125
  OrSorting: __vue_component__$3,
125
- OrSearch: __vue_component__$4
126
+ OrSearch: __vue_component__$4,
127
+ OrLoader: __vue_component__$5
126
128
  },
127
129
  props: {
128
130
  items: {
@@ -156,6 +158,10 @@ var script = defineComponent({
156
158
  searchDebounce: {
157
159
  type: Number,
158
160
  default: undefined
161
+ },
162
+ loading: {
163
+ type: Boolean,
164
+ default: false
159
165
  }
160
166
  },
161
167
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -261,7 +267,7 @@ var __vue_render__ = function () {
261
267
  }), 1)] : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _vm._t("header", null, null, {
262
268
  items: _vm.items,
263
269
  mode: _vm.proxyView
264
- }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
270
+ }), _vm._v(" "), _vm.items.length && !_vm.loading ? _vm._t(_vm.proxyView, function () {
265
271
  return [_c('OrCardCollectionView', {
266
272
  attrs: {
267
273
  "items": _vm.items,
@@ -282,10 +288,14 @@ var __vue_render__ = function () {
282
288
  })];
283
289
  }, null, {
284
290
  items: _vm.items
285
- }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
291
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 && !_vm.loading ? _vm._t("noSearchResults", function () {
286
292
  return [_vm._v("\n No results\n ")];
287
293
  }, null, {
288
294
  search: _vm.proxySearch
295
+ }) : _vm._e(), _vm._v(" "), _vm.loading ? _vm._t("loading", function () {
296
+ return [_c('div', {
297
+ staticClass: "h-full"
298
+ }, [_c('OrLoader')], 1)];
289
299
  }) : _vm._e()], 2);
290
300
  };
291
301
  var __vue_staticRenderFns__ = [];
@@ -8,7 +8,7 @@ export { B as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, a as BUTTON_SIZE, b as BUTT
8
8
  export { default as OrIconButton, default as OrIconButtonV2 } from './OrIconButtonV2/OrIconButton.js';
9
9
  export { default as OrCard } from './OrCard/OrCard.js';
10
10
  export { CARD_COLLECTION_LAYOUT, OrCardCollection } from './OrCardCollection/index.js';
11
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-fd707c35.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-d1a732a8.js';
12
12
  export { C as CardPadding, _ as OrCardV3 } from './OrCardV3-b60e8c99.js';
13
13
  export { default as OrCheckbox } from './OrCheckbox/OrCheckbox.js';
14
14
  export { default as OrCheckboxGroupV3 } from './OrCheckboxGroupV3/OrCheckboxGroup.js';
@@ -4,7 +4,7 @@ export { L as AvatarColor, K as AvatarSize, H as HSL_LIMITS, _ as OrAvatarV3, R
4
4
  export { OrButton, OrButtonColors, OrButtonSizes, OrButtonViews } from './components/OrButton/index.js';
5
5
  export { _ as OrButtonGroupV3 } from './components/OrButtonGroupV3-73ee40fa.js';
6
6
  export { CARD_COLLECTION_LAYOUT, OrCardCollection } from './components/OrCardCollection/index.js';
7
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-fd707c35.js';
7
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-d1a732a8.js';
8
8
  export { C as CardPadding, _ as OrCardV3 } from './components/OrCardV3-b60e8c99.js';
9
9
  export { default as OrCheckbox } from './components/OrCheckbox/OrCheckbox.js';
10
10
  export { default as OrCheckboxGroupV3 } from './components/OrCheckboxGroupV3/OrCheckboxGroup.js';
@@ -1 +1 @@
1
- export { s as default } from '../OrCardCollectionV3-e7260b17.js';
1
+ export { s as default } from '../OrCardCollectionV3-3db80008.js';
@@ -34,6 +34,10 @@ declare const _default: import("vue-demi").DefineComponent<{
34
34
  type: NumberConstructor;
35
35
  default: undefined;
36
36
  };
37
+ loading: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
37
41
  }, {
38
42
  root: import("vue-demi").Ref<HTMLElement | undefined>;
39
43
  rootStyles: import("vue-demi").ComputedRef<string[]>;
@@ -76,6 +80,10 @@ declare const _default: import("vue-demi").DefineComponent<{
76
80
  type: NumberConstructor;
77
81
  default: undefined;
78
82
  };
83
+ loading: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
79
87
  }>> & {
80
88
  onViewChange?: ((...args: any[]) => any) | undefined;
81
89
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -89,5 +97,6 @@ declare const _default: import("vue-demi").DefineComponent<{
89
97
  sortOptions: SortOption[];
90
98
  searchPlaceholder: string;
91
99
  searchDebounce: number;
100
+ loading: boolean;
92
101
  }>;
93
102
  export default _default;
@@ -1 +1 @@
1
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-e7260b17.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-3db80008.js';
@@ -1 +1 @@
1
- export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-e7260b17.js';
1
+ export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-3db80008.js';
@@ -1 +1 @@
1
- export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-e7260b17.js';
1
+ export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-3db80008.js';
@@ -3,6 +3,7 @@ import { defineComponent, computed, ref, watch } from 'vue-demi';
3
3
  import { s as script$2 } from './OrIconButtonV3-b933506e.js';
4
4
  import { s as script$3 } from './OrSortingV3-cf914097.js';
5
5
  import { OrSearchV3 as script$4 } from './OrSearchV3/index.js';
6
+ import { s as script$5 } from './OrLoaderV3-0ad5cd2c.js';
6
7
 
7
8
  var CardCollectionView;
8
9
  (function (CardCollectionView) {
@@ -97,7 +98,8 @@ var script = defineComponent({
97
98
  OrCardCollectionView: script$1,
98
99
  OrIconButton: script$2,
99
100
  OrSorting: script$3,
100
- OrSearch: script$4
101
+ OrSearch: script$4,
102
+ OrLoader: script$5
101
103
  },
102
104
  props: {
103
105
  items: {
@@ -131,6 +133,10 @@ var script = defineComponent({
131
133
  searchDebounce: {
132
134
  type: Number,
133
135
  default: undefined
136
+ },
137
+ loading: {
138
+ type: Boolean,
139
+ default: false
134
140
  }
135
141
  },
136
142
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -182,11 +188,15 @@ const _hoisted_1 = {
182
188
  key: 0,
183
189
  class: "layout-row gap-sm"
184
190
  };
191
+ const _hoisted_2 = {
192
+ class: "h-full"
193
+ };
185
194
  function render(_ctx, _cache, $props, $setup, $data, $options) {
186
195
  const _component_OrSorting = resolveComponent("OrSorting");
187
196
  const _component_OrSearch = resolveComponent("OrSearch");
188
197
  const _component_OrIconButton = resolveComponent("OrIconButton");
189
198
  const _component_OrCardCollectionView = resolveComponent("OrCardCollectionView");
199
+ const _component_OrLoader = resolveComponent("OrLoader");
190
200
  return openBlock(), createElementBlock("div", {
191
201
  ref: "root",
192
202
  class: normalizeClass(_ctx.rootStyles)
@@ -220,7 +230,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
220
230
  }), 128 /* KEYED_FRAGMENT */))])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)], 2 /* CLASS */), renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({
221
231
  items: _ctx.items,
222
232
  mode: _ctx.proxyView
223
- }))), _ctx.items.length ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
233
+ }))), _ctx.items.length && !_ctx.loading ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
224
234
  key: 0
225
235
  }, {
226
236
  items: _ctx.items
@@ -231,11 +241,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
231
241
  item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
232
242
  viewEnd: withCtx(() => [renderSlot(_ctx.$slots, "viewEnd")]),
233
243
  _: 3 /* FORWARDED */
234
- }, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
244
+ }, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 && !_ctx.loading ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
235
245
  key: 1
236
246
  }, {
237
247
  search: _ctx.proxySearch
238
- })), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true)], 2 /* CLASS */);
248
+ })), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true), _ctx.loading ? renderSlot(_ctx.$slots, "loading", {
249
+ key: 2
250
+ }, () => [createElementVNode("div", _hoisted_2, [createVNode(_component_OrLoader)])]) : createCommentVNode("v-if", true)], 2 /* CLASS */);
239
251
  }
240
252
 
241
253
  script.render = render;
@@ -8,7 +8,7 @@ export { B as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, a as BUTTON_SIZE, b as BUTT
8
8
  export { default as OrIconButton, default as OrIconButtonV2 } from './OrIconButtonV2/OrIconButton.js';
9
9
  export { default as OrCard } from './OrCard/OrCard.js';
10
10
  export { CARD_COLLECTION_LAYOUT, OrCardCollection } from './OrCardCollection/index.js';
11
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-e7260b17.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-3db80008.js';
12
12
  export { C as CardPadding, s as OrCardV3 } from './OrCardV3-9d09fb37.js';
13
13
  export { default as OrCheckbox } from './OrCheckbox/OrCheckbox.js';
14
14
  export { default as OrCheckboxGroupV3 } from './OrCheckboxGroupV3/OrCheckboxGroup.js';
@@ -4,7 +4,7 @@ export { M as AvatarColor, L as AvatarSize, H as HSL_LIMITS, K as OrAvatarV3, R
4
4
  export { OrButton, OrButtonColors, OrButtonSizes, OrButtonViews } from './components/OrButton/index.js';
5
5
  export { s as OrButtonGroupV3 } from './components/OrButtonGroupV3-4563950d.js';
6
6
  export { CARD_COLLECTION_LAYOUT, OrCardCollection } from './components/OrCardCollection/index.js';
7
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-e7260b17.js';
7
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-3db80008.js';
8
8
  export { C as CardPadding, s as OrCardV3 } from './components/OrCardV3-9d09fb37.js';
9
9
  export { default as OrCheckboxGroupV3 } from './components/OrCheckboxGroupV3/OrCheckboxGroup.js';
10
10
  export { s as OrChip, a as OrChips } from './components/OrChips-8204d690.js';
@@ -2,6 +2,7 @@ import { defineComponent, computed, ref, watch } from 'vue-demi';
2
2
  import { _ as __vue_component__$2 } from './OrIconButton-4d2649e9.js';
3
3
  import { _ as __vue_component__$4 } from './OrSearch-7a853881.js';
4
4
  import './OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
5
+ import { _ as __vue_component__$5 } from './OrLoader-b0c381f9.js';
5
6
  import { _ as __vue_component__$3 } from './OrSorting-faf377cc.js';
6
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
8
 
@@ -122,7 +123,8 @@ var script = defineComponent({
122
123
  OrCardCollectionView: __vue_component__$1,
123
124
  OrIconButton: __vue_component__$2,
124
125
  OrSorting: __vue_component__$3,
125
- OrSearch: __vue_component__$4
126
+ OrSearch: __vue_component__$4,
127
+ OrLoader: __vue_component__$5
126
128
  },
127
129
  props: {
128
130
  items: {
@@ -156,6 +158,10 @@ var script = defineComponent({
156
158
  searchDebounce: {
157
159
  type: Number,
158
160
  default: undefined
161
+ },
162
+ loading: {
163
+ type: Boolean,
164
+ default: false
159
165
  }
160
166
  },
161
167
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -261,7 +267,7 @@ var __vue_render__ = function () {
261
267
  }), 1)] : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _vm._t("header", null, null, {
262
268
  items: _vm.items,
263
269
  mode: _vm.proxyView
264
- }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
270
+ }), _vm._v(" "), _vm.items.length && !_vm.loading ? _vm._t(_vm.proxyView, function () {
265
271
  return [_c('OrCardCollectionView', {
266
272
  attrs: {
267
273
  "items": _vm.items,
@@ -282,10 +288,14 @@ var __vue_render__ = function () {
282
288
  })];
283
289
  }, null, {
284
290
  items: _vm.items
285
- }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
291
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 && !_vm.loading ? _vm._t("noSearchResults", function () {
286
292
  return [_vm._v("\n No results\n ")];
287
293
  }, null, {
288
294
  search: _vm.proxySearch
295
+ }) : _vm._e(), _vm._v(" "), _vm.loading ? _vm._t("loading", function () {
296
+ return [_c('div', {
297
+ staticClass: "h-full"
298
+ }, [_c('OrLoader')], 1)];
289
299
  }) : _vm._e()], 2);
290
300
  };
291
301
  var __vue_staticRenderFns__ = [];
@@ -10,7 +10,7 @@ export { _ as OrIconButton, _ as OrIconButtonV2 } from '../OrIconButton-257b38f2
10
10
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from '../OrIconButton.vue_rollup-plugin-vue_styles.0-91855f16.js';
11
11
  export { _ as OrCard } from '../OrCard-c44d9783.js';
12
12
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-bea023f8.js';
13
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-26e41ea3.js';
13
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-cbecf129.js';
14
14
  export { C as CardPadding, _ as OrCardV3 } from '../OrCard-263ce0ff.js';
15
15
  export { _ as OrCheckbox } from '../OrCheckbox-fcd6b64c.js';
16
16
  export { _ as OrCheckboxGroupV3 } from '../OrCheckboxGroup-98bc3610.js';
@@ -43,6 +43,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
43
43
  type: NumberConstructor;
44
44
  default: undefined;
45
45
  };
46
+ loading: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
46
50
  }, import("@vue/composition-api").ExtractPropTypes<{
47
51
  items: {
48
52
  type: PropType<CardCollectionItem[]>;
@@ -76,6 +80,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
76
80
  type: NumberConstructor;
77
81
  default: undefined;
78
82
  };
83
+ loading: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
79
87
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
80
88
  sort: string;
81
89
  items: CardCollectionItem[];
@@ -85,6 +93,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
85
93
  search: string;
86
94
  searchPlaceholder: string;
87
95
  searchDebounce: number;
96
+ loading: boolean;
88
97
  } & {} & {
89
98
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
90
99
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -105,6 +114,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
105
114
  search: string;
106
115
  searchPlaceholder: string;
107
116
  searchDebounce: number;
117
+ loading: boolean;
108
118
  } & {} & {
109
119
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
110
120
  }, {
@@ -116,5 +126,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
116
126
  search: string;
117
127
  searchPlaceholder: string;
118
128
  searchDebounce: number;
129
+ loading: boolean;
119
130
  }, true>);
120
131
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-26e41ea3.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-cbecf129.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-4d2649e9.js';
4
4
  import '../../OrIcon-0343b3d8.js';
@@ -10,7 +10,7 @@ export { _ as OrIconButton, _ as OrIconButtonV2 } from './OrIconButton-257b38f2.
10
10
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from './OrIconButton.vue_rollup-plugin-vue_styles.0-91855f16.js';
11
11
  export { _ as OrCard } from './OrCard-c44d9783.js';
12
12
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-bea023f8.js';
13
- export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-26e41ea3.js';
13
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-cbecf129.js';
14
14
  export { C as CardPadding, _ as OrCardV3 } from './OrCard-263ce0ff.js';
15
15
  export { _ as OrCheckbox } from './OrCheckbox-fcd6b64c.js';
16
16
  export { _ as OrCheckboxGroupV3 } from './OrCheckboxGroup-98bc3610.js';
@@ -2,6 +2,7 @@ import { defineComponent, computed, ref, watch } from 'vue-demi';
2
2
  import { s as script$2 } from './OrIconButton-793c4a52.js';
3
3
  import { s as script$4 } from './OrSearch-6413323a.js';
4
4
  import './OrInputBox-f0bac539.js';
5
+ import { s as script$5 } from './OrLoader-b79022da.js';
5
6
  import { s as script$3 } from './OrSorting-bfe2200c.js';
6
7
  import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createBlock, createCommentVNode, createVNode, normalizeProps, guardReactiveProps, withCtx } from 'vue';
7
8
 
@@ -98,7 +99,8 @@ var script = defineComponent({
98
99
  OrCardCollectionView: script$1,
99
100
  OrIconButton: script$2,
100
101
  OrSorting: script$3,
101
- OrSearch: script$4
102
+ OrSearch: script$4,
103
+ OrLoader: script$5
102
104
  },
103
105
  props: {
104
106
  items: {
@@ -132,6 +134,10 @@ var script = defineComponent({
132
134
  searchDebounce: {
133
135
  type: Number,
134
136
  default: undefined
137
+ },
138
+ loading: {
139
+ type: Boolean,
140
+ default: false
135
141
  }
136
142
  },
137
143
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -183,11 +189,15 @@ const _hoisted_1 = {
183
189
  key: 0,
184
190
  class: "layout-row gap-sm"
185
191
  };
192
+ const _hoisted_2 = {
193
+ class: "h-full"
194
+ };
186
195
  function render(_ctx, _cache, $props, $setup, $data, $options) {
187
196
  const _component_OrSorting = resolveComponent("OrSorting");
188
197
  const _component_OrSearch = resolveComponent("OrSearch");
189
198
  const _component_OrIconButton = resolveComponent("OrIconButton");
190
199
  const _component_OrCardCollectionView = resolveComponent("OrCardCollectionView");
200
+ const _component_OrLoader = resolveComponent("OrLoader");
191
201
  return openBlock(), createElementBlock("div", {
192
202
  ref: "root",
193
203
  class: normalizeClass(_ctx.rootStyles)
@@ -221,7 +231,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
221
231
  }), 128 /* KEYED_FRAGMENT */))])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)], 2 /* CLASS */), renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({
222
232
  items: _ctx.items,
223
233
  mode: _ctx.proxyView
224
- }))), _ctx.items.length ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
234
+ }))), _ctx.items.length && !_ctx.loading ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
225
235
  key: 0
226
236
  }, {
227
237
  items: _ctx.items
@@ -232,11 +242,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
232
242
  item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
233
243
  viewEnd: withCtx(() => [renderSlot(_ctx.$slots, "viewEnd")]),
234
244
  _: 3 /* FORWARDED */
235
- }, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
245
+ }, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 && !_ctx.loading ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
236
246
  key: 1
237
247
  }, {
238
248
  search: _ctx.proxySearch
239
- })), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true)], 2 /* CLASS */);
249
+ })), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true), _ctx.loading ? renderSlot(_ctx.$slots, "loading", {
250
+ key: 2
251
+ }, () => [createElementVNode("div", _hoisted_2, [createVNode(_component_OrLoader)])]) : createCommentVNode("v-if", true)], 2 /* CLASS */);
240
252
  }
241
253
 
242
254
  script.render = render;
@@ -8,7 +8,7 @@ export { s as OrButtonV2 } from '../OrButton-130ad8d9.js';
8
8
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrIconButton, s as OrIconButtonV2 } from '../OrIconButton-287bb86a.js';
9
9
  export { s as OrCard } from '../OrCard-e3a5aea4.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-8c81a2d5.js';
11
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-761cb932.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-c5395a2f.js';
12
12
  export { C as CardPadding, s as OrCardV3 } from '../OrCard-ee23cedc.js';
13
13
  export { s as OrCheckbox } from '../OrCheckbox-5666c954.js';
14
14
  export { s as OrCheckboxGroupV3 } from '../OrCheckboxGroup-d6bf486e.js';
@@ -34,6 +34,10 @@ declare const _default: import("vue-demi").DefineComponent<{
34
34
  type: NumberConstructor;
35
35
  default: undefined;
36
36
  };
37
+ loading: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
37
41
  }, {
38
42
  root: import("vue-demi").Ref<HTMLElement | undefined>;
39
43
  rootStyles: import("vue-demi").ComputedRef<string[]>;
@@ -76,6 +80,10 @@ declare const _default: import("vue-demi").DefineComponent<{
76
80
  type: NumberConstructor;
77
81
  default: undefined;
78
82
  };
83
+ loading: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
79
87
  }>> & {
80
88
  onViewChange?: ((...args: any[]) => any) | undefined;
81
89
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -89,5 +97,6 @@ declare const _default: import("vue-demi").DefineComponent<{
89
97
  sortOptions: SortOption[];
90
98
  searchPlaceholder: string;
91
99
  searchDebounce: number;
100
+ loading: boolean;
92
101
  }>;
93
102
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-761cb932.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-c5395a2f.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-793c4a52.js';
4
4
  import '../../OrIcon-8f6c9c29.js';
@@ -8,7 +8,7 @@ export { s as OrButtonV2 } from './OrButton-130ad8d9.js';
8
8
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrIconButton, s as OrIconButtonV2 } from './OrIconButton-287bb86a.js';
9
9
  export { s as OrCard } from './OrCard-e3a5aea4.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-8c81a2d5.js';
11
- export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-761cb932.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-c5395a2f.js';
12
12
  export { C as CardPadding, s as OrCardV3 } from './OrCard-ee23cedc.js';
13
13
  export { s as OrCheckbox } from './OrCheckbox-5666c954.js';
14
14
  export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-d6bf486e.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "8.8.2-beta.3723.0",
3
+ "version": "8.8.2-beta.3724.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -49,7 +49,7 @@
49
49
  />
50
50
 
51
51
  <slot
52
- v-if="items.length"
52
+ v-if="items.length && !loading"
53
53
  :name="proxyView"
54
54
  v-bind="{items}"
55
55
  >
@@ -72,12 +72,20 @@
72
72
  </slot>
73
73
 
74
74
  <slot
75
- v-else-if="items.length === 0 && proxySearch.length > 0"
75
+ v-else-if="items.length === 0 && proxySearch.length > 0 && !loading"
76
76
  name="noSearchResults"
77
77
  v-bind="{search: proxySearch}"
78
78
  >
79
79
  No results
80
80
  </slot>
81
+ <slot
82
+ v-if="loading"
83
+ name="loading"
84
+ >
85
+ <div class="h-full">
86
+ <OrLoader />
87
+ </div>
88
+ </slot>
81
89
  </div>
82
90
  </template>
83
91
 
@@ -85,6 +93,7 @@
85
93
  import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
86
94
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
87
95
  import { OrSearchV3 as OrSearch } from '../or-search-v3';
96
+ import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
88
97
  import { OrSortingV3 as OrSorting, SortOption } from '../or-sorting-v3';
89
98
  import OrCardCollectionView from './partials/OrCardCollectionView.vue3.vue';
90
99
  import { defaultViewModes, gridView } from './props';
@@ -99,6 +108,7 @@ export default defineComponent({
99
108
  OrIconButton,
100
109
  OrSorting,
101
110
  OrSearch,
111
+ OrLoader,
102
112
  },
103
113
 
104
114
  props: {
@@ -141,6 +151,11 @@ export default defineComponent({
141
151
  type: Number,
142
152
  default: undefined,
143
153
  },
154
+
155
+ loading: {
156
+ type: Boolean,
157
+ default: false,
158
+ },
144
159
  },
145
160
 
146
161
  emits: [