JSPM

ngx-manage

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q22642F
    • License MIT

    - angular class descriptor and state

    Package Exports

    • ngx-manage

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-manage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    • class descriptor:

    ####Javascript 

     @Descriptor([
      new BaseParam(BaseValueType.Undefined,'$base',BaseValueProp.Disabled),
      new BaseParam(BaseValueType.Undefined,'$user',BaseValueProp.Input)
    ],[ // order 
      'id','name','description','makat','color','test','date','time','sum','parent','value'
    ])
    class CustomValue 
    {
      // overwrite class descritor
      @BaseDescriptors([
        new BaseParam(BaseValueType.Text,undefined,BaseValueProp.Disabled,'color'),
        new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'color')
      ])
      public color:string = 'red';
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'autocomplete','makat'),
        new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'autocomplete','makat')
      ])
      public makat:string = undefined;
    
      @BaseDescriptors([
          new BaseParam(BaseValueType.Text),
          new BaseParam(BaseValueType.Text,'$user',BaseValueProp.Input)
      ])
      public name:string = '';
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Boolean)
      ])
      public test:boolean = false;
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'array','id,name'),
        new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'array','id,name')
      ])
      public value:any = [];
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Date)
      ])
      public date:Date = new Date();
    
      public time:Time = { hours: 0,minutes: 1 };
      public sum:number = 0.0;
      public id:number = 0;
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Object),
        new BaseParam(BaseValueType.Object,'$user',BaseValueProp.Disabled)
      ])
      public parent:CustomValue = undefined;
    
      @BaseDescriptors([
        new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'description'),
        new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'description')
      ])
      public description:string = '';
    }