@dflat-core/web 1.7.2099 → 1.7.2100
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.
|
@@ -13,7 +13,7 @@ import { Overlay } from "@angular/cdk/overlay";
|
|
|
13
13
|
import { ComponentPortal } from "@angular/cdk/portal";
|
|
14
14
|
import * as i1$2 from "@dflat-core/web/core";
|
|
15
15
|
import { ACTION_DATA_SERVICE, DateUtils, FILES_DATA_SERVICE, Utilities, isNumeric, nameof } from "@dflat-core/web/core";
|
|
16
|
-
import { BehaviorSubject, EMPTY, Observable, ReplaySubject, Subject, Subscription, catchError, combineLatest, debounceTime, distinctUntilChanged, filter, finalize, forkJoin, from, fromEvent, groupBy, map, merge, mergeMap, of, share, shareReplay, startWith, switchMap, take, takeUntil, tap, throwError, toArray, withLatestFrom } from "rxjs";
|
|
16
|
+
import { BehaviorSubject, EMPTY, Observable, ReplaySubject, Subject, Subscription, asapScheduler, catchError, combineLatest, debounceTime, distinctUntilChanged, filter, finalize, forkJoin, from, fromEvent, groupBy, map, merge, mergeMap, observeOn, of, share, shareReplay, startWith, switchMap, take, takeUntil, tap, throwError, toArray, withLatestFrom } from "rxjs";
|
|
17
17
|
import { catchError as catchError$1, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, exhaustMap, filter as filter$1, map as map$1, shareReplay as shareReplay$1, skip, switchMap as switchMap$1, take as take$1, takeUntil as takeUntil$1 } from "rxjs/operators";
|
|
18
18
|
import * as i1$3 from "@dflat-core/web/core-services";
|
|
19
19
|
import { AuthService, BreadcrumbService, BusMessageService, FilterService, MenuService, UserService } from "@dflat-core/web/core-services";
|
|
@@ -3749,7 +3749,7 @@ var EntityFacade = class {
|
|
|
3749
3749
|
this.change = new ChangeDetectionContext(this.selection);
|
|
3750
3750
|
this.editor = new EditorContext(this.change);
|
|
3751
3751
|
this.actions = new ActionContext(this.facadeDeps, this.entityKey, this.selection, this.change, this.filter, this.sections, this.editor, this.config);
|
|
3752
|
-
this.data.isLoading$.subscribe((loading) => this.actions.loading$.next(loading));
|
|
3752
|
+
this.data.isLoading$.pipe(observeOn(asapScheduler)).subscribe((loading) => this.actions.loading$.next(loading));
|
|
3753
3753
|
const filterGuard = new FilterLifecycleGuard(facadeDeps.router, this.change, this.actions, this.facadeDeps.modal, this.filter);
|
|
3754
3754
|
this.criteria$ = filterGuard.intercept$(this.filter.baseCriteria$, this.filter.applyFilterUrlEnabled$, this.config.filterDescriptors$);
|
|
3755
3755
|
this.data.setCriteriaSource(this.criteria$);
|
|
@@ -16303,12 +16303,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
16303
16303
|
}
|
|
16304
16304
|
});
|
|
16305
16305
|
var LayoutHandlerDirective = class LayoutHandlerDirective {
|
|
16306
|
-
constructor(renderer, elRef) {
|
|
16306
|
+
constructor(renderer, elRef, ngZone) {
|
|
16307
16307
|
this.renderer = renderer;
|
|
16308
16308
|
this.elRef = elRef;
|
|
16309
|
+
this.ngZone = ngZone;
|
|
16310
|
+
this.mouseMoveListener = (event) => this.onMouseMove(event);
|
|
16309
16311
|
this.isSection = false;
|
|
16310
16312
|
this.destroy$ = new Subject();
|
|
16311
16313
|
this.dragInProgress = false;
|
|
16314
|
+
this.ngZone.runOutsideAngular(() => window.addEventListener("mousemove", this.mouseMoveListener));
|
|
16312
16315
|
}
|
|
16313
16316
|
ngAfterViewInit() {
|
|
16314
16317
|
if (!this.layoutContext) throw new Error("LayoutHandlerDirective requires LayoutContext");
|
|
@@ -16329,6 +16332,7 @@ var LayoutHandlerDirective = class LayoutHandlerDirective {
|
|
|
16329
16332
|
});
|
|
16330
16333
|
}
|
|
16331
16334
|
ngOnDestroy() {
|
|
16335
|
+
window.removeEventListener("mousemove", this.mouseMoveListener);
|
|
16332
16336
|
this.destroy$.next();
|
|
16333
16337
|
this.destroy$.complete();
|
|
16334
16338
|
}
|
|
@@ -16449,7 +16453,11 @@ var LayoutHandlerDirective = class LayoutHandlerDirective {
|
|
|
16449
16453
|
version: "22.2.1",
|
|
16450
16454
|
ngImport: i0,
|
|
16451
16455
|
type: LayoutHandlerDirective,
|
|
16452
|
-
deps: [
|
|
16456
|
+
deps: [
|
|
16457
|
+
{ token: i0.Renderer2 },
|
|
16458
|
+
{ token: i0.ElementRef },
|
|
16459
|
+
{ token: i0.NgZone }
|
|
16460
|
+
],
|
|
16453
16461
|
target: i0.ɵɵFactoryTarget.Directive
|
|
16454
16462
|
});
|
|
16455
16463
|
}
|
|
@@ -16467,7 +16475,6 @@ var LayoutHandlerDirective = class LayoutHandlerDirective {
|
|
|
16467
16475
|
layoutContext: "layoutContext"
|
|
16468
16476
|
},
|
|
16469
16477
|
host: { listeners: {
|
|
16470
|
-
"window:mousemove": "onMouseMove($event)",
|
|
16471
16478
|
"document:mouseup": "onMouseUp()",
|
|
16472
16479
|
"window:beforeunload": "onBeforeUnload()"
|
|
16473
16480
|
} },
|
|
@@ -16489,16 +16496,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
16489
16496
|
standalone: false
|
|
16490
16497
|
}]
|
|
16491
16498
|
}],
|
|
16492
|
-
ctorParameters: () => [
|
|
16499
|
+
ctorParameters: () => [
|
|
16500
|
+
{ type: i0.Renderer2 },
|
|
16501
|
+
{ type: i0.ElementRef },
|
|
16502
|
+
{ type: i0.NgZone }
|
|
16503
|
+
],
|
|
16493
16504
|
propDecorators: {
|
|
16494
16505
|
middlePanel: [{ type: Input }],
|
|
16495
16506
|
entityKey: [{ type: Input }],
|
|
16496
16507
|
isSection: [{ type: Input }],
|
|
16497
16508
|
layoutContext: [{ type: Input }],
|
|
16498
|
-
onMouseMove: [{
|
|
16499
|
-
type: HostListener,
|
|
16500
|
-
args: ["window:mousemove", ["$event"]]
|
|
16501
|
-
}],
|
|
16502
16509
|
onMouseUp: [{
|
|
16503
16510
|
type: HostListener,
|
|
16504
16511
|
args: ["document:mouseup"]
|
|
@@ -18019,6 +18026,10 @@ var DataGridComponent = class DataGridComponent {
|
|
|
18019
18026
|
this.dropBefore = true;
|
|
18020
18027
|
this.modalService = inject(DflatModalService, { optional: true });
|
|
18021
18028
|
this.columnWidths = {};
|
|
18029
|
+
this.mouseMoveListener = (event) => {
|
|
18030
|
+
if (!this.pendingDrag && !this.pendingRowDrag && !this.resizing) return;
|
|
18031
|
+
this.ngZone.run(() => this.onResizeMove(event));
|
|
18032
|
+
};
|
|
18022
18033
|
this.frozenLefts = [];
|
|
18023
18034
|
this._aggregates = [];
|
|
18024
18035
|
this.hasAggregates = false;
|
|
@@ -18034,7 +18045,9 @@ var DataGridComponent = class DataGridComponent {
|
|
|
18034
18045
|
this.selectionStyler = new SelectionStyler(this.renderer, this.rowRegistry);
|
|
18035
18046
|
this.entityUpdater = new EntityUpdater(this.facade.selection, this.data);
|
|
18036
18047
|
this.facade.selection.setSelectionType(this.options.selectionType);
|
|
18048
|
+
this.listenMouseMove();
|
|
18037
18049
|
this.bindColumns();
|
|
18050
|
+
this.bindData();
|
|
18038
18051
|
this.facade.layout.gridContextMenu$.pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
18039
18052
|
this.openEmptyAreaContextMenu(event);
|
|
18040
18053
|
this.cd.markForCheck();
|
|
@@ -18053,7 +18066,7 @@ var DataGridComponent = class DataGridComponent {
|
|
|
18053
18066
|
this.facade.filter.setPage(page + 1);
|
|
18054
18067
|
}
|
|
18055
18068
|
bindData() {
|
|
18056
|
-
this.facade.data.data$.subscribe((res) => {
|
|
18069
|
+
this.facade.data.data$.pipe(takeUntil(this.destroy$)).subscribe((res) => {
|
|
18057
18070
|
if (this.appendingPage && this.data?.Values?.length) {
|
|
18058
18071
|
const shown = new Set(this.data.Values.map((r) => r.Id));
|
|
18059
18072
|
res = {
|
|
@@ -18102,7 +18115,6 @@ var DataGridComponent = class DataGridComponent {
|
|
|
18102
18115
|
}
|
|
18103
18116
|
ngAfterViewInit() {
|
|
18104
18117
|
this.initViewReady();
|
|
18105
|
-
this.bindData();
|
|
18106
18118
|
this.bindSelection();
|
|
18107
18119
|
this.bindRowRendering();
|
|
18108
18120
|
this.bindStyleUpdates();
|
|
@@ -18174,6 +18186,7 @@ var DataGridComponent = class DataGridComponent {
|
|
|
18174
18186
|
this.selectionStyler.applySelected(sel, this.guid.toString());
|
|
18175
18187
|
}
|
|
18176
18188
|
ngOnDestroy() {
|
|
18189
|
+
document.removeEventListener("mousemove", this.mouseMoveListener);
|
|
18177
18190
|
document.body.classList.remove(DataGridComponent.DraggingBodyClass);
|
|
18178
18191
|
this.removeDragGhost();
|
|
18179
18192
|
this.destroy$.next();
|
|
@@ -19194,6 +19207,9 @@ var DataGridComponent = class DataGridComponent {
|
|
|
19194
19207
|
startWidth: th?.offsetWidth ?? 100
|
|
19195
19208
|
};
|
|
19196
19209
|
}
|
|
19210
|
+
listenMouseMove() {
|
|
19211
|
+
this.ngZone.runOutsideAngular(() => document.addEventListener("mousemove", this.mouseMoveListener));
|
|
19212
|
+
}
|
|
19197
19213
|
onResizeMove(event) {
|
|
19198
19214
|
if (this.pendingDrag) {
|
|
19199
19215
|
this.onHeaderDragMove(event);
|
|
@@ -19386,8 +19402,7 @@ var DataGridComponent = class DataGridComponent {
|
|
|
19386
19402
|
"document:click": "closeContextMenu()",
|
|
19387
19403
|
"document:keydown.escape": "closeHeaderMenu()",
|
|
19388
19404
|
"window:resize": "onWindowChange()",
|
|
19389
|
-
"window:scroll": "onWindowChange()"
|
|
19390
|
-
"document:mousemove": "onResizeMove($event)"
|
|
19405
|
+
"window:scroll": "onWindowChange()"
|
|
19391
19406
|
} },
|
|
19392
19407
|
queries: [{
|
|
19393
19408
|
propertyName: "cell",
|
|
@@ -19752,10 +19767,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19752
19767
|
}, {
|
|
19753
19768
|
type: HostListener,
|
|
19754
19769
|
args: ["window:scroll"]
|
|
19755
|
-
}],
|
|
19756
|
-
onResizeMove: [{
|
|
19757
|
-
type: HostListener,
|
|
19758
|
-
args: ["document:mousemove", ["$event"]]
|
|
19759
19770
|
}]
|
|
19760
19771
|
}
|
|
19761
19772
|
});
|
|
@@ -21458,7 +21469,7 @@ var PropertyEditorComponent = class PropertyEditorComponent {
|
|
|
21458
21469
|
read: ViewContainerRef
|
|
21459
21470
|
}],
|
|
21460
21471
|
ngImport: i0,
|
|
21461
|
-
template: "<form class=\"propertyGridform\">\r\n <ng-container *ngIf=\"this.viewModel$ | async as vm\">\r\n <alg-editor-tabset #tabs class=\"property-grid-tabset\" [sectionContext]=\"facade.sections\">\r\n <alg-editor-tab [active]=\"1 == 1\">\r\n <div [attr.id]=\"'content-0'\" class=\"property-grid-tab\">\r\n <div class=\"property-container\">\r\n <ng-container *ngIf=\"propertyForm\">\r\n <ng-container\r\n *ngFor=\" let section of vm.FieldSections;let i = index\">\r\n <div class=\"property-section-container\"\r\n [hidden]=\"this.isSectionHidden(section)\">\r\n <div class=\"property-section-title\">\r\n {{ section.Name }}\r\n </div>\r\n\r\n <div class=\"property-section-content\">\r\n <ng-container\r\n *ngFor=\"let field of section.FieldViewModels;let j = index\">\r\n <!-- [class.property-row-center]=\"field.FilterType ==filterTypes.CheckBox\" -->\r\n <div class=\"property-row\"\r\n [hidden]=\"field.IsHidden ||this.isFieldHidden(field)\">\r\n <alg-field\r\n [field]=\"field\"\r\n [form]=\"propertyForm\"\r\n (propertyChanged)=\"onPropertyChanged($event)\"\r\n [readonly]=\"this.readonly\"\r\n >\r\n <!-- [readonly]=\"this.readonly\" -->\r\n </alg-field>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </alg-editor-tab>\r\n <ng-container *ngIf=\"facade.sections.sections$ | async as dynamicSections\">\r\n <ng-container *ngFor=\"let section of dynamicSections; let x = index\">\r\n <alg-editor-tab \r\n [title]=\"section.Name\" \r\n [active]=\"false\"\r\n [iconUrl]=\"section.IconUrl\"\r\n [hidden]=\"!section.IsVisible\">\r\n <ng-template #templateContainer></ng-template>\r\n </alg-editor-tab>\r\n </ng-container>\r\n </ng-container>\r\n\r\n </alg-editor-tabset>\r\n </ng-container>\r\n</
|
|
21472
|
+
template: "<!-- Bloc et non <form> : avec FormsModule, un <form> crée un NgForm implicite auquel les ngModel des\r\n composants enfants (sélecteurs, listes, grilles des onglets) ne peuvent pas s'enregistrer (NG01354).\r\n Le panneau utilise son formulaire réactif (propertyForm), pas ce NgForm. -->\r\n<div class=\"propertyGridform\">\r\n <ng-container *ngIf=\"this.viewModel$ | async as vm\">\r\n <alg-editor-tabset #tabs class=\"property-grid-tabset\" [sectionContext]=\"facade.sections\">\r\n <alg-editor-tab [active]=\"1 == 1\">\r\n <div [attr.id]=\"'content-0'\" class=\"property-grid-tab\">\r\n <div class=\"property-container\">\r\n <ng-container *ngIf=\"propertyForm\">\r\n <ng-container\r\n *ngFor=\" let section of vm.FieldSections;let i = index\">\r\n <div class=\"property-section-container\"\r\n [hidden]=\"this.isSectionHidden(section)\">\r\n <div class=\"property-section-title\">\r\n {{ section.Name }}\r\n </div>\r\n\r\n <div class=\"property-section-content\">\r\n <ng-container\r\n *ngFor=\"let field of section.FieldViewModels;let j = index\">\r\n <!-- [class.property-row-center]=\"field.FilterType ==filterTypes.CheckBox\" -->\r\n <div class=\"property-row\"\r\n [hidden]=\"field.IsHidden ||this.isFieldHidden(field)\">\r\n <alg-field\r\n [field]=\"field\"\r\n [form]=\"propertyForm\"\r\n (propertyChanged)=\"onPropertyChanged($event)\"\r\n [readonly]=\"this.readonly\"\r\n >\r\n <!-- [readonly]=\"this.readonly\" -->\r\n </alg-field>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </alg-editor-tab>\r\n <ng-container *ngIf=\"facade.sections.sections$ | async as dynamicSections\">\r\n <ng-container *ngFor=\"let section of dynamicSections; let x = index\">\r\n <alg-editor-tab \r\n [title]=\"section.Name\" \r\n [active]=\"false\"\r\n [iconUrl]=\"section.IconUrl\"\r\n [hidden]=\"!section.IsVisible\">\r\n <ng-template #templateContainer></ng-template>\r\n </alg-editor-tab>\r\n </ng-container>\r\n </ng-container>\r\n\r\n </alg-editor-tabset>\r\n </ng-container>\r\n</div>\r\n",
|
|
21462
21473
|
styles: [".home-page{font-family:Open sans,sans-serif;background:#fff;-webkit-font-smoothing:antialiased;height:100%;width:100%;padding:16px}.main-container{margin:0 50px}.main-container-modal{width:calc(100% - 50px);margin:10px 25px 0}.moyen-titre{font-weight:700;font-size:24px;color:#4d5a81;margin:8px 0;border-bottom:solid 1px #DBE4FF}.grand-titre{font-weight:700;font-size:28px;color:#4d5a81;margin:0 0 8px}.petit-titre{font-weight:700;font-size:16px;color:#4d5a81;margin:0 0 8px}.petit-titre.underlined{border-bottom:solid 1px #4D5A81}.paragraph{padding:0 15px}.paragraph-highlight{padding:5px 15px 0 12px;border-left:5px solid #8EA7F8;border-bottom:1px solid #DBE4FF;border-top:1px solid #DBE4FF;border-right:1px solid #DBE4FF;background-color:#f7faff}.highlight{background-color:#f7faff;border:1px solid #DBE4FF;border-radius:5px;padding:15px;color:#3c5dc4;margin:0 0 16px}.highlight p{margin-bottom:0}.highlight:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"53.294\" height=\"50.629\" viewBox=\"0 0 53.294 50.629\">%0D%0A <path id=\"allerg\\e8ne\" d=\"M830.494,25.793l-5.814,6.783.727,8.963-8.721,1.938-4.6,7.752L803.847,47.6l-8.236,3.634-4.6-7.51-8.721-1.938.727-8.963L777.2,26.035l5.814-6.783-.727-8.963,8.721-1.938L795.61.6l8.236,3.634L812.083.6l4.6,7.752,8.721,1.938-.727,8.963Zm-24.467,2.422V13.681h-4.845V28.216Zm0,9.69V33.06h-4.845v4.845Z\" transform=\"translate(-777.2 -0.6)\"/>%0D%0A</svg>%0D%0A');background-repeat:no-repeat;margin:0 8px 24px 0;filter:invert(31%) sepia(51%) saturate(1323%) hue-rotate(199deg) brightness(99%) contrast(94%)}.notification{background-color:#dbe4ff;border:1px solid #C4D0F9;border-radius:5px;color:#4d5a81;margin:16px;padding:5px 15px;text-align:justify}.notification:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"info-circle\" class=\"svg-inline--fa fa-info-circle fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z\"></path></svg>');background-repeat:no-repeat;margin:0 8px 0 0;filter:invert(31%) sepia(8%) saturate(2329%) hue-rotate(188deg) brightness(103%) contrast(85%)}.notification-text{padding:0 15px 0 30px;font-size:16px}.propertyGridform{height:100%;width:100%}.property-grid-tabset{height:100%}.property-grid-tab{height:100%;width:100%;padding:5px}.property-row-center{padding-top:21px}.property-section-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));align-items:flex-start;align-content:flex-start;gap:10px;margin:0 10px}.property-section-container{display:flex;flex-direction:column;background:#f7faff;border-radius:5px;border:1px solid #C1D0FD;padding-bottom:10px}.property-section-title{display:block;font-size:14px;background:#f7faff;border-bottom:none;padding:2px 0;margin:10px;line-height:24px;font-weight:700;border-bottom:solid 1px #C1D0FD;color:#4d5a81}.property-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;padding:5px;height:100%;overflow:auto}.property-row{display:flex;flex-wrap:wrap;align-items:center;flex:25%;gap:10px}.property-label{color:#4465c9}.property-label span{padding-top:5px;display:inline-block;margin-right:5px}.property-label.invalid{color:red}.property-input{flex:2;min-width:200px}.checkbox-container{display:flex;align-items:center;gap:5px}.validation-error{color:red;font-size:.9rem}\n", ".home-page{font-family:Open sans,sans-serif;background:#fff;-webkit-font-smoothing:antialiased;height:100%;width:100%;padding:16px}.main-container{margin:0 50px}.main-container-modal{width:calc(100% - 50px);margin:10px 25px 0}.moyen-titre{font-weight:700;font-size:24px;color:#4d5a81;margin:8px 0;border-bottom:solid 1px #DBE4FF}.grand-titre{font-weight:700;font-size:28px;color:#4d5a81;margin:0 0 8px}.petit-titre{font-weight:700;font-size:16px;color:#4d5a81;margin:0 0 8px}.petit-titre.underlined{border-bottom:solid 1px #4D5A81}.paragraph{padding:0 15px}.paragraph-highlight{padding:5px 15px 0 12px;border-left:5px solid #8EA7F8;border-bottom:1px solid #DBE4FF;border-top:1px solid #DBE4FF;border-right:1px solid #DBE4FF;background-color:#f7faff}.highlight{background-color:#f7faff;border:1px solid #DBE4FF;border-radius:5px;padding:15px;color:#3c5dc4;margin:0 0 16px}.highlight p{margin-bottom:0}.highlight:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"53.294\" height=\"50.629\" viewBox=\"0 0 53.294 50.629\">%0D%0A <path id=\"allerg\\e8ne\" d=\"M830.494,25.793l-5.814,6.783.727,8.963-8.721,1.938-4.6,7.752L803.847,47.6l-8.236,3.634-4.6-7.51-8.721-1.938.727-8.963L777.2,26.035l5.814-6.783-.727-8.963,8.721-1.938L795.61.6l8.236,3.634L812.083.6l4.6,7.752,8.721,1.938-.727,8.963Zm-24.467,2.422V13.681h-4.845V28.216Zm0,9.69V33.06h-4.845v4.845Z\" transform=\"translate(-777.2 -0.6)\"/>%0D%0A</svg>%0D%0A');background-repeat:no-repeat;margin:0 8px 24px 0;filter:invert(31%) sepia(51%) saturate(1323%) hue-rotate(199deg) brightness(99%) contrast(94%)}.notification{background-color:#dbe4ff;border:1px solid #C4D0F9;border-radius:5px;color:#4d5a81;margin:16px;padding:5px 15px;text-align:justify}.notification:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"info-circle\" class=\"svg-inline--fa fa-info-circle fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z\"></path></svg>');background-repeat:no-repeat;margin:0 8px 0 0;filter:invert(31%) sepia(8%) saturate(2329%) hue-rotate(188deg) brightness(103%) contrast(85%)}.notification-text{padding:0 15px 0 30px;font-size:16px}.action-panel{display:block;height:auto;border-bottom:solid 1px #3C5DC4;width:auto;overflow:hidden;padding:3px 0}.action-panel-container{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;justify-items:center;justify-content:flex-start;width:30000px;padding:2px 5px;min-height:34px}.action-panel-container .input-img{margin-right:5px;min-width:150px}.action-panel-container>div{padding:2px;margin-right:0}.action-panel-container>button{padding:2px;margin-right:0}.action-panel-container .button-container{margin-right:3px;padding:3px;height:30px}.action-panel-container .button-container .img{padding:3px;margin-right:0}.action-panel-container .button-container:hover{background-color:#eaeaea}.action-panel-container .action-title{display:flex}.action-panel-container .action-title h1{display:block;font-size:14px;background:#fff;border-bottom:none;padding:2px 0 2px 10px;margin:0;line-height:24px;font-weight:700}.action-panel-container .action-title span{display:flex;margin:0 8px;padding:0;font-size:15px;flex-wrap:nowrap}.action-label{display:flex;flex-wrap:nowrap}.action-icon{margin:0 2px;filter:brightness(0) saturate(100%) invert(36%) sepia(91%) saturate(628%) hue-rotate(191deg) brightness(89%) contrast(85%) brightness(75%)}.search-bar-action{height:26px;min-height:26px;border-radius:5px}.input-img{position:relative;margin:0 5px 0 0;min-width:250px}.input-img .search-icon{position:absolute;top:50%;left:9px;transform:translateY(-50%);font-size:12px;color:#9fa9c7;pointer-events:none;z-index:1}.input-img .search-bar-action{padding-left:27px}.input-img .search-pin{position:absolute;top:5px;left:5px;height:16px;width:16px}.action-panel.narrow{background:#4465c9;border-bottom:none;padding:6px 0}.action-panel.narrow .action-panel-container{width:auto;min-height:30px;padding:0 8px;gap:8px}.action-panel.narrow .action-panel-container>div{padding:0}.action-panel.narrow .action-panel-container .button-container,.action-panel.narrow .action-panel-container ::ng-deep [actions-content]{display:none!important}.action-panel.narrow .action-panel-container .action-title{flex:0 1 auto;min-width:0}.action-panel.narrow .action-panel-container .action-title h1{overflow:hidden;height:30px;padding:0 12px;border-radius:5px;background:#6684e0;color:#fff;font-size:12.5px;font-weight:600;line-height:30px;white-space:nowrap;text-overflow:ellipsis}.action-panel.narrow .action-panel-container .action-title span{display:none}.action-panel.narrow .action-panel-container .input-img{flex:1 1 auto;min-width:0;margin:0}.action-panel.narrow .action-panel-container .action-mobile-menu{flex:none;margin-left:auto}.action-panel.narrow .action-panel-container .search-bar-action{width:100%;height:30px;border:none}.action-btn.save-active{color:#d1353a}.action-btn.save-active .action-icon{filter:brightness(0) saturate(100%) invert(25%) sepia(61%) saturate(2196%) hue-rotate(334deg) brightness(100%) contrast(94%)}\n"],
|
|
21463
21474
|
dependencies: [
|
|
21464
21475
|
{
|
|
@@ -21481,24 +21492,6 @@ var PropertyEditorComponent = class PropertyEditorComponent {
|
|
|
21481
21492
|
"ngIfElse"
|
|
21482
21493
|
]
|
|
21483
21494
|
},
|
|
21484
|
-
{
|
|
21485
|
-
kind: "directive",
|
|
21486
|
-
type: i5.ɵNgNoValidate,
|
|
21487
|
-
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
21488
|
-
},
|
|
21489
|
-
{
|
|
21490
|
-
kind: "directive",
|
|
21491
|
-
type: i5.NgControlStatusGroup,
|
|
21492
|
-
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
21493
|
-
},
|
|
21494
|
-
{
|
|
21495
|
-
kind: "directive",
|
|
21496
|
-
type: i5.NgForm,
|
|
21497
|
-
selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]",
|
|
21498
|
-
inputs: ["ngFormOptions"],
|
|
21499
|
-
outputs: ["ngSubmit"],
|
|
21500
|
-
exportAs: ["ngForm"]
|
|
21501
|
-
},
|
|
21502
21495
|
{
|
|
21503
21496
|
kind: "component",
|
|
21504
21497
|
type: FieldComponent,
|
|
@@ -21557,7 +21550,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21557
21550
|
selector: "alg-property-editor",
|
|
21558
21551
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
21559
21552
|
standalone: false,
|
|
21560
|
-
template: "<form class=\"propertyGridform\">\r\n <ng-container *ngIf=\"this.viewModel$ | async as vm\">\r\n <alg-editor-tabset #tabs class=\"property-grid-tabset\" [sectionContext]=\"facade.sections\">\r\n <alg-editor-tab [active]=\"1 == 1\">\r\n <div [attr.id]=\"'content-0'\" class=\"property-grid-tab\">\r\n <div class=\"property-container\">\r\n <ng-container *ngIf=\"propertyForm\">\r\n <ng-container\r\n *ngFor=\" let section of vm.FieldSections;let i = index\">\r\n <div class=\"property-section-container\"\r\n [hidden]=\"this.isSectionHidden(section)\">\r\n <div class=\"property-section-title\">\r\n {{ section.Name }}\r\n </div>\r\n\r\n <div class=\"property-section-content\">\r\n <ng-container\r\n *ngFor=\"let field of section.FieldViewModels;let j = index\">\r\n <!-- [class.property-row-center]=\"field.FilterType ==filterTypes.CheckBox\" -->\r\n <div class=\"property-row\"\r\n [hidden]=\"field.IsHidden ||this.isFieldHidden(field)\">\r\n <alg-field\r\n [field]=\"field\"\r\n [form]=\"propertyForm\"\r\n (propertyChanged)=\"onPropertyChanged($event)\"\r\n [readonly]=\"this.readonly\"\r\n >\r\n <!-- [readonly]=\"this.readonly\" -->\r\n </alg-field>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </alg-editor-tab>\r\n <ng-container *ngIf=\"facade.sections.sections$ | async as dynamicSections\">\r\n <ng-container *ngFor=\"let section of dynamicSections; let x = index\">\r\n <alg-editor-tab \r\n [title]=\"section.Name\" \r\n [active]=\"false\"\r\n [iconUrl]=\"section.IconUrl\"\r\n [hidden]=\"!section.IsVisible\">\r\n <ng-template #templateContainer></ng-template>\r\n </alg-editor-tab>\r\n </ng-container>\r\n </ng-container>\r\n\r\n </alg-editor-tabset>\r\n </ng-container>\r\n</
|
|
21553
|
+
template: "<!-- Bloc et non <form> : avec FormsModule, un <form> crée un NgForm implicite auquel les ngModel des\r\n composants enfants (sélecteurs, listes, grilles des onglets) ne peuvent pas s'enregistrer (NG01354).\r\n Le panneau utilise son formulaire réactif (propertyForm), pas ce NgForm. -->\r\n<div class=\"propertyGridform\">\r\n <ng-container *ngIf=\"this.viewModel$ | async as vm\">\r\n <alg-editor-tabset #tabs class=\"property-grid-tabset\" [sectionContext]=\"facade.sections\">\r\n <alg-editor-tab [active]=\"1 == 1\">\r\n <div [attr.id]=\"'content-0'\" class=\"property-grid-tab\">\r\n <div class=\"property-container\">\r\n <ng-container *ngIf=\"propertyForm\">\r\n <ng-container\r\n *ngFor=\" let section of vm.FieldSections;let i = index\">\r\n <div class=\"property-section-container\"\r\n [hidden]=\"this.isSectionHidden(section)\">\r\n <div class=\"property-section-title\">\r\n {{ section.Name }}\r\n </div>\r\n\r\n <div class=\"property-section-content\">\r\n <ng-container\r\n *ngFor=\"let field of section.FieldViewModels;let j = index\">\r\n <!-- [class.property-row-center]=\"field.FilterType ==filterTypes.CheckBox\" -->\r\n <div class=\"property-row\"\r\n [hidden]=\"field.IsHidden ||this.isFieldHidden(field)\">\r\n <alg-field\r\n [field]=\"field\"\r\n [form]=\"propertyForm\"\r\n (propertyChanged)=\"onPropertyChanged($event)\"\r\n [readonly]=\"this.readonly\"\r\n >\r\n <!-- [readonly]=\"this.readonly\" -->\r\n </alg-field>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </alg-editor-tab>\r\n <ng-container *ngIf=\"facade.sections.sections$ | async as dynamicSections\">\r\n <ng-container *ngFor=\"let section of dynamicSections; let x = index\">\r\n <alg-editor-tab \r\n [title]=\"section.Name\" \r\n [active]=\"false\"\r\n [iconUrl]=\"section.IconUrl\"\r\n [hidden]=\"!section.IsVisible\">\r\n <ng-template #templateContainer></ng-template>\r\n </alg-editor-tab>\r\n </ng-container>\r\n </ng-container>\r\n\r\n </alg-editor-tabset>\r\n </ng-container>\r\n</div>\r\n",
|
|
21561
21554
|
styles: [".home-page{font-family:Open sans,sans-serif;background:#fff;-webkit-font-smoothing:antialiased;height:100%;width:100%;padding:16px}.main-container{margin:0 50px}.main-container-modal{width:calc(100% - 50px);margin:10px 25px 0}.moyen-titre{font-weight:700;font-size:24px;color:#4d5a81;margin:8px 0;border-bottom:solid 1px #DBE4FF}.grand-titre{font-weight:700;font-size:28px;color:#4d5a81;margin:0 0 8px}.petit-titre{font-weight:700;font-size:16px;color:#4d5a81;margin:0 0 8px}.petit-titre.underlined{border-bottom:solid 1px #4D5A81}.paragraph{padding:0 15px}.paragraph-highlight{padding:5px 15px 0 12px;border-left:5px solid #8EA7F8;border-bottom:1px solid #DBE4FF;border-top:1px solid #DBE4FF;border-right:1px solid #DBE4FF;background-color:#f7faff}.highlight{background-color:#f7faff;border:1px solid #DBE4FF;border-radius:5px;padding:15px;color:#3c5dc4;margin:0 0 16px}.highlight p{margin-bottom:0}.highlight:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"53.294\" height=\"50.629\" viewBox=\"0 0 53.294 50.629\">%0D%0A <path id=\"allerg\\e8ne\" d=\"M830.494,25.793l-5.814,6.783.727,8.963-8.721,1.938-4.6,7.752L803.847,47.6l-8.236,3.634-4.6-7.51-8.721-1.938.727-8.963L777.2,26.035l5.814-6.783-.727-8.963,8.721-1.938L795.61.6l8.236,3.634L812.083.6l4.6,7.752,8.721,1.938-.727,8.963Zm-24.467,2.422V13.681h-4.845V28.216Zm0,9.69V33.06h-4.845v4.845Z\" transform=\"translate(-777.2 -0.6)\"/>%0D%0A</svg>%0D%0A');background-repeat:no-repeat;margin:0 8px 24px 0;filter:invert(31%) sepia(51%) saturate(1323%) hue-rotate(199deg) brightness(99%) contrast(94%)}.notification{background-color:#dbe4ff;border:1px solid #C4D0F9;border-radius:5px;color:#4d5a81;margin:16px;padding:5px 15px;text-align:justify}.notification:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"info-circle\" class=\"svg-inline--fa fa-info-circle fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z\"></path></svg>');background-repeat:no-repeat;margin:0 8px 0 0;filter:invert(31%) sepia(8%) saturate(2329%) hue-rotate(188deg) brightness(103%) contrast(85%)}.notification-text{padding:0 15px 0 30px;font-size:16px}.propertyGridform{height:100%;width:100%}.property-grid-tabset{height:100%}.property-grid-tab{height:100%;width:100%;padding:5px}.property-row-center{padding-top:21px}.property-section-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));align-items:flex-start;align-content:flex-start;gap:10px;margin:0 10px}.property-section-container{display:flex;flex-direction:column;background:#f7faff;border-radius:5px;border:1px solid #C1D0FD;padding-bottom:10px}.property-section-title{display:block;font-size:14px;background:#f7faff;border-bottom:none;padding:2px 0;margin:10px;line-height:24px;font-weight:700;border-bottom:solid 1px #C1D0FD;color:#4d5a81}.property-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;padding:5px;height:100%;overflow:auto}.property-row{display:flex;flex-wrap:wrap;align-items:center;flex:25%;gap:10px}.property-label{color:#4465c9}.property-label span{padding-top:5px;display:inline-block;margin-right:5px}.property-label.invalid{color:red}.property-input{flex:2;min-width:200px}.checkbox-container{display:flex;align-items:center;gap:5px}.validation-error{color:red;font-size:.9rem}\n", ".home-page{font-family:Open sans,sans-serif;background:#fff;-webkit-font-smoothing:antialiased;height:100%;width:100%;padding:16px}.main-container{margin:0 50px}.main-container-modal{width:calc(100% - 50px);margin:10px 25px 0}.moyen-titre{font-weight:700;font-size:24px;color:#4d5a81;margin:8px 0;border-bottom:solid 1px #DBE4FF}.grand-titre{font-weight:700;font-size:28px;color:#4d5a81;margin:0 0 8px}.petit-titre{font-weight:700;font-size:16px;color:#4d5a81;margin:0 0 8px}.petit-titre.underlined{border-bottom:solid 1px #4D5A81}.paragraph{padding:0 15px}.paragraph-highlight{padding:5px 15px 0 12px;border-left:5px solid #8EA7F8;border-bottom:1px solid #DBE4FF;border-top:1px solid #DBE4FF;border-right:1px solid #DBE4FF;background-color:#f7faff}.highlight{background-color:#f7faff;border:1px solid #DBE4FF;border-radius:5px;padding:15px;color:#3c5dc4;margin:0 0 16px}.highlight p{margin-bottom:0}.highlight:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"53.294\" height=\"50.629\" viewBox=\"0 0 53.294 50.629\">%0D%0A <path id=\"allerg\\e8ne\" d=\"M830.494,25.793l-5.814,6.783.727,8.963-8.721,1.938-4.6,7.752L803.847,47.6l-8.236,3.634-4.6-7.51-8.721-1.938.727-8.963L777.2,26.035l5.814-6.783-.727-8.963,8.721-1.938L795.61.6l8.236,3.634L812.083.6l4.6,7.752,8.721,1.938-.727,8.963Zm-24.467,2.422V13.681h-4.845V28.216Zm0,9.69V33.06h-4.845v4.845Z\" transform=\"translate(-777.2 -0.6)\"/>%0D%0A</svg>%0D%0A');background-repeat:no-repeat;margin:0 8px 24px 0;filter:invert(31%) sepia(51%) saturate(1323%) hue-rotate(199deg) brightness(99%) contrast(94%)}.notification{background-color:#dbe4ff;border:1px solid #C4D0F9;border-radius:5px;color:#4d5a81;margin:16px;padding:5px 15px;text-align:justify}.notification:before{position:relative;display:block;float:left;width:24px;height:24px;content:\" \";background-size:24px 24px;-webkit-background-size:24px 24px;background-image:url('data:image/svg+xml,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"info-circle\" class=\"svg-inline--fa fa-info-circle fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z\"></path></svg>');background-repeat:no-repeat;margin:0 8px 0 0;filter:invert(31%) sepia(8%) saturate(2329%) hue-rotate(188deg) brightness(103%) contrast(85%)}.notification-text{padding:0 15px 0 30px;font-size:16px}.action-panel{display:block;height:auto;border-bottom:solid 1px #3C5DC4;width:auto;overflow:hidden;padding:3px 0}.action-panel-container{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;justify-items:center;justify-content:flex-start;width:30000px;padding:2px 5px;min-height:34px}.action-panel-container .input-img{margin-right:5px;min-width:150px}.action-panel-container>div{padding:2px;margin-right:0}.action-panel-container>button{padding:2px;margin-right:0}.action-panel-container .button-container{margin-right:3px;padding:3px;height:30px}.action-panel-container .button-container .img{padding:3px;margin-right:0}.action-panel-container .button-container:hover{background-color:#eaeaea}.action-panel-container .action-title{display:flex}.action-panel-container .action-title h1{display:block;font-size:14px;background:#fff;border-bottom:none;padding:2px 0 2px 10px;margin:0;line-height:24px;font-weight:700}.action-panel-container .action-title span{display:flex;margin:0 8px;padding:0;font-size:15px;flex-wrap:nowrap}.action-label{display:flex;flex-wrap:nowrap}.action-icon{margin:0 2px;filter:brightness(0) saturate(100%) invert(36%) sepia(91%) saturate(628%) hue-rotate(191deg) brightness(89%) contrast(85%) brightness(75%)}.search-bar-action{height:26px;min-height:26px;border-radius:5px}.input-img{position:relative;margin:0 5px 0 0;min-width:250px}.input-img .search-icon{position:absolute;top:50%;left:9px;transform:translateY(-50%);font-size:12px;color:#9fa9c7;pointer-events:none;z-index:1}.input-img .search-bar-action{padding-left:27px}.input-img .search-pin{position:absolute;top:5px;left:5px;height:16px;width:16px}.action-panel.narrow{background:#4465c9;border-bottom:none;padding:6px 0}.action-panel.narrow .action-panel-container{width:auto;min-height:30px;padding:0 8px;gap:8px}.action-panel.narrow .action-panel-container>div{padding:0}.action-panel.narrow .action-panel-container .button-container,.action-panel.narrow .action-panel-container ::ng-deep [actions-content]{display:none!important}.action-panel.narrow .action-panel-container .action-title{flex:0 1 auto;min-width:0}.action-panel.narrow .action-panel-container .action-title h1{overflow:hidden;height:30px;padding:0 12px;border-radius:5px;background:#6684e0;color:#fff;font-size:12.5px;font-weight:600;line-height:30px;white-space:nowrap;text-overflow:ellipsis}.action-panel.narrow .action-panel-container .action-title span{display:none}.action-panel.narrow .action-panel-container .input-img{flex:1 1 auto;min-width:0;margin:0}.action-panel.narrow .action-panel-container .action-mobile-menu{flex:none;margin-left:auto}.action-panel.narrow .action-panel-container .search-bar-action{width:100%;height:30px;border:none}.action-btn.save-active{color:#d1353a}.action-btn.save-active .action-icon{filter:brightness(0) saturate(100%) invert(25%) sepia(61%) saturate(2196%) hue-rotate(334deg) brightness(100%) contrast(94%)}\n"]
|
|
21562
21555
|
}]
|
|
21563
21556
|
}],
|