@acorex/modules 20.6.0-next.20 → 20.6.0-next.21

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.
@@ -5235,66 +5235,12 @@ class AXMLockEvaluatorScopeProvider {
5235
5235
  }
5236
5236
  }
5237
5237
 
5238
- const lockPlugin = {
5239
- name: 'lock',
5240
- order: 50,
5241
- apply: (ctx) => {
5242
- ensureListActions(ctx);
5243
- ctx.interfaces.update((i) => {
5244
- const actions = i.master.list.actions;
5245
- ctx.properties.list().forEach(p => {
5246
- if (p.schema.interface) {
5247
- p.schema.interface.options = {
5248
- ...p.schema.interface.options,
5249
- readonly: `{{ lock.check(context.eval("id"), "${ctx.entity.module}.${ctx.entity.name}") }}`
5250
- };
5251
- }
5252
- });
5253
- if (!actions.some((a) => a.name === 'lock-entity')) {
5254
- actions.push({
5255
- title: '@lock-system:actions.lock.title',
5256
- name: 'lock-entity',
5257
- command: {
5258
- name: 'lock-popup',
5259
- options: {
5260
- refId: '{{ context.eval("id") }}',
5261
- refType: `${ctx.entity.module}.${ctx.entity.name}`,
5262
- },
5263
- },
5264
- priority: 'secondary',
5265
- type: 'lock',
5266
- scope: AXPEntityCommandScope.Individual,
5267
- hidden: `{{ lock.check(context.eval("id"), "${ctx.entity.module}.${ctx.entity.name}") }}`,
5268
- });
5269
- }
5270
- if (!actions.some((a) => a.name === 'unlock-entity')) {
5271
- actions.push({
5272
- title: '@lock-system:actions.unlock.title',
5273
- name: 'unlock-entity',
5274
- command: {
5275
- name: 'unlock-confirm',
5276
- options: {
5277
- refId: '{{ context.eval("id") }}',
5278
- refType: `${ctx.entity.module}.${ctx.entity.name}`,
5279
- },
5280
- },
5281
- priority: 'secondary',
5282
- type: 'unlock',
5283
- scope: AXPEntityCommandScope.Individual,
5284
- hidden: `{{ (await lock.check(context.eval("id"), "${ctx.entity.module}.${ctx.entity.name}")) == false }}`,
5285
- });
5286
- }
5287
- return i;
5288
- });
5289
- },
5290
- };
5291
-
5292
5238
  class AXMLockSystemModule {
5293
5239
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMLockSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5294
5240
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: AXMLockSystemModule, imports: [i1.AXPWorkflowModule] }); }
5295
5241
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMLockSystemModule, providers: [
5296
5242
  { provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, multi: true, useClass: AXMLockEvaluatorScopeProvider },
5297
- { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: lockPlugin },
5243
+ // { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: lockPlugin },
5298
5244
  { provide: AXP_ENTITY_STORAGE_MIDDLEWARE, multi: true, useValue: lockGuardMiddleware },
5299
5245
  ], imports: [AXPWorkflowModule.forChild({
5300
5246
  actions: {
@@ -5324,7 +5270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
5324
5270
  ],
5325
5271
  providers: [
5326
5272
  { provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, multi: true, useClass: AXMLockEvaluatorScopeProvider },
5327
- { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: lockPlugin },
5273
+ // { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: lockPlugin },
5328
5274
  { provide: AXP_ENTITY_STORAGE_MIDDLEWARE, multi: true, useValue: lockGuardMiddleware },
5329
5275
  ],
5330
5276
  }]