@hug/ngx-layout 21.0.2 → 22.0.0-alpha.10

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.
@@ -1,19 +1,29 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
2
- import * as i0 from '@angular/core';
3
- import { EnvironmentProviders, TemplateRef, EventEmitter, ElementRef } from '@angular/core';
4
- import { MatDrawer } from '@angular/material/sidenav';
5
- import { NgxAbstractIntl, NgxOptionsIntl, NgxMediaService } from '@hug/ngx-core';
6
- import { NgxSidenavService } from '@hug/ngx-sidenav';
1
+ import * as _angular_core from '@angular/core';
2
+ import { EnvironmentProviders, Signal, ElementRef, InputSignal, ModelSignal, TemplateRef } from '@angular/core';
3
+ import { NgxAbstractIntl, NgxOptionsIntl } from '@hug/ngx-core';
4
+ import { CdkOverlayOrigin, ConnectionPositionPair } from '@angular/cdk/overlay';
5
+
6
+ declare class NgxActionDirective {
7
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxActionDirective, never>;
8
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxActionDirective, "button, [ngxAction]", never, {}, {}, never, never, true, never>;
9
+ }
7
10
 
8
11
  /**
9
12
  * Data for internationalization
10
13
  */
11
14
  declare class NgxLayoutIntl extends NgxAbstractIntl<NgxLayoutIntl> {
12
- closeLabel: string;
13
- backLabel: string;
14
- sideFilterLabel: string;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxLayoutIntl, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<NgxLayoutIntl>;
15
+ help: string;
16
+ back: string;
17
+ deleteSearch: string;
18
+ openSearchBar: string;
19
+ moreActions: string;
20
+ allFilters: string;
21
+ filters: string;
22
+ actives: string;
23
+ reset: string;
24
+ close: string;
25
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxLayoutIntl, never>;
26
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgxLayoutIntl>;
17
27
  }
18
28
 
19
29
  /**
@@ -24,49 +34,189 @@ declare class NgxLayoutIntl extends NgxAbstractIntl<NgxLayoutIntl> {
24
34
  */
25
35
  declare const provideNgxLayout: (options?: NgxOptionsIntl<NgxLayoutIntl>) => EnvironmentProviders;
26
36
 
