ngx-forge
Advanced tools
Comparing version 0.0.12-development to 0.0.13-development
@@ -1,8 +0,7 @@ | ||
export { AsciidocComponent } from './src/app/asciidoc/asciidoc.component'; | ||
export { AsciidocIndex } from './src/app/asciidoc/asciidoc.index'; | ||
export { AsciidocService } from './src/app/asciidoc/asciidoc.service'; | ||
export { InputComponent } from './src/app/input/input.component'; | ||
export { AsciidocComponent } from './src/app/components/asciidoc/asciidoc.component'; | ||
export { AsciidocIndex } from './src/app/components/asciidoc/asciidoc.index'; | ||
export { AsciidocService } from './src/app/components/asciidoc/asciidoc.service'; | ||
export { InputComponent } from './src/app/components/input/input.component'; | ||
export { ProjectSelect, ProjectSelectConfig } from './src/app/components/project-select/project-select'; | ||
export * from './src/app/model/base.model'; | ||
export * from './src/app/model/gui.model'; | ||
export { ProjectSelect, ProjectSelectConfig } from './src/app/project-select/project-select'; | ||
export { Config } from './src/app/service/config.component'; | ||
@@ -9,0 +8,0 @@ export { ForgeService } from './src/app/service/forge.service'; |
11
index.js
@@ -1,8 +0,7 @@ | ||
export { AsciidocComponent } from './src/app/asciidoc/asciidoc.component'; | ||
export { AsciidocIndex } from './src/app/asciidoc/asciidoc.index'; | ||
export { AsciidocService } from './src/app/asciidoc/asciidoc.service'; | ||
export { InputComponent } from './src/app/input/input.component'; | ||
export { AsciidocComponent } from './src/app/components/asciidoc/asciidoc.component'; | ||
export { AsciidocIndex } from './src/app/components/asciidoc/asciidoc.index'; | ||
export { AsciidocService } from './src/app/components/asciidoc/asciidoc.service'; | ||
export { InputComponent } from './src/app/components/input/input.component'; | ||
export { ProjectSelect, ProjectSelectConfig } from './src/app/components/project-select/project-select'; | ||
export * from './src/app/model/base.model'; | ||
export * from './src/app/model/gui.model'; | ||
export { ProjectSelect, ProjectSelectConfig } from './src/app/project-select/project-select'; | ||
export { Config } from './src/app/service/config.component'; | ||
@@ -9,0 +8,0 @@ export { ForgeService } from './src/app/service/forge.service'; |
@@ -10,11 +10,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { FormsModule } from '@angular/forms'; | ||
import { AsciidocComponent } from './src/app/asciidoc/asciidoc.component'; | ||
import { InputComponent } from './src/app/input/input.component'; | ||
import { AsciidocComponent } from './src/app/components/asciidoc/asciidoc.component'; | ||
import { InputComponent } from './src/app/components/input/input.component'; | ||
import { MultiselectDropdownModule } from 'angular-2-dropdown-multiselect/src/multiselect-dropdown'; | ||
import { ProjectSelect } from './src/app/project-select/project-select'; | ||
import { ProjectSelect } from './src/app/components/project-select/project-select'; | ||
import { Config } from './src/app/service/config.component'; | ||
import { ForgeService } from './src/app/service/forge.service'; | ||
import { History } from './src/app/service/history.component'; | ||
import { AsciidocIndex } from './src/app/asciidoc/asciidoc.index'; | ||
import { AsciidocService } from './src/app/asciidoc/asciidoc.service'; | ||
import { AsciidocIndex } from './src/app/components/asciidoc/asciidoc.index'; | ||
import { AsciidocService } from './src/app/components/asciidoc/asciidoc.service'; | ||
var classes = [ | ||
@@ -21,0 +21,0 @@ AsciidocComponent, |
{ | ||
"name": "ngx-forge", | ||
"version": "0.0.12-development", | ||
"version": "0.0.13-development", | ||
"description": "Forge services for Angular v2 and up", | ||
@@ -5,0 +5,0 @@ "main": "bundles/ngx-forge.js", |
@@ -40,2 +40,5 @@ export declare class Gui { | ||
class: string; | ||
description: string; | ||
gitRepositories?: any[]; | ||
display?: any; | ||
} | ||
@@ -46,2 +49,7 @@ export declare class Option { | ||
name: string; | ||
selected: boolean; | ||
visible: boolean; | ||
descriptionMarkdown: string; | ||
display: any; | ||
stages: any; | ||
} | ||
@@ -48,0 +56,0 @@ export declare class DownloadFile { |
@@ -13,4 +13,5 @@ import { Gui } from '../model/base.model'; | ||
convert(stepIndex?: number): Gui; | ||
updateFormValues(values: any, stepIndex?: number): void; | ||
toString(): string; | ||
private convertToSubmittable(inputs); | ||
} |
@@ -75,2 +75,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
History.prototype.updateFormValues = function (values, stepIndex) { | ||
if (stepIndex === void 0) { stepIndex = this.stepIndex - 1; } | ||
var gui = this.state[stepIndex]; | ||
for (var _i = 0, _a = gui.inputs; _i < _a.length; _i++) { | ||
var input = _a[_i]; | ||
for (var _b = 0, _c = Object.keys(values); _b < _c.length; _b++) { | ||
var key = _c[_b]; | ||
if (input.name === key) { | ||
input.value = values[key]; | ||
} | ||
} | ||
} | ||
}; | ||
History.prototype.toString = function () { | ||
@@ -77,0 +90,0 @@ return btoa(JSON.stringify(this.convert())); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"History":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"done":[{"__symbolic":"method"}],"apply":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"resetTo":[{"__symbolic":"method"}],"convert":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}],"convertToSubmittable":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"History":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"done":[{"__symbolic":"method"}],"apply":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"resetTo":[{"__symbolic":"method"}],"convert":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}],"convertToSubmittable":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"History":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"done":[{"__symbolic":"method"}],"apply":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"resetTo":[{"__symbolic":"method"}],"convert":[{"__symbolic":"method"}],"updateFormValues":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}],"convertToSubmittable":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"History":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"done":[{"__symbolic":"method"}],"apply":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"resetTo":[{"__symbolic":"method"}],"convert":[{"__symbolic":"method"}],"updateFormValues":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}],"convertToSubmittable":[{"__symbolic":"method"}]}}}}] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3303313
42
70966