@amiceli/papierjs 0.8.0 → 0.9.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-e53c626b.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +8 -5
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-preview.cjs.entry.js +1 -1
- package/dist/cjs/p-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-input-text.cjs.entry.js +2 -2
- package/dist/cjs/p-leaf.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-preview.cjs.entry.js +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-notification-preview.cjs.entry.js +4 -4
- package/dist/cjs/p-notification.cjs.entry.js +1 -1
- package/dist/cjs/p-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/p-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-spinner.cjs.entry.js +33 -0
- package/dist/cjs/p-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/p-switch-tile.cjs.entry.js +2 -2
- package/dist/cjs/p-switch.cjs.entry.js +3 -3
- package/dist/cjs/p-tab.cjs.entry.js +2 -2
- package/dist/cjs/p-tabs.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/papierjs.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/button/button.js +24 -1
- package/dist/collection/components/button/button.js.map +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 +2 -2
- 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.js +1 -1
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +4 -4
- package/dist/collection/components/p-icon/p-icon.js +1 -1
- package/dist/collection/components/p-spinner/p-spinner.css +3250 -0
- package/dist/collection/components/p-spinner/p-spinner.js +94 -0
- package/dist/collection/components/p-spinner/p-spinner.js.map +1 -0
- package/dist/collection/components/p-spinner/stories/p-spinner-playground.stories.js +27 -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/{p-5422fb93.js → p-34faf3f1.js} +2 -2
- package/dist/components/{p-5422fb93.js.map → p-34faf3f1.js.map} +1 -1
- package/dist/components/{p-8d6f74ef.js → p-642f2cf7.js} +2 -2
- package/dist/components/{p-8d6f74ef.js.map → p-642f2cf7.js.map} +1 -1
- package/dist/components/{p-b79c14df.js → p-a714a956.js} +3 -3
- package/dist/components/{p-b79c14df.js.map → p-a714a956.js.map} +1 -1
- package/dist/components/p-a900d6a8.js +49 -0
- package/dist/components/p-a900d6a8.js.map +1 -0
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-dropdown-item.js +1 -1
- package/dist/components/p-dropdown-preview.js +15 -9
- package/dist/components/p-dropdown-preview.js.map +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/{p-9d035fcd.js → p-ef0c3ae9.js} +2 -2
- package/dist/components/{p-9d035fcd.js.map → p-ef0c3ae9.js.map} +1 -1
- package/dist/components/{p-5f80356d.js → p-f4386040.js} +14 -4
- package/dist/components/p-f4386040.js.map +1 -0
- package/dist/components/{p-df78f867.js → p-fe923a22.js} +3 -3
- package/dist/components/{p-df78f867.js.map → p-fe923a22.js.map} +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-input-text.js +2 -2
- package/dist/components/p-leaf.js +1 -1
- package/dist/components/p-modal-preview.js +11 -5
- package/dist/components/p-modal-preview.js.map +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-notification-handler.js +1 -1
- package/dist/components/p-notification-preview.js +20 -14
- package/dist/components/p-notification-preview.js.map +1 -1
- package/dist/components/p-notification.js +1 -1
- package/dist/components/p-progress-bar.js +1 -1
- package/dist/components/p-slider.js +2 -2
- package/dist/components/p-spinner.d.ts +11 -0
- package/dist/components/p-spinner.js +8 -0
- package/dist/components/p-spinner.js.map +1 -0
- package/dist/components/p-switch-tile.js +2 -2
- package/dist/components/p-switch.js +3 -3
- package/dist/components/p-tab.js +2 -2
- package/dist/components/p-tabs.js +3 -3
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/index-aee2eada.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-button_3.entry.js +9 -6
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-dropdown-preview.entry.js +1 -1
- package/dist/esm/p-icon.entry.js +1 -1
- package/dist/esm/p-input-text.entry.js +2 -2
- package/dist/esm/p-leaf.entry.js +1 -1
- package/dist/esm/p-modal-preview.entry.js +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-notification-preview.entry.js +4 -4
- package/dist/esm/p-notification.entry.js +1 -1
- package/dist/esm/p-progress-bar.entry.js +1 -1
- package/dist/esm/p-slider.entry.js +2 -2
- package/dist/esm/p-spinner.entry.js +29 -0
- package/dist/esm/p-spinner.entry.js.map +1 -0
- package/dist/esm/p-switch-tile.entry.js +2 -2
- package/dist/esm/p-switch.entry.js +3 -3
- package/dist/esm/p-tab.entry.js +2 -2
- package/dist/esm/p-tabs.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/esm/papierjs.js +1 -1
- package/dist/papierjs/{p-67278128.entry.js → p-03a16f60.entry.js} +2 -2
- package/dist/papierjs/p-06d54935.entry.js +2 -0
- package/dist/papierjs/{p-7db7534b.entry.js → p-08aac893.entry.js} +2 -2
- package/dist/papierjs/{p-a502278a.entry.js → p-0c87229d.entry.js} +2 -2
- package/dist/papierjs/p-2cb3923f.entry.js +2 -0
- package/dist/papierjs/p-2cb3923f.entry.js.map +1 -0
- package/dist/papierjs/{p-9bf96d13.entry.js → p-3c06fffc.entry.js} +2 -2
- package/dist/papierjs/{p-7cdc4dca.entry.js → p-462779ed.entry.js} +2 -2
- package/dist/papierjs/{p-cc121ae9.entry.js → p-5a6898e8.entry.js} +2 -2
- package/dist/papierjs/{p-c6b354fb.entry.js → p-5c511196.entry.js} +2 -2
- package/dist/papierjs/{p-3e170867.entry.js → p-7d32bcf0.entry.js} +2 -2
- package/dist/papierjs/{p-3bffe4aa.entry.js → p-83c4843a.entry.js} +2 -2
- package/dist/papierjs/{p-b8e34895.entry.js → p-860525ed.entry.js} +2 -2
- package/dist/papierjs/{p-91b8f71b.entry.js → p-9b8dfa28.entry.js} +2 -2
- package/dist/papierjs/{p-db166642.entry.js → p-b292b138.entry.js} +2 -2
- package/dist/papierjs/p-b3f595fd.entry.js +2 -0
- package/dist/papierjs/p-b3f595fd.entry.js.map +1 -0
- package/dist/papierjs/p-b8b2a5c8.entry.js +2 -0
- package/dist/papierjs/{p-f2b657b2.entry.js → p-c2d59e17.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/button/button.d.ts +2 -0
- package/dist/types/components/p-spinner/p-spinner.d.ts +9 -0
- package/dist/types/components.d.ts +21 -0
- package/package.json +1 -1
- package/dist/components/p-5f80356d.js.map +0 -1
- package/dist/papierjs/p-71473b6e.entry.js +0 -2
- package/dist/papierjs/p-cec4e9a5.entry.js +0 -2
- package/dist/papierjs/p-cec4e9a5.entry.js.map +0 -1
- package/dist/papierjs/p-d3e11d7d.entry.js +0 -2
- /package/dist/papierjs/{p-67278128.entry.js.map → p-03a16f60.entry.js.map} +0 -0
- /package/dist/papierjs/{p-d3e11d7d.entry.js.map → p-06d54935.entry.js.map} +0 -0
- /package/dist/papierjs/{p-7db7534b.entry.js.map → p-08aac893.entry.js.map} +0 -0
- /package/dist/papierjs/{p-a502278a.entry.js.map → p-0c87229d.entry.js.map} +0 -0
- /package/dist/papierjs/{p-9bf96d13.entry.js.map → p-3c06fffc.entry.js.map} +0 -0
- /package/dist/papierjs/{p-7cdc4dca.entry.js.map → p-462779ed.entry.js.map} +0 -0
- /package/dist/papierjs/{p-cc121ae9.entry.js.map → p-5a6898e8.entry.js.map} +0 -0
- /package/dist/papierjs/{p-c6b354fb.entry.js.map → p-5c511196.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3e170867.entry.js.map → p-7d32bcf0.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3bffe4aa.entry.js.map → p-83c4843a.entry.js.map} +0 -0
- /package/dist/papierjs/{p-b8e34895.entry.js.map → p-860525ed.entry.js.map} +0 -0
- /package/dist/papierjs/{p-91b8f71b.entry.js.map → p-9b8dfa28.entry.js.map} +0 -0
- /package/dist/papierjs/{p-db166642.entry.js.map → p-b292b138.entry.js.map} +0 -0
- /package/dist/papierjs/{p-71473b6e.entry.js.map → p-b8b2a5c8.entry.js.map} +0 -0
- /package/dist/papierjs/{p-f2b657b2.entry.js.map → p-c2d59e17.entry.js.map} +0 -0
|
@@ -22,13 +22,13 @@ const PSwitch = class {
|
|
|
22
22
|
this.changeEvent.emit(e.target.checked);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: 'dc34b7bcd066f56069cff699bbd6f772c321fda4' }, index.h("div", { key: '60dad8de3b96b83993397b9e3f461e8927404a5e', class: {
|
|
26
26
|
papier: true,
|
|
27
27
|
'is--dark': this.dark,
|
|
28
|
-
} }, index.h("div", { key: '
|
|
28
|
+
} }, index.h("div", { key: '50b4d74c78067fc022637aa3cd89358b007a5931', class: "form-group" }, index.h("label", { key: 'acda7120df26268b1f2a1ee37074a88a6726f240', class: {
|
|
29
29
|
'paper-switch': !this.square,
|
|
30
30
|
'paper-switch-2': this.square,
|
|
31
|
-
} }, index.h("input", { key: '
|
|
31
|
+
} }, index.h("input", { key: '7f1d80e40ab826c476d0e69427bd0343ceed85ee', id: "paperSwitch4", name: "paperSwitch4", type: "checkbox", checked: this.checked, onInput: (e) => this.onInput(e) }), index.h("span", { key: 'c1d59ba857f9a4f8246707ad43909f7b266b2cda', class: {
|
|
32
32
|
round: this.round,
|
|
33
33
|
'paper-switch-slider': true,
|
|
34
34
|
} }))))));
|
|
@@ -14,11 +14,11 @@ const PTab = class {
|
|
|
14
14
|
this.dark = false;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '1ea5cf18627b1720210a140698e035707cfb8b1f' }, index.h("div", { key: 'f57138c165e957d2dfe375920728c821bd96a435', class: {
|
|
18
18
|
papier: true,
|
|
19
19
|
'is--selected': this.selected,
|
|
20
20
|
'is--dark': this.dark,
|
|
21
|
-
} }, index.h("slot", { key: '
|
|
21
|
+
} }, index.h("slot", { key: 'd3ae85ebe177281245e489a2e7ec55926edf410f' }))));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
PTab.style = PTabStyle0;
|
|
@@ -50,12 +50,12 @@ const PTabs = class {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: 'd59b104d239042132d6c4451b58aad48b3886234' }, index.h("div", { key: '2eb521ba002c190a066dc7039474c5969e0c1bf1', class: {
|
|
54
54
|
'is--dark': this.dark,
|
|
55
55
|
papier: true,
|
|
56
|
-
} }, index.h("div", { key: '
|
|
56
|
+
} }, index.h("div", { key: 'a9db4856105d86313b229a0abca779e8c98ca4d9', class: "row flex-spaces tabs" }, this.tabs.map((t) => {
|
|
57
57
|
return (index.h("label", { class: this.getTabClass(t), htmlFor: "tab1", key: t.title, onClick: () => this.onSelectTab(t) }, t.title));
|
|
58
|
-
}), index.h("div", { key: '
|
|
58
|
+
}), index.h("div", { key: 'f363537fc0ce3a310d2a1c5eef72884ceb122ff7', class: "content" }, index.h("slot", { key: '24150a096b7344d7f74ccfae58ca283ed8eb3f45' }))))));
|
|
59
59
|
}
|
|
60
60
|
get el() { return index.getElement(this); }
|
|
61
61
|
};
|
|
@@ -17,7 +17,7 @@ const PTooltip = class {
|
|
|
17
17
|
this.top = false;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(index.Host, { key: '
|
|
20
|
+
return (index.h(index.Host, { key: '49696872fd30c059c732eac8b29b97f8a4df80f8' }, index.h("div", { key: '63c42e1a0dca1b46e0064bac1104aa4db0f2af7a', class: "papier" }, index.h("div", { key: '0bd0ca4afc6aef686ee52859a3782a3a27d708c1', "popover-left": this.left && !this.disabled ? this.title : null, "popover-right": this.right && !this.disabled ? this.title : null, "popover-bottom": this.bottom && !this.disabled ? this.title : null, "popover-top": this.top && !this.disabled ? this.title : null }, index.h("slot", { key: '97d076079f049d7cbf4187675b81a6c5c95aab4f' })))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
PTooltip.style = PTooltipStyle0;
|
package/dist/cjs/papierjs.cjs.js
CHANGED
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["p-notification-preview.cjs",[[0,"p-notification-preview",{"notificationType":[32]}]]],["p-dropdown-preview.cjs",[[0,"p-dropdown-preview",{"value":[32],"selectedValue":[32]}]]],["p-modal-preview.cjs",[[0,"p-modal-preview",{"title":[4]}]]],["p-accordion.cjs",[[1,"p-accordion",{"title":[1],"open":[1028]}]]],["p-alert.cjs",[[1,"p-alert",{"type":[1],"closable":[4],"dark":[4]}]]],["p-badge.cjs",[[1,"p-badge",{"type":[1],"dark":[4]}]]],["p-breadcrumb.cjs",[[1,"p-breadcrumb",{"dark":[4]}]]],["p-breadcrumb-item.cjs",[[1,"p-breadcrumb-item",{"dark":[4],"first":[4],"link":[1]}]]],["p-icon.cjs",[[1,"p-icon",{"icon":[1],"size":[2],"color":[1],"svgContent":[32]}]]],["p-input-text.cjs",[[1,"p-input-text",{"placeholder":[1],"value":[1025],"required":[4],"dark":[4],"label":[1],"disabled":[4],"block":[4],"error":[1]}]]],["p-leaf.cjs",[[4,"p-leaf",{"dark":[4]}]]],["p-progress-bar.cjs",[[1,"p-progress-bar",{"type":[1],"value":[2],"striped":[4],"dark":[4],"auto":[2],"interval":[32]}]]],["p-slider.cjs",[[1,"p-slider",{"value":[2],"min":[2],"max":[2],"block":[4],"dark":[4]}]]],["p-switch.cjs",[[1,"p-switch",{"round":[4],"square":[4],"dark":[4],"checked":[4]}]]],["p-switch-tile.cjs",[[1,"p-switch-tile",{"dark":[4],"checked":[4],"checkedBackground":[1,"checked-background"],"uncheckedBackground":[1,"unchecked-background"]}]]],["p-tab.cjs",[[1,"p-tab",{"title":[1],"selected":[1028],"dark":[4]}]]],["p-tabs.cjs",[[1,"p-tabs",{"dark":[4],"tabs":[32],"selectedTab":[32]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"title":[1],"disabled":[4],"left":[4],"right":[4],"bottom":[4],"top":[4]}]]],["p-notification-handler.cjs",[[1,"p-notification-handler",{"notifications":[32],"pushNotification":[64]},[[0,"close","closeToastHandler"]]]]],["p-modal.cjs",[[1,"p-modal",{"isOpen":[32],"open":[64],"close":[64]}]]],["p-notification.cjs",[[1,"p-notification",{"type":[1],"text":[1],"canclose":[4],"timestamp":[1]}]]],["p-button_3.cjs",[[1,"p-dropdown",{"dark":[4],"preventSelected":[4,"prevent-selected"],"value":[1025],"placeholder":[1],"open":[32],"selectedValue":[32]},[[8,"click","detectOutsideClick"]]],[1,"p-dropdown-item",{"value":[1],"selected":[4],"dark":[4]}],[1,"p-button",{"type":[1],"outline":[4],"large":[4],"small":[4],"block":[4],"disabled":[4],"dark":[4]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["p-notification-preview.cjs",[[0,"p-notification-preview",{"notificationType":[32]}]]],["p-dropdown-preview.cjs",[[0,"p-dropdown-preview",{"value":[32],"selectedValue":[32]}]]],["p-modal-preview.cjs",[[0,"p-modal-preview",{"title":[4]}]]],["p-accordion.cjs",[[1,"p-accordion",{"title":[1],"open":[1028]}]]],["p-alert.cjs",[[1,"p-alert",{"type":[1],"closable":[4],"dark":[4]}]]],["p-badge.cjs",[[1,"p-badge",{"type":[1],"dark":[4]}]]],["p-breadcrumb.cjs",[[1,"p-breadcrumb",{"dark":[4]}]]],["p-breadcrumb-item.cjs",[[1,"p-breadcrumb-item",{"dark":[4],"first":[4],"link":[1]}]]],["p-icon.cjs",[[1,"p-icon",{"icon":[1],"size":[2],"color":[1],"svgContent":[32]}]]],["p-input-text.cjs",[[1,"p-input-text",{"placeholder":[1],"value":[1025],"required":[4],"dark":[4],"label":[1],"disabled":[4],"block":[4],"error":[1]}]]],["p-leaf.cjs",[[4,"p-leaf",{"dark":[4]}]]],["p-progress-bar.cjs",[[1,"p-progress-bar",{"type":[1],"value":[2],"striped":[4],"dark":[4],"auto":[2],"interval":[32]}]]],["p-slider.cjs",[[1,"p-slider",{"value":[2],"min":[2],"max":[2],"block":[4],"dark":[4]}]]],["p-switch.cjs",[[1,"p-switch",{"round":[4],"square":[4],"dark":[4],"checked":[4]}]]],["p-switch-tile.cjs",[[1,"p-switch-tile",{"dark":[4],"checked":[4],"checkedBackground":[1,"checked-background"],"uncheckedBackground":[1,"unchecked-background"]}]]],["p-tab.cjs",[[1,"p-tab",{"title":[1],"selected":[1028],"dark":[4]}]]],["p-tabs.cjs",[[1,"p-tabs",{"dark":[4],"tabs":[32],"selectedTab":[32]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"title":[1],"disabled":[4],"left":[4],"right":[4],"bottom":[4],"top":[4]}]]],["p-notification-handler.cjs",[[1,"p-notification-handler",{"notifications":[32],"pushNotification":[64]},[[0,"close","closeToastHandler"]]]]],["p-modal.cjs",[[1,"p-modal",{"isOpen":[32],"open":[64],"close":[64]}]]],["p-notification.cjs",[[1,"p-notification",{"type":[1],"text":[1],"canclose":[4],"timestamp":[1]}]]],["p-spinner.cjs",[[1,"p-spinner",{"large":[4],"color":[1],"dark":[4]}]]],["p-button_3.cjs",[[1,"p-dropdown",{"dark":[4],"preventSelected":[4,"prevent-selected"],"value":[1025],"placeholder":[1],"open":[32],"selectedValue":[32]},[[8,"click","detectOutsideClick"]]],[1,"p-dropdown-item",{"value":[1],"selected":[4],"dark":[4]}],[1,"p-button",{"type":[1],"outline":[4],"large":[4],"small":[4],"block":[4],"disabled":[4],"dark":[4],"loading":[4]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"components/notification/p-notification/p-notification.js",
|
|
21
21
|
"components/notification/p-notification-handler/stories/p-notification-preview.js",
|
|
22
22
|
"components/p-icon/p-icon.js",
|
|
23
|
+
"components/p-spinner/p-spinner.js",
|
|
23
24
|
"components/progress-bar/progress-bar.js",
|
|
24
25
|
"components/tabs/tab/tab.js",
|
|
25
26
|
"components/tabs/tabs/tabs.js",
|
|
@@ -11,6 +11,7 @@ export class Button {
|
|
|
11
11
|
this.block = false;
|
|
12
12
|
this.disabled = false;
|
|
13
13
|
this.dark = false;
|
|
14
|
+
this.loading = false;
|
|
14
15
|
}
|
|
15
16
|
getClass() {
|
|
16
17
|
const types = ['success', 'secondary', 'primary', 'danger', 'warning'];
|
|
@@ -41,7 +42,8 @@ export class Button {
|
|
|
41
42
|
return cssClass;
|
|
42
43
|
}
|
|
43
44
|
render() {
|
|
44
|
-
|
|
45
|
+
const color = `var(--${this.type}${this.dark ? '-light' : ''})`;
|
|
46
|
+
return (h("div", { key: '306ec0e0b6c738d5949f2d011c18b83f815fb4c0', class: this.getParentClass() }, h("button", { key: 'e65756d405f737aca00e6791c0fb369a26c206c4', disabled: this.disabled, type: "button", class: this.getClass() }, !this.loading ? (h("slot", null)) : (h("p-spinner", { color: color, dark: this.dark })))));
|
|
45
47
|
}
|
|
46
48
|
static get is() { return "p-button"; }
|
|
47
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -201,8 +203,29 @@ export class Button {
|
|
|
201
203
|
"attribute": "dark",
|
|
202
204
|
"reflect": false,
|
|
203
205
|
"defaultValue": "false"
|
|
206
|
+
},
|
|
207
|
+
"loading": {
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "boolean",
|
|
212
|
+
"resolved": "boolean",
|
|
213
|
+
"references": {}
|
|
214
|
+
},
|
|
215
|
+
"required": false,
|
|
216
|
+
"optional": true,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": ""
|
|
220
|
+
},
|
|
221
|
+
"getter": false,
|
|
222
|
+
"setter": false,
|
|
223
|
+
"attribute": "loading",
|
|
224
|
+
"reflect": false,
|
|
225
|
+
"defaultValue": "false"
|
|
204
226
|
}
|
|
205
227
|
};
|
|
206
228
|
}
|
|
229
|
+
static get elementRef() { return "el"; }
|
|
207
230
|
}
|
|
208
231
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAI3D;;GAEG;AAMH,MAAM,OAAO,MAAM;IALnB;QASI,SAAI,GAAiB,SAAS,CAAA;QAE9B,YAAO,GAAa,KAAK,CAAA;QAEzB,UAAK,GAAa,KAAK,CAAA;QAEvB,UAAK,GAAa,KAAK,CAAA;QAEvB,UAAK,GAAa,KAAK,CAAA;QAEvB,aAAQ,GAAa,KAAK,CAAA;QAE1B,SAAI,GAAa,KAAK,CAAA;QAEtB,YAAO,GAAa,KAAK,CAAA;KAwD5B;IAtDU,QAAQ;QACX,MAAM,KAAK,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;QACtE,IAAI,QAAQ,GAAG,EAAE,CAAA;QAEjB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7B,QAAQ,GAAG,aAAa,CAAA;QAC5B,CAAC;aAAM,CAAC;YACJ,QAAQ,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;QACjC,CAAC;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,QAAQ,GAAG,UAAU,CAAA;QACzB,CAAC;QAED,QAAQ,GAAG,GAAG,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QACzD,QAAQ,GAAG,GAAG,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QACzD,QAAQ,GAAG,GAAG,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QACzD,QAAQ,GAAG,GAAG,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;QAEzD,OAAO,QAAQ,CAAA;IACnB,CAAC;IAEM,cAAc;QACjB,IAAI,QAAQ,GAAG,QAAQ,CAAA;QAEvB,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,QAAQ,GAAG,GAAG,QAAQ,YAAY,CAAA;QACtC,CAAC;QAED,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,QAAQ,GAAG,GAAG,QAAQ,WAAW,CAAA;QACrC,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;IACD,MAAM;QACF,MAAM,KAAK,GAAG,SAAS,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,CAAA;QAE/D,OAAO,CACH,4DAAK,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE;YAC7B,+DACI,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAErB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACb,eAAQ,CACX,CAAC,CAAC,CAAC,CACA,iBAAW,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CAC/C,CACI,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Element, Prop, h } from '@stencil/core'\n\ntype ButtonColor = 'success' | 'secondary' | 'primary' | 'danger' | 'warning'\n\n/**\n * @slot - button content\n */\n@Component({\n tag: 'p-button',\n styleUrl: 'button.scss',\n shadow: true,\n})\nexport class Button {\n @Element()\n el: Element\n @Prop()\n type?: ButtonColor = 'primary'\n @Prop()\n outline?: boolean = false\n @Prop()\n large?: boolean = false\n @Prop()\n small?: boolean = false\n @Prop()\n block?: boolean = false\n @Prop()\n disabled?: boolean = false\n @Prop()\n dark?: boolean = false\n @Prop()\n loading?: boolean = false\n\n public getClass(): string {\n const types = ['success', 'secondary', 'primary', 'danger', 'warning']\n let cssClass = ''\n\n if (!types.includes(this.type)) {\n cssClass = 'btn-primary'\n } else {\n cssClass = `btn-${this.type}`\n }\n\n if (this.disabled) {\n cssClass = 'disabled'\n }\n\n cssClass = `${cssClass}${this.outline ? '-outline' : ''}`\n cssClass = `${cssClass}${this.large ? ' btn-large' : ''}`\n cssClass = `${cssClass}${this.small ? ' btn-small' : ''}`\n cssClass = `${cssClass}${this.block ? ' btn-block' : ''}`\n\n return cssClass\n }\n\n public getParentClass() {\n let cssClass = 'papier'\n\n if (this.block) {\n cssClass = `${cssClass} is--block`\n }\n\n if (this.dark) {\n cssClass = `${cssClass} is--dark`\n }\n\n return cssClass\n }\n render() {\n const color = `var(--${this.type}${this.dark ? '-light' : ''})`\n\n return (\n <div class={this.getParentClass()}>\n <button\n disabled={this.disabled}\n type=\"button\"\n class={this.getClass()}\n >\n {!this.loading ? (\n <slot />\n ) : (\n <p-spinner color={color} dark={this.dark} />\n )}\n </button>\n </div>\n )\n }\n}\n"]}
|
|
@@ -63,9 +63,9 @@ export class Alert {
|
|
|
63
63
|
render() {
|
|
64
64
|
const selected = this.getSelectedValue();
|
|
65
65
|
const arrowIcon = feather.icons['chevron-down'].toSvg();
|
|
66
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: 'a58cb116140fba1936bdd1256e45c02dd14adf4b', class: this.getParentClass() }, h("div", { key: '3f73224c62767cc1af3547b5957c4570714c4857', class: "dropdown__header border border-primary", onClick: () => {
|
|
67
67
|
this.open = !this.open;
|
|
68
|
-
} }, h("span", { key: '
|
|
68
|
+
} }, h("span", { key: '5cea9b8d3e440a539e29d8d75313446df89e52a9' }, selected), h("span", { key: '9ed09221e97a13894a3a81a6a4b0f3e0c268c155', class: "for--icon", innerHTML: arrowIcon })), h("div", { key: '6f79a026eddddd24b9e4973e732a25ea68a9be16', class: "dropdown__children" }, h("slot", { key: 'cb95fcdbe5ac7d6319473064280c9d63544b87dd' }))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "p-dropdown"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'ebd30a904cdb71d290662840e8b4766d102ca708' }, h("p-modal", { key: 'ce72d861ec7ab4d7829979704ec29b05927e821b' }, h("p", { key: 'ec93f16257d10733a2c9b13cba777b5261ba5278' }, "You select ", h("b", { key: '440cfe0df3d00558d47e521f5fd4a41b3a5ee5bf' }, this.value)), h("br", { key: 'cd1944ff062010f7d231095320b87e36a1e14f69' }), h("p-button", { key: 'e4214b4ae538cd70099225ee0f63055994fa3458', type: "success", onClick: () => this.onValidate() }, "I validate"), "\u00A0", h("p-button", { key: '8c195065be017b3de36f28658b4c5b7da8a69a61', type: "danger", onClick: () => this.onClose() }, "No !")), h("p-dropdown", { key: 'a0403bb75fc0e08e52c7de0e42c40f420fde6022', placeholder: "Choose best framework", "prevent-selected": true, onSelect: (e) => this.showModal(e.detail), value: this.selectedValue }, h("p-dropdown-item", { key: '278d5915c55593db051e75ced6008b179ba1c4e6', value: "awesome", selected: this.selectedValue === 'awesome' }, "Vue"), h("p-dropdown-item", { key: '88673f26c5501295cf39925423c420715ed0fa96', value: "Stencil", selected: this.selectedValue === 'Stencil' }, "Stencil"), h("p-dropdown-item", { key: 'c730db6663ca8b266a83571222bfc89344ce5aaa', 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: 'ebeadf0541037fe8ac3968b97135b54d8d2ffff3', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: 'f9dc47abca23a7ff49024dc97636dcae2064849f', class: {
|
|
18
18
|
'background-success': this.selected,
|
|
19
19
|
'border border-primary': true,
|
|
20
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: 'eaaa781bf0d311891c32d5884fc12dafab40f2be' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "p-dropdown-item"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,9 +28,9 @@ export class InputText {
|
|
|
28
28
|
this.changeEvent.emit(this.value);
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'cd76a2762668387e8b4a490a239577a58b8b4859', class: this.getParentClass() }, this.label && (h("label", { key: '7e6dae9b367d95018761178bb0b3f6ff2442410e', htmlFor: "paperInputs1" }, this.label, this.required ? '*' : '')), h("input", { key: 'c8ba419cb6c3fc22915563bd07faf632d3deab7f', type: "text", placeholder: this.placeholder, id: "paperInputs1", disabled: this.disabled, onInput: (e) => {
|
|
32
32
|
this.onInput(e);
|
|
33
|
-
}, value: this.value, onChange: () => this.onChange() }), this.error && h("p", { key: '
|
|
33
|
+
}, value: this.value, onChange: () => this.onChange() }), this.error && h("p", { key: '7b2a6aabde20bc9e9ee1c590c40687461b86b305', class: "text-danger" }, this.error)));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "p-input-text"; }
|
|
36
36
|
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
|
}
|
|
@@ -41,7 +41,7 @@ export class PNotification {
|
|
|
41
41
|
this.close.emit(this.timestamp);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'ca862c36f4286b20d8c957311728b5b8b7572c14' }, h("div", { key: '739c685f45b963303481799168a73ef7fd239db4', class: "papier" }, h("div", { key: '98ded37d6cfc45fc70d5b1579d4ad2dff1db55ee', class: this.getClassName() }, h("div", { key: 'e78c92b7a8ed0d540ffa57bfb0e7dd61512f0725', innerHTML: this.getIconName() }), h("div", { key: '37430e196744a4b87db55c157e521ef34836d461', innerHTML: this.text }), this.canclose && (h("span", { key: '3c639b245f622723b1fd814ecc94d094faa052f1', onClick: () => {
|
|
45
45
|
this.onClose();
|
|
46
46
|
}, innerHTML: feather.icons.x.toSvg() }))))));
|
|
47
47
|
}
|
|
@@ -7,7 +7,7 @@ export class PNotification {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: 'a8249a75ec65b727c90914ce2e684b9bf3697945' }, h("p-notification-handler", { key: '664695f2c9fafdfc68bd092096c9ca6ddd0359f6' }), h("p-dropdown", { key: 'da5dc45e74d800b221f6833aabc19a40e0cca57b', placeholder: "Choose notification type", onSelect: (e) => {
|
|
11
11
|
this.notificationType = e.detail;
|
|
12
12
|
} }, [
|
|
13
13
|
'primary',
|
|
@@ -17,11 +17,11 @@ export class PNotification {
|
|
|
17
17
|
'danger',
|
|
18
18
|
].map((value) => {
|
|
19
19
|
return (h("p-dropdown-item", { key: value, value: value }, value));
|
|
20
|
-
})), h("div", { key: '
|
|
20
|
+
})), h("div", { key: '1d4cf0a74eecda4aa147541ceea1d8f99ece39b2', style: { marginTop: '20px' } }, h("p-button", { key: '348695d918d61dd858e6c660caa2a73e9e3ded79', style: { marginRight: '20px' }, type: "primary", onClick: () => {
|
|
21
21
|
this.addNotification({});
|
|
22
|
-
} }, "Add notification"), h("p-button", { key: '
|
|
22
|
+
} }, "Add notification"), h("p-button", { key: '0e6cc40f30f61cf28013dfc697e183db27097499', type: "secondary", style: { marginRight: '20px' }, onClick: () => {
|
|
23
23
|
this.addNotification({ canclose: true });
|
|
24
|
-
} }, "Add closable notification"), h("p-button", { key: '
|
|
24
|
+
} }, "Add closable notification"), h("p-button", { key: '0648fbaeec551c170a5ea9680cb8770bec229a1b', type: "success", onClick: () => {
|
|
25
25
|
this.addNotification({ timeout: 2000 });
|
|
26
26
|
} }, "Add timeout notification"))));
|
|
27
27
|
}
|
|
@@ -6,7 +6,7 @@ export class PIcon {
|
|
|
6
6
|
this.color = 'inherit';
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'fa69294090ea17ca5c00c3b007afa1128326c3ad' }, h("div", { key: 'dd8dd3c2d05e5abfd223aafdcea34a9a4b7b5ce7', innerHTML: icons[this.icon], style: { color: this.color, width: `${this.size}px` } })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-icon"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|