@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.
@@ -0,0 +1,18 @@
1
+ :host {
2
+ display: none;
3
+ font-size: .8em;
4
+
5
+ &.show {
6
+ display: block;
7
+ }
8
+
9
+ > .pending {
10
+ display: block;
11
+ color: #666;
12
+ }
13
+
14
+ > .error {
15
+ display: block;
16
+ color: #F00;
17
+ }
18
+ }
@@ -1,10 +1,11 @@
1
1
  :host {
2
2
  display: block;
3
3
  position: relative;
4
- max-height: 200px;
4
+ max-height: 150px;
5
5
  overflow: hidden auto;
6
6
 
7
7
  &.has-parent {
8
+ max-height: auto;
8
9
  padding: 0px 0px 0px 10px;
9
10
 
10
11
  &::before {
@@ -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: 5;
72
+ z-index: 15;
60
73
 
61
74
  &.show {
62
75
  display: block !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngflux/ngflux",
3
- "version": "3.0.1",
3
+ "version": "3.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/NgFlux/ngflux.git"
@@ -29,33 +29,43 @@
29
29
  height: 0px;
30
30
  }
31
31
 
32
- .ngf-dialog-box {
33
- display: block;
34
- position: relative;
35
- font-family: "Poppins", sans-serif;
36
- background-color: var(--ngf-dialog-background-color) !important;
37
- box-shadow: var(--ngf-dialog-box-shadow) !important;
38
- border: 1px solid transparent;
39
- border-top: none;
40
- border-bottom: none;
41
- animation: ngfDialogOpen .5s forwards;
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
- &:focus {
44
- outline: none;
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
- &.close {
48
- pointer-events: none;
49
- user-select: none;
50
- -moz-user-select: none;
51
- animation: ngfDialogClose .3s forwards;
63
+ &-success {
64
+ color: #090;
52
65
  }
53
66
 
54
- [ngf-dialog-title] {
55
- margin: 0px;
56
- font-size: 1.1rem;
57
- text-transform: uppercase;
58
- font-weight: 500;
67
+ &-error {
68
+ color: #F00;
59
69
  }
60
70
  }
61
71
 
@@ -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
- export { NGF_CONFIG, NGF_DIALOG_DATA, NgFluxActions, NgFluxButton, NgFluxDialog, NgFluxDialogBody, NgFluxDialogFooter, NgFluxDialogHeader, NgFluxDialogInstance, NgFluxDialogRef, NgFluxDialogRootComponent, NgFluxFrame, NgFluxLoading, NgFluxLoadingRootComponent, NgFluxPagination, NgFluxPinInput, NgFluxSelect, NgFluxTab, NgFluxTabContentDirective, NgFluxTabGroup, NgFluxTabNavDirective, NgFluxTabNavbar, NgFluxTabPanel, provideNgFlux };
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 };