sit-onyx 1.6.0-dev-20260113111714 → 1.6.0-dev-20260113131929
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/OnyxGlobalSearch/OnyxGlobalSearch.d.vue.ts +32 -0
- package/dist/index.esm-bundler.js +38 -20
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +2059 -2043
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -95,11 +95,43 @@ declare const _default: __VLS_WithTemplateSlots<import('vue', { with: { "resolut
|
|
|
95
95
|
* Slot to pass search results / groups. Only `OnyxGlobalSearchGroup` components should be used.
|
|
96
96
|
*/
|
|
97
97
|
default?(): unknown;
|
|
98
|
+
/**
|
|
99
|
+
* Slot to pass content after search results.
|
|
100
|
+
*/
|
|
101
|
+
endOfList?(props: {
|
|
102
|
+
/**
|
|
103
|
+
* Helper to make an element navigable.
|
|
104
|
+
* @param value - Must be a unique name (e.g., 'show-all').
|
|
105
|
+
*/
|
|
106
|
+
getOptionProps: (value: string) => {
|
|
107
|
+
role: string;
|
|
108
|
+
id: string;
|
|
109
|
+
"aria-selected": boolean;
|
|
110
|
+
};
|
|
111
|
+
/** The value of the currently highlighted option. */
|
|
112
|
+
activeValue?: string;
|
|
113
|
+
}): unknown;
|
|
98
114
|
}> & {
|
|
99
115
|
/**
|
|
100
116
|
* Slot to pass search results / groups. Only `OnyxGlobalSearchGroup` components should be used.
|
|
101
117
|
*/
|
|
102
118
|
default?(): unknown;
|
|
119
|
+
/**
|
|
120
|
+
* Slot to pass content after search results.
|
|
121
|
+
*/
|
|
122
|
+
endOfList?(props: {
|
|
123
|
+
/**
|
|
124
|
+
* Helper to make an element navigable.
|
|
125
|
+
* @param value - Must be a unique name (e.g., 'show-all').
|
|
126
|
+
*/
|
|
127
|
+
getOptionProps: (value: string) => {
|
|
128
|
+
role: string;
|
|
129
|
+
id: string;
|
|
130
|
+
"aria-selected": boolean;
|
|
131
|
+
};
|
|
132
|
+
/** The value of the currently highlighted option. */
|
|
133
|
+
activeValue?: string;
|
|
134
|
+
}): unknown;
|
|
103
135
|
}>;
|
|
104
136
|
export default _default;
|
|
105
137
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -6854,7 +6854,7 @@ const _hoisted_7$6 = {
|
|
|
6854
6854
|
key: 0,
|
|
6855
6855
|
class: "onyx-table__header"
|
|
6856
6856
|
};
|
|
6857
|
-
const _hoisted_8$
|
|
6857
|
+
const _hoisted_8$6 = { key: 0 };
|
|
6858
6858
|
const _hoisted_9$2 = ["colspan"];
|
|
6859
6859
|
const _hoisted_10$1 = { class: "onyx-table__empty" };
|
|
6860
6860
|
const _hoisted_11 = { colspan: "99" };
|
|
@@ -6912,7 +6912,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6912
6912
|
/* KEYED_FRAGMENT */
|
|
6913
6913
|
)),
|
|
6914
6914
|
$setup.slots.head ? (openBlock(), createElementBlock("thead", _hoisted_7$6, [
|
|
6915
|
-
$setup.props.columnGroups?.length ? (openBlock(), createElementBlock("tr", _hoisted_8$
|
|
6915
|
+
$setup.props.columnGroups?.length ? (openBlock(), createElementBlock("tr", _hoisted_8$6, [
|
|
6916
6916
|
(openBlock(true), createElementBlock(
|
|
6917
6917
|
Fragment,
|
|
6918
6918
|
null,
|
|
@@ -8520,7 +8520,7 @@ const _hoisted_7$5 = {
|
|
|
8520
8520
|
key: 2,
|
|
8521
8521
|
class: "onyx-select__slot"
|
|
8522
8522
|
};
|
|
8523
|
-
const _hoisted_8$
|
|
8523
|
+
const _hoisted_8$5 = {
|
|
8524
8524
|
key: 0,
|
|
8525
8525
|
class: "onyx-select__description onyx-text--small"
|
|
8526
8526
|
};
|
|
@@ -8713,7 +8713,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8713
8713
|
]),
|
|
8714
8714
|
$setup.props.listDescription ? (openBlock(), createElementBlock(
|
|
8715
8715
|
"div",
|
|
8716
|
-
_hoisted_8$
|
|
8716
|
+
_hoisted_8$5,
|
|
8717
8717
|
toDisplayString($setup.props.listDescription),
|
|
8718
8718
|
1
|
|
8719
8719
|
/* TEXT */
|
|
@@ -10739,21 +10739,33 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10739
10739
|
onActivatePrevious: () => activateOption("previous"),
|
|
10740
10740
|
onSelect
|
|
10741
10741
|
});
|
|
10742
|
+
const getOptionProps = (value) => {
|
|
10743
|
+
const isActive = activeValue.value === value;
|
|
10744
|
+
return {
|
|
10745
|
+
role: "option",
|
|
10746
|
+
id: headless.internals.getOptionId(value),
|
|
10747
|
+
"aria-selected": isActive
|
|
10748
|
+
};
|
|
10749
|
+
};
|
|
10742
10750
|
provide(GLOBAL_SEARCH_INJECTION_KEY, { headless, activeValue });
|
|
10743
|
-
const __returned__ = { props, emit, slots, t, basicDialogProps, searchTerm, dialog: dialog2, dialogElement, activeValue, getAllOptions, activateOption, onAutocomplete, onSelect, headless, get iconSearch() {
|
|
10751
|
+
const __returned__ = { props, emit, slots, t, basicDialogProps, searchTerm, dialog: dialog2, dialogElement, activeValue, getAllOptions, activateOption, onAutocomplete, onSelect, headless, getOptionProps, get iconSearch() {
|
|
10744
10752
|
return iconSearch;
|
|
10745
10753
|
}, OnyxBasicDialog, OnyxIcon, OnyxInput, OnyxLoadingIndicator };
|
|
10746
10754
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
10747
10755
|
return __returned__;
|
|
10748
10756
|
}
|
|
10749
10757
|
});
|
|
10750
|
-
const _hoisted_1$z = {
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
const
|
|
10755
|
-
const
|
|
10756
|
-
const
|
|
10758
|
+
const _hoisted_1$z = {
|
|
10759
|
+
key: 0,
|
|
10760
|
+
class: "onyx-global-search__end-of-list"
|
|
10761
|
+
};
|
|
10762
|
+
const _hoisted_2$r = { class: "onyx-global-search__footer onyx-text--small" };
|
|
10763
|
+
const _hoisted_3$j = { class: "onyx-global-search__shortcut" };
|
|
10764
|
+
const _hoisted_4$f = { class: "onyx-global-search__shortcut-label" };
|
|
10765
|
+
const _hoisted_5$b = { class: "onyx-global-search__shortcut" };
|
|
10766
|
+
const _hoisted_6$9 = { class: "onyx-global-search__shortcut-label" };
|
|
10767
|
+
const _hoisted_7$4 = { class: "onyx-global-search__shortcut" };
|
|
10768
|
+
const _hoisted_8$4 = { class: "onyx-global-search__shortcut-label" };
|
|
10757
10769
|
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10758
10770
|
return openBlock(), createBlock($setup["OnyxBasicDialog"], mergeProps($setup.basicDialogProps, {
|
|
10759
10771
|
ref: "dialogRef",
|
|
@@ -10788,7 +10800,13 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10788
10800
|
"div",
|
|
10789
10801
|
mergeProps({ class: "onyx-global-search__body" }, $setup.headless.elements.listbox.value),
|
|
10790
10802
|
[
|
|
10791
|
-
renderSlot(_ctx.$slots, "default")
|
|
10803
|
+
renderSlot(_ctx.$slots, "default"),
|
|
10804
|
+
!!$setup.slots.endOfList ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
10805
|
+
renderSlot(_ctx.$slots, "endOfList", {
|
|
10806
|
+
getOptionProps: $setup.getOptionProps,
|
|
10807
|
+
activeValue: $setup.activeValue
|
|
10808
|
+
})
|
|
10809
|
+
])) : createCommentVNode("v-if", true)
|
|
10792
10810
|
],
|
|
10793
10811
|
16
|
|
10794
10812
|
/* FULL_PROPS */
|
|
@@ -10797,9 +10815,9 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10797
10815
|
]),
|
|
10798
10816
|
withDirectives(createElementVNode(
|
|
10799
10817
|
"div",
|
|
10800
|
-
|
|
10818
|
+
_hoisted_2$r,
|
|
10801
10819
|
[
|
|
10802
|
-
createElementVNode("span",
|
|
10820
|
+
createElementVNode("span", _hoisted_3$j, [
|
|
10803
10821
|
_cache[2] || (_cache[2] = createElementVNode(
|
|
10804
10822
|
"kbd",
|
|
10805
10823
|
null,
|
|
@@ -10816,13 +10834,13 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10816
10834
|
)),
|
|
10817
10835
|
createElementVNode(
|
|
10818
10836
|
"span",
|
|
10819
|
-
|
|
10837
|
+
_hoisted_4$f,
|
|
10820
10838
|
toDisplayString($setup.t("globalSearch.shortcuts.move")),
|
|
10821
10839
|
1
|
|
10822
10840
|
/* TEXT */
|
|
10823
10841
|
)
|
|
10824
10842
|
]),
|
|
10825
|
-
createElementVNode("span",
|
|
10843
|
+
createElementVNode("span", _hoisted_5$b, [
|
|
10826
10844
|
_cache[4] || (_cache[4] = createElementVNode(
|
|
10827
10845
|
"kbd",
|
|
10828
10846
|
null,
|
|
@@ -10832,13 +10850,13 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10832
10850
|
)),
|
|
10833
10851
|
createElementVNode(
|
|
10834
10852
|
"span",
|
|
10835
|
-
|
|
10853
|
+
_hoisted_6$9,
|
|
10836
10854
|
toDisplayString($setup.t("globalSearch.shortcuts.select")),
|
|
10837
10855
|
1
|
|
10838
10856
|
/* TEXT */
|
|
10839
10857
|
)
|
|
10840
10858
|
]),
|
|
10841
|
-
createElementVNode("span",
|
|
10859
|
+
createElementVNode("span", _hoisted_7$4, [
|
|
10842
10860
|
_cache[5] || (_cache[5] = createElementVNode(
|
|
10843
10861
|
"kbd",
|
|
10844
10862
|
null,
|
|
@@ -10848,7 +10866,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10848
10866
|
)),
|
|
10849
10867
|
createElementVNode(
|
|
10850
10868
|
"span",
|
|
10851
|
-
|
|
10869
|
+
_hoisted_8$4,
|
|
10852
10870
|
toDisplayString($setup.t("cancel")),
|
|
10853
10871
|
1
|
|
10854
10872
|
/* TEXT */
|