@ptcwebops/ptcw-design 2.2.8 → 2.2.9

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.
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-1662de74.js');
6
-
7
- const ptcLottieCss = ":host{display:block;width:100%;height:auto}";
8
-
9
- const PtcLottie = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.jsonSrc = undefined;
13
- this.speed = 1;
14
- }
15
- render() {
16
- return (index.h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
17
- }
18
- };
19
- PtcLottie.style = ptcLottieCss;
20
-
21
- exports.ptc_lottie = PtcLottie;
@@ -1,5 +0,0 @@
1
- :host {
2
- display: block;
3
- width: 100%;
4
- height: auto
5
- }
@@ -1,62 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import '@teamhive/lottie-player';
3
- export class PtcLottie {
4
- constructor() {
5
- this.jsonSrc = undefined;
6
- this.speed = 1;
7
- }
8
- render() {
9
- return (h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
10
- }
11
- static get is() { return "ptc-lottie"; }
12
- static get encapsulation() { return "shadow"; }
13
- static get originalStyleUrls() {
14
- return {
15
- "$": ["ptc-lottie.css"]
16
- };
17
- }
18
- static get styleUrls() {
19
- return {
20
- "$": ["ptc-lottie.css"]
21
- };
22
- }
23
- static get properties() {
24
- return {
25
- "jsonSrc": {
26
- "type": "string",
27
- "mutable": true,
28
- "complexType": {
29
- "original": "string",
30
- "resolved": "string",
31
- "references": {}
32
- },
33
- "required": false,
34
- "optional": false,
35
- "docs": {
36
- "tags": [],
37
- "text": "Set Json file src"
38
- },
39
- "attribute": "json-src",
40
- "reflect": false
41
- },
42
- "speed": {
43
- "type": "number",
44
- "mutable": true,
45
- "complexType": {
46
- "original": "number",
47
- "resolved": "number",
48
- "references": {}
49
- },
50
- "required": false,
51
- "optional": false,
52
- "docs": {
53
- "tags": [],
54
- "text": "Animation speed"
55
- },
56
- "attribute": "speed",
57
- "reflect": false,
58
- "defaultValue": "1"
59
- }
60
- };
61
- }
62
- }