@acorex/platform 21.0.0-next.7 → 21.0.0-next.8

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 (25) hide show
  1. package/auth/index.d.ts +228 -3
  2. package/fesm2022/acorex-platform-auth.mjs +162 -2
  3. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  4. package/fesm2022/acorex-platform-common.mjs +1 -1
  5. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-layout-components.mjs +7 -7
  7. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-layout-entity.mjs +54 -23
  9. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-layout-widgets.mjs +213 -80
  11. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  12. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DfJEx_bs.mjs → acorex-platform-themes-default-entity-master-list-view.component-D3qZa5fM.mjs} +3 -3
  13. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DfJEx_bs.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-D3qZa5fM.mjs.map} +1 -1
  14. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  15. package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-Dz0cylyQ.mjs} +8 -8
  16. package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-Dz0cylyQ.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-themes-shared.mjs +1 -1
  18. package/fesm2022/acorex-platform-workflow.mjs +27 -21
  19. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  20. package/layout/components/index.d.ts +4 -3
  21. package/layout/entity/index.d.ts +7 -0
  22. package/layout/widgets/index.d.ts +12 -7
  23. package/package.json +5 -5
  24. package/workflow/index.d.ts +117 -469
  25. package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map +0 -1
@@ -2,9 +2,9 @@ import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Type, ModuleWithProviders, Injector, InjectionToken } from '@angular/core';
5
- import { AXPCommand, AXPExecuteCommandResultPromise } from '@acorex/platform/runtime';
6
- import { AXPCategoryEntity, AXPValidationRules } from '@acorex/platform/core';
5
+ import { AXPValidationRules, AXPCategoryEntity } from '@acorex/platform/core';
7
6
  import { AXPWidgetTypesMap } from '@acorex/platform/layout/widget-core';
7
+ import { AXPCommand, AXPExecuteCommandResultPromise } from '@acorex/platform/runtime';
8
8
 
