@dflat-core/web 1.7.2089 → 1.7.2091

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.
@@ -12,7 +12,7 @@ import { CoreModelModule, FilterType } from "@dflat-core/web/core-model";
12
12
  import * as i2$1 from "@dflat-core/web/core-ux";
13
13
  import { BaseComponent, BaseEditorComponent, BaseEntityEditor, CanDeactivateGuard, CoreUxModule, EntitySections, EntitySelectors, MessageSeverity, additionalQueryOf } from "@dflat-core/web/core-ux";
14
14
  import * as i2$2 from "@dflat-core/web/identity-data";
15
- import { IdentityDataModule, PresentationProfileAssignmentDataService, RoleDataService, RolePermissionDataService, UserAccountDataService, UserAccountLoginDataService, UserAccountRoleDataService, UserAccountTokenDataService, UserFavoriteDataService, UserGroupDataService, UserGroupDefinitionDataService, UserHistoryDataService, UserPermissionViewDataService, UserSessionDataService } from "@dflat-core/web/identity-data";
15
+ import { DeviceTokenDataService, IdentityDataModule, PresentationProfileAssignmentDataService, RoleDataService, RolePermissionDataService, UserAccountDataService, UserAccountLoginDataService, UserAccountRoleDataService, UserAccountTokenDataService, UserFavoriteDataService, UserGroupDataService, UserGroupDefinitionDataService, UserHistoryDataService, UserPermissionViewDataService, UserSessionDataService } from "@dflat-core/web/identity-data";
16
16
  import { ActivationResults, IdentityModelModule } from "@dflat-core/web/identity-model";
17
17
  import { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions, IdentityRootModule } from "@dflat-core/web/identity-root";
18
18
  import { MetaUxModule } from "@dflat-core/web/meta-ux";
@@ -387,6 +387,211 @@ i0.ɵɵngDeclareClassMetadata({
387
387
  }]
388
388
  }
389
389
  });
