@onereach/ui-components 2.68.0 → 2.68.1-beta.2065.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/{OrCardCollection-dac9fd1e.js → OrCardCollection-0eaf7489.js} +78 -17
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -3
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7a07be47.js → OrCardCollection.vue_vue_type_script_lang-26d9a7c8.js} +40 -18
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -3
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v3/index.js +197 -197
- package/dist/esm/v2/{OrCardCollection-e46b220e.js → OrCardCollection-7bf35252.js} +76 -16
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -3
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrCardCollection-5924d035.js → OrCardCollection-9682c6ef.js} +49 -28
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -3
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +96 -5
- package/src/components/or-card-collection-v3/OrCardCollection.vue +21 -33
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +39 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +40 -0
- package/src/components/or-card-collection-v3/types.ts +1 -1
|
@@ -67,6 +67,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
67
67
|
render: __vue_render__,
|
|
68
68
|
staticRenderFns: __vue_staticRenderFns__
|
|
69
69
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
70
|
-
var
|
|
70
|
+
var __vue_component__$1 = __vue_component__;
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { __vue_component__$1 as _ };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import {
|
|
2
|
+
import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
3
4
|
import { O as OrIconButton } from './OrIconButton-a215104c.js';
|
|
4
5
|
import { O as OrInput } from './OrInput-4b82eb59.js';
|
|
5
6
|
import { O as OrSortHeader } from './OrSortHeader-396e6a7c.js';
|
|
6
7
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
7
|
-
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
|
-
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
8
|
|
|
10
9
|
var CardCollectionView;
|
|
11
10
|
(function (CardCollectionView) {
|
|
@@ -42,10 +41,69 @@ const CardCollectionContentViews = {
|
|
|
42
41
|
'list': []
|
|
43
42
|
};
|
|
44
43
|
|
|
44
|
+
var script$1 = defineComponent({
|
|
45
|
+
name: 'OrCardCollectionView',
|
|
46
|
+
props: {
|
|
47
|
+
items: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default: []
|
|
50
|
+
},
|
|
51
|
+
mode: {
|
|
52
|
+
type: String,
|
|
53
|
+
required: true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
setup(props) {
|
|
57
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
|
|
58
|
+
return {
|
|
59
|
+
contentStyles
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/* script */
|
|
65
|
+
const __vue_script__$1 = script$1;
|
|
66
|
+
|
|
67
|
+
/* template */
|
|
68
|
+
var __vue_render__$1 = function () {
|
|
69
|
+
var _vm = this;
|
|
70
|
+
var _h = _vm.$createElement;
|
|
71
|
+
var _c = _vm._self._c || _h;
|
|
72
|
+
return _c('div', {
|
|
73
|
+
class: _vm.contentStyles
|
|
74
|
+
}, [_vm._l(_vm.items, function (item) {
|
|
75
|
+
return _vm._t("item", null, null, {
|
|
76
|
+
item: item,
|
|
77
|
+
mode: _vm.mode
|
|
78
|
+
});
|
|
79
|
+
})], 2);
|
|
80
|
+
};
|
|
81
|
+
var __vue_staticRenderFns__$1 = [];
|
|
82
|
+
|
|
83
|
+
/* style */
|
|
84
|
+
const __vue_inject_styles__$1 = undefined;
|
|
85
|
+
/* scoped */
|
|
86
|
+
const __vue_scope_id__$1 = undefined;
|
|
87
|
+
/* module identifier */
|
|
88
|
+
const __vue_module_identifier__$1 = undefined;
|
|
89
|
+
/* functional template */
|
|
90
|
+
const __vue_is_functional_template__$1 = false;
|
|
91
|
+
/* style inject */
|
|
92
|
+
|
|
93
|
+
/* style inject SSR */
|
|
94
|
+
|
|
95
|
+
/* style inject shadow dom */
|
|
96
|
+
|
|
97
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
98
|
+
render: __vue_render__$1,
|
|
99
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
100
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
101
|
+
var OrCardCollectionView = __vue_component__$2;
|
|
102
|
+
|
|
45
103
|
var script = defineComponent({
|
|
46
104
|
name: 'OrCardCollection',
|
|
47
105
|
components: {
|
|
48
|
-
|
|
106
|
+
OrCardCollectionView,
|
|
49
107
|
OrIconButton,
|
|
50
108
|
OrInput,
|
|
51
109
|
OrSortHeader
|
|
@@ -83,7 +141,6 @@ var script = defineComponent({
|
|
|
83
141
|
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
84
142
|
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
85
143
|
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
86
|
-
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
87
144
|
// State
|
|
88
145
|
const proxyView = ref(props.view);
|
|
89
146
|
const proxySort = ref(props.sort);
|
|
@@ -119,7 +176,6 @@ var script = defineComponent({
|
|
|
119
176
|
rootStyles,
|
|
120
177
|
toolbarStyles,
|
|
121
178
|
toolbarPanelStyles,
|
|
122
|
-
contentStyles,
|
|
123
179
|
proxyView,
|
|
124
180
|
proxySort,
|
|
125
181
|
proxySearch,
|
|
@@ -191,17 +247,22 @@ var __vue_render__ = function () {
|
|
|
191
247
|
return _vm.switchToListView();
|
|
192
248
|
}
|
|
193
249
|
}
|
|
194
|
-
}), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
250
|
+
}), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _vm._t(_vm.proxyView, function () {
|
|
251
|
+
return [_c('OrCardCollectionView', {
|
|
252
|
+
attrs: {
|
|
253
|
+
"items": _vm.items,
|
|
254
|
+
"mode": _vm.proxyView
|
|
255
|
+
},
|
|
256
|
+
scopedSlots: _vm._u([{
|
|
257
|
+
key: "item",
|
|
258
|
+
fn: function (props) {
|
|
259
|
+
return [_vm._t("item", null, null, props)];
|
|
260
|
+
}
|
|
261
|
+
}], null, true)
|
|
262
|
+
})];
|
|
263
|
+
}, null, {
|
|
264
|
+
items: _vm.items
|
|
265
|
+
})], 2);
|
|
205
266
|
};
|
|
206
267
|
var __vue_staticRenderFns__ = [];
|
|
207
268
|
|
|
@@ -8,8 +8,8 @@ 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-
|
|
12
|
-
export {
|
|
11
|
+
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-0eaf7489.js';
|
|
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';
|
|
15
15
|
export { O as OrCheckboxV3 } from '../OrCheckbox-dbef9f9a.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrCardCollection from './OrCardCollection.vue';
|
|
2
3
|
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
4
|
[x: string]: ((...args: any[]) => any) | null;
|
|
4
5
|
} | string[], {} & {}, {
|
|
@@ -15,3 +16,5 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
|
|
|
15
16
|
} | string[], {} & {}, {
|
|
16
17
|
[x: number]: string;
|
|
17
18
|
} | {}, true>)>;
|
|
19
|
+
export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
|
|
20
|
+
export declare const WithLink: StoryFn<typeof OrCardCollection>;
|
|
@@ -7,7 +7,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
7
7
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
8
8
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
9
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
11
10
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
12
11
|
proxySort: import("@vue/composition-api").Ref<{
|
|
13
12
|
column: string;
|
|
@@ -71,7 +70,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
71
70
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
72
71
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
73
72
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
75
73
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
76
74
|
proxySort: import("@vue/composition-api").Ref<{
|
|
77
75
|
column: string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CardCollectionItem } from './types';
|
|
3
|
+
import { CardCollectionView } from './props';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
7
|
+
items: {
|
|
8
|
+
type: PropType<CardCollectionItem[]>;
|
|
9
|
+
default: CardCollectionItem[];
|
|
10
|
+
};
|
|
11
|
+
mode: {
|
|
12
|
+
type: PropType<CardCollectionView>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
16
|
+
items: {
|
|
17
|
+
type: PropType<CardCollectionItem[]>;
|
|
18
|
+
default: CardCollectionItem[];
|
|
19
|
+
};
|
|
20
|
+
mode: {
|
|
21
|
+
type: PropType<CardCollectionView>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
25
|
+
items: CardCollectionItem[];
|
|
26
|
+
mode: CardCollectionView;
|
|
27
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
28
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
30
|
+
items: CardCollectionItem[];
|
|
31
|
+
mode: CardCollectionView;
|
|
32
|
+
} & {}, {
|
|
33
|
+
items: CardCollectionItem[];
|
|
34
|
+
}, true>);
|
|
35
|
+
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-
|
|
1
|
+
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-0eaf7489.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
-
import '../../OrCard-58a1ba3e.js';
|
|
6
|
-
import '../../useClassAttribute-9bf33346.js';
|
|
7
5
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
6
|
import '../../OrIconButton-a215104c.js';
|
|
9
7
|
import '../../OrIcon-8625385f.js';
|
|
8
|
+
import '../../useClassAttribute-9bf33346.js';
|
|
10
9
|
import '../../OrTooltip-fbfa05fd.js';
|
|
11
10
|
import '@vueuse/core';
|
|
12
11
|
import '../../OrPopover-5dc240f1.js';
|