@amiceli/papierjs 0.7.0 → 0.8.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-875ceae0.js → index-e53c626b.js} +39 -6
- package/dist/cjs/index-e53c626b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-alert.cjs.entry.js +1 -1
- package/dist/cjs/p-badge.cjs.entry.js +1 -1
- package/dist/cjs/p-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/p-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-dropdown-preview.cjs.entry.js +1 -1
- package/dist/cjs/p-icon.cjs.entry.js +513 -0
- package/dist/cjs/p-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/p-input-text.cjs.entry.js +13 -7
- package/dist/cjs/p-input-text.cjs.entry.js.map +1 -1
- 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 +3 -3
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/p-notification-handler.cjs.entry.js +1 -1
- package/dist/cjs/p-notification-preview.cjs.entry.js +5 -5
- package/dist/cjs/p-notification.cjs.entry.js +2 -2
- package/dist/cjs/p-progress-bar.cjs.entry.js +12 -2
- package/dist/cjs/p-progress-bar.cjs.entry.js.map +1 -1
- 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 +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/papierjs.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/form/input-text/input-text.css +3 -0
- package/dist/collection/components/form/input-text/input-text.js +32 -13
- package/dist/collection/components/form/input-text/input-text.js.map +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.css +3 -0
- 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/icons.js +489 -0
- package/dist/collection/components/p-icon/icons.js.map +1 -0
- package/dist/collection/components/p-icon/p-icon.css +6 -0
- package/dist/collection/components/p-icon/p-icon.js +92 -0
- package/dist/collection/components/p-icon/p-icon.js.map +1 -0
- package/dist/collection/components/p-icon/stories/p-icon-playground.stories.js +34 -0
- package/dist/collection/components/progress-bar/progress-bar.js +35 -1
- package/dist/collection/components/progress-bar/progress-bar.js.map +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.css +3 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-c3c46963.js → p-5422fb93.js} +3 -3
- package/dist/components/{p-c3c46963.js.map → p-5422fb93.js.map} +1 -1
- package/dist/components/{p-3e858546.js → p-5f80356d.js} +2 -2
- package/dist/components/{p-3e858546.js.map → p-5f80356d.js.map} +1 -1
- package/dist/components/{p-555df865.js → p-8d6f74ef.js} +4 -4
- package/dist/components/p-8d6f74ef.js.map +1 -0
- package/dist/components/{p-ef7a623f.js → p-9d035fcd.js} +3 -3
- package/dist/components/{p-ef7a623f.js.map → p-9d035fcd.js.map} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-alert.js +1 -1
- package/dist/components/{p-51fafe64.js → p-b79c14df.js} +2 -2
- package/dist/components/{p-51fafe64.js.map → p-b79c14df.js.map} +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-breadcrumb-item.js +1 -1
- package/dist/components/p-breadcrumb.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/{p-af62ba98.js → p-c65086ec.js} +32 -4
- package/dist/components/p-c65086ec.js.map +1 -0
- package/dist/components/{p-c8138bbd.js → p-df78f867.js} +2 -2
- package/dist/components/{p-c8138bbd.js.map → p-df78f867.js.map} +1 -1
- package/dist/components/p-dropdown-item.js +1 -1
- package/dist/components/p-dropdown-preview.js +5 -5
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-icon.d.ts +11 -0
- package/dist/components/p-icon.js +533 -0
- package/dist/components/p-icon.js.map +1 -0
- package/dist/components/p-input-text.js +15 -9
- package/dist/components/p-input-text.js.map +1 -1
- 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.js +1 -1
- package/dist/components/p-notification-preview.js +10 -10
- package/dist/components/p-notification.js +1 -1
- package/dist/components/p-progress-bar.js +15 -3
- package/dist/components/p-progress-bar.js.map +1 -1
- 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 +3 -3
- package/dist/components/p-tooltip.js.map +1 -1
- package/dist/esm/{index-7ee4e700.js → index-aee2eada.js} +39 -6
- package/dist/esm/index-aee2eada.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-alert.entry.js +1 -1
- package/dist/esm/p-badge.entry.js +1 -1
- package/dist/esm/p-breadcrumb-item.entry.js +1 -1
- package/dist/esm/p-breadcrumb.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-dropdown-preview.entry.js +1 -1
- package/dist/esm/p-icon.entry.js +509 -0
- package/dist/esm/p-icon.entry.js.map +1 -0
- package/dist/esm/p-input-text.entry.js +13 -7
- package/dist/esm/p-input-text.entry.js.map +1 -1
- 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 +3 -3
- package/dist/esm/p-modal.entry.js.map +1 -1
- package/dist/esm/p-notification-handler.entry.js +1 -1
- package/dist/esm/p-notification-preview.entry.js +5 -5
- package/dist/esm/p-notification.entry.js +2 -2
- package/dist/esm/p-progress-bar.entry.js +12 -2
- package/dist/esm/p-progress-bar.entry.js.map +1 -1
- 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 +3 -3
- package/dist/esm/p-tooltip.entry.js.map +1 -1
- package/dist/esm/papierjs.js +3 -3
- package/dist/papierjs/{p-bc16a85a.entry.js → p-1ebff2d7.entry.js} +2 -2
- package/dist/papierjs/{p-d9e3c9ca.entry.js → p-23b08b62.entry.js} +2 -2
- package/dist/papierjs/{p-a40b185f.entry.js → p-3bffe4aa.entry.js} +2 -2
- package/dist/papierjs/p-3bffe4aa.entry.js.map +1 -0
- package/dist/papierjs/{p-edbf5d19.entry.js → p-3e170867.entry.js} +2 -2
- package/dist/papierjs/p-3e170867.entry.js.map +1 -0
- package/dist/papierjs/{p-f7bc7154.entry.js → p-3efab78f.entry.js} +2 -2
- package/dist/papierjs/p-4cb8bb30.js +3 -0
- package/dist/{cjs/index-875ceae0.js.map → papierjs/p-4cb8bb30.js.map} +1 -1
- package/dist/papierjs/{p-55975574.entry.js → p-67278128.entry.js} +2 -2
- package/dist/papierjs/p-67278128.entry.js.map +1 -0
- package/dist/papierjs/{p-57f13bee.entry.js → p-71473b6e.entry.js} +2 -2
- package/dist/papierjs/{p-4de54c9d.entry.js → p-7cdc4dca.entry.js} +2 -2
- package/dist/papierjs/{p-4ef52ae1.entry.js → p-7db7534b.entry.js} +2 -2
- package/dist/papierjs/{p-963f21b8.entry.js → p-907ecded.entry.js} +2 -2
- package/dist/papierjs/{p-a2523f10.entry.js → p-91b8f71b.entry.js} +2 -2
- package/dist/papierjs/{p-acf916fa.entry.js → p-9bf96d13.entry.js} +2 -2
- package/dist/papierjs/{p-21ae2040.entry.js → p-a502278a.entry.js} +2 -2
- package/dist/papierjs/{p-d583fd92.entry.js → p-b8e34895.entry.js} +2 -2
- package/dist/papierjs/p-c6b354fb.entry.js +2 -0
- package/dist/papierjs/p-c6b354fb.entry.js.map +1 -0
- package/dist/papierjs/{p-4e8985c5.entry.js → p-cc121ae9.entry.js} +2 -2
- package/dist/papierjs/p-cc121ae9.entry.js.map +1 -0
- package/dist/papierjs/{p-3149398f.entry.js → p-cce903e9.entry.js} +2 -2
- package/dist/papierjs/{p-5e68bd6c.entry.js → p-cec4e9a5.entry.js} +2 -2
- package/dist/papierjs/p-d3e11d7d.entry.js +2 -0
- package/dist/papierjs/{p-743abca9.entry.js → p-d9e2e92c.entry.js} +2 -2
- package/dist/papierjs/{p-ef8536b9.entry.js → p-db166642.entry.js} +2 -2
- package/dist/papierjs/{p-b783633d.entry.js → p-f2b657b2.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/form/input-text/input-text.d.ts +4 -2
- package/dist/types/components/p-icon/icons.d.ts +1 -0
- package/dist/types/components/p-icon/p-icon.d.ts +7 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +4 -0
- package/dist/types/components.d.ts +25 -2
- package/package.json +7 -4
- package/readme.md +1 -0
- package/dist/components/p-555df865.js.map +0 -1
- package/dist/components/p-af62ba98.js.map +0 -1
- package/dist/esm/index-7ee4e700.js.map +0 -1
- package/dist/papierjs/p-34a520d8.js +0 -3
- package/dist/papierjs/p-34a520d8.js.map +0 -1
- package/dist/papierjs/p-4e8985c5.entry.js.map +0 -1
- package/dist/papierjs/p-55975574.entry.js.map +0 -1
- package/dist/papierjs/p-7b6c5a15.entry.js +0 -2
- package/dist/papierjs/p-a40b185f.entry.js.map +0 -1
- package/dist/papierjs/p-edbf5d19.entry.js.map +0 -1
- /package/dist/papierjs/{p-bc16a85a.entry.js.map → p-1ebff2d7.entry.js.map} +0 -0
- /package/dist/papierjs/{p-d9e3c9ca.entry.js.map → p-23b08b62.entry.js.map} +0 -0
- /package/dist/papierjs/{p-f7bc7154.entry.js.map → p-3efab78f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-57f13bee.entry.js.map → p-71473b6e.entry.js.map} +0 -0
- /package/dist/papierjs/{p-4de54c9d.entry.js.map → p-7cdc4dca.entry.js.map} +0 -0
- /package/dist/papierjs/{p-4ef52ae1.entry.js.map → p-7db7534b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-963f21b8.entry.js.map → p-907ecded.entry.js.map} +0 -0
- /package/dist/papierjs/{p-a2523f10.entry.js.map → p-91b8f71b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-acf916fa.entry.js.map → p-9bf96d13.entry.js.map} +0 -0
- /package/dist/papierjs/{p-21ae2040.entry.js.map → p-a502278a.entry.js.map} +0 -0
- /package/dist/papierjs/{p-d583fd92.entry.js.map → p-b8e34895.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3149398f.entry.js.map → p-cce903e9.entry.js.map} +0 -0
- /package/dist/papierjs/{p-5e68bd6c.entry.js.map → p-cec4e9a5.entry.js.map} +0 -0
- /package/dist/papierjs/{p-7b6c5a15.entry.js.map → p-d3e11d7d.entry.js.map} +0 -0
- /package/dist/papierjs/{p-743abca9.entry.js.map → p-d9e2e92c.entry.js.map} +0 -0
- /package/dist/papierjs/{p-ef8536b9.entry.js.map → p-db166642.entry.js.map} +0 -0
- /package/dist/papierjs/{p-b783633d.entry.js.map → p-f2b657b2.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-text.js","sourceRoot":"","sources":["../../../../src/components/form/input-text/input-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAO5E,MAAM,OAAO,SAAS;IALtB;
|
|
1
|
+
{"version":3,"file":"input-text.js","sourceRoot":"","sources":["../../../../src/components/form/input-text/input-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAO5E,MAAM,OAAO,SAAS;IALtB;QAUI,UAAK,GAAY,EAAE,CAAA;QAGnB,aAAQ,GAAa,KAAK,CAAA;QAG1B,SAAI,GAAa,KAAK,CAAA;QAMtB,aAAQ,GAAa,KAAK,CAAA;QAG1B,UAAK,GAAa,KAAK,CAAA;KA6D1B;IAlDU,cAAc;QACjB,IAAI,QAAQ,GAAG,mBAAmB,CAAA;QAElC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,QAAQ,GAAG,GAAG,QAAQ,WAAW,CAAA;QACrC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,QAAQ,GAAG,GAAG,QAAQ,YAAY,CAAA;QACtC,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,QAAQ,GAAG,GAAG,QAAQ,aAAa,CAAA;QACvC,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;IAEM,OAAO,CAAC,EAAS;QACpB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,MAAM,IAAK,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAA;QAE/D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;IAEM,QAAQ;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACrC,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE;YAC5B,IAAI,CAAC,KAAK,IAAI,CACX,8DAAO,OAAO,EAAC,cAAc;gBACxB,IAAI,CAAC,KAAK;gBACV,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACrB,CACX;YACD,8DACI,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,EAAE,EAAC,cAAc,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACX,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;gBACnB,CAAC,EACD,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GACjC;YACD,IAAI,CAAC,KAAK,IAAI,0DAAG,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,KAAK,CAAK,CACpD,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Event, type EventEmitter, Prop, h } from '@stencil/core'\n\n@Component({\n tag: 'p-input-text',\n styleUrl: 'input-text.scss',\n shadow: true,\n})\nexport class InputText {\n @Prop()\n placeholder?: string\n\n @Prop({ mutable: true })\n value?: string = ''\n\n @Prop()\n required?: boolean = false\n\n @Prop()\n dark?: boolean = false\n\n @Prop()\n label?: string\n\n @Prop()\n disabled?: boolean = false\n\n @Prop()\n block?: boolean = false\n\n @Prop()\n error?: string\n\n @Event({ eventName: 'change' })\n public changeEvent: EventEmitter<string>\n\n @Event({ eventName: 'input' })\n public inputEvent: EventEmitter<string>\n\n public getParentClass() {\n let cssClass = 'papier form-group'\n\n if (this.dark) {\n cssClass = `${cssClass} is--dark`\n }\n if (this.block) {\n cssClass = `${cssClass} is--block`\n }\n if (this.error) {\n cssClass = `${cssClass} has--error`\n }\n\n return cssClass\n }\n\n public onInput(ev: Event) {\n this.value = ev.target && (ev.target as HTMLInputElement).value\n\n this.inputEvent.emit(this.value)\n }\n\n public onChange() {\n this.changeEvent.emit(this.value)\n }\n\n render() {\n return (\n <div class={this.getParentClass()}>\n {this.label && (\n <label htmlFor=\"paperInputs1\">\n {this.label}\n {this.required ? '*' : ''}\n </label>\n )}\n <input\n type=\"text\"\n placeholder={this.placeholder}\n id=\"paperInputs1\"\n disabled={this.disabled}\n onInput={(e) => {\n this.onInput(e)\n }}\n value={this.value}\n onChange={() => this.onChange()}\n />\n {this.error && <p class=\"text-danger\">{this.error}</p>}\n </div>\n )\n }\n}\n"]}
|
|
@@ -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: '8d902052bbc89b3d74c306cd2fa5eeb54ac38757' }, h("div", { key: 'ab80fa0a236ff9baa8ecfee9bf658951c42e8e6f', 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: 'bd3d614e3262ff88c01da42cbcd914b27f91b23e', class: "form-group" }, h("input", { key: '084338b3c6e48d12a5b766a182260d6d634029c8', 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: '8fd7f8e681c3e0768a0999510f231ca4d521acff' }, h("div", { key: 'd71e1af2cd6c8e71c0b4d3755bcb4f35ce9df353', class: {
|
|
16
16
|
papier: true,
|
|
17
17
|
'is--dark': this.dark,
|
|
18
|
-
} }, h("div", { key: '
|
|
18
|
+
} }, h("div", { key: '18f49f02f40b636693547a95eeff6938a709be0c', class: "form-group" }, h("label", { key: '79f4805766e530d5cc39c98f6dbd5f9412b7c613', class: {
|
|
19
19
|
'paper-switch': !this.square,
|
|
20
20
|
'paper-switch-2': this.square,
|
|
21
|
-
} }, h("input", { key: '
|
|
21
|
+
} }, h("input", { key: 'be721049a47d6dc680155108c04ac1f70fa6d52c', id: "paperSwitch4", name: "paperSwitch4", type: "checkbox", checked: this.checked, onInput: (e) => this.onInput(e) }), h("span", { key: '2e5903946a31b452fe4eeac232d4107c62660d2d', 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: '9d9062a1f24319bb57c20c6b2674e92ed2815e62' }, h("div", { key: '1890096efba4995c6c6257c387f2ce50b69c1063', class: {
|
|
34
34
|
papier: true,
|
|
35
35
|
'is--dark': this.dark,
|
|
36
|
-
} }, h("div", { key: '
|
|
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" }))))))));
|
|
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: 'be45db92e133312609842ac835ad2402851f152b', class: this.getParentClass() }, h("slot", { key: '3ed985d0963e4e7b1c287142f3fc3464b9f1cd99' })));
|
|
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: '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' })))))));
|
|
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: '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: () => {
|
|
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: '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: () => {
|
|
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: 'f91b39bf657b53b7541bae0fd67c154268fcd32e' }, h("p-notification-handler", { key: '28dee556aa50fa3fb9b23f194574cb3ee4a11c38' }), h("p-dropdown", { key: '51a6a668015f0c8028aed169a3438aeaf294b2a7', 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: '6a3bad38217205aa55f2f00aa704e119f33b7826', style: { marginTop: '20px' } }, h("p-button", { key: '6f835b88824a47d1b683475e22dd2d306ec9b160', style: { marginRight: '20px' }, type: "primary", onClick: () => {
|
|
21
21
|
this.addNotification({});
|
|
22
|
-
} }, "Add notification"), h("p-button", { key: '
|
|
22
|
+
} }, "Add notification"), h("p-button", { key: 'b1223604689ff1fb087ce42e0eefcc0b4dc36752', 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: '91223a491636b94f13141c800e34e91110d4e994', type: "success", onClick: () => {
|
|
25
25
|
this.addNotification({ timeout: 2000 });
|
|
26
26
|
} }, "Add timeout notification"))));
|
|
27
27
|
}
|