Skip to content

Commit b728c9f

Browse files
authored
Merge pull request #211 from dkamburov/master
Reorganize the scrutcture of the repo src - split components into dif…
2 parents 15733f3 + dce0c21 commit b728c9f

File tree

100 files changed

+6116
-5809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+6116
-5809
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ samples/**/*.d.ts
4444
samples/**/*.js
4545
samples/**/*.js.map
4646

47-
src/igniteui.angular2.d.ts
48-
src/*.js
49-
src/*.js.map
47+
src/**/*.d.ts
48+
src/**/*.js
49+
src/**/*.js.map
50+
src/**/*.metadata.json
5051

5152
tests/unit/**/*.d.ts
5253
tests/unit/**/*.js

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
"build-aot": "ngc -p tsconfig-aot.json",
6060
"build-aot-samples": "ngc -p tsconfig-aot-samples.json",
6161
"bundle": "npm run build-aot && npm run prepare-dist",
62-
"prepare-dist": "cp src/igniteui.angular2.js dist/npm/index.js && cp src/igniteui.angular2.d.ts dist/npm/index.d.ts && cp src/igniteui.angular2.metadata.json dist/npm/index.metadata.json && cp src/igniteui.angular2.ts dist/npm/igniteui.angular2.ts",
62+
"prepare-dist": "cp src/igniteui.angular2.js dist/npm/index.js && cp src/igniteui.angular2.d.ts dist/npm/index.d.ts && cp src/igniteui.angular2.metadata.json dist/npm/index.metadata.json && cp src/igniteui.angular2.ts dist/npm/igniteui.angular2.ts && cp -R src/** dist/npm/",
6363

64-
"pretest": "npm run build",
64+
"pretest": "npm run bundle && npm run build",
6565
"test": "karma start tests/karma.conf.js && npm run remap-istanbul",
6666

6767
"remap-istanbul": "npm run copy-coverage-report && npm run remap-istanbul-html && npm run remap-istanbul-lcov",
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { Component, Renderer, IterableDiffers, ElementRef } from "@angular/core";
2+
import { IgControlBase } from "../igcontrolbase/igcontrolbase";
3+
4+
5+
@Component({
6+
selector: "ig-bullet-graph",
7+
template: "<ng-content></ng-content>",
8+
inputs: ["widgetId", "options", "changeDetectionInterval","disabled","create","width","height","ranges","rangeToolTipTemplate","valueToolTipTemplate","targetValueToolTipTemplate","orientation","rangeBrushes","rangeOutlines","minimumValue","maximumValue","targetValue","targetValueName","value","valueName","rangeInnerExtent","rangeOuterExtent","valueInnerExtent","valueOuterExtent","interval","ticksPostInitial","ticksPreTerminal","labelInterval","labelExtent","labelsPostInitial","labelsPreTerminal","minorTickCount","tickStartExtent","tickEndExtent","tickStrokeThickness","tickBrush","fontBrush","valueBrush","valueOutline","valueStrokeThickness","minorTickStartExtent","minorTickEndExtent","minorTickStrokeThickness","minorTickBrush","isScaleInverted","backingBrush","backingOutline","backingStrokeThickness","backingInnerExtent","backingOuterExtent","scaleStartExtent","scaleEndExtent","targetValueBrush","targetValueBreadth","targetValueInnerExtent","targetValueOuterExtent","targetValueOutline","targetValueStrokeThickness","transitionDuration","showToolTipTimeout","showToolTip","font","pixelScalingRatio"],
9+
outputs: ["formatLabel","alignLabel"]
10+
})
11+
export class IgBulletGraphComponent extends IgControlBase<IgBulletGraph> {
12+
constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers) { super(el, renderer, differs); }
13+
14+
/**
15+
* Returns a string containing the names of all the ranges delimited with a \n symbol.
16+
*/
17+
public getRangeNames(): void { return; } ;
18+
19+
/**
20+
* Adds a new range to the bullet graph.
21+
*
22+
* @param value The range object to be added.
23+
*/
24+
public addRange(value: Object): void { return; } ;
25+
26+
/**
27+
* Removes a range from the bullet graph.
28+
*
29+
* @param value A JS object with properties set as follows: name: nameOfTheRangeToRemove, remove: true
30+
*/
31+
public removeRange(value: Object): void { return; } ;
32+
33+
/**
34+
* Updates the specified range of the bullet graph.
35+
*
36+
* @param value The range object to be updated.
37+
*/
38+
public updateRange(value: Object): void { return; } ;
39+
40+
/**
41+
* Returns information about how the bullet graph is rendered.
42+
*/
43+
public exportVisualData(): Object { return; } ;
44+
45+
/**
46+
* Causes all pending changes of the bullet graph e.g. by changed property values to be rendered immediately.
47+
*/
48+
public flush(): void { return; } ;
49+
50+
/**
51+
* Destroys widget.
52+
*/
53+
public destroy(): void { return; } ;
54+
55+
/**
56+
* Re-polls the css styles for the widget. Use this method when the css styles have been modified.
57+
*/
58+
public styleUpdated(): void { return; } ;
59+
}

src/igcombo/igcombo.component.ts

Lines changed: 414 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { IgControlBase } from "./igcontrolbase";
2+
import { ElementRef, Renderer, IterableDiffers } from "@angular/core";
3+
4+
5+
export class IgContentControlBase<Model> extends IgControlBase<Model> {
6+
private childNodes: Array<any>;
7+
8+
constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers) {
9+
super(el, renderer, differs);
10+
this.childNodes = el.nativeElement.childNodes;
11+
}
12+
13+
ngOnInit() {
14+
jQuery(this._el).append(this.childNodes);
15+
super.ngOnInit();
16+
}
17+
}

0 commit comments

Comments
 (0)