@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.
Files changed (152) hide show
  1. package/dist/cjs/index-e53c626b.js +4 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/p-button_3.cjs.entry.js +8 -5
  4. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/p-dropdown-preview.cjs.entry.js +1 -1
  6. package/dist/cjs/p-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/p-input-text.cjs.entry.js +2 -2
  8. package/dist/cjs/p-leaf.cjs.entry.js +1 -1
  9. package/dist/cjs/p-modal-preview.cjs.entry.js +1 -1
  10. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/p-notification-preview.cjs.entry.js +4 -4
  12. package/dist/cjs/p-notification.cjs.entry.js +1 -1
  13. package/dist/cjs/p-progress-bar.cjs.entry.js +1 -1
  14. package/dist/cjs/p-slider.cjs.entry.js +2 -2
  15. package/dist/cjs/p-spinner.cjs.entry.js +33 -0
  16. package/dist/cjs/p-spinner.cjs.entry.js.map +1 -0
  17. package/dist/cjs/p-switch-tile.cjs.entry.js +2 -2
  18. package/dist/cjs/p-switch.cjs.entry.js +3 -3
  19. package/dist/cjs/p-tab.cjs.entry.js +2 -2
  20. package/dist/cjs/p-tabs.cjs.entry.js +3 -3
  21. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  22. package/dist/cjs/papierjs.cjs.js +1 -1
  23. package/dist/collection/collection-manifest.json +1 -0
  24. package/dist/collection/components/button/button.js +24 -1
  25. package/dist/collection/components/button/button.js.map +1 -1
  26. package/dist/collection/components/dropdown/dropdown/dropdown.js +2 -2
  27. package/dist/collection/components/dropdown/dropdown/stories/dropdown.preview.js +1 -1
  28. package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +2 -2
  29. package/dist/collection/components/form/input-text/input-text.js +2 -2
  30. package/dist/collection/components/form/slider/sliders.js +2 -2
  31. package/dist/collection/components/form/switch/switch.js +3 -3
  32. package/dist/collection/components/form/switch-tile/switch-tile.js +2 -2
  33. package/dist/collection/components/leaf/leaf.js +1 -1
  34. package/dist/collection/components/modal/modal.js +1 -1
  35. package/dist/collection/components/modal/stories/modal.preview.js +1 -1
  36. package/dist/collection/components/notification/p-notification/p-notification.js +1 -1
  37. package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +4 -4
  38. package/dist/collection/components/p-icon/p-icon.js +1 -1
  39. package/dist/collection/components/p-spinner/p-spinner.css +3250 -0
  40. package/dist/collection/components/p-spinner/p-spinner.js +94 -0
  41. package/dist/collection/components/p-spinner/p-spinner.js.map +1 -0
  42. package/dist/collection/components/p-spinner/stories/p-spinner-playground.stories.js +27 -0
  43. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  44. package/dist/collection/components/tabs/tab/tab.js +2 -2
  45. package/dist/collection/components/tabs/tabs/tabs.js +3 -3
  46. package/dist/collection/components/tooltip/tooltip.js +1 -1
  47. package/dist/components/{p-5422fb93.js → p-34faf3f1.js} +2 -2
  48. package/dist/components/{p-5422fb93.js.map → p-34faf3f1.js.map} +1 -1
  49. package/dist/components/{p-8d6f74ef.js → p-642f2cf7.js} +2 -2
  50. package/dist/components/{p-8d6f74ef.js.map → p-642f2cf7.js.map} +1 -1
  51. package/dist/components/{p-b79c14df.js → p-a714a956.js} +3 -3
  52. package/dist/components/{p-b79c14df.js.map → p-a714a956.js.map} +1 -1
  53. package/dist/components/p-a900d6a8.js +49 -0
  54. package/dist/components/p-a900d6a8.js.map +1 -0
  55. package/dist/components/p-button.js +1 -1
  56. package/dist/components/p-dropdown-item.js +1 -1
  57. package/dist/components/p-dropdown-preview.js +15 -9
  58. package/dist/components/p-dropdown-preview.js.map +1 -1
  59. package/dist/components/p-dropdown.js +1 -1
  60. package/dist/components/{p-9d035fcd.js → p-ef0c3ae9.js} +2 -2
  61. package/dist/components/{p-9d035fcd.js.map → p-ef0c3ae9.js.map} +1 -1
  62. package/dist/components/{p-5f80356d.js → p-f4386040.js} +14 -4
  63. package/dist/components/p-f4386040.js.map +1 -0
  64. package/dist/components/{p-df78f867.js → p-fe923a22.js} +3 -3
  65. package/dist/components/{p-df78f867.js.map → p-fe923a22.js.map} +1 -1
  66. package/dist/components/p-icon.js +1 -1
  67. package/dist/components/p-input-text.js +2 -2
  68. package/dist/components/p-leaf.js +1 -1
  69. package/dist/components/p-modal-preview.js +11 -5
  70. package/dist/components/p-modal-preview.js.map +1 -1
  71. package/dist/components/p-modal.js +1 -1
  72. package/dist/components/p-notification-handler.js +1 -1
  73. package/dist/components/p-notification-preview.js +20 -14
  74. package/dist/components/p-notification-preview.js.map +1 -1
  75. package/dist/components/p-notification.js +1 -1
  76. package/dist/components/p-progress-bar.js +1 -1
  77. package/dist/components/p-slider.js +2 -2
  78. package/dist/components/p-spinner.d.ts +11 -0
  79. package/dist/components/p-spinner.js +8 -0
  80. package/dist/components/p-spinner.js.map +1 -0
  81. package/dist/components/p-switch-tile.js +2 -2
  82. package/dist/components/p-switch.js +3 -3
  83. package/dist/components/p-tab.js +2 -2
  84. package/dist/components/p-tabs.js +3 -3
  85. package/dist/components/p-tooltip.js +1 -1
  86. package/dist/esm/index-aee2eada.js +4 -0
  87. package/dist/esm/loader.js +1 -1
  88. package/dist/esm/p-button_3.entry.js +9 -6
  89. package/dist/esm/p-button_3.entry.js.map +1 -1
  90. package/dist/esm/p-dropdown-preview.entry.js +1 -1
  91. package/dist/esm/p-icon.entry.js +1 -1
  92. package/dist/esm/p-input-text.entry.js +2 -2
  93. package/dist/esm/p-leaf.entry.js +1 -1
  94. package/dist/esm/p-modal-preview.entry.js +1 -1
  95. package/dist/esm/p-modal.entry.js +1 -1
  96. package/dist/esm/p-notification-preview.entry.js +4 -4
  97. package/dist/esm/p-notification.entry.js +1 -1
  98. package/dist/esm/p-progress-bar.entry.js +1 -1
  99. package/dist/esm/p-slider.entry.js +2 -2
  100. package/dist/esm/p-spinner.entry.js +29 -0
  101. package/dist/esm/p-spinner.entry.js.map +1 -0
  102. package/dist/esm/p-switch-tile.entry.js +2 -2
  103. package/dist/esm/p-switch.entry.js +3 -3
  104. package/dist/esm/p-tab.entry.js +2 -2
  105. package/dist/esm/p-tabs.entry.js +3 -3
  106. package/dist/esm/p-tooltip.entry.js +1 -1
  107. package/dist/esm/papierjs.js +1 -1
  108. package/dist/papierjs/{p-67278128.entry.js → p-03a16f60.entry.js} +2 -2
  109. package/dist/papierjs/p-06d54935.entry.js +2 -0
  110. package/dist/papierjs/{p-7db7534b.entry.js → p-08aac893.entry.js} +2 -2
  111. package/dist/papierjs/{p-a502278a.entry.js → p-0c87229d.entry.js} +2 -2
  112. package/dist/papierjs/p-2cb3923f.entry.js +2 -0
  113. package/dist/papierjs/p-2cb3923f.entry.js.map +1 -0
  114. package/dist/papierjs/{p-9bf96d13.entry.js → p-3c06fffc.entry.js} +2 -2
  115. package/dist/papierjs/{p-7cdc4dca.entry.js → p-462779ed.entry.js} +2 -2
  116. package/dist/papierjs/{p-cc121ae9.entry.js → p-5a6898e8.entry.js} +2 -2
  117. package/dist/papierjs/{p-c6b354fb.entry.js → p-5c511196.entry.js} +2 -2
  118. package/dist/papierjs/{p-3e170867.entry.js → p-7d32bcf0.entry.js} +2 -2
  119. package/dist/papierjs/{p-3bffe4aa.entry.js → p-83c4843a.entry.js} +2 -2
  120. package/dist/papierjs/{p-b8e34895.entry.js → p-860525ed.entry.js} +2 -2
  121. package/dist/papierjs/{p-91b8f71b.entry.js → p-9b8dfa28.entry.js} +2 -2
  122. package/dist/papierjs/{p-db166642.entry.js → p-b292b138.entry.js} +2 -2
  123. package/dist/papierjs/p-b3f595fd.entry.js +2 -0
  124. package/dist/papierjs/p-b3f595fd.entry.js.map +1 -0
  125. package/dist/papierjs/p-b8b2a5c8.entry.js +2 -0
  126. package/dist/papierjs/{p-f2b657b2.entry.js → p-c2d59e17.entry.js} +2 -2
  127. package/dist/papierjs/papierjs.esm.js +1 -1
  128. package/dist/papierjs/papierjs.esm.js.map +1 -1
  129. package/dist/types/components/button/button.d.ts +2 -0
  130. package/dist/types/components/p-spinner/p-spinner.d.ts +9 -0
  131. package/dist/types/components.d.ts +21 -0
  132. package/package.json +1 -1
  133. package/dist/components/p-5f80356d.js.map +0 -1
  134. package/dist/papierjs/p-71473b6e.entry.js +0 -2
  135. package/dist/papierjs/p-cec4e9a5.entry.js +0 -2
  136. package/dist/papierjs/p-cec4e9a5.entry.js.map +0 -1
  137. package/dist/papierjs/p-d3e11d7d.entry.js +0 -2
  138. /package/dist/papierjs/{p-67278128.entry.js.map → p-03a16f60.entry.js.map} +0 -0
  139. /package/dist/papierjs/{p-d3e11d7d.entry.js.map → p-06d54935.entry.js.map} +0 -0
  140. /package/dist/papierjs/{p-7db7534b.entry.js.map → p-08aac893.entry.js.map} +0 -0
  141. /package/dist/papierjs/{p-a502278a.entry.js.map → p-0c87229d.entry.js.map} +0 -0
  142. /package/dist/papierjs/{p-9bf96d13.entry.js.map → p-3c06fffc.entry.js.map} +0 -0
  143. /package/dist/papierjs/{p-7cdc4dca.entry.js.map → p-462779ed.entry.js.map} +0 -0
  144. /package/dist/papierjs/{p-cc121ae9.entry.js.map → p-5a6898e8.entry.js.map} +0 -0
  145. /package/dist/papierjs/{p-c6b354fb.entry.js.map → p-5c511196.entry.js.map} +0 -0
  146. /package/dist/papierjs/{p-3e170867.entry.js.map → p-7d32bcf0.entry.js.map} +0 -0
  147. /package/dist/papierjs/{p-3bffe4aa.entry.js.map → p-83c4843a.entry.js.map} +0 -0
  148. /package/dist/papierjs/{p-b8e34895.entry.js.map → p-860525ed.entry.js.map} +0 -0
  149. /package/dist/papierjs/{p-91b8f71b.entry.js.map → p-9b8dfa28.entry.js.map} +0 -0
  150. /package/dist/papierjs/{p-db166642.entry.js.map → p-b292b138.entry.js.map} +0 -0
  151. /package/dist/papierjs/{p-71473b6e.entry.js.map → p-b8b2a5c8.entry.js.map} +0 -0
  152. /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: '8fd7f8e681c3e0768a0999510f231ca4d521acff' }, index.h("div", { key: 'd71e1af2cd6c8e71c0b4d3755bcb4f35ce9df353', class: {
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: '18f49f02f40b636693547a95eeff6938a709be0c', class: "form-group" }, index.h("label", { key: '79f4805766e530d5cc39c98f6dbd5f9412b7c613', class: {
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: 'be721049a47d6dc680155108c04ac1f70fa6d52c', id: "paperSwitch4", name: "paperSwitch4", type: "checkbox", checked: this.checked, onInput: (e) => this.onInput(e) }), index.h("span", { key: '2e5903946a31b452fe4eeac232d4107c62660d2d', class: {
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: 'a72020a970b15e501ba44bc21691f7fe212cdca7' }, index.h("div", { key: 'a4b617baac6c316cef3728022692e591b5d717e7', class: {
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: '4376eaa760c04c14626c13a36c0fdb4f86f51df9' }))));
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: 'e54624b9e1636ac4a1a2c85428625994eb3cf4ac' }, index.h("div", { key: '1313b823e5ae4e5332dd31cd7d04133812739a2c', class: {
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: '90d2fa60ec5399a05ac4f878964b67fecdff062b', class: "row flex-spaces tabs" }, this.tabs.map((t) => {
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: 'fe5caaff0a6db3dd75b687586b3db625ee64455e', class: "content" }, index.h("slot", { key: '2d7989e7c818dbf299bb616d7edf2b1df4834060' }))))));
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: '07158462ade3d922a00223e79f96a6b27de22c23' }, index.h("div", { key: '3eeccaceeea1251912bda37e4a323c93d73f92c5', class: "papier" }, index.h("div", { key: '5590601995e360e708760089ca76bab194720f54', "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: '0b9429caf13aa217b62ccad9ca61084e10d94ae2' })))));
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;
@@ -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
- return (h("div", { key: '285d0812c0a178392c78195344cac0c6ec93ed9e', class: this.getParentClass() }, h("button", { key: '706e1ba6d445d066f5674d952709251af023f1cc', disabled: this.disabled, type: "button", class: this.getClass() }, h("slot", { key: '17b851c4b0a475565d743cc87e84562e4482606c' }))));
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;AAIlD;;GAEG;AAMH,MAAM,OAAO,MAAM;IALnB;QAOI,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;KAkDzB;IAhDU,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,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;gBAEtB,8DAAQ,CACH,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, 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 @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\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 return (\n <div class={this.getParentClass()}>\n <button\n disabled={this.disabled}\n type=\"button\"\n class={this.getClass()}\n >\n <slot />\n </button>\n </div>\n )\n }\n}\n"]}
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: '8636360286918fd77b57d0ae59f1abde51c7a76e', class: this.getParentClass() }, h("div", { key: '50f69b82e75b93a728fdd3e202ad276aff3aa190', class: "dropdown__header border border-primary", onClick: () => {
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: 'a552893af00f5b1371c65cede8e4e9a6590f134a' }, selected), h("span", { key: '4e52e42eb5a27b6d12aafddbf9938847cc397939', class: "for--icon", innerHTML: arrowIcon })), h("div", { key: 'fcb21c971353a04acd452f36d69d80d75b897442', class: "dropdown__children" }, h("slot", { key: 'a4f7ebabc13370e7d9b2f0f2ff58e0a561ca36af' }))));
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: '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"))));
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: 'a140fa5e96379d94c3193405a35c2e5e814a1dad', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: '92098283fd6d143901d82750a652f81d3b94d522', class: {
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: 'c68ee3b98574c31dcc9d9fbd6fa133cf9961d439' }))));
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: 'a26c649d0f65e30583c1477f9562af22abbc9106', class: this.getParentClass() }, this.label && (h("label", { key: '0668b10bcd2895cc4bd65ebbcd0d5819e3bfe135', htmlFor: "paperInputs1" }, this.label, this.required ? '*' : '')), h("input", { key: 'c5e11c2f5a1a88ef04b430736e2bb3c58396d7cd', type: "text", placeholder: this.placeholder, id: "paperInputs1", disabled: this.disabled, onInput: (e) => {
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: '1e282386e337e13c7d9d626d0fb40525107603dc', class: "text-danger" }, this.error)));
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: '8d902052bbc89b3d74c306cd2fa5eeb54ac38757' }, h("div", { key: 'ab80fa0a236ff9baa8ecfee9bf658951c42e8e6f', class: {
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: 'bd3d614e3262ff88c01da42cbcd914b27f91b23e', class: "form-group" }, h("input", { key: '084338b3c6e48d12a5b766a182260d6d634029c8', class: "input-block", type: "range", min: this.min, max: this.max, value: this.value, onInput: (e) => {
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: '8fd7f8e681c3e0768a0999510f231ca4d521acff' }, h("div", { key: 'd71e1af2cd6c8e71c0b4d3755bcb4f35ce9df353', class: {
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: '18f49f02f40b636693547a95eeff6938a709be0c', class: "form-group" }, h("label", { key: '79f4805766e530d5cc39c98f6dbd5f9412b7c613', class: {
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: 'be721049a47d6dc680155108c04ac1f70fa6d52c', id: "paperSwitch4", name: "paperSwitch4", type: "checkbox", checked: this.checked, onInput: (e) => this.onInput(e) }), h("span", { key: '2e5903946a31b452fe4eeac232d4107c62660d2d', class: {
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: '9d9062a1f24319bb57c20c6b2674e92ed2815e62' }, h("div", { key: '1890096efba4995c6c6257c387f2ce50b69c1063', class: {
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: '055c9d96056a5a941c57734a3df9a8bf9005c24f', class: "form-group" }, h("label", { key: 'f445c8811e5b8cdce2d58d9f2561a49dd5bcce2a', htmlFor: "paperSwitch1", class: "paper-switch-tile" }, h("input", { key: '1105ac86869391fae18876b531ca7a8002367b75', id: "paperSwitch1", name: "paperSwitch1", type: "checkbox", checked: this.checked }), h("div", { key: '6cdcafa28573ddedb410a0b53417cb2e4f2c593c', class: "paper-switch-tile-card border" }, h("div", { key: '7d812ec67af74f546334cc3c5ecd85655fa25e44', class: this.getFrontCardClass() }, h("slot", { key: 'b0a0757cebfbd3a200946f382d2984dbedd9891b', name: "unchecked-text" })), h("div", { key: 'a3fd94c743396e7e63de582ed668cb67108298e5', class: this.getBackCardClass() }, h("slot", { key: '08c35d8551789770bdd63b99d36b1a2bb9848632', name: "checked-text" }))))))));
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: 'be45db92e133312609842ac835ad2402851f152b', class: this.getParentClass() }, h("slot", { key: '3ed985d0963e4e7b1c287142f3fc3464b9f1cd99' })));
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: 'f13198814461860813a0ff18b624d6bf99609107' }, this.isOpen && (h("div", { key: 'f032ed086f608954a72a5eda7fa085a6f6847396', class: "papier" }, h("div", { key: '1076dad00e39f8d87ae4655585bbecbff45ac98b', class: "modal" }, h("div", { key: '4c47e5b36a76ff9bbf48ea6d0a9dc609255f6533', class: "modal-bg", onClick: () => this.close() }), h("div", { key: 'ed6f56b872ffc369354236e7a22c3f6bb0af348b', class: "modal-body" }, h("span", { key: '597568dd1621992a515be155bbc36e57b7f1dbcd', class: "btn-close", onClick: () => this.close() }, "X"), h("h4", { key: 'cecbf738b51198687a8e2b177c552e751bd85af6', class: "modal-title" }, h("slot", { key: '6eb97485f3e0f0efdd0b8ef4b51b0a803b5dac86', name: "title" })), h("h5", { key: 'a6f7a49a96324b417ea77507ba48cc0cc043d91c', class: "modal-subtitle" }, h("slot", { key: '02f03aa86615cf235c0807645454207943d1292a', name: "sub-title" })), h("p", { key: '8feec1c2c80f18bf86d2415fdecffbd5dd1f84f8', class: "modal-text" }, h("slot", { key: '08b33aece403b6ed3c2c5ff7926da896e731060e', name: "text" })), h("slot", { key: '99514c39dba619a713610282de642fa0bc5f9cc7' })))))));
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: '55e7acb0fb709c1546e4b6258e917831dc078122' }, 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: 'bc53471ee489901fe314d5440971f6029bcfd10b', type: this.title ? 'secondary' : 'primary', onClick: () => {
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: '770bdea27c73da0fa1e796cd1ba6bfa40421f333' }, h("div", { key: '720b8a9f84df940aff094a06a1d459293e072fcf', class: "papier" }, h("div", { key: '1e884e1e0e3155bd6efdc01b279978b00696b00e', class: this.getClassName() }, h("div", { key: 'ff9dd6e6aca90f8e37257c6c3bbf287a3dd901db', innerHTML: this.getIconName() }), h("div", { key: '47eae82003c049e27033cb68b09b1c009d4d2020', innerHTML: this.text }), this.canclose && (h("span", { key: '466b4a9293f9495efb8c5eaafaa34c8c69291ab6', onClick: () => {
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: 'f91b39bf657b53b7541bae0fd67c154268fcd32e' }, h("p-notification-handler", { key: '28dee556aa50fa3fb9b23f194574cb3ee4a11c38' }), h("p-dropdown", { key: '51a6a668015f0c8028aed169a3438aeaf294b2a7', placeholder: "Choose notification type", onSelect: (e) => {
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: '6a3bad38217205aa55f2f00aa704e119f33b7826', style: { marginTop: '20px' } }, h("p-button", { key: '6f835b88824a47d1b683475e22dd2d306ec9b160', style: { marginRight: '20px' }, type: "primary", onClick: () => {
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: 'b1223604689ff1fb087ce42e0eefcc0b4dc36752', type: "secondary", style: { marginRight: '20px' }, onClick: () => {
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: '91223a491636b94f13141c800e34e91110d4e994', type: "success", onClick: () => {
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: '67f4df5c12e24edabfc34ee26572ba94ba915570' }, h("div", { key: 'eaf453e8d097c3f990db00778f7ddfec9777c086', innerHTML: icons[this.icon], style: { color: this.color, width: `${this.size}px` } })));
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"; }