@onereach/ui-components 8.8.2 → 8.8.3-beta.3732.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 (30) 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-83802089.js → OrCardCollectionV3-2bf42dd9.js} +20 -4
  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-ce1aa3a6.js → OrCardCollectionV3-4f84d1ed.js} +18 -5
  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-8307743e.js → OrCardCollection-c6d99e6f.js} +20 -4
  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-a2b977b7.js → OrCardCollection-e5772d94.js} +18 -5
  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 +2 -3
  28. package/src/components/or-card-collection-v3/OrCardCollection.vue +22 -2
  29. package/src/components/or-card-collection-v3/partials/OrCardCollectionView.vue2.vue +3 -0
  30. package/src/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue +3 -0
@@ -1,2 +1,2 @@
1
- export { _ as default } from '../OrCardCollectionV3-83802089.js';
1
+ export { _ as default } from '../OrCardCollectionV3-2bf42dd9.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-83802089.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-2bf42dd9.js';
@@ -1 +1 @@
1
- export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-83802089.js';
1
+ export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-2bf42dd9.js';
@@ -1 +1 @@
1
- export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-83802089.js';
1
+ export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-2bf42dd9.js';
@@ -3,6 +3,7 @@ import { n as normalizeComponent } from './OrAvatar-7bdb7c9d.js';
3
3
  import { _ as __vue_component__$2 } from './OrIconButtonV3-679bc6fa.js';
4
4
  import { _ as __vue_component__$3 } from './OrSortingV3-5f63562a.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) {
@@ -92,7 +93,7 @@ var __vue_render__$1 = function () {
92
93
  item: item,
93
94
  mode: _vm.mode
94
95
  });
95
- })], 2);
96
+ }), _vm._v(" "), _vm._t("viewEnd")], 2);
96
97
  };
97
98
  var __vue_staticRenderFns__$1 = [];
98
99
 
@@ -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,
@@ -272,14 +278,24 @@ var __vue_render__ = function () {
272
278
  fn: function (props) {
273
279
  return [_vm._t("item", null, null, props)];
274
280
  }
281
+ }, {
282
+ key: "viewEnd",
283
+ fn: function () {
284
+ return [_vm._t("viewEnd")];
285
+ },
286
+ proxy: true
275
287
  }], null, true)
276
288
  })];
277
289
  }, null, {
278
290
  items: _vm.items
279
- }) : _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 () {
280
292
  return [_vm._v("\n No results\n ")];
281
293
  }, null, {
282
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)];
283
299
  }) : _vm._e()], 2);
284
300
  };
285
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-83802089.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-2bf42dd9.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-83802089.js';
7
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-2bf42dd9.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-ce1aa3a6.js';
1
+ export { s as default } from '../OrCardCollectionV3-4f84d1ed.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-ce1aa3a6.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-4f84d1ed.js';
@@ -1 +1 @@
1
- export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-ce1aa3a6.js';
1
+ export { C as CardCollectionView, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollectionV3-4f84d1ed.js';
@@ -1 +1 @@
1
- export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-ce1aa3a6.js';
1
+ export { a as CardCollection, e as CardCollectionContent, f as CardCollectionContentViews, b as CardCollectionToolbar, c as CardCollectionToolbarPanel } from '../OrCardCollectionV3-4f84d1ed.js';
@@ -3,6 +3,7 @@ import { defineComponent, computed, ref, watch } from 'vue-demi';
3
3
  import { s as script$2 } from './OrIconButtonV3-1f40a60a.js';
4
4
  import { s as script$3 } from './OrSortingV3-e44787bc.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) {
@@ -85,7 +86,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
85
86
  item,
86
87
  mode: _ctx.mode
87
88
  }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
88
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
89
+ }), 128 /* KEYED_FRAGMENT */)), renderSlot(_ctx.$slots, "viewEnd")], 2 /* CLASS */);
89
90
  }
90
91
 
91
92
  script$1.render = render$1;
@@ -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
@@ -229,12 +239,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
229
239
  mode: _ctx.proxyView
230
240
  }, {
231
241
  item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
242
+ viewEnd: withCtx(() => [renderSlot(_ctx.$slots, "viewEnd")]),
232
243
  _: 3 /* FORWARDED */
233
- }, 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({
234
245
  key: 1
235
246
  }, {
236
247
  search: _ctx.proxySearch
237
- })), () => [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 */);
238
251
  }
239
252
 
240
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-ce1aa3a6.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollectionV3-4f84d1ed.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-ce1aa3a6.js';
7
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './components/OrCardCollectionV3-4f84d1ed.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-02ff40b7.js';
3
3
  import { _ as __vue_component__$4 } from './OrSearch-9de080c7.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-b1eb1e6b.js';
6
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
8
 
@@ -93,7 +94,7 @@ var __vue_render__$1 = function () {
93
94
  item: item,
94
95
  mode: _vm.mode
95
96
  });
