igniteui-cli 9.0.5-beta.0 → 9.0.6
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/webcomponents/TypeScriptFileUpdate.js +3 -0
- package/templates/webcomponents/igc-ts/avatar/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/badge/default/files/src/app/__path__/__filePrefix__.component.test.ts +10 -0
- package/templates/webcomponents/igc-ts/button/default/files/src/app/__path__/__filePrefix__.component.test.ts +10 -0
- package/templates/webcomponents/igc-ts/calendar/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/checkbox/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/dock-manager/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/dock-manager/default/files/src/app/__path__/__filePrefix__.ts +31 -31
- package/templates/webcomponents/igc-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/form/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/grid/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/input/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/list/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/navbar/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/projects/empty/files/__dot__editorconfig +16 -0
- package/templates/webcomponents/igc-ts/projects/empty/files/index.html +1 -1
- package/templates/webcomponents/igc-ts/projects/empty/files/package.json +4 -3
- package/templates/webcomponents/igc-ts/projects/empty/files/src/app.ts +2 -2
- package/templates/webcomponents/igc-ts/projects/empty/files/web-dev-server.config.mjs +1 -1
- package/templates/webcomponents/igc-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/radio-group/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/ripple/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/slider/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
- package/templates/webcomponents/igc-ts/slider/default/files/src/app/__path__/__filePrefix__.ts +23 -0
- package/templates/webcomponents/igc-ts/slider/default/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/slider/default/index.js +19 -0
- package/templates/webcomponents/igc-ts/slider/index.d.ts +1 -0
- package/templates/webcomponents/igc-ts/slider/index.js +15 -0
- package/templates/webcomponents/igc-ts/switch/default/files/src/app/__path__/__filePrefix__.component.test.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
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.
|
|
76
|
-
"@igniteui/cli-core": "~9.0.
|
|
75
|
+
"@igniteui/angular-templates": "~13.0.906",
|
|
76
|
+
"@igniteui/cli-core": "~9.0.6",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -203,6 +203,9 @@ class TypeScriptFileUpdate {
|
|
|
203
203
|
if (options["indent_size"]) {
|
|
204
204
|
this.formatOptions.indentSize = parseInt(options["indent_size"], 10) || this.formatOptions.indentSize;
|
|
205
205
|
}
|
|
206
|
+
if (options["quote_type"]) {
|
|
207
|
+
this.formatOptions.singleQuotes = options["quote_type"] === "single";
|
|
208
|
+
}
|
|
206
209
|
}
|
|
207
210
|
if (this.fileSystem.fileExists("tslint.json")) {
|
|
208
211
|
// tslint prio - overrides other settings
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcAvatarComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcBadgeComponent', () => {
|
|
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
|
+
});
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcButtonComponent', () => {
|
|
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
|
+
});
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcCalendarComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcCardComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcCheckboxComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcSubscriptionFormComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcDockManagerComponent', () => {
|
|
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/dock-manager/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -91,15 +91,15 @@ export default class $(ClassName) extends HTMLElement {
|
|
|
91
91
|
{
|
|
92
92
|
type: IgcDockManagerPaneType.contentPane,
|
|
93
93
|
contentId: 'content1',
|
|
94
|
-
header: 'Content Pane 1'
|
|
94
|
+
header: 'Content Pane 1',
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
type: IgcDockManagerPaneType.contentPane,
|
|
98
98
|
contentId: 'content2',
|
|
99
99
|
header: 'Unpinned Pane 1',
|
|
100
|
-
isPinned: false
|
|
101
|
-
}
|
|
102
|
-
]
|
|
100
|
+
isPinned: false,
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
type: IgcDockManagerPaneType.splitPane,
|
|
@@ -119,25 +119,25 @@ export default class $(ClassName) extends HTMLElement {
|
|
|
119
119
|
{
|
|
120
120
|
type: IgcDockManagerPaneType.contentPane,
|
|
121
121
|
header: 'Document 1',
|
|
122
|
-
contentId: 'content3'
|
|
122
|
+
contentId: 'content3',
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
type: IgcDockManagerPaneType.contentPane,
|
|
126
126
|
header: 'Document 2',
|
|
127
|
-
contentId: 'content4'
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
127
|
+
contentId: 'content4',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
type: IgcDockManagerPaneType.contentPane,
|
|
136
136
|
contentId: 'content5',
|
|
137
137
|
header: 'Unpinned Pane 2',
|
|
138
|
-
isPinned: false
|
|
139
|
-
}
|
|
140
|
-
]
|
|
138
|
+
isPinned: false,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
type: IgcDockManagerPaneType.splitPane,
|
|
@@ -150,38 +150,38 @@ export default class $(ClassName) extends HTMLElement {
|
|
|
150
150
|
{
|
|
151
151
|
type: IgcDockManagerPaneType.contentPane,
|
|
152
152
|
contentId: 'content6',
|
|
153
|
-
header: 'Tab 1'
|
|
153
|
+
header: 'Tab 1',
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
type: IgcDockManagerPaneType.contentPane,
|
|
157
157
|
contentId: 'content7',
|
|
158
|
-
header: 'Tab 2'
|
|
158
|
+
header: 'Tab 2',
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
type: IgcDockManagerPaneType.contentPane,
|
|
162
162
|
contentId: 'content8',
|
|
163
|
-
header: 'Tab 3'
|
|
163
|
+
header: 'Tab 3',
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
type: IgcDockManagerPaneType.contentPane,
|
|
167
167
|
contentId: 'content9',
|
|
168
|
-
header: 'Tab 4'
|
|
168
|
+
header: 'Tab 4',
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
type: IgcDockManagerPaneType.contentPane,
|
|
172
172
|
contentId: 'content10',
|
|
173
|
-
header: 'Tab 5'
|
|
174
|
-
}
|
|
175
|
-
]
|
|
173
|
+
header: 'Tab 5',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
type: IgcDockManagerPaneType.contentPane,
|
|
179
179
|
contentId: 'content11',
|
|
180
|
-
header: 'Content Pane 2'
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
]
|
|
180
|
+
header: 'Content Pane 2',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
185
|
},
|
|
186
186
|
floatingPanes: [
|
|
187
187
|
{
|
|
@@ -194,11 +194,11 @@ export default class $(ClassName) extends HTMLElement {
|
|
|
194
194
|
{
|
|
195
195
|
type: IgcDockManagerPaneType.contentPane,
|
|
196
196
|
contentId: 'content12',
|
|
197
|
-
header: 'Floating Pane'
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
]
|
|
197
|
+
header: 'Floating Pane',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcFinancialChartComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcFormComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcDataGridComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcGridEditingComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcGridSummariesComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcIconComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcIconButtonComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcInputComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcLinearGaugeComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcListComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcNavbarComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcPieChartComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<base href="/">
|
|
7
|
-
<link rel="stylesheet" href="./node_modules/igniteui-webcomponents/themes/bootstrap.css">
|
|
7
|
+
<link rel="stylesheet" href="./node_modules/igniteui-webcomponents/themes/light/bootstrap.css">
|
|
8
8
|
<style>
|
|
9
9
|
html, body {
|
|
10
10
|
height: 100%;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"./$(dash-name).js": "./dist/src/$(dash-name).js"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"start": "tsc && wds",
|
|
16
|
+
"start": "tsc && concurrently --kill-others \"tsc -w\" \"wds\"",
|
|
17
17
|
"build": "webpack --mode production",
|
|
18
18
|
"lint": "eslint --ext .js,.ts,.html . --ignore-path .gitignore",
|
|
19
19
|
"test": "tsc && wtr"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@open-wc/testing": "^2.5.33",
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
24
|
-
"igniteui-webcomponents": "
|
|
24
|
+
"igniteui-webcomponents": "2.0.0",
|
|
25
25
|
"igniteui-webcomponents-grids": "~1.4.1",
|
|
26
26
|
"igniteui-webcomponents-core": "~1.4.1",
|
|
27
27
|
"igniteui-webcomponents-layouts": "~1.4.1",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"igniteui-dockmanager": "~1.6.0",
|
|
32
32
|
"@igniteui/material-icons-extended": "^2.10.0",
|
|
33
33
|
"lit": "^2.0.2",
|
|
34
|
+
"typescript": "^4.5.2",
|
|
34
35
|
"babel-runtime": "^6.26.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
@@ -40,9 +41,9 @@
|
|
|
40
41
|
"@web/dev-server": "^0.1.22",
|
|
41
42
|
"@web/test-runner": "next",
|
|
42
43
|
"igniteui-cli": "$(cliVersion)",
|
|
44
|
+
"concurrently": "^6.3.0",
|
|
43
45
|
"eslint": "^7.32.0",
|
|
44
46
|
"tslib": "^2.3.1",
|
|
45
|
-
"typescript": "^4.5.2",
|
|
46
47
|
"@babel/cli": "^7.16.0",
|
|
47
48
|
"@babel/core": "^7.16.0",
|
|
48
49
|
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
@@ -30,13 +30,13 @@ export class App extends HTMLElement {
|
|
|
30
30
|
<igc-nav-drawer open=true>
|
|
31
31
|
<igc-nav-drawer-header-item>Ignite UI CLI</igc-nav-drawer-header-item>
|
|
32
32
|
|
|
33
|
-
${routes.filter((element, index) => index < routes.length - 1).map(i =>
|
|
33
|
+
${routes.filter((element, index) => index < routes.length - 1).map(i => `
|
|
34
34
|
<igc-nav-drawer-item>
|
|
35
35
|
<span slot="content">
|
|
36
36
|
<a style="text-decoration: none;" href="${i.path}">${i.name}<igc-ripple></igc-ripple></a>
|
|
37
37
|
</span>
|
|
38
38
|
</igc-nav-drawer-item>
|
|
39
|
-
`)}
|
|
39
|
+
`).join('')}
|
|
40
40
|
</igc-nav-drawer>
|
|
41
41
|
</div>
|
|
42
42
|
`;
|
|
@@ -16,7 +16,7 @@ export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
|
|
16
16
|
// esbuildTarget: 'auto'
|
|
17
17
|
|
|
18
18
|
/** Set appIndex to enable SPA routing */
|
|
19
|
-
|
|
19
|
+
appIndex: './index.html',
|
|
20
20
|
|
|
21
21
|
plugins: [
|
|
22
22
|
/** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcRadialGaugeComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcRadioGroupComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcRippleComponent', () => {
|
|
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
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcSliderComponent', () => {
|
|
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/slider/default/files/src/app/__path__/__filePrefix__.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineComponents,
|
|
3
|
+
IgcSliderComponent,
|
|
4
|
+
} from 'igniteui-webcomponents';
|
|
5
|
+
|
|
6
|
+
defineComponents(IgcSliderComponent);
|
|
7
|
+
|
|
8
|
+
export default class $(ClassName) extends HTMLElement {
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
this.innerHTML = `
|
|
11
|
+
<igc-slider
|
|
12
|
+
style="margin: 40px 20px; width: 200px;"
|
|
13
|
+
min="0"
|
|
14
|
+
max="2"
|
|
15
|
+
primary-ticks="3"
|
|
16
|
+
>
|
|
17
|
+
Label
|
|
18
|
+
</igc-slider>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
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 IgcSliderComponent extends IgniteUIForWebComponentsTemplate_1.IgniteUIForWebComponentsTemplate {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(__dirname);
|
|
7
|
+
this.components = ["Slider"];
|
|
8
|
+
this.controlGroup = "Interactions";
|
|
9
|
+
this.listInComponentTemplates = true;
|
|
10
|
+
this.id = "slider";
|
|
11
|
+
this.projectType = "igc-ts";
|
|
12
|
+
this.name = "Slider";
|
|
13
|
+
this.description = `Basic slider component`;
|
|
14
|
+
}
|
|
15
|
+
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
|
16
|
+
// not applicable with custom module
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
module.exports = new IgcSliderComponent();
|
|
@@ -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 IgcSliderComponent extends cli_core_1.BaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
super(__dirname);
|
|
10
|
+
this.name = "Slider";
|
|
11
|
+
this.group = "Interactions";
|
|
12
|
+
this.description = `Basic slider component`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
module.exports = new IgcSliderComponent();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing';
|
|
2
|
+
import $(ClassName) from './$(path)';
|
|
3
|
+
|
|
4
|
+
describe('IgcSwitchComponent', () => {
|
|
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
|
+
});
|