export const ctrlState = {
  controlCodeName: '{{ctrl.codeName}}',
  controlName: '{{ctrl.name}}',
  counter: 0,
  xDataControlName: '{{ctrl.xDataControlName}}',
  selection: {},
  viewRefs: [
    {{#each ctrl.psAppViewRefs as | viewRef |}}
    {
      name: '{{viewRef.name}}',
      {{#if viewRef.refPSAppView}}
      viewName: '{{viewRef.refPSAppView.name}}',
        {{#if viewRef.refPSAppView.psAppDataEntity}}
      deKeyField: '{{viewRef.refPSAppView.psAppDataEntity.codeName}}',
        {{/if}}
      {{/if}}
    },
    {{/each}}
  ]
};
