igniteui-cli 14.3.3-beta.0 → 14.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/cli.js +0 -5
- package/lib/commands/add.js +1 -1
- package/lib/commands/index.d.ts +0 -1
- package/lib/commands/index.js +1 -3
- package/lib/commands/types.d.ts +0 -1
- package/lib/commands/types.js +1 -3
- package/package.json +3 -6
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +6 -1
- package/lib/commands/quickstart.d.ts +0 -3
- package/lib/commands/quickstart.js +0 -116
- package/templates/quickstart/angular/.editorconfig +0 -20
- package/templates/quickstart/angular/LICENSE +0 -21
- package/templates/quickstart/angular/README.md +0 -44
- package/templates/quickstart/angular/app/app.component.ts +0 -152
- package/templates/quickstart/angular/app/app.module.ts +0 -21
- package/templates/quickstart/angular/app/main.ts +0 -5
- package/templates/quickstart/angular/favicon.ico +0 -0
- package/templates/quickstart/angular/ignite-ui-cli.json +0 -15
- package/templates/quickstart/angular/index.html +0 -38
- package/templates/quickstart/angular/package.json +0 -46
- package/templates/quickstart/angular/styles.css +0 -142
- package/templates/quickstart/angular/systemjs.config.extras.js +0 -11
- package/templates/quickstart/angular/systemjs.config.js +0 -58
- package/templates/quickstart/angular/tsconfig.json +0 -22
- package/templates/quickstart/angular/tslint.json +0 -93
- package/templates/quickstart/jquery/index.html +0 -99
- package/templates/quickstart/jquery/package.json +0 -12
- package/templates/quickstart/react/index.html +0 -30
- package/templates/quickstart/react/package.json +0 -42
- package/templates/quickstart/react/src/App.js +0 -24
- package/templates/quickstart/react/src/index.js +0 -5
- package/templates/quickstart/react/webpack.config.js +0 -34
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ See the [Contribution guide](https://github.com/IgniteUI/igniteui-cli/blob/maste
|
|
|
118
118
|
2. Install dependencies with `npm install`
|
|
119
119
|
3. Open in Visual Studio Code
|
|
120
120
|
|
|
121
|
-
There is a predefined launch.config file for VS Code in the root folder, so you can use VS Code View/Debug window and choose one of the predefined actions. These include launching the step by step guide,
|
|
121
|
+
There is a predefined launch.config file for VS Code in the root folder, so you can use VS Code View/Debug window and choose one of the predefined actions. These include launching the step by step guide, create new project for a particular framework or add components.
|
|
122
122
|
|
|
123
123
|
4. Hit Start Debugging/F5
|
|
124
124
|
|
package/lib/cli.js
CHANGED
|
@@ -41,7 +41,6 @@ function run() {
|
|
|
41
41
|
yield yargsModule
|
|
42
42
|
.scriptName("") // prevent the addition of the name of the executing script in the usage output
|
|
43
43
|
.usage("") // do not show any usage instructions before the commands list
|
|
44
|
-
.command(commands_1.quickstart)
|
|
45
44
|
.command(commands_1.newCommand)
|
|
46
45
|
.command(commands_1.add)
|
|
47
46
|
.command(commands_1.build)
|
|
@@ -96,10 +95,6 @@ function run() {
|
|
|
96
95
|
if (helpRequest) {
|
|
97
96
|
logHelp();
|
|
98
97
|
}
|
|
99
|
-
if (command === commands_1.QUICKSTART_COMMAND_NAME && !helpRequest) {
|
|
100
|
-
cli_core_1.Util.log("quickstart Created");
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
98
|
// since we are providing a custom callback to `yargsModule.parseAsync`, we need to handle the output as well
|
|
104
99
|
// ref - https://yargs.js.org/docs/#api-reference-parseargs-context-parsecallback
|
|
105
100
|
if (output) {
|
package/lib/commands/add.js
CHANGED
|
@@ -62,7 +62,7 @@ const command = {
|
|
|
62
62
|
}
|
|
63
63
|
const config = cli_core_1.ProjectConfig.getConfig();
|
|
64
64
|
if (config.project.isShowcase) {
|
|
65
|
-
cli_core_1.Util.error("Showcases
|
|
65
|
+
cli_core_1.Util.error("Showcases projects don't support the add command", "red");
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
const framework = command.templateManager.getFrameworkById(config.project.framework);
|
package/lib/commands/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export { default as doc } from "./doc";
|
|
|
5
5
|
export { default as generate } from "./generate";
|
|
6
6
|
export { default as list } from "./list";
|
|
7
7
|
export { default as newCommand } from "./new";
|
|
8
|
-
export { default as quickstart } from "./quickstart";
|
|
9
8
|
export { default as start } from "./start";
|
|
10
9
|
export { default as test } from "./test";
|
|
11
10
|
export { default as upgrade } from "./upgrade";
|
package/lib/commands/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.upgrade = exports.test = exports.start = exports.
|
|
20
|
+
exports.upgrade = exports.test = exports.start = exports.newCommand = exports.list = exports.generate = exports.doc = exports.config = exports.build = exports.add = void 0;
|
|
21
21
|
var add_1 = require("./add");
|
|
22
22
|
Object.defineProperty(exports, "add", { enumerable: true, get: function () { return __importDefault(add_1).default; } });
|
|
23
23
|
var build_1 = require("./build");
|
|
@@ -32,8 +32,6 @@ var list_1 = require("./list");
|
|
|
32
32
|
Object.defineProperty(exports, "list", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
|
|
33
33
|
var new_1 = require("./new");
|
|
34
34
|
Object.defineProperty(exports, "newCommand", { enumerable: true, get: function () { return __importDefault(new_1).default; } });
|
|
35
|
-
var quickstart_1 = require("./quickstart");
|
|
36
|
-
Object.defineProperty(exports, "quickstart", { enumerable: true, get: function () { return __importDefault(quickstart_1).default; } });
|
|
37
35
|
var start_1 = require("./start");
|
|
38
36
|
Object.defineProperty(exports, "start", { enumerable: true, get: function () { return __importDefault(start_1).default; } });
|
|
39
37
|
var test_1 = require("./test");
|
package/lib/commands/types.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { TemplateManager } from "../TemplateManager";
|
|
|
3
3
|
import { AddTemplateArgs, Template } from "@igniteui/cli-core";
|
|
4
4
|
export declare const ADD_COMMAND_NAME = "add";
|
|
5
5
|
export declare const NEW_COMMAND_NAME = "new";
|
|
6
|
-
export declare const QUICKSTART_COMMAND_NAME = "quickstart";
|
|
7
6
|
export declare const BUILD_COMMAND_NAME = "build";
|
|
8
7
|
export declare const START_COMMAND_NAME = "start";
|
|
9
8
|
export declare const GENERATE_COMMAND_NAME = "generate";
|
package/lib/commands/types.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ALL_COMMANDS = exports.UPGRADE_COMMAND_NAME = exports.LIST_COMMAND_NAME = exports.TEST_COMMAND_NAME = exports.DOC_COMMAND_NAME = exports.CONFIG_COMMAND_NAME = exports.GENERATE_COMMAND_NAME = exports.START_COMMAND_NAME = exports.BUILD_COMMAND_NAME = exports.
|
|
3
|
+
exports.ALL_COMMANDS = exports.UPGRADE_COMMAND_NAME = exports.LIST_COMMAND_NAME = exports.TEST_COMMAND_NAME = exports.DOC_COMMAND_NAME = exports.CONFIG_COMMAND_NAME = exports.GENERATE_COMMAND_NAME = exports.START_COMMAND_NAME = exports.BUILD_COMMAND_NAME = exports.NEW_COMMAND_NAME = exports.ADD_COMMAND_NAME = void 0;
|
|
4
4
|
exports.ADD_COMMAND_NAME = "add";
|
|
5
5
|
exports.NEW_COMMAND_NAME = "new";
|
|
6
|
-
exports.QUICKSTART_COMMAND_NAME = "quickstart";
|
|
7
6
|
exports.BUILD_COMMAND_NAME = "build";
|
|
8
7
|
exports.START_COMMAND_NAME = "start";
|
|
9
8
|
exports.GENERATE_COMMAND_NAME = "generate";
|
|
@@ -15,7 +14,6 @@ exports.UPGRADE_COMMAND_NAME = "upgrade-packages";
|
|
|
15
14
|
exports.ALL_COMMANDS = new Set([
|
|
16
15
|
exports.ADD_COMMAND_NAME,
|
|
17
16
|
exports.NEW_COMMAND_NAME,
|
|
18
|
-
exports.QUICKSTART_COMMAND_NAME,
|
|
19
17
|
exports.BUILD_COMMAND_NAME,
|
|
20
18
|
exports.START_COMMAND_NAME,
|
|
21
19
|
exports.GENERATE_COMMAND_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.4",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"templates/**/*.js",
|
|
38
38
|
"templates/**/files/**/*",
|
|
39
39
|
"templates/**/generate/**/*",
|
|
40
|
-
"templates/quickstart/**/*",
|
|
41
40
|
"templates/**/*.json",
|
|
42
41
|
"migrations/**/*.d.ts",
|
|
43
42
|
"migrations/**/*.js",
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
"exclude": [
|
|
58
57
|
"**/*.d.ts",
|
|
59
58
|
"output/",
|
|
60
|
-
"templates/quickstart/",
|
|
61
59
|
"templates/**/files/"
|
|
62
60
|
],
|
|
63
61
|
"reporter": [
|
|
@@ -72,8 +70,8 @@
|
|
|
72
70
|
"all": true
|
|
73
71
|
},
|
|
74
72
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~19.0.
|
|
76
|
-
"@igniteui/cli-core": "~14.3.
|
|
73
|
+
"@igniteui/angular-templates": "~19.0.1434",
|
|
74
|
+
"@igniteui/cli-core": "~14.3.4",
|
|
77
75
|
"@inquirer/prompts": "^5.4.0",
|
|
78
76
|
"@types/yargs": "^17.0.33",
|
|
79
77
|
"chalk": "^5.3.0",
|
|
@@ -94,7 +92,6 @@
|
|
|
94
92
|
"coveralls-next": "^4.2.1",
|
|
95
93
|
"jasmine": "^5.3.0",
|
|
96
94
|
"jasmine-spec-reporter": "^7.0.0",
|
|
97
|
-
"lite-server": "^2.6.1",
|
|
98
95
|
"nyc": "^17.0.0",
|
|
99
96
|
"rxjs": "^7.8.1",
|
|
100
97
|
"source-map-support": "^0.5.21",
|
package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml
CHANGED
|
@@ -30,9 +30,14 @@ jobs:
|
|
|
30
30
|
node-version: ${{ matrix.node-version }}
|
|
31
31
|
# cache: 'npm' # enable after committing lock file from first install
|
|
32
32
|
- run: npm i # replace with 'npm ci' after committing lock file from first install
|
|
33
|
+
- name: Update Router Navigation
|
|
34
|
+
run: |
|
|
35
|
+
sed -i "s|Router.go(\`/|Router.go(\`/${{ github.event.repository.name }}/|g" ./src/app/app.ts
|
|
36
|
+
sed -i "s|Router.go(\`/|Router.go(\`/${{ github.event.repository.name }}/|g" ./src/app/home/home.ts
|
|
33
37
|
- run: npm run build
|
|
34
38
|
- name: Update base href in index.html
|
|
35
|
-
run:
|
|
39
|
+
run: |
|
|
40
|
+
sed -i 's|<base href="[^"]*">|<base href="/${{ github.event.repository.name }}/">|' ./dist/index.html
|
|
36
41
|
- name: Update Resource Paths
|
|
37
42
|
run: find ./dist -maxdepth 1 -type f ! -name 'sw*.js' ! -name 'workbox*.js' -name '*.js' -exec sed -i -e "s|/src/assets|/${{ github.event.repository.name }}/src/assets|g" -e "s|url('/src/assets|url('/${{ github.event.repository.name }}/src/assets|g" {} +
|
|
38
43
|
- name: Copy ig-theme.css to dist
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const cli_core_1 = require("@igniteui/cli-core");
|
|
36
|
-
const path = __importStar(require("path"));
|
|
37
|
-
const resolve = __importStar(require("resolve"));
|
|
38
|
-
const command = {
|
|
39
|
-
command: "quickstart",
|
|
40
|
-
describe: "creates rich feature grid",
|
|
41
|
-
builder: (yargs) => {
|
|
42
|
-
return yargs
|
|
43
|
-
.option("framework", {
|
|
44
|
-
alias: "f",
|
|
45
|
-
default: "jquery",
|
|
46
|
-
describe: "Framework to setup quickstart for",
|
|
47
|
-
type: "string",
|
|
48
|
-
choices: ["jquery", "react", "angular"]
|
|
49
|
-
})
|
|
50
|
-
.usage(""); // do not show any usage instructions before the commands list
|
|
51
|
-
},
|
|
52
|
-
handler(argv) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
cli_core_1.GoogleAnalytics.post({
|
|
55
|
-
t: "screenview",
|
|
56
|
-
cd: "Quick Start"
|
|
57
|
-
});
|
|
58
|
-
cli_core_1.Util.log("Quick Start!");
|
|
59
|
-
const framework = argv.framework;
|
|
60
|
-
let name = "";
|
|
61
|
-
let type = "";
|
|
62
|
-
switch (framework) {
|
|
63
|
-
case "jquery":
|
|
64
|
-
name = "jquery-quickstart";
|
|
65
|
-
type = "js";
|
|
66
|
-
break;
|
|
67
|
-
case "react":
|
|
68
|
-
name = "react-quickstart";
|
|
69
|
-
type = "es6";
|
|
70
|
-
break;
|
|
71
|
-
case "angular":
|
|
72
|
-
name = "angular-quickstart";
|
|
73
|
-
type = "ig-ts";
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
cli_core_1.Util.error("The framework is not supported!", "red");
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const outDir = path.join(process.cwd(), name);
|
|
80
|
-
if (cli_core_1.Util.directoryExists(path.join(__dirname, "../../templates/quickstart", argv.framework))) {
|
|
81
|
-
yield cli_core_1.Util.processTemplates(path.join(__dirname, "../../templates/quickstart", argv.framework), outDir, {}, {}, false);
|
|
82
|
-
}
|
|
83
|
-
//change folder
|
|
84
|
-
process.chdir(name);
|
|
85
|
-
cli_core_1.GoogleAnalytics.post({
|
|
86
|
-
t: "event",
|
|
87
|
-
ec: "$ig quickstart",
|
|
88
|
-
ea: `framework: ${argv.framework}`,
|
|
89
|
-
cd1: framework,
|
|
90
|
-
cd2: type,
|
|
91
|
-
cd3: name
|
|
92
|
-
});
|
|
93
|
-
if (argv.framework === "react") {
|
|
94
|
-
cli_core_1.Util.log("react-quickstart loaded");
|
|
95
|
-
cli_core_1.Util.execSync("npm install");
|
|
96
|
-
cli_core_1.Util.execSync("npm run webpack");
|
|
97
|
-
// lite-server installed per project
|
|
98
|
-
const liteServer = require(resolve.sync("lite-server", { basedir: process.cwd() }));
|
|
99
|
-
liteServer.server();
|
|
100
|
-
}
|
|
101
|
-
if (argv.framework === "angular") {
|
|
102
|
-
cli_core_1.Util.log("angular-quickstart loaded");
|
|
103
|
-
cli_core_1.Util.execSync("npm install");
|
|
104
|
-
cli_core_1.Util.execSync("npm start");
|
|
105
|
-
}
|
|
106
|
-
if (argv.framework === "jquery") {
|
|
107
|
-
cli_core_1.Util.log("jquery-quickstart loaded");
|
|
108
|
-
cli_core_1.Util.execSync("npm install");
|
|
109
|
-
// lite-server installed per project
|
|
110
|
-
const liteServer = require(resolve.sync("lite-server", { basedir: process.cwd() }));
|
|
111
|
-
liteServer.server();
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
exports.default = command;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
end_of_line = lf
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
trim_trailing_whitespace = true
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[*.md]
|
|
14
|
-
max_line_length = 0
|
|
15
|
-
trim_trailing_whitespace = false
|
|
16
|
-
|
|
17
|
-
# Indentation override
|
|
18
|
-
#[lib/**.js]
|
|
19
|
-
#[{package.json}]
|
|
20
|
-
#[**/**.js]
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014-2016 Google, Inc.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
## Prerequisites
|
|
2
|
-
|
|
3
|
-
Node.js and npm are essential to Angular development.
|
|
4
|
-
|
|
5
|
-
<a href="https://docs.npmjs.com/getting-started/installing-node" target="_blank" title="Installing Node.js and updating npm">
|
|
6
|
-
Get it now</a> if it's not already installed on your machine.
|
|
7
|
-
|
|
8
|
-
**Verify that you are running at least node `v4.x.x` and npm `3.x.x`**
|
|
9
|
-
by running `node -v` and `npm -v` in a terminal/console window.
|
|
10
|
-
Older versions produce errors.
|
|
11
|
-
|
|
12
|
-
We recommend [nvm](https://github.com/creationix/nvm) for managing multiple versions of node and npm.
|
|
13
|
-
|
|
14
|
-
## Install npm packages
|
|
15
|
-
|
|
16
|
-
> See npm and nvm version notes above
|
|
17
|
-
|
|
18
|
-
Install the npm packages described in the `package.json` and verify that it works:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install
|
|
22
|
-
npm start
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The `npm start` command first compiles the application,
|
|
26
|
-
then simultaneously re-compiles and runs the `lite-server`.
|
|
27
|
-
Both the compiler and the server watch for file changes.
|
|
28
|
-
|
|
29
|
-
Shut it down manually with Ctrl-C.
|
|
30
|
-
|
|
31
|
-
You're ready to write your application.
|
|
32
|
-
|
|
33
|
-
### npm scripts
|
|
34
|
-
|
|
35
|
-
We've captured many of the most useful commands in npm scripts defined in the `package.json`:
|
|
36
|
-
|
|
37
|
-
* `npm start` - runs the compiler and a server at the same time, both in "watch mode".
|
|
38
|
-
* `npm run tsc` - runs the TypeScript compiler once.
|
|
39
|
-
* `npm run tsc:w` - runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.
|
|
40
|
-
* `npm run lite` - runs the [lite-server](https://www.npmjs.com/package/lite-server), a light-weight, static file server, written and maintained by
|
|
41
|
-
[John Papa](https://github.com/johnpapa) and
|
|
42
|
-
[Christopher Martin](https://github.com/cgmartin)
|
|
43
|
-
with excellent support for Angular apps that use routing.
|
|
44
|
-
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'my-app',
|
|
5
|
-
template: `<h1 id="mainheader">My IgniteUI Angular App</h1>
|
|
6
|
-
<h2>igGrid</h2>
|
|
7
|
-
<ig-grid
|
|
8
|
-
widgetId="grid1"
|
|
9
|
-
[autoCommit]="true"
|
|
10
|
-
[dataSource]="data"
|
|
11
|
-
[autoGenerateColumns]="true"
|
|
12
|
-
>
|
|
13
|
-
</ig-grid>
|
|
14
|
-
|
|
15
|
-
<h2>igEditors</h2>
|
|
16
|
-
<ig-text-editor value="John"></ig-text-editor>
|
|
17
|
-
<br/>
|
|
18
|
-
<ig-date-editor value="{{currDate | date}}"></ig-date-editor>
|
|
19
|
-
<br/>
|
|
20
|
-
<ig-mask-editor value="mask edit"></ig-mask-editor>
|
|
21
|
-
<br/>
|
|
22
|
-
<ig-currency-editor value="40"></ig-currency-editor>
|
|
23
|
-
<br/>
|
|
24
|
-
<ig-numeric-editor value="40"></ig-numeric-editor>
|
|
25
|
-
<br/>
|
|
26
|
-
<ig-percent-editor value="40"></ig-percent-editor>
|
|
27
|
-
<br/>
|
|
28
|
-
<ig-date-picker value="{{currDate | date}}"></ig-date-picker>
|
|
29
|
-
|
|
30
|
-
<h2>igCombo</h2>
|
|
31
|
-
<ig-combo [dataSource]="data" textKey="Name" valueKey="ProductID" [(ngModel)]="value"></ig-combo >
|
|
32
|
-
|
|
33
|
-
<h2>igTree</h2>
|
|
34
|
-
<ig-tree widgetId="tree1" [dataSource]="treeData" [bindings]="treeBinding"></ig-tree>
|
|
35
|
-
|
|
36
|
-
<h2>igDialog</h2>
|
|
37
|
-
<ig-dialog [(state)]="dialogState" (stateChanged)="stateChanged()"></ig-dialog>
|
|
38
|
-
<button (click)="btnClicked()">Open Dialog</button>
|
|
39
|
-
|
|
40
|
-
<h2>igDataChart</h2>
|
|
41
|
-
<ig-data-chart [(options)]="chartOptions" widgetId="datachart1"></ig-data-chart>
|
|
42
|
-
`
|
|
43
|
-
})
|
|
44
|
-
export class AppComponent {
|
|
45
|
-
private data: any;
|
|
46
|
-
private currDate: Date;
|
|
47
|
-
private value: any;
|
|
48
|
-
private treeData: any;
|
|
49
|
-
private treeBinding: any;
|
|
50
|
-
private dialogState: string;
|
|
51
|
-
private chartOptions: any;
|
|
52
|
-
|
|
53
|
-
constructor() {
|
|
54
|
-
this.data = this.getData();
|
|
55
|
-
this.currDate = new Date();
|
|
56
|
-
this.value = 1;
|
|
57
|
-
this.treeData = this.getTreeData();
|
|
58
|
-
this.treeBinding = {
|
|
59
|
-
textKey: 'RegionName',
|
|
60
|
-
valueKey: 'ID',
|
|
61
|
-
childDataProperty: 'Countries',
|
|
62
|
-
bindings: {
|
|
63
|
-
textKey: 'CountryName',
|
|
64
|
-
valueKey: 'ID'
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
this.dialogState = 'closed';
|
|
68
|
-
this.chartOptions = {
|
|
69
|
-
dataSource: this.getChartData(),
|
|
70
|
-
axes: [{
|
|
71
|
-
name: 'NameAxis',
|
|
72
|
-
type: 'categoryX',
|
|
73
|
-
title: 'Country',
|
|
74
|
-
label: 'CountryName'
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'PopulationAxis',
|
|
78
|
-
type: 'numericY',
|
|
79
|
-
minimumValue: 0,
|
|
80
|
-
title: 'Millions of People',
|
|
81
|
-
}],
|
|
82
|
-
series: [{
|
|
83
|
-
name: '2015Population',
|
|
84
|
-
type: 'column',
|
|
85
|
-
isHighlightingEnabled: true,
|
|
86
|
-
isTransitionInEnabled: true,
|
|
87
|
-
xAxis: 'NameAxis',
|
|
88
|
-
yAxis: 'PopulationAxis',
|
|
89
|
-
valueMemberPath: 'Pop2015'
|
|
90
|
-
}]
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
btnClicked() {
|
|
95
|
-
this.dialogState = 'opened';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
stateChanged() {
|
|
99
|
-
this.dialogState = 'closed';
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
getData() {
|
|
103
|
-
return [
|
|
104
|
-
{ 'ProductID': 1, 'Name': 'Adjustable Race', 'ProductNumber': 'AR-5381'},
|
|
105
|
-
{ 'ProductID': 2, 'Name': 'Bearing Ball', 'ProductNumber': 'BA-8327'},
|
|
106
|
-
{ 'ProductID': 3, 'Name': 'BB Ball Bearing', 'ProductNumber': 'BE-2349'},
|
|
107
|
-
{ 'ProductID': 4, 'Name': 'Headset Ball Bearings', 'ProductNumber': 'BE-2908'},
|
|
108
|
-
{ 'ProductID': 5, 'Name': 'Blade', 'ProductNumber': 'BL-2036'},
|
|
109
|
-
{ 'ProductID': 6, 'Name': 'LL Crankarm', 'ProductNumber': 'CA-5965'},
|
|
110
|
-
{ 'ProductID': 7, 'Name': 'ML Crankarm', 'ProductNumber': 'CA-6738'},
|
|
111
|
-
{ 'ProductID': 8, 'Name': 'HL Crankarm', 'ProductNumber': 'CA-7457'},
|
|
112
|
-
{ 'ProductID': 9, 'Name': 'Chainring Bolts', 'ProductNumber': 'CB-2903'}
|
|
113
|
-
];
|
|
114
|
-
}
|
|
115
|
-
getTreeData() {
|
|
116
|
-
return [
|
|
117
|
-
{
|
|
118
|
-
'ID': 1, 'RegionName': 'North America', 'Countries':
|
|
119
|
-
[
|
|
120
|
-
{ 'ID': 1, 'CountryName': 'United States' },
|
|
121
|
-
{ 'ID': 2, 'CountryName': 'Canada' },
|
|
122
|
-
{ 'ID': 3, 'CountryName': 'Mexico' }
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
'ID': 2, 'RegionName': 'South America', 'Countries':
|
|
127
|
-
[
|
|
128
|
-
{ 'ID': 4, 'CountryName': 'Brazil' },
|
|
129
|
-
{ 'ID': 5, 'CountryName': 'Uruguay' }
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
'ID': 3, 'RegionName': 'Europe', 'Countries':
|
|
134
|
-
[
|
|
135
|
-
{ 'ID': 6, 'CountryName': 'United Kingdom' },
|
|
136
|
-
{ 'ID': 7, 'CountryName': 'Germany' },
|
|
137
|
-
{ 'ID': 8, 'CountryName': 'Bulgaria' }
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
];
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
getChartData() {
|
|
144
|
-
return [
|
|
145
|
-
{ 'CountryName': 'China', 'Pop1995': 1216, 'Pop2005': 1297, 'Pop2015': 1361, 'Pop2025': 1394 },
|
|
146
|
-
{ 'CountryName': 'India', 'Pop1995': 920, 'Pop2005': 1090, 'Pop2015': 1251, 'Pop2025': 1396 },
|
|
147
|
-
{ 'CountryName': 'United States', 'Pop1995': 266, 'Pop2005': 295, 'Pop2015': 322, 'Pop2025': 351 },
|
|
148
|
-
{ 'CountryName': 'Indonesia', 'Pop1995': 197, 'Pop2005': 229, 'Pop2015': 256, 'Pop2025': 277 },
|
|
149
|
-
{ 'CountryName': 'Brazil', 'Pop1995': 161, 'Pop2005': 186, 'Pop2015': 204, 'Pop2025': 218 }
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
import { AppComponent } from './app.component';
|
|
6
|
-
|
|
7
|
-
import { IgGridComponent, IgTextEditorComponent, IgDateEditorComponent,
|
|
8
|
-
IgMaskEditorComponent, IgCurrencyEditorComponent, IgNumericEditorComponent,
|
|
9
|
-
IgPercentEditorComponent, IgDatePickerComponent, IgComboComponent,
|
|
10
|
-
IgTreeComponent, IgDialogComponent, IgDataChartComponent
|
|
11
|
-
} from 'igniteui-angular-wrappers';
|
|
12
|
-
|
|
13
|
-
@NgModule({
|
|
14
|
-
imports: [ BrowserModule , FormsModule ],
|
|
15
|
-
declarations: [AppComponent, IgGridComponent, IgTextEditorComponent, IgDateEditorComponent,
|
|
16
|
-
IgMaskEditorComponent, IgCurrencyEditorComponent, IgNumericEditorComponent,
|
|
17
|
-
IgPercentEditorComponent, IgDatePickerComponent, IgComboComponent,
|
|
18
|
-
IgTreeComponent, IgDialogComponent, IgDataChartComponent],
|
|
19
|
-
bootstrap: [ AppComponent ]
|
|
20
|
-
})
|
|
21
|
-
export class AppModule { }
|
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "",
|
|
3
|
-
"project": {
|
|
4
|
-
"framework": "angular",
|
|
5
|
-
"projectType": "",
|
|
6
|
-
"theme": "infragistics",
|
|
7
|
-
"themePath": "./node_modules/ignite-ui/src/css/themes/infragistics/infragistics.theme.css",
|
|
8
|
-
"isBundle": false,
|
|
9
|
-
"bundleFilePath": "/igniteui/dist/ignite.js",
|
|
10
|
-
"components": [],
|
|
11
|
-
"isShowcase": true,
|
|
12
|
-
"version": ""
|
|
13
|
-
},
|
|
14
|
-
"build": {}
|
|
15
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Angular QuickStart</title>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
-
<link rel="stylesheet" href="styles.css">
|
|
8
|
-
|
|
9
|
-
<!-- Ignite UI Required Combined CSS Files -->
|
|
10
|
-
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
|
|
11
|
-
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet" />
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
|
15
|
-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
|
|
16
|
-
|
|
17
|
-
<!-- Polyfill(s) for older browsers -->
|
|
18
|
-
<script src="node_modules/core-js/client/shim.min.js"></script>
|
|
19
|
-
|
|
20
|
-
<script src="node_modules/zone.js/dist/zone.js"></script>
|
|
21
|
-
<script src="node_modules/systemjs/dist/system.src.js"></script>
|
|
22
|
-
|
|
23
|
-
<script src="systemjs.config.js"></script>
|
|
24
|
-
|
|
25
|
-
<!-- Ignite UI Required Combined JavaScript Files -->
|
|
26
|
-
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
|
|
27
|
-
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
|
|
28
|
-
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.dv.js"></script>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
System.import('app').catch(function(err){ console.error(err); });
|
|
32
|
-
</script>
|
|
33
|
-
</head>
|
|
34
|
-
|
|
35
|
-
<body>
|
|
36
|
-
<my-app>Loading...</my-app>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "angular-quickstart",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Ignite UI for jQuery Angular Wrappers quick start",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
|
|
7
|
-
"lint": "tslint ./app/**/*.ts -t verbose",
|
|
8
|
-
"lite": "lite-server",
|
|
9
|
-
"tsc": "tsc",
|
|
10
|
-
"tsc:w": "tsc -w",
|
|
11
|
-
"webdriver:update": "webdriver-manager update"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "",
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@angular/common": "~14.0.0",
|
|
17
|
-
"@angular/compiler": "~14.0.0",
|
|
18
|
-
"@angular/core": "~14.0.0",
|
|
19
|
-
"@angular/forms": "~14.0.0",
|
|
20
|
-
"@angular/platform-browser": "~14.0.0",
|
|
21
|
-
"@angular/platform-browser-dynamic": "~14.0.0",
|
|
22
|
-
"@angular/router": "~14.0.0",
|
|
23
|
-
"angular-in-memory-web-api": "~0.9.0",
|
|
24
|
-
"bootstrap": "^3.3.7",
|
|
25
|
-
"systemjs": "0.19.39",
|
|
26
|
-
"core-js": "^2.4.1",
|
|
27
|
-
"rxjs": "~7.5.0",
|
|
28
|
-
"zone.js": "~0.11.4",
|
|
29
|
-
"igniteui-angular-wrappers": "~14.0.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"concurrently": "^3.1.0",
|
|
33
|
-
"lite-server": "^2.5.4",
|
|
34
|
-
"typescript": "~5.5.4",
|
|
35
|
-
"canonical-path": "0.0.2",
|
|
36
|
-
"http-server": "^0.12.1",
|
|
37
|
-
"tslint": "~6.1.0",
|
|
38
|
-
"lodash": "^4.16.2",
|
|
39
|
-
"webdriver-manager": "10.2.5",
|
|
40
|
-
"rimraf": "^2.5.4",
|
|
41
|
-
"@types/core-js": "^0.9.42",
|
|
42
|
-
"@types/node": "^12.11.1",
|
|
43
|
-
"@types/selenium-webdriver": "^2.53.32"
|
|
44
|
-
},
|
|
45
|
-
"repository": {}
|
|
46
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/* Master Styles */
|
|
2
|
-
h1 {
|
|
3
|
-
color: #369;
|
|
4
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
5
|
-
font-size: 250%;
|
|
6
|
-
}
|
|
7
|
-
h2, h3 {
|
|
8
|
-
color: #444;
|
|
9
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
10
|
-
font-weight: lighter;
|
|
11
|
-
}
|
|
12
|
-
body {
|
|
13
|
-
margin: 2em;
|
|
14
|
-
}
|
|
15
|
-
body, input[text], button {
|
|
16
|
-
color: #888;
|
|
17
|
-
font-family: Cambria, Georgia;
|
|
18
|
-
}
|
|
19
|
-
a {
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
cursor: hand;
|
|
22
|
-
}
|
|
23
|
-
button {
|
|
24
|
-
font-family: Arial;
|
|
25
|
-
background-color: #eee;
|
|
26
|
-
border: none;
|
|
27
|
-
padding: 5px 10px;
|
|
28
|
-
border-radius: 4px;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
cursor: hand;
|
|
31
|
-
}
|
|
32
|
-
button:hover {
|
|
33
|
-
background-color: #cfd8dc;
|
|
34
|
-
}
|
|
35
|
-
button:disabled {
|
|
36
|
-
background-color: #eee;
|
|
37
|
-
color: #aaa;
|
|
38
|
-
cursor: auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Navigation link styles */
|
|
42
|
-
nav a {
|
|
43
|
-
padding: 5px 10px;
|
|
44
|
-
text-decoration: none;
|
|
45
|
-
margin-top: 10px;
|
|
46
|
-
display: inline-block;
|
|
47
|
-
background-color: #eee;
|
|
48
|
-
border-radius: 4px;
|
|
49
|
-
}
|
|
50
|
-
nav a:visited, a:link {
|
|
51
|
-
color: #607D8B;
|
|
52
|
-
}
|
|
53
|
-
nav a:hover {
|
|
54
|
-
color: #039be5;
|
|
55
|
-
background-color: #CFD8DC;
|
|
56
|
-
}
|
|
57
|
-
nav a.router-link-active {
|
|
58
|
-
color: #039be5;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* items class */
|
|
62
|
-
.items {
|
|
63
|
-
margin: 0 0 2em 0;
|
|
64
|
-
list-style-type: none;
|
|
65
|
-
padding: 0;
|
|
66
|
-
width: 24em;
|
|
67
|
-
}
|
|
68
|
-
.items li {
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
position: relative;
|
|
71
|
-
left: 0;
|
|
72
|
-
background-color: #EEE;
|
|
73
|
-
margin: .5em;
|
|
74
|
-
padding: .3em 0;
|
|
75
|
-
height: 1.6em;
|
|
76
|
-
border-radius: 4px;
|
|
77
|
-
}
|
|
78
|
-
.items li:hover {
|
|
79
|
-
color: #607D8B;
|
|
80
|
-
background-color: #DDD;
|
|
81
|
-
left: .1em;
|
|
82
|
-
}
|
|
83
|
-
.items li.selected:hover {
|
|
84
|
-
background-color: #BBD8DC;
|
|
85
|
-
color: white;
|
|
86
|
-
}
|
|
87
|
-
.items .text {
|
|
88
|
-
position: relative;
|
|
89
|
-
top: -3px;
|
|
90
|
-
}
|
|
91
|
-
.items {
|
|
92
|
-
margin: 0 0 2em 0;
|
|
93
|
-
list-style-type: none;
|
|
94
|
-
padding: 0;
|
|
95
|
-
width: 24em;
|
|
96
|
-
}
|
|
97
|
-
.items li {
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
position: relative;
|
|
100
|
-
left: 0;
|
|
101
|
-
background-color: #EEE;
|
|
102
|
-
margin: .5em;
|
|
103
|
-
padding: .3em 0;
|
|
104
|
-
height: 1.6em;
|
|
105
|
-
border-radius: 4px;
|
|
106
|
-
}
|
|
107
|
-
.items li:hover {
|
|
108
|
-
color: #607D8B;
|
|
109
|
-
background-color: #DDD;
|
|
110
|
-
left: .1em;
|
|
111
|
-
}
|
|
112
|
-
.items li.selected {
|
|
113
|
-
background-color: #CFD8DC;
|
|
114
|
-
color: white;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.items li.selected:hover {
|
|
118
|
-
background-color: #BBD8DC;
|
|
119
|
-
}
|
|
120
|
-
.items .text {
|
|
121
|
-
position: relative;
|
|
122
|
-
top: -3px;
|
|
123
|
-
}
|
|
124
|
-
.items .badge {
|
|
125
|
-
display: inline-block;
|
|
126
|
-
font-size: small;
|
|
127
|
-
color: white;
|
|
128
|
-
padding: 0.8em 0.7em 0 0.7em;
|
|
129
|
-
background-color: #607D8B;
|
|
130
|
-
line-height: 1em;
|
|
131
|
-
position: relative;
|
|
132
|
-
left: -1px;
|
|
133
|
-
top: -4px;
|
|
134
|
-
height: 1.8em;
|
|
135
|
-
margin-right: .8em;
|
|
136
|
-
border-radius: 4px 0 0 4px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* everywhere else */
|
|
140
|
-
* {
|
|
141
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
142
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System configuration for Angular samples
|
|
3
|
-
* Adjust as necessary for your application needs.
|
|
4
|
-
*/
|
|
5
|
-
(function (global) {
|
|
6
|
-
System.config({
|
|
7
|
-
paths: {
|
|
8
|
-
// paths serve as alias
|
|
9
|
-
'npm:': 'node_modules/'
|
|
10
|
-
},
|
|
11
|
-
// map tells the System loader where to look for things
|
|
12
|
-
map: {
|
|
13
|
-
// our app is within the app folder
|
|
14
|
-
app: 'app',
|
|
15
|
-
|
|
16
|
-
// angular bundles
|
|
17
|
-
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
|
|
18
|
-
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
|
|
19
|
-
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
|
|
20
|
-
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
|
|
21
|
-
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
|
22
|
-
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
|
|
23
|
-
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
|
|
24
|
-
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
|
|
25
|
-
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
|
|
26
|
-
|
|
27
|
-
// other libraries
|
|
28
|
-
'rxjs': 'npm:rxjs',
|
|
29
|
-
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
|
|
30
|
-
|
|
31
|
-
//Ignite UI Angular wrappers library
|
|
32
|
-
'igniteui-angular-wrappers': 'npm:igniteui-angular-wrappers'
|
|
33
|
-
},
|
|
34
|
-
// packages tells the System loader how to load when no filename and/or no extension
|
|
35
|
-
packages: {
|
|
36
|
-
app: {
|
|
37
|
-
main: './main.js',
|
|
38
|
-
defaultExtension: 'js'
|
|
39
|
-
},
|
|
40
|
-
rxjs: {
|
|
41
|
-
main: './index.js',
|
|
42
|
-
defaultExtension: 'js'
|
|
43
|
-
},
|
|
44
|
-
'rxjs/operators': {
|
|
45
|
-
main: './index.js',
|
|
46
|
-
defaultExtension: 'js'
|
|
47
|
-
},
|
|
48
|
-
'angular-in-memory-web-api': {
|
|
49
|
-
main: './index.js',
|
|
50
|
-
defaultExtension: 'js'
|
|
51
|
-
},
|
|
52
|
-
'igniteui-angular-wrappers': {
|
|
53
|
-
main: 'bundles/igniteui-angular-wrappers.umd.js',
|
|
54
|
-
defaultExtension: 'js'
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
})(this);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es6",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"emitDecoratorMetadata": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"removeComments": false,
|
|
10
|
-
"noImplicitAny": false,
|
|
11
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
12
|
-
"typeRoots": [
|
|
13
|
-
"./node_modules/@types/"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"app/app.module.ts",
|
|
18
|
-
"app/app.component.ts",
|
|
19
|
-
"app/main.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rules": {
|
|
3
|
-
"class-name": true,
|
|
4
|
-
"comment-format": [
|
|
5
|
-
true,
|
|
6
|
-
"check-space"
|
|
7
|
-
],
|
|
8
|
-
"curly": true,
|
|
9
|
-
"eofline": true,
|
|
10
|
-
"forin": true,
|
|
11
|
-
"indent": [
|
|
12
|
-
true,
|
|
13
|
-
"spaces"
|
|
14
|
-
],
|
|
15
|
-
"label-position": true,
|
|
16
|
-
"label-undefined": true,
|
|
17
|
-
"max-line-length": [
|
|
18
|
-
true,
|
|
19
|
-
140
|
|
20
|
-
],
|
|
21
|
-
"member-access": false,
|
|
22
|
-
"member-ordering": [
|
|
23
|
-
true,
|
|
24
|
-
"static-before-instance",
|
|
25
|
-
"variables-before-functions"
|
|
26
|
-
],
|
|
27
|
-
"no-arg": true,
|
|
28
|
-
"no-bitwise": true,
|
|
29
|
-
"no-console": [
|
|
30
|
-
true,
|
|
31
|
-
"debug",
|
|
32
|
-
"info",
|
|
33
|
-
"time",
|
|
34
|
-
"timeEnd",
|
|
35
|
-
"trace"
|
|
36
|
-
],
|
|
37
|
-
"no-construct": true,
|
|
38
|
-
"no-debugger": true,
|
|
39
|
-
"no-duplicate-key": true,
|
|
40
|
-
"no-duplicate-variable": true,
|
|
41
|
-
"no-empty": false,
|
|
42
|
-
"no-eval": true,
|
|
43
|
-
"no-inferrable-types": true,
|
|
44
|
-
"no-shadowed-variable": true,
|
|
45
|
-
"no-string-literal": false,
|
|
46
|
-
"no-switch-case-fall-through": true,
|
|
47
|
-
"no-trailing-whitespace": true,
|
|
48
|
-
"no-unused-expression": true,
|
|
49
|
-
"no-unused-variable": true,
|
|
50
|
-
"no-unreachable": true,
|
|
51
|
-
"no-use-before-declare": true,
|
|
52
|
-
"no-var-keyword": true,
|
|
53
|
-
"object-literal-sort-keys": false,
|
|
54
|
-
"one-line": [
|
|
55
|
-
true,
|
|
56
|
-
"check-open-brace",
|
|
57
|
-
"check-catch",
|
|
58
|
-
"check-else",
|
|
59
|
-
"check-whitespace"
|
|
60
|
-
],
|
|
61
|
-
"quotemark": [
|
|
62
|
-
true,
|
|
63
|
-
"single"
|
|
64
|
-
],
|
|
65
|
-
"radix": true,
|
|
66
|
-
"semicolon": [
|
|
67
|
-
"always"
|
|
68
|
-
],
|
|
69
|
-
"triple-equals": [
|
|
70
|
-
true,
|
|
71
|
-
"allow-null-check"
|
|
72
|
-
],
|
|
73
|
-
"typedef-whitespace": [
|
|
74
|
-
true,
|
|
75
|
-
{
|
|
76
|
-
"call-signature": "nospace",
|
|
77
|
-
"index-signature": "nospace",
|
|
78
|
-
"parameter": "nospace",
|
|
79
|
-
"property-declaration": "nospace",
|
|
80
|
-
"variable-declaration": "nospace"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"variable-name": false,
|
|
84
|
-
"whitespace": [
|
|
85
|
-
true,
|
|
86
|
-
"check-branch",
|
|
87
|
-
"check-decl",
|
|
88
|
-
"check-operator",
|
|
89
|
-
"check-separator",
|
|
90
|
-
"check-type"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title></title>
|
|
5
|
-
|
|
6
|
-
<!-- Ignite UI Required Combined CSS Files -->
|
|
7
|
-
<link href="https://cdn-na.infragistics.com/igniteui/2020.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
|
|
8
|
-
<link href="https://cdn-na.infragistics.com/igniteui/2020.1/latest/css/structure/infragistics.css" rel="stylesheet" />
|
|
9
|
-
|
|
10
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" integrity="sha512-3n19xznO0ubPpSwYCRRBgHh63DrV+bdZfHK52b1esvId4GsfwStQNPJFjeQos2h3JwCmZl0/LgLxSKMAI55hgw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
11
|
-
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
|
|
13
|
-
|
|
14
|
-
<!-- Ignite UI Required Combined JavaScript Files -->
|
|
15
|
-
<script src="https://cdn-na.infragistics.com/igniteui/2020.1/latest/js/infragistics.core.js"></script>
|
|
16
|
-
<script src="https://cdn-na.infragistics.com/igniteui/2020.1/latest/js/infragistics.lob.js"></script>
|
|
17
|
-
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
|
|
21
|
-
<table id="grid"></table>
|
|
22
|
-
|
|
23
|
-
<script src="https://www.igniteui.com/data-files/nw-products.js"></script>
|
|
24
|
-
<script>
|
|
25
|
-
$(function () {
|
|
26
|
-
for (var i = 0; i < northwindProducts.length; i++) {
|
|
27
|
-
northwindProducts[i].ImageUrl = "https://lorempixel.com/50/50/food/" + (i % 10) + "/";
|
|
28
|
-
}
|
|
29
|
-
$("#grid").igGrid({
|
|
30
|
-
primaryKey: "ProductID",
|
|
31
|
-
caption : "<span> <img src=\"//www.infragistics.com/media/441501/horz_logo.png\" alt=\"Infragistics\"></span>",
|
|
32
|
-
width: '100%',
|
|
33
|
-
columns: [
|
|
34
|
-
{ headerText: "Product ID", key: "ProductID", dataType: "number", width: "15%", hidden: true },
|
|
35
|
-
{ headerText: "Image", key: "ImageUrl", dataType: "string", width: "15%", template: "<img style=\"height:50px;\" src=\"${ImageUrl}\"/>" },
|
|
36
|
-
{ headerText: "Product Name", key: "ProductName", dataType: "string", width: "25%" },
|
|
37
|
-
{ headerText: "Category", key: "CategoryName", dataType: "string", width: "25%" },
|
|
38
|
-
{ headerText: "Units In Stock", key: "InStock", dataType: "number", width: "35%" }
|
|
39
|
-
],
|
|
40
|
-
autofitLastColumn: false,
|
|
41
|
-
autoGenerateColumns: false,
|
|
42
|
-
dataSource: northwindProducts,
|
|
43
|
-
responseDataKey: "results",
|
|
44
|
-
autoCommit: true,
|
|
45
|
-
features: [
|
|
46
|
-
{
|
|
47
|
-
name: "Sorting",
|
|
48
|
-
sortingDialogContainment: "window"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "Filtering",
|
|
52
|
-
type: "local",
|
|
53
|
-
columnSettings: [
|
|
54
|
-
{
|
|
55
|
-
columnKey: "ImageUrl",
|
|
56
|
-
allowFiltering: false
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
columnKey: "InStock",
|
|
60
|
-
condition: "greaterThan"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "GroupBy",
|
|
66
|
-
columnSettings: [
|
|
67
|
-
{
|
|
68
|
-
columnKey: "CategoryName",
|
|
69
|
-
isGroupBy: true
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: "Selection"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "Paging",
|
|
78
|
-
pageSize: 10
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "Resizing"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "Updating",
|
|
85
|
-
editMode: "dialog",
|
|
86
|
-
enableAddRow: false,
|
|
87
|
-
columnSettings: [
|
|
88
|
-
{
|
|
89
|
-
columnKey: "ImageUrl",
|
|
90
|
-
readOnly: false
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
</script>
|
|
98
|
-
</body>
|
|
99
|
-
</html>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
6
|
-
<meta name="theme-color" content="#000000">
|
|
7
|
-
|
|
8
|
-
<title>React App</title>
|
|
9
|
-
<link href="https://secure-cdn-na.infragistics.com/igniteui/2017.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet">
|
|
10
|
-
<link href="https://secure-cdn-na.infragistics.com/igniteui/2017.1/latest/css/structure/infragistics.css" rel="stylesheet">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<noscript>
|
|
14
|
-
You need to enable JavaScript to run this app.
|
|
15
|
-
</noscript>
|
|
16
|
-
|
|
17
|
-
<div id="root"></div>
|
|
18
|
-
<script src="build/index.bundle.js"></script>
|
|
19
|
-
<!--
|
|
20
|
-
This HTML file is a template.
|
|
21
|
-
If you open it directly in the browser, you will see an empty page.
|
|
22
|
-
|
|
23
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
24
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
25
|
-
|
|
26
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
27
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
28
|
-
-->
|
|
29
|
-
</body>
|
|
30
|
-
</html>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ignite-ui-cli",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Ignite UI for jQuery React Wrappers quick start",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"CLI",
|
|
7
|
-
"Ignite UI"
|
|
8
|
-
],
|
|
9
|
-
"main": "lib/cli.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"webpack": "webpack"
|
|
12
|
-
},
|
|
13
|
-
"author": "PwnJS",
|
|
14
|
-
"license": "ISC",
|
|
15
|
-
"bin": {
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"ignite-ui": "~21.2",
|
|
19
|
-
"lite-server": "^2.3.0",
|
|
20
|
-
"babel-runtime": "6.22.0",
|
|
21
|
-
"react": "15.4.2",
|
|
22
|
-
"react-dom": "15.4.2",
|
|
23
|
-
"react-router": "2.8.0",
|
|
24
|
-
"igniteui-react": "^1.3.0",
|
|
25
|
-
"jquery": "^3.2.1",
|
|
26
|
-
"jquery-ui": "^1.12.1"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"babel-core": "6.16.0",
|
|
30
|
-
"babel-loader": "6.2.7",
|
|
31
|
-
"babel-plugin-transform-runtime": "6.15.0",
|
|
32
|
-
"babel-preset-es2015": "6.18.0",
|
|
33
|
-
"babel-preset-react": "6.22.0",
|
|
34
|
-
"css-loader": "0.14.5",
|
|
35
|
-
"extract-text-webpack-plugin": "2.0.0-beta.5",
|
|
36
|
-
"file-loader": "0.8.5",
|
|
37
|
-
"html-webpack-plugin": "2.26.0",
|
|
38
|
-
"style-loader": "0.13.1",
|
|
39
|
-
"webpack": "5.94.0",
|
|
40
|
-
"webpack-dev-server": "^5.1.0"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import 'jquery';
|
|
3
|
-
import 'jquery-ui'
|
|
4
|
-
import "ignite-ui/js/infragistics.core-lite.js";
|
|
5
|
-
import "ignite-ui/js/infragistics.lob-lite.js";
|
|
6
|
-
import IgDialog from "igniteui-react/ui/igDialog.js";
|
|
7
|
-
|
|
8
|
-
class App extends Component {
|
|
9
|
-
render() {
|
|
10
|
-
return (
|
|
11
|
-
<div className="App">
|
|
12
|
-
<div className="App-header">
|
|
13
|
-
<h2>This is igDialog</h2>
|
|
14
|
-
</div>
|
|
15
|
-
<IgDialog
|
|
16
|
-
id="dialog"
|
|
17
|
-
height= "200px"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default App;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var path = require('path');
|
|
2
|
-
var webpack = require('webpack');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
entry: './src/index.js',
|
|
6
|
-
output: {
|
|
7
|
-
path: path.resolve(__dirname, 'build'),
|
|
8
|
-
filename: 'index.bundle.js'
|
|
9
|
-
},
|
|
10
|
-
module: {
|
|
11
|
-
loaders: [
|
|
12
|
-
{
|
|
13
|
-
test: /\.js$/,
|
|
14
|
-
loader: ('babel-loader'),
|
|
15
|
-
options: {
|
|
16
|
-
presets: ['react'],
|
|
17
|
-
// @remove-on-eject-end
|
|
18
|
-
// This is a feature of `babel-loader` for webpack (not Babel itself).
|
|
19
|
-
// It enables caching results in ./node_modules/.cache/babel-loader/
|
|
20
|
-
// directory for faster rebuilds.
|
|
21
|
-
cacheDirectory: true,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
test: /\.css$/,
|
|
26
|
-
loader:'style!css!'
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
stats: {
|
|
31
|
-
colors: true
|
|
32
|
-
},
|
|
33
|
-
devtool: 'source-map'
|
|
34
|
-
};
|