37
+ declare class NgxActionsGroupComponent {
38
+ protected readonly hiddenActions: Signal<ElementRef<HTMLElement>[]>;
39
+ protected readonly intl: NgxLayoutIntl | null;
40
+ private readonly iconButtons;
41
+ private readonly container;
42
+ private readonly hiddenContainer;
43
+ private readonly hostElement;
44
+ private readonly renderer;
45
+ private readonly hostSize;
46
+ private readonly hostWidth;
47
+ private readonly visibleActions;
48
+ constructor();
49
+ private getMaxVisibleAction;
50
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxActionsGroupComponent, never>;
51
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxActionsGroupComponent, "ngx-actions-group", never, {}, {}, ["iconButtons"], ["button, [ngxAction]"], true, never>;
52
+ }
53
+
54
+ type AppBarMode = 'standard' | 'condensed';
55
+ declare class NgxAppBarComponent {
56
+ mode: _angular_core.InputSignal<AppBarMode>;
57
+ title: _angular_core.InputSignal<string>;
58
+ subtitle: _angular_core.InputSignal<string | undefined>;
59
+ helpUrl: _angular_core.InputSignal<string | URL | undefined>;
60
+ withBackButton: _angular_core.InputSignal<boolean>;
61
+ readonly goBack: _angular_core.OutputEmitterRef<void>;
62
+ protected readonly intl: NgxLayoutIntl | null;
63
+ private helpPopup;
64
+ protected openHelp(): void;
65
+ protected triggerGoBack(): void;
66
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxAppBarComponent, never>;
67
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxAppBarComponent, "ngx-app-bar", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "helpUrl": { "alias": "helpUrl"; "required": false; "isSignal": true; }; "withBackButton": { "alias": "withBackButton"; "required": false; "isSignal": true; }; }, { "goBack": "goBack"; }, never, ["*"], true, never>;
68
+ }
69
+
70
+ type ContentPadding$1 = 'none' | 'default';
71
+ declare class NgxColumnComponent {
72
+ readonly contentPadding: _angular_core.InputSignal<ContentPadding$1 | undefined>;
73
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxColumnComponent, never>;
74
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxColumnComponent, "ngx-column", never, { "contentPadding": { "alias": "contentPadding"; "required": false; "isSignal": true; }; }, {}, never, ["ngx-column-bar", "*"], true, never>;
75
+ }
76
+
77
+ type FilterType = 'toggle' | 'complex';
78
+ interface NgxBaseFilter {
79
+ readonly label: InputSignal<string>;
80
+ readonly active: InputSignal<boolean>;
81
+ readonly type: FilterType;
82
+ }
83
+ interface NgxToggleFilter extends NgxBaseFilter {
84
+ readonly type: 'toggle';
85
+ readonly active: ModelSignal<boolean>;
86
+ }
87
+ interface NgxComplexFilter extends NgxBaseFilter {
88
+ readonly selectedFilterLabel: InputSignal<string>;
89
+ readonly templateRef: TemplateRef<unknown>;
90
+ readonly type: 'complex';
91
+ }
92
+ type NgxFilter = NgxToggleFilter | NgxComplexFilter;
93
+
94
+ declare class NgxFilterDirective implements NgxComplexFilter {
95
+ readonly type = "complex";
96
+ readonly label: _angular_core.InputSignal<string>;
97
+ readonly active: _angular_core.InputSignal<boolean>;
98
+ readonly selectedFilterLabel: _angular_core.InputSignal<string>;
99
+ readonly templateRef: TemplateRef<unknown>;
100
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxFilterDirective, never>;
101
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxFilterDirective, "ng-template[ngxFilter]", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; "selectedFilterLabel": { "alias": "selectedFilterLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
102
+ }
103
+
104
+ declare class NgxFilterToggleDirective implements NgxToggleFilter {
105
+ readonly type = "toggle";
106
+ readonly label: _angular_core.InputSignal<string>;
107
+ readonly active: _angular_core.ModelSignal<boolean>;
108
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxFilterToggleDirective, never>;
109
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxFilterToggleDirective, "ng-template[ngxFilterToggle]", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; }, { "active": "activeChange"; }, never, never, true, never>;
110
+ }
111
+
112
+ declare class NgxFiltersGroupComponent {
113
+ readonly resetFilters: _angular_core.OutputEmitterRef<void>;
114
+ readonly folded: _angular_core.InputSignal<boolean | undefined>;
115
+ protected readonly intl: NgxLayoutIntl | null;
116
+ protected readonly overlayOrigin: _angular_core.WritableSignal<CdkOverlayOrigin | undefined>;
117
+ protected readonly overlayContent: _angular_core.WritableSignal<TemplateRef<unknown> | undefined>;
118
+ protected readonly overlayOpen: _angular_core.WritableSignal<boolean>;
119
+ protected readonly moreFiltersOverlay: _angular_core.WritableSignal<boolean>;
120
+ protected readonly overlayPositions: ConnectionPositionPair[];
121
+ protected allFilters: Signal<readonly NgxFilter[]>;
122
+ protected readonly activeFiltersAmount: Signal<number>;
123
+ protected readonly visibleFilters: Signal<NgxFilter[]>;
124
+ protected readonly invisibleFilters: Signal<readonly NgxFilter[]>;
125
+ private readonly filterContainerRef;
126
+ private readonly filterContainerPadding;
127
+ private readonly hostElement;
128
+ private readonly hostSize;
129
+ private readonly hostWidth;
130
+ private readonly measureRowRef;
131
+ private readonly measureRowSize;
132
+ private readonly measureRowWidth;
133
+ private readonly staticFieldsRef;
134
+ private readonly staticFieldsSize;
135
+ private readonly staticFieldsWidth;
136
+ private readonly lastFittingIndex;
137
+ protected emitResetClicked(): void;
138
+ private getLastFittingIndex;
139
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxFiltersGroupComponent, never>;
140
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxFiltersGroupComponent, "ngx-filters-group", never, { "folded": { "alias": "folded"; "required": false; "isSignal": true; }; }, { "resetFilters": "resetFilters"; }, ["allFilters"], never, true, never>;
141
+ }
142
+
143
+ declare class NgxSearchInputDirective {
144
+ readonly blurred: _angular_core.WritableSignal<boolean>;
145
+ readonly value: Signal<string>;
146
+ private readonly ngControl;
147
+ private readonly input;
148
+ private readonly control;
149
+ constructor();
150
+ focus(): void;
151
+ reset(): void;
152
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxSearchInputDirective, never>;
153
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxSearchInputDirective, "input[ngxSearchInput]", never, {}, {}, never, never, true, never>;
154
+ }
155
+
156
+ declare class NgxSearchBarContainerComponent {
157
+ readonly folded: _angular_core.InputSignal<boolean>;
158
+ protected readonly intl: NgxLayoutIntl | null;
159
+ protected readonly manualFoldingState: _angular_core.WritableSignal<boolean>;
160
+ protected readonly isFolded: _angular_core.Signal<boolean>;
161
+ protected readonly searchInput: _angular_core.Signal<NgxSearchInputDirective | undefined>;
162
+ protected readonly searchText: _angular_core.Signal<string | undefined>;
163
+ constructor();
164
+ protected toggleFolded(): void;
165
+ protected resetInput(): void;
166
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxSearchBarContainerComponent, never>;
167
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxSearchBarContainerComponent, "ngx-search-bar-container", never, { "folded": { "alias": "folded"; "required": false; "isSignal": true; }; }, {}, ["searchInput"], ["[ngxSearchInput]"], true, never>;
168
+ }
169
+
170
+ declare class NgxColumnBarComponent {
171
+ protected hasRightContent: _angular_core.Signal<NgxFiltersGroupComponent | NgxSearchBarContainerComponent | undefined>;
172
+ protected hasTitle: _angular_core.Signal<boolean>;
173
+ private readonly filtersGroup;
174
+ private readonly searchBarContainer;
175
+ private readonly barTitle;
176
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxColumnBarComponent, never>;
177
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxColumnBarComponent, "ngx-column-bar", never, {}, {}, ["filtersGroup", "searchBarContainer", "barTitle"], ["[ngxBarTitle]", "ngx-filters-group", "ngx-search-bar-container", "[ngxContentRight]", "ngx-actions-group", "[ngxContentLeft]"], true, never>;
178
+ }
179
+
180
+ declare class NgxBarTitleDirective {
181
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxBarTitleDirective, never>;
182
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxBarTitleDirective, "h2[ngxBarTitle], h3[ngxBarTitle], h4[ngxBarTitle], h5[ngxBarTitle], h6[ngxBarTitle]", never, {}, {}, never, never, true, never>;
183
+ }
184
+
27
185
  declare class NgxLayoutComponent {
28
- toolbarColor: string;
29
- editorToolbarId: string;
30
- layoutToolbarExternal?: TemplateRef<unknown>;
31
- layoutPrimaryActionExternal?: TemplateRef<unknown>;
32
- layoutActionsExternal?: TemplateRef<unknown>;
33
- layoutInfoBoxesExternal?: TemplateRef<unknown>;
34
- layoutRightExternal?: TemplateRef<unknown>;
35
- readonly closeButtonClicked: EventEmitter<MouseEvent>;
36
- readonly backButtonClicked: EventEmitter<MouseEvent>;
37
- readonly sideFilterClosed: EventEmitter<void>;
38
- readonly sideFilterOpened: EventEmitter<void>;
39
- protected layoutToolbarContent?: TemplateRef<unknown>;
40
- protected layoutPrimaryActionContent?: TemplateRef<unknown>;
41
- protected layoutActionsContent?: TemplateRef<unknown>;
42
- protected layoutInfoBoxesContent?: TemplateRef<unknown>;
43
- protected layoutRightContent?: TemplateRef<unknown>;
44
- protected sideFilter?: MatDrawer;
186
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxLayoutComponent, never>;
187
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxLayoutComponent, "ngx-layout", never, {}, {}, never, ["ngx-app-bar", "ngx-main-bar", "*", "ngx-panel"], true, never>;
188
+ }
189
+
190
+ declare class NgxMainBarComponent {
191
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxMainBarComponent, never>;
192
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxMainBarComponent, "ngx-main-bar", never, {}, {}, never, ["ngx-actions-group", "[ngxContentLeft]", "ngx-filters-group", "ngx-search-bar-container", "[ngxContentRight]"], true, never>;
193
+ }
194
+
195
+ type Appearance = 'transparent' | 'default';
196
+ type ContentPadding = 'none' | 'default';
197
+ declare class NgxPanelComponent {
198
+ readonly appearance: _angular_core.InputSignal<Appearance | undefined>;
199
+ readonly contentPadding: _angular_core.InputSignal<ContentPadding | undefined>;
200
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxPanelComponent, never>;
201
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxPanelComponent, "ngx-panel", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "contentPadding": { "alias": "contentPadding"; "required": false; "isSignal": true; }; }, {}, never, ["ngx-panel-bar", "*"], true, never>;
202
+ }
203
+
204
+ declare class NgxPanelBarComponent {
205
+ hasBackButton: _angular_core.InputSignal<boolean | undefined>;
206
+ closable: _angular_core.InputSignal<boolean | undefined>;
207
+ readonly backClicked: _angular_core.OutputEmitterRef<void>;
208
+ readonly closeClicked: _angular_core.OutputEmitterRef<void>;
45
209
  protected readonly intl: NgxLayoutIntl | null;
46
- protected readonly mediaService: NgxMediaService;
47
- protected readonly sidenavService: NgxSidenavService;
48
- protected readonly elementRef: ElementRef<HTMLElement>;
49
- get layoutToolbar(): TemplateRef<unknown> | undefined;
50
- get layoutPrimaryAction(): TemplateRef<unknown> | undefined;
51
- get layoutActions(): TemplateRef<unknown> | undefined;
52
- get layoutInfoBoxes(): TemplateRef<unknown> | undefined;
53
- get layoutRight(): TemplateRef<unknown> | undefined;
54
- private _withSidenav;
55
- set withSidenav(value: BooleanInput);
56
- get withSidenav(): BooleanInput;
57
- private _keepFilterButtonDisplayed;
58
- set keepFilterButtonDisplayed(value: BooleanInput);
59
- get keepFilterButtonDisplayed(): BooleanInput;
60
- private _withCloseButton;
61
- set withCloseButton(value: BooleanInput);
62
- get withCloseButton(): BooleanInput;
63
- private _withBackButton;
64
- set withBackButton(value: BooleanInput);
65
- get withBackButton(): BooleanInput;
66
- closeSideFilter(): void;
67
- openSideFilter(): void;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxLayoutComponent, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxLayoutComponent, "ngx-layout", never, { "toolbarColor": { "alias": "toolbarColor"; "required": false; }; "editorToolbarId": { "alias": "editorToolbarId"; "required": false; }; "layoutToolbarExternal": { "alias": "layoutToolbarExternal"; "required": false; }; "layoutPrimaryActionExternal": { "alias": "layoutPrimaryActionExternal"; "required": false; }; "layoutActionsExternal": { "alias": "layoutActionsExternal"; "required": false; }; "layoutInfoBoxesExternal": { "alias": "layoutInfoBoxesExternal"; "required": false; }; "layoutRightExternal": { "alias": "layoutRightExternal"; "required": false; }; "withSidenav": { "alias": "withSidenav"; "required": false; }; "keepFilterButtonDisplayed": { "alias": "keepFilterButtonDisplayed"; "required": false; }; "withCloseButton": { "alias": "withCloseButton"; "required": false; }; "withBackButton": { "alias": "withBackButton"; "required": false; }; }, { "closeButtonClicked": "closeButtonClicked"; "backButtonClicked": "backButtonClicked"; "sideFilterClosed": "sideFilterClosed"; "sideFilterOpened": "sideFilterOpened"; }, ["layoutToolbarContent", "layoutPrimaryActionContent", "layoutActionsContent", "layoutInfoBoxesContent", "layoutRightContent"], ["*"], true, never>;
70
- }
71
-
72
- export { NgxLayoutComponent, NgxLayoutIntl, provideNgxLayout };
210
+ protected hasRightContent: _angular_core.Signal<boolean>;
211
+ protected hasTitle: _angular_core.Signal<boolean>;
212
+ private readonly actionsGroup;
213
+ private readonly filtersGroup;
214
+ private readonly searchBarContainer;
215
+ private readonly barTitle;
216
+ protected emitBackClicked(): void;
217
+ protected emitCloseClicked(): void;
218
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxPanelBarComponent, never>;
219
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxPanelBarComponent, "ngx-panel-bar", never, { "hasBackButton": { "alias": "hasBackButton"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "backClicked": "backClicked"; "closeClicked": "closeClicked"; }, ["actionsGroup", "filtersGroup", "searchBarContainer", "barTitle"], ["[ngxBarTitle]", "ngx-filters-group", "ngx-search-bar-container", "[ngxContentRight]", "ngx-actions-group", "[ngxContentLeft]"], true, never>;
220
+ }
221
+
222
+ export { NgxActionDirective, NgxActionsGroupComponent, NgxAppBarComponent, NgxBarTitleDirective, NgxColumnBarComponent, NgxColumnComponent, NgxFilterDirective, NgxFilterToggleDirective, NgxFiltersGroupComponent, NgxLayoutComponent, NgxLayoutIntl, NgxMainBarComponent, NgxPanelBarComponent, NgxPanelComponent, NgxSearchBarContainerComponent, NgxSearchInputDirective, provideNgxLayout };
File without changes