@kumori/aurora-wui-components 0.0.229 → 0.0.230
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/components/axebow-input/axebow-input.d.ts +1 -0
- package/dist/components/axebow-input/axebow-input.d.ts.map +1 -1
- package/dist/components/axebow-input/axebow-numeric-input.d.ts +2 -10
- package/dist/components/axebow-input/axebow-numeric-input.d.ts.map +1 -1
- package/dist/index.js +26 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,CAAC;AAC7G,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,4BASX;IAE0B,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACd,Q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Q,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,UAAQ;IACpB,UAAU,SAAK;IACd,UAAU,UAAS;IAEhD,MAAM;CAsJP"}
|
|
@@ -5,20 +5,12 @@ export declare class AxebowNumericInput extends AxebowInputBase {
|
|
|
5
5
|
max: number;
|
|
6
6
|
min: number;
|
|
7
7
|
integerOnly: boolean;
|
|
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. */
|
|
12
8
|
fixedWidth?: string;
|
|
13
9
|
fixedHeight?: string;
|
|
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. */
|
|
20
10
|
showStepper: boolean;
|
|
21
11
|
stepAmount: number;
|
|
12
|
+
fixedField: boolean;
|
|
13
|
+
minWidth?: string;
|
|
22
14
|
updated(changed: PropertyValues): void;
|
|
23
15
|
protected handleChange(e: Event): void;
|
|
24
16
|
protected handleKeyDown(e: KeyboardEvent): 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,
|
|
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,4BAqEX;IAE0B,GAAG,SAA2B;IAC9B,GAAG,SAAK;IACP,WAAW,UAAS;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,UAAQ;IACpB,UAAU,SAAK;IACd,UAAU,UAAS;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE9C,OAAO,CAAC,OAAO,EAAE,cAAc;IAkC/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;CAqBP"}
|
package/dist/index.js
CHANGED
|
@@ -1521,6 +1521,7 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1521
1521
|
this.integerOnly = false;
|
|
1522
1522
|
this.showStepper = true;
|
|
1523
1523
|
this.stepAmount = 1;
|
|
1524
|
+
this.fixedField = false;
|
|
1524
1525
|
}
|
|
1525
1526
|
static {
|
|
1526
1527
|
this.styles = [...AxebowInputBase.baseStyles, css`
|
|
@@ -1528,10 +1529,6 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1528
1529
|
display: block;
|
|
1529
1530
|
width: 100%;
|
|
1530
1531
|
}
|
|
1531
|
-
/* Always off, unconditionally - the +/- stepper is the app-wide
|
|
1532
|
-
replacement for the browser's native number spinner, so the native
|
|
1533
|
-
one should never show regardless of whether the stepper itself is
|
|
1534
|
-
opted out for a given instance. */
|
|
1535
1532
|
sl-input::part(input)::-webkit-outer-spin-button,
|
|
1536
1533
|
sl-input::part(input)::-webkit-inner-spin-button {
|
|
1537
1534
|
-webkit-appearance: none;
|
|
@@ -1540,15 +1537,6 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1540
1537
|
sl-input::part(input) {
|
|
1541
1538
|
-moz-appearance: textfield;
|
|
1542
1539
|
}
|
|
1543
|
-
/* All three guarded by their own host class - absent unless the
|
|
1544
|
-
matching property is set - so none ever touch sl-input's own
|
|
1545
|
-
default sizing/padding for every existing caller that doesn't opt
|
|
1546
|
-
in. fixedWidth only constrains the field itself (not the host, so
|
|
1547
|
-
the label above keeps its full width and doesn't wrap).
|
|
1548
|
-
!important is needed on the sizing declarations - Shoelace sets its
|
|
1549
|
-
own height internally off --sl-input-height-medium (not just the
|
|
1550
|
-
exposed 'base' part), so both are overridden together to reliably
|
|
1551
|
-
win regardless of which one actually drives the rendered size. */
|
|
1552
1540
|
:host(.axebow-fixed-width) sl-input {
|
|
1553
1541
|
width: var(--axebow-input-width) !important;
|
|
1554
1542
|
}
|
|
@@ -1567,11 +1555,12 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1567
1555
|
margin: 0;
|
|
1568
1556
|
padding: 0;
|
|
1569
1557
|
}
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1558
|
+
.fixed-field sl-input::part(base) {
|
|
1559
|
+
height: 2.5rem;
|
|
1560
|
+
}
|
|
1561
|
+
:host(.axebow-fixed-min-width) .fixed-field {
|
|
1562
|
+
min-width: var(--axebow-input-min-width) !important;
|
|
1563
|
+
}
|
|
1575
1564
|
.axebow-numeric-stepper {
|
|
1576
1565
|
display: flex;
|
|
1577
1566
|
flex-direction: column;
|
|
@@ -1620,6 +1609,13 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1620
1609
|
this.classList.remove("axebow-fixed-height");
|
|
1621
1610
|
}
|
|
1622
1611
|
if (changed.has("showStepper")) this.classList.toggle("axebow-has-stepper", this.showStepper);
|
|
1612
|
+
if (changed.has("minWidth")) if (this.minWidth) {
|
|
1613
|
+
this.style.setProperty("--axebow-input-min-width", this.minWidth);
|
|
1614
|
+
this.classList.add("axebow-fixed-min-width");
|
|
1615
|
+
} else {
|
|
1616
|
+
this.style.removeProperty("--axebow-input-min-width");
|
|
1617
|
+
this.classList.remove("axebow-fixed-min-width");
|
|
1618
|
+
}
|
|
1623
1619
|
}
|
|
1624
1620
|
handleChange(e) {
|
|
1625
1621
|
if (this.disabled) return;
|
|
@@ -1677,9 +1673,8 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1677
1673
|
`;
|
|
1678
1674
|
}
|
|
1679
1675
|
render() {
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1682
|
-
<div class="${containerClass}">
|
|
1676
|
+
const content = html`
|
|
1677
|
+
<div class="${this.hasError ? "input-error" : ""}">
|
|
1683
1678
|
<sl-input
|
|
1684
1679
|
type="number"
|
|
1685
1680
|
placeholder="${this.placeholder}"
|
|
@@ -1694,7 +1689,8 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1694
1689
|
${this._renderStepper()}
|
|
1695
1690
|
</sl-input>
|
|
1696
1691
|
</div>
|
|
1697
|
-
|
|
1692
|
+
`;
|
|
1693
|
+
return this.fixedField ? this.renderFixedField(content) : this.renderWrapper(content);
|
|
1698
1694
|
}
|
|
1699
1695
|
};
|
|
1700
1696
|
__decorate([property({ type: Number })], AxebowNumericInput.prototype, "max", void 0);
|
|
@@ -1704,6 +1700,8 @@ __decorate([property({ type: String })], AxebowNumericInput.prototype, "fixedWid
|
|
|
1704
1700
|
__decorate([property({ type: String })], AxebowNumericInput.prototype, "fixedHeight", void 0);
|
|
1705
1701
|
__decorate([property({ type: Boolean })], AxebowNumericInput.prototype, "showStepper", void 0);
|
|
1706
1702
|
__decorate([property({ type: Number })], AxebowNumericInput.prototype, "stepAmount", void 0);
|
|
1703
|
+
__decorate([property({ type: Boolean })], AxebowNumericInput.prototype, "fixedField", void 0);
|
|
1704
|
+
__decorate([property({ type: String })], AxebowNumericInput.prototype, "minWidth", void 0);
|
|
1707
1705
|
AxebowNumericInput = __decorate([customElement("axebow-numeric-input")], AxebowNumericInput);
|
|
1708
1706
|
//#endregion
|
|
1709
1707
|
//#region src/components/axebow-input/axebow-checkbox-input.ts
|
|
@@ -2075,6 +2073,7 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2075
2073
|
this.compact = false;
|
|
2076
2074
|
this.showStepper = true;
|
|
2077
2075
|
this.stepAmount = 1;
|
|
2076
|
+
this.fixedField = false;
|
|
2078
2077
|
}
|
|
2079
2078
|
static {
|
|
2080
2079
|
this.styles = [
|
|
@@ -2123,6 +2122,8 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2123
2122
|
.fixedHeight=${this.fixedHeight}
|
|
2124
2123
|
.showStepper=${this.showStepper}
|
|
2125
2124
|
.stepAmount=${this.stepAmount}
|
|
2125
|
+
.fixedField=${this.fixedField}
|
|
2126
|
+
.minWidth=${this.minWidth}
|
|
2126
2127
|
></axebow-numeric-input>
|
|
2127
2128
|
`;
|
|
2128
2129
|
case "integer": return html`
|
|
@@ -2144,6 +2145,8 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2144
2145
|
.fixedHeight=${this.fixedHeight}
|
|
2145
2146
|
.showStepper=${this.showStepper}
|
|
2146
2147
|
.stepAmount=${this.stepAmount}
|
|
2148
|
+
.fixedField=${this.fixedField}
|
|
2149
|
+
.minWidth=${this.minWidth}
|
|
2147
2150
|
></axebow-numeric-input>
|
|
2148
2151
|
`;
|
|
2149
2152
|
case "select": return html`
|
|
@@ -2259,6 +2262,7 @@ __decorate([property({ type: String })], AxebowInput.prototype, "fixedHeight", v
|
|
|
2259
2262
|
__decorate([property({ type: String })], AxebowInput.prototype, "minWidth", void 0);
|
|
2260
2263
|
__decorate([property({ type: Boolean })], AxebowInput.prototype, "showStepper", void 0);
|
|
2261
2264
|
__decorate([property({ type: Number })], AxebowInput.prototype, "stepAmount", void 0);
|
|
2265
|
+
__decorate([property({ type: Boolean })], AxebowInput.prototype, "fixedField", void 0);
|
|
2262
2266
|
AxebowInput = __decorate([customElement("axebow-input")], AxebowInput);
|
|
2263
2267
|
//#endregion
|
|
2264
2268
|
//#region src/components/axebow-dialog/axebow-dialog.ts
|