<AppDataPicker
{{#eq ctrlType 'grid'}}
  name="{{#if dataItemName}}{{dataItemName}}{{else}}{{item.codeName}}{{/if}}"
{{/eq}}
{{#eq ctrlType 'panel'}}
  name="{{item.name}}"
{{/eq}}
{{#eq ctrlType 'form'}}
  name="{{item.codeName}}"
{{/eq}}
  :data="state.data"
{{#if item.valueItemName}}
  valueItem="{{item.valueItemName}}"
{{/if}}
{{#if item.psEditor.placeHolder}}
  placeholder="{{item.psEditor.placeHolder}}"
{{/if}}
{{#if (eq ctrlType 'form')}}
  :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else if (eq ctrlType 'grid')}}
  {{#if (eq item.enableCond 0)}}
  :disabled="true"
  {{else if (eq item.enableCond 1)}}
  :disabled="!Object.is(record.srfuf,0)"
  {{else if (eq item.enableCond 2)}}
  :disabled="!Object.is(record.srfuf,1)"
  {{/if}}
{{else if (eq ctrlType 'panel')}}
  :disabled="state.detailsModel.{{item.name}}.disabled"
{{/if}}
{{#if item.psEditor.psNavigateContexts}}
  :localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}"
{{/if}}
{{#if item.psEditor.psNavigateParams}}
  :localParam="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateParams}}"
{{/if}}
  :context="state.context"
  :viewParams="state.viewParams"
{{#if item.psEditor.psAppDataEntity}}
  deMajorField="{{lowerCase item.psEditor.psAppDataEntity.majorPSAppDEField.codeName}}"
  deKeyField="{{lowerCase item.psEditor.psAppDataEntity.keyPSAppDEField.codeName}}"
{{/if}}
{{#if item.psEditor.pickupPSAppView }}
  pickUpView="{{item.psEditor.pickupPSAppView.codeName}}"
{{/if}}
{{!-- :linkView="getLinkView({{item.psEditor}})" --}}
{{#and item.psEditor.psAppDataEntity item.psEditor.psAppDEDataSet}}
  :acParams="{ serviceName: '{{item.psEditor.psAppDataEntity.codeName}}', interfaceName: '{{item.psEditor.psAppDEDataSet.codeName}}' }"
{{/and}}
{{#and item.psEditor.psAppDEACMode item.psEditor.psAppDEACMode.minorSortPSAppDEField}}
  sort="{{lowerCase item.psEditor.psAppDEACMode.minorSortPSAppDEField}},{{#if item.psEditor.psAppDEACMode.minorSortDir}}{{item.psEditor.psAppDEACMode.minorSortDir}}{{else}}asc{{/if}}"
{{/and}}
{{#if item.psEditor.editorParams.pickUpData}}
  pickUpData="{{item.psEditor.editorParams.pickUpData}}"
{{/if}}
{{#if (or (eq item.psEditor.editorType "PICKEREX_LINKONLY") (eq item.psEditor.editorType "PICKEREX_LINK"))}}
  :linkOnly="true"
{{/if}}
{{#if (or (eq item.psEditor.editorType "PICKEREX_NOAC")  (eq item.psEditor.editorType "PICKEREX_NOAC_LINK"))}}
  :noAC="true"
{{/if}}
{{#if (or (eq item.psEditor.editorType "PICKEREX_TRIGGER")  (eq item.psEditor.editorType "PICKEREX_TRIGGER_LINK"))}}
  :isDropdown="true"
{{/if}}
{{#if (or (eq item.psEditor.editorType "ADDRESSPICKUP")  (eq item.psEditor.editorType "ADDRESSPICKUP_AC"))}}
  :multiple="true"
{{/if}}
  :service="state.controlService"
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{#if dataItemName}}{{dataItemName}}{{else}}{{item.psEditor.name}}{{/if}}"
  @editorEvent="onEditorEvent($event,index)"
{{/eq}}
/>
