shirkasoft-ui-components 1.14.0 → 2.0.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.
Files changed (92) hide show
  1. package/README.md +4 -8
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1440
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -300
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -327
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -819
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -402
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +95 -134
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +5 -5
  62. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  63. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  64. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  65. package/types/shirkasoft-ui-components-config.d.ts +193 -204
  66. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
  67. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -112
  70. package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
  71. package/types/shirkasoft-ui-components-knob.d.ts +144 -78
  72. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  73. package/types/shirkasoft-ui-components-modal.d.ts +134 -136
  74. package/types/shirkasoft-ui-components-notification.d.ts +63 -59
  75. package/types/shirkasoft-ui-components-price-input.d.ts +198 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +301 -196
  78. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
  79. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  80. package/types/shirkasoft-ui-components-table.d.ts +849 -660
  81. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  82. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  83. package/types/shirkasoft-ui-components-text-field.d.ts +231 -127
  84. package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
  85. package/types/shirkasoft-ui-components-theme.d.ts +56 -64
  86. package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
  87. package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
  88. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  89. package/types/shirkasoft-ui-components-utils.d.ts +15 -16
  90. package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
  91. package/types/shirkasoft-ui-components.d.ts +1 -2
  92. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,28 +1,29 @@
1
- import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons';
2
- import * as _angular_core from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
4
5
  interface RailSidebarItem {
5
- id: string;
6
- label: string;
7
- icon?: string | any;
8
- routerLink?: string;
9
- children?: RailSidebarItem[];
10
- roles?: string[];
11
- badge?: string | number;
12
- disabled?: boolean;
13
- separator?: boolean;
6
+ id: string;
7
+ label: string;
8
+ icon?: string | any;
9
+ routerLink?: string;
10
+ children?: RailSidebarItem[];
11
+ roles?: string[];
12
+ badge?: string | number;
13
+ disabled?: boolean;
14
+ separator?: boolean;
14
15
  }
15
16
  interface RailSidebarSection {
16
- key: string;
17
- label: string;
18
- icon?: string | any;
19
- routerLink?: string;
20
- matchPrefixes?: string[];
21
- items?: RailSidebarItem[];
17
+ key: string;
18
+ label: string;
19
+ icon?: string | any;
20
+ routerLink?: string;
21
+ matchPrefixes?: string[];
22
+ items?: RailSidebarItem[];
22
23
  }
23
24
  interface RailSidebarSectionEvent {
24
- key: string;
25
- routerLink?: string;
25
+ key: string;
26
+ routerLink?: string;
26
27
  }
27
28
  /**
28
29
  * Narrow "rail" sidebar that expands into sections. Supports sections, roles,
@@ -30,126 +31,245 @@ interface RailSidebarSectionEvent {
30
31
  * `mobileBreakpoint` it turns into an off-canvas drawer opened from a
31
32
  * hamburger button, so it doesn't take any width from the page.
32
33
  */
