@orion-studios/payload-studio 0.6.0-beta.155 → 0.6.0-beta.156
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/builder-v2/client.js +10 -0
- package/dist/builder-v2/client.mjs +10 -0
- package/package.json +1 -1
|
@@ -1399,6 +1399,16 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1399
1399
|
input.type = "text";
|
|
1400
1400
|
input.inputMode = "decimal";
|
|
1401
1401
|
field.querySelector("select")?.setAttribute("tabindex", "-1");
|
|
1402
|
+
if (property.startsWith("padding-")) {
|
|
1403
|
+
const keepNegativePaddingValue = (event) => {
|
|
1404
|
+
if (!input.value.trim().startsWith("-")) {
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
event.stopPropagation();
|
|
1408
|
+
};
|
|
1409
|
+
input.addEventListener("input", keepNegativePaddingValue, true);
|
|
1410
|
+
input.addEventListener("change", keepNegativePaddingValue, true);
|
|
1411
|
+
}
|
|
1402
1412
|
input.addEventListener(
|
|
1403
1413
|
"keydown",
|
|
1404
1414
|
(event) => {
|
|
@@ -1275,6 +1275,16 @@ var decorateBuilderNumericSteppers = (root = document) => {
|
|
|
1275
1275
|
input.type = "text";
|
|
1276
1276
|
input.inputMode = "decimal";
|
|
1277
1277
|
field.querySelector("select")?.setAttribute("tabindex", "-1");
|
|
1278
|
+
if (property.startsWith("padding-")) {
|
|
1279
|
+
const keepNegativePaddingValue = (event) => {
|
|
1280
|
+
if (!input.value.trim().startsWith("-")) {
|
|
1281
|
+
return;
|
|
1282
|
+
}
|
|
1283
|
+
event.stopPropagation();
|
|
1284
|
+
};
|
|
1285
|
+
input.addEventListener("input", keepNegativePaddingValue, true);
|
|
1286
|
+
input.addEventListener("change", keepNegativePaddingValue, true);
|
|
1287
|
+
}
|
|
1278
1288
|
input.addEventListener(
|
|
1279
1289
|
"keydown",
|
|
1280
1290
|
(event) => {
|
package/package.json
CHANGED