@amiceli/papierjs 0.6.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-82a72b67.js → index-e53c626b.js} +76 -10
- 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 +4 -4
- package/dist/cjs/p-alert.cjs.entry.js +2 -2
- package/dist/cjs/p-badge.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/{p-dropdown_2.cjs.entry.js → p-button_3.cjs.entry.js} +55 -6
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-preview.cjs.entry.js +2 -2
- package/dist/cjs/p-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 +31 -0
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js +57 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js +41 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification.cjs.entry.js +64 -0
- package/dist/cjs/p-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/p-progress-bar.cjs.entry.js +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 +4 -0
- package/dist/collection/components/accordion/accordion.js +3 -3
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/dropdown/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown/dropdown/stories/dropdown.preview.js +1 -1
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +2 -2
- package/dist/collection/components/form/input-text/input-text.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.css +3260 -0
- package/dist/collection/components/notification/p-notification/p-notification.js +164 -0
- package/dist/collection/components/notification/p-notification/p-notification.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.css +13 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js +100 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +36 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js.map +1 -0
- package/dist/collection/components/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-5422fb93.js +78 -0
- package/dist/components/p-5422fb93.js.map +1 -0
- package/dist/components/{p-44ddcae9.js → p-5f80356d.js} +3 -3
- package/dist/components/{p-44ddcae9.js.map → p-5f80356d.js.map} +1 -1
- package/dist/components/{p-1754e5cb.js → p-8d6f74ef.js} +4 -4
- package/dist/components/p-8d6f74ef.js.map +1 -0
- package/dist/components/p-9d035fcd.js +81 -0
- package/dist/components/p-9d035fcd.js.map +1 -0
- package/dist/components/p-accordion.js +4 -4
- package/dist/components/p-alert.js +2 -2
- package/dist/components/{p-ee5f2278.js → p-b79c14df.js} +4 -4
- package/dist/components/{p-ee5f2278.js.map → p-b79c14df.js.map} +1 -1
- package/dist/components/p-badge.js +2 -2
- package/dist/components/p-breadcrumb-item.js +2 -2
- package/dist/components/p-breadcrumb.js +2 -2
- package/dist/components/p-button.js +1 -1
- package/dist/components/{p-eea4fbc1.js → p-c65086ec.js} +53 -4
- package/dist/components/p-c65086ec.js.map +1 -0
- package/dist/components/{p-18fc6353.js → p-df78f867.js} +4 -4
- package/dist/components/{p-18fc6353.js.map → p-df78f867.js.map} +1 -1
- package/dist/components/p-dropdown-item.js +1 -1
- package/dist/components/p-dropdown-preview.js +6 -6
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-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.d.ts +11 -0
- package/dist/components/p-notification-handler.js +8 -0
- package/dist/components/p-notification-handler.js.map +1 -0
- package/dist/components/p-notification-preview.d.ts +11 -0
- package/dist/components/p-notification-preview.js +87 -0
- package/dist/components/p-notification-preview.js.map +1 -0
- package/dist/components/p-notification.d.ts +11 -0
- package/dist/components/p-notification.js +8 -0
- package/dist/components/p-notification.js.map +1 -0
- package/dist/components/p-progress-bar.js +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-4646b002.js → index-aee2eada.js} +76 -10
- package/dist/esm/index-aee2eada.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +4 -4
- package/dist/esm/p-alert.entry.js +2 -2
- package/dist/esm/p-badge.entry.js +2 -2
- package/dist/esm/p-breadcrumb-item.entry.js +2 -2
- package/dist/esm/p-breadcrumb.entry.js +2 -2
- package/dist/esm/{p-dropdown_2.entry.js → p-button_3.entry.js} +55 -7
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-dropdown-preview.entry.js +2 -2
- package/dist/esm/p-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 +27 -0
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-notification-handler.entry.js +53 -0
- package/dist/esm/p-notification-handler.entry.js.map +1 -0
- package/dist/esm/p-notification-preview.entry.js +37 -0
- package/dist/esm/p-notification-preview.entry.js.map +1 -0
- package/dist/esm/p-notification.entry.js +60 -0
- package/dist/esm/p-notification.entry.js.map +1 -0
- package/dist/esm/p-progress-bar.entry.js +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-1ebff2d7.entry.js +2 -0
- package/dist/papierjs/p-1ebff2d7.entry.js.map +1 -0
- package/dist/papierjs/{p-5a7955a5.entry.js → p-23b08b62.entry.js} +2 -2
- package/dist/papierjs/{p-d98c84b2.entry.js → p-3bffe4aa.entry.js} +2 -2
- package/dist/papierjs/p-3bffe4aa.entry.js.map +1 -0
- package/dist/papierjs/{p-e6765c48.entry.js → p-3e170867.entry.js} +2 -2
- package/dist/papierjs/p-3e170867.entry.js.map +1 -0
- package/dist/papierjs/{p-3231294d.entry.js → p-3efab78f.entry.js} +2 -2
- package/dist/papierjs/p-4cb8bb30.js +3 -0
- package/dist/papierjs/p-4cb8bb30.js.map +1 -0
- package/dist/papierjs/{p-b5ab3669.entry.js → p-67278128.entry.js} +2 -2
- package/dist/papierjs/p-67278128.entry.js.map +1 -0
- package/dist/papierjs/p-71473b6e.entry.js +2 -0
- package/dist/papierjs/p-7cdc4dca.entry.js +2 -0
- package/dist/papierjs/p-7cdc4dca.entry.js.map +1 -0
- package/dist/papierjs/{p-08ab91b8.entry.js → p-7db7534b.entry.js} +2 -2
- package/dist/papierjs/{p-2a173336.entry.js → p-907ecded.entry.js} +2 -2
- package/dist/papierjs/{p-6af8d60e.entry.js → p-91b8f71b.entry.js} +2 -2
- package/dist/papierjs/{p-dfbbdb7b.entry.js → p-9bf96d13.entry.js} +2 -2
- package/dist/papierjs/{p-f21b09d8.entry.js → p-a502278a.entry.js} +2 -2
- package/dist/papierjs/{p-deb8c796.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-cc121ae9.entry.js +2 -0
- package/dist/papierjs/p-cc121ae9.entry.js.map +1 -0
- package/dist/papierjs/{p-005736fe.entry.js → p-cce903e9.entry.js} +2 -2
- package/dist/papierjs/p-cec4e9a5.entry.js +2 -0
- package/dist/papierjs/p-cec4e9a5.entry.js.map +1 -0
- package/dist/papierjs/p-d3e11d7d.entry.js +2 -0
- package/dist/papierjs/p-d3e11d7d.entry.js.map +1 -0
- package/dist/papierjs/{p-8a2f9883.entry.js → p-d9e2e92c.entry.js} +2 -2
- package/dist/papierjs/{p-5f1c0163.entry.js → p-db166642.entry.js} +2 -2
- package/dist/papierjs/{p-ba661e41.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/notification/p-notification/p-notification.d.ts +16 -0
- package/dist/types/components/notification/p-notification-handler/p-notification-handler.d.ts +18 -0
- package/dist/types/components/notification/p-notification-handler/stories/p-notification-preview.d.ts +7 -0
- package/dist/types/components/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 +91 -2
- package/package.json +7 -4
- package/readme.md +5 -4
- package/dist/cjs/index-82a72b67.js.map +0 -1
- package/dist/cjs/p-button_2.cjs.entry.js +0 -80
- package/dist/cjs/p-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/components/p-1754e5cb.js.map +0 -1
- package/dist/components/p-eea4fbc1.js.map +0 -1
- package/dist/esm/index-4646b002.js.map +0 -1
- package/dist/esm/p-button_2.entry.js +0 -75
- package/dist/esm/p-button_2.entry.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/papierjs/p-2f044192.entry.js +0 -2
- package/dist/papierjs/p-2f044192.entry.js.map +0 -1
- package/dist/papierjs/p-4ed82d68.js +0 -3
- package/dist/papierjs/p-4ed82d68.js.map +0 -1
- package/dist/papierjs/p-a3c7e705.entry.js +0 -2
- package/dist/papierjs/p-b5ab3669.entry.js.map +0 -1
- package/dist/papierjs/p-d98c84b2.entry.js.map +0 -1
- package/dist/papierjs/p-e6765c48.entry.js.map +0 -1
- package/dist/papierjs/p-fc85498a.entry.js +0 -2
- package/dist/papierjs/p-fc85498a.entry.js.map +0 -1
- /package/dist/papierjs/{p-5a7955a5.entry.js.map → p-23b08b62.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3231294d.entry.js.map → p-3efab78f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-a3c7e705.entry.js.map → p-71473b6e.entry.js.map} +0 -0
- /package/dist/papierjs/{p-08ab91b8.entry.js.map → p-7db7534b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-2a173336.entry.js.map → p-907ecded.entry.js.map} +0 -0
- /package/dist/papierjs/{p-6af8d60e.entry.js.map → p-91b8f71b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-dfbbdb7b.entry.js.map → p-9bf96d13.entry.js.map} +0 -0
- /package/dist/papierjs/{p-f21b09d8.entry.js.map → p-a502278a.entry.js.map} +0 -0
- /package/dist/papierjs/{p-deb8c796.entry.js.map → p-b8e34895.entry.js.map} +0 -0
- /package/dist/papierjs/{p-005736fe.entry.js.map → p-cce903e9.entry.js.map} +0 -0
- /package/dist/papierjs/{p-8a2f9883.entry.js.map → p-d9e2e92c.entry.js.map} +0 -0
- /package/dist/papierjs/{p-5f1c0163.entry.js.map → p-db166642.entry.js.map} +0 -0
- /package/dist/papierjs/{p-ba661e41.entry.js.map → p-f2b657b2.entry.js.map} +0 -0
|
@@ -14,10 +14,10 @@ export class DropdownItem {
|
|
|
14
14
|
this.changeEvent.emit(this.value);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: 'a140fa5e96379d94c3193405a35c2e5e814a1dad', class: this.getParentClass(), onClick: () => this.sendClick() }, h("div", { key: '92098283fd6d143901d82750a652f81d3b94d522', class: {
|
|
18
18
|
'background-success': this.selected,
|
|
19
19
|
'border border-primary': true,
|
|
20
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: 'c68ee3b98574c31dcc9d9fbd6fa133cf9961d439' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "p-dropdown-item"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,6 @@ export class InputText {
|
|
|
6
6
|
this.dark = false;
|
|
7
7
|
this.disabled = false;
|
|
8
8
|
this.block = false;
|
|
9
|
-
this.hasError = false;
|
|
10
9
|
}
|
|
11
10
|
getParentClass() {
|
|
12
11
|
let cssClass = 'papier form-group';
|
|
@@ -16,16 +15,22 @@ export class InputText {
|
|
|
16
15
|
if (this.block) {
|
|
17
16
|
cssClass = `${cssClass} is--block`;
|
|
18
17
|
}
|
|
19
|
-
if (this.
|
|
18
|
+
if (this.error) {
|
|
20
19
|
cssClass = `${cssClass} has--error`;
|
|
21
20
|
}
|
|
22
21
|
return cssClass;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
this.
|
|
23
|
+
onInput(ev) {
|
|
24
|
+
this.value = ev.target && ev.target.value;
|
|
25
|
+
this.inputEvent.emit(this.value);
|
|
26
|
+
}
|
|
27
|
+
onChange() {
|
|
28
|
+
this.changeEvent.emit(this.value);
|
|
26
29
|
}
|
|
27
30
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
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) => {
|
|
32
|
+
this.onInput(e);
|
|
33
|
+
}, value: this.value, onChange: () => this.onChange() }), this.error && h("p", { key: '1e282386e337e13c7d9d626d0fb40525107603dc', class: "text-danger" }, this.error)));
|
|
29
34
|
}
|
|
30
35
|
static get is() { return "p-input-text"; }
|
|
31
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +67,7 @@ export class InputText {
|
|
|
62
67
|
},
|
|
63
68
|
"value": {
|
|
64
69
|
"type": "string",
|
|
65
|
-
"mutable":
|
|
70
|
+
"mutable": true,
|
|
66
71
|
"complexType": {
|
|
67
72
|
"original": "string",
|
|
68
73
|
"resolved": "string",
|
|
@@ -179,12 +184,12 @@ export class InputText {
|
|
|
179
184
|
"reflect": false,
|
|
180
185
|
"defaultValue": "false"
|
|
181
186
|
},
|
|
182
|
-
"
|
|
183
|
-
"type": "
|
|
187
|
+
"error": {
|
|
188
|
+
"type": "string",
|
|
184
189
|
"mutable": false,
|
|
185
190
|
"complexType": {
|
|
186
|
-
"original": "
|
|
187
|
-
"resolved": "
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
188
193
|
"references": {}
|
|
189
194
|
},
|
|
190
195
|
"required": false,
|
|
@@ -195,9 +200,8 @@ export class InputText {
|
|
|
195
200
|
},
|
|
196
201
|
"getter": false,
|
|
197
202
|
"setter": false,
|
|
198
|
-
"attribute": "
|
|
199
|
-
"reflect": false
|
|
200
|
-
"defaultValue": "false"
|
|
203
|
+
"attribute": "error",
|
|
204
|
+
"reflect": false
|
|
201
205
|
}
|
|
202
206
|
};
|
|
203
207
|
}
|
|
@@ -217,6 +221,21 @@ export class InputText {
|
|
|
217
221
|
"resolved": "string",
|
|
218
222
|
"references": {}
|
|
219
223
|
}
|
|
224
|
+
}, {
|
|
225
|
+
"method": "inputEvent",
|
|
226
|
+
"name": "input",
|
|
227
|
+
"bubbles": true,
|
|
228
|
+
"cancelable": true,
|
|
229
|
+
"composed": true,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": ""
|
|
233
|
+
},
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
}
|
|
220
239
|
}];
|
|
221
240
|
}
|
|
222
241
|
}
|
|
@@ -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
|
}
|