lido-player 0.0.2-alpha-49 → 0.0.2-alpha-43-dev
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-fe562525.js → index-6a69c33a.js} +36 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_19.cjs.entry.js → lido-avatar_21.cjs.entry.js} +431 -180
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-96ce5641.js → utils-079a5e7d.js} +1032 -165
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/calculator/lido-calculator.css +87 -0
- package/dist/collection/components/calculator/lido-calculator.js +321 -0
- package/dist/collection/components/cell/lido-cell.js +1 -1
- package/dist/collection/components/column/lido-col.js +1 -1
- package/dist/collection/components/container/lido-container.js +20 -1
- package/dist/collection/components/flashCard/lido-flash-card.js +1 -1
- package/dist/collection/components/float/lido-float.js +1 -1
- package/dist/collection/components/home/lido-home.js +9 -29
- package/dist/collection/components/keyboard/lido-keyboard.js +2 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +10 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +226 -20
- package/dist/collection/components/position/lido-pos.js +1 -1
- package/dist/collection/components/random/lido-random.js +1 -1
- package/dist/collection/components/row/lido-row.js +1 -1
- package/dist/collection/components/scale/lido-balance.css +114 -0
- package/dist/collection/components/scale/lido-balance.js +549 -0
- package/dist/collection/components/shape/lido-shape.js +1 -1
- package/dist/collection/components/slideFill/lido-slide-fill.js +1 -1
- package/dist/collection/components/text/lido-text.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +49 -128
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/css/animation.css +21 -0
- package/dist/collection/css/index.css +45 -0
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +24 -25
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +0 -3
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +67 -0
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +156 -0
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +49 -0
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +66 -0
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +65 -0
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +105 -0
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +92 -0
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +47 -0
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +59 -0
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +93 -0
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +100 -0
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +212 -0
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +6 -7
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +6 -7
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +158 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +102 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +94 -0
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +184 -0
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +213 -0
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +109 -0
- package/dist/collection/stories/Templates/total/total.stories.js +59 -0
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +96 -0
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +55 -0
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +5 -6
- package/dist/collection/utils/utils.js +439 -81
- package/dist/collection/utils/utilsHandlers/clickHandler.js +21 -25
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +95 -42
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +67 -0
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +94 -0
- package/dist/collection/utils/utilsHandlers/matrixHandler.js +298 -0
- package/dist/collection/utils/utilsHandlers/slideHandler.js +4 -2
- package/dist/collection/utils/utilsHandlers/sortHandler.js +21 -12
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.d.ts +11 -0
- package/dist/components/lido-balance.js +6 -0
- package/dist/components/lido-calculator.d.ts +11 -0
- package/dist/components/lido-calculator.js +6 -0
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +32 -20
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/p-08d0deab.js +254 -0
- package/dist/components/{p-b5b6ad27.js → p-15971ede.js} +1 -1
- package/dist/components/{p-0bf92c7f.js → p-1fbdb431.js} +2 -2
- package/dist/components/{p-b43ce4e1.js → p-29bdd953.js} +2 -2
- package/dist/components/{p-b8af26e6.js → p-322acda6.js} +40 -48
- package/dist/components/{p-51943db6.js → p-3f406017.js} +2 -2
- package/dist/components/p-44808985.js +186 -0
- package/dist/components/{p-4cabbf28.js → p-52844fa4.js} +2 -2
- package/dist/components/{p-4882df37.js → p-73e31a86.js} +2 -2
- package/dist/components/{p-af54a485.js → p-74849cdd.js} +4 -4
- package/dist/components/{p-9c56f378.js → p-7f7e5672.js} +2 -2
- package/dist/components/{p-4dbae73b.js → p-835b973d.js} +2 -2
- package/dist/components/{p-b55af747.js → p-90465904.js} +50 -129
- package/dist/components/{p-cae021c6.js → p-904711c8.js} +2 -2
- package/dist/components/{p-e735dce9.js → p-9be56729.js} +5 -3
- package/dist/components/{p-cac6c8bf.js → p-afbc196f.js} +2 -2
- package/dist/components/{p-cfa2aec8.js → p-bed94c37.js} +1047 -164
- package/dist/components/{p-7f11a624.js → p-cbac3cbc.js} +1 -1
- package/dist/components/{p-61d97438.js → p-d37ab4dc.js} +2 -2
- package/dist/components/p-e36ddcc1.js +166 -0
- package/dist/components/{p-03e4cafe.js → p-e4e42677.js} +2 -2
- package/dist/esm/{index-f47852d4.js → index-170e58c7.js} +36 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_19.entry.js → lido-avatar_21.entry.js} +430 -181
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-9ce243d8.js → utils-5df09162.js} +1031 -164
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-137c99ce.js +2 -0
- package/dist/lido-player/p-7556e652.js +9 -0
- package/dist/lido-player/p-eb956325.entry.js +1 -0
- package/dist/types/components/calculator/lido-calculator.d.ts +40 -0
- package/dist/types/components/container/lido-container.d.ts +4 -0
- package/dist/types/components/home/lido-home.d.ts +0 -1
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +24 -4
- package/dist/types/components/scale/lido-balance.d.ts +160 -0
- package/dist/types/components/trace/lido-trace.d.ts +0 -1
- package/dist/types/components.d.ts +342 -14
- package/dist/types/stories/Templates/balancing/balancing.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checker-block/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checkerBlock/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/fillAnswer/fill-answer.stories.d.ts +4 -0
- package/dist/types/stories/Templates/foodJar/food-jar.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox2.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchingCard/matching-card.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +9 -0
- package/dist/types/stories/Templates/nimbleTable/nimbleTable.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberBoardTwo/numberBoardTwo.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberPair/numberPair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +15 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +11 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +11 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/shapeTractor/shape-tractor.stories.d.ts +12 -0
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +11 -0
- package/dist/types/stories/Templates/total/total.stories.d.ts +4 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +13 -0
- package/dist/types/stories/Templates/writeSet/writeSet.stories.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +8 -2
- package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +4 -0
- package/dist/types/utils/utilsHandlers/lidoBalanceHandler.d.ts +2 -0
- package/dist/types/utils/utilsHandlers/lidoCalculatorHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/matrixHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-a8ab771b.js +0 -160
- package/dist/lido-player/p-90212aa9.js +0 -9
- package/dist/lido-player/p-d3911ee1.entry.js +0 -1
- package/dist/lido-player/p-ddf627b0.js +0 -2
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { initEventsForElement, parseProp } from "../../utils/utils";
|
|
3
|
+
export class LidoBalance {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.currentAngle = 0;
|
|
6
|
+
this.pivotimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Display%20stand.svg';
|
|
7
|
+
this.scaleimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Bar.svg';
|
|
8
|
+
this.handlerimage = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Stands.svg';
|
|
9
|
+
this.fill = 'brown';
|
|
10
|
+
this.tilt = 0;
|
|
11
|
+
this.maxTilt = 9.5;
|
|
12
|
+
this.onEntry = '';
|
|
13
|
+
this.height = 'auto';
|
|
14
|
+
this.width = 'auto';
|
|
15
|
+
this.x = '0px';
|
|
16
|
+
this.y = '0px';
|
|
17
|
+
this.z = '0';
|
|
18
|
+
this.visible = false;
|
|
19
|
+
this.margin = '';
|
|
20
|
+
this.padding = '';
|
|
21
|
+
this.balanceSymbol = '=';
|
|
22
|
+
this.showSymbol = false;
|
|
23
|
+
this.operation = 'count';
|
|
24
|
+
this.pivotSvg = '';
|
|
25
|
+
this.scaleSvg = '';
|
|
26
|
+
this.handlerSvg = '';
|
|
27
|
+
this.style = {};
|
|
28
|
+
this.tiltf = 0;
|
|
29
|
+
this.leftVal = 0;
|
|
30
|
+
this.rightVal = 0;
|
|
31
|
+
}
|
|
32
|
+
async revealSymbol() {
|
|
33
|
+
this.showSymbol = true;
|
|
34
|
+
}
|
|
35
|
+
async hideSymbol() {
|
|
36
|
+
this.showSymbol = false;
|
|
37
|
+
}
|
|
38
|
+
async componentWillLoad() {
|
|
39
|
+
this.updateStyles();
|
|
40
|
+
this.pivotSvg = await this.fetchAndApplyFill(this.pivotimage);
|
|
41
|
+
this.scaleSvg = await this.fetchAndApplyFill(this.scaleimage);
|
|
42
|
+
this.handlerSvg = await this.fetchAndApplyFill(this.handlerimage);
|
|
43
|
+
}
|
|
44
|
+
componentDidLoad() {
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
this.animateBalance();
|
|
47
|
+
}, 4000);
|
|
48
|
+
this.leftParentEl = document.getElementById("leftparent");
|
|
49
|
+
this.rightParentEl = document.getElementById("rightparent");
|
|
50
|
+
initEventsForElement(this.el);
|
|
51
|
+
}
|
|
52
|
+
disconnectedCallback() {
|
|
53
|
+
if (this.animationFrameId != null)
|
|
54
|
+
cancelAnimationFrame(this.animationFrameId);
|
|
55
|
+
}
|
|
56
|
+
async fetchAndApplyFill(url) {
|
|
57
|
+
try {
|
|
58
|
+
const res = await fetch(url);
|
|
59
|
+
if (!res.ok)
|
|
60
|
+
return '';
|
|
61
|
+
let svg = await res.text();
|
|
62
|
+
svg = svg.replace(/fill="[^"]*"/g, '');
|
|
63
|
+
svg = svg.replace(/stroke="[^"]*"/g, '');
|
|
64
|
+
svg = svg.replace(/<svg([^>]*)>/, `<svg$1 fill="${this.fill}" stroke="${this.fill}">`);
|
|
65
|
+
return svg;
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
console.error('SVG fetch failed:', e);
|
|
69
|
+
return '';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
tiltChanged(newValue) {
|
|
73
|
+
this.tiltf = newValue;
|
|
74
|
+
}
|
|
75
|
+
async updateTilt(leftVal, rightVal) {
|
|
76
|
+
const diff = rightVal - leftVal;
|
|
77
|
+
const newTilt = Math.max(-5, Math.min(5, diff));
|
|
78
|
+
this.tiltf = newTilt;
|
|
79
|
+
}
|
|
80
|
+
animateBalance() {
|
|
81
|
+
const rotate = () => {
|
|
82
|
+
let targetAngle = (this.tiltf / 5) * this.maxTilt;
|
|
83
|
+
if (targetAngle > this.maxTilt)
|
|
84
|
+
targetAngle = this.maxTilt;
|
|
85
|
+
if (targetAngle < -this.maxTilt)
|
|
86
|
+
targetAngle = -this.maxTilt;
|
|
87
|
+
this.currentAngle += (targetAngle - this.currentAngle) * 0.1;
|
|
88
|
+
if (this.currentAngle > this.maxTilt)
|
|
89
|
+
this.currentAngle = this.maxTilt;
|
|
90
|
+
if (this.currentAngle < -this.maxTilt)
|
|
91
|
+
this.currentAngle = -this.maxTilt;
|
|
92
|
+
if (this.scaleEl) {
|
|
93
|
+
this.scaleEl.style.transform = `rotate(${this.currentAngle}deg)`;
|
|
94
|
+
this.scaleEl.style.transformOrigin = '50% 80%';
|
|
95
|
+
}
|
|
96
|
+
if (this.leftParentEl && this.rightParentEl) {
|
|
97
|
+
const maxOffset = 60;
|
|
98
|
+
const offset = (this.currentAngle / this.maxTilt) * maxOffset;
|
|
99
|
+
this.leftParentEl.style.transform = `translateY(${-offset}px)`;
|
|
100
|
+
this.rightParentEl.style.transform = `translateY(${offset}px)`;
|
|
101
|
+
}
|
|
102
|
+
if (this.leftHandleEl && this.rightHandleEl) {
|
|
103
|
+
const isPortrait = window.innerHeight > window.innerWidth;
|
|
104
|
+
const maxOffset = isPortrait ? 40 : 60;
|
|
105
|
+
const offset = (this.currentAngle / this.maxTilt) * maxOffset;
|
|
106
|
+
this.leftHandleEl.style.transform = `translateY(${-offset}px)`;
|
|
107
|
+
this.rightHandleEl.style.transform = `translateY(${offset}px)`;
|
|
108
|
+
}
|
|
109
|
+
this.animationFrameId = requestAnimationFrame(rotate);
|
|
110
|
+
};
|
|
111
|
+
rotate();
|
|
112
|
+
}
|
|
113
|
+
updateStyles() {
|
|
114
|
+
const orientation = window.innerHeight > window.innerWidth ? 'portrait' : 'landscape';
|
|
115
|
+
this.style = {
|
|
116
|
+
height: parseProp(this.height, orientation),
|
|
117
|
+
width: parseProp(this.width, orientation),
|
|
118
|
+
top: parseProp(this.y, orientation),
|
|
119
|
+
left: parseProp(this.x, orientation),
|
|
120
|
+
zIndex: this.z,
|
|
121
|
+
display: parseProp(`${this.visible}`, orientation) === "true" ? 'flex' : 'none',
|
|
122
|
+
margin: parseProp(this.margin, orientation),
|
|
123
|
+
padding: parseProp(this.padding, orientation),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
return (h(Host, { key: '868cc05ae503a6e04039c615815102470eb402d4', id: "lido-balance", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString() }, h("div", { key: '2627a49d1ad5045bd9a3ac217354c9be98f1f52b', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: 'c5b2432f5e3c62ebbb7f17146f18e22e7e2b29bb', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: 'd5e8051aedb784189f19a1e7b0dfd645e95ed4a5', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: '3779886d4fc8dfadc0791f69cb87df78d5f843c8', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'df5d4094c302548bf64f166643a3f05d262d95b1', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
|
|
128
|
+
}
|
|
129
|
+
static get is() { return "lido-balance"; }
|
|
130
|
+
static get originalStyleUrls() {
|
|
131
|
+
return {
|
|
132
|
+
"$": ["lido-balance.css"]
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static get styleUrls() {
|
|
136
|
+
return {
|
|
137
|
+
"$": ["lido-balance.css"]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
static get properties() {
|
|
141
|
+
return {
|
|
142
|
+
"pivotimage": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "string",
|
|
147
|
+
"resolved": "string",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "URL of the pivot (base stand) image used in the balance visualization."
|
|
155
|
+
},
|
|
156
|
+
"attribute": "pivotimage",
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Display%20stand.svg'"
|
|
159
|
+
},
|
|
160
|
+
"scaleimage": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "string",
|
|
165
|
+
"resolved": "string",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": "URL of the scale (bar) image that tilts based on the weight difference."
|
|
173
|
+
},
|
|
174
|
+
"attribute": "scaleimage",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Bar.svg'"
|
|
177
|
+
},
|
|
178
|
+
"handlerimage": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "string",
|
|
183
|
+
"resolved": "string",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "URL of the handler (side stands / hooks) image for the balance."
|
|
191
|
+
},
|
|
192
|
+
"attribute": "handlerimage",
|
|
193
|
+
"reflect": false,
|
|
194
|
+
"defaultValue": "'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Stands.svg'"
|
|
195
|
+
},
|
|
196
|
+
"fill": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": "Fill color applied to all loaded SVGs (pivot, scale, handler).\nDefaults to \"brown\"."
|
|
209
|
+
},
|
|
210
|
+
"attribute": "fill",
|
|
211
|
+
"reflect": false,
|
|
212
|
+
"defaultValue": "'brown'"
|
|
213
|
+
},
|
|
214
|
+
"tilt": {
|
|
215
|
+
"type": "number",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "number",
|
|
219
|
+
"resolved": "number",
|
|
220
|
+
"references": {}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": "Initial tilt value of the balance.\nNegative = tilts left, Positive = tilts right."
|
|
227
|
+
},
|
|
228
|
+
"attribute": "tilt",
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "0"
|
|
231
|
+
},
|
|
232
|
+
"maxTilt": {
|
|
233
|
+
"type": "number",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "number",
|
|
237
|
+
"resolved": "number",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": false,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": "Maximum allowed tilt angle (in degrees) for the balance bar."
|
|
245
|
+
},
|
|
246
|
+
"attribute": "max-tilt",
|
|
247
|
+
"reflect": false,
|
|
248
|
+
"defaultValue": "9.5"
|
|
249
|
+
},
|
|
250
|
+
"onEntry": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "string",
|
|
255
|
+
"resolved": "string",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Action(s) to execute when the component enters the DOM.\nExample: trigger animations or audio cues."
|
|
263
|
+
},
|
|
264
|
+
"attribute": "on-entry",
|
|
265
|
+
"reflect": false,
|
|
266
|
+
"defaultValue": "''"
|
|
267
|
+
},
|
|
268
|
+
"height": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": false,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": "CSS height of the component (responsive values allowed).\nDefault: \"auto\"."
|
|
281
|
+
},
|
|
282
|
+
"attribute": "height",
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"defaultValue": "'auto'"
|
|
285
|
+
},
|
|
286
|
+
"width": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "string",
|
|
291
|
+
"resolved": "string",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": false,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "CSS width of the component (responsive values allowed).\nDefault: \"auto\"."
|
|
299
|
+
},
|
|
300
|
+
"attribute": "width",
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"defaultValue": "'auto'"
|
|
303
|
+
},
|
|
304
|
+
"x": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"mutable": false,
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "string",
|
|
309
|
+
"resolved": "string",
|
|
310
|
+
"references": {}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": false,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": "Horizontal (X-axis) offset for positioning the component.\nDefault: \"0px\"."
|
|
317
|
+
},
|
|
318
|
+
"attribute": "x",
|
|
319
|
+
"reflect": false,
|
|
320
|
+
"defaultValue": "'0px'"
|
|
321
|
+
},
|
|
322
|
+
"y": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"mutable": false,
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "string",
|
|
327
|
+
"resolved": "string",
|
|
328
|
+
"references": {}
|
|
329
|
+
},
|
|
330
|
+
"required": false,
|
|
331
|
+
"optional": false,
|
|
332
|
+
"docs": {
|
|
333
|
+
"tags": [],
|
|
334
|
+
"text": "Vertical (Y-axis) offset for positioning the component.\nDefault: \"0px\"."
|
|
335
|
+
},
|
|
336
|
+
"attribute": "y",
|
|
337
|
+
"reflect": false,
|
|
338
|
+
"defaultValue": "'0px'"
|
|
339
|
+
},
|
|
340
|
+
"z": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"mutable": false,
|
|
343
|
+
"complexType": {
|
|
344
|
+
"original": "string",
|
|
345
|
+
"resolved": "string",
|
|
346
|
+
"references": {}
|
|
347
|
+
},
|
|
348
|
+
"required": false,
|
|
349
|
+
"optional": false,
|
|
350
|
+
"docs": {
|
|
351
|
+
"tags": [],
|
|
352
|
+
"text": "Z-index for stacking order of the component.\nDefault: \"0\"."
|
|
353
|
+
},
|
|
354
|
+
"attribute": "z",
|
|
355
|
+
"reflect": false,
|
|
356
|
+
"defaultValue": "'0'"
|
|
357
|
+
},
|
|
358
|
+
"visible": {
|
|
359
|
+
"type": "any",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "boolean | string",
|
|
363
|
+
"resolved": "boolean | string",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": "Controls component visibility.\nAccepts boolean (`true`/`false`) or string (\"true\"/\"false\")."
|
|
371
|
+
},
|
|
372
|
+
"attribute": "visible",
|
|
373
|
+
"reflect": false,
|
|
374
|
+
"defaultValue": "false"
|
|
375
|
+
},
|
|
376
|
+
"margin": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"mutable": false,
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "string",
|
|
381
|
+
"resolved": "string",
|
|
382
|
+
"references": {}
|
|
383
|
+
},
|
|
384
|
+
"required": false,
|
|
385
|
+
"optional": false,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [],
|
|
388
|
+
"text": "CSS margin applied to the outer container."
|
|
389
|
+
},
|
|
390
|
+
"attribute": "margin",
|
|
391
|
+
"reflect": false,
|
|
392
|
+
"defaultValue": "''"
|
|
393
|
+
},
|
|
394
|
+
"padding": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "string",
|
|
399
|
+
"resolved": "string",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": false,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [],
|
|
406
|
+
"text": "CSS padding applied to the outer container."
|
|
407
|
+
},
|
|
408
|
+
"attribute": "padding",
|
|
409
|
+
"reflect": false,
|
|
410
|
+
"defaultValue": "''"
|
|
411
|
+
},
|
|
412
|
+
"balanceSymbol": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"mutable": true,
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "string",
|
|
417
|
+
"resolved": "string",
|
|
418
|
+
"references": {}
|
|
419
|
+
},
|
|
420
|
+
"required": false,
|
|
421
|
+
"optional": false,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [],
|
|
424
|
+
"text": "Balance symbol shown when `showSymbol` is true.\nDefault: \"=\"."
|
|
425
|
+
},
|
|
426
|
+
"attribute": "balance-symbol",
|
|
427
|
+
"reflect": true,
|
|
428
|
+
"defaultValue": "'='"
|
|
429
|
+
},
|
|
430
|
+
"showSymbol": {
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"mutable": true,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "boolean",
|
|
435
|
+
"resolved": "boolean",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Whether the balance symbol is currently displayed.\nCan be toggled with `revealSymbol()` and `hideSymbol()`."
|
|
443
|
+
},
|
|
444
|
+
"attribute": "show-symbol",
|
|
445
|
+
"reflect": true,
|
|
446
|
+
"defaultValue": "false"
|
|
447
|
+
},
|
|
448
|
+
"operation": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"mutable": false,
|
|
451
|
+
"complexType": {
|
|
452
|
+
"original": "string",
|
|
453
|
+
"resolved": "string",
|
|
454
|
+
"references": {}
|
|
455
|
+
},
|
|
456
|
+
"required": false,
|
|
457
|
+
"optional": false,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Operation type used to calculate balance values.\nSupported: \"count\", \"add\", \"subtract\", etc."
|
|
461
|
+
},
|
|
462
|
+
"attribute": "operation",
|
|
463
|
+
"reflect": false,
|
|
464
|
+
"defaultValue": "'count'"
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
static get states() {
|
|
469
|
+
return {
|
|
470
|
+
"pivotSvg": {},
|
|
471
|
+
"scaleSvg": {},
|
|
472
|
+
"handlerSvg": {},
|
|
473
|
+
"style": {},
|
|
474
|
+
"tiltf": {},
|
|
475
|
+
"leftVal": {},
|
|
476
|
+
"rightVal": {}
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
static get methods() {
|
|
480
|
+
return {
|
|
481
|
+
"revealSymbol": {
|
|
482
|
+
"complexType": {
|
|
483
|
+
"signature": "() => Promise<void>",
|
|
484
|
+
"parameters": [],
|
|
485
|
+
"references": {
|
|
486
|
+
"Promise": {
|
|
487
|
+
"location": "global",
|
|
488
|
+
"id": "global::Promise"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"return": "Promise<void>"
|
|
492
|
+
},
|
|
493
|
+
"docs": {
|
|
494
|
+
"text": "",
|
|
495
|
+
"tags": []
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"hideSymbol": {
|
|
499
|
+
"complexType": {
|
|
500
|
+
"signature": "() => Promise<void>",
|
|
501
|
+
"parameters": [],
|
|
502
|
+
"references": {
|
|
503
|
+
"Promise": {
|
|
504
|
+
"location": "global",
|
|
505
|
+
"id": "global::Promise"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"return": "Promise<void>"
|
|
509
|
+
},
|
|
510
|
+
"docs": {
|
|
511
|
+
"text": "",
|
|
512
|
+
"tags": []
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"updateTilt": {
|
|
516
|
+
"complexType": {
|
|
517
|
+
"signature": "(leftVal: number, rightVal: number) => Promise<void>",
|
|
518
|
+
"parameters": [{
|
|
519
|
+
"name": "leftVal",
|
|
520
|
+
"type": "number",
|
|
521
|
+
"docs": ""
|
|
522
|
+
}, {
|
|
523
|
+
"name": "rightVal",
|
|
524
|
+
"type": "number",
|
|
525
|
+
"docs": ""
|
|
526
|
+
}],
|
|
527
|
+
"references": {
|
|
528
|
+
"Promise": {
|
|
529
|
+
"location": "global",
|
|
530
|
+
"id": "global::Promise"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"return": "Promise<void>"
|
|
534
|
+
},
|
|
535
|
+
"docs": {
|
|
536
|
+
"text": "",
|
|
537
|
+
"tags": []
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
static get elementRef() { return "el"; }
|
|
543
|
+
static get watchers() {
|
|
544
|
+
return [{
|
|
545
|
+
"propName": "tilt",
|
|
546
|
+
"methodName": "tiltChanged"
|
|
547
|
+
}];
|
|
548
|
+
}
|
|
549
|
+
}
|
|
@@ -54,7 +54,7 @@ export class LidoShape {
|
|
|
54
54
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
55
55
|
margin: this.margin,
|
|
56
56
|
};
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '6712d974e85c5d82dabb5ed0d482ece4b18af16a', class: `lido-shape ${this.shapeType}`, value: this.value, type: this.type, "tab-index": this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "lido-shape"; }
|
|
60
60
|
static get originalStyleUrls() {
|
|
@@ -190,7 +190,7 @@ export class LidoSlideFill {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '57ee54a6a0e7d3bbac893ce535a3375ea529e75a', id: this.id, class: "lido-slide-fill", src: this.src, fill: this.fill, fillDirection: this.fillDirection, slider: this.slider, style: this.style, min: this.min, max: this.max, division: this.division, numberType: this.numberType, onEntry: this.onEntry, type: this.type, "disable-speak": this.disableSpeak }, h("div", { key: '386330e0562851f2f00aba169018c23bf5ffa4b7', innerHTML: this.svgContent, class: "svg-element" })));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "lido-slide-fill"; }
|
|
196
196
|
static get originalStyleUrls() {
|
|
@@ -123,7 +123,7 @@ export class LidoText {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '6b5b31a544cc63cfd4030aa1b56e41cc255b12cf', class: "lido-text", value: this.value, type: this.type, "tab-index": this.tabIndex, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, minDrops: this.minDrops, maxDrops: this.maxDrops, id: this.id, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, "span-type": this.spanType, "disable-speak": this.disableSpeak }, this.spanType !== '' ? h("div", { class: "lido-text-content" }, this.string) : this.string));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "lido-text"; }
|
|
129
129
|
static get originalStyleUrls() {
|