-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(WebComponents): igniteui-webcomponents version bump, adding ban…
…ner, divider and date picker templates - 13.3.x (#1274)
- Loading branch information
Showing
15 changed files
with
186 additions
and
3 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...mplates/webcomponents/igc-ts/banner/default/files/src/app/__path__/__filePrefix__.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from '@open-wc/testing'; | ||
import $(ClassName) from './$(path).js'; | ||
|
||
describe('IgcBannerComponent', () => { | ||
it('<app-$(path)> is an instance of $(ClassName)', async () => { | ||
const element = document.createElement('app-$(path)'); | ||
expect(element).to.be.instanceOf($(ClassName)); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
...li/templates/webcomponents/igc-ts/banner/default/files/src/app/__path__/__filePrefix__.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { | ||
defineComponents, | ||
IgcBannerComponent, | ||
} from 'igniteui-webcomponents'; | ||
|
||
defineComponents(IgcBannerComponent); | ||
|
||
@customElement('app-$(path)') | ||
export default class $(ClassName) extends LitElement { | ||
render() { | ||
return html` | ||
<igc-banner id="banner" .open=${open}> | ||
You are currently not logged in! Please, log into your account first. | ||
</igc-banner> | ||
`; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/cli/templates/webcomponents/igc-ts/banner/default/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate"; | ||
|
||
class IgcBannerTemplate extends IgniteUIForWebComponentsTemplate { | ||
constructor() { | ||
super(__dirname); | ||
this.components = ["Banner"]; | ||
this.controlGroup = "Notifications"; | ||
this.listInComponentTemplates = true; | ||
this.id = "banner"; | ||
this.projectType = "igc-ts"; | ||
this.name = "Banner"; | ||
this.description = "basic IgcBanner"; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcBannerTemplate(); |
14 changes: 14 additions & 0 deletions
14
packages/cli/templates/webcomponents/igc-ts/banner/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BaseComponent } from "@igniteui/cli-core"; | ||
|
||
class IgcBannerComponent extends BaseComponent { | ||
/** | ||
* | ||
*/ | ||
constructor() { | ||
super(__dirname); | ||
this.name = "Banner"; | ||
this.group = "Notifications"; | ||
this.description = `Customizable banner component`; | ||
} | ||
} | ||
module.exports = new IgcBannerComponent(); |
9 changes: 9 additions & 0 deletions
9
...es/webcomponents/igc-ts/date-picker/default/files/src/app/__path__/__filePrefix__.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from '@open-wc/testing'; | ||
import $(ClassName) from './$(path).js'; | ||
|
||
describe('IgcAvatarComponent', () => { | ||
it('<app-$(path)> is an instance of $(ClassName)', async () => { | ||
const element = document.createElement('app-$(path)'); | ||
expect(element).to.be.instanceOf($(ClassName)); | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
...mplates/webcomponents/igc-ts/date-picker/default/files/src/app/__path__/__filePrefix__.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { | ||
defineComponents, | ||
IgcDatePickerComponent, | ||
} from 'igniteui-webcomponents'; | ||
|
||
defineComponents(IgcDatePickerComponent); | ||
|
||
@customElement('app-$(path)') | ||
export default class $(ClassName) extends LitElement { | ||
render() { | ||
return html` | ||
<igc-date-picker> | ||
</igc-date-picker> | ||
`; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/cli/templates/webcomponents/igc-ts/date-picker/default/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate"; | ||
|
||
class IgcDatePickerTemplate extends IgniteUIForWebComponentsTemplate { | ||
constructor() { | ||
super(__dirname); | ||
this.components = ["DatePicker"]; | ||
this.controlGroup = "Scheduling"; | ||
this.listInComponentTemplates = true; | ||
this.id = "date-picker"; | ||
this.projectType = "igc-ts"; | ||
this.name = "Date Picker"; | ||
this.description = "basic IgcDatePicker"; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcDatePickerTemplate(); |
14 changes: 14 additions & 0 deletions
14
packages/cli/templates/webcomponents/igc-ts/date-picker/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BaseComponent } from "@igniteui/cli-core"; | ||
|
||
class IgcDatePickerComponent extends BaseComponent { | ||
/** | ||
* | ||
*/ | ||
constructor() { | ||
super(__dirname); | ||
this.name = "DatePicker"; | ||
this.group = "Scheduling"; | ||
this.description = `Basic date picker component`; | ||
} | ||
} | ||
module.exports = new IgcDatePickerComponent(); |
9 changes: 9 additions & 0 deletions
9
...plates/webcomponents/igc-ts/divider/default/files/src/app/__path__/__filePrefix__.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { expect } from '@open-wc/testing'; | ||
import $(ClassName) from './$(path).js'; | ||
|
||
describe('IgcDividerComponent', () => { | ||
it('<app-$(path)> is an instance of $(ClassName)', async () => { | ||
const element = document.createElement('app-$(path)'); | ||
expect(element).to.be.instanceOf($(ClassName)); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
...i/templates/webcomponents/igc-ts/divider/default/files/src/app/__path__/__filePrefix__.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { | ||
defineComponents, | ||
IgcDividerComponent, | ||
} from 'igniteui-webcomponents'; | ||
|
||
defineComponents(IgcDividerComponent); | ||
|
||
@customElement('app-$(path)') | ||
export default class $(ClassName) extends LitElement { | ||
render() { | ||
return html` | ||
<p>First paragraph</p> | ||
<igc-divider ?middle=true type=solid></igc-divider> | ||
<p>Second paragraph</p> | ||
`; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/cli/templates/webcomponents/igc-ts/divider/default/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TypeScriptFileUpdate } from "@igniteui/cli-core"; | ||
import { IgniteUIForWebComponentsTemplate } from "../../../../../lib/templates/IgniteUIForWebComponentsTemplate"; | ||
|
||
class IgcDividerTemplate extends IgniteUIForWebComponentsTemplate { | ||
constructor() { | ||
super(__dirname); | ||
this.components = ["Divider"]; | ||
this.controlGroup = "Data Entry & Display"; | ||
this.listInComponentTemplates = true; | ||
this.id = "divider"; | ||
this.projectType = "igc-ts"; | ||
this.name = "Divider"; | ||
this.description = "basic IgcDivider"; | ||
} | ||
protected addClassDeclaration(mainModule: TypeScriptFileUpdate, projPath: string, name: string, modulePath: string) { | ||
// not applicable with custom module | ||
} | ||
} | ||
module.exports = new IgcDividerTemplate(); |
14 changes: 14 additions & 0 deletions
14
packages/cli/templates/webcomponents/igc-ts/divider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { BaseComponent } from "@igniteui/cli-core"; | ||
|
||
class IgcDividerComponent extends BaseComponent { | ||
/** | ||
* | ||
*/ | ||
constructor() { | ||
super(__dirname); | ||
this.name = "Divider"; | ||
this.group = "Data Entry & Display"; | ||
this.description = `Customizable divider component`; | ||
} | ||
} | ||
module.exports = new IgcDividerComponent(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"Scheduling": "", | ||
"Layouts": "", | ||
"Charts": "", | ||
"Gauges": "" | ||
"Gauges": "", | ||
"Notifications": "" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters