@dflat-core/web 1.0.63 → 1.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dflat-core/web",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Librairies Angular Dflat (core, core-*, system-*) et assets partagés, empaquetées en un module npm unique.",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -1,29 +1,29 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, InjectionToken, Injector, IterableDiffers, NgZone, OnChanges, OnDestroy, OnInit, PipeTransform, QueryList, Renderer2, SimpleChanges, TemplateRef, Type, ViewContainerRef } from "@angular/core";
3
- import * as i89 from "@dflat-core/web/core-model";
3
+ import * as i90 from "@dflat-core/web/core-model";
4
4
  import { ActionDescriptor, AggregateFunction, AggregationValue, ColumnDescriptor, DictionnaryWrapper, EntityConfig, EntityViewModel, EntityViewModelWithFields, ExtendedProperty, FieldDescriptor, FieldEvent, FieldValidators, FilterDescriptor, FilterQuery, FilterRow, FilterType, FilterViewModel, IFilterDescriptorExtra, Notification, PagedList, PropertyEditorEvent, RunActionContext, SaveResult, SaveResults, Section, SectionError, SpecificSection, TextZoneButtonEvent, TrackRecordProperty, User } from "@dflat-core/web/core-model";
5
5
  import { AuthService, BreadcrumbService, BusMessageService, FilterService, HubService, LocalStoreManager, MenuItem, MenuService, NotificationMqService, UserService } from "@dflat-core/web/core-services";
6
- import * as i90 from "@angular/forms";
7
- import { AbstractControl, ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgForm, UntypedFormControl, UntypedFormGroup, ValidatorFn } from "@angular/forms";
6
+ import * as i91 from "@angular/forms";
7
+ import { AbstractControl, ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgForm, UntypedFormControl, UntypedFormGroup, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
8
8
  import { BehaviorSubject, Observable, Subject, Subscription } from "rxjs";
9
9
  import { DataService, EntityDataService } from "@dflat-core/web/core-data";
10
10
  import { ActionDataService, FilesDataService } from "@dflat-core/web/system-data";
11
- import * as i88 from "@angular/common";
11
+ import * as i89 from "@angular/common";
12
12
  import { DatePipe, Location } from "@angular/common";
13
- import * as i87 from "@angular/router";
13
+ import * as i88 from "@angular/router";
14
14
  import { ActivatedRoute, ActivatedRouteSnapshot, Router, RouterStateSnapshot } from "@angular/router";
15
15
  import { SelectionType, TableColumn } from "@swimlane/ngx-datatable";
16
16
  import { ActiveToast, IndividualConfig, ToastrService } from "ngx-toastr";
17
17
  import { Guid } from "guid-typescript";
18
- import * as i93 from "ngx-bootstrap/modal";
18
+ import * as i94 from "ngx-bootstrap/modal";
19
19
  import { BsModalRef, BsModalService, ModalOptions } from "ngx-bootstrap/modal";
20
- import * as i92 from "ngx-bootstrap/datepicker";
20
+ import * as i93 from "ngx-bootstrap/datepicker";
21
21
  import { BsDatepickerConfig, BsLocaleService } from "ngx-bootstrap/datepicker";
22
22
  import { EnvironmentBase } from "@dflat-core/web/core";
23
23
  import { AnimationBuilder } from "@angular/animations";
24
24
  import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
25
- import * as i91 from "@ng-select/ng-select";
26
- import * as i96 from "ngx-bootstrap/focus-trap";
25
+ import * as i92 from "@ng-select/ng-select";
26
+ import * as i97 from "ngx-bootstrap/focus-trap";
27
27
  import { CdkDragDrop } from "@angular/cdk/drag-drop";
28
28
  export type FacadeAction = ((param?: any) => void) | ((param?: any) => Observable<ActionResult<any>>);
29
29
  export declare class ActionDefinition {
@@ -4997,6 +4997,42 @@ export declare class BaseShortcutsDirective implements OnDestroy {
4997
4997
  };
4998
4998
  }, {}, never, never, false, never>;
4999
4999
  }
5000
+ declare namespace decimal_input_directive_d_exports {
5001
+ export { DecimalInputDirective, formatDecimal, parseDecimal };
5002
+ }
5003
+ /**
5004
+ * Lit un nombre décimal saisi : virgule ou point comme séparateur décimal, signe moins et espaces
5005
+ * de milliers admis.
5006
+ * @param text Texte saisi.
5007
+ * @returns Le nombre, null si le texte est vide, undefined s'il n'est pas un nombre décimal.
5008
+ */
5009
+ export declare function parseDecimal(text: string | null | undefined): number | null | undefined;
5010
+ /**
5011
+ * Affiche un nombre décimal dans un champ de saisie, avec la virgule comme séparateur décimal.
5012
+ * @param value Valeur du contrôle.
5013
+ */
5014
+ export declare function formatDecimal(value: unknown): string;
5015
+ /**
5016
+ * Champ de saisie d'un nombre décimal : le contrôle de formulaire porte un nombre (ou null), le
5017
+ * champ affiche le texte saisi (« 12,5 », « -3.25 »). Un texte qui n'est pas un nombre décimal
5018
+ * laisse le contrôle à null, avec l'erreur de validation `decimal`.
5019
+ */
5020
+ export declare class DecimalInputDirective implements ControlValueAccessor, Validator {
5021
+ private host;
5022
+ private invalid;
5023
+ private onChange;
5024
+ private onTouched;
5025
+ constructor(host: ElementRef<HTMLInputElement>);
5026
+ onInput(): void;
5027
+ onBlur(): void;
5028
+ writeValue(value: unknown): void;
5029
+ registerOnChange(fn: (value: number | null) => void): void;
5030
+ registerOnTouched(fn: () => void): void;
5031
+ setDisabledState(isDisabled: boolean): void;
5032
+ validate(_control: AbstractControl): ValidationErrors | null;
5033
+ static ɵfac: i0.ɵɵFactoryDeclaration<DecimalInputDirective, never>;
5034
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalInputDirective, "input[algDecimalInput]", never, {}, {}, never, never, false, never>;
5035
+ }
5000
5036
  declare namespace field_component_d_exports {
5001
5037
  export { FieldComponent };
5002
5038
  }
@@ -5500,7 +5536,7 @@ export declare class RowRefDirective implements AfterViewInit, OnDestroy {
5500
5536
  }
5501
5537
  export declare class CoreUxModule {
5502
5538
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreUxModule, never>;
5503
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreUxModule, [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent], [typeof i87.RouterModule, typeof i88.CommonModule, typeof i89.CoreModelModule, typeof i90.FormsModule, typeof i90.ReactiveFormsModule, typeof i91.NgSelectModule, typeof i92.BsDatepickerModule, typeof i93.ModalModule, typeof i90.ReactiveFormsModule, typeof GridStylePipe, typeof RowRefDirective, typeof i96.FocusTrapDirective], [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent]>;
5539
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreUxModule, [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof DecimalInputDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent], [typeof i88.RouterModule, typeof i89.CommonModule, typeof i90.CoreModelModule, typeof i91.FormsModule, typeof i91.ReactiveFormsModule, typeof i92.NgSelectModule, typeof i93.BsDatepickerModule, typeof i94.ModalModule, typeof i91.ReactiveFormsModule, typeof GridStylePipe, typeof RowRefDirective, typeof i97.FocusTrapDirective], [typeof ActionsComponent, typeof ActionsContentComponent, typeof BreadcrumbComponent, typeof CollapseDirective, typeof ConfirmModalComponent, typeof DatagridCustomComponent, typeof DataGridComponent, typeof OldDataPageComponent, typeof DefaultLayoutComponent, typeof DialogComponent, typeof DynamicFieldComponent, typeof DynamicFilterComponent, typeof DynamicFilterExtraComponent, typeof DynamicFilterPanel, typeof DynamicFormComponent, typeof ImageComponent, typeof ExportDataModalComponent, typeof TrackRecordModalComponent, typeof FilterSummaryComponent, typeof GridRowComponent, typeof DatagridCellComponent, typeof InputSelectorComponent, typeof InputTreeSelectorComponent, typeof InsertionDirective, typeof LoginLayoutComponent, typeof LogsComponent, typeof MenuComponent, typeof MenuDashboardComponent, typeof PaginatorComponent, typeof PropertyGridComponent, typeof Tab, typeof TabHeadingDirective, typeof Tabset, typeof TabTranscludeDirective, typeof ToDefinePipe, typeof ToFixedSizeIntegerPipe, typeof ValidateOnEnterDirective, typeof ValidationErrorComponent, typeof ValidationModalComponent, typeof TextViewerComponent, typeof EditModeDirective, typeof ViewModeDirective, typeof FocusableDirective, typeof OnEnterDirective, typeof TextViewerComponent, typeof WizardComponent, typeof WizardStepComponent, typeof TooltipDirective, typeof AddclassDirective, typeof BaseItemListComponent, typeof DroppableDirective, typeof DraggableDirective, typeof ParameterFieldComponent, typeof BaseParameterTypeComponent, typeof BaseArrayParameterTypeComponent, typeof ParameterTypeTextComponent, typeof ParameterTypeNumberComponent, typeof ParameterTypeBoolComponent, typeof ParameterTypeDateComponent, typeof ParameterTypePasswordComponent, typeof ParameterTypeTextArrayComponent, typeof ParameterTypeNumberArrayComponent, typeof ParameterTypeDateArrayComponent, typeof ParameterTypeBoolArrayComponent, typeof TimePickerComponent, typeof ExtendedActionComponent, typeof FormPasswordComponent, typeof SearchResultsComponent, typeof LayoutHandlerDirective, typeof OldLayoutHandlerDirective, typeof PageLayoutComponent, typeof HideOnThresholdDirective, typeof BaseShortcutsDirective, typeof DecimalInputDirective, typeof NewEditorComponent, typeof PropertyEditorComponent, typeof FieldComponent, typeof EditorTabSetComponent, typeof EditorTabComponent, typeof BreadcrumbComponent, typeof NewPaginatorComponent, typeof FilterSummaryPanelComponent, typeof ActionPanelComponent, typeof StandardPageLayoutComponent, typeof DataListComponent, typeof CellRendererComponent, typeof SelectorComponent, typeof CellRendererComponent, typeof FilterFormModalComponent, typeof GridFieldComponent]>;
5504
5540
  static ɵinj: i0.ɵɵInjectorDeclaration<CoreUxModule>;
5505
5541
  }
5506
5542
  export declare class CanDeactivateGuard {