Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions samples/notifications/dialog/closing-variations/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions samples/notifications/dialog/closing-variations/src/index.css

This file was deleted.

21 changes: 0 additions & 21 deletions samples/notifications/dialog/closing-variations/src/index.ts

This file was deleted.

49 changes: 0 additions & 49 deletions samples/notifications/dialog/form/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions samples/notifications/dialog/form/src/index.css

This file was deleted.

19 changes: 0 additions & 19 deletions samples/notifications/dialog/form/src/index.ts

This file was deleted.

13 changes: 3 additions & 10 deletions samples/notifications/dialog/overview/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>

<head>
Expand All @@ -13,15 +14,7 @@

<body>
<div id="root">
<div class="container sample center">
<igc-button onclick="dialog.show()" variant="contained">Show Dialog</igc-button>

<igc-dialog id="dialog" title="Confirmation">
<p>Are you sure you want to delete the Annual_Report_2016.pdf and Annual_Report_2017.pdf files?</p>
<igc-button slot="footer" onclick="dialog.hide()" variant="flat">Cancel</igc-button>
<igc-button slot="footer" onclick="dialog.hide()" variant="flat">OK</igc-button>
</igc-dialog>
</div>
<div class="sample" id="sample"></div>
</div>

<!-- This script is needed only for parcel and it will be excluded for webpack -->
Expand All @@ -31,4 +24,4 @@

</body>

</html>
</html>
2 changes: 1 addition & 1 deletion samples/notifications/dialog/overview/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wc-dialog-overview",
"version": "1.0.0",
"description": "This project provides example of Dialog Overview using IgniteUI for Web Components",
"description": "This project provides an example of Dialog overview using IgniteUI for Web Components",
"main": "src/index.ts",
"scripts": {
"build": "npm run build:prod",
Expand Down
31 changes: 30 additions & 1 deletion samples/notifications/dialog/overview/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

.sample {
display: flex;
flex-direction: column;
align-items: center;
padding: 1.9375rem 1rem 1rem;
}

.open-button {
width: 11.25rem;
}

igc-dialog {
--ig-dialog-backdrop: transparent;
--ig-dialog-message-color: var(--ig-gray-700);
}

igc-dialog::part(base) {
width: 17.5rem;
margin-top: 6.9375rem;
}

igc-dialog igc-button {
--ig-size: var(--ig-size-medium);
}

igc-dialog igc-button::part(base) {
min-width: auto;
}
41 changes: 39 additions & 2 deletions samples/notifications/dialog/overview/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,46 @@
import {defineComponents, IgcDialogComponent, IgcButtonComponent } from 'igniteui-webcomponents';
import { defineComponents, IgcButtonComponent, IgcDialogComponent } from 'igniteui-webcomponents';
import { html, render } from 'lit-html';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
import './index.css';

defineComponents(IgcButtonComponent, IgcDialogComponent);

defineComponents(IgcDialogComponent, IgcButtonComponent);
export class DialogOverview {
private root = document.getElementById('sample') as HTMLElement;

constructor() {
this.renderSample();
}

private get dialog() {
return this.root.querySelector('igc-dialog') as IgcDialogComponent;
}

private showDialog() {
this.dialog.show();
}

private hideDialog() {
this.dialog.hide();
}

private renderSample() {
const template = html`
<igc-button variant="outlined" class="open-button" @click=${() => this.showDialog()}>
<span>Open dialog</span>
</igc-button>
<igc-dialog title="Confirmation" open>
<span slot="message">Your email will be permanently deleted</span>
<igc-button slot="footer" variant="flat" @click=${() => this.hideDialog()}>
<span>Cancel</span>
</igc-button>
<igc-button slot="footer" variant="flat" @click=${() => this.hideDialog()}>
<span>OK</span>
</igc-button>
</igc-dialog>
`;

render(template, this.root);
}
}

Expand Down
14 changes: 3 additions & 11 deletions samples/notifications/dialog/styling/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>

<head>
Expand All @@ -13,16 +14,7 @@

<body>
<div id="root">
<div class="container sample center">
<igc-button onclick="dialog.show()" variant="contained">Show Dialog</igc-button>

<igc-dialog id="dialog" title="Confirmation">
<h1 slot="title">Styled Title</h1>
<p>Are you sure you want to delete the Annual_Report_2016.pdf and Annual_Report_2017.pdf files?</p>
<igc-button slot="footer" onclick="dialog.toggle()" variant="flat">Cancel</igc-button>
<igc-button slot="footer" onclick="dialog.toggle()" variant="flat">OK</igc-button>
</igc-dialog>
</div>
<div class="sample" id="sample"></div>
</div>

<!-- This script is needed only for parcel and it will be excluded for webpack -->
Expand All @@ -32,4 +24,4 @@ <h1 slot="title">Styled Title</h1>

</body>

</html>
</html>
2 changes: 1 addition & 1 deletion samples/notifications/dialog/styling/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wc-dialog-styling",
"version": "1.0.0",
"description": "This project provides example of Dialog Styling using IgniteUI for Web Components",
"description": "This project provides an example of Dialog styling using IgniteUI for Web Components",
"main": "src/index.ts",
"scripts": {
"build": "npm run build:prod",
Expand Down
10 changes: 0 additions & 10 deletions samples/notifications/dialog/styling/src/DialogStyling.css

This file was deleted.

Loading
Loading