33
- declare class RailSidebarComponent {
34
- private readonly isBrowser;
35
- private readonly injector;
36
- /** Unique id of the drawer (for aria-controls). */
37
- protected readonly uid: string;
38
- /** Sections presented as expandable areas of the rail. */
39
- sections: _angular_core.InputSignal<RailSidebarSection[]>;
40
- /** Current location url used to detect the active section/item. */
41
- activeUrl: _angular_core.InputSignal<string>;
42
- /** Key of the active section, bindable with [(activeSectionKey)]. */
43
- activeSectionKey: _angular_core.ModelSignal<string>;
44
- /** Collapsed (rail only) state, bindable with [(collapsed)]. */
45
- collapsed: _angular_core.ModelSignal<boolean>;
46
- /** Active language code. */
47
- activeLang: _angular_core.InputSignal<string>;
48
- /** Languages available in the language switcher. */
49
- langs: _angular_core.InputSignal<string[]>;
50
- /** Brand logo image/url. */
51
- logo: _angular_core.InputSignal<string>;
52
- /** Application name shown when expanded. */
53
- appName: _angular_core.InputSignal<string>;
54
- /** Role used to filter items that declare `roles`. */
55
- userRole: _angular_core.InputSignal<string>;
56
- /** Optional transform applied to item labels (e.g. i18n). */
57
- labelPipe: _angular_core.InputSignal<(label: string) => string>;
58
- /** Width of the collapsed rail. */
59
- railWidth: _angular_core.InputSignal<string>;
60
- /** Width when a section is expanded. */
61
- expandedWidth: _angular_core.InputSignal<string>;
62
- /** Tooltip for the workspace/home action. */
63
- workspaceTooltip: _angular_core.InputSignal<string>;
64
- /** Tooltip for the logout action. */
65
- logoutTooltip: _angular_core.InputSignal<string>;
66
- /** Tooltip for collapsing the sidebar. */
67
- collapseTooltip: _angular_core.InputSignal<string>;
68
- /** Tooltip for expanding the sidebar. */
69
- expandTooltip: _angular_core.InputSignal<string>;
70
- /** Turns the sidebar into a hamburger + drawer below `mobileBreakpoint`. */
71
- responsive: _angular_core.InputSignal<boolean>;
72
- /** Viewport width (px) under which the mobile drawer is used. */
73
- mobileBreakpoint: _angular_core.InputSignal<number>;
74
- /**
75
- * Renders the built-in hamburger button on mobile. Set it to false when the
76
- * app has its own top bar and toggles `[(mobileOpen)]` itself.
77
- */
78
- showMobileToggle: _angular_core.InputSignal<boolean>;
79
- /** Mobile drawer open state, bindable with [(mobileOpen)]. */
80
- mobileOpen: _angular_core.ModelSignal<boolean>;
81
- /** Accessible label of the hamburger button. */
82
- openMenuLabel: _angular_core.InputSignal<string>;
83
- /** Accessible label of the drawer close button. */
84
- closeMenuLabel: _angular_core.InputSignal<string>;
85
- /** Emitted when a section is selected, with its key and optional route. */
86
- sectionSelected: _angular_core.OutputEmitterRef<RailSidebarSectionEvent>;
87
- /** Emitted when a navigation item is clicked. */
88
- itemClick: _angular_core.OutputEmitterRef<RailSidebarItem>;
89
- /** Emitted with the next language code when the user switches language. */
90
- setLang: _angular_core.OutputEmitterRef<string>;
91
- /** Emitted when the user requests to log out. */
92
- logoutRequested: _angular_core.OutputEmitterRef<void>;
93
- /** Emitted with the new collapsed state after toggling. */
94
- toggleSidebar: _angular_core.OutputEmitterRef<boolean>;
95
- /** Emitted when the workspace/home entry is clicked. */
96
- workspaceClick: _angular_core.OutputEmitterRef<void>;
97
- protected getIcon: (name: any) => shirkasoft_ui_components_icons.IconNode | null;
98
- protected readonly closeIcon: shirkasoft_ui_components_icons.IconNode;
99
- /** Current viewport width (updated on resize). */
100
- private viewportWidth;
101
- /** Whether the mobile drawer mode is active. */
102
- protected isMobile: _angular_core.Signal<boolean>;
103
- /** Whether the section panel is shown (always in the mobile drawer). */
104
- protected expanded: _angular_core.Signal<boolean>;
105
- private hamburgerBtn;
106
- private closeBtn;
107
- /** Set of group ids currently expanded. */
108
- protected expandedGroups: _angular_core.WritableSignal<Set<string>>;
109
- constructor();
110
- /** Current sidebar width depending on the collapsed state. */
111
- protected width: _angular_core.Signal<string>;
112
- protected onResize(): void;
113
- protected onEscape(): void;
114
- /** Opens the mobile drawer and moves the focus into it. */
115
- openMobile(): void;
116
- /** Closes the mobile drawer and gives the focus back to the hamburger. */
117
- closeMobile(): void;
118
- /** The section currently selected. */
119
- protected activeSection: _angular_core.Signal<RailSidebarSection | null>;
120
- /** Items of the active section, filtered by role. */
121
- protected navItems: _angular_core.Signal<RailSidebarItem[]>;
122
- /** Applies the `labelPipe` transform to a label. */
123
- protected label(label: string): string;
124
- /** Whether the section matches the active key. */
125
- protected isSectionActive(section: RailSidebarSection): boolean;
126
- /** Whether the item is the best route match for the active url. */
127
- protected isItemActive(item: RailSidebarItem): boolean;
128
- /** Whether one of the item's children matches the active url. */
129
- protected isGroupActive(item: RailSidebarItem): boolean;
130
- /** Exact or prefix match between a router link and the active url. */
131
- private matchesUrl;
132
- /** Longest (most specific) item whose route matches the active url. */
133
- private bestMatchItem;
134
- /** Whether a group is expanded. */
135
- protected isGroupExpanded(item: RailSidebarItem): boolean;
136
- /** Toggles the expanded state of a group. */
137
- protected toggleGroup(item: RailSidebarItem): void;
138
- /** Selects a section, emits `sectionSelected` and expands the rail when collapsed. */
139
- protected onSectionClick(section: RailSidebarSection): void;
140
- /** Emits `itemClick` for a navigation item (skipping disabled items). */
141
- protected onItemClick(item: RailSidebarItem): void;
142
- /** Emits `workspaceClick` and expands the sidebar if it was collapsed. */
143
- protected onWorkspace(): void;
144
- /** Emits `logoutRequested` (closing the mobile drawer). */
145
- protected onLogout(): void;
146
- /** Cycles to the next language and emits `setLang`. */
147
- protected onToggleLang(): void;
148
- /** Toggles collapse and emits `toggleSidebar`. */
149
- protected onToggleSidebar(): void;
150
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<RailSidebarComponent, never>;
151
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<RailSidebarComponent, "shk-rail-sidebar", never, { "sections": { "alias": "sections"; "required": false; "isSignal": true; }; "activeUrl": { "alias": "activeUrl"; "required": false; "isSignal": true; }; "activeSectionKey": { "alias": "activeSectionKey"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "activeLang": { "alias": "activeLang"; "required": false; "isSignal": true; }; "langs": { "alias": "langs"; "required": false; "isSignal": true; }; "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "appName": { "alias": "appName"; "required": false; "isSignal": true; }; "userRole": { "alias": "userRole"; "required": false; "isSignal": true; }; "labelPipe": { "alias": "labelPipe"; "required": false; "isSignal": true; }; "railWidth": { "alias": "railWidth"; "required": false; "isSignal": true; }; "expandedWidth": { "alias": "expandedWidth"; "required": false; "isSignal": true; }; "workspaceTooltip": { "alias": "workspaceTooltip"; "required": false; "isSignal": true; }; "logoutTooltip": { "alias": "logoutTooltip"; "required": false; "isSignal": true; }; "collapseTooltip": { "alias": "collapseTooltip"; "required": false; "isSignal": true; }; "expandTooltip": { "alias": "expandTooltip"; "required": false; "isSignal": true; }; "responsive": { "alias": "responsive"; "required": false; "isSignal": true; }; "mobileBreakpoint": { "alias": "mobileBreakpoint"; "required": false; "isSignal": true; }; "showMobileToggle": { "alias": "showMobileToggle"; "required": false; "isSignal": true; }; "mobileOpen": { "alias": "mobileOpen"; "required": false; "isSignal": true; }; "openMenuLabel": { "alias": "openMenuLabel"; "required": false; "isSignal": true; }; "closeMenuLabel": { "alias": "closeMenuLabel"; "required": false; "isSignal": true; }; }, { "activeSectionKey": "activeSectionKeyChange"; "collapsed": "collapsedChange"; "mobileOpen": "mobileOpenChange"; "sectionSelected": "sectionSelected"; "itemClick": "itemClick"; "setLang": "setLang"; "logoutRequested": "logoutRequested"; "toggleSidebar": "toggleSidebar"; "workspaceClick": "workspaceClick"; }, never, never, true, never>;
34
+ export declare class RailSidebarComponent {
35
+ private readonly isBrowser;
36
+ private readonly injector;
37
+ /** Unique id of the drawer (for aria-controls). */
38
+ protected readonly uid: string;
39
+ /** Sections presented as expandable areas of the rail. */
40
+ sections: import("@angular/core").InputSignal<RailSidebarSection[]>;
41
+ /** Current location url used to detect the active section/item. */
42
+ activeUrl: import("@angular/core").InputSignal<string>;
43
+ /** Key of the active section, bindable with [(activeSectionKey)]. */
44
+ activeSectionKey: import("@angular/core").ModelSignal<string>;
45
+ /** Collapsed (rail only) state, bindable with [(collapsed)]. */
46
+ collapsed: import("@angular/core").ModelSignal<boolean>;
47
+ /** Active language code. */
48
+ activeLang: import("@angular/core").InputSignal<string>;
49
+ /** Languages available in the language switcher. */
50
+ langs: import("@angular/core").InputSignal<string[]>;
51
+ /** Brand logo image/url. */
52
+ logo: import("@angular/core").InputSignal<string>;
53
+ /** Application name shown when expanded. */
54
+ appName: import("@angular/core").InputSignal<string>;
55
+ /** Role used to filter items that declare `roles`. */
56
+ userRole: import("@angular/core").InputSignal<string>;
57
+ /** Optional transform applied to item labels (e.g. i18n). */
58
+ labelPipe: import("@angular/core").InputSignal<(label: string) => string>;
59
+ /** Width of the collapsed rail. */
60
+ railWidth: import("@angular/core").InputSignal<string>;
61
+ /** Width when a section is expanded. */
62
+ expandedWidth: import("@angular/core").InputSignal<string>;
63
+ /** Tooltip for the workspace/home action. */
64
+ workspaceTooltip: import("@angular/core").InputSignal<string>;
65
+ /** Tooltip for the logout action. */
66
+ logoutTooltip: import("@angular/core").InputSignal<string>;
67
+ /** Tooltip for collapsing the sidebar. */
68
+ collapseTooltip: import("@angular/core").InputSignal<string>;
69
+ /** Tooltip for expanding the sidebar. */
70
+ expandTooltip: import("@angular/core").InputSignal<string>;
71
+ /** Turns the sidebar into a hamburger + drawer below `mobileBreakpoint`. */
72
+ responsive: import("@angular/core").InputSignal<boolean>;
73
+ /** Viewport width (px) under which the mobile drawer is used. */
74
+ mobileBreakpoint: import("@angular/core").InputSignal<number>;
75
+ /**
76
+ * Renders the built-in hamburger button on mobile. Set it to false when the
77
+ * app has its own top bar and toggles `[(mobileOpen)]` itself.
78
+ */
79
+ showMobileToggle: import("@angular/core").InputSignal<boolean>;
80
+ /** Mobile drawer open state, bindable with [(mobileOpen)]. */
81
+ mobileOpen: import("@angular/core").ModelSignal<boolean>;
82
+ /** Accessible label of the hamburger button. */
83
+ openMenuLabel: import("@angular/core").InputSignal<string>;
84
+ /** Accessible label of the drawer close button. */
85
+ closeMenuLabel: import("@angular/core").InputSignal<string>;
86
+ /** Emitted when a section is selected, with its key and optional route. */
87
+ sectionSelected: import("@angular/core").OutputEmitterRef<RailSidebarSectionEvent>;
88
+ /** Emitted when a navigation item is clicked. */
89
+ itemClick: import("@angular/core").OutputEmitterRef<RailSidebarItem>;
90
+ /** Emitted with the next language code when the user switches language. */
91
+ setLang: import("@angular/core").OutputEmitterRef<string>;
92
+ /** Emitted when the user requests to log out. */
93
+ logoutRequested: import("@angular/core").OutputEmitterRef<void>;
94
+ /** Emitted with the new collapsed state after toggling. */
95
+ toggleSidebar: import("@angular/core").OutputEmitterRef<boolean>;
96
+ /** Emitted when the workspace/home entry is clicked. */
97
+ workspaceClick: import("@angular/core").OutputEmitterRef<void>;
98
+ protected getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
99
+ protected readonly closeIcon: import("shirkasoft-ui-components/icons").IconNode;
100
+ /** Current viewport width (updated on resize). */
101
+ private viewportWidth;
102
+ /** Whether the mobile drawer mode is active. */
103
+ protected isMobile: import("@angular/core").Signal<boolean>;
104
+ /** Whether the section panel is shown (always in the mobile drawer). */
105
+ protected expanded: import("@angular/core").Signal<boolean>;
106
+ private hamburgerBtn;
107
+ private closeBtn;
108
+ /** Set of group ids currently expanded. */
109
+ protected expandedGroups: import("@angular/core").WritableSignal<Set<string>>;
110
+ constructor();
111
+ /** Current sidebar width depending on the collapsed state. */
112
+ protected width: import("@angular/core").Signal<string>;
113
+ protected onResize(): void;
114
+ protected onEscape(): void;
115
+ /** Opens the mobile drawer and moves the focus into it. */
116
+ openMobile(): void;
117
+ /** Closes the mobile drawer and gives the focus back to the hamburger. */
118
+ closeMobile(): void;
119
+ /** The section currently selected. */
120
+ protected activeSection: import("@angular/core").Signal<RailSidebarSection | null>;
121
+ /** Items of the active section, filtered by role. */
122
+ protected navItems: import("@angular/core").Signal<RailSidebarItem[]>;
123
+ /** Applies the `labelPipe` transform to a label. */
124
+ protected label(label: string): string;
125
+ /** Whether the section matches the active key. */
126
+ protected isSectionActive(section: RailSidebarSection): boolean;
127
+ /** Whether the item is the best route match for the active url. */
128
+ protected isItemActive(item: RailSidebarItem): boolean;
129
+ /** Whether one of the item's children matches the active url. */
130
+ protected isGroupActive(item: RailSidebarItem): boolean;
131
+ /** Exact or prefix match between a router link and the active url. */
132
+ private matchesUrl;
133
+ /** Longest (most specific) item whose route matches the active url. */
134
+ private bestMatchItem;
135
+ /** Whether a group is expanded. */
136
+ protected isGroupExpanded(item: RailSidebarItem): boolean;
137
+ /** Toggles the expanded state of a group. */
138
+ protected toggleGroup(item: RailSidebarItem): void;
139
+ /** Selects a section, emits `sectionSelected` and expands the rail when collapsed. */
140
+ protected onSectionClick(section: RailSidebarSection): void;
141
+ /** Emits `itemClick` for a navigation item (skipping disabled items). */
142
+ protected onItemClick(item: RailSidebarItem): void;
143
+ /** Emits `workspaceClick` and expands the sidebar if it was collapsed. */
144
+ protected onWorkspace(): void;
145
+ /** Emits `logoutRequested` (closing the mobile drawer). */
146
+ protected onLogout(): void;
147
+ /** Cycles to the next language and emits `setLang`. */
148
+ protected onToggleLang(): void;
149
+ /** Toggles collapse and emits `toggleSidebar`. */
150
+ protected onToggleSidebar(): void;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<RailSidebarComponent, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<RailSidebarComponent, "shk-rail-sidebar", never, {
153
+ "sections": {
154
+ "alias": "sections";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "activeUrl": {
159
+ "alias": "activeUrl";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "activeSectionKey": {
164
+ "alias": "activeSectionKey";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ "collapsed": {
169
+ "alias": "collapsed";
170
+ "required": false;
171
+ "isSignal": true;
172
+ };
173
+ "activeLang": {
174
+ "alias": "activeLang";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ "langs": {
179
+ "alias": "langs";
180
+ "required": false;
181
+ "isSignal": true;
182
+ };
183
+ "logo": {
184
+ "alias": "logo";
185
+ "required": false;
186
+ "isSignal": true;
187
+ };
188
+ "appName": {
189
+ "alias": "appName";
190
+ "required": false;
191
+ "isSignal": true;
192
+ };
193
+ "userRole": {
194
+ "alias": "userRole";
195
+ "required": false;
196
+ "isSignal": true;
197
+ };
198
+ "labelPipe": {
199
+ "alias": "labelPipe";
200
+ "required": false;
201
+ "isSignal": true;
202
+ };
203
+ "railWidth": {
204
+ "alias": "railWidth";
205
+ "required": false;
206
+ "isSignal": true;
207
+ };
208
+ "expandedWidth": {
209
+ "alias": "expandedWidth";
210
+ "required": false;
211
+ "isSignal": true;
212
+ };
213
+ "workspaceTooltip": {
214
+ "alias": "workspaceTooltip";
215
+ "required": false;
216
+ "isSignal": true;
217
+ };
218
+ "logoutTooltip": {
219
+ "alias": "logoutTooltip";
220
+ "required": false;
221
+ "isSignal": true;
222
+ };
223
+ "collapseTooltip": {
224
+ "alias": "collapseTooltip";
225
+ "required": false;
226
+ "isSignal": true;
227
+ };
228
+ "expandTooltip": {
229
+ "alias": "expandTooltip";
230
+ "required": false;
231
+ "isSignal": true;
232
+ };
233
+ "responsive": {
234
+ "alias": "responsive";
235
+ "required": false;
236
+ "isSignal": true;
237
+ };
238
+ "mobileBreakpoint": {
239
+ "alias": "mobileBreakpoint";
240
+ "required": false;
241
+ "isSignal": true;
242
+ };
243
+ "showMobileToggle": {
244
+ "alias": "showMobileToggle";
245
+ "required": false;
246
+ "isSignal": true;
247
+ };
248
+ "mobileOpen": {
249
+ "alias": "mobileOpen";
250
+ "required": false;
251
+ "isSignal": true;
252
+ };
253
+ "openMenuLabel": {
254
+ "alias": "openMenuLabel";
255
+ "required": false;
256
+ "isSignal": true;
257
+ };
258
+ "closeMenuLabel": {
259
+ "alias": "closeMenuLabel";
260
+ "required": false;
261
+ "isSignal": true;
262
+ };
263
+ }, {
264
+ "activeSectionKey": "activeSectionKeyChange";
265
+ "collapsed": "collapsedChange";
266
+ "mobileOpen": "mobileOpenChange";
267
+ "sectionSelected": "sectionSelected";
268
+ "itemClick": "itemClick";
269
+ "setLang": "setLang";
270
+ "logoutRequested": "logoutRequested";
271
+ "toggleSidebar": "toggleSidebar";
272
+ "workspaceClick": "workspaceClick";
273
+ }, never, never, true, never>;
152
274
  }
153
-
154
- export { RailSidebarComponent };
155
- export type { RailSidebarItem, RailSidebarSection, RailSidebarSectionEvent };
275
+ export type { RailSidebarItem, RailSidebarSection, RailSidebarSectionEvent };