@amiceli/papierjs 0.6.0 → 0.7.0
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/dist/cjs/{index-82a72b67.js → index-875ceae0.js} +39 -6
- package/dist/cjs/index-875ceae0.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js +4 -4
- package/dist/cjs/p-alert.cjs.entry.js +2 -2
- package/dist/cjs/p-badge.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/{p-dropdown_2.cjs.entry.js → p-button_3.cjs.entry.js} +55 -6
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-preview.cjs.entry.js +2 -2
- package/dist/cjs/p-input-text.cjs.entry.js +2 -2
- package/dist/cjs/p-leaf.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-preview.cjs.entry.js +2 -2
- package/dist/cjs/p-modal.cjs.entry.js +31 -0
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js +57 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js +41 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification.cjs.entry.js +64 -0
- package/dist/cjs/p-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/p-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/p-slider.cjs.entry.js +3 -3
- package/dist/cjs/p-switch-tile.cjs.entry.js +3 -3
- package/dist/cjs/p-switch.cjs.entry.js +4 -4
- package/dist/cjs/p-tab.cjs.entry.js +3 -3
- package/dist/cjs/p-tabs.cjs.entry.js +4 -4
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/papierjs.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/accordion/accordion.js +3 -3
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/dropdown/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown/dropdown/stories/dropdown.preview.js +1 -1
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +2 -2
- package/dist/collection/components/form/input-text/input-text.js +1 -1
- package/dist/collection/components/form/slider/sliders.js +2 -2
- package/dist/collection/components/form/switch/switch.js +3 -3
- package/dist/collection/components/form/switch-tile/switch-tile.js +2 -2
- package/dist/collection/components/leaf/leaf.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/stories/modal.preview.js +1 -1
- package/dist/collection/components/notification/p-notification/p-notification.css +3260 -0
- package/dist/collection/components/notification/p-notification/p-notification.js +164 -0
- package/dist/collection/components/notification/p-notification/p-notification.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.css +13 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js +100 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +36 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js.map +1 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/tabs/tab/tab.js +2 -2
- package/dist/collection/components/tabs/tabs/tabs.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-44ddcae9.js → p-3e858546.js} +3 -3
- package/dist/components/{p-44ddcae9.js.map → p-3e858546.js.map} +1 -1
- package/dist/components/{p-ee5f2278.js → p-51fafe64.js} +4 -4
- package/dist/components/{p-ee5f2278.js.map → p-51fafe64.js.map} +1 -1
- package/dist/components/{p-1754e5cb.js → p-555df865.js} +3 -3
- package/dist/components/{p-1754e5cb.js.map → p-555df865.js.map} +1 -1
- package/dist/components/p-accordion.js +4 -4
- package/dist/components/{p-eea4fbc1.js → p-af62ba98.js} +23 -2
- package/dist/components/p-af62ba98.js.map +1 -0
- package/dist/components/p-alert.js +2 -2
- package/dist/components/p-badge.js +2 -2
- package/dist/components/p-breadcrumb-item.js +2 -2
- package/dist/components/p-breadcrumb.js +2 -2
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-c3c46963.js +78 -0
- package/dist/components/p-c3c46963.js.map +1 -0
- package/dist/components/{p-18fc6353.js → p-c8138bbd.js} +4 -4
- package/dist/components/{p-18fc6353.js.map → p-c8138bbd.js.map} +1 -1
- package/dist/components/p-dropdown-item.js +1 -1
- package/dist/components/p-dropdown-preview.js +6 -6
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-ef7a623f.js +81 -0
- package/dist/components/p-ef7a623f.js.map +1 -0
- package/dist/components/p-input-text.js +2 -2
- package/dist/components/p-leaf.js +2 -2
- package/dist/components/p-modal-preview.js +4 -4
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-notification-handler.d.ts +11 -0
- package/dist/components/p-notification-handler.js +8 -0
- package/dist/components/p-notification-handler.js.map +1 -0
- package/dist/components/p-notification-preview.d.ts +11 -0
- package/dist/components/p-notification-preview.js +87 -0
- package/dist/components/p-notification-preview.js.map +1 -0
- package/dist/components/p-notification.d.ts +11 -0
- package/dist/components/p-notification.js +8 -0
- package/dist/components/p-notification.js.map +1 -0
- package/dist/components/p-progress-bar.js +2 -2
- package/dist/components/p-slider.js +3 -3
- package/dist/components/p-switch-tile.js +3 -3
- package/dist/components/p-switch.js +4 -4
- package/dist/components/p-tab.js +3 -3
- package/dist/components/p-tabs.js +4 -4
- package/dist/components/p-tooltip.js +2 -2
- package/dist/esm/{index-4646b002.js → index-7ee4e700.js} +39 -6
- package/dist/esm/index-7ee4e700.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +4 -4
- package/dist/esm/p-alert.entry.js +2 -2
- package/dist/esm/p-badge.entry.js +2 -2
- package/dist/esm/p-breadcrumb-item.entry.js +2 -2
- package/dist/esm/p-breadcrumb.entry.js +2 -2
- package/dist/esm/{p-dropdown_2.entry.js → p-button_3.entry.js} +55 -7
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-dropdown-preview.entry.js +2 -2
- package/dist/esm/p-input-text.entry.js +2 -2
- package/dist/esm/p-leaf.entry.js +2 -2
- package/dist/esm/p-modal-preview.entry.js +2 -2
- package/dist/esm/p-modal.entry.js +27 -0
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-notification-handler.entry.js +53 -0
- package/dist/esm/p-notification-handler.entry.js.map +1 -0
- package/dist/esm/p-notification-preview.entry.js +37 -0
- package/dist/esm/p-notification-preview.entry.js.map +1 -0
- package/dist/esm/p-notification.entry.js +60 -0
- package/dist/esm/p-notification.entry.js.map +1 -0
- package/dist/esm/p-progress-bar.entry.js +2 -2
- package/dist/esm/p-slider.entry.js +3 -3
- package/dist/esm/p-switch-tile.entry.js +3 -3
- package/dist/esm/p-switch.entry.js +4 -4
- package/dist/esm/p-tab.entry.js +3 -3
- package/dist/esm/p-tabs.entry.js +4 -4
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/esm/papierjs.js +3 -3
- package/dist/papierjs/{p-f21b09d8.entry.js → p-21ae2040.entry.js} +2 -2
- package/dist/papierjs/{p-005736fe.entry.js → p-3149398f.entry.js} +2 -2
- package/dist/papierjs/p-34a520d8.js +3 -0
- package/dist/papierjs/p-34a520d8.js.map +1 -0
- package/dist/papierjs/p-4de54c9d.entry.js +2 -0
- package/dist/papierjs/p-4de54c9d.entry.js.map +1 -0
- package/dist/papierjs/p-4e8985c5.entry.js +2 -0
- package/dist/papierjs/p-4e8985c5.entry.js.map +1 -0
- package/dist/papierjs/{p-08ab91b8.entry.js → p-4ef52ae1.entry.js} +2 -2
- package/dist/papierjs/{p-b5ab3669.entry.js → p-55975574.entry.js} +2 -2
- package/dist/papierjs/p-57f13bee.entry.js +2 -0
- package/dist/papierjs/p-5e68bd6c.entry.js +2 -0
- package/dist/papierjs/p-5e68bd6c.entry.js.map +1 -0
- package/dist/papierjs/{p-8a2f9883.entry.js → p-743abca9.entry.js} +2 -2
- package/dist/papierjs/p-7b6c5a15.entry.js +2 -0
- package/dist/papierjs/p-7b6c5a15.entry.js.map +1 -0
- package/dist/papierjs/{p-2a173336.entry.js → p-963f21b8.entry.js} +2 -2
- package/dist/papierjs/{p-6af8d60e.entry.js → p-a2523f10.entry.js} +2 -2
- package/dist/papierjs/{p-d98c84b2.entry.js → p-a40b185f.entry.js} +2 -2
- package/dist/papierjs/{p-dfbbdb7b.entry.js → p-acf916fa.entry.js} +2 -2
- package/dist/papierjs/{p-ba661e41.entry.js → p-b783633d.entry.js} +2 -2
- package/dist/papierjs/p-bc16a85a.entry.js +2 -0
- package/dist/papierjs/p-bc16a85a.entry.js.map +1 -0
- package/dist/papierjs/{p-deb8c796.entry.js → p-d583fd92.entry.js} +2 -2
- package/dist/papierjs/{p-5a7955a5.entry.js → p-d9e3c9ca.entry.js} +2 -2
- package/dist/papierjs/{p-e6765c48.entry.js → p-edbf5d19.entry.js} +2 -2
- package/dist/papierjs/{p-5f1c0163.entry.js → p-ef8536b9.entry.js} +2 -2
- package/dist/papierjs/{p-3231294d.entry.js → p-f7bc7154.entry.js} +2 -2
- package/dist/papierjs/papierjs.esm.js +1 -1
- package/dist/papierjs/papierjs.esm.js.map +1 -1
- package/dist/types/components/notification/p-notification/p-notification.d.ts +16 -0
- package/dist/types/components/notification/p-notification-handler/p-notification-handler.d.ts +18 -0
- package/dist/types/components/notification/p-notification-handler/stories/p-notification-preview.d.ts +7 -0
- package/dist/types/components.d.ts +66 -0
- package/package.json +1 -1
- package/readme.md +4 -4
- package/dist/cjs/index-82a72b67.js.map +0 -1
- package/dist/cjs/p-button_2.cjs.entry.js +0 -80
- package/dist/cjs/p-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/components/p-eea4fbc1.js.map +0 -1
- package/dist/esm/index-4646b002.js.map +0 -1
- package/dist/esm/p-button_2.entry.js +0 -75
- package/dist/esm/p-button_2.entry.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/papierjs/p-2f044192.entry.js +0 -2
- package/dist/papierjs/p-2f044192.entry.js.map +0 -1
- package/dist/papierjs/p-4ed82d68.js +0 -3
- package/dist/papierjs/p-4ed82d68.js.map +0 -1
- package/dist/papierjs/p-a3c7e705.entry.js +0 -2
- package/dist/papierjs/p-fc85498a.entry.js +0 -2
- package/dist/papierjs/p-fc85498a.entry.js.map +0 -1
- /package/dist/papierjs/{p-f21b09d8.entry.js.map → p-21ae2040.entry.js.map} +0 -0
- /package/dist/papierjs/{p-005736fe.entry.js.map → p-3149398f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-08ab91b8.entry.js.map → p-4ef52ae1.entry.js.map} +0 -0
- /package/dist/papierjs/{p-b5ab3669.entry.js.map → p-55975574.entry.js.map} +0 -0
- /package/dist/papierjs/{p-a3c7e705.entry.js.map → p-57f13bee.entry.js.map} +0 -0
- /package/dist/papierjs/{p-8a2f9883.entry.js.map → p-743abca9.entry.js.map} +0 -0
- /package/dist/papierjs/{p-2a173336.entry.js.map → p-963f21b8.entry.js.map} +0 -0
- /package/dist/papierjs/{p-6af8d60e.entry.js.map → p-a2523f10.entry.js.map} +0 -0
- /package/dist/papierjs/{p-d98c84b2.entry.js.map → p-a40b185f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-dfbbdb7b.entry.js.map → p-acf916fa.entry.js.map} +0 -0
- /package/dist/papierjs/{p-ba661e41.entry.js.map → p-b783633d.entry.js.map} +0 -0
- /package/dist/papierjs/{p-deb8c796.entry.js.map → p-d583fd92.entry.js.map} +0 -0
- /package/dist/papierjs/{p-5a7955a5.entry.js.map → p-d9e3c9ca.entry.js.map} +0 -0
- /package/dist/papierjs/{p-e6765c48.entry.js.map → p-edbf5d19.entry.js.map} +0 -0
- /package/dist/papierjs/{p-5f1c0163.entry.js.map → p-ef8536b9.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3231294d.entry.js.map → p-f7bc7154.entry.js.map} +0 -0
|
@@ -18,7 +18,7 @@ export class Alert {
|
|
|
18
18
|
(_a = this.el.querySelector('p-modal')) === null || _a === void 0 ? void 0 : _a.close();
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'df37aa4e5887d0fc46895775dcdbe380a4092a36' }, h("p-modal", { key: 'b89060780ffe93c840cb78467910296bdebe1bc0' }, h("p", { key: '011ddda0511d9ff7337145a1239c69e235f09145' }, "You select ", h("b", { key: 'ed590674ca12afefe226a9e9ad1aea8f0387fca1' }, this.value)), h("br", { key: '776e9209f621d950768ad1f24efdcd64e3c849f8' }), h("p-button", { key: '8be19c4fc1a7e1215fb65d8b676f298ebc42c605', type: "success", onClick: () => this.onValidate() }, "I validate"), "\u00A0", h("p-button", { key: '8adbf264311dedb4ef26b5af44175c22a9f94d2f', type: "danger", onClick: () => this.onClose() }, "No !")), h("p-dropdown", { key: '9f605f76ef7bcb4ae6ff802359e7178b05fc8c4c', placeholder: "Choose best framework", "prevent-selected": true, onSelect: (e) => this.showModal(e.detail), value: this.selectedValue }, h("p-dropdown-item", { key: '5f5ec1e0669a58508f9e64a9ee1db20a7b365dc3', value: "awesome", selected: this.selectedValue === 'awesome' }, "Vue"), h("p-dropdown-item", { key: '0c2b66e174ca1a97395137b2cc65e4e77b21a51f', value: "Stencil", selected: this.selectedValue === 'Stencil' }, "Stencil"), h("p-dropdown-item", { key: '91a2a435496363e169f9a7d47a906491d9037840', value: "Storybook", selected: this.selectedValue === 'Storybook' }, "Storybook"))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "p-dropdown-preview"; }
|
|
24
24
|
static get states() {
|
|
@@ -14,10 +14,10 @@ export class DropdownItem {
|
|
|
14
14
|
this.changeEvent.emit(this.value);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: 'a140fa5e96379d94c3193405a35c2e5e814a1dad', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: '92098283fd6d143901d82750a652f81d3b94d522', class: {
|
|
18
18
|
'background-success': this.selected,
|
|
19
19
|
'border border-primary': true,
|
|
20
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: 'c68ee3b98574c31dcc9d9fbd6fa133cf9961d439' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "p-dropdown-item"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class InputText {
|
|
|
25
25
|
this.changeEvent.emit(e.target.value);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: '3cceeb1effdf25ee184beb615411174ee293cfd4', class: this.getParentClass() }, this.label && (h("label", { key: 'dba98eefd19e872f2bca1be1e71673ca9992a066', htmlFor: "paperInputs1" }, this.label, this.required ? '*' : '')), h("input", { key: '204e3a446f45c569f7fd934d3da67f9518dd6f8b', type: "text", placeholder: this.placeholder, id: "paperInputs1", disabled: this.disabled, value: this.value, onChange: (e) => this.onChange(e) })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "p-input-text"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,11 +10,11 @@ export class PSliders {
|
|
|
10
10
|
this.changeEvent.emit(Number.parseInt(e.target.value));
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'd781d4bbf5506a5ca6c032e47a19f85e7410834e' }, h("div", { key: 'ea47478f383250c94cb89c76850736315c61c916', class: {
|
|
14
14
|
papier: true,
|
|
15
15
|
'is--block': this.block,
|
|
16
16
|
'is--dark': this.dark,
|
|
17
|
-
} }, h("div", { key: '
|
|
17
|
+
} }, h("div", { key: '042736e16ee21d0cec0f9e5f2aba79bc792f05e1', class: "form-group" }, h("input", { key: '826d1670c732285d12becb6f0a1aa42f1c67bb9e', class: "input-block", type: "range", min: this.min, max: this.max, value: this.value, onInput: (e) => {
|
|
18
18
|
this.onInput(e);
|
|
19
19
|
} })))));
|
|
20
20
|
}
|
|
@@ -12,13 +12,13 @@ export class PSwitch {
|
|
|
12
12
|
this.changeEvent.emit(e.target.checked);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'dc34b7bcd066f56069cff699bbd6f772c321fda4' }, h("div", { key: '60dad8de3b96b83993397b9e3f461e8927404a5e', class: {
|
|
16
16
|
papier: true,
|
|
17
17
|
'is--dark': this.dark,
|
|
18
|
-
} }, h("div", { key: '
|
|
18
|
+
} }, h("div", { key: '50b4d74c78067fc022637aa3cd89358b007a5931', class: "form-group" }, h("label", { key: 'acda7120df26268b1f2a1ee37074a88a6726f240', class: {
|
|
19
19
|
'paper-switch': !this.square,
|
|
20
20
|
'paper-switch-2': this.square,
|
|
21
|
-
} }, h("input", { key: '
|
|
21
|
+
} }, h("input", { key: '7f1d80e40ab826c476d0e69427bd0343ceed85ee', id: "paperSwitch4", name: "paperSwitch4", type: "checkbox", checked: this.checked, onInput: (e) => this.onInput(e) }), h("span", { key: 'c1d59ba857f9a4f8246707ad43909f7b266b2cda', class: {
|
|
22
22
|
round: this.round,
|
|
23
23
|
'paper-switch-slider': true,
|
|
24
24
|
} }))))));
|
|
@@ -30,10 +30,10 @@ export class SwitchTile {
|
|
|
30
30
|
return cssClass;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'c45d3f233e411919b3b7b761875eee407a30ded8' }, h("div", { key: 'ef04d121a7bb316910bb5eba320636e469b15296', class: {
|
|
34
34
|
papier: true,
|
|
35
35
|
'is--dark': this.dark,
|
|
36
|
-
} }, h("div", { key: '
|
|
36
|
+
} }, h("div", { key: 'a4f4e141456ab2006b35586ac0a2b5df30dc6d21', class: "form-group" }, h("label", { key: '1daa9c09dea72d9b4f320e781f6d2bec8eb20a6d', htmlFor: "paperSwitch1", class: "paper-switch-tile" }, h("input", { key: 'a589300af34234bb2b844aa528f52bff61701883', id: "paperSwitch1", name: "paperSwitch1", type: "checkbox", checked: this.checked }), h("div", { key: '6ac3923e0492d44260de85441704752880dfc8da', class: "paper-switch-tile-card border" }, h("div", { key: 'c9704b1755e51699617069809e4451746bfce0f1', class: this.getFrontCardClass() }, h("slot", { key: '0790743399ebc98930a6c51bbc7a710fe4eebf3d', name: "unchecked-text" })), h("div", { key: 'f3db508d13e66c2064f9802694fdef7a72a70b0c', class: this.getBackCardClass() }, h("slot", { key: '3392366f8d3e4ea7f54ffb31fe8c7e7ce7e8d1d5', name: "checked-text" }))))))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "p-switch-tile"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class Alert {
|
|
|
7
7
|
return this.dark ? 'papier is--dark' : 'papier';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: '907cf99eea83d38912f22d7cdc20e131e961c215', class: this.getParentClass() }, h("slot", { key: '6023549f324165e8db91eba3560f91b514a8d2f5' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "p-leaf"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -11,7 +11,7 @@ export class PModal {
|
|
|
11
11
|
this.closeEvent.emit(null);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'be3ee52be04fb9a186a8ef4011b682ab69a09e90' }, this.isOpen && (h("div", { key: '9c2f4b453dcff18928d89662bc789325a0f672ea', class: "papier" }, h("div", { key: '805c5d128dfe694c8d773e36cd25c1e595a0dd05', class: "modal" }, h("div", { key: '9434cf8e8b875df46741fc3c867570800bbea191', class: "modal-bg", onClick: () => this.close() }), h("div", { key: '3edcb63b1cfcc2d4a6a80c8e436e78ffc6b616fc', class: "modal-body" }, h("span", { key: 'dc1bbf2cdfc0ed81d4a2e03a172cdc9202abe812', class: "btn-close", onClick: () => this.close() }, "X"), h("h4", { key: '226f8c211309f416741258fa0b67a64fdd2ab3ba', class: "modal-title" }, h("slot", { key: '5fd2161e457c7b7057575d8037f29990b6be5f7b', name: "title" })), h("h5", { key: '99acaeb1602030fc4777edff2183cacf50893d77', class: "modal-subtitle" }, h("slot", { key: '5506be612154ecaceafdfc042642e6ae9a20c820', name: "sub-title" })), h("p", { key: 'ba008f858a1128780dd1c1541cd3cb633a59f75d', class: "modal-text" }, h("slot", { key: 'fe6b9654a0f2e68d06092fafd1f0e8d283492284', name: "text" })), h("slot", { key: 'f8a888f81b3e535b06607673a931014984d23c63' })))))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "p-modal"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class PModalPreview {
|
|
|
12
12
|
(_a = this.el.querySelector('p-modal')) === null || _a === void 0 ? void 0 : _a.close();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
15
|
+
return (h("div", { key: '1443551adceb5558ad63e775099e0aecbf4cb19c' }, this.title === true ? (h("p-modal", null, h("span", { slot: "title" }, "Modal title"), h("span", { slot: "sub-title" }, "Modal sub title"), h("span", { slot: "text" }, "This is an example of modal which is implemented with pure CSS! :D"), h("p-button", { type: "warning", onClick: () => this.closeModal() }, "Close it !"))) : (h("p-modal", null, h("h1", null, "Ciao fratello"), h("p", null, "click on button, cross or outside modal to close it."), h("br", null), h("p-button", { type: "success", onClick: () => this.closeModal() }, "Close modal"))), h("p-button", { key: 'de203ae35e8b1669d5576b141e2ce53c0f20a671', type: this.title ? 'secondary' : 'primary', onClick: () => {
|
|
16
16
|
this.openModal();
|
|
17
17
|
} }, "Open modal")));
|
|
18
18
|
}
|