How to use the ember-flexberry/controllers/edit-form.extend function in ember-flexberry

To help you get started, we’ve selected a few ember-flexberry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Flexberry / ember-flexberry-designer / addon / controllers / fd-application-edit-form.js View on Github external
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';

export default EditFormController.extend(FdFormUnsavedData, {
  parentRoute: 'fd-class-list-form'
});
github Flexberry / ember-flexberry-designer / addon / controllers / fd-stage-edit-form.js View on Github external
import { computed, observer } from '@ember/object';
import { inject as service } from '@ember/service';

import EditFormController from 'ember-flexberry/controllers/edit-form';
import { SimplePredicate } from 'ember-flexberry-data/query/predicate';
import Builder from 'ember-flexberry-data/query/builder';

export default EditFormController.extend({

  parentRoute: 'fd-stage-list-form',

  store: service('store'),

  moduleSetting: undefined,

  _changedModel: observer('model.id', function() {
    this.set('moduleSetting.FrontendGitRepoUrl', '');
    this.set('moduleSetting.FrontendLogin', '');
    this.set('moduleSetting.FrontendPassword', '');
    this.set('moduleSetting.FrontendBranch', '');
    this.set('moduleSetting.FrontendPublishGh', false);
    this.set('moduleSetting.BackendGitRepoUrl', '');
    this.set('moduleSetting.BackendLogin', '');
    this.set('moduleSetting.BackendPassword', '');
github Flexberry / ember-flexberry-designer / addon / controllers / fd-diagram-edit-form.js View on Github external
import EditFormController from 'ember-flexberry/controllers/edit-form';

export default EditFormController.extend({
  parentRoute: 'fd-diagram-list-form',
  init: function() {
  }
});
github Flexberry / ember-flexberry-designer / addon / controllers / fd-diagram-edit-form.js View on Github external
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdWorkPanelToggler from '../mixins/fd-work-panel-toggler';

export default EditFormController.extend(FdWorkPanelToggler, {
  parentRoute: 'fd-diagram-list-form',
});
github Flexberry / ember-flexberry-designer / addon / controllers / fd-class-edit-form.js View on Github external
import Ember from 'ember';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import { Query } from 'ember-flexberry-data';
import BusinessDataObjectEvents from 'ember-flexberry-designer/enums/i-c-s-soft-s-t-o-r-m-n-e-t-business-data-service-object-events';

const { SimplePredicate, FilterOperator, ComplexPredicate, Condition } = Query;

export default EditFormController.extend({
  parentRoute: 'fd-class-list-form',

  header: Ember.computed.readOnly('model.name'),

  currentContext: Ember.inject.service('fd-current-project-context'),

  getCellComponent(attr, bindingPath, model) {
    let cellComponent = this._super(...arguments);
    if (attr.kind === 'belongsTo') {
      switch (`${model.modelName}+${bindingPath}`) {
        case 'fd-class-storage-type+storageType':
          cellComponent.componentProperties = {
            choose: 'showLookupDialog',
            remove: 'removeLookupValue',
            displayAttributeName: 'shortName',
            required: true,
github Flexberry / ember-flexberry-designer / addon / controllers / fd-aggregation-edit-form.js View on Github external
import { inject as service } from '@ember/service';
import { A } from '@ember/array';
import { set } from '@ember/object';
import { isNone } from '@ember/utils';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';
import { updateAggregationOnDiagram } from '../utils/fd-update-class-diagram';

export default EditFormController.extend(FdFormUnsavedData, {
  parentRoute: 'fd-aggregation-list-form',

  /**
   Service that get current project contexts.

   @property currentProjectContext
   @type {Class}
   @default service()
   */
  currentProjectContext: service('fd-current-project-context'),

  /**
    Array all classes.

    @property implementations
    @type Array
github Flexberry / ember-flexberry-designer / addon / controllers / fd-inheritance-edit-form.js View on Github external
import Ember from 'ember';
import EditFormController from 'ember-flexberry/controllers/edit-form';

export default EditFormController.extend({
  parentRoute: 'fd-inheritance-list-form',

  /**
   Service that get current project contexts.

   @property currentProjectContext
   @type {Class}
   @default Ember.inject.service()
   */
  currentProjectContext: Ember.inject.service('fd-current-project-context'),

  /**
    Array all classes.

    @property implementations
    @type Array
github Flexberry / ember-flexberry-designer / addon / controllers / fd-appstruct-form.js View on Github external
import Ember from 'ember';
import FdAppStructTree from '../objects/fd-appstruct-tree';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import { translationMacro as t } from 'ember-i18n';
import FdWorkPanelToggler from '../mixins/fd-work-panel-toggler';
import { restorationNodeTree, findFreeNodeTreeID, findFreeNodeTreeNameIndex } from '../utils/fd-metods-for-tree';
import { getNewFormCaption, getNewFormDescription } from '../utils/fd-create-form-properties';

export default EditFormController.extend(FdWorkPanelToggler, {

  /**
    @property store
    @type Service
  */
  store: Ember.inject.service(),

  /**
    @property currentProjectContext
    @type Service
  */
  currentProjectContext: Ember.inject.service('fd-current-project-context'),

  /**
    Setting off for 'openProcessEditorForm' buttons.
github Flexberry / ember-flexberry-designer / addon / controllers / fd-business-server-edit-form.js View on Github external
import { computed } from '@ember/object';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';

export default EditFormController.extend(FdFormUnsavedData, {
  parentRoute: 'fd-class-list-form',
  header: computed.readOnly('model.name')
});
github Flexberry / ember-flexberry-designer / addon / controllers / fd-system-edit-form.js View on Github external
import EditFormController from 'ember-flexberry/controllers/edit-form';

export default EditFormController.extend({
  parentRoute: 'fd-system-list-form',
});