@verbb/formie-web-components 1.0.14 → 1.0.16
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.0.16 - 2026-10-28
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Updated the package build toolchain to Vite 8.3.4.
|
|
9
|
+
|
|
10
|
+
## 1.0.15 - 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Use `addRowLabel` for the client-rendered Repeater button label.
|
|
14
|
+
|
|
5
15
|
## 1.0.14 - 2026-10-08
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -1038,7 +1038,7 @@ function Dt(e, t) {
|
|
|
1038
1038
|
o([...c, l(n)]);
|
|
1039
1039
|
}}
|
|
1040
1040
|
>
|
|
1041
|
-
${String(u.
|
|
1041
|
+
${String(u.addRowLabel ?? "Add another row")}
|
|
1042
1042
|
</button>
|
|
1043
1043
|
</div>
|
|
1044
1044
|
`;
|
|
@@ -1173,7 +1173,7 @@ function Ft(e) {
|
|
|
1173
1173
|
return P`<div class="mb-4 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800">${e}</div>`;
|
|
1174
1174
|
}
|
|
1175
1175
|
//#endregion
|
|
1176
|
-
//#region \0@oxc-project+runtime@0.
|
|
1176
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
|
|
1177
1177
|
function X(e, t, n, r) {
|
|
1178
1178
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
1179
1179
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
@@ -1573,7 +1573,7 @@ var Bt = class extends HTMLElement {
|
|
|
1573
1573
|
async firstUpdated() {
|
|
1574
1574
|
let e = this.shadowRoot?.querySelector("canvas");
|
|
1575
1575
|
if (e && e instanceof HTMLCanvasElement) try {
|
|
1576
|
-
let { default: t } = await import("./signature_pad-
|
|
1576
|
+
let { default: t } = await import("./signature_pad-Cqf-RWiu.js"), n = this.resolveDrawModuleConfig(), r = typeof n?.backgroundColor == "string" ? String(n.backgroundColor) : "#ffffff", i = typeof n?.penColor == "string" ? String(n.penColor) : "#000000", a = Number(n?.penWeight ?? 2) || 2, o = new t(e, {
|
|
1577
1577
|
backgroundColor: r,
|
|
1578
1578
|
penColor: i,
|
|
1579
1579
|
minWidth: a,
|
|
@@ -1603,25 +1603,18 @@ var Bt = class extends HTMLElement {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
applySerializedValue() {
|
|
1605
1605
|
if (this.pad) {
|
|
1606
|
-
if (!this.value)
|
|
1607
|
-
|
|
1608
|
-
return;
|
|
1609
|
-
}
|
|
1610
|
-
try {
|
|
1606
|
+
if (!this.value) this.pad.isEmpty() || this.pad.clear();
|
|
1607
|
+
else try {
|
|
1611
1608
|
this.pad.fromDataURL(this.value);
|
|
1612
1609
|
} catch {}
|
|
1613
1610
|
}
|
|
1614
1611
|
}
|
|
1615
1612
|
emitValue() {
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
}));
|
|
1622
|
-
return;
|
|
1623
|
-
}
|
|
1624
|
-
this.dispatchEvent(new CustomEvent(Y, {
|
|
1613
|
+
!this.pad || this.pad.isEmpty() ? this.dispatchEvent(new CustomEvent(Y, {
|
|
1614
|
+
detail: "",
|
|
1615
|
+
bubbles: !0,
|
|
1616
|
+
composed: !0
|
|
1617
|
+
})) : this.dispatchEvent(new CustomEvent(Y, {
|
|
1625
1618
|
detail: this.pad.toDataURL(),
|
|
1626
1619
|
bubbles: !0,
|
|
1627
1620
|
composed: !0
|
|
@@ -194,11 +194,7 @@ var i = class i extends n {
|
|
|
194
194
|
this._isLeftButtonPressed(e, !0) && !this._drawingStroke && this._strokeBegin(this._pointerEventToSignatureEvent(e));
|
|
195
195
|
}
|
|
196
196
|
_handleMouseMove(e) {
|
|
197
|
-
|
|
198
|
-
this._strokeEnd(this._pointerEventToSignatureEvent(e), !1);
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e));
|
|
197
|
+
!this._isLeftButtonPressed(e, !0) || !this._drawingStroke ? this._strokeEnd(this._pointerEventToSignatureEvent(e), !1) : this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e));
|
|
202
198
|
}
|
|
203
199
|
_handleMouseUp(e) {
|
|
204
200
|
this._isLeftButtonPressed(e) || this._strokeEnd(this._pointerEventToSignatureEvent(e));
|
|
@@ -207,13 +203,7 @@ var i = class i extends n {
|
|
|
207
203
|
e.targetTouches.length !== 1 || this._drawingStroke || (e.cancelable && e.preventDefault(), this._strokeBegin(this._touchEventToSignatureEvent(e)));
|
|
208
204
|
}
|
|
209
205
|
_handleTouchMove(e) {
|
|
210
|
-
|
|
211
|
-
if (e.cancelable && e.preventDefault(), !this._drawingStroke) {
|
|
212
|
-
this._strokeEnd(this._touchEventToSignatureEvent(e), !1);
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
this._strokeMoveUpdate(this._touchEventToSignatureEvent(e));
|
|
216
|
-
}
|
|
206
|
+
e.targetTouches.length === 1 && (e.cancelable && e.preventDefault(), this._drawingStroke ? this._strokeMoveUpdate(this._touchEventToSignatureEvent(e)) : this._strokeEnd(this._touchEventToSignatureEvent(e), !1));
|
|
217
207
|
}
|
|
218
208
|
_handleTouchEnd(e) {
|
|
219
209
|
e.targetTouches.length === 0 && (e.cancelable && e.preventDefault(), this._strokeEnd(this._touchEventToSignatureEvent(e)));
|
|
@@ -234,13 +224,7 @@ var i = class i extends n {
|
|
|
234
224
|
!this._drawingStroke && this._isLeftButtonPressed(e) && this._allowPointerId(e, !0) && (this._strokePointerId = this._getPointerId(e), e.preventDefault(), this._strokeBegin(this._pointerEventToSignatureEvent(e)));
|
|
235
225
|
}
|
|
236
226
|
_handlePointerMove(e) {
|
|
237
|
-
|
|
238
|
-
if (!this._isLeftButtonPressed(e, !0) || !this._drawingStroke) {
|
|
239
|
-
this._strokeEnd(this._pointerEventToSignatureEvent(e), !1);
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
e.preventDefault(), this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e));
|
|
243
|
-
}
|
|
227
|
+
this._allowPointerId(e) && (!this._isLeftButtonPressed(e, !0) || !this._drawingStroke ? this._strokeEnd(this._pointerEventToSignatureEvent(e), !1) : (e.preventDefault(), this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e))));
|
|
244
228
|
}
|
|
245
229
|
_handlePointerUp(e) {
|
|
246
230
|
!this._isLeftButtonPressed(e) && this._allowPointerId(e) && (e.preventDefault(), this._strokeEnd(this._pointerEventToSignatureEvent(e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbb/formie-web-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"build": "vite build && tsc -p tsconfig.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@verbb/formie-browser": "1.0.
|
|
43
|
-
"@verbb/formie-core": "1.0.
|
|
42
|
+
"@verbb/formie-browser": "1.0.16",
|
|
43
|
+
"@verbb/formie-core": "1.0.16",
|
|
44
44
|
"lit": "^3.3.2",
|
|
45
45
|
"signature_pad": "^5.1.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^6.0.3",
|
|
49
|
-
"vite": "^8.
|
|
49
|
+
"vite": "^8.3.5"
|
|
50
50
|
}
|
|
51
51
|
}
|