@onereach/ui-components 2.69.5-beta.2146.0 → 2.69.6-beta.2148.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/{OrCardCollection-f622df47.js → OrCardCollection-c4209a92.js} +13 -9
- package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
- package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-76b002cf.js} +1 -1
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +3 -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 +22 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
- package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +4 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-15645a65.js → OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js} +10 -2
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +3 -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 +22 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
- package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +219 -193
- package/dist/esm/v2/{OrCardCollection-43aa4a3c.js → OrCardCollection-57d11adf.js} +13 -9
- package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
- package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-2f260b09.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +3 -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 +22 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
- package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/index.js +3 -2
- package/dist/esm/v3/{OrCardCollection-6b5e6b76.js → OrCardCollection-2a6514f3.js} +15 -6
- package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
- package/dist/esm/v3/OrInput-41691fb3.js +1 -1
- package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
- package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-e5a2e93e.js} +2 -2
- package/dist/esm/v3/OrSelect-7e813982.js +1 -1
- package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +4 -3
- 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 +22 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
- package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +4 -3
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-card/OrCard.stories.ts +1 -1
- package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +16 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +13 -1
- package/src/components/or-card-collection-v3/styles.ts +3 -1
- package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
- package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
- package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
- package/src/components/or-search-v3/OrSearch.vue +1 -1
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
|
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-4b99c680.js';
|
|
|
6
6
|
import { O as OrMenu } from './OrMenu-fa47c888.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-76b002cf.js';
|
|
10
10
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
11
11
|
|
|
12
12
|
const CardCollectionRoot = [
|
|
@@ -35,7 +35,7 @@ const CardCollectionContentViews = {
|
|
|
35
35
|
'grid': [
|
|
36
36
|
// Layout
|
|
37
37
|
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
38
|
-
'list': []
|
|
38
|
+
'list': ['grid-cols-1']
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
var script$1 = defineComponent({
|
|
@@ -150,6 +150,14 @@ var script = defineComponent({
|
|
|
150
150
|
search: {
|
|
151
151
|
type: String,
|
|
152
152
|
default: ''
|
|
153
|
+
},
|
|
154
|
+
searchPlaceholder: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: undefined
|
|
157
|
+
},
|
|
158
|
+
searchDebounce: {
|
|
159
|
+
type: Number,
|
|
160
|
+
default: undefined
|
|
153
161
|
}
|
|
154
162
|
},
|
|
155
163
|
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
@@ -268,17 +276,13 @@ var __vue_render__ = function () {
|
|
|
268
276
|
}, [_c('OrSearch', {
|
|
269
277
|
staticClass: "md:w-[350px]",
|
|
270
278
|
attrs: {
|
|
279
|
+
"model-value": _vm.proxySearch,
|
|
280
|
+
"placeholder": _vm.searchPlaceholder,
|
|
281
|
+
"debounce": _vm.searchDebounce,
|
|
271
282
|
"size": "s"
|
|
272
283
|
},
|
|
273
284
|
on: {
|
|
274
285
|
"search": _vm.handleSearch
|
|
275
|
-
},
|
|
276
|
-
model: {
|
|
277
|
-
value: _vm.proxySearch,
|
|
278
|
-
callback: function ($$v) {
|
|
279
|
-
_vm.proxySearch = $$v;
|
|
280
|
-
},
|
|
281
|
-
expression: "proxySearch"
|
|
282
286
|
}
|
|
283
287
|
}), _vm._v(" "), _c('div', {
|
|
284
288
|
staticClass: "layout-row gap-sm"
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import './index-fa6eb4ca.js';
|
|
2
|
+
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
|
+
|
|
5
|
+
var EmptyStateSize;
|
|
6
|
+
(function (EmptyStateSize) {
|
|
7
|
+
EmptyStateSize["L"] = "l";
|
|
8
|
+
EmptyStateSize["M"] = "m";
|
|
9
|
+
})(EmptyStateSize || (EmptyStateSize = {}));
|
|
10
|
+
|
|
11
|
+
const EmptyStateRoot = [
|
|
12
|
+
// Layout
|
|
13
|
+
'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
|
|
14
|
+
// Box
|
|
15
|
+
'w-full',
|
|
16
|
+
// Sizing
|
|
17
|
+
'gap-sm'];
|
|
18
|
+
const EmptyStateImage = [
|
|
19
|
+
// Sizing
|
|
20
|
+
'mb-sm'];
|
|
21
|
+
const EmptyStateImageSizes = {
|
|
22
|
+
[EmptyStateSize.L]: [
|
|
23
|
+
// Box
|
|
24
|
+
'h-3xl'],
|
|
25
|
+
[EmptyStateSize.M]: [
|
|
26
|
+
// Box
|
|
27
|
+
'h-2xl']
|
|
28
|
+
};
|
|
29
|
+
const EmptyStateHeading = [
|
|
30
|
+
// Theme
|
|
31
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
32
|
+
const EmptyStateHeadingSizes = {
|
|
33
|
+
[EmptyStateSize.L]: [
|
|
34
|
+
// Typography
|
|
35
|
+
'typography-headline-2'],
|
|
36
|
+
[EmptyStateSize.M]: [
|
|
37
|
+
// Typography
|
|
38
|
+
'typography-headline-4']
|
|
39
|
+
};
|
|
40
|
+
const EmptyStateText = ['text-center',
|
|
41
|
+
// Theme
|
|
42
|
+
'text-outline', 'dark:text-outline-dark'];
|
|
43
|
+
const EmptyStateContent = EmptyStateText;
|
|
44
|
+
const EmptyStateTextSizes = {
|
|
45
|
+
[EmptyStateSize.L]: [
|
|
46
|
+
// Typography
|
|
47
|
+
'typography-body-2-regular'],
|
|
48
|
+
[EmptyStateSize.M]: [
|
|
49
|
+
// Typography
|
|
50
|
+
'typography-caption-regular']
|
|
51
|
+
};
|
|
52
|
+
const EmptyStateContentSizes = EmptyStateTextSizes;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The component to display when there is no content on a page,
|
|
56
|
+
* no records found or selected, or while the data is being loaded.
|
|
57
|
+
* Provides a hint to the user on what to do.
|
|
58
|
+
* Consists of text message, optional icon and optional loader.
|
|
59
|
+
*/
|
|
60
|
+
var script = defineComponent({
|
|
61
|
+
name: 'OrEmptyState',
|
|
62
|
+
props: {
|
|
63
|
+
/**
|
|
64
|
+
* Size of the component, affects font and icon size.
|
|
65
|
+
* Use Large if the component takes all screen space,
|
|
66
|
+
* and Medium if it is a part of the complex layout.
|
|
67
|
+
*/
|
|
68
|
+
size: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: EmptyStateSize.M
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* The heading of the empty state block.
|
|
74
|
+
*/
|
|
75
|
+
heading: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: ''
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Additional text such as a hint for a user with proposed next steps.
|
|
81
|
+
*/
|
|
82
|
+
text: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: ''
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Path to the image to display above the heading.
|
|
88
|
+
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
89
|
+
*/
|
|
90
|
+
imageSrc: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: undefined
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
setup(props) {
|
|
96
|
+
const root = ref();
|
|
97
|
+
const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
|
|
98
|
+
const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
|
|
99
|
+
const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
|
|
100
|
+
const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
|
|
101
|
+
const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
|
|
102
|
+
return {
|
|
103
|
+
root,
|
|
104
|
+
rootClasses,
|
|
105
|
+
imageClasses,
|
|
106
|
+
headingClasses,
|
|
107
|
+
textClasses,
|
|
108
|
+
slotClasses
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/* script */
|
|
114
|
+
const __vue_script__ = script;
|
|
115
|
+
|
|
116
|
+
/* template */
|
|
117
|
+
var __vue_render__ = function () {
|
|
118
|
+
var _vm = this;
|
|
119
|
+
var _h = _vm.$createElement;
|
|
120
|
+
var _c = _vm._self._c || _h;
|
|
121
|
+
return _c('div', {
|
|
122
|
+
ref: "root",
|
|
123
|
+
class: _vm.rootClasses
|
|
124
|
+
}, [_vm.imageSrc ? _c('img', {
|
|
125
|
+
class: _vm.imageClasses,
|
|
126
|
+
attrs: {
|
|
127
|
+
"src": _vm.imageSrc,
|
|
128
|
+
"alt": ""
|
|
129
|
+
}
|
|
130
|
+
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
131
|
+
class: _vm.headingClasses
|
|
132
|
+
}, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
|
|
133
|
+
class: _vm.slotClasses
|
|
134
|
+
}, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
135
|
+
class: _vm.textClasses
|
|
136
|
+
}, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
|
|
137
|
+
};
|
|
138
|
+
var __vue_staticRenderFns__ = [];
|
|
139
|
+
|
|
140
|
+
/* style */
|
|
141
|
+
const __vue_inject_styles__ = undefined;
|
|
142
|
+
/* scoped */
|
|
143
|
+
const __vue_scope_id__ = undefined;
|
|
144
|
+
/* module identifier */
|
|
145
|
+
const __vue_module_identifier__ = undefined;
|
|
146
|
+
/* functional template */
|
|
147
|
+
const __vue_is_functional_template__ = false;
|
|
148
|
+
/* style inject */
|
|
149
|
+
|
|
150
|
+
/* style inject SSR */
|
|
151
|
+
|
|
152
|
+
/* style inject shadow dom */
|
|
153
|
+
|
|
154
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
155
|
+
render: __vue_render__,
|
|
156
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
157
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
158
|
+
var __vue_component__$1 = __vue_component__;
|
|
159
|
+
|
|
160
|
+
export { EmptyStateSize as E, __vue_component__$1 as _ };
|
|
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
|
|
|
21
21
|
export * from './or-error';
|
|
22
22
|
export * from './or-error-tag-v3';
|
|
23
23
|
export * from './or-error-v3';
|
|
24
|
+
export * from './or-empty-state-v3';
|
|
24
25
|
export * from './or-expansion-panel-v3';
|
|
25
26
|
export * from './or-fab-v3';
|
|
26
27
|
export * from './or-floating';
|
|
@@ -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, O as OrButtonV3 } from '../OrButton-4b99c680.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 { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-c4209a92.js';
|
|
12
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';
|
|
@@ -24,6 +24,7 @@ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemType
|
|
|
24
24
|
export { O as OrError } from '../OrError-31503e4c.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from '../OrErrorTag-d0c5bcf4.js';
|
|
26
26
|
export { O as OrErrorV3 } from '../OrError-aad17598.js';
|
|
27
|
+
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-9fb413f9.js';
|
|
27
28
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, O as OrExpansionPanelV3 } from '../OrExpansionPanel-995caa85.js';
|
|
28
29
|
export { F as FabColor, _ as OrFabV3 } from '../OrFab-7cc75893.js';
|
|
29
30
|
export { O as OrFloating, b as OrFloatingHideStrategy, a as OrFloatingPlacements } from '../OrFloating-554d6f58.js';
|
|
@@ -63,7 +64,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
|
|
|
63
64
|
export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
|
|
64
65
|
export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
|
|
65
66
|
export { _ as OrRadioV3 } from '../OrRadio-cd39b20b.js';
|
|
66
|
-
export { O as OrSearchV3 } from '../OrSearch-
|
|
67
|
+
export { O as OrSearchV3 } from '../OrSearch-76b002cf.js';
|
|
67
68
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-21cc914e.js';
|
|
68
69
|
export { _ as OrSelect } from '../OrSelect-a23d4210.js';
|
|
69
70
|
export { _ as OrSelectV3 } from '../OrSelect-b20a9be0.js';
|
|
@@ -20,3 +20,8 @@ export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
|
|
|
20
20
|
export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
|
|
21
21
|
export declare const WithLink: StoryFn<typeof OrCardCollection>;
|
|
22
22
|
export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
|
|
23
|
+
export declare const CustomizeSearch: StoryFn<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, {
|
|
24
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
25
|
+
} | string[], {} & {}, {
|
|
26
|
+
[x: number]: string;
|
|
27
|
+
} | {}, true>)>;
|
|
@@ -47,6 +47,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
47
47
|
type: StringConstructor;
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
|
+
searchPlaceholder: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
searchDebounce: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
50
58
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
51
59
|
items: {
|
|
52
60
|
type: PropType<CardCollectionItem[]>;
|
|
@@ -72,6 +80,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
72
80
|
type: StringConstructor;
|
|
73
81
|
default: string;
|
|
74
82
|
};
|
|
83
|
+
searchPlaceholder: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
searchDebounce: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
75
91
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
76
92
|
search: string;
|
|
77
93
|
sort: string;
|
|
@@ -79,6 +95,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
79
95
|
view: string;
|
|
80
96
|
viewModes: ViewMode[];
|
|
81
97
|
sortOptions: SortOption[];
|
|
98
|
+
searchPlaceholder: string;
|
|
99
|
+
searchDebounce: number;
|
|
82
100
|
} & {} & {
|
|
83
101
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
84
102
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -110,6 +128,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
110
128
|
view: string;
|
|
111
129
|
viewModes: ViewMode[];
|
|
112
130
|
sortOptions: SortOption[];
|
|
131
|
+
searchPlaceholder: string;
|
|
132
|
+
searchDebounce: number;
|
|
113
133
|
} & {} & {
|
|
114
134
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
115
135
|
}, {
|
|
@@ -119,5 +139,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
119
139
|
view: string;
|
|
120
140
|
viewModes: ViewMode[];
|
|
121
141
|
sortOptions: SortOption[];
|
|
142
|
+
searchPlaceholder: string;
|
|
143
|
+
searchDebounce: number;
|
|
122
144
|
}, true>);
|
|
123
145
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-
|
|
1
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-c4209a92.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -20,7 +20,7 @@ import '../../OrButton-4b99c680.js';
|
|
|
20
20
|
import '../../OrLoader-6a1f937b.js';
|
|
21
21
|
import '../../OrMenu-fa47c888.js';
|
|
22
22
|
import '../../OrMenuItem-26420908.js';
|
|
23
|
-
import '../../OrSearch-
|
|
23
|
+
import '../../OrSearch-76b002cf.js';
|
|
24
24
|
import '../../OrInput-8b90e08f.js';
|
|
25
25
|
import '../../OrError-aad17598.js';
|
|
26
26
|
import '../../OrHint-f38a1940.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { EmptyStateSize } from '
|
|
2
|
+
import { EmptyStateSize } from './props';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootClasses: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -1,161 +1,5 @@
|
|
|
1
|
+
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../../OrEmptyState-9fb413f9.js';
|
|
1
2
|
import '../../index-fa6eb4ca.js';
|
|
2
|
-
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
|
-
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
3
|
import 'vue';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(function (EmptyStateSize) {
|
|
8
|
-
EmptyStateSize["L"] = "l";
|
|
9
|
-
EmptyStateSize["M"] = "m";
|
|
10
|
-
})(EmptyStateSize || (EmptyStateSize = {}));
|
|
11
|
-
|
|
12
|
-
const EmptyStateRoot = [
|
|
13
|
-
// Layout
|
|
14
|
-
'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
|
|
15
|
-
// Box
|
|
16
|
-
'w-full',
|
|
17
|
-
// Sizing
|
|
18
|
-
'gap-sm'];
|
|
19
|
-
const EmptyStateImage = [
|
|
20
|
-
// Sizing
|
|
21
|
-
'mb-sm'];
|
|
22
|
-
const EmptyStateImageSizes = {
|
|
23
|
-
[EmptyStateSize.L]: [
|
|
24
|
-
// Box
|
|
25
|
-
'h-3xl'],
|
|
26
|
-
[EmptyStateSize.M]: [
|
|
27
|
-
// Box
|
|
28
|
-
'h-2xl']
|
|
29
|
-
};
|
|
30
|
-
const EmptyStateHeading = [
|
|
31
|
-
// Theme
|
|
32
|
-
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
33
|
-
const EmptyStateHeadingSizes = {
|
|
34
|
-
[EmptyStateSize.L]: [
|
|
35
|
-
// Typography
|
|
36
|
-
'typography-headline-2'],
|
|
37
|
-
[EmptyStateSize.M]: [
|
|
38
|
-
// Typography
|
|
39
|
-
'typography-headline-4']
|
|
40
|
-
};
|
|
41
|
-
const EmptyStateText = ['text-center',
|
|
42
|
-
// Theme
|
|
43
|
-
'text-outline', 'dark:text-outline-dark'];
|
|
44
|
-
const EmptyStateContent = EmptyStateText;
|
|
45
|
-
const EmptyStateTextSizes = {
|
|
46
|
-
[EmptyStateSize.L]: [
|
|
47
|
-
// Typography
|
|
48
|
-
'typography-body-2-regular'],
|
|
49
|
-
[EmptyStateSize.M]: [
|
|
50
|
-
// Typography
|
|
51
|
-
'typography-caption-regular']
|
|
52
|
-
};
|
|
53
|
-
const EmptyStateContentSizes = EmptyStateTextSizes;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The component to display when there is no content on a page,
|
|
57
|
-
* no records found or selected, or while the data is being loaded.
|
|
58
|
-
* Provides a hint to the user on what to do.
|
|
59
|
-
* Consists of text message, optional icon and optional loader.
|
|
60
|
-
*/
|
|
61
|
-
var script = defineComponent({
|
|
62
|
-
name: 'OrEmptyState',
|
|
63
|
-
props: {
|
|
64
|
-
/**
|
|
65
|
-
* Size of the component, affects font and icon size.
|
|
66
|
-
* Use Large if the component takes all screen space,
|
|
67
|
-
* and Medium if it is a part of the complex layout.
|
|
68
|
-
*/
|
|
69
|
-
size: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: EmptyStateSize.M
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* The heading of the empty state block.
|
|
75
|
-
*/
|
|
76
|
-
heading: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: ''
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* Additional text such as a hint for a user with proposed next steps.
|
|
82
|
-
*/
|
|
83
|
-
text: {
|
|
84
|
-
type: String,
|
|
85
|
-
default: ''
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* Path to the image to display above the heading.
|
|
89
|
-
* Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
|
|
90
|
-
*/
|
|
91
|
-
imageSrc: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: undefined
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
setup(props) {
|
|
97
|
-
const root = ref();
|
|
98
|
-
const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
|
|
99
|
-
const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
|
|
100
|
-
const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
|
|
101
|
-
const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
|
|
102
|
-
const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
|
|
103
|
-
return {
|
|
104
|
-
root,
|
|
105
|
-
rootClasses,
|
|
106
|
-
imageClasses,
|
|
107
|
-
headingClasses,
|
|
108
|
-
textClasses,
|
|
109
|
-
slotClasses
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
/* script */
|
|
115
|
-
const __vue_script__ = script;
|
|
116
|
-
|
|
117
|
-
/* template */
|
|
118
|
-
var __vue_render__ = function () {
|
|
119
|
-
var _vm = this;
|
|
120
|
-
var _h = _vm.$createElement;
|
|
121
|
-
var _c = _vm._self._c || _h;
|
|
122
|
-
return _c('div', {
|
|
123
|
-
ref: "root",
|
|
124
|
-
class: _vm.rootClasses
|
|
125
|
-
}, [_vm.imageSrc ? _c('img', {
|
|
126
|
-
class: _vm.imageClasses,
|
|
127
|
-
attrs: {
|
|
128
|
-
"src": _vm.imageSrc,
|
|
129
|
-
"alt": ""
|
|
130
|
-
}
|
|
131
|
-
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
132
|
-
class: _vm.headingClasses
|
|
133
|
-
}, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
|
|
134
|
-
class: _vm.slotClasses
|
|
135
|
-
}, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
136
|
-
class: _vm.textClasses
|
|
137
|
-
}, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
|
|
138
|
-
};
|
|
139
|
-
var __vue_staticRenderFns__ = [];
|
|
140
|
-
|
|
141
|
-
/* style */
|
|
142
|
-
const __vue_inject_styles__ = undefined;
|
|
143
|
-
/* scoped */
|
|
144
|
-
const __vue_scope_id__ = undefined;
|
|
145
|
-
/* module identifier */
|
|
146
|
-
const __vue_module_identifier__ = undefined;
|
|
147
|
-
/* functional template */
|
|
148
|
-
const __vue_is_functional_template__ = false;
|
|
149
|
-
/* style inject */
|
|
150
|
-
|
|
151
|
-
/* style inject SSR */
|
|
152
|
-
|
|
153
|
-
/* style inject shadow dom */
|
|
154
|
-
|
|
155
|
-
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
156
|
-
render: __vue_render__,
|
|
157
|
-
staticRenderFns: __vue_staticRenderFns__
|
|
158
|
-
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
159
|
-
var __vue_component__$1 = __vue_component__;
|
|
160
|
-
|
|
161
|
-
export { EmptyStateSize, __vue_component__$1 as OrEmptyStateV3 };
|
|
4
|
+
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { InputBoxVariant } from '
|
|
3
|
-
import { InputBoxSize } from './props';
|
|
2
|
+
import { InputBoxSize, InputBoxVariant } from './props';
|
|
4
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
5
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
22
22
|
};
|
|
23
23
|
placeholder: {
|
|
24
24
|
type: StringConstructor;
|
|
25
|
-
default:
|
|
25
|
+
default: string;
|
|
26
26
|
};
|
|
27
27
|
debounce: {
|
|
28
28
|
type: NumberConstructor;
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
48
48
|
};
|
|
49
49
|
placeholder: {
|
|
50
50
|
type: StringConstructor;
|
|
51
|
-
default:
|
|
51
|
+
default: string;
|
|
52
52
|
};
|
|
53
53
|
debounce: {
|
|
54
54
|
type: NumberConstructor;
|