sit-onyx 1.4.0-dev-20251110091137 → 1.4.0-dev-20251111093451
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/components/OnyxBasicDialog/OnyxBasicDialog.d.vue.ts +6 -1
- package/dist/components/OnyxGlobalSearch/OnyxGlobalSearch.d.vue.ts +106 -0
- package/dist/components/OnyxGlobalSearch/types.d.ts +24 -0
- package/dist/components/OnyxGlobalSearchGroup/OnyxGlobalSearchGroup.d.vue.ts +22 -0
- package/dist/components/OnyxGlobalSearchGroup/types.d.ts +11 -0
- package/dist/components/OnyxGlobalSearchOption/OnyxGlobalSearchOption.d.vue.ts +32 -0
- package/dist/components/OnyxGlobalSearchOption/types.d.ts +23 -0
- package/dist/i18n/locales/de-DE.json +12 -0
- package/dist/i18n/locales/en-US.json +12 -0
- package/dist/i18n/locales/en-US.json.d.ts +12 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm-bundler.js +967 -591
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +4427 -4129
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/styles/grid.scss +7 -7
|
@@ -23,7 +23,12 @@ declare function __VLS_template(): {
|
|
|
23
23
|
rootEl: any;
|
|
24
24
|
};
|
|
25
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<OnyxBasicDialogProps, {
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxBasicDialogProps, {
|
|
27
|
+
/**
|
|
28
|
+
* Template ref to the internal `<dialog>` element.
|
|
29
|
+
*/
|
|
30
|
+
dialog: Readonly<import('vue').ShallowRef<HTMLDialogElement | null>>;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
32
|
"update:open": (open: boolean) => any;
|
|
28
33
|
}, string, import('vue').PublicProps, Readonly<OnyxBasicDialogProps> & Readonly<{
|
|
29
34
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { OnyxGlobalSearchProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental
|
|
4
|
+
* @deprecated This component is still under active development and its API might change in patch releases.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<OnyxGlobalSearchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
"update:open": (open: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<OnyxGlobalSearchProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
dialogRef: ({
|
|
14
|
+
$: import('vue').ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: {
|
|
17
|
+
readonly density?: import('../../index.js', { with: { "resolution-mode": "import" } }).Density | undefined;
|
|
18
|
+
readonly label: string;
|
|
19
|
+
readonly open?: import('../../index.js', { with: { "resolution-mode": "import" } }).Nullable<boolean>;
|
|
20
|
+
readonly modal?: boolean | undefined;
|
|
21
|
+
readonly nonDismissible?: boolean | undefined;
|
|
22
|
+
readonly alert?: boolean | undefined;
|
|
23
|
+
readonly alignment?: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment | undefined;
|
|
24
|
+
readonly "onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
25
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
} & {
|
|
32
|
+
dialogRef: HTMLDialogElement;
|
|
33
|
+
contentRef: HTMLDivElement;
|
|
34
|
+
};
|
|
35
|
+
$slots: Readonly<{
|
|
36
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
39
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
40
|
+
$host: Element | null;
|
|
41
|
+
$emit: (event: "update:open", open: boolean) => void;
|
|
42
|
+
$el: any;
|
|
43
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).OnyxBasicDialogProps> & Readonly<{
|
|
44
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
dialog: Readonly<import('vue').ShallowRef<HTMLDialogElement | null>>;
|
|
47
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
+
"update:open": (open: boolean) => any;
|
|
49
|
+
}, string, {
|
|
50
|
+
alert: boolean;
|
|
51
|
+
modal: boolean;
|
|
52
|
+
nonDismissible: boolean;
|
|
53
|
+
alignment: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment;
|
|
54
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
55
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
56
|
+
created?: (() => void) | (() => void)[];
|
|
57
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
58
|
+
mounted?: (() => void) | (() => void)[];
|
|
59
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
60
|
+
updated?: (() => void) | (() => void)[];
|
|
61
|
+
activated?: (() => void) | (() => void)[];
|
|
62
|
+
deactivated?: (() => void) | (() => void)[];
|
|
63
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
64
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
65
|
+
destroyed?: (() => void) | (() => void)[];
|
|
66
|
+
unmounted?: (() => void) | (() => void)[];
|
|
67
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
68
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
69
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
70
|
+
};
|
|
71
|
+
$forceUpdate: () => void;
|
|
72
|
+
$nextTick: typeof import('vue').nextTick;
|
|
73
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
74
|
+
} & Readonly<{
|
|
75
|
+
alert: boolean;
|
|
76
|
+
modal: boolean;
|
|
77
|
+
nonDismissible: boolean;
|
|
78
|
+
alignment: import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).DialogAlignment;
|
|
79
|
+
}> & Omit<Readonly<import('../OnyxBasicDialog/types.js', { with: { "resolution-mode": "import" } }).OnyxBasicDialogProps> & Readonly<{
|
|
80
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
81
|
+
}>, "dialog" | ("alert" | "modal" | "nonDismissible" | "alignment")> & import('vue').ShallowUnwrapRef<{
|
|
82
|
+
dialog: Readonly<import('vue').ShallowRef<HTMLDialogElement | null>>;
|
|
83
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
84
|
+
$slots: Readonly<{
|
|
85
|
+
default(): unknown;
|
|
86
|
+
}> & {
|
|
87
|
+
default(): unknown;
|
|
88
|
+
};
|
|
89
|
+
}) | null;
|
|
90
|
+
}, any>, Readonly<{
|
|
91
|
+
/**
|
|
92
|
+
* Slot to pass search results / groups. Only `OnyxGlobalSearchGroup` components should be used.
|
|
93
|
+
*/
|
|
94
|
+
default?(): unknown;
|
|
95
|
+
}> & {
|
|
96
|
+
/**
|
|
97
|
+
* Slot to pass search results / groups. Only `OnyxGlobalSearchGroup` components should be used.
|
|
98
|
+
*/
|
|
99
|
+
default?(): unknown;
|
|
100
|
+
}>;
|
|
101
|
+
export default _default;
|
|
102
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
103
|
+
new (): {
|
|
104
|
+
$slots: S;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createComboBox } from '@sit-onyx/headless';
|
|
2
|
+
import { InjectionKey, Ref } from 'vue';
|
|
3
|
+
import { Nullable } from '../../types/utils.js';
|
|
4
|
+
import { OnyxBasicDialogProps } from '../OnyxBasicDialog/types.js';
|
|
5
|
+
export type OnyxGlobalSearchProps = Omit<OnyxBasicDialogProps, "modal" | "alignment" | "label"> & {
|
|
6
|
+
/**
|
|
7
|
+
* The current search term.
|
|
8
|
+
*/
|
|
9
|
+
modelValue?: Nullable<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the search is currently loading results.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const GLOBAL_SEARCH_INJECTION_KEY: InjectionKey<{
|
|
16
|
+
/**
|
|
17
|
+
* Headless elements required for accessibility / keyboard support.
|
|
18
|
+
*/
|
|
19
|
+
headless: ReturnType<typeof createComboBox<string, "list", false>>;
|
|
20
|
+
/**
|
|
21
|
+
* Value of the currently active option.
|
|
22
|
+
*/
|
|
23
|
+
activeValue: Ref<string | undefined>;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnyxGlobalSearchGroupProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental
|
|
4
|
+
* @deprecated This component is still under active development and its API might change in patch releases.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<OnyxGlobalSearchGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxGlobalSearchGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>, Readonly<{
|
|
7
|
+
/**
|
|
8
|
+
* Group options. Should only use `OnyxGlobalSearchOption` components here.
|
|
9
|
+
*/
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
}> & {
|
|
12
|
+
/**
|
|
13
|
+
* Group options. Should only use `OnyxGlobalSearchOption` components here.
|
|
14
|
+
*/
|
|
15
|
+
default?(): unknown;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnyxGlobalSearchOptionProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental
|
|
4
|
+
* @deprecated This component is still under active development and its API might change in patch releases.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<OnyxGlobalSearchOptionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxGlobalSearchOptionProps> & Readonly<{}>, {
|
|
7
|
+
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
9
|
+
/**
|
|
10
|
+
* Optional slot to override the option content. By default the `label` and `icon` property will be displayed.
|
|
11
|
+
*/
|
|
12
|
+
default?(): unknown;
|
|
13
|
+
/**
|
|
14
|
+
* Optional slot to insert custom content on the right side / end of the option.
|
|
15
|
+
*/
|
|
16
|
+
trailing?(): unknown;
|
|
17
|
+
}> & {
|
|
18
|
+
/**
|
|
19
|
+
* Optional slot to override the option content. By default the `label` and `icon` property will be displayed.
|
|
20
|
+
*/
|
|
21
|
+
default?(): unknown;
|
|
22
|
+
/**
|
|
23
|
+
* Optional slot to insert custom content on the right side / end of the option.
|
|
24
|
+
*/
|
|
25
|
+
trailing?(): unknown;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
3
|
+
import { OnyxButtonProps } from '../OnyxButton/types.js';
|
|
4
|
+
import { WithLinkProp } from '../OnyxRouterLink/types.js';
|
|
5
|
+
export type OnyxGlobalSearchOptionProps = DensityProp & WithLinkProp<true> & Pick<OnyxButtonProps, "autofocus"> & {
|
|
6
|
+
/**
|
|
7
|
+
* Option label.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Unique value of the option inside the global search.
|
|
12
|
+
* Required for accessibility and keyboard support.
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional icon to show next to the label.
|
|
17
|
+
*/
|
|
18
|
+
icon?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to show a skeleton option.
|
|
21
|
+
*/
|
|
22
|
+
skeleton?: SkeletonInjected;
|
|
23
|
+
};
|
|
@@ -249,5 +249,17 @@
|
|
|
249
249
|
"copied": "Kopiert!",
|
|
250
250
|
"failed": "Fehlgeschlagen!",
|
|
251
251
|
"tabLabel": "Code"
|
|
252
|
+
},
|
|
253
|
+
"globalSearch": {
|
|
254
|
+
"label": "Globale Suche",
|
|
255
|
+
"searchResults": "Suchergebnisse",
|
|
256
|
+
"input": {
|
|
257
|
+
"label": "Nach Inhalten suchen",
|
|
258
|
+
"placeholder": "Suchen..."
|
|
259
|
+
},
|
|
260
|
+
"shortcuts": {
|
|
261
|
+
"move": "Navigieren",
|
|
262
|
+
"select": "Auswählen"
|
|
263
|
+
}
|
|
252
264
|
}
|
|
253
265
|
}
|
|
@@ -252,5 +252,17 @@
|
|
|
252
252
|
"copied": "Copied!",
|
|
253
253
|
"failed": "Failed!",
|
|
254
254
|
"tabLabel": "Code"
|
|
255
|
+
},
|
|
256
|
+
"globalSearch": {
|
|
257
|
+
"label": "Global search",
|
|
258
|
+
"searchResults": "Search results",
|
|
259
|
+
"input": {
|
|
260
|
+
"label": "Search for content",
|
|
261
|
+
"placeholder": "Search..."
|
|
262
|
+
},
|
|
263
|
+
"shortcuts": {
|
|
264
|
+
"move": "Navigate",
|
|
265
|
+
"select": "Select"
|
|
266
|
+
}
|
|
255
267
|
}
|
|
256
268
|
}
|
|
@@ -252,6 +252,18 @@ declare const _default: {
|
|
|
252
252
|
"copied": "Copied!",
|
|
253
253
|
"failed": "Failed!",
|
|
254
254
|
"tabLabel": "Code"
|
|
255
|
+
},
|
|
256
|
+
"globalSearch": {
|
|
257
|
+
"label": "Global search",
|
|
258
|
+
"searchResults": "Search results",
|
|
259
|
+
"input": {
|
|
260
|
+
"label": "Search for content",
|
|
261
|
+
"placeholder": "Search..."
|
|
262
|
+
},
|
|
263
|
+
"shortcuts": {
|
|
264
|
+
"move": "Navigate",
|
|
265
|
+
"select": "Select"
|
|
266
|
+
}
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
269
|
;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,12 @@ export { default as OnyxForm } from './components/OnyxForm/OnyxForm.vue';
|
|
|
59
59
|
export * from './components/OnyxForm/types.js';
|
|
60
60
|
export { default as OnyxFormElement } from './components/OnyxFormElement/OnyxFormElement.vue';
|
|
61
61
|
export * from './components/OnyxFormElement/types.js';
|
|
62
|
+
export { default as OnyxUnstableGlobalSearch } from './components/OnyxGlobalSearch/OnyxGlobalSearch.vue';
|
|
63
|
+
export * from './components/OnyxGlobalSearch/types.js';
|
|
64
|
+
export { default as OnyxUnstableGlobalSearchGroup } from './components/OnyxGlobalSearchGroup/OnyxGlobalSearchGroup.vue';
|
|
65
|
+
export * from './components/OnyxGlobalSearchGroup/types.js';
|
|
66
|
+
export { default as OnyxUnstableGlobalSearchOption } from './components/OnyxGlobalSearchOption/OnyxGlobalSearchOption.vue';
|
|
67
|
+
export * from './components/OnyxGlobalSearchOption/types.js';
|
|
62
68
|
export { default as OnyxHeadline } from './components/OnyxHeadline/OnyxHeadline.vue';
|
|
63
69
|
export * from './components/OnyxHeadline/types.js';
|
|
64
70
|
export { default as OnyxIcon } from './components/OnyxIcon/OnyxIcon.vue';
|