@kumori/aurora-wui-components 0.0.178 → 0.0.179

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.
@@ -5,9 +5,10 @@ export declare class AxebowNumericInput extends AxebowInputBase {
5
5
  max: number;
6
6
  min: number;
7
7
  integerOnly: boolean;
8
- /** Opt-in exact field width/height (e.g. '6.1875rem' / '2.5rem'). Left
9
- * unset, every existing caller keeps the field's previous default sizing
10
- * unchanged. */
8
+ /** Opt-in exact size for the field itself - the sl-input box, not the
9
+ * label/description column above it (e.g. fixedWidth '6.1875rem' for a
10
+ * 99px-wide field, fixedHeight '2.5rem' for 40px). Left unset, every
11
+ * existing caller keeps the field's previous default sizing unchanged. */
11
12
  fixedWidth?: string;
12
13
  fixedHeight?: string;
13
14
  /** Adds a 22x38 +/- stepper flush against the field's right border,
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-numeric-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-numeric-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,qBACa,kBAAmB,SAAQ,eAAe;IACrD,MAAM,CAAC,MAAM,4BA+CX;IAE0B,GAAG,SAA2B;IAC9B,GAAG,SAAK;IACP,WAAW,UAAS;IAEjD;;qBAEiB;IACW,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAEjD;;uCAEmC;IACN,WAAW,UAAS;IACrB,UAAU,SAAK;IAE3C,OAAO,CAAC,OAAO,EAAE,cAAc;IAmB/B,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK;IAgB/B,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa;IAMxC,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,cAAc;IA2BtB,MAAM;CAoBP"}
1
+ {"version":3,"file":"axebow-numeric-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-numeric-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,qBACa,kBAAmB,SAAQ,eAAe;IACrD,MAAM,CAAC,MAAM,4BAoDX;IAE0B,GAAG,SAA2B;IAC9B,GAAG,SAAK;IACP,WAAW,UAAS;IAEjD;;;+EAG2E;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAEjD;;uCAEmC;IACN,WAAW,UAAS;IACrB,UAAU,SAAK;IAE3C,OAAO,CAAC,OAAO,EAAE,cAAc;IAyB/B,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK;IAgB/B,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa;IAMxC,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,cAAc;IA2BtB,MAAM;CAoBP"}
package/dist/index.js CHANGED
@@ -1529,9 +1529,14 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
1529
1529
  display: block;
1530
1530
  width: 100%;
1531
1531
  }
1532
- /* Both guarded by their own host class - absent unless the matching
1533
- property is set - so neither ever touches sl-input's own default
1534
- sizing/padding for every existing caller that doesn't opt in. */
1532
+ /* All three guarded by their own host class - absent unless the
1533
+ matching property is set - so none ever touch sl-input's own
1534
+ default sizing/padding for every existing caller that doesn't opt
1535
+ in. fixedWidth only constrains the field itself (not the host, so
1536
+ the label above keeps its full width and doesn't wrap). */
1537
+ :host(.axebow-fixed-width) sl-input {
1538
+ width: var(--axebow-input-width);
1539
+ }
1535
1540
  :host(.axebow-fixed-height) sl-input::part(base) {
1536
1541
  height: var(--axebow-input-height);
1537
1542
  }
@@ -1572,7 +1577,13 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
1572
1577
  }
1573
1578
  updated(changed) {
1574
1579
  super.updated(changed);
1575
- if (changed.has("fixedWidth")) this.style.width = this.fixedWidth || "";
1580
+ if (changed.has("fixedWidth")) if (this.fixedWidth) {
1581
+ this.style.setProperty("--axebow-input-width", this.fixedWidth);
1582
+ this.classList.add("axebow-fixed-width");
1583
+ } else {
1584
+ this.style.removeProperty("--axebow-input-width");
1585
+ this.classList.remove("axebow-fixed-width");
1586
+ }
1576
1587
  if (changed.has("fixedHeight")) if (this.fixedHeight) {
1577
1588
  this.style.setProperty("--axebow-input-height", this.fixedHeight);
1578
1589
  this.classList.add("axebow-fixed-height");