igniteui-cli 9.0.0 → 9.0.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/migrations/update-4_2_3/index.spec.js +2 -2
- package/package.json +3 -3
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.ts +61 -0
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/index.js +18 -0
- package/templates/webcomponents/igc-ts/financial-chart/default/files/src/app/__path__/StockIndexData.ts +130 -0
- package/templates/webcomponents/igc-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.ts +53 -0
- package/templates/webcomponents/igc-ts/financial-chart/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/financial-chart/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/financial-chart/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/financial-chart/index.js +12 -0
- package/templates/webcomponents/igc-ts/grid/default/files/src/app/__path__/__filePrefix__.ts +4 -7
- package/templates/webcomponents/igc-ts/grid/default/index.js +1 -1
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/DataGridSharedData.ts +297 -0
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.ts +218 -0
- package/templates/webcomponents/igc-ts/grid/grid-editing/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/grid/grid-editing/index.js +19 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/DataGridSharedData.ts +297 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/__filePrefix__.ts +188 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/index.js +19 -0
- package/templates/webcomponents/igc-ts/grid/index.js +1 -1
- package/templates/webcomponents/igc-ts/groups.json +3 -2
- package/templates/webcomponents/igc-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.ts +43 -0
- package/templates/webcomponents/igc-ts/linear-gauge/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/linear-gauge/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/linear-gauge/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/linear-gauge/index.js +12 -0
- package/templates/webcomponents/igc-ts/list/default/index.js +1 -1
- package/templates/webcomponents/igc-ts/list/index.js +1 -1
- package/templates/webcomponents/igc-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.ts +1 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/index.html +0 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/package.json +25 -8
- package/templates/webcomponents/igc-ts/projects/empty/files/src/app/home/home.component.test.ts +1 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/src/app.ts +7 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/src/index.ts +5 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/tsconfig.json +2 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/webpack.config.mjs +67 -0
- package/templates/webcomponents/igc-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.ts +43 -0
- package/templates/webcomponents/igc-ts/radial-gauge/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/radial-gauge/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/radial-gauge/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/radial-gauge/index.js +12 -0
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
"author": "Infragistics",
|
|
8
8
|
"main": "dist/src/index.js",
|
|
9
9
|
"module": "dist/src/index.js",
|
|
10
|
+
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": "./dist/src/index.js",
|
|
12
13
|
"./$(dash-name).js": "./dist/src/$(dash-name).js"
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
15
16
|
"start": "tsc && wds",
|
|
16
|
-
"build": "
|
|
17
|
+
"build": "webpack --mode production",
|
|
17
18
|
"lint": "eslint --ext .js,.ts,.html . --ignore-path .gitignore",
|
|
18
19
|
"test": "tsc && wtr"
|
|
19
20
|
},
|
|
@@ -21,14 +22,16 @@
|
|
|
21
22
|
"@open-wc/testing": "^2.5.33",
|
|
22
23
|
"@vaadin/router": "^1.7.4",
|
|
23
24
|
"igniteui-webcomponents": "1.0.0",
|
|
24
|
-
"igniteui-webcomponents-grids": "~1.
|
|
25
|
-
"igniteui-webcomponents-core": "~1.
|
|
26
|
-
"igniteui-webcomponents-layouts": "~1.
|
|
27
|
-
"igniteui-webcomponents-inputs": "~1.
|
|
28
|
-
"igniteui-webcomponents-charts": "~1.
|
|
25
|
+
"igniteui-webcomponents-grids": "~1.4.1",
|
|
26
|
+
"igniteui-webcomponents-core": "~1.4.1",
|
|
27
|
+
"igniteui-webcomponents-layouts": "~1.4.1",
|
|
28
|
+
"igniteui-webcomponents-inputs": "~1.4.1",
|
|
29
|
+
"igniteui-webcomponents-charts": "~1.4.1",
|
|
30
|
+
"igniteui-webcomponents-gauges": "~1.4.1",
|
|
29
31
|
"igniteui-dockmanager": "~1.6.0",
|
|
30
32
|
"@igniteui/material-icons-extended": "^2.10.0",
|
|
31
|
-
"lit": "^2.0.2"
|
|
33
|
+
"lit": "^2.0.2",
|
|
34
|
+
"babel-runtime": "^6.26.0"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
37
|
"@open-wc/eslint-config": "^4.3.0",
|
|
@@ -39,7 +42,21 @@
|
|
|
39
42
|
"igniteui-cli": "$(cliVersion)",
|
|
40
43
|
"eslint": "^7.32.0",
|
|
41
44
|
"tslib": "^2.3.1",
|
|
42
|
-
"typescript": "^4.4.2"
|
|
45
|
+
"typescript": "^4.4.2",
|
|
46
|
+
"@babel/cli": "^7.16.0",
|
|
47
|
+
"@babel/core": "^7.16.0",
|
|
48
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
49
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
50
|
+
"@babel/preset-env": "^7.16.4",
|
|
51
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
52
|
+
"@types/source-map": "^0.5.7",
|
|
53
|
+
"babel-loader": "^8.2.3",
|
|
54
|
+
"babel-plugin-transform-custom-element-classes": "^0.1.0",
|
|
55
|
+
"fork-ts-checker-webpack-plugin": "^6.4.2",
|
|
56
|
+
"html-webpack-plugin": "^5.5.0",
|
|
57
|
+
"source-map": "^0.7.3",
|
|
58
|
+
"webpack": "^5.64.2",
|
|
59
|
+
"webpack-cli": "^4.9.1"
|
|
43
60
|
},
|
|
44
61
|
"eslintConfig": {
|
|
45
62
|
"parser": "@typescript-eslint/parser",
|
package/templates/webcomponents/igc-ts/projects/empty/files/src/app/home/home.component.test.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HomeComponent } from './home.component.js';
|
|
|
3
3
|
|
|
4
4
|
describe('HomeComponent', () => {
|
|
5
5
|
it('<my-element> is an instance of MyElement', async () => {
|
|
6
|
-
const element = document.createElement('
|
|
6
|
+
const element = document.createElement('app-home');
|
|
7
7
|
expect(element).to.be.instanceOf(HomeComponent);
|
|
8
8
|
});
|
|
9
9
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-return-assign */
|
|
1
2
|
import {
|
|
2
3
|
defineComponents,
|
|
3
4
|
IgcNavDrawerComponent,
|
|
@@ -9,7 +10,12 @@ import { routes } from './index.js';
|
|
|
9
10
|
import './app/home/home.component';
|
|
10
11
|
import './app/not-found/not-found.component';
|
|
11
12
|
|
|
12
|
-
defineComponents(
|
|
13
|
+
defineComponents(
|
|
14
|
+
IgcNavDrawerComponent,
|
|
15
|
+
IgcNavDrawerItemComponent,
|
|
16
|
+
IgcNavDrawerHeaderItemComponent,
|
|
17
|
+
IgcRippleComponent,
|
|
18
|
+
);
|
|
13
19
|
|
|
14
20
|
export class App extends HTMLElement {
|
|
15
21
|
connectedCallback() {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable import/extensions, quotes, no-tabs, indent, comma-dangle */
|
|
2
|
+
import {
|
|
3
|
+
Route,
|
|
4
|
+
Router
|
|
5
|
+
} from '@vaadin/router';
|
|
2
6
|
import './app/home/home.component';
|
|
3
7
|
|
|
4
8
|
export const routes: Route[] = [
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
2
|
+
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
const __dirname = path.resolve();
|
|
6
|
+
|
|
7
|
+
export default ({
|
|
8
|
+
|
|
9
|
+
entry: path.resolve(__dirname, 'src'),
|
|
10
|
+
devtool: false,
|
|
11
|
+
output: {
|
|
12
|
+
filename: '[chunkhash].bundle.js',
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
resolve: {
|
|
16
|
+
mainFields: ['fesm2015', 'module', 'main'],
|
|
17
|
+
extensions: ['.ts', '.js', '.json'],
|
|
18
|
+
},
|
|
19
|
+
module: {
|
|
20
|
+
rules: [{
|
|
21
|
+
test: /\.m?js/,
|
|
22
|
+
type: "javascript/auto",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
test: /\.m?js/,
|
|
26
|
+
resolve: {
|
|
27
|
+
fullySpecified: false,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
test: /\.(ts|js)$/,
|
|
32
|
+
exclude: /node_modules/,
|
|
33
|
+
loader: 'babel-loader',
|
|
34
|
+
options: {
|
|
35
|
+
"compact": true,
|
|
36
|
+
"presets": [
|
|
37
|
+
["@babel/preset-env", {
|
|
38
|
+
"useBuiltIns": "usage",
|
|
39
|
+
"corejs": 3,
|
|
40
|
+
"targets": {
|
|
41
|
+
"browsers": [
|
|
42
|
+
"last 2 Chrome versions",
|
|
43
|
+
"last 2 Safari versions",
|
|
44
|
+
"last 2 iOS versions",
|
|
45
|
+
"last 2 Firefox versions",
|
|
46
|
+
"last 2 Edge versions"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}],
|
|
50
|
+
"@babel/preset-typescript"
|
|
51
|
+
],
|
|
52
|
+
"plugins": [
|
|
53
|
+
"@babel/plugin-proposal-class-properties",
|
|
54
|
+
"@babel/plugin-transform-runtime"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
}],
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
plugins: [
|
|
61
|
+
new HtmlWebpackPlugin({
|
|
62
|
+
title: '@@AppName',
|
|
63
|
+
template: './index.html',
|
|
64
|
+
}),
|
|
65
|
+
new ForkTsCheckerWebpackPlugin(),
|
|
66
|
+
],
|
|
67
|
+
});
|
package/templates/webcomponents/igc-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IgcRadialGaugeModule,
|
|
3
|
+
} from 'igniteui-webcomponents-gauges';
|
|
4
|
+
import { ModuleManager } from 'igniteui-webcomponents-core';
|
|
5
|
+
|
|
6
|
+
ModuleManager.register(
|
|
7
|
+
IgcRadialGaugeModule,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default class $(ClassName) extends HTMLElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.attachShadow({ mode: 'open' });
|
|
14
|
+
this.shadowRoot!.innerHTML = `
|
|
15
|
+
<style>
|
|
16
|
+
:host{
|
|
17
|
+
height: 50%;
|
|
18
|
+
width: 50%;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<igc-radial-gauge
|
|
22
|
+
height="100%"
|
|
23
|
+
width="50%"
|
|
24
|
+
minimum-value="0" value="50"
|
|
25
|
+
maximum-value="80" interval="10"
|
|
26
|
+
range-brushes ="#a4bd29, #F86232"
|
|
27
|
+
range-outlines="#a4bd29, #F86232" >
|
|
28
|
+
<igc-radial-gauge-range name="range1"
|
|
29
|
+
start-value="10" end-value="25"
|
|
30
|
+
inner-start-extent="0.50" inner-end-extent="0.50"
|
|
31
|
+
outer-start-extent="0.57" outer-end-extent="0.57" >
|
|
32
|
+
</igc-radial-gauge-range>
|
|
33
|
+
<igc-radial-gauge-range name="range2"
|
|
34
|
+
start-value="25" end-value="40"
|
|
35
|
+
inner-start-extent="0.50" inner-end-extent="0.50"
|
|
36
|
+
outer-start-extent="0.57" outer-end-extent="0.57" >
|
|
37
|
+
</igc-radial-gauge-range>
|
|
38
|
+
</igc-radial-gauge>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
customElements.define('app-$(path)', $(ClassName));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
|
|
4
|
+
class IgcradialGaugeTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["RadialGauge"];
|
|
8
|
+
this.controlGroup = "Gauges";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "radial-gauge";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Radial Gauge";
|
|
13
|
+
this.description = "IgcRadialGauge";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcradialGaugeTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcRadialGaugeComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.name = "Radial Gauge";
|
|
8
|
+
this.group = "Gauges";
|
|
9
|
+
this.description = "pick from different gauge views";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
module.exports = new IgcRadialGaugeComponent();
|