@onereach/ui-components 2.69.2-beta.2113.0 → 2.69.2-beta.2123.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/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
- package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/OrCardCollection-773ae0db.js +346 -0
- package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-a11b3621.js} +9 -3
- package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
- package/dist/bundled/v2/components/index.js +5 -5
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
- 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 +7 -4
- package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +6 -6
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
- package/dist/bundled/v3/OrButton-8ab33d9d.js +33 -0
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +228 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +6 -36
- package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +8 -2
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
- package/dist/bundled/v3/components/index.js +17 -15
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
- 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 +13 -6
- package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +339 -314
- package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
- package/dist/esm/v2/OrCardCollection-61c86bfc.js +346 -0
- package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
- 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 +7 -4
- package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
- package/dist/esm/v3/OrCardCollection-fdc7848b.js +289 -0
- package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
- 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 +7 -4
- package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
- package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/index.js +3 -3
- package/package.json +1 -1
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
- package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
- package/src/components/or-avatar-v3/props.ts +0 -1
- package/src/components/or-avatar-v3/styles.ts +11 -49
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +230 -30
- package/src/components/or-card-collection-v3/OrCardCollection.vue +120 -77
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
- package/src/components/or-card-collection-v3/props.ts +14 -1
- package/src/components/or-card-collection-v3/styles.ts +3 -3
- package/src/components/or-card-collection-v3/types.ts +9 -3
- package/src/components/or-search-v3/OrSearch.vue +7 -1
- package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +0 -164
- package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
- package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { CardCollectionView } from './props';
|
|
4
|
-
import { CardCollectionItem, CardCollectionSortHeader } from './types';
|
|
2
|
+
import { CardCollectionItem, SortOption, ViewMode } from './types';
|
|
5
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
sortMenu: import("@vue/composition-api").Ref<(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, {
|
|
6
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
+
} | string[], {} & {}, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}, true>)) | undefined>;
|
|
10
|
+
sortButton: import("@vue/composition-api").Ref<(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, {
|
|
11
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
12
|
+
} | string[], {} & {}, {
|
|
13
|
+
[x: number]: string;
|
|
14
|
+
} | {}, true>)) | undefined>;
|
|
7
15
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
8
16
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
17
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
proxySort: import("@vue/composition-api").Ref<{
|
|
13
|
-
column: string;
|
|
14
|
-
direction: "asc" | "desc";
|
|
15
|
-
}>;
|
|
18
|
+
proxyView: import("@vue/composition-api").Ref<string>;
|
|
19
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
16
20
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
22
|
+
switchView: (view: string) => void;
|
|
23
|
+
handleSort: (sort: string) => void;
|
|
24
|
+
handleSearch: (search: string) => void;
|
|
19
25
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
20
26
|
items: {
|
|
21
27
|
type: PropType<CardCollectionItem[]>;
|
|
22
28
|
default: CardCollectionItem[];
|
|
23
29
|
};
|
|
24
30
|
view: {
|
|
25
|
-
type:
|
|
26
|
-
default:
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
viewModes: {
|
|
35
|
+
type: PropType<ViewMode[]>;
|
|
36
|
+
default: () => ViewMode[];
|
|
27
37
|
};
|
|
28
38
|
sort: {
|
|
29
|
-
type:
|
|
39
|
+
type: StringConstructor;
|
|
30
40
|
default: undefined;
|
|
31
41
|
};
|
|
32
|
-
|
|
33
|
-
type: PropType<
|
|
34
|
-
default:
|
|
42
|
+
sortOptions: {
|
|
43
|
+
type: PropType<SortOption[]>;
|
|
44
|
+
default: () => never[];
|
|
35
45
|
};
|
|
36
46
|
search: {
|
|
37
47
|
type: StringConstructor;
|
|
38
|
-
default:
|
|
48
|
+
default: string;
|
|
39
49
|
};
|
|
40
50
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
41
51
|
items: {
|
|
@@ -43,56 +53,71 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
43
53
|
default: CardCollectionItem[];
|
|
44
54
|
};
|
|
45
55
|
view: {
|
|
46
|
-
type:
|
|
47
|
-
default:
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
viewModes: {
|
|
60
|
+
type: PropType<ViewMode[]>;
|
|
61
|
+
default: () => ViewMode[];
|
|
48
62
|
};
|
|
49
63
|
sort: {
|
|
50
|
-
type:
|
|
64
|
+
type: StringConstructor;
|
|
51
65
|
default: undefined;
|
|
52
66
|
};
|
|
53
|
-
|
|
54
|
-
type: PropType<
|
|
55
|
-
default:
|
|
67
|
+
sortOptions: {
|
|
68
|
+
type: PropType<SortOption[]>;
|
|
69
|
+
default: () => never[];
|
|
56
70
|
};
|
|
57
71
|
search: {
|
|
58
72
|
type: StringConstructor;
|
|
59
|
-
default:
|
|
73
|
+
default: string;
|
|
60
74
|
};
|
|
61
75
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
62
76
|
search: string;
|
|
63
|
-
sort:
|
|
77
|
+
sort: string;
|
|
64
78
|
items: CardCollectionItem[];
|
|
65
|
-
view:
|
|
66
|
-
|
|
79
|
+
view: string;
|
|
80
|
+
viewModes: ViewMode[];
|
|
81
|
+
sortOptions: SortOption[];
|
|
67
82
|
} & {} & {
|
|
68
83
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
69
84
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
70
85
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
86
|
+
sortMenu: import("@vue/composition-api").Ref<(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, {
|
|
87
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
88
|
+
} | string[], {} & {}, {
|
|
89
|
+
[x: number]: string;
|
|
90
|
+
} | {}, true>)) | undefined>;
|
|
91
|
+
sortButton: import("@vue/composition-api").Ref<(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, {
|
|
92
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
93
|
+
} | string[], {} & {}, {
|
|
94
|
+
[x: number]: string;
|
|
95
|
+
} | {}, true>)) | undefined>;
|
|
71
96
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
72
97
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
73
98
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
proxySort: import("@vue/composition-api").Ref<{
|
|
77
|
-
column: string;
|
|
78
|
-
direction: "asc" | "desc";
|
|
79
|
-
}>;
|
|
99
|
+
proxyView: import("@vue/composition-api").Ref<string>;
|
|
100
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
80
101
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
103
|
+
switchView: (view: string) => void;
|
|
104
|
+
handleSort: (sort: string) => void;
|
|
105
|
+
handleSearch: (search: string) => void;
|
|
83
106
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
84
107
|
search: string;
|
|
85
|
-
sort:
|
|
108
|
+
sort: string;
|
|
86
109
|
items: CardCollectionItem[];
|
|
87
|
-
view:
|
|
88
|
-
|
|
110
|
+
view: string;
|
|
111
|
+
viewModes: ViewMode[];
|
|
112
|
+
sortOptions: SortOption[];
|
|
89
113
|
} & {} & {
|
|
90
114
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
91
115
|
}, {
|
|
92
116
|
search: string;
|
|
93
|
-
sort:
|
|
117
|
+
sort: string;
|
|
94
118
|
items: CardCollectionItem[];
|
|
95
|
-
view:
|
|
96
|
-
|
|
119
|
+
view: string;
|
|
120
|
+
viewModes: ViewMode[];
|
|
121
|
+
sortOptions: SortOption[];
|
|
97
122
|
}, true>);
|
|
98
123
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CardCollectionItem } from './types';
|
|
3
|
+
import { DefaultCardCollectionViews } 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<DefaultCardCollectionViews>;
|
|
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<DefaultCardCollectionViews>;
|
|
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: DefaultCardCollectionViews;
|
|
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: DefaultCardCollectionViews;
|
|
32
|
+
} & {}, {
|
|
33
|
+
items: CardCollectionItem[];
|
|
34
|
+
}, true>);
|
|
35
|
+
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-61c86bfc.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import '../../OrCard-de799db0.js';
|
|
6
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
7
5
|
import '../../OrIconButton-e17e4944.js';
|
|
8
6
|
import '../../OrIcon-5e394c62.js';
|
|
7
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
9
8
|
import '../../OrTooltip-513bee30.js';
|
|
10
9
|
import '../../OrPopover-9bafbdb4.js';
|
|
11
10
|
import '@floating-ui/dom';
|
|
@@ -15,10 +14,14 @@ import '../../OrBottomSheet-16c2e610.js';
|
|
|
15
14
|
import '../../OrOverlay-18ba2dc6.js';
|
|
16
15
|
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
17
16
|
import 'portal-vue';
|
|
17
|
+
import '../../OrMenu-df27d0ef.js';
|
|
18
|
+
import '../../OrMenuItem-c7f28480.js';
|
|
19
|
+
import '../../OrButton-357a5756.js';
|
|
20
|
+
import '../../OrLoader-f857d55b.js';
|
|
21
|
+
import '../../OrSearch-62d91301.js';
|
|
18
22
|
import '../../OrInput-2f16a7ac.js';
|
|
19
23
|
import '../../OrError-d267ee9a.js';
|
|
20
24
|
import '../../OrHint-42dc9ebb.js';
|
|
21
25
|
import '../../OrInputBox-4d5a318d.js';
|
|
22
26
|
import '../../OrLabel-2a9f1477.js';
|
|
23
27
|
import '../../browser-82dea9ed.js';
|
|
24
|
-
import '../../OrSortHeader-19bf94ca.js';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ViewMode } from './types';
|
|
2
|
+
export declare enum DefaultCardCollectionViews {
|
|
2
3
|
Grid = "grid",
|
|
3
4
|
List = "list"
|
|
4
5
|
}
|
|
6
|
+
export declare const gridView: ViewMode;
|
|
7
|
+
export declare const listView: ViewMode;
|
|
8
|
+
export declare const defaultViewModes: ViewMode[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultCardCollectionViews } from './props';
|
|
2
2
|
export declare const CardCollectionRoot: string[];
|
|
3
3
|
export declare const CardCollectionToolbar: string[];
|
|
4
4
|
export declare const CardCollectionToolbarPanel: string[];
|
|
5
5
|
export declare const CardCollectionContent: string[];
|
|
6
|
-
export declare const CardCollectionContentViews: Record<
|
|
6
|
+
export declare const CardCollectionContentViews: Record<DefaultCardCollectionViews, string[]>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export interface CardCollectionItem {
|
|
2
|
-
|
|
2
|
+
key?: string;
|
|
3
|
+
[key: string | number]: any;
|
|
3
4
|
}
|
|
4
|
-
export interface
|
|
5
|
-
|
|
5
|
+
export interface ViewMode {
|
|
6
|
+
view: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SortOption {
|
|
6
10
|
label: string;
|
|
11
|
+
value: string;
|
|
7
12
|
}
|
|
@@ -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;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, _ as OrAvatar } from './OrAvatar-4824c57f.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-0afdef36.js';
|
|
3
3
|
export { _ as OrBottomSheetV3 } from './OrBottomSheet-16c2e610.js';
|
|
4
4
|
export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-2ca1c3d6.js';
|
|
5
5
|
export { _ as OrButtonV2 } from './OrButton-c4f9955b.js';
|
|
@@ -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, _ as OrButtonV3 } from './OrButton-357a5756.js';
|
|
9
9
|
export { _ as OrCard } from './OrCard-b7268256.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-f6b07557.js';
|
|
11
|
-
export {
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-61c86bfc.js';
|
|
12
12
|
export { _ as OrCardV3 } from './OrCard-de799db0.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-4e2cf3d8.js';
|
|
14
14
|
export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
|
|
@@ -63,7 +63,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
63
63
|
export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
64
64
|
export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
|
|
65
65
|
export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
66
|
-
export { _ as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { _ as OrSearchV3 } from './OrSearch-62d91301.js';
|
|
67
67
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
68
68
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
69
69
|
export { _ as OrSelectV3 } from './OrSelect-f0ff5a85.js';
|
|
@@ -2,8 +2,7 @@ import { defineComponent, ref, computed, watchPostEffect } from 'vue-demi';
|
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
|
|
5
|
-
import {
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createBlock, createCommentVNode } from 'vue';
|
|
5
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, createElementVNode, normalizeClass } from 'vue';
|
|
7
6
|
|
|
8
7
|
var AvatarSize;
|
|
9
8
|
(function (AvatarSize) {
|
|
@@ -11,7 +10,6 @@ var AvatarSize;
|
|
|
11
10
|
AvatarSize["L"] = "l";
|
|
12
11
|
AvatarSize["M"] = "m";
|
|
13
12
|
AvatarSize["S"] = "s";
|
|
14
|
-
AvatarSize["XS"] = "xs";
|
|
15
13
|
})(AvatarSize || (AvatarSize = {}));
|
|
16
14
|
var AvatarColor;
|
|
17
15
|
(function (AvatarColor) {
|
|
@@ -36,19 +34,24 @@ const AvatarImage = [
|
|
|
36
34
|
const AvatarRootSizes = {
|
|
37
35
|
'xl': [
|
|
38
36
|
// Box
|
|
39
|
-
'w-[80px]', 'h-[80px]'
|
|
37
|
+
'w-[80px]', 'h-[80px]',
|
|
38
|
+
// Typography
|
|
39
|
+
'text-[32px]'],
|
|
40
40
|
'l': [
|
|
41
41
|
// Box
|
|
42
|
-
'w-[64px]', 'h-[64px]'
|
|
42
|
+
'w-[64px]', 'h-[64px]',
|
|
43
|
+
// Typography
|
|
44
|
+
'text-[24px]'],
|
|
43
45
|
'm': [
|
|
44
46
|
// Box
|
|
45
|
-
'w-[40px]', 'h-[40px]'
|
|
47
|
+
'w-[40px]', 'h-[40px]',
|
|
48
|
+
// Typography
|
|
49
|
+
'text-[16px]'],
|
|
46
50
|
's': [
|
|
47
51
|
// Box
|
|
48
|
-
'w-[32px]', 'h-[32px]'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'w-[24px]', 'h-[24px]']
|
|
52
|
+
'w-[32px]', 'h-[32px]',
|
|
53
|
+
// Typography
|
|
54
|
+
'text-[16px]']
|
|
52
55
|
};
|
|
53
56
|
const AvatarRootColors = {
|
|
54
57
|
[AvatarColor.blue]: [
|
|
@@ -70,26 +73,9 @@ const AvatarRootColors = {
|
|
|
70
73
|
// Theme
|
|
71
74
|
'text-white', 'dark:text-overlay-dark']
|
|
72
75
|
};
|
|
73
|
-
const AvatarRootAbbreviationSizes = {
|
|
74
|
-
'xl': ['typography-headline-1'],
|
|
75
|
-
'l': ['typography-headline-1'],
|
|
76
|
-
'm': ['typography-body-1-bold'],
|
|
77
|
-
's': ['typography-body-1-bold'],
|
|
78
|
-
'xs': ['typography-caption-semibold']
|
|
79
|
-
};
|
|
80
|
-
const AvatarRootIconSizes = {
|
|
81
|
-
'xl': ['text-[40px]'],
|
|
82
|
-
'l': ['text-[32px]'],
|
|
83
|
-
'm': ['text-[20px]'],
|
|
84
|
-
's': ['text-[16px]'],
|
|
85
|
-
'xs': ['text-[16px]']
|
|
86
|
-
};
|
|
87
76
|
|
|
88
77
|
var script = defineComponent({
|
|
89
78
|
name: 'OrAvatar',
|
|
90
|
-
components: {
|
|
91
|
-
OrIcon: script$1
|
|
92
|
-
},
|
|
93
79
|
inheritAttrs: false,
|
|
94
80
|
props: {
|
|
95
81
|
src: {
|
|
@@ -100,10 +86,6 @@ var script = defineComponent({
|
|
|
100
86
|
type: String,
|
|
101
87
|
default: AvatarSize.M
|
|
102
88
|
},
|
|
103
|
-
icon: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: undefined
|
|
106
|
-
},
|
|
107
89
|
color: {
|
|
108
90
|
type: String,
|
|
109
91
|
default: AvatarColor.auto,
|
|
@@ -119,12 +101,9 @@ var script = defineComponent({
|
|
|
119
101
|
setup(props) {
|
|
120
102
|
// Refs
|
|
121
103
|
const root = ref();
|
|
122
|
-
const isIcon = computed(() => {
|
|
123
|
-
return !props.icon;
|
|
124
|
-
});
|
|
125
104
|
// Styles
|
|
126
105
|
const classAttribute = useClassAttribute();
|
|
127
|
-
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color],
|
|
106
|
+
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
|
|
128
107
|
const imageStyles = computed(() => [...AvatarImage]);
|
|
129
108
|
// Effects
|
|
130
109
|
watchPostEffect(() => {
|
|
@@ -147,21 +126,15 @@ var script = defineComponent({
|
|
|
147
126
|
|
|
148
127
|
const _hoisted_1 = ["src"];
|
|
149
128
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
150
|
-
const _component_or_icon = resolveComponent("or-icon");
|
|
151
129
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
152
130
|
ref: "root"
|
|
153
131
|
}, _ctx.$attrs, {
|
|
154
132
|
class: _ctx.rootStyles
|
|
155
|
-
}), [renderSlot(_ctx.$slots, "default", {}, () => [
|
|
156
|
-
key: 0,
|
|
133
|
+
}), [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("img", {
|
|
157
134
|
class: normalizeClass(_ctx.imageStyles),
|
|
158
135
|
src: _ctx.src,
|
|
159
136
|
alt: ''
|
|
160
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_1))
|
|
161
|
-
key: 1,
|
|
162
|
-
icon: _ctx.icon,
|
|
163
|
-
size: "inherit"
|
|
164
|
-
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)])], 16 /* FULL_PROPS */);
|
|
137
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_1)])], 16 /* FULL_PROPS */);
|
|
165
138
|
}
|
|
166
139
|
|
|
167
140
|
script.render = render;
|