@acorex/platform 19.1.8 → 19.1.9

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.
Files changed (65) hide show
  1. package/common/lib/app/application.types.d.ts +4 -0
  2. package/common/lib/common.module.d.ts +2 -2
  3. package/common/lib/layout/menu/menu.types.d.ts +2 -1
  4. package/common/lib/search/search-definition.builder.d.ts +5 -2
  5. package/common/lib/search/search.provider.d.ts +1 -1
  6. package/common/lib/search/search.service.d.ts +1 -0
  7. package/common/lib/search/search.types.d.ts +21 -5
  8. package/common/lib/settings/settings.service.d.ts +11 -5
  9. package/common/lib/workflows/navigate.workflow.d.ts +4 -0
  10. package/fesm2022/acorex-platform-common.mjs +105 -126
  11. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-builder.mjs +1 -0
  13. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-layout-designer.mjs +3 -3
  15. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  16. package/fesm2022/acorex-platform-layout-entity.mjs +107 -62
  17. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-layout-search.mjs +76 -17
  19. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-layout-setting.mjs +111 -5
  21. package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
  22. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs → acorex-platform-themes-default-entity-master-list-view.component-BDjcOo6R.mjs} +3 -3
  23. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BDjcOo6R.mjs.map +1 -0
  24. package/fesm2022/acorex-platform-themes-default-search-popup.component-gkiSZXm-.mjs +122 -0
  25. package/fesm2022/acorex-platform-themes-default-search-popup.component-gkiSZXm-.mjs.map +1 -0
  26. package/fesm2022/acorex-platform-themes-default.mjs +11 -11
  27. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-themes-shared.mjs +9 -9
  29. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-widgets.mjs +1236 -832
  31. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  32. package/fesm2022/acorex-platform-workflow.mjs +10 -3
  33. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  34. package/layout/builder/lib/builder/widget-map.d.ts +1 -0
  35. package/layout/designer/lib/preview/preview.component.d.ts +2 -2
  36. package/layout/entity/lib/entity-master-single.viewmodel.d.ts +6 -6
  37. package/layout/entity/lib/search-definition-command.provider.d.ts +4 -0
  38. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +1 -1
  39. package/layout/search/lib/search.viewmodel.d.ts +17 -1
  40. package/layout/setting/index.d.ts +1 -0
  41. package/{common/lib/settings → layout/setting/lib}/search-definition.provider.d.ts +1 -1
  42. package/layout/setting/lib/search.provider.d.ts +9 -0
  43. package/layout/setting/lib/settings.module.d.ts +9 -0
  44. package/package.json +9 -9
  45. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +2 -2
  46. package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +7 -0
  47. package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +3 -3
  48. package/widgets/lib/widgets/index.d.ts +1 -0
  49. package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-designer.component.d.ts +29 -0
  50. package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-view.component.d.ts +9 -0
  51. package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget.config.d.ts +7 -0
  52. package/widgets/lib/widgets/layout/advanced-grid/index.d.ts +3 -0
  53. package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +6 -3
  54. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -6
  55. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +23 -12
  56. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +4 -2
  57. package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +2 -2
  58. package/widgets/lib/widgets/property-editors/property-editor.type.d.ts +5 -0
  59. package/workflow/lib/workflow.service.d.ts +1 -0
  60. package/workflow/lib/workflow.types.d.ts +1 -1
  61. package/common/lib/settings/search.provider.d.ts +0 -10
  62. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map +0 -1
  63. package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs +0 -84
  64. package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.mjs.map +0 -1
  65. package/layout/entity/lib/search.provider.d.ts +0 -4
@@ -81,7 +81,7 @@ class AXPWorkflowContext {
81
81
  this.variables = { ...this.variables, ...context };
82
82
  }
83
83
  getVariable(key) {
84
- return get(this.variables, key);
84
+ return !key ? this.variables : get(this.variables, key);
85
85
  }
