{"_id":"confirm-element","_rev":"2-d2c9cf3ccdf39fe9b0b9f64e583c3b70","name":"confirm-element","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"confirm-element","version":"0.0.1","description":"confirmation window with two buttons and editable icons","keywords":["dialog","dialog-confirm","confirm","window","polymer","webcomponents"],"main":"confirm-element.js","author":{"name":"Dacelisl"},"license":"MIT","dependencies":{"@polymer/iron-icon":"^3.0.1","@polymer/paper-button":"^3.0.1","@polymer/polymer":"^3.0.0","@vaadin/vaadin-dialog":"^2.2.1"},"devDependencies":{"@polymer/iron-demo-helpers":"^3.0.0-pre.19","@polymer/test-fixture":"^4.0.2","@webcomponents/webcomponentsjs":"^2.0.0","chai":"^4.2.0","mocha":"^5.2.0","wct-mocha":"^1.0.0"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Dacelisl/confirm-element.git"},"bugs":{"url":"https://github.com/Dacelisl/confirm-element/issues"},"homepage":"https://github.com/Dacelisl/confirm-element#readme","gitHead":"4c7610adcf1c26a211b18723f6de93d3792d2a14","_id":"confirm-element@0.0.1","_nodeVersion":"9.11.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-whSWJyUSzTYKI74PQtxzdKM1N6PlxNSuyE8ouKe+KKEMvnXKinzZRLGJrLbsCq1ZW3GYqefukhKqcA7smYML/A==","shasum":"1649073af9955c9ae3d598fcf362241b43db6f7a","tarball":"https://registry.npmjs.org/confirm-element/-/confirm-element-0.0.1.tgz","fileCount":11,"unpackedSize":18745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclT4xCRA9TVsSAnZWagAAqv8P/1yAhjhqlF6o+EQEChhw\ndwdSAOr/TyYrKOwUQnmyBnfXiDUn+N3ScDvL/6d0xOIM+k0LuMK5AUj2RFpk\nezpdcvwTz1M8a8yQ8mT1gpCxRNnaQer8GHnedb4Wy9J2DGNbGVUDqj19hoUw\neFFnuZ7MZY62hlIq7WgsrBUoBszEulfDN2qIUzNtJSKnOAGJK04ugm6O4dvV\nonW6cOlNpSbHUy2hZPutFyjBkitsIloSlTyUE5iY8PxZP07aWHvpw/F/yJG3\ns8/Uw4pQiFk7JMPHCUps4C8BDTYZoK9jIIITuR4l03h7Pp222n1tT/+UTVwe\nGtrkQxhIrR+VNlN13ut2NXBSLtw6LlwROw9gDbaxVAvCX86bYE7cL8TZ7KS0\nHW2Ogw4/9rg3znXhd1OOdDjyhDs6b5Q6C6tb0/w+Wq4vyqFpcTZDPV9i+Z7O\nduZgGr3UH/qSK6imnNRLFCB/S54JybAXrrt7cbWCXr3sbwpIgK46q0sdB5Cr\ntCp4CUzJUh3y9dBoFfluTAqhHB3QcpO0Pays8w9Wt5q61zwPAXuIKWBPmH1Y\ncuXsHzac3SLh6le8m2t7MITACU28lBERJr6xd/ZNk9fILNrE+SySgAite5/U\n1IpvZBY/AXkN2EVmnLEaq2hns5OzLQqRiDbSztTL8OclhdxX8F4vBOkTXe20\nYokb\r\n=va8D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvkmzyLO0Djq7fk6M8tpfS4LuD8qqL263PK8tetyttbQIgU2meFEcCc6CVEN2VZNbwDamb1ehuFCrN837XCKmJMic="}]},"maintainers":[{"name":"dacelisl","email":"hero055@gmail.com"}],"_npmUser":{"name":"dacelisl","email":"hero055@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/confirm-element_0.0.1_1553284657080_0.6558574272837738"},"_hasShrinkwrap":false},"0.0.2":{"name":"confirm-element","version":"0.0.2","description":"confirmation window with two buttons and editable icons","keywords":["dialog","dialog-confirm","confirm","window","polymer","webcomponents"],"main":"confirm-element.js","author":{"name":"Dacelisl"},"license":"MIT","dependencies":{"@polymer/iron-icon":"^3.0.1","@polymer/paper-button":"^3.0.1","@polymer/polymer":"^3.0.0","@vaadin/vaadin-dialog":"^2.2.1"},"devDependencies":{"@polymer/iron-demo-helpers":"^3.0.0-pre.19","@polymer/test-fixture":"^4.0.2","@webcomponents/webcomponentsjs":"^2.0.0","chai":"^4.2.0","mocha":"^5.2.0","wct-mocha":"^1.0.0"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Dacelisl/confirm-element.git"},"bugs":{"url":"https://github.com/Dacelisl/confirm-element/issues"},"homepage":"https://github.com/Dacelisl/confirm-element#readme","gitHead":"8747483136bd8fcf6d4faba33e09cb666408b0f9","_id":"confirm-element@0.0.2","_nodeVersion":"9.11.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-I8g2shzEnccK7fpp+4pynL0vaSfrCuoWdhFTyV4zfk/BBiE/cytGw8PdF90HERREaGeF+VxzLmHZ7weru1LTrA==","shasum":"378263c95f84c9a996424665d8964bcd6a99adeb","tarball":"https://registry.npmjs.org/confirm-element/-/confirm-element-0.0.2.tgz","fileCount":12,"unpackedSize":834779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmQ25CRA9TVsSAnZWagAAAN0P/3xUBh/D6mIi09iZhoH7\nZ1K0TlfvuC9SvMmBbKPHBA8IhOWDHnMPZRqKPnEvlY6XVZAd1HNhwistC8Qy\nAtUNcvUqBZRQWfmNmw4Ci6xQU1EuDXhhsVOYucDRSJqi2UaWkvnwvxHFmPUv\nJaS39F8uWtJOH+qFC6pPfeUgFudpyuBHvyN7G38Z3PudIEIQQmYbT/6akUcA\nmjsvlHp3nyid7SWCQ8y3NR2I1fUip902ZvOZzv3lJjT9vlN7nWz0kd2f1Qoj\nesS+gw4FjH2/ilhH9vt6QUW8TiPnUCL0pWe/FW6WG7XNFW5Rm71788saTTnf\na+gKucjO/aPIkxydxM8VNluyuQYlYeHw3ywAbfKw2NeTWflSvhFh05zXnftE\nCFWL9FW8YkxZBuOJUPi6LszAAh0PwVIKeBJxRDnDqhTH/LEZT3bl8LULy17S\nIGQYk0dOZbTsrv6a4+adqj1BIG4ssUaJbGH4mgBcvo/F2iEkKwEp0+cmoaju\nov0DjdI9gfM60OVhnbgWeq6jMb2Xxjh1eNi/KlSLvRh5SfxJWaNP9OPz7Fie\niO5W/zyoNq6ig+Xu2lpd0JVl4z/ccfDxJe9yoa2r0sRiY/atL5YRu+V0Ev2t\n+1F8kjHenGplREdbbI9H8LPKzoKcl8wVh4bEPSavZscQV79z8lgJj5K2cciy\nj4ym\r\n=q7Yz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUm1gD9JwojiUMX9cAuGKdV2uRuCRYv9sALFhrGEoBvAiEAi3kjIlR9lBfLWo5mZcabWMsFFvkJAjJqQ9JjCTdV+AI="}]},"maintainers":[{"name":"dacelisl","email":"hero055@gmail.com"}],"_npmUser":{"name":"dacelisl","email":"hero055@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/confirm-element_0.0.2_1553534392647_0.7217398282879721"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-22T19:57:37.079Z","0.0.1":"2019-03-22T19:57:37.195Z","modified":"2022-04-27T15:37:57.709Z","0.0.2":"2019-03-25T17:19:52.837Z"},"maintainers":[{"name":"dacelisl","email":"hero055@gmail.com"}],"description":"confirmation window with two buttons and editable icons","homepage":"https://github.com/Dacelisl/confirm-element#readme","keywords":["dialog","dialog-confirm","confirm","window","polymer","webcomponents"],"repository":{"type":"git","url":"git+https://github.com/Dacelisl/confirm-element.git"},"author":{"name":"Dacelisl"},"bugs":{"url":"https://github.com/Dacelisl/confirm-element/issues"},"license":"MIT","readme":"\n![License - MIT](https://img.shields.io/github/license/dacelisl/confirm-element.svg) [![Published on NPM](https://img.shields.io/badge/NPM-Published-red.svg)](https://www.npmjs.com/package/confirm-element) [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/dacelislconfirm-element)\n\n\n\n# \\\n\n## Description.\n\nconfirmation window with two buttons and editable icons \n\n\n## Installation\n\n`npm install confirm-element\"@0.0.1\"` \n\n\n![Screenshot of confirm-element](https://raw.githubusercontent.com/Dacelisl/confirm-element/master/confirm-element.gif)\n\n### Configuration __:\n\n* Use **open** to show the window.\n* Use **title** to add title.\n* Use **message** to add the body of the message to be displayed.\n* Use **confirmtext** add text to the confirmation button.\n* Use **canceltext** add text to the cancel button\n* Use **icon** for the visibility of the icons, default value false.\n* Use **iconcancel** and **iconconfirm** to add the icons to each button correspondingly, the available icons correspond to the portfolio of [VAADIN ICONS](https://cdn.vaadin.com/vaadin-lumo-styles/1.4.2/demo/icons.html), default values *lumo:cross* and *lumo:checkmark*, if you prefer buttons without icon: *iconconfirm=\"none\"* or *iconcancel=\"none\"* \n\n\n### Events \n**cancel**: *CustomEvent*\nthe cancel event is activated by pressing the cancel button or the ESC key.\n\n**confirm**: *CustomEvent* \nthe event is activated by pressing the confirm button\n\n\n```html\n\n```\n\n## Usage\n\n### In an html file\n\n```html\n\n \n \n \n \n\n \n\n \n\n```\n\n### In a Polymer 3 element\n```js\nimport {PolymerElement, html} from '@polymer/polymer';\nimport '.././confirm-element.js';\n\nclass SampleElement extends PolymerElement {\n static get template() {\n return html`\n\n \n `;\n }\n ready(){\n this.message = this.$.showconfirm;\n this.message.addEventListener('confirm', () => this.confirmDialog());\n }\n confirmDialog(){\n ............\n }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n## License\n\nMIT License\n\n\n\n\n\n\n","readmeFilename":"README.md"}