igniteui-cli 9.0.0-rc.0 → 9.0.0

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.
@@ -56,7 +56,7 @@ function updateConfig(host) {
56
56
  function default_1() {
57
57
  return (host, context) => {
58
58
  context.logger.info("Updating project to Ignite UI CLI 3.0.0");
59
- (0, cli_core_1.addTypography)(host);
59
+ (0, cli_core_1.addClassToBody)(host, "igx-typography");
60
60
  addHomeHeaderStyles(host);
61
61
  removeGridForRoot(host);
62
62
  updateConfig(host);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "9.0.0-rc.0",
3
+ "version": "9.0.0",
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": "~13.0.900-rc.0",
76
- "@igniteui/cli-core": "~9.0.0-rc.0",
75
+ "@igniteui/angular-templates": "~13.0.900",
76
+ "@igniteui/cli-core": "~9.0.0",
77
77
  "chalk": "^2.3.2",
78
78
  "fs-extra": "^3.0.1",
79
79
  "glob": "^7.1.2",
@@ -81,7 +81,7 @@
81
81
  "opn": "^5.3.0",
82
82
  "resolve": "^1.6.0",
83
83
  "through2": "^2.0.3",
84
- "typescript": "^4.4.4",
84
+ "typescript": "~4.4.4",
85
85
  "yargs": "^8.0.2"
86
86
  },
87
87
  "devDependencies": {
@@ -0,0 +1,206 @@
1
+ import {
2
+ IgcDockManagerComponent,
3
+ IgcDockManagerPaneType,
4
+ IgcSplitPaneOrientation,
5
+ } from 'igniteui-dockmanager';
6
+ import { defineCustomElements } from 'igniteui-dockmanager/loader';
7
+
8
+ defineCustomElements();
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, igc-dockmanager {
17
+ height: 100%;
18
+ margin: 0px;
19
+ padding-left: 275px;
20
+ width: calc(100% - 275px);
21
+ }
22
+
23
+ .dockManagerContent {
24
+ padding: 0.5rem;
25
+ height: calc(100% - 1rem);
26
+ width: calc(100% - 1rem);
27
+ display: flex;
28
+ flex-direction: column;
29
+ /* background: orange; */
30
+ }
31
+
32
+ .dockManagerFull {
33
+ padding: 0rem;
34
+ margin: 0rem;
35
+ height: 100%;
36
+ width: 100%;
37
+ display: flex;
38
+ flex-direction: column;
39
+ overflow: hidden;
40
+ }
41
+
42
+ .dockManagerFrame {
43
+ padding: 0rem;
44
+ margin: 0rem;
45
+ height: 100%;
46
+ width: 100%;
47
+ display: flex;
48
+ flex-direction: column;
49
+ overflow: hidden;
50
+ }
51
+
52
+ .employeesDetailsRow {
53
+ height: 4rem;
54
+ display: flex;
55
+ flex-direction: row;
56
+ padding-left: 0.5rem;
57
+ padding-right: 0.5rem;
58
+ padding-top: 0.5rem;
59
+ padding-bottom: 0.5rem;
60
+ align-items: center;
61
+ }
62
+ </style>
63
+ <igc-dockmanager id="dockManager">
64
+ <div slot="content1" class="dockManagerContent">Content 1</div>
65
+ <div slot="content2" class="dockManagerContent">Content 2</div>
66
+ <div slot="content3" class="dockManagerContent">Content 3</div>
67
+ <div slot="content4" class="dockManagerContent">Content 4</div>
68
+ <div slot="content5" class="dockManagerContent">Content 5</div>
69
+ <div slot="content6" class="dockManagerContent">Content 6</div>
70
+ <div slot="content7" class="dockManagerContent">Content 7</div>
71
+ <div slot="content8" class="dockManagerContent">Content 8</div>
72
+ <div slot="content9" class="dockManagerContent">Content 9</div>
73
+ <div slot="content10" class="dockManagerContent">Content 10</div>
74
+ <div slot="content11" class="dockManagerContent">Content 11</div>
75
+ <div slot="content12" class="dockManagerContent">Content 12</div>
76
+ </igc-dockmanager>
77
+ `;
78
+ }
79
+
80
+ connectedCallback() {
81
+ const dockManager = document.getElementsByTagName('app-$(path)')[0].shadowRoot!.getElementById('dockManager') as IgcDockManagerComponent;
82
+ dockManager.layout = {
83
+ rootPane: {
84
+ type: IgcDockManagerPaneType.splitPane,
85
+ orientation: IgcSplitPaneOrientation.horizontal,
86
+ panes: [
87
+ {
88
+ type: IgcDockManagerPaneType.splitPane,
89
+ orientation: IgcSplitPaneOrientation.vertical,
90
+ panes: [
91
+ {
92
+ type: IgcDockManagerPaneType.contentPane,
93
+ contentId: 'content1',
94
+ header: 'Content Pane 1'
95
+ },
96
+ {
97
+ type: IgcDockManagerPaneType.contentPane,
98
+ contentId: 'content2',
99
+ header: 'Unpinned Pane 1',
100
+ isPinned: false
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ type: IgcDockManagerPaneType.splitPane,
106
+ orientation: IgcSplitPaneOrientation.vertical,
107
+ size: 200,
108
+ panes: [
109
+ {
110
+ type: IgcDockManagerPaneType.documentHost,
111
+ size: 200,
112
+ rootPane: {
113
+ type: IgcDockManagerPaneType.splitPane,
114
+ orientation: IgcSplitPaneOrientation.horizontal,
115
+ panes: [
116
+ {
117
+ type: IgcDockManagerPaneType.tabGroupPane,
118
+ panes: [
119
+ {
120
+ type: IgcDockManagerPaneType.contentPane,
121
+ header: 'Document 1',
122
+ contentId: 'content3'
123
+ },
124
+ {
125
+ type: IgcDockManagerPaneType.contentPane,
126
+ header: 'Document 2',
127
+ contentId: 'content4'
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ {
135
+ type: IgcDockManagerPaneType.contentPane,
136
+ contentId: 'content5',
137
+ header: 'Unpinned Pane 2',
138
+ isPinned: false
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ type: IgcDockManagerPaneType.splitPane,
144
+ orientation: IgcSplitPaneOrientation.vertical,
145
+ panes: [
146
+ {
147
+ type: IgcDockManagerPaneType.tabGroupPane,
148
+ size: 200,
149
+ panes: [
150
+ {
151
+ type: IgcDockManagerPaneType.contentPane,
152
+ contentId: 'content6',
153
+ header: 'Tab 1'
154
+ },
155
+ {
156
+ type: IgcDockManagerPaneType.contentPane,
157
+ contentId: 'content7',
158
+ header: 'Tab 2'
159
+ },
160
+ {
161
+ type: IgcDockManagerPaneType.contentPane,
162
+ contentId: 'content8',
163
+ header: 'Tab 3'
164
+ },
165
+ {
166
+ type: IgcDockManagerPaneType.contentPane,
167
+ contentId: 'content9',
168
+ header: 'Tab 4'
169
+ },
170
+ {
171
+ type: IgcDockManagerPaneType.contentPane,
172
+ contentId: 'content10',
173
+ header: 'Tab 5'
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ type: IgcDockManagerPaneType.contentPane,
179
+ contentId: 'content11',
180
+ header: 'Content Pane 2'
181
+ }
182
+ ]
183
+ }
184
+ ]
185
+ },
186
+ floatingPanes: [
187
+ {
188
+ type: IgcDockManagerPaneType.splitPane,
189
+ orientation: IgcSplitPaneOrientation.horizontal,
190
+ floatingHeight: 150,
191
+ floatingWidth: 250,
192
+ floatingLocation: { x: 300, y: 200 },
193
+ panes: [
194
+ {
195
+ type: IgcDockManagerPaneType.contentPane,
196
+ contentId: 'content12',
197
+ header: 'Floating Pane'
198
+ }
199
+ ]
200
+ }
201
+ ]
202
+ };
203
+ }
204
+ }
205
+
206
+ customElements.define('app-$(path)', $(ClassName));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcDockManagerTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["DockManager"];
8
+ this.controlGroup = "Layouts";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "dock-manager";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Dock Manager";
13
+ this.description = "Dock Manager with most functionalities and docking options";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcDockManagerTemplate();
@@ -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 IgcDockManagerComponent extends cli_core_1.BaseComponent {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.name = "Dock Manager";
8
+ this.group = "Layouts";
9
+ this.description = "Dock Manager with most functionalities and docking options";
10
+ }
11
+ }
12
+ module.exports = new IgcDockManagerComponent();
@@ -5,7 +5,7 @@ class IgcGridTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebC
5
5
  constructor() {
6
6
  super(__dirname);
7
7
  this.components = ["Grid"];
8
- this.controlGroup = "Grids & Lists";
8
+ this.controlGroup = "Hidden";
9
9
  this.listInComponentTemplates = true;
10
10
  this.id = "grid";
11
11
  this.projectType = "igc-ts";
@@ -5,7 +5,7 @@ class IgcGridComponent extends cli_core_1.BaseComponent {
5
5
  constructor() {
6
6
  super(__dirname);
7
7
  this.name = "Grid";
8
- this.group = "Grids & Lists";
8
+ this.group = "Hidden";
9
9
  this.description = "pick from different grid views";
10
10
  //this.groupPriority = 10;
11
11
  }
@@ -2,8 +2,9 @@
2
2
  "Data Entry & Display": "",
3
3
  "Interactions": "",
4
4
  "Menus": "",
5
- "Grids & Lists": "",
5
+ "Lists": "",
6
6
  "Scheduling": "",
7
- "Layouts": ""
7
+ "Layouts": "",
8
+ "Charts": ""
8
9
  }
9
10
 
@@ -5,7 +5,7 @@ class IgcListTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebC
5
5
  constructor() {
6
6
  super(__dirname);
7
7
  this.components = ["List"];
8
- this.controlGroup = "Grids & Lists";
8
+ this.controlGroup = "Lists";
9
9
  this.listInComponentTemplates = true;
10
10
  this.id = "list";
11
11
  this.projectType = "igc-ts";
@@ -8,7 +8,7 @@ class IgcListComponent extends cli_core_1.BaseComponent {
8
8
  constructor() {
9
9
  super(__dirname);
10
10
  this.name = "List";
11
- this.group = "Grids & Lists";
11
+ this.group = "Lists";
12
12
  this.description = `Customizable list component`;
13
13
  }
14
14
  }
@@ -0,0 +1,58 @@
1
+ import { DataItem, Data } from './sampleData';
2
+ import {
3
+ IgcItemLegendComponent,
4
+ IgcItemLegendModule,
5
+ IgcPieChartComponent,
6
+ IgcPieChartModule,
7
+ } from 'igniteui-webcomponents-charts';
8
+ import { ModuleManager } from 'igniteui-webcomponents-core';
9
+
10
+ ModuleManager.register(
11
+ IgcItemLegendModule,
12
+ IgcPieChartModule,
13
+ );
14
+
15
+ export default class $(ClassName) extends HTMLElement {
16
+ constructor() {
17
+ super();
18
+ this.attachShadow({ mode: 'open' });
19
+ this.shadowRoot!.innerHTML = `
20
+ <style>
21
+ :host, igc-pie-chart {
22
+ height: 100%;
23
+ }
24
+ .container {
25
+ height: 60%;
26
+ }
27
+ </style>
28
+ <div class="legend-title">
29
+ Global Electricity Demand by Energy Use
30
+ </div>
31
+ <div class="legend">
32
+ <igc-item-legend
33
+ orientation="Horizontal"
34
+ name="legend"
35
+ id ="legend">
36
+ </igc-item-legend>
37
+ </div>
38
+ <div class="container">
39
+ <igc-pie-chart
40
+ value-member-path="marketShare"
41
+ label-member-path="category"
42
+ labels-position="BestFit"
43
+ radius-factor="0.7"
44
+ name="chart"
45
+ id ="chart">
46
+ </igc-pie-chart>
47
+ </div>
48
+ `;
49
+ }
50
+
51
+ connectedCallback() {
52
+ const chart = document.getElementsByTagName('app-$(path)')[0].shadowRoot!.getElementById('chart') as IgcPieChartComponent;
53
+ chart.dataSource = new Data();
54
+ chart.legend = document.getElementsByTagName('app-$(path)')[0].shadowRoot!.getElementById('legend') as IgcItemLegendComponent;
55
+ }
56
+ }
57
+
58
+ customElements.define('app-$(path)', $(ClassName));
@@ -0,0 +1,39 @@
1
+ export class DataItem {
2
+ public constructor(init: Partial<DataItem>) {
3
+ Object.assign(this, init);
4
+ }
5
+
6
+ public marketShare: number = 0;
7
+ public category: string = '';
8
+
9
+ }
10
+ export class Data extends Array<DataItem> {
11
+ public constructor() {
12
+ super();
13
+ this.push(new DataItem(
14
+ {
15
+ marketShare: 37,
16
+ category: `Cooling`
17
+ }));
18
+ this.push(new DataItem(
19
+ {
20
+ marketShare: 25,
21
+ category: `Residential`
22
+ }));
23
+ this.push(new DataItem(
24
+ {
25
+ marketShare: 12,
26
+ category: `Heating`
27
+ }));
28
+ this.push(new DataItem(
29
+ {
30
+ marketShare: 11,
31
+ category: `Lighting`
32
+ }));
33
+ this.push(new DataItem(
34
+ {
35
+ marketShare: 15,
36
+ category: `Other`
37
+ }));
38
+ }
39
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const IgniteUIForWebComponentsTemplate_1 = require("../../../../../lib/templates/IgniteUIForWebComponentsTemplate");
4
+ class IgcPieChartTemplate extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.components = ["PieChart"];
8
+ this.controlGroup = "Charts";
9
+ this.listInComponentTemplates = true;
10
+ this.id = "pie-chart";
11
+ this.projectType = "igc-ts";
12
+ this.name = "Pie Chart";
13
+ this.description = "IgcPieChart with local data";
14
+ }
15
+ addClassDeclaration(mainModule, projPath, name, modulePath) {
16
+ // not applicable with custom module
17
+ }
18
+ }
19
+ module.exports = new IgcPieChartTemplate();
@@ -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 IgcPieChartComponent extends cli_core_1.BaseComponent {
5
+ constructor() {
6
+ super(__dirname);
7
+ this.name = "Pie Chart";
8
+ this.group = "Charts";
9
+ this.description = "pick from different chart views";
10
+ }
11
+ }
12
+ module.exports = new IgcPieChartComponent();
@@ -20,11 +20,13 @@
20
20
  "dependencies": {
21
21
  "@open-wc/testing": "^2.5.33",
22
22
  "@vaadin/router": "^1.7.4",
23
- "igniteui-webcomponents": "1.0.0-beta.2",
23
+ "igniteui-webcomponents": "1.0.0",
24
24
  "igniteui-webcomponents-grids": "~1.3.3",
25
25
  "igniteui-webcomponents-core": "~1.3.3",
26
26
  "igniteui-webcomponents-layouts": "~1.3.3",
27
27
  "igniteui-webcomponents-inputs": "~1.3.3",
28
+ "igniteui-webcomponents-charts": "~1.3.3",
29
+ "igniteui-dockmanager": "~1.6.0",
28
30
  "@igniteui/material-icons-extended": "^2.10.0",
29
31
  "lit": "^2.0.2"
30
32
  },
@@ -34,7 +36,7 @@
34
36
  "@typescript-eslint/parser": "^4.30.0",
35
37
  "@web/dev-server": "^0.1.22",
36
38
  "@web/test-runner": "next",
37
- "igniteui-cli": "~<%=cliVersion%>",
39
+ "igniteui-cli": "$(cliVersion)",
38
40
  "eslint": "^7.32.0",
39
41
  "tslib": "^2.3.1",
40
42
  "typescript": "^4.4.2"