@gravity-ui/navigation 3.2.1 → 3.3.1

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.
@@ -4,3 +4,4 @@ import type { LogoProps } from '../../types';
4
4
  declare const _default: Meta<typeof Logo>;
5
5
  export default _default;
6
6
  export declare const Showcase: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, LogoProps>;
7
+ export declare const NoAnchor: (context: import("@storybook/csf").StoryContext<import("@storybook/react").ReactRenderer, LogoProps>) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { SettingsDescription } from '../collect-settings';
2
+ export declare function useAllResultsPage({ pages, handlePageChange, }: {
3
+ pages: SettingsDescription['pages'];
4
+ handlePageChange: (page: string | undefined) => void;
5
+ }): {
6
+ isAllSearchPage: (page: string | undefined) => page is "allSearchResults";
7
+ };
8
+ export declare function getSettingsDescriptionWithAllResultsPage(settingsDescription: SettingsDescription): SettingsDescription;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TextInputSize } from '@gravity-ui/uikit';
3
+ import { SettingsSelection } from '../Selection/types';
3
4
  interface SettingsSearchProps {
4
5
  className?: string;
5
6
  initialValue?: string;
@@ -9,6 +10,7 @@ interface SettingsSearchProps {
9
10
  inputSize?: TextInputSize;
10
11
  placeholder?: string;
11
12
  autoFocus?: boolean;
13
+ selection?: SettingsSelection;
12
14
  }
13
- export declare function SettingsSearch({ className, initialValue, onChange, debounce, inputRef, inputSize, placeholder, autoFocus, }: SettingsSearchProps): React.JSX.Element;
15
+ export declare function SettingsSearch({ className, initialValue, onChange, debounce, inputRef, inputSize, placeholder, autoFocus, selection, }: SettingsSearchProps): React.JSX.Element;
14
16
  export {};
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { IconProps } from '@gravity-ui/uikit';
3
3
  import { SettingsSelection } from './Selection/types';
4
4
  export type SettingsMenu = (SettingsMenuGroup | SettingsMenuItem)[];
5
- interface SettingsMenuGroup {
5
+ export interface SettingsMenuGroup {
6
6
  groupTitle: string;
7
7
  items: SettingsMenuItem[];
8
8
  }
9
- interface SettingsMenuItem {
9
+ export interface SettingsMenuItem {
10
10
  id: string;
11
11
  title: string;
12
12
  icon?: IconProps;
@@ -41,10 +41,9 @@ export interface SelectedSettingsPart {
41
41
  section?: SettingsPageSection;
42
42
  setting?: SettingsItem;
43
43
  }
44
- interface SettingsDescription {
44
+ export interface SettingsDescription {
45
45
  menu: SettingsMenu;
46
46
  pages: Record<string, SettingsPage>;
47
47
  }
48
48
  export declare function getSettingsFromChildren(children: React.ReactNode, searchText?: string): SettingsDescription;
49
49
  export declare function getSelectedSettingsPart(pages: Record<string, SettingsPage>, selection: SettingsSelection): SelectedSettingsPart;
50
- export {};
@@ -1,6 +1,6 @@
1
- declare const _default: ((key: "label_title" | "label_filter-placeholder" | "label_empty-placeholder" | "label_search", params?: import("@gravity-ui/i18n").Params) => string) & {
1
+ declare const _default: ((key: "label_title" | "label_filter-placeholder" | "label_empty-placeholder" | "label_search" | "label_all-results", params?: import("@gravity-ui/i18n").Params) => string) & {
2
2
  keysetData: {
3
- "gn-Settings": Record<"label_title" | "label_filter-placeholder" | "label_empty-placeholder" | "label_search", import("@gravity-ui/i18n").KeyData>;
3
+ "gn-Settings": Record<"label_title" | "label_filter-placeholder" | "label_empty-placeholder" | "label_search" | "label_all-results", import("@gravity-ui/i18n").KeyData>;
4
4
  };
5
5
  };
6
6
  export default _default;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var uikit = require('@gravity-ui/uikit');
5
- var index = require('./index-Chqso-oJ.js');
5
+ var index = require('./index-DJSaylQb.js');
6
6
  require('@bem-react/classname');
7
7
  require('@gravity-ui/icons');
8
8
  require('@gravity-ui/uikit/i18n');
@@ -66,4 +66,4 @@ const TopAlert = ({ alert, className, mobileView = false }) => {
66
66
  };
67
67
 
68
68
  exports.TopAlert = TopAlert;
69
- //# sourceMappingURL=index-CJmG1jdh.js.map
69
+ //# sourceMappingURL=index-BgcyfriO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CJmG1jdh.js","sources":["../../../src/components/TopAlert/useTopAlertHeight.ts","../../../src/components/TopAlert/TopAlert.tsx"],"sourcesContent":["import React from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\nimport {TopAlertProps} from '../types';\n\ntype TopAlertHeightControls = {\n alertRef: React.RefObject<HTMLDivElement>;\n updateTopSize: () => void;\n};\n\nconst G_ROOT_CLASS_NAME = 'g-root';\n\nexport const useTopAlertHeight = ({alert}: {alert?: TopAlertProps}): TopAlertHeightControls => {\n const alertRef = React.useRef<HTMLDivElement>(null);\n\n const setAsideTopPanelHeight = React.useCallback((clientHeight: number) => {\n const gRootElement = document\n .getElementsByClassName(G_ROOT_CLASS_NAME)\n .item(0) as HTMLElement | null;\n gRootElement?.style.setProperty('--gn-top-alert-height', clientHeight + 'px');\n }, []);\n\n const updateTopSize = React.useCallback(() => {\n setAsideTopPanelHeight(alertRef.current?.clientHeight || 0);\n }, [setAsideTopPanelHeight]);\n\n React.useLayoutEffect(() => {\n const updateTopSizeDebounce = debounceFn(updateTopSize, 200, {leading: true});\n\n if (alert) {\n window.addEventListener('resize', updateTopSizeDebounce);\n updateTopSizeDebounce();\n }\n return () => {\n window.removeEventListener('resize', updateTopSizeDebounce);\n setAsideTopPanelHeight(0);\n };\n }, [alert, alertRef, updateTopSize, setAsideTopPanelHeight]);\n\n return {\n alertRef,\n updateTopSize,\n };\n};\n","import React from 'react';\n\nimport {Alert, Text} from '@gravity-ui/uikit';\n\nimport {TopAlertProps} from '../types';\nimport {block} from '../utils/cn';\n\nimport {useTopAlertHeight} from './useTopAlertHeight';\n\nimport './TopAlert.scss';\n\nconst b = block('top-alert');\n\ntype Props = {\n alert?: TopAlertProps;\n className?: string;\n mobileView?: boolean;\n};\n\nexport const TopAlert = ({alert, className, mobileView = false}: Props) => {\n const {alertRef, updateTopSize} = useTopAlertHeight({alert});\n\n const [opened, setOpened] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setOpened(false);\n alert?.onCloseTopAlert?.();\n }, [alert]);\n\n React.useEffect(() => {\n if (!opened) {\n updateTopSize();\n }\n }, [opened, updateTopSize]);\n\n if (!alert || !alert.message) {\n return null;\n }\n\n return (\n <div\n ref={alertRef}\n className={b('wrapper', {'with-bottom-border': !mobileView && opened}, className)}\n >\n {opened && (\n <Alert\n className={b('', {\n centered: alert.centered,\n dense: alert.dense,\n })}\n corners=\"square\"\n layout=\"horizontal\"\n align={alert.align}\n theme={alert.theme || 'warning'}\n view={alert.view}\n icon={alert.icon}\n title={alert.title}\n message={\n mobileView ? (\n <Text ellipsisLines={5} variant=\"body-2\">\n {alert.message}\n </Text>\n ) : (\n alert.message\n )\n }\n actions={alert.actions}\n onClose={alert.closable ? handleClose : undefined}\n />\n )}\n </div>\n );\n};\n"],"names":["debounceFn","block","Alert","Text"],"mappings":"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"}
1
+ {"version":3,"file":"index-BgcyfriO.js","sources":["../../../src/components/TopAlert/useTopAlertHeight.ts","../../../src/components/TopAlert/TopAlert.tsx"],"sourcesContent":["import React from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\nimport {TopAlertProps} from '../types';\n\ntype TopAlertHeightControls = {\n alertRef: React.RefObject<HTMLDivElement>;\n updateTopSize: () => void;\n};\n\nconst G_ROOT_CLASS_NAME = 'g-root';\n\nexport const useTopAlertHeight = ({alert}: {alert?: TopAlertProps}): TopAlertHeightControls => {\n const alertRef = React.useRef<HTMLDivElement>(null);\n\n const setAsideTopPanelHeight = React.useCallback((clientHeight: number) => {\n const gRootElement = document\n .getElementsByClassName(G_ROOT_CLASS_NAME)\n .item(0) as HTMLElement | null;\n gRootElement?.style.setProperty('--gn-top-alert-height', clientHeight + 'px');\n }, []);\n\n const updateTopSize = React.useCallback(() => {\n setAsideTopPanelHeight(alertRef.current?.clientHeight || 0);\n }, [setAsideTopPanelHeight]);\n\n React.useLayoutEffect(() => {\n const updateTopSizeDebounce = debounceFn(updateTopSize, 200, {leading: true});\n\n if (alert) {\n window.addEventListener('resize', updateTopSizeDebounce);\n updateTopSizeDebounce();\n }\n return () => {\n window.removeEventListener('resize', updateTopSizeDebounce);\n setAsideTopPanelHeight(0);\n };\n }, [alert, alertRef, updateTopSize, setAsideTopPanelHeight]);\n\n return {\n alertRef,\n updateTopSize,\n };\n};\n","import React from 'react';\n\nimport {Alert, Text} from '@gravity-ui/uikit';\n\nimport {TopAlertProps} from '../types';\nimport {block} from '../utils/cn';\n\nimport {useTopAlertHeight} from './useTopAlertHeight';\n\nimport './TopAlert.scss';\n\nconst b = block('top-alert');\n\ntype Props = {\n alert?: TopAlertProps;\n className?: string;\n mobileView?: boolean;\n};\n\nexport const TopAlert = ({alert, className, mobileView = false}: Props) => {\n const {alertRef, updateTopSize} = useTopAlertHeight({alert});\n\n const [opened, setOpened] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setOpened(false);\n alert?.onCloseTopAlert?.();\n }, [alert]);\n\n React.useEffect(() => {\n if (!opened) {\n updateTopSize();\n }\n }, [opened, updateTopSize]);\n\n if (!alert || !alert.message) {\n return null;\n }\n\n return (\n <div\n ref={alertRef}\n className={b('wrapper', {'with-bottom-border': !mobileView && opened}, className)}\n >\n {opened && (\n <Alert\n className={b('', {\n centered: alert.centered,\n dense: alert.dense,\n })}\n corners=\"square\"\n layout=\"horizontal\"\n align={alert.align}\n theme={alert.theme || 'warning'}\n view={alert.view}\n icon={alert.icon}\n title={alert.title}\n message={\n mobileView ? (\n <Text ellipsisLines={5} variant=\"body-2\">\n {alert.message}\n </Text>\n ) : (\n alert.message\n )\n }\n actions={alert.actions}\n onClose={alert.closable ? handleClose : undefined}\n />\n )}\n </div>\n );\n};\n"],"names":["debounceFn","block","Alert","Text"],"mappings":"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"}
@@ -140,7 +140,7 @@ function styleInject(css, ref) {
140
140
  var css_248z$u = ".g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-top-alert-height,0);max-height:calc(100vh - var(--gn-top-alert-height, 0));position:sticky;top:var(--gn-top-alert-height,0);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:\"\";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;width:var(--gn-aside-header-size);z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:\"\";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:\"\";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button .gn-aside-header__logo-icon-place{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));width:var(--gn-aside-header-min-width)}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-top-alert-height,0) 0 0;max-height:calc(100vh - var(--gn-top-alert-height, 0));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__top-alert{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__content{margin-top:var(--gn-top-alert-height,0);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}";
141
141
  styleInject(css_248z$u);
142
142
 
143
- const TopAlert$1 = React.lazy(() => Promise.resolve().then(function () { return require('./index-CJmG1jdh.js'); }).then((module) => ({ default: module.TopAlert })));
143
+ const TopAlert$1 = React.lazy(() => Promise.resolve().then(function () { return require('./index-BgcyfriO.js'); }).then((module) => ({ default: module.TopAlert })));
144
144
  const Layout = ({ compact, className, children, topAlert }) => {
145
145
  const size = compact ? ASIDE_HEADER_COMPACT_WIDTH : ASIDE_HEADER_EXPANDED_WIDTH;
146
146
  const asideHeaderContextValue = React.useMemo(() => ({ size, compact }), [compact, size]);
@@ -1920,7 +1920,17 @@ const Logo = ({ text, icon, iconSrc, iconClassName, iconPlaceClassName, iconSize
1920
1920
  else {
1921
1921
  logo = (React.createElement("div", { className: b$n('logo'), style: { fontSize: textSize } }, text));
1922
1922
  }
1923
- const button = (React.createElement("a", { className: b$n('btn-logo', buttonClassName), onClick: onClick, target: target, rel: target === '_self' ? undefined : 'noreferrer', href: href, "aria-label": href && ariaLabel, "aria-labelledby": href && ariaLabelledby },
1923
+ const _a = href
1924
+ ? {
1925
+ tag: 'a',
1926
+ target,
1927
+ rel: target === '_self' ? undefined : 'noreferrer',
1928
+ href,
1929
+ 'aria-label': ariaLabel,
1930
+ 'aria-labelledby': ariaLabelledby,
1931
+ }
1932
+ : { tag: 'span' }, { tag: Button } = _a, buttonProps = __rest(_a, ["tag"]);
1933
+ const button = (React.createElement(Button, Object.assign({}, buttonProps, { className: b$n('btn-logo', buttonClassName), onClick: onClick }),
1924
1934
  React.createElement("span", { className: b$n('logo-icon-place', iconPlaceClassName) }, buttonIcon),
1925
1935
  !compact && logo));
1926
1936
  return (React.createElement("div", { className: b$n(null, className) }, hasWrapper ? wrapper(button, Boolean(compact)) : button));
@@ -4694,6 +4704,123 @@ function HotkeysPanel(_a) {
4694
4704
  React.createElement(DrawerItem, { id: "hotkeys", visible: visible, className: b$e('drawer-item', drawerItemClassName), content: drawerItemContent })));
4695
4705
  }
4696
4706
 
4707
+ /**
4708
+ * Gets the last element of `array`.
4709
+ *
4710
+ * @static
4711
+ * @memberOf _
4712
+ * @since 0.1.0
4713
+ * @category Array
4714
+ * @param {Array} array The array to query.
4715
+ * @returns {*} Returns the last element of `array`.
4716
+ * @example
4717
+ *
4718
+ * _.last([1, 2, 3]);
4719
+ * // => 3
4720
+ */
4721
+
4722
+ var last_1;
4723
+ var hasRequiredLast;
4724
+
4725
+ function requireLast () {
4726
+ if (hasRequiredLast) return last_1;
4727
+ hasRequiredLast = 1;
4728
+ function last(array) {
4729
+ var length = array == null ? 0 : array.length;
4730
+ return length ? array[length - 1] : undefined;
4731
+ }
4732
+
4733
+ last_1 = last;
4734
+ return last_1;
4735
+ }
4736
+
4737
+ var lastExports = requireLast();
4738
+ var last = /*@__PURE__*/getDefaultExportFromCjs(lastExports);
4739
+
4740
+ var label_title$1 = "Settings";
4741
+ var label_search$1 = "Search";
4742
+ var en$1 = {
4743
+ label_title: label_title$1,
4744
+ "label_filter-placeholder": "Search settings",
4745
+ "label_empty-placeholder": "No results found",
4746
+ label_search: label_search$1,
4747
+ "label_all-results": "All results"
4748
+ };
4749
+
4750
+ var label_title = "Настройки";
4751
+ var label_search = "Поиск";
4752
+ var ru$1 = {
4753
+ label_title: label_title,
4754
+ "label_filter-placeholder": "Найти настройки",
4755
+ "label_empty-placeholder": "Ничего не найдено",
4756
+ label_search: label_search,
4757
+ "label_all-results": "Все результаты"
4758
+ };
4759
+
4760
+ const COMPONENT$1 = 'Settings';
4761
+ var i18n$1 = i18n$5.addComponentKeysets({ en: en$1, ru: ru$1 }, `${NAMESPACE}${COMPONENT$1}`);
4762
+
4763
+ const allSearchResultsId = 'allSearchResults';
4764
+ const allSearchResultsLabel = i18n$1('label_all-results');
4765
+ function useAllResultsPage({ pages, handlePageChange, }) {
4766
+ const allSearchResultsPage = pages[allSearchResultsId];
4767
+ const hasAllSearchResultsPage = Boolean(allSearchResultsPage);
4768
+ React.useEffect(() => {
4769
+ if (hasAllSearchResultsPage) {
4770
+ handlePageChange(allSearchResultsId);
4771
+ }
4772
+ // eslint-disable-next-line react-hooks/exhaustive-deps
4773
+ }, [hasAllSearchResultsPage]);
4774
+ return {
4775
+ isAllSearchPage: (page) => page === allSearchResultsId,
4776
+ };
4777
+ }
4778
+ function getSettingsDescriptionWithAllResultsPage(settingsDescription) {
4779
+ const { menu, pages } = settingsDescription;
4780
+ const menuWithoutAllResults = getMenuWithoutAllResults(menu);
4781
+ const pagesList = Object.values(pages);
4782
+ return Object.assign(Object.assign({}, settingsDescription), { menu: [createAllResultsMenuItem(), ...menuWithoutAllResults], pages: Object.assign(Object.assign({}, pages), { [allSearchResultsId]: createAllResultsPage(pagesList, menuWithoutAllResults) }) });
4783
+ }
4784
+ function getMenuWithoutAllResults(menu) {
4785
+ return menu.filter((item) => !('id' in item) || item.id !== allSearchResultsId);
4786
+ }
4787
+ function createAllResultsPage(pages, menu) {
4788
+ const breadcrumbsMap = {};
4789
+ for (const menuItem of menu) {
4790
+ if ('items' in menuItem) {
4791
+ for (const pageItem of menuItem.items) {
4792
+ breadcrumbsMap[pageItem.id] = [menuItem.groupTitle, pageItem.title];
4793
+ }
4794
+ }
4795
+ else {
4796
+ breadcrumbsMap[menuItem.id] = [menuItem.title];
4797
+ }
4798
+ }
4799
+ return {
4800
+ id: allSearchResultsId,
4801
+ sections: Object.values(pages)
4802
+ .map((page) => {
4803
+ return page.sections.map((section) => {
4804
+ var _a;
4805
+ const breadcrumbs = (_a = breadcrumbsMap[page.id]) !== null && _a !== undefined ? _a : [];
4806
+ const lastBreadcrumb = last(breadcrumbs);
4807
+ const breadcrumbsTitlePart = breadcrumbs.join(' / ');
4808
+ return Object.assign(Object.assign({}, section), { title: section.title === lastBreadcrumb
4809
+ ? breadcrumbsTitlePart
4810
+ : `${breadcrumbsTitlePart} / ${section.title}` });
4811
+ });
4812
+ })
4813
+ .flat(),
4814
+ };
4815
+ }
4816
+ function createAllResultsMenuItem() {
4817
+ return {
4818
+ id: allSearchResultsId,
4819
+ title: allSearchResultsLabel,
4820
+ icon: { data: icons.ListUl },
4821
+ };
4822
+ }
4823
+
4697
4824
  function useStableCallback(func) {
4698
4825
  const funcRef = React__namespace.useRef();
4699
4826
  React__namespace.useEffect(() => {
@@ -4727,7 +4854,13 @@ function getSettingsFromChildren(children, searchText = '') {
4727
4854
  // 'abc def fg' -> abc.*?cde.*?fg
4728
4855
  const preparedFilter = escapeStringForRegExp(searchText).replace(/\s+/g, '.*?');
4729
4856
  const filterRe = new RegExp(preparedFilter, 'i');
4730
- return getSettingsFromChildrenRecursive(children, '', filterRe);
4857
+ const result = getSettingsFromChildrenRecursive(children, '', filterRe);
4858
+ if (Boolean(preparedFilter) && result.menu.length > 0) {
4859
+ return getSettingsDescriptionWithAllResultsPage(result);
4860
+ }
4861
+ else {
4862
+ return result;
4863
+ }
4731
4864
  }
4732
4865
  function getSettingsFromChildrenRecursive(children, basepath = '', filterRe) {
4733
4866
  const menu = [];
@@ -4757,11 +4890,13 @@ function getSettingsFromChildrenRecursive(children, basepath = '', filterRe) {
4757
4890
  const hasInnerGroup = menuFragment.some((item) => 'groupTitle' in item);
4758
4891
  invariant(!hasInnerGroup, `Group ${element.props.groupTitle} should not include groups`);
4759
4892
  }
4760
- menu.push({
4761
- groupTitle: element.props.groupTitle,
4762
- // @ts-ignore
4763
- items: menuFragment,
4764
- });
4893
+ if (menuFragment.length > 0) {
4894
+ menu.push({
4895
+ groupTitle: element.props.groupTitle,
4896
+ // @ts-ignore
4897
+ items: menuFragment,
4898
+ });
4899
+ }
4765
4900
  Object.assign(pages, pagesFragment);
4766
4901
  }
4767
4902
  else {
@@ -4774,13 +4909,15 @@ function getSettingsFromChildrenRecursive(children, basepath = '', filterRe) {
4774
4909
  }
4775
4910
  pages[pageId] = getSettingsPageFromChildren(element.props.children, filterRe);
4776
4911
  pages[pageId].id = pageId;
4777
- menu.push({
4778
- id: pageId,
4779
- title: element.props.title,
4780
- icon: element.props.icon,
4781
- withBadge: pages[pageId].withBadge,
4782
- disabled: pages[pageId].hidden,
4783
- });
4912
+ if (!pages[pageId].hidden) {
4913
+ menu.push({
4914
+ id: pageId,
4915
+ title: element.props.title,
4916
+ icon: element.props.icon,
4917
+ withBadge: pages[pageId].withBadge,
4918
+ disabled: pages[pageId].hidden,
4919
+ });
4920
+ }
4784
4921
  }
4785
4922
  });
4786
4923
  return { menu, pages };
@@ -4931,7 +5068,7 @@ function isSectionSelected(selected, pageId, section) {
4931
5068
  }
4932
5069
  }
4933
5070
 
4934
- var css_248z$c = ".gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:\"\";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}";
5071
+ var css_248z$c = ".gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item+.gn-settings-menu__group{margin-top:8px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:\"\";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}";
4935
5072
  styleInject(css_248z$c);
4936
5073
 
4937
5074
  const b$d = block('settings-menu');
@@ -5036,35 +5173,23 @@ const SettingsMenuMobile = ({ items, onChange, activeItemId, className, }) => {
5036
5173
  React.createElement(legacy.Tabs, { items: tabItems, className: b$c(null, className), size: "l", activeTab: activeItemId, onSelectTab: onChange })));
5037
5174
  };
5038
5175
 
5039
- var label_title$1 = "Settings";
5040
- var label_search$1 = "Search";
5041
- var en$1 = {
5042
- label_title: label_title$1,
5043
- "label_filter-placeholder": "Search settings",
5044
- "label_empty-placeholder": "No results found",
5045
- label_search: label_search$1
5046
- };
5047
-
5048
- var label_title = "Настройки";
5049
- var label_search = "Поиск";
5050
- var ru$1 = {
5051
- label_title: label_title,
5052
- "label_filter-placeholder": "Найти настройки",
5053
- "label_empty-placeholder": "Ничего не найдено",
5054
- label_search: label_search
5055
- };
5056
-
5057
- const COMPONENT$1 = 'Settings';
5058
- var i18n$1 = i18n$5.addComponentKeysets({ en: en$1, ru: ru$1 }, `${NAMESPACE}${COMPONENT$1}`);
5059
-
5060
5176
  const b$b = block('settings-search');
5061
- function SettingsSearch({ className, initialValue, onChange, debounce = 200, inputRef, inputSize, placeholder, autoFocus = true, }) {
5177
+ function SettingsSearch({ className, initialValue, onChange, debounce = 200, inputRef, inputSize, placeholder, autoFocus = true, selection, }) {
5062
5178
  const [value, setValue] = React.useState(initialValue !== null && initialValue !== undefined ? initialValue : '');
5063
- const onChangeDebounced = useStableCallback(debounceFn(onChange, debounce));
5179
+ const onChangeDebounced = debounceFn(onChange, debounce);
5064
5180
  const handleUpdate = useStableCallback((updated) => {
5065
5181
  setValue(updated);
5066
5182
  onChangeDebounced(updated);
5067
5183
  });
5184
+ React.useEffect(() => {
5185
+ if (value && selection) {
5186
+ onChangeDebounced.cancel();
5187
+ setValue('');
5188
+ onChange('');
5189
+ }
5190
+ // Remove any search, if selection is passed
5191
+ // eslint-disable-next-line react-hooks/exhaustive-deps
5192
+ }, [selection]);
5068
5193
  return (React.createElement("div", { className: b$b(null, className) },
5069
5194
  React.createElement(uikit.TextInput, { value: value, controlRef: inputRef, hasClear: true, autoFocus: autoFocus, size: inputSize, placeholder: placeholder, onUpdate: handleUpdate, controlProps: {
5070
5195
  'aria-label': i18n$1('label_search'),
@@ -5098,7 +5223,7 @@ const getPageTitleById = (menu, activePage) => {
5098
5223
  return '';
5099
5224
  };
5100
5225
  function SettingsContent({ initialPage, initialSearch, selection, children, renderNotFound, title = i18n$1('label_title'), filterPlaceholder = i18n$1('label_filter-placeholder'), emptyPlaceholder = i18n$1('label_empty-placeholder'), view, onPageChange, onClose, }) {
5101
- var _a, _b;
5226
+ var _a;
5102
5227
  const { renderSectionRightAdornment, showRightAdornmentOnHover } = useSettingsContext();
5103
5228
  const [search, setSearch] = React.useState(initialSearch !== null && initialSearch !== undefined ? initialSearch : '');
5104
5229
  const { menu, pages } = getSettingsFromChildren(children, search);
@@ -5125,17 +5250,21 @@ function SettingsContent({ initialPage, initialSearch, selection, children, rend
5125
5250
  };
5126
5251
  }, []);
5127
5252
  let activePage = selectedPage;
5128
- if (!activePage || ((_a = pages[activePage]) === null || _a === undefined ? undefined : _a.hidden)) {
5129
- activePage = (_b = Object.values(pages).find(({ hidden }) => !hidden)) === null || _b === undefined ? undefined : _b.id;
5253
+ if (!activePage || !pages[activePage] || pages[activePage].hidden) {
5254
+ activePage = (_a = Object.values(pages).find(({ hidden }) => !hidden)) === null || _a === undefined ? undefined : _a.id;
5130
5255
  }
5131
5256
  const handlePageChange = (newPage) => {
5132
5257
  setCurrentPage((prevPage) => {
5133
- if (prevPage !== newPage) {
5258
+ if (prevPage !== newPage && !isFakePage(newPage)) {
5134
5259
  onPageChange === null || onPageChange === undefined ? undefined : onPageChange(newPage);
5135
5260
  }
5136
5261
  return newPage;
5137
5262
  });
5138
5263
  };
5264
+ const { isAllSearchPage } = useAllResultsPage({ pages, handlePageChange });
5265
+ function isFakePage(page) {
5266
+ return isAllSearchPage(page);
5267
+ }
5139
5268
  React.useEffect(() => {
5140
5269
  if (activePage !== selectedPage) {
5141
5270
  handlePageChange(activePage);
@@ -5179,7 +5308,7 @@ function SettingsContent({ initialPage, initialSearch, selection, children, rend
5179
5308
  return (React.createElement(SettingsSelectionContextProvider, { value: selected },
5180
5309
  React.createElement("div", { className: b$a({ view }) },
5181
5310
  isMobile ? (React.createElement(React.Fragment, null,
5182
- React.createElement(SettingsSearch, { inputRef: searchInputRef, className: b$a('search'), initialValue: initialSearch, onChange: setSearch, autoFocus: false, inputSize: 'xl' }),
5311
+ React.createElement(SettingsSearch, { inputRef: searchInputRef, className: b$a('search'), initialValue: initialSearch, selection: selection, onChange: setSearch, autoFocus: false, inputSize: 'xl' }),
5183
5312
  React.createElement(SettingsMenuMobile, { items: menu, onChange: handlePageChange, activeItemId: activePage, className: b$a('tabs') }))) : (React.createElement("div", { className: b$a('menu'), onClick: () => {
5184
5313
  if (searchInputRef.current) {
5185
5314
  searchInputRef.current.focus();
@@ -5192,7 +5321,7 @@ function SettingsContent({ initialPage, initialSearch, selection, children, rend
5192
5321
  }
5193
5322
  } },
5194
5323
  React.createElement(Title, null, title),
5195
- React.createElement(SettingsSearch, { inputRef: searchInputRef, className: b$a('search'), initialValue: initialSearch, onChange: setSearch, placeholder: filterPlaceholder, autoFocus: true }),
5324
+ React.createElement(SettingsSearch, { inputRef: searchInputRef, className: b$a('search'), initialValue: initialSearch, selection: selection, onChange: setSearch, placeholder: filterPlaceholder, autoFocus: true }),
5196
5325
  React.createElement(SettingsMenu, { ref: menuRef, items: menu, onChange: handlePageChange, activeItemId: activePage }))),
5197
5326
  React.createElement("div", { className: b$a('page') }, renderPageContent(activePage)))));
5198
5327
  }
@@ -5406,10 +5535,10 @@ const OverlapPanel = ({ title, renderContent, className, onClose, action, closeT
5406
5535
  React.createElement("div", { className: b$5('content') }, renderContent()))));
5407
5536
  };
5408
5537
 
5409
- var css_248z$4 = ".gn-mobile-header{--mobile-header-min-heigth:50px;--mobile-header-icon-size:20px}.gn-mobile-header,.gn-mobile-header__top-alert{background-color:var(--g-color-base-background)}.gn-mobile-header__top-alert{position:sticky;top:0}.gn-mobile-header__header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;justify-content:space-between;padding:0 10px;z-index:var(--gn-mobile-header-z-index,100)}.gn-mobile-header__burger{padding:12px}.gn-mobile-header__panel-item{--gn-drawer-item-position:var(--gn-mobile-header-panel-position,absolute)}.gn-mobile-header__burger-menu,.gn-mobile-header__panel-item{background-color:var(--g-color-base-background);max-height:100%;max-width:90vw;width:320px}.gn-mobile-header__user-menu{overflow-y:auto}.gn-mobile-header__overlap-panel,.gn-mobile-header__panels{z-index:var(--gn-mobile-header-panel-z-index,98)}.gn-mobile-header__panels{inset:var(--mobile-header-min-heigth) 0 0;overflow:hidden;position:fixed}.gn-mobile-header__panel-item{top:unset}.gn-mobile-header__content{overflow:auto}";
5538
+ var css_248z$4 = ".gn-mobile-header{--mobile-header-min-heigth:50px;--mobile-header-icon-size:20px;background-color:var(--g-color-base-background)}.gn-mobile-header__header-container{background-color:var(--g-color-base-background);position:sticky;top:0;z-index:var(--gn-mobile-header-z-index,100)}.gn-mobile-header__header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;justify-content:space-between;padding:0 10px}.gn-mobile-header__burger{padding:12px}.gn-mobile-header__panel-item{--gn-drawer-item-position:var(--gn-mobile-header-panel-position,absolute)}.gn-mobile-header__burger-menu,.gn-mobile-header__panel-item{background-color:var(--g-color-base-background);max-height:100%;max-width:90vw;width:320px}.gn-mobile-header__user-menu{overflow-y:auto}.gn-mobile-header__overlap-panel,.gn-mobile-header__panels{z-index:var(--gn-mobile-header-panel-z-index,98)}.gn-mobile-header__panels{inset:var(--mobile-header-min-heigth) 0 0;overflow:hidden;position:fixed}.gn-mobile-header__panel-item{top:unset}.gn-mobile-header__content{overflow:auto}";
5410
5539
  styleInject(css_248z$4);
5411
5540
 
5412
- const TopAlert = React.lazy(() => Promise.resolve().then(function () { return require('./index-CJmG1jdh.js'); }).then((module) => ({ default: module.TopAlert })));
5541
+ const TopAlert = React.lazy(() => Promise.resolve().then(function () { return require('./index-BgcyfriO.js'); }).then((module) => ({ default: module.TopAlert })));
5413
5542
  const b$4 = block('mobile-header');
5414
5543
  const MobileHeader = React.forwardRef(({ logo, burgerMenu, burgerCloseTitle = i18n('burger_button_close'), burgerOpenTitle = i18n('burger_button_open'), panelItems = [], renderContent, sideItemRenderContent, onClosePanel, onEvent, className, contentClassName, overlapPanel, topAlert, }, ref) => {
5415
5544
  const targetRef = useForwardRef(ref);
@@ -5527,7 +5656,7 @@ const MobileHeader = React.forwardRef(({ logo, burgerMenu, burgerCloseTitle = i1
5527
5656
  onOverlapClose,
5528
5657
  ]);
5529
5658
  return (React.createElement("div", { className: b$4({ compact }, className), ref: targetRef },
5530
- React.createElement("div", { className: b$4('top-alert') },
5659
+ React.createElement("div", { className: b$4('header-container') },
5531
5660
  topAlert && (React.createElement(React.Suspense, { fallback: null },
5532
5661
  React.createElement(TopAlert, { alert: topAlert, mobileView: true }))),
5533
5662
  React.createElement("header", { className: b$4('header'), style: { height: size } },
@@ -5725,4 +5854,4 @@ exports.styleInject = styleInject;
5725
5854
  exports.useAsideHeaderContext = useAsideHeaderContext;
5726
5855
  exports.useSettingsContext = useSettingsContext;
5727
5856
  exports.useSettingsSelectionContext = useSettingsSelectionContext;
5728
- //# sourceMappingURL=index-Chqso-oJ.js.map
5857
+ //# sourceMappingURL=index-DJSaylQb.js.map