8.0.0-rc.7 • Published 10 months ago

@unicef-polymer/etools-dialog v8.0.0-rc.7

Weekly downloads
36
License
Apache-2.0
Repository
github
Last release
10 months ago

\<etools-dialog>

Simple dialog element. Main features:

  • simple dialog with configurable properties and 2 style themes (check demo for details)
  • loading message functionality for cases when dialog data is saved
  • dynamic dialog creation utility (ex: warning/confirmation messages displayed in dialogs)

Usage

In order for this component to work properly please first run

$ npm install --save web-animations-js

and then include web-animations-next-lite.min.js in your index.html file.

<link rel="import" href="../scripts/web-animations.html" />

Simple dialog:

<etools-dialog size="md" opened="[[opened]]" on-close="onCloseActionHandler" dialog-title="Some title">
  Dialog content goes here... as text or html
</etools-dialog>
onCloseActionHandler(e);
{
  if (e.detail.confirmed === true) {
    // ok action
  } else {
    // cancel action
  }
}

Install & serve element locally to view demo and detailed documentation.

Install

$ npm i --save @unicef-polymer/etools-dialog

Linting the code

Install local npm packages (run npm install) Then just run the linting task

$ npm run lint

Preview element locally

Install needed dependencies by running: $ npm install. Make sure you have the Polymer CLI installed. Then run $ polymer serve to serve your element application locally.

Running Tests

TODO: improve and add more tests

$ polymer test

Styling

Custom propertyDescriptionDefault
--etools-dialog-confirm-btn-text-colordialog confirmation button default text color#fff
etools-dialog::part(ed-title) -> :part(title)etools-dialog title shadow part{}
etools-dialog::part(ed-button-styles) -> shouldn't be needed, but there is :part(footer)etools-dialog button shadow part{}
etools-dialog::part(ed-scrollable) -> :part(body)etools-dialog scrollable shadow part{}

Circle CI

Package will be automatically published after tag push (git tag 1.2.3 , git push --tags). Tag name must correspond to SemVer (Semantic Versioning) rules.
Examples:

Version matchResult
1.2.3match
1.2.3-prematch
1.2.3+buildmatch
1.2.3-pre+buildmatch
v1.2.3-pre+buildmatch
1.2no match

You can see more details here

8.0.0-rc.1

10 months ago

8.0.0-rc.2

10 months ago

8.0.0-rc.3

10 months ago

8.0.0-rc.4

10 months ago

8.0.0-rc.5

10 months ago

8.0.0-rc.6

10 months ago

8.0.0-rc.7

10 months ago

7.0.0

1 year ago

7.0.1

1 year ago

6.0.7-rc2

1 year ago

6.0.7-rc1

1 year ago

6.0.7

1 year ago

6.0.5

2 years ago

6.0.6

1 year ago

6.0.5-rc.1

2 years ago

6.0.5-rc.2

2 years ago

6.0.4

2 years ago

6.0.4-rc.1

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.0-rc.1

2 years ago

6.0.0-rc.2

2 years ago

4.3.2

2 years ago

5.0.0-rc.2

2 years ago

5.0.0-rc.1

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.1.0-rc.1

3 years ago

4.0.0

3 years ago

4.0.0-rc.1

3 years ago

3.0.6

3 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

3.0.0-rc.1

5 years ago