390
+ var BaseDeviceTokenComponent = class BaseDeviceTokenComponent extends BaseComponent {
391
+ getTitle() {
392
+ return "Jetons d'appareil";
393
+ }
394
+ getPath() {
395
+ return IdentityMenuItemProvider.GetLink(this.getEntityKey());
396
+ }
397
+ getEntityKey() {
398
+ return IdentityEntityKeys.DeviceToken;
399
+ }
400
+ get PermissionKey() {
401
+ return IdentityPermissions.IDENTITY_DEVICETOKEN;
402
+ }
403
+ getPpMetaEntityKey() {
404
+ return "DTKV";
405
+ }
406
+ constructor(app, route) {
407
+ super(app, route);
408
+ this.route = route;
409
+ }
410
+ static {
411
+ this.ɵfac = i0.ɵɵngDeclareFactory({
412
+ minVersion: "12.0.0",
413
+ version: "22.2.1",
414
+ ngImport: i0,
415
+ type: BaseDeviceTokenComponent,
416
+ deps: [{ token: i2$1.ApplicationService }, { token: i1.ActivatedRoute }],
417
+ target: i0.ɵɵFactoryTarget.Directive
418
+ });
419
+ }
420
+ static {
421
+ this.ɵdir = i0.ɵɵngDeclareDirective({
422
+ minVersion: "14.0.0",
423
+ version: "22.2.1",
424
+ type: BaseDeviceTokenComponent,
425
+ isStandalone: true,
426
+ usesInheritance: true,
427
+ ngImport: i0
428
+ });
429
+ }
430
+ };
431
+ i0.ɵɵngDeclareClassMetadata({
432
+ minVersion: "12.0.0",
433
+ version: "22.2.1",
434
+ ngImport: i0,
435
+ type: BaseDeviceTokenComponent,
436
+ decorators: [{ type: Directive }],
437
+ ctorParameters: () => [{ type: i2$1.ApplicationService }, { type: i1.ActivatedRoute }]
438
+ });
439
+ var DeviceTokenComponent = class DeviceTokenComponent extends BaseDeviceTokenComponent {
440
+ static {
441
+ this.ɵfac = i0.ɵɵngDeclareFactory({
442
+ minVersion: "12.0.0",
443
+ version: "22.2.1",
444
+ ngImport: i0,
445
+ type: DeviceTokenComponent,
446
+ deps: null,
447
+ target: i0.ɵɵFactoryTarget.Component
448
+ });
449
+ }
450
+ static {
451
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
452
+ minVersion: "14.0.0",
453
+ version: "22.2.1",
454
+ type: DeviceTokenComponent,
455
+ isStandalone: false,
456
+ selector: "msw-device-token-search",
457
+ usesInheritance: true,
458
+ ngImport: i0,
459
+ template: "<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n",
460
+ dependencies: [
461
+ {
462
+ kind: "directive",
463
+ type: i5.NgComponentOutlet,
464
+ selector: "[ngComponentOutlet]",
465
+ inputs: [
466
+ "ngComponentOutlet",
467
+ "ngComponentOutletInputs",
468
+ "ngComponentOutletInjector",
469
+ "ngComponentOutletEnvironmentInjector",
470
+ "ngComponentOutletContent",
471
+ "ngComponentOutletNgModule"
472
+ ],
473
+ exportAs: ["ngComponentOutlet"]
474
+ },
475
+ {
476
+ kind: "directive",
477
+ type: i5.NgIf,
478
+ selector: "[ngIf]",
479
+ inputs: [
480
+ "ngIf",
481
+ "ngIfThen",
482
+ "ngIfElse"
483
+ ]
484
+ },
485
+ {
486
+ kind: "component",
487
+ type: i2$1.DataGridComponent,
488
+ selector: "alg-data-grid",
489
+ inputs: [
490
+ "datagridClass",
491
+ "entityKey",
492
+ "guid"
493
+ ]
494
+ },
495
+ {
496
+ kind: "component",
497
+ type: i2$1.ValidationErrorComponent,
498
+ selector: "alg-validation-error"
499
+ },
500
+ {
501
+ kind: "component",
502
+ type: i2$1.NewEditorComponent,
503
+ selector: "alg-editor",
504
+ inputs: [
505
+ "saveButtonLabel",
506
+ "IsTheMainComponent",
507
+ "showButtons",
508
+ "showBreadCrumb",
509
+ "entityKey",
510
+ "guid"
511
+ ],
512
+ outputs: ["propertyChanged"]
513
+ },
514
+ {
515
+ kind: "component",
516
+ type: i2$1.NewPaginatorComponent,
517
+ selector: "alg-new-paginator",
518
+ inputs: [
519
+ "guid",
520
+ "log",
521
+ "displayInfo",
522
+ "currentRowsPerPage",
523
+ "entityKey"
524
+ ]
525
+ },
526
+ {
527
+ kind: "component",
528
+ type: i2$1.CardListComponent,
529
+ selector: "alg-card-list",
530
+ inputs: ["entityKey", "guid"]
531
+ },
532
+ {
533
+ kind: "component",
534
+ type: i2$1.MobileMenuComponent,
535
+ selector: "alg-mobile-menu",
536
+ inputs: [
537
+ "entityKey",
538
+ "guid",
539
+ "title",
540
+ "inline"
541
+ ]
542
+ },
543
+ {
544
+ kind: "component",
545
+ type: i2$1.FilterSummaryPanelComponent,
546
+ selector: "alg-filter-summary-panel",
547
+ inputs: ["entityKey", "guid"]
548
+ },
549
+ {
550
+ kind: "component",
551
+ type: i2$1.ActionPanelComponent,
552
+ selector: "alg-action-panel",
553
+ inputs: [
554
+ "searchText",
555
+ "title",
556
+ "entityKey",
557
+ "guid"
558
+ ]
559
+ },
560
+ {
561
+ kind: "component",
562
+ type: i2$1.StandardPageLayoutComponent,
563
+ selector: "alg-standard-page-layout",
564
+ inputs: [
565
+ "layoutKey",
566
+ "entityKey",
567
+ "guid"
568
+ ]
569
+ },
570
+ {
571
+ kind: "pipe",
572
+ type: i5.AsyncPipe,
573
+ name: "async"
574
+ }
575
+ ],
576
+ changeDetection: i0.ChangeDetectionStrategy.Eager
577
+ });
578
+ }
579
+ };
580
+ i0.ɵɵngDeclareClassMetadata({
581
+ minVersion: "12.0.0",
582
+ version: "22.2.1",
583
+ ngImport: i0,
584
+ type: DeviceTokenComponent,
585
+ decorators: [{
586
+ type: Component,
587
+ args: [{
588
+ selector: "msw-device-token-search",
589
+ standalone: false,
590
+ changeDetection: ChangeDetectionStrategy.Eager,
591
+ template: "<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n"
592
+ }]
593
+ }]
594
+ });
390
595
  var BasePresentationProfileAssignmentComponent = class BasePresentationProfileAssignmentComponent extends BaseComponent {
391
596
  getTitle() {
392
597
  return "Affectation de vue";
@@ -3958,6 +4163,7 @@ i0.ɵɵngDeclareClassMetadata({
3958
4163
  }]
3959
4164
  });