9
9
  declare class AXPWorkflowError extends Error {
10
10
  inner: Error | null;
@@ -147,468 +147,149 @@ declare class AXPWorkflowService {
147
147
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowService>;
148
148
  }
149
149
 
150
- /**
151
- * Base entity with versioning support.
152
- */
153
- interface AXPVersionedEntity {
154
- version: number;
155
- isLatest: boolean;
156
- isPublished: boolean;
157
- }
158
- /**
159
- * Workflow definition stored in database.
160
- * This is the stored format that matches Elsa backend structure.
161
- */
162
- interface AXPStoredWorkflowDefinition extends AXPVersionedEntity {
163
- /**
164
- * Unique ID of this workflow definition version.
165
- */
166
- id: string;
167
- /**
168
- * Unique workflow name (same across all versions).
169
- * This is the primary identifier (replaces definitionId).
170
- */
150
+ interface AXPWorkflowDefinition {
151
+ schemaVersion: "acorex-platform-workflow/v1";
171
152
  name: string;
172
- /**
173
- * Tenant ID (nullable).
174
- */
175
- tenantId?: string | null;
176
- /**
177
- * Description of what the workflow does.
178
- */
153
+ title?: string | null;
179
154
  description?: string | null;
180
- /**
181
- * Creation timestamp (ISO date-time).
182
- */
183
- createdAt: string;
184
- /**
185
- * Version of the tool that produced this definition (e.g. "3.2.0.0").
186
- */
187
- toolVersion?: string | null;
188
- /**
189
- * Materializer name for deserialization.
190
- */
191
- materializerName?: string;
192
- /**
193
- * JSON data (for simple workflows).
194
- */
195
- stringData?: string;
196
- /**
197
- * Binary data (for complex workflows).
198
- */
199
- binaryData?: Uint8Array;
155
+ variables?: AXPVariableDefinition[];
156
+ inputs?: AXPWorkflowInputDescriptor[];
157
+ outputs?: AXPWorkflowOutputDescriptor[];
158
+ graph: AXPWorkflowGraph;
159
+ customProperties?: Record<string, any>;
160
+ /** engine specific (Elsa, ...) */
161
+ extensions?: AXPWorkflowExtensions;
162
+ }
163
+ interface AXPWorkflowGraph {
164
+ startActivityId: string;
165
+ activities: AXPWorkflowActivityInstance[];
166
+ connections: AXPConnection[];
167
+ /** purely designer */
168
+ designer?: {
169
+ nodes?: Record<string, {
170
+ x: number;
171
+ y: number;
172
+ nodeId?: string;
173
+ }>;
174
+ edges?: Array<{
175
+ from: string;
176
+ to: string;
177
+ vertices?: Array<{
178
+ x: number;
179
+ y: number;
180
+ }>;
181
+ }>;
182
+ };
200
183
  }
201
- /**
202
- * Variable definition.
203
- * Matches VariableDefinition from workflow definition schema.
204
- */
205
- interface AXPVariableDefinition {
206
- /**
207
- * Variable ID.
208
- */
209
- id?: string;
210
- /**
211
- * Variable name.
212
- */
184
+ interface AXPWorkflowActivityInstance {
185
+ id: string;
186
+ nodeId?: string;
213
187
  name: string;
214
- /**
215
- * Type name (e.g., "String", "Int32", "Boolean").
216
- */
217
- typeName: string;
218
- /**
219
- * Whether this is an array type.
220
- */
221
- isArray?: boolean;
222
- /**
223
- * Variable value (as string expression or literal).
224
- */
225
- value?: string | null;
226
- /**
227
- * Storage driver type name (for custom storage).
228
- */
229
- storageDriverTypeName?: string | null;
188
+ title?: string | null;
189
+ executionMode?: "frontend" | "backend" | "both";
190
+ inputs?: Record<string, any>;
191
+ metadata?: Record<string, any>;
192
+ customProperties?: Record<string, any>;
193
+ /** engine-specific override */
194
+ extensions?: Record<string, any>;
230
195
  }
231
- /**
232
- * Workflow input definition.
233
- * Matches WorkflowInputDefinition from workflow definition schema.
234
- */
235
- interface AXPWorkflowInputDefinition {
236
- /**
237
- * Input type (e.g., "String", "Int32", "Object").
238
- */
239
- type: string;
240
- /**
241
- * Input name.
242
- */
243
- name: string;
244
- /**
245
- * Display name.
246
- */
247
- displayName?: string;
248
- /**
249
- * Description.
250
- */
251
- description?: string;
252
- /**
253
- * Category for grouping.
254
- */
255
- category?: string;
256
- /**
257
- * UI hint (widget type).
258
- */
259
- uiHint?: string;
260
- /**
261
- * Storage driver type (for custom storage).
262
- */
263
- storageDriverType?: string | null;
196
+ interface AXPConnection {
197
+ source: {
198
+ activtyName: string;
199
+ port?: string | null;
200
+ };
201
+ target: {
202
+ activtyName: string;
203
+ port?: string | null;
204
+ };
205
+ vertices?: Array<{
206
+ x: number;
207
+ y: number;
208
+ }>;
264
209
  }
265
- /**
266
- * Workflow output definition.
267
- * Matches WorkflowOutputDefinition from workflow definition schema.
268
- */
269
- interface AXPWorkflowOutputDefinition {
270
- /**
271
- * Output type (e.g., "String", "Int32", "Object").
272
- */
273
- type: string;
274
- /**
275
- * Output name.
276
- */
210
+ interface AXPVariableDefinition {
277
211
  name: string;
278
- /**
279
- * Display name.
280
- */
281
- displayName?: string;
282
- /**
283
- * Description.
284
- */
285
- description?: string;
286
- /**
287
- * Category for grouping.
288
- */
289
- category?: string;
290
- }
291
- /**
292
- * Expression.
293
- * Used for dynamic values in activities.
294
- */
295
- interface AXPExpression {
296
- /**
297
- * Expression type (e.g., "Literal", "JavaScript", "Liquid").
298
- */
299
212
  type: string;
300
- /**
301
- * Expression value.
302
- */
213
+ isArray?: boolean;
303
214
  value?: any;
215
+ storageDriverType?: string | null;
304
216
  }
305
- /**
306
- * Input value wrapper.
307
- * Wraps an expression with type information.
308
- */
309
- interface AXPInputValue {
310
- /**
311
- * Type name.
312
- */
313
- typeName: string;
314
- /**
315
- * Expression (or null).
316
- */
317
- expression?: AXPExpression | null;
318
- }
319
- /**
320
- * Output value wrapper.
321
- * References memory location.
322
- */
323
- interface AXPOutputValue {
324
- /**
325
- * Type name.
326
- */
327
- typeName: string;
328
- /**
329
- * Memory reference (or null).
330
- */
331
- memoryReference?: {
332
- id: string;
333
- } | null;
334
- }
335
- /**
336
- * Position (for visual layout).
337
- */
338
- interface AXPPosition {
339
- x: number;
340
- y: number;
341
- }
342
- /**
343
- * Endpoint (connection point).
344
- */
345
- interface AXPEndpoint {
346
- /**
347
- * Activity ID.
348
- */
349
- activity: string;
350
- /**
351
- * Port name (nullable).
352
- */
353
- port?: string | null;
354
- }
355
- /**
356
- * Connection between activities.
357
- */
358
- interface AXPConnection {
359
- /**
360
- * Source endpoint.
361
- */
362
- source: AXPEndpoint;
363
- /**
364
- * Target endpoint.
365
- */
366
- target: AXPEndpoint;
367
- /**
368
- * Connection vertices (for curved paths).
369
- */
370
- vertices?: AXPPosition[];
217
+ interface AXPWorkflowPropertyWidget {
218
+ type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
219
+ options?: Record<string, any>;
371
220
  }
372
- /**
373
- * Variable model (for flowchart variables).
374
- */
375
- interface AXPVariableModel {
376
- id: string;
221
+ interface AXPWorkflowInputDescriptor {
377
222
  name: string;
378
- typeName: string;
379
- value?: string | null;
380
- storageDriverTypeName?: string | null;
381
- }
382
- /**
383
- * Metadata (designer annotations).
384
- */
385
- interface AXPMetadata {
386
- [key: string]: any;
387
- }
388
- /**
389
- * Custom properties (free-form bag).
390
- */
391
- interface AXPCustomProperties {
392
- /**
393
- * Connections that reference non-existent activities.
394
- */
395
- notFoundConnections?: AXPConnection[];
396
- /**
397
- * Additional custom properties.
398
- */
399
- [key: string]: any;
400
- }
401
- /**
402
- * Base activity (workflow definition format).
403
- * Matches Activity from workflow definition schema.
404
- * Note: This is the workflow definition format, not the frontend Activity class.
405
- */
406
- interface AXPActivity$1 {
407
- /**
408
- * Activity ID.
409
- */
410
- id: string;
411
- /**
412
- * Node ID (for visual designer).
413
- */
414
- nodeId: string;
415
- /**
416
- * Activity name.
417
- */
418
- name?: string | null;
419
- /**
420
- * Activity type (e.g., "workflow-activity:write-line", "workflow-activity:if").
421
- */
422
- type: string;
423
- /**
424
- * Activity version.
425
- */
426
- version: number;
427
- /**
428
- * Execution mode for this activity instance.
429
- * Determines where this activity should be executed:
430
- * - 'frontend': Execute in browser (UI activities like dialogs, toasts, navigation)
431
- * - 'backend': Execute in backend (business logic, database operations, API calls)
432
- * - 'both': Execute in both frontend and backend (hybrid activities)
433
- *
434
- * If not specified, falls back to AXPActivity's executionMode.
435
- * This allows per-instance override of the default execution mode.
436
- *
437
- * @example
438
- * ```json
439
- * {
440
- * "id": "show-dialog",
441
- * "type": "workflow-activity:show-dialog",
442
- * "executionMode": "frontend"
443
- * }
444
- * ```
445
- */
446
- executionMode?: 'frontend' | 'backend' | 'both';
447
- /**
448
- * Custom properties.
449
- */
450
- customProperties?: AXPCustomProperties;
451
- /**
452
- * Metadata (designer annotations).
453
- */
454
- metadata?: AXPMetadata;
455
- /**
456
- * Additional type-specific properties.
457
- */
458
- [key: string]: any;
459
- }
460
- /**
461
- * Flowchart activity (workflow definition format).
462
- * This is the root activity that contains all other activities.
463
- */
464
- interface AXPFlowchart extends AXPActivity$1 {
465
- /**
466
- * Type must be "workflow-activity:flowchart".
467
- */
468
- type: "workflow-activity:flowchart";
469
- /**
470
- * Activities in this flowchart.
471
- */
472
- activities: AXPActivity$1[];
473
- /**
474
- * Variables in this flowchart.
475
- */
476
- variables?: AXPVariableModel[];
477
- /**
478
- * Connections between activities.
479
- */
480
- connections: AXPConnection[];
223
+ title: string;
224
+ description?: string;
225
+ schema: {
226
+ dataType: string;
227
+ isArray?: boolean;
228
+ nullable?: boolean;
229
+ readonly?: boolean;
230
+ hidden?: boolean | string;
231
+ defaultValue?: any | string | ((context: any | null) => any);
232
+ interface: AXPWorkflowPropertyWidget;
233
+ };
234
+ validations?: AXPValidationRules;
481
235
  }
482
- /**
483
- * Simplified workflow definition for JSON files.
484
- * This is what developers write - system fields are added automatically.
485
- */
486
- interface AXPWorkflowDefinitionJson {
487
- /**
488
- * Unique workflow name (used as key/identifier).
489
- * This is the only required field for identification.
490
- * Similar to entity system where 'name' is the unique key.
491
- */
236
+ interface AXPWorkflowOutputDescriptor {
492
237
  name: string;
238
+ title: string;
239
+ description?: string;
493
240
  /**
494
- * Display title (human-readable name shown in UI).
495
- * Similar to entity system where 'title' is the display name.
496
- */
497
- title?: string | null;
498
- /**
499
- * Description.
500
- */
501
- description?: string | null;
502
- /**
503
- * Workflow variables.
504
- */
505
- variables?: AXPVariableDefinition[];
506
- /**
507
- * Workflow inputs.
508
- */
509
- inputs?: AXPWorkflowInputDefinition[];
510
- /**
511
- * Workflow outputs.
512
- */
513
- outputs?: AXPWorkflowOutputDefinition[];
514
- /**
515
- * Workflow outcomes.
516
- */
517
- outcomes?: string[];
518
- /**
519
- * Custom properties.
520
- */
521
- customProperties?: AXPCustomProperties;
522
- /**
523
- * Workflow options.
524
- */
525
- options?: AXPWorkflowOptions;
526
- /**
527
- * Root activity (Flowchart).
528
- */
529
- root: AXPFlowchart;
241
+ * Optional: where this output comes from in your context/memory.
242
+ * Example: "$.result.orderId" or "vars.orderId"
243
+ */
244
+ path?: string;
245
+ metadata?: Record<string, any>;
246
+ schema: {
247
+ isArray?: boolean;
248
+ dataType: string;
249
+ };
530
250
  }
531
251
  /**
532
- * Complete workflow definition (v3.0.0 format).
533
- * This is the core workflow definition without system fields.
534
- * System fields ($schema, tenantId, createdAt, toolVersion, isPublished, id, version, isLatest, isReadonly, isSystem)
535
- * are managed by the entity system and stored in entity model.
252
+ * Engine-specific extension bag for a workflow.
253
+ * Keep ALL engine-only fields here (Elsa, StepFunctions adapter, etc).
536
254
  */
537
- interface AXPWorkflowDefinition {
538
- /**
539
- * Unique workflow name (used as key/identifier, same across all versions).
540
- * This is the primary identifier for the workflow.
541
- */
542
- name: string;
543
- /**
544
- * Display title (human-readable name shown in UI).
545
- */
546
- title?: string | null;
547
- /**
548
- * Description.
549
- */
550
- description?: string | null;
551
- /**
552
- * Workflow variables.
553
- */
554
- variables?: AXPVariableDefinition[];
555
- /**
556
- * Workflow inputs.
557
- */
558
- inputs?: AXPWorkflowInputDefinition[];
559
- /**
560
- * Workflow outputs.
561
- */
562
- outputs?: AXPWorkflowOutputDefinition[];
563
- /**
564
- * Workflow outcomes.
565
- */
566
- outcomes?: string[];
255
+ interface AXPWorkflowExtensions {
567
256
  /**
568
- * Custom properties.
257
+ * Elsa-specific extensions (optional).
569
258
  */
570
- customProperties?: AXPCustomProperties;
259
+ elsa?: AXPElsaWorkflowExtensions;
571
260
  /**
572
- * Workflow options.
261
+ * Other engines (future-proof).
262
+ * Example: stepFunctions, logicApps, temporal, ...
573
263
  */
574
- options?: AXPWorkflowOptions;
575
- /**
576
- * @deprecated Use options.usableAsActivity instead.
577
- */
578
- usableAsActivity?: boolean | null;
579
- /**
580
- * Root activity (Flowchart).
581
- */
582
- root: AXPFlowchart;
264
+ [engine: string]: any;
583
265
  }
584
266
  /**
585
- * Workflow configuration options.
267
+ * Elsa-only fields (Optional).
268
+ * Put strategy/tool/schema/raw payload here to keep Core model global.
586
269
  */
587
- interface AXPWorkflowOptions {
588
- /**
589
- * Activation strategy type.
590
- */
591
- activationStrategyType?: string | null;
592
- /**
593
- * Whether workflow can be used as an activity.
594
- */
595
- usableAsActivity?: boolean | null;
596
- /**
597
- * Auto-update consuming workflows.
598
- */
599
- autoUpdateConsumingWorkflows?: boolean;
270
+ interface AXPElsaWorkflowExtensions {
600
271
  /**
601
- * Activity category (if usable as activity).
272
+ * Elsa schema URL (if you want to round-trip exact docs).
273
+ * Example: "https://elsaworkflows.io/schemas/workflow-definition/v3.0.0/schema.json"
602
274
  */
603
- activityCategory?: string | null;
275
+ schema?: string;
276
+ toolVersion?: string;
277
+ materializerName?: string;
604
278
  /**
605
- * Incident strategy type.
279
+ * Elsa strategy/options (engine-level concerns).
606
280
  */
607
- incidentStrategyType?: string | null;
281
+ options?: {
282
+ activationStrategyType?: string | null;
283
+ incidentStrategyType?: string | null;
284
+ commitStrategyName?: string | null;
285
+ autoUpdateConsumingWorkflows?: boolean;
286
+ usableAsActivity?: boolean | null;
287
+ activityCategory?: string | null;
288
+ };
608
289
  /**
609
- * Commit strategy name.
290
+ * If you want lossless Elsa round-trip, keep the raw Elsa definition here.
610
291
  */
611
- commitStrategyName?: string | null;
292
+ rawDefinition?: any;
612
293
  }
613
294
 
614
295
  /**
@@ -1013,10 +694,6 @@ interface AXPWorkflowInstance {
1013
694
  */
1014
695
  interface AXPActivityCategory extends AXPCategoryEntity {
1015
696
  }
1016
- interface ActivityPropertyWidget {
1017
- type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
1018
- options?: Record<string, any>;
1019
- }
1020
697
  /**
1021
698
  * Activity Definition - Metadata for UI and tooling.
1022
699
  * Contains all metadata needed for displaying activities in toolbox and designer.
@@ -1060,11 +737,11 @@ interface AXPActivityDefinition {
1060
737
  /**
1061
738
  * Input descriptors.
1062
739
  */
1063
- inputs?: InputDescriptor[];
740
+ inputs?: AXPWorkflowInputDescriptor[];
1064
741
  /**
1065
742
  * Output descriptors.
1066
743
  */
1067
- outputs?: OutputDescriptor[];
744
+ outputs?: AXPWorkflowOutputDescriptor[];
1068
745
  /**
1069
746
  * Static outcomes (exit points).
1070
747
  * Example: ['Done', 'Success', 'Failed']
@@ -1100,35 +777,6 @@ interface AXPActivity<TInput = any, TOutput = any> extends AXPCommand<TInput, {
1100
777
  outcomes: Record<string, any>;
1101
778
  }>;
1102
779
  }
1103
- /**
1104
- * Input property descriptor.
1105
- * Similar to AXPEntityProperty structure.
1106
- */
1107
- interface InputDescriptor {
1108
- name: string;
1109
- title: string;
1110
- description?: string;
1111
- schema: {
1112
- dataType: string;
1113
- nullable?: boolean;
1114
- readonly?: boolean;
1115
- hidden?: boolean | string;
1116
- defaultValue?: any | string | ((context: any | null) => any);
1117
- interface?: ActivityPropertyWidget;
1118
- };
1119
- validations?: AXPValidationRules;
1120
- }
1121
- /**
1122
- * Output property descriptor.
1123
- */
1124
- interface OutputDescriptor {
1125
- name: string;
1126
- title: string;
1127
- description?: string;
1128
- schema: {
1129
- dataType: string;
1130
- };
1131
- }
1132
780
 
1133
781
  type AXPActivityProviderToken = AXPActivityProvider | Promise<AXPActivityProvider>;
1134
782
  declare const AXP_ACTIVITY_PROVIDER: InjectionToken<AXPActivityProviderToken[]>;
@@ -2016,4 +1664,4 @@ declare class AXPWorkflowDefinitionService {
2016
1664
  }
2017
1665
 
2018
1666
  export { AXPActivityDefinitionService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflowDefinitionService, AXPWorkflowError, AXPWorkflowEventService, AXPWorkflowFunction, AXPWorkflowLocalEngine, AXPWorkflowManager, AXPWorkflowModule, AXPWorkflowRegistryService, AXPWorkflowService, AXP_ACTIVITY_CATEGORY_PROVIDER, AXP_ACTIVITY_PROVIDER, AXP_WORKFLOW_CATEGORY_PROVIDER, AXP_WORKFLOW_DEFINITION_LOADER, AXP_WORKFLOW_ENGINE, AXP_WORKFLOW_PROVIDER, FrontendTaskExecutor, createWorkFlowEvent, ofType };
2019
- export type { AXPActivity, AXPActivityCategory, AXPActivityCategoryProvider, AXPActivityCategoryProviderToken, AXPActivityDefinition, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderToken, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPCustomProperties, AXPEndpoint, AXPExceptionState, AXPExpression, AXPFlowchart, AXPGetWorkflowStateRequest, AXPInputValue, AXPMetadata, AXPOutputValue, AXPPosition, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPStoredWorkflowDefinition, AXPVariableDefinition, AXPVariableModel, AXPVersionedEntity, AXPWorkflow, AXPWorkflowActionInput, AXPActivity$1 as AXPWorkflowActivity, AXPWorkflowCategory, AXPWorkflowCategoryProvider, AXPWorkflowCategoryProviderToken, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowDefinitionJson, AXPWorkflowDefinitionLoader, AXPWorkflowDefinitionMetadata, AXPWorkflowEngine, AXPWorkflowEvent, AXPWorkflowFaultState, AXPWorkflowInputDefinition, AXPWorkflowInstance, AXPWorkflowInstanceState, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOptions, AXPWorkflowOutputDefinition, AXPWorkflowProvider, AXPWorkflowProviderToken, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask, ActivityPropertyWidget, FrontendTaskExecutionResult, InputDescriptor, OutputDescriptor, WorkflowCompleteResult, WorkflowResumeResult, WorkflowStartResult };
1667
+ export type { AXPActivity, AXPActivityCategory, AXPActivityCategoryProvider, AXPActivityCategoryProviderToken, AXPActivityDefinition, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderToken, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPElsaWorkflowExtensions, AXPExceptionState, AXPGetWorkflowStateRequest, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPVariableDefinition, AXPWorkflow, AXPWorkflowActionInput, AXPWorkflowActivityInstance, AXPWorkflowCategory, AXPWorkflowCategoryProvider, AXPWorkflowCategoryProviderToken, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowDefinitionLoader, AXPWorkflowDefinitionMetadata, AXPWorkflowEngine, AXPWorkflowEvent, AXPWorkflowExtensions, AXPWorkflowFaultState, AXPWorkflowGraph, AXPWorkflowInputDescriptor, AXPWorkflowInstance, AXPWorkflowInstanceState, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOutputDescriptor, AXPWorkflowProvider, AXPWorkflowProviderToken, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask, FrontendTaskExecutionResult, WorkflowCompleteResult, WorkflowResumeResult, WorkflowStartResult };
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs","sources":["../tmp-esm2022/themes/shared/lib/widgets/theme-color-chooser/theme-color-chooser-column.component.js"],"sourcesContent":["import { AXPColumnWidgetComponent } from '@acorex/platform/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common\";\nexport class AXPColorChooserWidgetColumnComponent extends AXPColumnWidgetComponent {\n constructor() {\n super(...arguments);\n this.parsed = computed(() => {\n const value = this.rawValue;\n if (!value) {\n return null;\n }\n if (typeof value === 'string') {\n const parts = value.trim().split(/\\s+/);\n if (parts.length === 3) {\n const [color, background, border] = parts;\n return { title: '', name: '', color, background, border };\n }\n return null;\n }\n return value;\n }, ...(ngDevMode ? [{ debugName: \"parsed\" }] : []));\n this.title = computed(() => (typeof this.rawValue === 'object' ? this.rawValue?.title || '' : ''), ...(ngDevMode ? [{ debugName: \"title\" }] : []));\n this.background = computed(() => this.parsed()?.background || '', ...(ngDevMode ? [{ debugName: \"background\" }] : []));\n this.color = computed(() => this.parsed()?.color || '', ...(ngDevMode ? [{ debugName: \"color\" }] : []));\n this.border = computed(() => this.parsed()?.border || '', ...(ngDevMode ? [{ debugName: \"border\" }] : []));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: AXPColorChooserWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.3.12\", type: AXPColorChooserWidgetColumnComponent, isStandalone: true, selector: \"ax-color-chooser-column\", inputs: { rawValue: \"rawValue\" }, usesInheritance: true, ngImport: i0, template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div\n class=\"ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center\"\n [ngClass]=\"[background(), border()]\"\n >\n <span [ngClass]=\"color()\">Aa</span>\n </div>\n <span>{{ title() }}</span>\n </div>\n `, isInline: true, dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: AXPColorChooserWidgetColumnComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'ax-color-chooser-column',\n template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div\n class=\"ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center\"\n [ngClass]=\"[background(), border()]\"\n >\n <span [ngClass]=\"color()\">Aa</span>\n </div>\n <span>{{ title() }}</span>\n </div>\n `,\n imports: [CommonModule],\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtY29sb3ItY2hvb3Nlci1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS90aGVtZXMvc2hhcmVkL3NyYy9saWIvd2lkZ2V0cy90aGVtZS1jb2xvci1jaG9vc2VyL3RoZW1lLWNvbG9yLWNob29zZXItY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUMvRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCL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