@onereach/ui-components 2.69.2-beta.2123.0 → 2.69.2-beta.2128.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-2fa559e1.js → OrAvatar-ae61bfb9.js} +41 -15
- package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
- package/dist/bundled/v2/OrCardCollection-a9a779ea.js +228 -0
- package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-9d402f56.js} +3 -9
- package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.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 +11 -0
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
- package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +1 -5
- 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 +3 -8
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
- 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-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +35 -13
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +164 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-85472b12.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +36 -6
- package/dist/bundled/v3/{OrIconButton-4bd33e3c.js → OrIconButton-1581013c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-641f6e06.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3a8189f4.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-00a477f0.js → OrModal.vue_vue_type_script_lang-80a7b906.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-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -8
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-92d9fb12.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-afb51e5d.js → OrToastContainer-7c3c0b12.js} +1 -1
- package/dist/bundled/v3/components/index.js +15 -17
- 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 +11 -0
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -13
- package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +1 -5
- 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 +3 -8
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -4
- 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 +0 -13
- 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 +1 -2
- 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 +314 -339
- package/dist/bundled/v3/{types-6c5eee23.js → types-dcc78caa.js} +2 -2
- package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-3d155af3.js} +41 -15
- package/dist/esm/v2/OrCardCollection-4f001551.js +227 -0
- package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-ddb7c1fe.js} +1 -7
- 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 +11 -0
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
- package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +1 -5
- 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 +3 -8
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
- 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-ef88d31c.js → OrAvatar-53a4429d.js} +43 -16
- package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
- package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-cdde55ce.js} +1 -7
- 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 +11 -0
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -1
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
- package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +1 -5
- 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 +3 -8
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
- 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 +9 -7
- package/src/components/or-avatar-v3/OrAvatar.vue +22 -2
- package/src/components/or-avatar-v3/props.ts +1 -0
- package/src/components/or-avatar-v3/styles.ts +49 -11
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +30 -230
- package/src/components/or-card-collection-v3/OrCardCollection.vue +77 -120
- package/src/components/or-card-collection-v3/props.ts +1 -14
- package/src/components/or-card-collection-v3/styles.ts +3 -3
- package/src/components/or-card-collection-v3/types.ts +3 -9
- package/src/components/or-search-v3/OrSearch.vue +1 -7
- package/dist/bundled/v2/OrCardCollection-773ae0db.js +0 -346
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
- package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +0 -228
- package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
- package/dist/esm/v2/OrCardCollection-61c86bfc.js +0 -346
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
- package/dist/esm/v3/OrCardCollection-fdc7848b.js +0 -289
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -41
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -42
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watchPostEffect } from 'vue';
|
|
2
2
|
import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
|
|
3
|
+
import './OrIcon-d878b768.js';
|
|
4
|
+
import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
3
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
4
6
|
|
|
5
7
|
var AvatarSize;
|
|
@@ -8,6 +10,7 @@ var AvatarSize;
|
|
|
8
10
|
AvatarSize["L"] = "l";
|
|
9
11
|
AvatarSize["M"] = "m";
|
|
10
12
|
AvatarSize["S"] = "s";
|
|
13
|
+
AvatarSize["XS"] = "xs";
|
|
11
14
|
})(AvatarSize || (AvatarSize = {}));
|
|
12
15
|
var AvatarColor;
|
|
13
16
|
(function (AvatarColor) {
|
|
@@ -32,24 +35,19 @@ const AvatarImage = [
|
|
|
32
35
|
const AvatarRootSizes = {
|
|
33
36
|
'xl': [
|
|
34
37
|
// Box
|
|
35
|
-
'w-[80px]', 'h-[80px]',
|
|
36
|
-
// Typography
|
|
37
|
-
'text-[32px]'],
|
|
38
|
+
'w-[80px]', 'h-[80px]'],
|
|
38
39
|
'l': [
|
|
39
40
|
// Box
|
|
40
|
-
'w-[64px]', 'h-[64px]',
|
|
41
|
-
// Typography
|
|
42
|
-
'text-[24px]'],
|
|
41
|
+
'w-[64px]', 'h-[64px]'],
|
|
43
42
|
'm': [
|
|
44
43
|
// Box
|
|
45
|
-
'w-[40px]', 'h-[40px]',
|
|
46
|
-
// Typography
|
|
47
|
-
'text-[16px]'],
|
|
44
|
+
'w-[40px]', 'h-[40px]'],
|
|
48
45
|
's': [
|
|
49
46
|
// Box
|
|
50
|
-
'w-[32px]', 'h-[32px]',
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
'w-[32px]', 'h-[32px]'],
|
|
48
|
+
'xs': [
|
|
49
|
+
// Box
|
|
50
|
+
'w-[24px]', 'h-[24px]']
|
|
53
51
|
};
|
|
54
52
|
const AvatarRootColors = {
|
|
55
53
|
[AvatarColor.blue]: [
|
|
@@ -71,9 +69,26 @@ const AvatarRootColors = {
|
|
|
71
69
|
// Theme
|
|
72
70
|
'text-white', 'dark:text-overlay-dark']
|
|
73
71
|
};
|
|
72
|
+
const AvatarRootAbbreviationSizes = {
|
|
73
|
+
'xl': ['typography-headline-1'],
|
|
74
|
+
'l': ['typography-headline-1'],
|
|
75
|
+
'm': ['typography-body-1-bold'],
|
|
76
|
+
's': ['typography-body-1-bold'],
|
|
77
|
+
'xs': ['typography-caption-semibold']
|
|
78
|
+
};
|
|
79
|
+
const AvatarRootIconSizes = {
|
|
80
|
+
'xl': ['text-[40px]'],
|
|
81
|
+
'l': ['text-[32px]'],
|
|
82
|
+
'm': ['text-[20px]'],
|
|
83
|
+
's': ['text-[16px]'],
|
|
84
|
+
'xs': ['text-[16px]']
|
|
85
|
+
};
|
|
74
86
|
|
|
75
87
|
var script = defineComponent({
|
|
76
88
|
name: 'OrAvatar',
|
|
89
|
+
components: {
|
|
90
|
+
OrIcon: script$1
|
|
91
|
+
},
|
|
77
92
|
inheritAttrs: false,
|
|
78
93
|
props: {
|
|
79
94
|
src: {
|
|
@@ -84,6 +99,10 @@ var script = defineComponent({
|
|
|
84
99
|
type: String,
|
|
85
100
|
default: AvatarSize.M
|
|
86
101
|
},
|
|
102
|
+
icon: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: undefined
|
|
105
|
+
},
|
|
87
106
|
color: {
|
|
88
107
|
type: String,
|
|
89
108
|
default: AvatarColor.auto,
|
|
@@ -99,9 +118,12 @@ var script = defineComponent({
|
|
|
99
118
|
setup(props) {
|
|
100
119
|
// Refs
|
|
101
120
|
const root = ref();
|
|
121
|
+
const isIcon = computed(() => {
|
|
122
|
+
return !props.icon;
|
|
123
|
+
});
|
|
102
124
|
// Styles
|
|
103
125
|
const classAttribute = useClassAttribute();
|
|
104
|
-
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
|
|
126
|
+
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
|
|
105
127
|
const imageStyles = computed(() => [...AvatarImage]);
|
|
106
128
|
// Effects
|
|
107
129
|
watchPostEffect(() => {
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, resolveComponent, withModifiers, createBlock, normalizeClass, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
|
|
2
|
+
import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
|
|
3
|
+
import './OrIconButton-1581013c.js';
|
|
4
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
5
|
+
import './OrInput-fa782fc1.js';
|
|
6
|
+
import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
7
|
+
import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
|
|
8
|
+
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
9
|
+
|
|
10
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
12
|
+
ref: "root"
|
|
13
|
+
}, _ctx.$attrs, {
|
|
14
|
+
class: _ctx.rootStyles
|
|
15
|
+
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
script$1.render = render$1;
|
|
19
|
+
script$1.__file = "src/components/or-card-v3/OrCard.vue";
|
|
20
|
+
|
|
21
|
+
const _hoisted_1 = ["activated"];
|
|
22
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
24
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
25
|
+
ref: "root"
|
|
26
|
+
}, _ctx.$attrs, {
|
|
27
|
+
class: _ctx.rootStyles,
|
|
28
|
+
activated: _ctx.activated ? '' : null,
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toggleDirection(), ["stop"]))
|
|
30
|
+
}), [renderSlot(_ctx.$slots, "default"), _ctx.activated ? (openBlock(), createBlock(_component_OrIcon, {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: normalizeClass({
|
|
33
|
+
'rotate-180': _ctx.proxyModelValue.direction === 'asc'
|
|
34
|
+
}),
|
|
35
|
+
icon: 'arrow_downward'
|
|
36
|
+
}, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
script$2.render = render;
|
|
40
|
+
script$2.__file = "src/components/or-sort-header-v3/OrSortHeader.vue";
|
|
41
|
+
|
|
42
|
+
var CardCollectionView;
|
|
43
|
+
(function (CardCollectionView) {
|
|
44
|
+
CardCollectionView["Grid"] = "grid";
|
|
45
|
+
CardCollectionView["List"] = "list";
|
|
46
|
+
})(CardCollectionView || (CardCollectionView = {}));
|
|
47
|
+
|
|
48
|
+
const CardCollectionRoot = [
|
|
49
|
+
// Layout
|
|
50
|
+
'layout-column',
|
|
51
|
+
// Spacing
|
|
52
|
+
'gap-md'];
|
|
53
|
+
const CardCollectionToolbar = [
|
|
54
|
+
// Layout
|
|
55
|
+
'layout-row justify-between',
|
|
56
|
+
// Typography
|
|
57
|
+
'typography-body-2-regular',
|
|
58
|
+
// Theme
|
|
59
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
60
|
+
const CardCollectionToolbarPanel = [
|
|
61
|
+
// Layout
|
|
62
|
+
'layout-row',
|
|
63
|
+
// Spacing
|
|
64
|
+
'gap-sm+'];
|
|
65
|
+
const CardCollectionContent = [
|
|
66
|
+
// Layout
|
|
67
|
+
'grid',
|
|
68
|
+
// Spacing
|
|
69
|
+
'gap-sm md:gap-md'];
|
|
70
|
+
const CardCollectionContentViews = {
|
|
71
|
+
'grid': [
|
|
72
|
+
// Layout
|
|
73
|
+
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
74
|
+
'list': []
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
var script = defineComponent({
|
|
78
|
+
name: 'OrCardCollection',
|
|
79
|
+
components: {
|
|
80
|
+
OrCard: script$1,
|
|
81
|
+
OrIconButton: script$3,
|
|
82
|
+
OrInput: script$4,
|
|
83
|
+
OrSortHeader: script$2
|
|
84
|
+
},
|
|
85
|
+
inheritAttrs: false,
|
|
86
|
+
props: {
|
|
87
|
+
items: {
|
|
88
|
+
type: Array,
|
|
89
|
+
default: []
|
|
90
|
+
},
|
|
91
|
+
view: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: CardCollectionView.Grid
|
|
94
|
+
},
|
|
95
|
+
sort: {
|
|
96
|
+
type: Object,
|
|
97
|
+
default: undefined
|
|
98
|
+
},
|
|
99
|
+
sortHeaders: {
|
|
100
|
+
type: Array,
|
|
101
|
+
default: undefined
|
|
102
|
+
},
|
|
103
|
+
search: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: undefined
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
109
|
+
expose: ['root'],
|
|
110
|
+
setup(props, context) {
|
|
111
|
+
// Refs
|
|
112
|
+
const root = ref();
|
|
113
|
+
// Styles
|
|
114
|
+
const classAttribute = useClassAttribute();
|
|
115
|
+
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
116
|
+
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
117
|
+
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
118
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
119
|
+
// State
|
|
120
|
+
const proxyView = ref(props.view);
|
|
121
|
+
const proxySort = ref(props.sort);
|
|
122
|
+
const proxySearch = ref(props.search);
|
|
123
|
+
// Methods
|
|
124
|
+
function switchToGridView() {
|
|
125
|
+
proxyView.value = CardCollectionView.Grid;
|
|
126
|
+
}
|
|
127
|
+
function switchToListView() {
|
|
128
|
+
proxyView.value = CardCollectionView.List;
|
|
129
|
+
}
|
|
130
|
+
// Effects
|
|
131
|
+
watch(() => props.view, value => {
|
|
132
|
+
proxyView.value = value;
|
|
133
|
+
});
|
|
134
|
+
watch(proxyView, value => {
|
|
135
|
+
context.emit('viewChange', value);
|
|
136
|
+
});
|
|
137
|
+
watch(() => props.sort, value => {
|
|
138
|
+
proxySort.value = value;
|
|
139
|
+
});
|
|
140
|
+
watch(proxySort, value => {
|
|
141
|
+
context.emit('sortChange', value);
|
|
142
|
+
});
|
|
143
|
+
watch(() => props.search, value => {
|
|
144
|
+
proxySearch.value = value;
|
|
145
|
+
});
|
|
146
|
+
watch(proxySearch, value => {
|
|
147
|
+
context.emit('searchChange', value);
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
root,
|
|
151
|
+
rootStyles,
|
|
152
|
+
toolbarStyles,
|
|
153
|
+
toolbarPanelStyles,
|
|
154
|
+
contentStyles,
|
|
155
|
+
proxyView,
|
|
156
|
+
proxySort,
|
|
157
|
+
proxySearch,
|
|
158
|
+
switchToGridView,
|
|
159
|
+
switchToListView
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export { CardCollectionView as C, script as s };
|
|
@@ -1,13 +1,43 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch } from 'vue';
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
|
|
2
2
|
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
3
3
|
import { l as logicAnd } from './index-01519e46.js';
|
|
4
4
|
import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
|
|
5
|
-
import './OrButton-
|
|
5
|
+
import { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
|
|
6
6
|
import './OrInput-fa782fc1.js';
|
|
7
|
-
import { s as script$2
|
|
8
|
-
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
7
|
+
import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
9
8
|
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
10
9
|
|
|
10
|
+
const _hoisted_1 = ["type", "disabled"];
|
|
11
|
+
const _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: /*#__PURE__*/normalizeClass(['absolute'])
|
|
14
|
+
};
|
|
15
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16
|
+
const _component_OrLoader = resolveComponent("OrLoader");
|
|
17
|
+
return openBlock(), createElementBlock("button", mergeProps({
|
|
18
|
+
ref: "root"
|
|
19
|
+
}, _ctx.$attrs, {
|
|
20
|
+
class: _ctx.rootStyles,
|
|
21
|
+
type: _ctx.type,
|
|
22
|
+
disabled: _ctx.disabled,
|
|
23
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
|
|
24
|
+
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
25
|
+
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
|
|
26
|
+
}), [createElementVNode("div", {
|
|
27
|
+
class: normalizeClass(['contents', _ctx.loading && 'invisible'])
|
|
28
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
|
|
29
|
+
key: 0,
|
|
30
|
+
variant: 'circular',
|
|
31
|
+
color: 'inherit',
|
|
32
|
+
size: 's'
|
|
33
|
+
})) : (openBlock(), createElementBlock(Fragment, {
|
|
34
|
+
key: 1
|
|
35
|
+
}, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
script$1.render = render;
|
|
39
|
+
script$1.__file = "src/components/or-button-v3/OrButton.vue";
|
|
40
|
+
|
|
11
41
|
var ConfirmType;
|
|
12
42
|
(function (ConfirmType) {
|
|
13
43
|
ConfirmType["D"] = "d";
|
|
@@ -59,8 +89,8 @@ const ConfirmFooterButtons = [
|
|
|
59
89
|
var script = defineComponent({
|
|
60
90
|
name: 'OrConfirm',
|
|
61
91
|
components: {
|
|
62
|
-
OrOverlay: script$
|
|
63
|
-
OrButton: script$
|
|
92
|
+
OrOverlay: script$2,
|
|
93
|
+
OrButton: script$1,
|
|
64
94
|
OrInput: script$3
|
|
65
95
|
},
|
|
66
96
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script } from './OrIconButton.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
2
2
|
import { resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, mergeProps, createVNode } from 'vue';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = ["disabled"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createBlock, withCtx, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, defineComponent, ref, computed } from 'vue';
|
|
2
2
|
import './OrIcon-d878b768.js';
|
|
3
|
-
import { s as script$2, I as IconSize } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
4
3
|
import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
|
|
4
|
+
import { s as script$2, I as IconSize } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
6
|
|
|
7
7
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
|
-
import './OrIconButton-
|
|
3
|
+
import './OrIconButton-1581013c.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
6
6
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
7
7
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
8
8
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
9
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
9
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
10
10
|
|
|
11
11
|
var InlineInputType;
|
|
12
12
|
(function (InlineInputType) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
|
|
2
2
|
import './OrHint-9592499e.js';
|
|
3
|
-
import './OrIconButton-
|
|
3
|
+
import './OrIconButton-1581013c.js';
|
|
4
4
|
import './OrInlineInputBox-9d68ded1.js';
|
|
5
5
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
6
6
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
7
7
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
8
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
8
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
9
9
|
import { s as script$4 } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
|
|
10
10
|
|
|
11
11
|
const InlineTextareaRoot = [
|
|
@@ -3,14 +3,14 @@ import './OrHint-9592499e.js';
|
|
|
3
3
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
4
4
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
5
5
|
import './OrIcon-d878b768.js';
|
|
6
|
-
import './OrIconButton-
|
|
6
|
+
import './OrIconButton-1581013c.js';
|
|
7
7
|
import './OrInputBox-eb54d73d.js';
|
|
8
8
|
import { s as script$5, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
|
|
11
11
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
12
12
|
import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
13
|
-
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-
|
|
13
|
+
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
14
14
|
|
|
15
15
|
var InputType;
|
|
16
16
|
(function (InputType) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue';
|
|
2
2
|
import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
|
|
3
|
-
import './OrIconButton-
|
|
3
|
+
import './OrIconButton-1581013c.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
5
|
import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
|
|
6
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-
|
|
6
|
+
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
7
7
|
|
|
8
8
|
var ModalSize;
|
|
9
9
|
(function (ModalSize) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue';
|
|
2
2
|
import './OrIcon-d878b768.js';
|
|
3
|
-
import './OrIconButton-
|
|
3
|
+
import './OrIconButton-1581013c.js';
|
|
4
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
5
|
import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
6
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-
|
|
6
|
+
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
7
7
|
|
|
8
8
|
var NotificationVariant;
|
|
9
9
|
(function (NotificationVariant) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import './OrInput-fa782fc1.js';
|
|
4
|
-
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
5
4
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
5
|
+
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
|
|
6
6
|
import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
7
7
|
|
|
8
8
|
var script = defineComponent({
|
|
@@ -12,11 +12,6 @@ var script = defineComponent({
|
|
|
12
12
|
},
|
|
13
13
|
inheritAttrs: false,
|
|
14
14
|
props: {
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: '',
|
|
18
|
-
required: false
|
|
19
|
-
},
|
|
20
15
|
size: {
|
|
21
16
|
type: String,
|
|
22
17
|
default: InputBoxSize.M
|
|
@@ -41,14 +36,13 @@ var script = defineComponent({
|
|
|
41
36
|
emits: ['search', 'input', 'keydown', 'keyup', 'focus', 'blur', 'clear'],
|
|
42
37
|
expose: ['root', 'focus', 'clear'],
|
|
43
38
|
setup(props, context) {
|
|
44
|
-
var _a;
|
|
45
39
|
// Refs
|
|
46
40
|
const root = ref();
|
|
47
41
|
// Styles
|
|
48
42
|
const classAttribute = useClassAttribute();
|
|
49
43
|
const rootStyles = computed(() => ['or-search', classAttribute.value]);
|
|
50
44
|
// State
|
|
51
|
-
const localModelValue = ref(
|
|
45
|
+
const localModelValue = ref('');
|
|
52
46
|
// Events
|
|
53
47
|
debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
|
|
54
48
|
debounce: props.debounce
|
|
@@ -9,7 +9,7 @@ import './OrInputBox-eb54d73d.js';
|
|
|
9
9
|
import './OrLabel-c6873e79.js';
|
|
10
10
|
import './OrMenuItem-4feaba6c.js';
|
|
11
11
|
import './OrPopover-c462ce77.js';
|
|
12
|
-
import { s as script$3 } from './OrTag.vue_vue_type_script_lang-
|
|
12
|
+
import { s as script$3 } from './OrTag.vue_vue_type_script_lang-dc6a4011.js';
|
|
13
13
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-293d2de2.js';
|
|
14
14
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
15
15
|
import { u as useOverflow } from './useOverflow-6dce216b.js';
|
|
@@ -1,14 +1,40 @@
|
|
|
1
1
|
import { useResizeObserver } from '@vueuse/core';
|
|
2
|
-
import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
|
|
2
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
|
|
3
3
|
import './OrIcon-d878b768.js';
|
|
4
|
-
import './OrMenu-
|
|
4
|
+
import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
|
|
5
5
|
import './OrMenuItem-4feaba6c.js';
|
|
6
|
-
import { s as script$
|
|
6
|
+
import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
|
|
7
7
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
8
|
-
import { s as script$
|
|
9
|
-
import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
|
|
8
|
+
import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
10
9
|
import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
11
10
|
|
|
11
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
+
const _component_OrPopover = resolveComponent("OrPopover");
|
|
13
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
14
|
+
ref: "root"
|
|
15
|
+
}, _ctx.$attrs, {
|
|
16
|
+
class: _ctx.rootStyles
|
|
17
|
+
}), [createVNode(_component_OrPopover, {
|
|
18
|
+
ref: "popover",
|
|
19
|
+
variant: 'auto',
|
|
20
|
+
trigger: _ctx.trigger,
|
|
21
|
+
placement: _ctx.placement,
|
|
22
|
+
"full-width": false,
|
|
23
|
+
"disable-default-styles": false,
|
|
24
|
+
"onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
27
|
+
class: normalizeClass(_ctx.bodyStyles),
|
|
28
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
29
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
|
|
30
|
+
|
|
31
|
+
_: 3 /* FORWARDED */
|
|
32
|
+
}, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
script$1.render = render$1;
|
|
36
|
+
script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
|
|
37
|
+
|
|
12
38
|
const _hoisted_1 = ["selected"];
|
|
13
39
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14
40
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -23,8 +49,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23
49
|
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
|
|
24
50
|
}
|
|
25
51
|
|
|
26
|
-
script$
|
|
27
|
-
script$
|
|
52
|
+
script$2.render = render;
|
|
53
|
+
script$2.__file = "src/components/or-tab-v3/OrTab.vue";
|
|
28
54
|
|
|
29
55
|
var TabsVariant;
|
|
30
56
|
(function (TabsVariant) {
|
|
@@ -53,10 +79,10 @@ const TabsRootVariants = {
|
|
|
53
79
|
var script = defineComponent({
|
|
54
80
|
name: 'OrTabs',
|
|
55
81
|
components: {
|
|
56
|
-
OrIcon: script$
|
|
57
|
-
OrMenu: script$
|
|
82
|
+
OrIcon: script$3,
|
|
83
|
+
OrMenu: script$1,
|
|
58
84
|
OrMenuItem: script$4,
|
|
59
|
-
OrTab: script$
|
|
85
|
+
OrTab: script$2
|
|
60
86
|
},
|
|
61
87
|
inheritAttrs: false,
|
|
62
88
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue';
|
|
2
|
-
import './OrIconButton-
|
|
2
|
+
import './OrIconButton-1581013c.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
4
|
-
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-
|
|
4
|
+
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
|
|
5
5
|
|
|
6
6
|
var TagVariant;
|
|
7
7
|
(function (TagVariant) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as script } from './types-
|
|
1
|
+
import { a as script } from './types-dcc78caa.js';
|
|
2
2
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createVNode, TransitionGroup, createElementBlock, Fragment, renderList, mergeProps, createCommentVNode } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
|