@kumori/aurora-wui-components 0.0.179 → 0.0.181

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.
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAEvE,OAAO,yDAAyD,CAAC;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA6B,MAAM,0BAA0B,CAAC;AACtF,OAAO,wBAAwB,CAAC;AAChC,OAAO,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,6BAA6B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;AAC7H,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC;CAChC;AAED,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE9C;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,4BAaX;IAE0B,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACd,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,WAAW,CAAW;IACpC,OAAO,EAAE,MAAM,EAAE,CAAM;IACvB,aAAa,EAAE,YAAY,EAAE,CAAM;IACf,QAAQ,UAAS;IAChC,oBAAoB,CAAC,EAAE,CAAC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;IACd,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC;CAChC;AAED,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE9C;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,4BAaX;IAE0B,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACd,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,WAAW,CAAW;IACpC,OAAO,EAAE,MAAM,EAAE,CAAM;IACvB,aAAa,EAAE,YAAY,EAAE,CAAM;IACf,QAAQ,UAAS;IAChC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IAC3D,YAAY,SAAM;IACjB,QAAQ,UAAS;IAClB,GAAG,SAA2B;IAC9B,GAAG,SAAK;IACR,SAAS,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,UAAS;IACrB,WAAW,SAAkB;IAC7B,gBAAgB,SAAmB;IAClC,mBAAmB,UAAQ;IAC3B,SAAS,UAAQ;IACd,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrF,eAAe,EAAE,eAAe,CAA6B;IAChE,OAAO,UAAS;IAChB,WAAW,UAAS;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,UAAQ;IACpB,UAAU,SAAK;IAE3C,MAAM;CA+KP"}
@@ -11,9 +11,12 @@ export declare class AxebowNumericInput extends AxebowInputBase {
11
11
  * existing caller keeps the field's previous default sizing unchanged. */
12
12
  fixedWidth?: string;
13
13
  fixedHeight?: string;
14
- /** Adds a 22x38 +/- stepper flush against the field's right border,
15
- * wired to the same min/max/integerOnly rules as typed input. Off by
16
- * default - opt in per caller. */
14
+ /** 22x38 +/- stepper flush against the field's right border, wired to
15
+ * the same min/max/integerOnly rules as typed input. This is the
16
+ * app-wide standard look for every numeric/integer field (the native
17
+ * browser spinner is always suppressed in favor of it) - on by default,
18
+ * size varies per caller via fixedWidth/fixedHeight. Only turn it off
19
+ * for a specific instance that truly needs the bare field. */
17
20
  showStepper: boolean;
18
21
  stepAmount: number;
19
22
  updated(changed: PropertyValues): void;
@@ -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,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"}
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,4BAiFX;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;;;;;mEAK+D;IAClC,WAAW,UAAQ;IACpB,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
@@ -1520,7 +1520,7 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
1520
1520
  this.max = Number.MAX_SAFE_INTEGER;
1521
1521
  this.min = 0;
1522
1522
  this.integerOnly = false;
1523
- this.showStepper = false;
1523
+ this.showStepper = true;
1524
1524
  this.stepAmount = 1;
1525
1525
  }
1526
1526
  static {
@@ -1529,16 +1529,36 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
1529
1529
  display: block;
1530
1530
  width: 100%;
1531
1531
  }
1532
+ /* Always off, unconditionally - the +/- stepper is the app-wide
1533
+ replacement for the browser's native number spinner, so the native
1534
+ one should never show regardless of whether the stepper itself is
1535
+ opted out for a given instance. */
1536
+ sl-input::part(input)::-webkit-outer-spin-button,
1537
+ sl-input::part(input)::-webkit-inner-spin-button {
1538
+ -webkit-appearance: none;
1539
+ margin: 0;
1540
+ }
1541
+ sl-input::part(input) {
1542
+ -moz-appearance: textfield;
1543
+ }
1532
1544
  /* All three guarded by their own host class - absent unless the
1533
1545
  matching property is set - so none ever touch sl-input's own
1534
1546
  default sizing/padding for every existing caller that doesn't opt
1535
1547
  in. fixedWidth only constrains the field itself (not the host, so
1536
- the label above keeps its full width and doesn't wrap). */
1548
+ the label above keeps its full width and doesn't wrap).
1549
+ !important is needed on the sizing declarations - Shoelace sets its
1550
+ own height internally off --sl-input-height-medium (not just the
1551
+ exposed 'base' part), so both are overridden together to reliably
1552
+ win regardless of which one actually drives the rendered size. */
1537
1553
  :host(.axebow-fixed-width) sl-input {
1538
- width: var(--axebow-input-width);
1554
+ width: var(--axebow-input-width) !important;
1555
+ }
1556
+ :host(.axebow-fixed-height) sl-input {
1557
+ --sl-input-height-medium: var(--axebow-input-height);
1539
1558
  }
1540
1559
  :host(.axebow-fixed-height) sl-input::part(base) {
1541
- height: var(--axebow-input-height);
1560
+ height: var(--axebow-input-height) !important;
1561
+ box-sizing: border-box;
1542
1562
  }
1543
1563
  :host(.axebow-has-stepper) sl-input::part(base) {
1544
1564
  padding-right: 0;
@@ -1549,26 +1569,35 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
1549
1569
  padding: 0;
1550
1570
  }
1551
1571
 
1572
+ /* Only a left border (separating the stepper from the typed number)
1573
+ and a divider between the two buttons - the top/right/bottom edges
1574
+ coincide with sl-input's own border, so drawing our own there
1575
+ would just double it up. */
1552
1576
  .axebow-numeric-stepper {
1553
1577
  display: flex;
1554
1578
  flex-direction: column;
1555
- width: 1.375rem;
1556
- height: 2.375rem;
1579
+ width: 1.375rem !important;
1580
+ height: 2.375rem !important;
1581
+ border-left: 1px solid var(--axebow-gray);
1557
1582
  border-radius: 0 var(--sl-input-border-radius-medium, 0.25rem) var(--sl-input-border-radius-medium, 0.25rem) 0;
1558
1583
  overflow: hidden;
1559
1584
  }
1560
1585
  .axebow-numeric-stepper-btn {
1561
- flex: 1;
1586
+ flex: 1 1 0 !important;
1562
1587
  display: flex;
1563
1588
  align-items: center;
1564
1589
  justify-content: center;
1590
+ min-height: 0;
1565
1591
  min-width: 0;
1566
- border: 1px solid var(--axebow-gray);
1592
+ border: none;
1567
1593
  background: transparent;
1568
1594
  padding: 0;
1569
1595
  margin: 0;
1570
1596
  cursor: pointer;
1571
1597
  }
1598
+ .axebow-numeric-stepper-btn:first-child {
1599
+ border-bottom: 1px solid var(--axebow-gray);
1600
+ }
1572
1601
  .axebow-numeric-stepper-btn:disabled {
1573
1602
  cursor: not-allowed;
1574
1603
  opacity: 0.5;
@@ -2032,7 +2061,7 @@ var AxebowInput = class AxebowInput extends LitElement {
2032
2061
  this.addDialogLabels = DEFAULT_ADD_DIALOG_LABELS;
2033
2062
  this.compact = false;
2034
2063
  this.integerOnly = false;
2035
- this.showStepper = false;
2064
+ this.showStepper = true;
2036
2065
  this.stepAmount = 1;
2037
2066
  }
2038
2067
  static {