igniteui-cli 13.1.1 → 13.1.3
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/package.json +3 -3
- package/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/node.js.yml +33 -0
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +1 -0
- package/templates/react/igr-ts/projects/_base/index.d.ts +1 -0
- package/templates/react/igr-ts/projects/_base/index.js +2 -1
- package/templates/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.ts +21 -0
- package/templates/webcomponents/igc-ts/button-group/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/button-group/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/button-group/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/button-group/index.js +15 -0
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.ts +2 -2
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +8 -8
- package/templates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.test.ts +9 -0
- package/templates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.ts +19 -0
- package/templates/webcomponents/igc-ts/text-area/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/text-area/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/text-area/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/text-area/index.js +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.3",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~17.1.
|
|
76
|
-
"@igniteui/cli-core": "~13.1.
|
|
75
|
+
"@igniteui/angular-templates": "~17.1.1313",
|
|
76
|
+
"@igniteui/cli-core": "~13.1.3",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Node.js CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ $(yamlDefaultBranch) ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ $(yamlDefaultBranch) ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [14.x, 16.x]
|
|
20
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v2
|
|
24
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
25
|
+
uses: actions/setup-node@v2
|
|
26
|
+
with:
|
|
27
|
+
node-version: ${{ matrix.node-version }}
|
|
28
|
+
# cache: 'npm' # enable after committing lock file from first install
|
|
29
|
+
- run: npm i # replace with 'npm ci' after committing lock file from first install
|
|
30
|
+
# - run: npm run lint
|
|
31
|
+
- run: npm run build
|
|
32
|
+
- run: npm run test
|
|
33
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcButtonGroupComponent', () => {
|
|
5
|
+
it('<app-$(path)> is an instance of $(ClassName)', async () => {
|
|
6
|
+
const element = document.createElement('app-$(path)');
|
|
7
|
+
expect(element).to.be.instanceOf($(ClassName));
|
|
8
|
+
});
|
|
9
|
+
});
|
package/templates/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcButtonGroupComponent,
|
|
6
|
+
} from 'igniteui-webcomponents';
|
|
7
|
+
|
|
8
|
+
defineComponents(IgcButtonGroupComponent);
|
|
9
|
+
|
|
10
|
+
@customElement('app-$(path)')
|
|
11
|
+
export default class $(ClassName) extends LitElement {
|
|
12
|
+
render() {
|
|
13
|
+
return html`
|
|
14
|
+
<igc-button-group>
|
|
15
|
+
<igc-toggle-button value="left">Left</igc-toggle-button>
|
|
16
|
+
<igc-toggle-button value="center">Center</igc-toggle-button>
|
|
17
|
+
<igc-toggle-button value="right">Right</igc-toggle-button>
|
|
18
|
+
</igc-button-group>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -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 IgcTabsTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["ButtonGroup"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "button-group";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Button group";
|
|
13
|
+
this.description = "basic IgcButtonGroup";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcTabsTemplate();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcButtonGroupComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Button group";
|
|
11
|
+
this.group = "Data Entry & Display";
|
|
12
|
+
this.description = `Basic button group component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcButtonGroupComponent();
|
package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { customElement } from 'lit/decorators.js';
|
|
|
3
3
|
import {
|
|
4
4
|
EditModeType,
|
|
5
5
|
GridActivationMode,
|
|
6
|
-
|
|
6
|
+
DataGridSelectionMode,
|
|
7
7
|
IgcDataGridComponent,
|
|
8
8
|
IgcDataGridModule,
|
|
9
9
|
IgcGridCellValueChangingEventArgs,
|
|
@@ -193,7 +193,7 @@ export default class $(ClassName) extends LitElement {
|
|
|
193
193
|
if (grid !== null) {
|
|
194
194
|
grid.dataSource = this.data;
|
|
195
195
|
grid.activationMode = GridActivationMode.Cell;
|
|
196
|
-
grid.selectionMode =
|
|
196
|
+
grid.selectionMode = DataGridSelectionMode.SingleCell;
|
|
197
197
|
grid.editMode = EditModeType.Cell;
|
|
198
198
|
grid.cellValueChanging = onCellValueChanging;
|
|
199
199
|
}
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
24
24
|
"@igniteui/material-icons-extended": "^2.11.0",
|
|
25
|
-
"igniteui-dockmanager": "~1.
|
|
26
|
-
"igniteui-webcomponents": "~4.
|
|
27
|
-
"igniteui-webcomponents-charts": "~4.
|
|
28
|
-
"igniteui-webcomponents-core": "~4.
|
|
29
|
-
"igniteui-webcomponents-gauges": "~4.
|
|
30
|
-
"igniteui-webcomponents-grids": "~4.
|
|
31
|
-
"igniteui-webcomponents-inputs": "~4.
|
|
32
|
-
"igniteui-webcomponents-layouts": "~4.
|
|
25
|
+
"igniteui-dockmanager": "~1.14.3",
|
|
26
|
+
"igniteui-webcomponents": "~4.7.0",
|
|
27
|
+
"igniteui-webcomponents-charts": "~4.7.0",
|
|
28
|
+
"igniteui-webcomponents-core": "~4.7.0",
|
|
29
|
+
"igniteui-webcomponents-gauges": "~4.7.0",
|
|
30
|
+
"igniteui-webcomponents-grids": "~4.7.0",
|
|
31
|
+
"igniteui-webcomponents-inputs": "~4.7.0",
|
|
32
|
+
"igniteui-webcomponents-layouts": "~4.7.0",
|
|
33
33
|
"lit": "^2.6.1",
|
|
34
34
|
"typescript": "^4.9.4"
|
|
35
35
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path).js';
|
|
3
|
+
|
|
4
|
+
describe('IgcTextareaComponent', () => {
|
|
5
|
+
it('<app-$(path)> is an instance of $(ClassName)', async () => {
|
|
6
|
+
const element = document.createElement('app-$(path)');
|
|
7
|
+
expect(element).to.be.instanceOf($(ClassName));
|
|
8
|
+
});
|
|
9
|
+
});
|
package/templates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import {
|
|
4
|
+
defineComponents,
|
|
5
|
+
IgcTextareaComponent,
|
|
6
|
+
} from 'igniteui-webcomponents';
|
|
7
|
+
|
|
8
|
+
defineComponents(IgcTextareaComponent);
|
|
9
|
+
|
|
10
|
+
@customElement('app-$(path)')
|
|
11
|
+
export default class $(ClassName) extends LitElement {
|
|
12
|
+
render() {
|
|
13
|
+
return html`
|
|
14
|
+
<igc-textarea
|
|
15
|
+
label="Leave your comment">
|
|
16
|
+
</igc-textarea>
|
|
17
|
+
`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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 IgcTextareaComponent extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Teaxtarea"];
|
|
8
|
+
this.controlGroup = "Data Entry & Display";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "text-area";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Text area";
|
|
13
|
+
this.description = "basic IgcTextarea";
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcTextareaComponent();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_core_1 = require("@igniteui/cli-core");
|
|
4
|
+
class IgcTextareaComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Text area";
|
|
11
|
+
this.group = "Data Entry & Display";
|
|
12
|
+
this.description = `Basic text area component`;
|
|
13
|
+
}
|
|
14
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
15
|
+
// not applicable with custom module
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
module.exports = new IgcTextareaComponent();
|