@ngflux/ngflux 3.0.1 → 3.2.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.
- package/fesm2022/ngflux-ngflux.mjs +218 -127
- package/fesm2022/ngflux-ngflux.mjs.map +1 -1
- package/lib/components/form/message/message.component.scss +18 -0
- package/lib/components/input/select/items/items.component.scss +2 -1
- package/lib/components/input/select/select.component.scss +14 -1
- package/package.json +1 -1
- package/scss/features/dialog.scss +32 -22
- package/types/ngflux-ngflux.d.ts +27 -5
|
@@ -17,6 +17,19 @@
|
|
|
17
17
|
display: block;
|
|
18
18
|
position: relative;
|
|
19
19
|
|
|
20
|
+
.overlay {
|
|
21
|
+
display: flex;
|
|
22
|
+
position: absolute;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
background-color: rgba(255, 255, 255, .9);
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
color: #444;
|
|
29
|
+
inset: 0px;
|
|
30
|
+
z-index: 10;
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
.header {
|
|
21
34
|
display: flex;
|
|
22
35
|
flex-direction: row;
|
|
@@ -56,7 +69,7 @@
|
|
|
56
69
|
position: absolute;
|
|
57
70
|
inset: 100% 0px auto 0px;
|
|
58
71
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, .7);
|
|
59
|
-
z-index:
|
|
72
|
+
z-index: 15;
|
|
60
73
|
|
|
61
74
|
&.show {
|
|
62
75
|
display: block !important;
|
package/package.json
CHANGED
|
@@ -29,33 +29,43 @@
|
|
|
29
29
|
height: 0px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.ngf-dialog
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
.ngf-dialog {
|
|
33
|
+
&-box {
|
|
34
|
+
display: block;
|
|
35
|
+
position: relative;
|
|
36
|
+
font-family: "Poppins", sans-serif;
|
|
37
|
+
background-color: var(--ngf-dialog-background-color) !important;
|
|
38
|
+
box-shadow: var(--ngf-dialog-box-shadow) !important;
|
|
39
|
+
border: 1px solid transparent;
|
|
40
|
+
border-top: none;
|
|
41
|
+
border-bottom: none;
|
|
42
|
+
animation: ngfDialogOpen .5s forwards;
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
outline: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.close {
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
user-select: none;
|
|
51
|
+
-moz-user-select: none;
|
|
52
|
+
animation: ngfDialogClose .3s forwards;
|
|
53
|
+
}
|
|
42
54
|
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
[ngf-dialog-title] {
|
|
56
|
+
margin: 0px;
|
|
57
|
+
font-size: 1.1rem;
|
|
58
|
+
text-transform: uppercase;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
45
61
|
}
|
|
46
62
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
user-select: none;
|
|
50
|
-
-moz-user-select: none;
|
|
51
|
-
animation: ngfDialogClose .3s forwards;
|
|
63
|
+
&-success {
|
|
64
|
+
color: #090;
|
|
52
65
|
}
|
|
53
66
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
font-size: 1.1rem;
|
|
57
|
-
text-transform: uppercase;
|
|
58
|
-
font-weight: 500;
|
|
67
|
+
&-error {
|
|
68
|
+
color: #F00;
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
71
|
|
package/types/ngflux-ngflux.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, Signal, ViewContainerRef, Injector, InputSignal, InputSignalWithTransform, ModelSignal, TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import { Route, Data, CanActivateFn, CanActivateChildFn, CanDeactivateFn, CanMatchFn } from '@angular/router';
|
|
3
5
|
import * as _ngflux_ngflux from '@ngflux/ngflux';
|
|
4
6
|
import * as rxjs from 'rxjs';
|
|
5
7
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { FormValueControl } from '@angular/forms/signals';
|
|
7
|
-
import * as i1 from '@angular/router';
|
|
8
|
-
import { Route, Data } from '@angular/router';
|
|
8
|
+
import { FormValueControl, Field, FieldState } from '@angular/forms/signals';
|
|
9
9
|
|
|
10
10
|
type ButtonDirection = 'normal' | 'reversed';
|
|
11
11
|
type ButtonTheme = 'default' | 'primary' | 'secondary' | 'error' | 'danger' | 'success' | 'warning' | 'info' | 'light' | 'dark';
|
|
@@ -191,6 +191,13 @@ type FrameOptions = {
|
|
|
191
191
|
|
|
192
192
|
declare const provideNgFlux: (config?: NgFluxConfig) => _angular_core.EnvironmentProviders;
|
|
193
193
|
|
|
194
|
+
declare namespace NgFlux.SerialGuard {
|
|
195
|
+
function canActivateFn(...guards: CanActivateFn[]): CanActivateFn;
|
|
196
|
+
function canActivateChildFn(...guards: CanActivateChildFn[]): CanActivateChildFn;
|
|
197
|
+
function canDeactivateFn<T>(...guards: CanDeactivateFn<T>[]): CanDeactivateFn<T>;
|
|
198
|
+
function canMatchFn(...guards: CanMatchFn[]): CanMatchFn;
|
|
199
|
+
}
|
|
200
|
+
|
|
194
201
|
type Justify = 'start' | 'center' | 'end' | 'stretch';
|
|
195
202
|
declare class NgFluxActions {
|
|
196
203
|
readonly justify: _angular_core.InputSignal<Justify>;
|
|
@@ -328,14 +335,18 @@ declare class NgFluxSelect<V = any> implements FormValueControl<V | V[] | null>
|
|
|
328
335
|
readonly block: InputSignalWithTransform<boolean, unknown>;
|
|
329
336
|
readonly multi: InputSignalWithTransform<boolean, unknown>;
|
|
330
337
|
readonly placeholder: InputSignal<string | undefined>;
|
|
338
|
+
readonly loading: InputSignal<boolean>;
|
|
339
|
+
readonly loadingText: InputSignal<string>;
|
|
331
340
|
readonly transform: InputSignal<SelectTransformer<any, V>>;
|
|
332
341
|
protected readonly mapper: _angular_core.Signal<Map<V, any>>;
|
|
333
342
|
readonly value: ModelSignal<V | V[] | null>;
|
|
334
343
|
protected readonly vmap: _angular_core.Signal<Map<V, any>>;
|
|
344
|
+
protected readonly items: _angular_core.Signal<any[]>;
|
|
335
345
|
protected readonly open: _angular_core.WritableSignal<boolean>;
|
|
336
346
|
protected readonly searchbox: _angular_core.WritableSignal<string>;
|
|
337
347
|
protected readonly search: _angular_core.Signal<any[]>;
|
|
338
348
|
protected readonly headerText: _angular_core.Signal<string>;
|
|
349
|
+
constructor();
|
|
339
350
|
private doFlatMap;
|
|
340
351
|
private doSearch;
|
|
341
352
|
protected toggleOpen(): void;
|
|
@@ -343,7 +354,7 @@ declare class NgFluxSelect<V = any> implements FormValueControl<V | V[] | null>
|
|
|
343
354
|
protected readonly options: SelectItemOptions;
|
|
344
355
|
protected onDocumentClick(e: PointerEvent): void;
|
|
345
356
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxSelect<any>, never>;
|
|
346
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxSelect<any>, "ngf-select", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
357
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxSelect<any>, "ngf-select", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
347
358
|
}
|
|
348
359
|
|
|
349
360
|
declare class PinInputDirective {
|
|
@@ -467,5 +478,16 @@ declare class NgFluxFrame {
|
|
|
467
478
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxFrame, "ngf-frame", never, { "viewport": { "alias": "viewport"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
468
479
|
}
|
|
469
480
|
|
|
470
|
-
|
|
481
|
+
declare class NgFluxFormMessage {
|
|
482
|
+
readonly field: _angular_core.InputSignal<Field<any>>;
|
|
483
|
+
readonly pending: _angular_core.InputSignal<string>;
|
|
484
|
+
protected readonly fieldState: _angular_core.Signal<FieldState<any, string | number>>;
|
|
485
|
+
protected readonly validate: _angular_core.Signal<boolean>;
|
|
486
|
+
protected readonly show: _angular_core.Signal<boolean>;
|
|
487
|
+
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
488
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxFormMessage, never>;
|
|
489
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxFormMessage, "ngf-form-message", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export { NGF_CONFIG, NGF_DIALOG_DATA, NgFlux, NgFluxActions, NgFluxButton, NgFluxDialog, NgFluxDialogBody, NgFluxDialogFooter, NgFluxDialogHeader, NgFluxDialogInstance, NgFluxDialogRef, NgFluxDialogRootComponent, NgFluxFormMessage, NgFluxFrame, NgFluxLoading, NgFluxLoadingRootComponent, NgFluxPagination, NgFluxPinInput, NgFluxSelect, NgFluxTab, NgFluxTabContentDirective, NgFluxTabGroup, NgFluxTabNavDirective, NgFluxTabNavbar, NgFluxTabPanel, provideNgFlux };
|
|
471
493
|
export type { ButtonDirection, ButtonOptions, ButtonSize, ButtonTheme, ButtonType, FrameHeaderMenu, FrameOptions, FrameSize, FrameToolbarItem, Menu, NgFluxComponent, NgFluxConfig, NgFluxDialogAlertOptions, NgFluxDialogButton, NgFluxDialogButtonObj, NgFluxDialogCommand, NgFluxDialogConfig, NgFluxDialogConfirmOptions, NgFluxDialogEvents, NgFluxDialogPromptOptions, NgFluxDialogRoot, NgFluxLoadingEntry, NgFluxRoute, NgFluxRoutes, Pagination, PaginationInfo, PaginationTransformer, SelectItem, SelectTransformer };
|