@kumori/aurora-wui-components 0.0.255-dev4067.5 → 0.0.255-dev4067.6
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-base.d.ts +1 -0
- package/dist/components/axebow-input/axebow-input-base.d.ts.map +1 -1
- 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/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare abstract class AxebowInputBase extends LitElement {
|
|
|
12
12
|
maxlength?: number;
|
|
13
13
|
callback?: (e: Event) => void;
|
|
14
14
|
compact: boolean;
|
|
15
|
+
wrapDescription: boolean;
|
|
15
16
|
protected handleChange(e: Event): void;
|
|
16
17
|
protected renderWrapper(content: TemplateResult): TemplateResult;
|
|
17
18
|
protected renderFixedField(content: TemplateResult): TemplateResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-input-base.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-input-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,+BAA+B,CAAC;AAEvC,8BAAsB,eAAgB,SAAQ,UAAU;IACtD,MAAM,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"axebow-input-base.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-input-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,+BAA+B,CAAC;AAEvC,8BAAsB,eAAgB,SAAQ,UAAU;IACtD,MAAM,CAAC,UAAU,4BAgEf;IAE0B,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACjB,QA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I,CAAC;IACrF,eAAe,EAAE,eAAe,CAA6B;IAChE,OAAO,UAAS;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,UAAQ;IACpB,UAAU,SAAK;IACd,UAAU,UAAS;IACnB,eAAe,UAAS;IAErD,MAAM;CAkKP"}
|
package/dist/index.js
CHANGED
|
@@ -1367,6 +1367,7 @@ var AxebowInputBase = class extends LitElement {
|
|
|
1367
1367
|
this.hasError = false;
|
|
1368
1368
|
this.errorMessage = "";
|
|
1369
1369
|
this.compact = false;
|
|
1370
|
+
this.wrapDescription = false;
|
|
1370
1371
|
}
|
|
1371
1372
|
static {
|
|
1372
1373
|
this.baseStyles = [
|
|
@@ -1425,6 +1426,13 @@ var AxebowInputBase = class extends LitElement {
|
|
|
1425
1426
|
.fixed-field .field-description {
|
|
1426
1427
|
margin-bottom: 0.5rem;
|
|
1427
1428
|
}
|
|
1429
|
+
.fixed-field.wrap-description .field-description {
|
|
1430
|
+
height: 2.125rem;
|
|
1431
|
+
white-space: normal;
|
|
1432
|
+
display: -webkit-box;
|
|
1433
|
+
-webkit-line-clamp: 2;
|
|
1434
|
+
-webkit-box-orient: vertical;
|
|
1435
|
+
}
|
|
1428
1436
|
`
|
|
1429
1437
|
];
|
|
1430
1438
|
}
|
|
@@ -1470,14 +1478,17 @@ var AxebowInputBase = class extends LitElement {
|
|
|
1470
1478
|
}
|
|
1471
1479
|
renderFixedField(content) {
|
|
1472
1480
|
return html`
|
|
1473
|
-
<div class="fixed-field">
|
|
1481
|
+
<div class="fixed-field ${this.wrapDescription ? "wrap-description" : ""}">
|
|
1474
1482
|
${this.label ? html`<div class="flex items-baseline gap-2 field-label">
|
|
1475
1483
|
${this.required ? html`<p class="text-(--axebow-error) text-base leading-4.25 m-0">*</p>` : ""}
|
|
1476
1484
|
<h4 class="font-semibold text-base leading-4.25 m-0 overflow-hidden text-ellipsis">
|
|
1477
1485
|
${this.label}
|
|
1478
1486
|
</h4>
|
|
1479
1487
|
</div>` : ""}
|
|
1480
|
-
${this.description ? html`<p
|
|
1488
|
+
${this.description ? html`<p
|
|
1489
|
+
class="field-description text-base leading-4.25 m-0"
|
|
1490
|
+
title="${this.wrapDescription ? "" : this.description}"
|
|
1491
|
+
>
|
|
1481
1492
|
${this.description}
|
|
1482
1493
|
</p>` : ""}
|
|
1483
1494
|
${content}
|
|
@@ -1502,6 +1513,7 @@ __decorate([property({ type: String })], AxebowInputBase.prototype, "errorMessag
|
|
|
1502
1513
|
__decorate([property({ type: Number })], AxebowInputBase.prototype, "maxlength", void 0);
|
|
1503
1514
|
__decorate([property({ attribute: false })], AxebowInputBase.prototype, "callback", void 0);
|
|
1504
1515
|
__decorate([property({ type: Boolean })], AxebowInputBase.prototype, "compact", void 0);
|
|
1516
|
+
__decorate([property({ type: Boolean })], AxebowInputBase.prototype, "wrapDescription", void 0);
|
|
1505
1517
|
//#endregion
|
|
1506
1518
|
//#region src/components/axebow-input/axebow-text-input.ts
|
|
1507
1519
|
var AxebowTextInput = class AxebowTextInput extends AxebowInputBase {
|
|
@@ -2158,6 +2170,7 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2158
2170
|
this.showStepper = true;
|
|
2159
2171
|
this.stepAmount = 1;
|
|
2160
2172
|
this.fixedField = false;
|
|
2173
|
+
this.wrapDescription = false;
|
|
2161
2174
|
}
|
|
2162
2175
|
static {
|
|
2163
2176
|
this.styles = [
|
|
@@ -2254,6 +2267,7 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2254
2267
|
.addDialogLabels=${this.addDialogLabels}
|
|
2255
2268
|
.minWidth=${this.minWidth}
|
|
2256
2269
|
.fixedHeight=${this.fixedHeight}
|
|
2270
|
+
.wrapDescription=${this.wrapDescription}
|
|
2257
2271
|
></axebow-select-input>
|
|
2258
2272
|
`;
|
|
2259
2273
|
case "checkbox": return html`
|
|
@@ -2357,6 +2371,7 @@ __decorate([property({ type: String })], AxebowInput.prototype, "minWidth", void
|
|
|
2357
2371
|
__decorate([property({ type: Boolean })], AxebowInput.prototype, "showStepper", void 0);
|
|
2358
2372
|
__decorate([property({ type: Number })], AxebowInput.prototype, "stepAmount", void 0);
|
|
2359
2373
|
__decorate([property({ type: Boolean })], AxebowInput.prototype, "fixedField", void 0);
|
|
2374
|
+
__decorate([property({ type: Boolean })], AxebowInput.prototype, "wrapDescription", void 0);
|
|
2360
2375
|
AxebowInput = __decorate([customElement("axebow-input")], AxebowInput);
|
|
2361
2376
|
//#endregion
|
|
2362
2377
|
//#region src/components/axebow-dialog/axebow-dialog.ts
|