@atlashub/smartstack-cli 2.7.1 → 2.7.3

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.
package/dist/index.js CHANGED
@@ -126510,7 +126510,56 @@ function extractPrd(moduleFeature, featureJsonPath, namespace) {
126510
126510
  entity: r.entity,
126511
126511
  permission: r.permission,
126512
126512
  columns: r.columns,
126513
- actions: r.actions
126513
+ columnDefs: r.columnDefs?.map((c) => ({
126514
+ field: c.field,
126515
+ format: c.format,
126516
+ sortable: c.sortable,
126517
+ filterable: c.filterable,
126518
+ clickAction: c.clickAction,
126519
+ colorMap: c.colorMap,
126520
+ aggregation: c.aggregation
126521
+ })),
126522
+ actions: r.actions,
126523
+ rowActions: r.rowActions?.map((a) => ({
126524
+ action: a.action,
126525
+ permission: a.permission,
126526
+ showWhen: a.showWhen,
126527
+ confirm: typeof a.confirm === "boolean" ? a.confirm : !!a.confirm
126528
+ })),
126529
+ defaultSort: r.defaultSort,
126530
+ fields: r.fields?.map((f) => ({
126531
+ name: f.name,
126532
+ component: f.component,
126533
+ source: f.source,
126534
+ required: f.required,
126535
+ validation: f.validation,
126536
+ visibleWhen: f.visibleWhen,
126537
+ computedValue: f.computedValue,
126538
+ readOnly: f.readOnly
126539
+ })),
126540
+ formLayout: r.formLayout ? {
126541
+ type: r.formLayout.type,
126542
+ tabs: r.formLayout.tabs?.map((t) => ({ code: t.code, fields: t.fields }))
126543
+ } : void 0
126544
+ }))
126545
+ })),
126546
+ lifeCycles: (specification?.lifeCycles ?? []).map((lc) => ({
126547
+ entity: lc.entity,
126548
+ field: lc.field,
126549
+ initialState: lc.initialState,
126550
+ states: lc.states.map((s) => ({
126551
+ id: s.id,
126552
+ color: s.color,
126553
+ allowedTransitions: s.allowedTransitions,
126554
+ isTerminal: s.isTerminal
126555
+ })),
126556
+ transitions: lc.transitions?.map((t) => ({
126557
+ from: t.from,
126558
+ to: t.to,
126559
+ action: t.action,
126560
+ permission: t.permission,
126561
+ guards: t.guards,
126562
+ confirm: t.confirm
126514
126563
  }))
126515
126564
  }))
126516
126565
  },