96
- })], 2);
97
+ }), _vm._v(" "), _vm._t("viewEnd")], 2);
97
98
  };
98
99
  var __vue_staticRenderFns__$1 = [];
99
100
 
@@ -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,
@@ -272,14 +278,24 @@ var __vue_render__ = function () {
272
278
  fn: function (props) {
273
279
  return [_vm._t("item", null, null, props)];
274
280
  }
281
+ }, {
282
+ key: "viewEnd",
283
+ fn: function () {
284
+ return [_vm._t("viewEnd")];
285
+ },
286
+ proxy: true
275
287
  }], null, true)
276
288
  })];
277
289
  }, null, {
278
290
  items: _vm.items
279
- }) : _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 () {
280
292
  return [_vm._v("\n No results\n ")];
281
293
  }, null, {
282
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)];
283
299
  }) : _vm._e()], 2);
284
300
  };
285
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-8307743e.js';
13
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-c6d99e6f.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-8307743e.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-c6d99e6f.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-02ff40b7.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-8307743e.js';
13
+ export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-c6d99e6f.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-1cea9181.js';
3
3
  import { s as script$4 } from './OrSearch-0f62a15d.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-714a166c.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
 
@@ -86,7 +87,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
86
87
  item,
87
88
  mode: _ctx.mode
88
89
  }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
89
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
90
+ }), 128 /* KEYED_FRAGMENT */)), renderSlot(_ctx.$slots, "viewEnd")], 2 /* CLASS */);
90
91
  }
91
92
 
92
93
  script$1.render = render$1;
@@ -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
@@ -230,12 +240,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
230
240
  mode: _ctx.proxyView
231
241
  }, {
232
242
  item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
243
+ viewEnd: withCtx(() => [renderSlot(_ctx.$slots, "viewEnd")]),
233
244
  _: 3 /* FORWARDED */
234
- }, 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({
235
246
  key: 1
236
247
  }, {
237
248
  search: _ctx.proxySearch
238
- })), () => [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 */);
239
252
  }
240
253
 
241
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-a2b977b7.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-e5772d94.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-a2b977b7.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-e5772d94.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-1cea9181.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-a2b977b7.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-e5772d94.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",
3
+ "version": "8.8.3-beta.3732.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -176,6 +176,5 @@
176
176
  "default": "./dist/bundled/v3/components/*/index.js"
177
177
  },
178
178
  "./package.json": "./package.json"
179
- },
180
- "gitHead": "f06b875da98d439caf3f66caea4f5e00ac75608e"
179
+ }
181
180
  }
@@ -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
  >
@@ -63,16 +63,29 @@
63
63
  v-bind="props"
64
64
  />
65
65
  </template>
66
+ <template v-slot:viewEnd>
67
+ <slot
68
+ name="viewEnd"
69
+ />
70
+ </template>
66
71
  </OrCardCollectionView>
67
72
  </slot>
68
73
 
69
74
  <slot
70
- v-else-if="items.length === 0 && proxySearch.length > 0"
75
+ v-else-if="items.length === 0 && proxySearch.length > 0 && !loading"
71
76
  name="noSearchResults"
72
77
  v-bind="{search: proxySearch}"
73
78
  >
74
79
  No results
75
80
  </slot>
81
+ <slot
82
+ v-if="loading"
83
+ name="loading"
84
+ >
85
+ <div class="h-full">
86
+ <OrLoader />
87
+ </div>
88
+ </slot>
76
89
  </div>
77
90
  </template>
78
91
 
@@ -80,6 +93,7 @@
80
93
  import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
81
94
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
82
95
  import { OrSearchV3 as OrSearch } from '../or-search-v3';
96
+ import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
83
97
  import { OrSortingV3 as OrSorting, SortOption } from '../or-sorting-v3';
84
98
  import OrCardCollectionView from './partials/OrCardCollectionView.vue3.vue';
85
99
  import { defaultViewModes, gridView } from './props';
@@ -94,6 +108,7 @@ export default defineComponent({
94
108
  OrIconButton,
95
109
  OrSorting,
96
110
  OrSearch,
111
+ OrLoader,
97
112
  },
98
113
 
99
114
  props: {
@@ -136,6 +151,11 @@ export default defineComponent({
136
151
  type: Number,
137
152
  default: undefined,
138
153
  },
154
+
155
+ loading: {
156
+ type: Boolean,
157
+ default: false,
158
+ },
139
159
  },
140
160
 
141
161
  emits: [
@@ -10,6 +10,9 @@
10
10
  >
11
11
  {{ item.key }}
12
12
  </slot>
13
+ <slot
14
+ name="viewEnd"
15
+ />
13
16
  </div>
14
17
  </template>
15
18
 
@@ -11,6 +11,9 @@
11
11
  >
12
12
  {{ item.key }}
13
13
  </slot>
14
+ <slot
15
+ name="viewEnd"
16
+ />
14
17
  </div>
15
18
  </template>
16
19