@dflat-core/web 1.0.61 → 1.0.62

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.
@@ -6170,10 +6170,11 @@ i0.ɵɵngDeclareClassMetadata({
6170
6170
  ctorParameters: () => []
6171
6171
  });
6172
6172
  var CompanyComponent = class CompanyComponent extends BaseCompanyComponent {
6173
- constructor(app, route, systemSection) {
6173
+ constructor(app, route, systemSection, profileSelector) {
6174
6174
  super(app, route);
6175
6175
  this.route = route;
6176
6176
  this.systemSection = systemSection;
6177
+ this.profileSelector = profileSelector;
6177
6178
  this.ADDRESS_SECTION = "Adresses";
6178
6179
  this.SUBCOMPANY_SECTION = "Filiales";
6179
6180
  }
@@ -6193,7 +6194,14 @@ var CompanyComponent = class CompanyComponent extends BaseCompanyComponent {
6193
6194
  };
6194
6195
  }
6195
6196
  });
6196
- console.log("########## CompanyComponent Init");
6197
+ this.facade.actions.addAction(new Action("selectColumns", "Editeur Colonne", false, true, false, "table-columns", "bg-orange", () => this.selectColumns(), SystemPermissions.SYSTEM_COMPANY));
6198
+ }
6199
+ selectColumns() {
6200
+ this.profileSelector.open({
6201
+ title: `Sélection des colonnes — ${this.getTitle()}`,
6202
+ metaEntityKey: "CPY",
6203
+ purpose: PresentationProfilePurposes.Grid
6204
+ });
6197
6205
  }
6198
6206
  static {
6199
6207
  this.ɵfac = i0.ɵɵngDeclareFactory({
@@ -6204,7 +6212,8 @@ var CompanyComponent = class CompanyComponent extends BaseCompanyComponent {
6204
6212
  deps: [
6205
6213
  { token: i4$2.ApplicationService },
6206
6214
  { token: i2$1.ActivatedRoute },
6207
- { token: SystemSectionService }
6215
+ { token: SystemSectionService },
6216
+ { token: PresentationProfileActionService }
6208
6217
  ],
6209
6218
  target: i0.ɵɵFactoryTarget.Component
6210
6219
  });
@@ -6339,7 +6348,8 @@ i0.ɵɵngDeclareClassMetadata({
6339
6348
  ctorParameters: () => [
6340
6349
  { type: i4$2.ApplicationService },
6341
6350
  { type: i2$1.ActivatedRoute },
6342
- { type: SystemSectionService }
6351
+ { type: SystemSectionService },
6352
+ { type: PresentationProfileActionService }
6343
6353
  ]
6344
6354
  });
6345
6355
  var BaseCountryComponent = class BaseCountryComponent extends BaseComponent {