@orion-studios/payload-studio 0.6.0-beta.159 → 0.6.0-beta.160

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.
@@ -1416,9 +1416,9 @@ var decorateBuilderNumericSteppers = (root = document) => {
1416
1416
  if (property.startsWith("padding-")) {
1417
1417
  const selectionStart2 = input.selectionStart ?? 0;
1418
1418
  const selectionEnd2 = input.selectionEnd ?? selectionStart2;
1419
- const value2 = input.value || "";
1419
+ const value2 = input.dataset.orionRawValue || input.value || "";
1420
1420
  const isReplacingAll = selectionStart2 === 0 && selectionEnd2 === value2.length;
1421
- const isNegativeEntry = value2.startsWith("-") || event.key === "-";
1421
+ const isNegativeEntry = value2.startsWith("-") || Boolean(input.dataset.orionRawValue?.startsWith("-")) || event.key === "-";
1422
1422
  if (isNegativeEntry && event.key.length === 1 && /^[-.\d]$/.test(event.key)) {
1423
1423
  event.preventDefault();
1424
1424
  event.stopImmediatePropagation();
@@ -1292,9 +1292,9 @@ var decorateBuilderNumericSteppers = (root = document) => {
1292
1292
  if (property.startsWith("padding-")) {
1293
1293
  const selectionStart2 = input.selectionStart ?? 0;
1294
1294
  const selectionEnd2 = input.selectionEnd ?? selectionStart2;
1295
- const value2 = input.value || "";
1295
+ const value2 = input.dataset.orionRawValue || input.value || "";
1296
1296
  const isReplacingAll = selectionStart2 === 0 && selectionEnd2 === value2.length;
1297
- const isNegativeEntry = value2.startsWith("-") || event.key === "-";
1297
+ const isNegativeEntry = value2.startsWith("-") || Boolean(input.dataset.orionRawValue?.startsWith("-")) || event.key === "-";
1298
1298
  if (isNegativeEntry && event.key.length === 1 && /^[-.\d]$/.test(event.key)) {
1299
1299
  event.preventDefault();
1300
1300
  event.stopImmediatePropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.159",
3
+ "version": "0.6.0-beta.160",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",