3960
4165
  const IdentityGeneratedComponents = [
4166
+ DeviceTokenComponent,
3961
4167
  PresentationProfileAssignmentComponent,
3962
4168
  RoleComponent,
3963
4169
  RolePermissionComponent,
@@ -3973,6 +4179,11 @@ const IdentityGeneratedComponents = [
3973
4179
  UserSessionComponent
3974
4180
  ];
3975
4181
  const IdentityGeneratedRoutes = [
4182
+ {
4183
+ path: IdentityEntityKeys.DeviceToken,
4184
+ component: DeviceTokenComponent,
4185
+ canDeactivate: [CanDeactivateGuard]
4186
+ },
3976
4187
  {
3977
4188
  path: IdentityEntityKeys.PresentationProfileAssignment,
3978
4189
  component: PresentationProfileAssignmentComponent,
@@ -4040,6 +4251,12 @@ const IdentityGeneratedRoutes = [
4040
4251
  }
4041
4252
  ];
4042
4253
  const IdentityGeneratedSelectors = [
4254
+ {
4255
+ key: IdentityEntityKeys.DeviceToken,
4256
+ component: DeviceTokenComponent,
4257
+ title: "Jetons d'appareil",
4258
+ dataService: DeviceTokenDataService
4259
+ },
4043
4260
  {
4044
4261
  key: IdentityEntityKeys.PresentationProfileAssignment,
4045
4262
  component: PresentationProfileAssignmentComponent,
@@ -4134,7 +4351,8 @@ var IdentityGeneratedSectionService = class IdentityGeneratedSectionService {
4134
4351
  EntitySections.related("Favori", UserFavoriteComponent, "UserAccountId"),
4135
4352
  EntitySections.related("Membres des groupes", UserGroupDefinitionComponent, "UserAccountId"),
4136
4353
  EntitySections.related("Historique utilisateur", UserHistoryComponent, "UserAccountId"),
4137
- EntitySections.related("Affectations de vues", PresentationProfileAssignmentComponent, "UserAccountId")
4354
+ EntitySections.related("Affectations de vues", PresentationProfileAssignmentComponent, "UserAccountId"),
4355
+ EntitySections.related("Jetons d'appareil", DeviceTokenComponent, "UserAccountId")
4138
4356
  ]
4139
4357
  };
4140
4358
  }
@@ -4847,6 +5065,7 @@ var IdentityUxModule = class IdentityUxModule {
4847
5065
  ngImport: i0,
4848
5066
  type: IdentityUxModule,
4849
5067
  declarations: [
5068
+ DeviceTokenComponent,
4850
5069
  PresentationProfileAssignmentComponent,
4851
5070
  RoleComponent,
4852
5071
  RolePermissionComponent,
@@ -4886,6 +5105,7 @@ var IdentityUxModule = class IdentityUxModule {
4886
5105
  RecaptchaFormsModule
4887
5106
  ],
4888
5107
  exports: [
5108
+ DeviceTokenComponent,
4889
5109
  PresentationProfileAssignmentComponent,
4890
5110
  RoleComponent,
4891
5111
  RolePermissionComponent,
@@ -5030,6 +5250,6 @@ i0.ɵɵngDeclareClassMetadata({
5030
5250
  ])] }]
5031
5251
  }]
5032
5252
  });
5033
- export { ActivateComponent, BasePresentationProfileAssignmentComponent, BaseRoleComponent, BaseRolePermissionComponent, BaseUserAccountComponent, BaseUserAccountLoginComponent, BaseUserAccountRoleComponent, BaseUserAccountTokenComponent, BaseUserFavoriteComponent, BaseUserGroupComponent, BaseUserGroupDefinitionComponent, BaseUserHistoryComponent, BaseUserPermissionViewComponent, BaseUserSessionComponent, IdentityGeneratedComponents, IdentityGeneratedRoutes, IdentityGeneratedSectionService, IdentityGeneratedSelectors, IdentityRoutingModule, IdentityUxModule, MustMatch, PresentationProfileAssignmentComponent, ResetPasswordComponent, RoleComponent, RoleEditorComponent, RolePermissionComponent, RolePermissionGrid, USER_ACCOUNT_SECTIONS, UserAccountComponent, UserAccountEditorComponent, UserAccountLoginComponent, UserAccountRoleComponent, UserAccountTokenComponent, UserActionService, UserFavoriteComponent, UserGroupComponent, UserGroupDefinitionComponent, UserGroupEditorComponent, UserHistoryComponent, UserPermissionComponent, UserPermissionViewComponent, UserProfileAccountComponent, UserProfileComponent, UserRoleComponent, UserSessionComponent };
5253
+ export { ActivateComponent, BaseDeviceTokenComponent, BasePresentationProfileAssignmentComponent, BaseRoleComponent, BaseRolePermissionComponent, BaseUserAccountComponent, BaseUserAccountLoginComponent, BaseUserAccountRoleComponent, BaseUserAccountTokenComponent, BaseUserFavoriteComponent, BaseUserGroupComponent, BaseUserGroupDefinitionComponent, BaseUserHistoryComponent, BaseUserPermissionViewComponent, BaseUserSessionComponent, DeviceTokenComponent, IdentityGeneratedComponents, IdentityGeneratedRoutes, IdentityGeneratedSectionService, IdentityGeneratedSelectors, IdentityRoutingModule, IdentityUxModule, MustMatch, PresentationProfileAssignmentComponent, ResetPasswordComponent, RoleComponent, RoleEditorComponent, RolePermissionComponent, RolePermissionGrid, USER_ACCOUNT_SECTIONS, UserAccountComponent, UserAccountEditorComponent, UserAccountLoginComponent, UserAccountRoleComponent, UserAccountTokenComponent, UserActionService, UserFavoriteComponent, UserGroupComponent, UserGroupDefinitionComponent, UserGroupEditorComponent, UserHistoryComponent, UserPermissionComponent, UserPermissionViewComponent, UserProfileAccountComponent, UserProfileComponent, UserRoleComponent, UserSessionComponent };
5034
5254
 
5035
5255
  //# sourceMappingURL=dflat-core-web-identity-ux.mjs.map