86
86
  setOutput(key, output) {
87
87
  this.stepOutputs.set(key, output);
@@ -135,7 +135,9 @@ class AXPWorkflowService {
135
135
  // Instantiate or retrieve the workflow
136
136
  const wk = typeof workflow === 'string' ? this.getWorkflowInstance(workflow) : workflow;
137
137
  let currentStepId = wk.startStepId;
138
- const context = initialContext instanceof AXPWorkflowContext ? initialContext : new AXPWorkflowContext(initialContext ?? {});
138
+ const context = initialContext instanceof AXPWorkflowContext
139
+ ? initialContext
140
+ : new AXPWorkflowContext(this.processData(initialContext) ?? {});
139
141
  // Initialize context with initial variables
140
142
  while (currentStepId) {
141
143
  const currentStep = wk.steps[currentStepId];
@@ -173,6 +175,10 @@ class AXPWorkflowService {
173
175
  }
174
176
  return context;
175
177
  }
178
+ processData(initialContext) {
179
+ //TODO: update values with expressions and return new object
180
+ return initialContext;
181
+ }
176
182
  //TODO : replace with AXDataGenerator
177
183
  uuid() {
178
184
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char) => {
@@ -235,6 +241,7 @@ class AXPWorkflowService {
235
241
  throw new AXPWorkflowError(`Unsupported condition type: ${condition.type}`);
236
242
  }
237
243
  }
244
+ //TODO: return any and recursively update object, update scopes
238
245
  async evaluateExpression(templateExpression, context) {
239
246
  try {
240
247
  let expression = '';
@@ -289,7 +296,7 @@ class AXPWorkflowService {
289
296
  this.registryService.getFunctionNames().forEach((name) => {
290
297
  scope[name] = this.getFunctionInstance(name).execute;
291
298
  });
292
- return scope;
299
+ return { methods: { scope } };
293
300
  }
294
301
  getFunctionInstance(functionName) {
295
302
  const functionType = this.registryService.getFunction(functionName);
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-workflow.mjs","sources":["../../../../libs/platform/workflow/src/lib/errors.types.ts","../../../../libs/platform/workflow/src/lib/workflow-event-dispatcher.service.ts","../../../../libs/platform/workflow/src/lib/workflow-registery.service.ts","../../../../libs/platform/workflow/src/lib/workflow.types.ts","../../../../libs/platform/workflow/src/lib/workflow.service.ts","../../../../libs/platform/workflow/src/lib/actions/start-workflow.action.ts","../../../../libs/platform/workflow/src/lib/workflow.module.ts","../../../../libs/platform/workflow/src/acorex-platform-workflow.ts"],"sourcesContent":["export class AXPWorkflowError extends Error {\n constructor(message: string, public inner: Error | null = null) {\n super(message);\n this.name = 'AXPWorkflowError';\n }\n}","import { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { AXPWorkflowEvent } from './workflow.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPWorkflowEventService {\n private eventSubject = new Subject<AXPWorkflowEvent>();\n\n dispatch(event: AXPWorkflowEvent): void {\n this.eventSubject.next(event);\n }\n\n get events$(): Observable<AXPWorkflowEvent> {\n return this.eventSubject.asObservable();\n }\n}\n","import { Injectable, Type } from '@angular/core';\nimport { AXPWorkflow, AXPWorkflowAction, AXPWorkflowFunction } from './workflow.types';\n\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AXPWorkflowRegistryService {\n private functionsMap = new Map<string, Type<AXPWorkflowFunction>>();\n private actionsMap = new Map<string, Type<AXPWorkflowAction>>();\n private workflowsMap = new Map<string, AXPWorkflow>();\n\n registerWorkflow(name: string, workflow: AXPWorkflow): void {\n this.workflowsMap.set(name, workflow);\n }\n\n getWorkflow(name: string): AXPWorkflow | undefined {\n return this.workflowsMap.get(name);\n }\n\n registerAction(name: string, action: Type<AXPWorkflowAction>): void {\n this.actionsMap.set(name, action);\n }\n\n getAction(name: string): Type<AXPWorkflowAction> | undefined {\n return this.actionsMap.get(name);\n }\n\n registerFunction(name: string, func: Type<AXPWorkflowFunction>): void {\n this.functionsMap.set(name, func);\n }\n\n getFunction(name: string): Type<AXPWorkflowFunction> | undefined {\n return this.functionsMap.get(name);\n }\n\n getFunctionNames(): string[] {\n return Array.from(this.functionsMap.keys());\n }\n}","import { Injectable, inject } from '@angular/core';\nimport { filter } from 'rxjs';\nimport { AXPWorkflowEventService } from './workflow-event-dispatcher.service';\nimport { cloneDeep, get, set } from 'lodash-es';\n\nexport interface AXPWorkflow {\n steps: { [stepName: string]: AXPWorkflowStep };\n startStepId: string;\n}\n\n\nexport class AXPWorkflowContext {\n\n constructor(initialData: any = {}) {\n this.variables = cloneDeep(initialData);\n }\n\n private variables: any = {};\n private stepOutputs: Map<string, any> = new Map();\n\n setVariable(key: string, value: any): void {\n set(this.variables, key, value);\n }\n\n\n setVariables(context: any = {}) {\n this.variables = { ...this.variables, ...context };\n }\n\n getVariable<T = any>(key: string): T {\n return get(this.variables, key);\n }\n\n setOutput(key: string, output: any): void {\n this.stepOutputs.set(key, output);\n }\n\n setOutputs(values: Map<string, any>): void {\n this.stepOutputs = new Map([...this.stepOutputs, ...values])\n }\n\n getOutput<T = any>(key: string): T {\n return this.stepOutputs.get(key);\n }\n}\n\nexport type AXPWorkflowActionInput = any;\n\nexport type AXPWorkflowConditionType = 'AND' | 'OR' | 'SINGLE';\n\nexport interface AXPWorkflowCondition {\n type: AXPWorkflowConditionType;\n conditions?: AXPWorkflowCondition[]; // Nested conditions\n expression?: string; // Used if type is 'SINGLE'\n}\n\nexport interface AXPWorkflowNextStep {\n conditions: AXPWorkflowCondition[];\n nextStepId: string;\n}\n\nexport interface AXPWorkflowStep {\n id?: string;\n action: AXPWorkflowAction | string;\n input?: AXPWorkflowActionInput;\n nextSteps?: AXPWorkflowNextStep[];\n conditions?: AXPWorkflowCondition[];\n}\n@Injectable()\nexport abstract class AXPWorkflowAction {\n private eventService = inject(AXPWorkflowEventService);\n\n protected dispatch(event: AXPWorkflowEvent): void {\n this.eventService.dispatch(event);\n }\n\n abstract execute(context: AXPWorkflowContext): Promise<void>;\n}\n\n@Injectable()\nexport abstract class AXPWorkflowFunction {\n abstract execute(...args: any[]): Promise<any> | any;\n}\n\nexport interface AXPWorkflowEvent<T = any> {\n type: string;\n payload?: T;\n}\n\n\n\nexport function createWorkFlowEvent<T>(type: string) {\n const eventCreator = (payload: T) => ({ type, payload });\n eventCreator.type = type;\n return eventCreator;\n}\n\nexport function ofType<T extends { type: string }>(...allowedTypes: Array<{ type: string }>) {\n return filter((event: T) => allowedTypes.some((type) => event.type === type.type));\n}\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { cloneDeep, set } from 'lodash-es';\nimport { Observable } from 'rxjs';\nimport { AXPWorkflowError } from './errors.types';\nimport { AXPWorkflowEventService } from './workflow-event-dispatcher.service';\nimport { AXPWorkflowRegistryService } from './workflow-registery.service';\nimport {\n AXPWorkflow,\n AXPWorkflowAction,\n AXPWorkflowCondition,\n AXPWorkflowContext,\n AXPWorkflowEvent,\n AXPWorkflowFunction,\n AXPWorkflowNextStep,\n AXPWorkflowStep,\n} from './workflow.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPWorkflowService {\n private eventService = inject(AXPWorkflowEventService);\n\n get events$(): Observable<AXPWorkflowEvent> {\n return this.eventService.events$;\n }\n\n constructor(private registryService: AXPWorkflowRegistryService, private injector: Injector) {}\n\n async execute(\n workflow: AXPWorkflow | string,\n initialContext: AXPWorkflowContext | any | null = null\n ): Promise<AXPWorkflowContext> {\n // Instantiate or retrieve the workflow\n const wk = typeof workflow === 'string' ? this.getWorkflowInstance(workflow) : workflow;\n\n let currentStepId = wk.startStepId;\n const context =\n initialContext instanceof AXPWorkflowContext ? initialContext : new AXPWorkflowContext(initialContext ?? {});\n // Initialize context with initial variables\n\n while (currentStepId) {\n const currentStep = wk.steps[currentStepId];\n if (!currentStep) {\n throw new AXPWorkflowError(`Step '${currentStepId}' not found in the workflow steps.`);\n }\n\n // Instantiate or retrieve the action\n const action =\n typeof currentStep.action === 'string' ? this.getActionInstance(currentStep.action) : currentStep.action;\n if (currentStep.input) {\n let inputs: any = {};\n await this.processInputs(cloneDeep(currentStep.input), inputs, '', context);\n await new Promise((resolve) =>\n setTimeout(async () => {\n Object.assign(action, inputs);\n resolve(0);\n })\n );\n }\n try {\n await new Promise((resolve) =>\n setTimeout(async () => {\n await action.execute(context);\n resolve(0);\n }, 0)\n );\n } catch (error) {\n console.error(error);\n throw new AXPWorkflowError('Workflow Error', error as Error);\n }\n // Determine the next step based on the conditions\n const nextStepInfo = await this.determineNextStep(currentStep, context);\n if (nextStepInfo) {\n currentStepId = nextStepInfo.nextStepId;\n } else {\n break; // Exit the loop if no next step is determined\n }\n }\n return context;\n }\n\n //TODO : replace with AXDataGenerator\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char) => {\n const random = (Math.random() * 16) | 0;\n const value = char === 'x' ? random : (random & 0x3) | 0x8;\n return value.toString(16);\n });\n }\n\n private getActionInstance(actionName: string): AXPWorkflowAction {\n const actionType = this.registryService.getAction(actionName);\n if (!actionType) {\n throw new AXPWorkflowError(`Action type '${actionName}' not found in the registry.`);\n }\n return this.injector.get(actionType);\n }\n\n private getWorkflowInstance(workflowName: string): AXPWorkflow {\n const workflowType = this.registryService.getWorkflow(workflowName);\n if (!workflowType) {\n throw new AXPWorkflowError(`Workflow type '${workflowName}' not found in the registry.`);\n }\n return workflowType;\n }\n\n private async determineNextStep(\n currentStep: AXPWorkflowStep,\n context: AXPWorkflowContext\n ): Promise<AXPWorkflowNextStep | null> {\n if (!currentStep.nextSteps) {\n return null;\n }\n for (const nextStep of currentStep.nextSteps) {\n if (await this.evaluateCondition(nextStep.conditions, context)) {\n return nextStep;\n }\n }\n return null;\n }\n\n private async evaluateCondition(conditions: AXPWorkflowCondition[], context: AXPWorkflowContext): Promise<boolean> {\n if (!conditions || conditions.length === 0) {\n return true; // If no conditions, the step proceeds\n }\n\n // Map each condition to a promise using evaluateSingleCondition\n const conditionPromises = conditions.map((condition) => this.evaluateSingleCondition(condition, context));\n\n // Wait for all promises to resolve\n const results = await Promise.all(conditionPromises);\n\n // Check if every condition is true\n return results.every((result) => result);\n }\n\n private async evaluateSingleCondition(\n condition: AXPWorkflowCondition,\n context: AXPWorkflowContext\n ): Promise<boolean> {\n switch (condition.type) {\n case 'SINGLE':\n return (!condition.expression ? true : await this.evaluateExpression(condition.expression, context)) as boolean;\n case 'AND':\n // Evaluate all conditions with 'AND' logic\n const andConditions = condition.conditions ?? [];\n const andResults = await Promise.all(andConditions.map((cond) => this.evaluateSingleCondition(cond, context)));\n return andResults.every((result) => result);\n\n case 'OR':\n // Evaluate all conditions with 'OR' logic\n const orConditions = condition.conditions ?? [];\n const orResults = await Promise.all(orConditions.map((cond) => this.evaluateSingleCondition(cond, context)));\n return orResults.some((result) => result);\n\n default:\n throw new AXPWorkflowError(`Unsupported condition type: ${condition.type}`);\n }\n }\n\n private async evaluateExpression(templateExpression: string, context: AXPWorkflowContext): Promise<Boolean> {\n try {\n let expression = '';\n if (typeof templateExpression === 'string' && templateExpression.trim().includes('{{')) {\n const expressionMatch = templateExpression.match(/\\{\\{\\s*(.*?)\\s*\\}\\}/);\n if (!expressionMatch) {\n throw Error(`No valid expression found in \"${templateExpression}\"`);\n }\n expression = expressionMatch[1];\n } else {\n expression = templateExpression;\n }\n // Create a scope that includes context and registered functions\n const scope = { context, ...this.createFunctionScope() };\n // Evaluating the expression within the created scope\n const sandbox = new Function('scope', `return (async function() { with (scope) { return ${expression}; } })();`);\n const result = await sandbox(scope);\n return result;\n } catch (error) {\n console.error('Error evaluating expression:', error);\n return false;\n }\n }\n\n private async processInputs(obj: any, inputs: any, pathPrefix: string = '', context: any = {}): Promise<void> {\n if (!obj) {\n return;\n }\n\n for await (const i of Object.entries(obj)) {\n const key = i[0];\n const value = i[1];\n const currentPath = pathPrefix ? `${pathPrefix}.${key}` : key;\n if (typeof value === 'string' && value.trim().includes('{{')) {\n const expValue = await this.evaluateExpression(value, context);\n set(inputs, currentPath, expValue);\n } else if (\n typeof value === 'object' &&\n value !== null &&\n (value.constructor === Object || Array.isArray(value))\n ) {\n // Recursively handle nested objects\n this.processInputs(value, inputs, currentPath, context);\n } else {\n // Apply static values directly\n set(inputs, currentPath, value);\n }\n }\n }\n\n private createFunctionScope(): any {\n const scope: any = {};\n this.registryService.getFunctionNames().forEach((name) => {\n scope[name] = this.getFunctionInstance(name).execute;\n });\n return scope;\n }\n\n private getFunctionInstance(functionName: string): AXPWorkflowFunction {\n const functionType = this.registryService.getFunction(functionName);\n if (!functionType) {\n throw new AXPWorkflowError(`Function type '${functionName}' not found in the registry.`);\n }\n return this.injector.get(functionType);\n }\n}\n","import { inject, Injectable } from \"@angular/core\";\nimport { AXPWorkflowAction, AXPWorkflowContext } from \"../workflow.types\";\nimport { AXPWorkflowService } from \"../workflow.service\";\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPStartWorkflowAction extends AXPWorkflowAction {\n\n private workflowService = inject(AXPWorkflowService)\n private workflow: string;\n private context: any;\n\n async execute(context: AXPWorkflowContext): Promise<void> {\n //console.log(\"start WK current context\", context);\n //console.log(\"start WK input context\", this.context);\n if (this.context)\n context.setVariables(this.context)\n //console.log(\"start WK merged context\", context);\n try {\n await this.workflowService.execute(this.workflow, context);\n }\n catch (e: unknown) {\n throw e;\n }\n\n }\n}","import { Inject, ModuleWithProviders, NgModule, Optional, Type } from \"@angular/core\";\nimport { AXPWorkflowRegistryService } from \"./workflow-registery.service\";\nimport { AXPWorkflow, AXPWorkflowAction, AXPWorkflowFunction } from \"./workflow.types\";\nimport { AXPStartWorkflowAction } from \"./actions/start-workflow.action\";\n\n\nexport interface AXPWorkflowModuleConfigs {\n functions?: {\n [name: string]: Type<AXPWorkflowFunction>\n },\n actions?: {\n [name: string]: Type<AXPWorkflowAction>\n },\n workflows?: {\n [name: string]: AXPWorkflow\n }\n}\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n})\nexport class AXPWorkflowModule {\n\n static forRoot(config?: AXPWorkflowModuleConfigs): ModuleWithProviders<AXPWorkflowModule> {\n return {\n ngModule: AXPWorkflowModule,\n providers: [\n {\n provide: 'AXPWorkflowModuleFactory',\n useFactory: (registry: AXPWorkflowRegistryService) => () => {\n registry.registerAction(\"start-workflow\", AXPStartWorkflowAction);\n //\n if (config?.functions) {\n for (const [key, type] of Object.entries(config.functions)) {\n registry.registerFunction(key, type);\n }\n }\n //\n if (config?.actions) {\n for (const [key, type] of Object.entries(config.actions)) {\n registry.registerAction(key, type);\n }\n }\n //\n if (config?.workflows) {\n for (const [key, type] of Object.entries(config.workflows)) {\n registry.registerWorkflow(key, type);\n }\n }\n },\n deps: [AXPWorkflowRegistryService],\n multi: true\n },\n ...Object.values(config?.actions ?? { AXPStartWorkflowAction }),\n ...Object.values(config?.functions ?? {}),\n ]\n };\n }\n\n static forChild(config?: AXPWorkflowModuleConfigs): ModuleWithProviders<AXPWorkflowModule> {\n return {\n ngModule: AXPWorkflowModule,\n providers: [\n {\n provide: 'AXPWorkflowModuleFactory',\n useFactory: (registry: AXPWorkflowRegistryService) => () => {\n registry.registerAction(\"start-workflow\", AXPStartWorkflowAction);\n //\n if (config?.functions) {\n for (const [key, type] of Object.entries(config.functions)) {\n registry.registerFunction(key, type);\n }\n }\n //\n if (config?.actions) {\n for (const [key, type] of Object.entries(config.actions)) {\n registry.registerAction(key, type);\n }\n }\n //\n if (config?.workflows) {\n for (const [key, type] of Object.entries(config.workflows)) {\n registry.registerWorkflow(key, type);\n }\n }\n },\n deps: [AXPWorkflowRegistryService],\n multi: true\n },\n ...Object.values(config?.actions ?? {}),\n ...Object.values(config?.functions ?? {})\n ]\n };\n }\n\n /**\n * @ignore\n */\n constructor(@Optional() @Inject('AXPWorkflowModuleFactory') instances: any[]) {\n instances?.forEach(f => {\n f();\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AXPWorkflowRegistryService"],"mappings":";;;;;AAAM,MAAO,gBAAiB,SAAQ,KAAK,CAAA;IACvC,WAAY,CAAA,OAAe,EAAS,KAAA,GAAsB,IAAI,EAAA;QAC1D,KAAK,CAAC,OAAO,CAAC;QADkB,IAAK,CAAA,KAAA,GAAL,KAAK;AAErC,QAAA,IAAI,CAAC,IAAI,GAAG,kBAAkB;;AAErC;;MCEY,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAoB;AASvD;AAPC,IAAA,QAAQ,CAAC,KAAuB,EAAA;AAC9B,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;AAG/B,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;;8GAR9B,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB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A;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACnB,iBAAA;;0BA8EgB;;0BAAY,MAAM;2BAAC,0BAA0B;;;ACpG9D;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-workflow.mjs","sources":["../../../../libs/platform/workflow/src/lib/errors.types.ts","../../../../libs/platform/workflow/src/lib/workflow-event-dispatcher.service.ts","../../../../libs/platform/workflow/src/lib/workflow-registery.service.ts","../../../../libs/platform/workflow/src/lib/workflow.types.ts","../../../../libs/platform/workflow/src/lib/workflow.service.ts","../../../../libs/platform/workflow/src/lib/actions/start-workflow.action.ts","../../../../libs/platform/workflow/src/lib/workflow.module.ts","../../../../libs/platform/workflow/src/acorex-platform-workflow.ts"],"sourcesContent":["export class AXPWorkflowError extends Error {\n constructor(message: string, public inner: Error | null = null) {\n super(message);\n this.name = 'AXPWorkflowError';\n }\n}","import { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { AXPWorkflowEvent } from './workflow.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPWorkflowEventService {\n private eventSubject = new Subject<AXPWorkflowEvent>();\n\n dispatch(event: AXPWorkflowEvent): void {\n this.eventSubject.next(event);\n }\n\n get events$(): Observable<AXPWorkflowEvent> {\n return this.eventSubject.asObservable();\n }\n}\n","import { Injectable, Type } from '@angular/core';\nimport { AXPWorkflow, AXPWorkflowAction, AXPWorkflowFunction } from './workflow.types';\n\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AXPWorkflowRegistryService {\n private functionsMap = new Map<string, Type<AXPWorkflowFunction>>();\n private actionsMap = new Map<string, Type<AXPWorkflowAction>>();\n private workflowsMap = new Map<string, AXPWorkflow>();\n\n registerWorkflow(name: string, workflow: AXPWorkflow): void {\n this.workflowsMap.set(name, workflow);\n }\n\n getWorkflow(name: string): AXPWorkflow | undefined {\n return this.workflowsMap.get(name);\n }\n\n registerAction(name: string, action: Type<AXPWorkflowAction>): void {\n this.actionsMap.set(name, action);\n }\n\n getAction(name: string): Type<AXPWorkflowAction> | undefined {\n return this.actionsMap.get(name);\n }\n\n registerFunction(name: string, func: Type<AXPWorkflowFunction>): void {\n this.functionsMap.set(name, func);\n }\n\n getFunction(name: string): Type<AXPWorkflowFunction> | undefined {\n return this.functionsMap.get(name);\n }\n\n getFunctionNames(): string[] {\n return Array.from(this.functionsMap.keys());\n }\n}","import { Injectable, inject } from '@angular/core';\nimport { filter } from 'rxjs';\nimport { AXPWorkflowEventService } from './workflow-event-dispatcher.service';\nimport { cloneDeep, get, set } from 'lodash-es';\n\nexport interface AXPWorkflow {\n steps: { [stepName: string]: AXPWorkflowStep };\n startStepId: string;\n}\n\n\nexport class AXPWorkflowContext {\n\n constructor(initialData: any = {}) {\n this.variables = cloneDeep(initialData);\n }\n\n private variables: any = {};\n private stepOutputs: Map<string, any> = new Map();\n\n setVariable(key: string, value: any): void {\n set(this.variables, key, value);\n }\n\n\n setVariables(context: any = {}) {\n this.variables = { ...this.variables, ...context };\n }\n\n getVariable<T = any>(key?: string | null): T {\n return !key ? this.variables : get(this.variables, key);\n }\n\n setOutput(key: string, output: any): void {\n this.stepOutputs.set(key, output);\n }\n\n setOutputs(values: Map<string, any>): void {\n this.stepOutputs = new Map([...this.stepOutputs, ...values])\n }\n\n getOutput<T = any>(key: string): T {\n return this.stepOutputs.get(key);\n }\n}\n\nexport type AXPWorkflowActionInput = any;\n\nexport type AXPWorkflowConditionType = 'AND' | 'OR' | 'SINGLE';\n\nexport interface AXPWorkflowCondition {\n type: AXPWorkflowConditionType;\n conditions?: AXPWorkflowCondition[]; // Nested conditions\n expression?: string; // Used if type is 'SINGLE'\n}\n\nexport interface AXPWorkflowNextStep {\n conditions: AXPWorkflowCondition[];\n nextStepId: string;\n}\n\nexport interface AXPWorkflowStep {\n id?: string;\n action: AXPWorkflowAction | string;\n input?: AXPWorkflowActionInput;\n nextSteps?: AXPWorkflowNextStep[];\n conditions?: AXPWorkflowCondition[];\n}\n@Injectable()\nexport abstract class AXPWorkflowAction {\n private eventService = inject(AXPWorkflowEventService);\n\n protected dispatch(event: AXPWorkflowEvent): void {\n this.eventService.dispatch(event);\n }\n\n abstract execute(context: AXPWorkflowContext): Promise<void>;\n}\n\n@Injectable()\nexport abstract class AXPWorkflowFunction {\n abstract execute(...args: any[]): Promise<any> | any;\n}\n\nexport interface AXPWorkflowEvent<T = any> {\n type: string;\n payload?: T;\n}\n\n\n\nexport function createWorkFlowEvent<T>(type: string) {\n const eventCreator = (payload: T) => ({ type, payload });\n eventCreator.type = type;\n return eventCreator;\n}\n\nexport function ofType<T extends { type: string }>(...allowedTypes: Array<{ type: string }>) {\n return filter((event: T) => allowedTypes.some((type) => event.type === type.type));\n}\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { cloneDeep, set } from 'lodash-es';\nimport { Observable } from 'rxjs';\nimport { AXPWorkflowError } from './errors.types';\nimport { AXPWorkflowEventService } from './workflow-event-dispatcher.service';\nimport { AXPWorkflowRegistryService } from './workflow-registery.service';\nimport {\n AXPWorkflow,\n AXPWorkflowAction,\n AXPWorkflowCondition,\n AXPWorkflowContext,\n AXPWorkflowEvent,\n AXPWorkflowFunction,\n AXPWorkflowNextStep,\n AXPWorkflowStep,\n} from './workflow.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPWorkflowService {\n private eventService = inject(AXPWorkflowEventService);\n\n get events$(): Observable<AXPWorkflowEvent> {\n return this.eventService.events$;\n }\n\n constructor(private registryService: AXPWorkflowRegistryService, private injector: Injector) {}\n\n async execute(\n workflow: AXPWorkflow | string,\n initialContext: AXPWorkflowContext | any | null = null\n ): Promise<AXPWorkflowContext> {\n // Instantiate or retrieve the workflow\n const wk = typeof workflow === 'string' ? this.getWorkflowInstance(workflow) : workflow;\n\n let currentStepId = wk.startStepId;\n const context =\n initialContext instanceof AXPWorkflowContext\n ? initialContext\n : new AXPWorkflowContext(this.processData(initialContext) ?? {});\n // Initialize context with initial variables\n\n while (currentStepId) {\n const currentStep = wk.steps[currentStepId];\n if (!currentStep) {\n throw new AXPWorkflowError(`Step '${currentStepId}' not found in the workflow steps.`);\n }\n\n // Instantiate or retrieve the action\n const action =\n typeof currentStep.action === 'string' ? this.getActionInstance(currentStep.action) : currentStep.action;\n if (currentStep.input) {\n let inputs: any = {};\n await this.processInputs(cloneDeep(currentStep.input), inputs, '', context);\n await new Promise((resolve) =>\n setTimeout(async () => {\n Object.assign(action, inputs);\n resolve(0);\n })\n );\n }\n try {\n await new Promise((resolve) =>\n setTimeout(async () => {\n await action.execute(context);\n resolve(0);\n }, 0)\n );\n } catch (error) {\n console.error(error);\n throw new AXPWorkflowError('Workflow Error', error as Error);\n }\n // Determine the next step based on the conditions\n const nextStepInfo = await this.determineNextStep(currentStep, context);\n if (nextStepInfo) {\n currentStepId = nextStepInfo.nextStepId;\n } else {\n break; // Exit the loop if no next step is determined\n }\n }\n return context;\n }\n\n private processData(initialContext: any): any {\n //TODO: update values with expressions and return new object\n return initialContext;\n }\n\n //TODO : replace with AXDataGenerator\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char) => {\n const random = (Math.random() * 16) | 0;\n const value = char === 'x' ? random : (random & 0x3) | 0x8;\n return value.toString(16);\n });\n }\n\n private getActionInstance(actionName: string): AXPWorkflowAction {\n const actionType = this.registryService.getAction(actionName);\n if (!actionType) {\n throw new AXPWorkflowError(`Action type '${actionName}' not found in the registry.`);\n }\n return this.injector.get(actionType);\n }\n\n private getWorkflowInstance(workflowName: string): AXPWorkflow {\n const workflowType = this.registryService.getWorkflow(workflowName);\n if (!workflowType) {\n throw new AXPWorkflowError(`Workflow type '${workflowName}' not found in the registry.`);\n }\n return workflowType;\n }\n\n private async determineNextStep(\n currentStep: AXPWorkflowStep,\n context: AXPWorkflowContext\n ): Promise<AXPWorkflowNextStep | null> {\n if (!currentStep.nextSteps) {\n return null;\n }\n for (const nextStep of currentStep.nextSteps) {\n if (await this.evaluateCondition(nextStep.conditions, context)) {\n return nextStep;\n }\n }\n return null;\n }\n\n private async evaluateCondition(conditions: AXPWorkflowCondition[], context: AXPWorkflowContext): Promise<boolean> {\n if (!conditions || conditions.length === 0) {\n return true; // If no conditions, the step proceeds\n }\n\n // Map each condition to a promise using evaluateSingleCondition\n const conditionPromises = conditions.map((condition) => this.evaluateSingleCondition(condition, context));\n\n // Wait for all promises to resolve\n const results = await Promise.all(conditionPromises);\n\n // Check if every condition is true\n return results.every((result) => result);\n }\n\n private async evaluateSingleCondition(\n condition: AXPWorkflowCondition,\n context: AXPWorkflowContext\n ): Promise<boolean> {\n switch (condition.type) {\n case 'SINGLE':\n return (!condition.expression ? true : await this.evaluateExpression(condition.expression, context)) as boolean;\n case 'AND':\n // Evaluate all conditions with 'AND' logic\n const andConditions = condition.conditions ?? [];\n const andResults = await Promise.all(andConditions.map((cond) => this.evaluateSingleCondition(cond, context)));\n return andResults.every((result) => result);\n\n case 'OR':\n // Evaluate all conditions with 'OR' logic\n const orConditions = condition.conditions ?? [];\n const orResults = await Promise.all(orConditions.map((cond) => this.evaluateSingleCondition(cond, context)));\n return orResults.some((result) => result);\n\n default:\n throw new AXPWorkflowError(`Unsupported condition type: ${condition.type}`);\n }\n }\n\n //TODO: return any and recursively update object, update scopes\n private async evaluateExpression(templateExpression: string, context: AXPWorkflowContext): Promise<Boolean> {\n try {\n let expression = '';\n if (typeof templateExpression === 'string' && templateExpression.trim().includes('{{')) {\n const expressionMatch = templateExpression.match(/\\{\\{\\s*(.*?)\\s*\\}\\}/);\n if (!expressionMatch) {\n throw Error(`No valid expression found in \"${templateExpression}\"`);\n }\n expression = expressionMatch[1];\n } else {\n expression = templateExpression;\n }\n // Create a scope that includes context and registered functions\n const scope = { context, ...this.createFunctionScope() };\n // Evaluating the expression within the created scope\n const sandbox = new Function('scope', `return (async function() { with (scope) { return ${expression}; } })();`);\n const result = await sandbox(scope);\n return result;\n } catch (error) {\n console.error('Error evaluating expression:', error);\n return false;\n }\n }\n\n private async processInputs(obj: any, inputs: any, pathPrefix: string = '', context: any = {}): Promise<void> {\n if (!obj) {\n return;\n }\n\n for await (const i of Object.entries(obj)) {\n const key = i[0];\n const value = i[1];\n const currentPath = pathPrefix ? `${pathPrefix}.${key}` : key;\n if (typeof value === 'string' && value.trim().includes('{{')) {\n const expValue = await this.evaluateExpression(value, context);\n set(inputs, currentPath, expValue);\n } else if (\n typeof value === 'object' &&\n value !== null &&\n (value.constructor === Object || Array.isArray(value))\n ) {\n // Recursively handle nested objects\n this.processInputs(value, inputs, currentPath, context);\n } else {\n // Apply static values directly\n set(inputs, currentPath, value);\n }\n }\n }\n\n private createFunctionScope(): any {\n const scope: any = {};\n this.registryService.getFunctionNames().forEach((name) => {\n scope[name] = this.getFunctionInstance(name).execute;\n });\n return { methods: { scope } };\n }\n\n private getFunctionInstance(functionName: string): AXPWorkflowFunction {\n const functionType = this.registryService.getFunction(functionName);\n if (!functionType) {\n throw new AXPWorkflowError(`Function type '${functionName}' not found in the registry.`);\n }\n return this.injector.get(functionType);\n }\n}\n","import { inject, Injectable } from \"@angular/core\";\nimport { AXPWorkflowAction, AXPWorkflowContext } from \"../workflow.types\";\nimport { AXPWorkflowService } from \"../workflow.service\";\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPStartWorkflowAction extends AXPWorkflowAction {\n\n private workflowService = inject(AXPWorkflowService)\n private workflow: string;\n private context: any;\n\n async execute(context: AXPWorkflowContext): Promise<void> {\n //console.log(\"start WK current context\", context);\n //console.log(\"start WK input context\", this.context);\n if (this.context)\n context.setVariables(this.context)\n //console.log(\"start WK merged context\", context);\n try {\n await this.workflowService.execute(this.workflow, context);\n }\n catch (e: unknown) {\n throw e;\n }\n\n }\n}","import { Inject, ModuleWithProviders, NgModule, Optional, Type } from \"@angular/core\";\nimport { AXPWorkflowRegistryService } from \"./workflow-registery.service\";\nimport { AXPWorkflow, AXPWorkflowAction, AXPWorkflowFunction } from \"./workflow.types\";\nimport { AXPStartWorkflowAction } from \"./actions/start-workflow.action\";\n\n\nexport interface AXPWorkflowModuleConfigs {\n functions?: {\n [name: string]: Type<AXPWorkflowFunction>\n },\n actions?: {\n [name: string]: Type<AXPWorkflowAction>\n },\n workflows?: {\n [name: string]: AXPWorkflow\n }\n}\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n})\nexport class AXPWorkflowModule {\n\n static forRoot(config?: AXPWorkflowModuleConfigs): ModuleWithProviders<AXPWorkflowModule> {\n return {\n ngModule: AXPWorkflowModule,\n providers: [\n {\n provide: 'AXPWorkflowModuleFactory',\n useFactory: (registry: AXPWorkflowRegistryService) => () => {\n registry.registerAction(\"start-workflow\", AXPStartWorkflowAction);\n //\n if (config?.functions) {\n for (const [key, type] of Object.entries(config.functions)) {\n registry.registerFunction(key, type);\n }\n }\n //\n if (config?.actions) {\n for (const [key, type] of Object.entries(config.actions)) {\n registry.registerAction(key, type);\n }\n }\n //\n if (config?.workflows) {\n for (const [key, type] of Object.entries(config.workflows)) {\n registry.registerWorkflow(key, type);\n }\n }\n },\n deps: [AXPWorkflowRegistryService],\n multi: true\n },\n ...Object.values(config?.actions ?? { AXPStartWorkflowAction }),\n ...Object.values(config?.functions ?? {}),\n ]\n };\n }\n\n static forChild(config?: AXPWorkflowModuleConfigs): ModuleWithProviders<AXPWorkflowModule> {\n return {\n ngModule: AXPWorkflowModule,\n providers: [\n {\n provide: 'AXPWorkflowModuleFactory',\n useFactory: (registry: AXPWorkflowRegistryService) => () => {\n registry.registerAction(\"start-workflow\", AXPStartWorkflowAction);\n //\n if (config?.functions) {\n for (const [key, type] of Object.entries(config.functions)) {\n registry.registerFunction(key, type);\n }\n }\n //\n if (config?.actions) {\n for (const [key, type] of Object.entries(config.actions)) {\n registry.registerAction(key, type);\n }\n }\n //\n if (config?.workflows) {\n for (const [key, type] of Object.entries(config.workflows)) {\n registry.registerWorkflow(key, type);\n }\n }\n },\n deps: [AXPWorkflowRegistryService],\n multi: true\n },\n ...Object.values(config?.actions ?? {}),\n ...Object.values(config?.functions ?? {})\n ]\n };\n }\n\n /**\n * @ignore\n */\n constructor(@Optional() @Inject('AXPWorkflowModuleFactory') instances: any[]) {\n instances?.forEach(f => {\n f();\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AXPWorkflowRegistryService"],"mappings":";;;;;AAAM,MAAO,gBAAiB,SAAQ,KAAK,CAAA;IACvC,WAAY,CAAA,OAAe,EAAS,KAAA,GAAsB,IAAI,EAAA;QAC1D,KAAK,CAAC,OAAO,CAAC;QADkB,IAAK,CAAA,KAAA,GAAL,KAAK;AAErC,QAAA,IAAI,CAAC,IAAI,GAAG,kBAAkB;;AAErC;;MCEY,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAoB;AASvD;AAPC,IAAA,QAAQ,CAAC,KAAuB,EAAA;AAC9B,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;AAG/B,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;;8GAR9B,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAA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EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GA7EjD,iBAAiB,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACnB,iBAAA;;0BA8EgB;;0BAAY,MAAM;2BAAC,0BAA0B;;;ACpG9D;;AAEG;;;;"}
@@ -26,6 +26,7 @@ export interface AXPWidgetTypesMap {
26
26
  document: 'document-layout';
27
27
  lookup: 'lookup-editor';
28
28
  formField: 'form-field';
29
+ advancedGrid: 'advanced-grid-layout';
29
30
  grid: 'grid-layout';
30
31
  gridRow: 'grid-row-layout';
31
32
  gridItem: 'grid-item-layout';
@@ -1,9 +1,9 @@
1
1
  import { AXBasePageComponent } from '@acorex/components/page';
2
- import { AXPClipBoardService, AXPSettingValueProviderService } from '@acorex/platform/common';
2
+ import { AXPClipBoardService, AXPSettingService } from '@acorex/platform/common';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AXPLayoutDesignerPreviewComponent extends AXBasePageComponent {
5
5
  protected clipboard: AXPClipBoardService;
6
- protected settings: AXPSettingValueProviderService;
6
+ protected settings: AXPSettingService;
7
7
  protected initialSize: string;
8
8
  protected isDialogWindow: boolean;
9
9
  private jsonSettingsKey;
@@ -1,9 +1,9 @@
1
- import { Injector } from "@angular/core";
2
- import { ResolveFn } from "@angular/router";
3
- import { AXPEntityCommandTriggerViewModel } from "./entity.viewmodel";
4
- import { AXPWidgetNode } from "@acorex/platform/layout/builder";
5
- import { AXPEntityDetailListViewModel } from "./entity-detail-list.viewmodel";
6
- import { AXPBeardCrumb, AXPEntity, AXPEntityPropertyView, AXPEntitySectionView, AXPGridLayoutOptions } from "@acorex/platform/common";
1
+ import { AXPBeardCrumb, AXPEntity, AXPEntityPropertyView, AXPEntitySectionView, AXPGridLayoutOptions } from '@acorex/platform/common';
2
+ import { AXPWidgetNode } from '@acorex/platform/layout/builder';
3
+ import { Injector } from '@angular/core';
4
+ import { ResolveFn } from '@angular/router';
5
+ import { AXPEntityDetailListViewModel } from './entity-detail-list.viewmodel';
6
+ import { AXPEntityCommandTriggerViewModel } from './entity.viewmodel';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class AXPEntityMasterSingleViewGroupViewModel {
9
9
  private entity;
@@ -0,0 +1,4 @@
1
+ import { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex/platform/common';
2
+ export declare class AXPEntityCommandSearchDefinitionProvider implements AXPSearchDefinitionProvider {
3
+ provide(context: AXPSearchDefinitionProviderContext): Promise<void>;
4
+ }
@@ -6,8 +6,8 @@ import { AXPQueryFilter } from '@acorex/platform/common';
6
6
  import { AXPValidationRules } from '@acorex/platform/core';
7
7
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
8
8
  import { Injector } from '@angular/core';
9
- import { AXPLookupWidgetSelectorViewModel } from './lookup-widget-selector.viewmodel';
10
9
  import { AXPEntityResolver } from '../../entity.config';
10
+ import { AXPLookupWidgetSelectorViewModel } from './lookup-widget-selector.viewmodel';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class AXPLookupWidgetEditComponent extends AXPWidgetComponent<any> {
13
13
  protected readonly injector: Injector;
@@ -1,7 +1,9 @@
1
1
  import { AXPSearchDisplayGroupResult, AXPSearchDisplayResult } from "@acorex/platform/common";
2
2
  import { Subject } from "rxjs";
3
3
  export declare class AXPGlobalSearchViewModel {
4
+ private settingKeys;
4
5
  private searchService;
6
+ private settingService;
5
7
  private _text;
6
8
  text: import("@angular/core").Signal<string | null>;
7
9
  private _results;
@@ -11,7 +13,21 @@ export declare class AXPGlobalSearchViewModel {
11
13
  isEmpty: import("@angular/core").Signal<boolean | "" | null>;
12
14
  isValid: import("@angular/core").Signal<boolean>;
13
15
  isStart: import("@angular/core").Signal<boolean>;
14
- readonly onItemClick: Subject<AXPSearchDisplayResult>;
16
+ isWelcome: import("@angular/core").Signal<boolean>;
17
+ private recentSelections;
18
+ private _pinnedItems;
19
+ pinnedItems: import("@angular/core").Signal<AXPSearchDisplayResult[]>;
20
+ recentItems: import("@angular/core").Signal<AXPSearchDisplayResult[]>;
21
+ readonly onItemSelected: Subject<AXPSearchDisplayResult>;
22
+ constructor();
15
23
  search(text: string): Promise<void>;
16
24
  execute(item: AXPSearchDisplayResult): Promise<void>;
25
+ pin(item: AXPSearchDisplayResult): Promise<void>;
26
+ unpin(item: AXPSearchDisplayResult): Promise<void>;
27
+ togglePin(item: AXPSearchDisplayResult): Promise<void>;
28
+ isPinned(item: AXPSearchDisplayResult): boolean;
29
+ private updateSelectionHistory;
30
+ private getTopRecentItems;
31
+ private loadSettings;
32
+ private saveSettings;
17
33
  }
@@ -1 +1,2 @@
1
1
  export * from './lib/setting.viewmodel';
2
+ export * from './lib/settings.module';
@@ -1,4 +1,4 @@
1
- import { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '../search';
1
+ import { AXPSearchDefinitionProvider, AXPSearchDefinitionProviderContext } from '@acorex/platform/common';
2
2
  export declare class AXPSettingSearchDefinitionProvider implements AXPSearchDefinitionProvider {
3
3
  provide(context: AXPSearchDefinitionProviderContext): Promise<void>;
4
4
  }
@@ -0,0 +1,9 @@
1
+ import { AXPSearchProvider, AXPSearchResult, AXPSettingDefinition, AXPSettingDefinitionGroup } from '@acorex/platform/common';
2
+ export interface AXPSettingDefinitionSearch extends AXPSettingDefinition {
3
+ group: AXPSettingDefinitionGroup;
4
+ }
5
+ export declare class AXPSettingSearchProvider implements AXPSearchProvider {
6
+ private settingService;
7
+ private sessionService;
8
+ search(text: string): Promise<AXPSearchResult[]>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { AXPAppStartUpService } from '@acorex/platform/common';
2
+ import { Injector } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXPSettingsModule {
5
+ constructor(appInitService: AXPAppStartUpService, injector: Injector);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingsModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPSettingsModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXPSettingsModule>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/platform",
3
- "version": "19.1.8",
3
+ "version": "19.1.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -65,26 +65,26 @@
65
65
  "types": "./layout/builder/index.d.ts",
66
66
  "default": "./fesm2022/acorex-platform-layout-builder.mjs"
67
67
  },
68
- "./layout/entity": {
69
- "types": "./layout/entity/index.d.ts",
70
- "default": "./fesm2022/acorex-platform-layout-entity.mjs"
71
- },
72
68
  "./layout/designer": {
73
69
  "types": "./layout/designer/index.d.ts",
74
70
  "default": "./fesm2022/acorex-platform-layout-designer.mjs"
75
71
  },
72
+ "./layout/entity": {
73
+ "types": "./layout/entity/index.d.ts",
74
+ "default": "./fesm2022/acorex-platform-layout-entity.mjs"
75
+ },
76
76
  "./layout/filters": {
77
77
  "types": "./layout/filters/index.d.ts",
78
78
  "default": "./fesm2022/acorex-platform-layout-filters.mjs"
79
79
  },
80
- "./layout/setting": {
81
- "types": "./layout/setting/index.d.ts",
82
- "default": "./fesm2022/acorex-platform-layout-setting.mjs"
83
- },
84
80
  "./layout/search": {
85
81
  "types": "./layout/search/index.d.ts",
86
82
  "default": "./fesm2022/acorex-platform-layout-search.mjs"
87
83
  },
84
+ "./layout/setting": {
85
+ "types": "./layout/setting/index.d.ts",
86
+ "default": "./fesm2022/acorex-platform-layout-setting.mjs"
87
+ },
88
88
  "./themes/default": {
89
89
  "types": "./themes/default/index.d.ts",
90
90
  "default": "./fesm2022/acorex-platform-themes-default.mjs"
@@ -1,11 +1,11 @@
1
1
  import { AXValueChangedEvent } from '@acorex/components/common';
2
- import { AXPSettingValueProviderService } from '@acorex/platform/common';
2
+ import { AXPSettingService } from '@acorex/platform/common';
3
3
  import { AXPEntityMasterListViewModel } from '@acorex/platform/layout/entity';
4
4
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
5
5
  import { EventEmitter } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class AXPListViewOptionsColumnsComponent {
8
- protected settings: AXPSettingValueProviderService;
8
+ protected settings: AXPSettingService;
9
9
  vm: AXPEntityMasterListViewModel;
10
10
  onClosed: EventEmitter<void>;
11
11
  columnsChanged: import("@angular/core").EffectRef;
@@ -1,13 +1,20 @@
1
1
  import { AXHtmlEvent, AXValueChangedEvent } from '@acorex/components/common';
2
2
  import { AXBasePageComponent } from '@acorex/components/page';
3
3
  import { AXPGlobalSearchViewModel } from '@acorex/platform/layout/search';
4
+ import { AXPSearchDisplayResult } from '@acorex/platform/common';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AXPGlobalSearchPopupComponent extends AXBasePageComponent {
6
7
  protected vm: AXPGlobalSearchViewModel;
7
8
  protected text: string | null;
9
+ private list;
10
+ private searchBox;
11
+ private items;
8
12
  handleTextChanged(e: AXValueChangedEvent<string>): Promise<void>;
9
13
  protected ngOnInit(): void;
10
14
  protected handleSearchKeyDown(e: AXHtmlEvent<KeyboardEvent>): void;
15
+ protected handleListKeyDown(e: KeyboardEvent): void;
16
+ protected handleItemKeyDown(e: KeyboardEvent, item: AXPSearchDisplayResult): void;
17
+ protected handlePinClick(e: Event, item: any): void;
11
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalSearchPopupComponent, never>;
12
19
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPGlobalSearchPopupComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
20
  }
@@ -1,13 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class AXPThemeLayoutListComponent {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPThemeLayoutListComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListComponent, "axp-layout-list", never, {}, {}, never, ["axp-layout-list-item,axp-layout-list-group"], true, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListComponent, "axp-layout-list", never, {}, {}, never, ["axp-layout-list-item,axp-layout-list-group,ng-container"], true, never>;
5
5
  }
6
6
  export declare class AXPThemeLayoutListItemsGroupComponent {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPThemeLayoutListItemsGroupComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListItemsGroupComponent, "axp-layout-list-group", never, {}, {}, never, ["axp-layout-list-item,axp-layout-title"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListItemsGroupComponent, "axp-layout-list-group", never, {}, {}, never, ["axp-layout-list-item,axp-layout-title,ng-container"], true, never>;
9
9
  }
10
10
  export declare class AXPThemeLayoutListItemComponent {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPThemeLayoutListItemComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListItemComponent, "axp-layout-list-item", never, {}, {}, never, ["axp-layout-content,axp-layout-prefix,axp-layout-suffix"], true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPThemeLayoutListItemComponent, "axp-layout-list-item", never, {}, {}, never, ["axp-layout-content,axp-layout-prefix,axp-layout-suffix,ng-container"], true, never>;
13
13
  }
@@ -18,6 +18,7 @@ export * from './advance/file';
18
18
  export * from './advance/gallery';
19
19
  export * from './advance/map';
20
20
  export * from './advance/signature';
21
+ export * from './layout/advanced-grid';
21
22
  export * from './layout/block';
22
23
  export * from './layout/page';
23
24
  export * from './layout/repeater';
@@ -0,0 +1,29 @@
1
+ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXPAdvancedGridWidgetDesignerComponent extends AXPWidgetComponent<void> {
4
+ #private;
5
+ private el;
6
+ private designerService;
7
+ private container;
8
+ protected widgetOption: import("@angular/core").Signal<{
9
+ h: number;
10
+ w: number;
11
+ content: string;
12
+ }>;
13
+ protected cols: import("@angular/core").Signal<number>;
14
+ protected rows: import("@angular/core").Signal<number>;
15
+ protected align: import("@angular/core").Signal<"start" | "end" | "center" | "stretch">;
16
+ protected justify: import("@angular/core").Signal<"start" | "end" | "center" | "stretch">;
17
+ protected gap: import("@angular/core").Signal<string>;
18
+ protected cells: import("@angular/core").Signal<number>;
19
+ protected settled: import("@angular/core").Signal<number | false>;
20
+ protected handleDrawerSelect(e: {
21
+ rows: number;
22
+ cols: number;
23
+ }): void;
24
+ calcTotalCells(rows: string, cols: string): number;
25
+ calcGridRowOrColumn(value: string): number;
26
+ private get __class();
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPAdvancedGridWidgetDesignerComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPAdvancedGridWidgetDesignerComponent, "axp-advanced-grid-layout-widget", never, {}, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,9 @@
1
+ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXPAdvancedGridWidgetViewComponent extends AXPWidgetComponent<any> {
4
+ protected cols: import("@angular/core").Signal<number>;
5
+ protected rows: import("@angular/core").Signal<number>;
6
+ protected gap: import("@angular/core").Signal<number>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPAdvancedGridWidgetViewComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPAdvancedGridWidgetViewComponent, "axp-advanced-grid-layout-widget", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
2
+ export declare const AXPAdvancedGridWidget: AXPWidgetConfig;
3
+ declare module '@acorex/platform/layout/builder' {
4
+ interface AXPWidgetTypesMap {
5
+ advancedGrid: 'advanced-grid-layout';
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './advanced-grid-widget-designer.component';
2
+ export * from './advanced-grid-widget-view.component';
3
+ export * from './advanced-grid-widget.config';
@@ -1,18 +1,21 @@
1
1
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
- import { AXPGridBoxValues } from '../../property-editors/grid-options';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class AXPGridWidgetDesignerComponent extends AXPWidgetComponent<void> {
4
+ #private;
5
5
  private designerService;
6
- protected data: import("@angular/core").Signal<AXPGridBoxValues>;
7
6
  protected cols: import("@angular/core").Signal<number>;
8
7
  protected rows: import("@angular/core").Signal<number>;
8
+ protected align: import("@angular/core").Signal<"start" | "end" | "center" | "stretch">;
9
+ protected justify: import("@angular/core").Signal<"start" | "end" | "center" | "stretch">;
9
10
  protected gap: import("@angular/core").Signal<string>;
10
- protected cells: import("@angular/core").Signal<number[]>;
11
+ protected cells: import("@angular/core").Signal<number>;
11
12
  protected settled: import("@angular/core").Signal<number | false>;
12
13
  protected handleDrawerSelect(e: {
13
14
  rows: number;
14
15
  cols: number;
15
16
  }): void;
17
+ calcTotalCells(rows: string, cols: string): number;
18
+ calcGridRowOrColumn(value: string): number;
16
19
  private get __class();
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPGridWidgetDesignerComponent, never>;
18
21
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPGridWidgetDesignerComponent, "axp-grid-layout-widget", never, {}, {}, never, never, true, never>;
@@ -6,21 +6,21 @@ export declare class AXPFlexOptionsWidgetEditComponent extends AXPWidgetComponen
6
6
  #private;
7
7
  private rendered;
8
8
  protected flexSides: AXPFlexBoxAlignmentOption[];
9
- protected flexDirection: import("@angular/core").WritableSignal<"row" | "row-reverse" | "column" | "column-reverse">;
9
+ protected flexDirection: import("@angular/core").WritableSignal<"row" | "column" | "row-reverse" | "column-reverse">;
10
10
  protected flexWrap: import("@angular/core").WritableSignal<"nowrap" | "wrap" | "wrap-reverse">;
11
11
  protected flexDirectionIsColumn: import("@angular/core").Signal<boolean>;
12
12
  protected flexDirectionIsReverse: import("@angular/core").Signal<boolean>;
13
13
  protected flexDirectionWithoutReverse: import("@angular/core").Signal<string>;
14
14
  protected gapMode: import("@angular/core").WritableSignal<"single" | "both">;
15
- protected gapUnit: import("@angular/core").WritableSignal<Record<"x" | "y" | "both", string>>;
15
+ protected gapUnit: import("@angular/core").WritableSignal<string>;
16
16
  protected gap: import("@angular/core").WritableSignal<Record<"x" | "y" | "both", number>>;
17
17
  protected lastGap: import("@angular/core").WritableSignal<number>;
18
18
  protected selectedJustify: import("@angular/core").WritableSignal<AXPFlexBoxOption>;
19
19
  protected selectedAlign: import("@angular/core").WritableSignal<AXPFlexBoxOption>;
20
- protected hoveredAlign: import("@angular/core").WritableSignal<"flex-start" | "flex-end" | "center" | "stretch" | "baseline" | null>;
21
- protected hoveredJustify: import("@angular/core").WritableSignal<"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | null>;
22
- protected clickedAlign: import("@angular/core").WritableSignal<"flex-start" | "flex-end" | "center" | "stretch" | "baseline">;
23
- protected clickedJustify: import("@angular/core").WritableSignal<"flex-start" | "flex-end" | "center" | "space-between" | "space-around">;
20
+ protected hoveredAlign: import("@angular/core").WritableSignal<"center" | "stretch" | "flex-start" | "flex-end" | "baseline" | null>;
21
+ protected hoveredJustify: import("@angular/core").WritableSignal<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | null>;
22
+ protected clickedAlign: import("@angular/core").WritableSignal<"center" | "stretch" | "flex-start" | "flex-end" | "baseline">;
23
+ protected clickedJustify: import("@angular/core").WritableSignal<"center" | "flex-start" | "flex-end" | "space-between" | "space-around">;
24
24
  protected setWrapMode(type: AXPFlexBoxValues['flexWrap']): void;
25
25
  protected setGapMode(): void;
26
26
  protected setFlexDirection(type: AXPFlexBoxValues['flexDirection']): void;