@kumori/aurora-wui-components 0.0.282 → 0.0.283

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.
@@ -15,6 +15,8 @@ export declare abstract class AxebowInputBase extends LitElement {
15
15
  compact: boolean;
16
16
  wrapDescription: boolean;
17
17
  descriptionLines: number;
18
+ hasMinWidth: boolean;
19
+ minWidth: string;
18
20
  protected handleChange(e: Event): void;
19
21
  protected renderWrapper(content: TemplateResult): TemplateResult;
20
22
  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,4BAqEf;IAE0B,KAAK,SAAM;IACX,IAAI,SAAU;IACd,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,YAAY,SAAM;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,UAAS;IAChB,eAAe,UAAS;IACzB,gBAAgB,SAAK;IAEjD,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK;IAO/B,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc;IAiDhE,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc;CAsCpE"}
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,4BAoEf;IAE0B,KAAK,SAAM;IACX,IAAI,SAAU;IACd,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IAChB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,YAAY,SAAM;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,UAAS;IAChB,eAAe,UAAS;IACzB,gBAAgB,SAAK;IACpB,WAAW,UAAQ;IACpB,QAAQ,SAAiB;IAErD,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK;IAO/B,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc;IAsDhE,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc;CAsDpE"}
@@ -46,6 +46,7 @@ export declare class AxebowInput extends LitElement {
46
46
  compact: boolean;
47
47
  fixedWidth?: string;
48
48
  fixedHeight?: string;
49
+ hasMinWidth: boolean;
49
50
  minWidth?: string;
50
51
  showStepper: boolean;
51
52
  stepAmount: number;
@@ -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,OA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O,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;IACzB,gBAAgB,SAAK;IAEjD,MAAM;CA4KP"}
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;AACrC,OAAO,0BAA0B,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AACxH,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,IAAI,SAAU;IACd,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;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,UAAQ;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,UAAQ;IACpB,UAAU,SAAK;IACd,UAAU,UAAS;IACnB,eAAe,UAAS;IACzB,gBAAgB,SAAK;IAEjD,MAAM;CA2LP"}
package/dist/index.js CHANGED
@@ -2153,6 +2153,8 @@ var AxebowInputBase = class extends LitElement {
2153
2153
  this.compact = false;
2154
2154
  this.wrapDescription = false;
2155
2155
  this.descriptionLines = 2;
2156
+ this.hasMinWidth = true;
2157
+ this.minWidth = "16.59375rem";
2156
2158
  }
2157
2159
  static {
2158
2160
  this.baseStyles = [
@@ -2196,7 +2198,6 @@ var AxebowInputBase = class extends LitElement {
2196
2198
  display: flex;
2197
2199
  flex-direction: column;
2198
2200
  width: 100%;
2199
- min-width: 16.59375rem;
2200
2201
  }
2201
2202
  .fixed-field .field-label {
2202
2203
  width: 100%;
@@ -2265,7 +2266,10 @@ var AxebowInputBase = class extends LitElement {
2265
2266
  style="margin-top: 0.75rem"
2266
2267
  >
2267
2268
  <span class="text-base shrink-0"
2268
- ><axebow-icon iconName="error" iconColor="var(--axebow-error)"></axebow-icon
2269
+ ><axebow-icon
2270
+ iconName="error"
2271
+ iconColor="var(--axebow-error)"
2272
+ ></axebow-icon
2269
2273
  ></span>
2270
2274
  ${this.errorMessage}
2271
2275
  </div>` : ""}
@@ -2274,10 +2278,19 @@ var AxebowInputBase = class extends LitElement {
2274
2278
  }
2275
2279
  renderFixedField(content) {
2276
2280
  return html`
2277
- <div class="fixed-field ${this.wrapDescription ? "wrap-description" : ""}">
2281
+ <div
2282
+ class="fixed-field ${this.wrapDescription ? "wrap-description" : ""}"
2283
+ style=${this.hasMinWidth && this.minWidth ? `min-width: ${this.minWidth}` : ""}
2284
+ >
2278
2285
  ${this.label ? html`<div class="flex items-baseline gap-px field-label">
2279
- ${this.required ? html`<p class="text-(--axebow-error) text-base leading-4.25 m-0">*</p>` : ""}
2280
- <h4 class="font-semibold text-base leading-4.25 m-0 overflow-hidden text-ellipsis">
2286
+ ${this.required ? html`<p
2287
+ class="text-(--axebow-error) text-base leading-4.25 m-0"
2288
+ >
2289
+ *
2290
+ </p>` : ""}
2291
+ <h4
2292
+ class="font-semibold text-base leading-4.25 m-0 overflow-hidden text-ellipsis"
2293
+ >
2281
2294
  ${this.label}
2282
2295
  </h4>
2283
2296
  </div>` : ""}
@@ -2293,9 +2306,14 @@ var AxebowInputBase = class extends LitElement {
2293
2306
  ${this.description}
2294
2307
  </p>` : ""}
2295
2308
  ${content}
2296
- ${this.hasError && this.errorMessage ? html`<div class="mt-1 min-h-5 text-(--axebow-error) text-sm flex items-center gap-1">
2309
+ ${this.hasError && this.errorMessage ? html`<div
2310
+ class="mt-1 min-h-5 text-(--axebow-error) text-sm flex items-center gap-1"
2311
+ >
2297
2312
  <span class="text-base shrink-0"
2298
- ><axebow-icon iconName="error" iconColor="var(--axebow-error)"></axebow-icon
2313
+ ><axebow-icon
2314
+ iconName="error"
2315
+ iconColor="var(--axebow-error)"
2316
+ ></axebow-icon
2299
2317
  ></span>
2300
2318
  ${this.errorMessage}
2301
2319
  </div>` : ""}
@@ -2317,6 +2335,8 @@ __decorate([property({ attribute: false })], AxebowInputBase.prototype, "callbac
2317
2335
  __decorate([property({ type: Boolean })], AxebowInputBase.prototype, "compact", void 0);
2318
2336
  __decorate([property({ type: Boolean })], AxebowInputBase.prototype, "wrapDescription", void 0);
2319
2337
  __decorate([property({ type: Number })], AxebowInputBase.prototype, "descriptionLines", void 0);
2338
+ __decorate([property({ type: Boolean })], AxebowInputBase.prototype, "hasMinWidth", void 0);
2339
+ __decorate([property({ type: Number })], AxebowInputBase.prototype, "minWidth", void 0);
2320
2340
  //#endregion
2321
2341
  //#region src/components/axebow-input/axebow-text-input.ts
2322
2342
  var AxebowTextInput = class AxebowTextInput extends AxebowInputBase {
@@ -3144,6 +3164,7 @@ var AxebowInput = class AxebowInput extends LitElement {
3144
3164
  this.clearable = true;
3145
3165
  this.addDialogLabels = DEFAULT_ADD_DIALOG_LABELS;
3146
3166
  this.compact = false;
3167
+ this.hasMinWidth = true;
3147
3168
  this.showStepper = true;
3148
3169
  this.stepAmount = 1;
3149
3170
  this.fixedField = false;
@@ -3179,6 +3200,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3179
3200
  .maxlength=${this.maxlength}
3180
3201
  .compact=${this.compact}
3181
3202
  .descriptionLines=${this.descriptionLines}
3203
+ .hasMinWidth=${this.hasMinWidth}
3204
+ .minWidth=${this.minWidth}
3182
3205
  ></axebow-text-input>
3183
3206
  `;
3184
3207
  case "numeric": return html`
@@ -3200,6 +3223,7 @@ var AxebowInput = class AxebowInput extends LitElement {
3200
3223
  .showStepper=${this.showStepper}
3201
3224
  .stepAmount=${this.stepAmount}
3202
3225
  .fixedField=${this.fixedField}
3226
+ .hasMinWidth=${this.hasMinWidth}
3203
3227
  .minWidth=${this.minWidth}
3204
3228
  .descriptionLines=${this.descriptionLines}
3205
3229
  ></axebow-numeric-input>
@@ -3224,6 +3248,7 @@ var AxebowInput = class AxebowInput extends LitElement {
3224
3248
  .showStepper=${this.showStepper}
3225
3249
  .stepAmount=${this.stepAmount}
3226
3250
  .fixedField=${this.fixedField}
3251
+ .hasMinWidth=${this.hasMinWidth}
3227
3252
  .minWidth=${this.minWidth}
3228
3253
  .descriptionLines=${this.descriptionLines}
3229
3254
  ></axebow-numeric-input>
@@ -3247,6 +3272,7 @@ var AxebowInput = class AxebowInput extends LitElement {
3247
3272
  .clearable=${this.clearable}
3248
3273
  .onAddNew=${this.onAddNew}
3249
3274
  .addDialogLabels=${this.addDialogLabels}
3275
+ .hasMinWidth=${this.hasMinWidth}
3250
3276
  .minWidth=${this.minWidth}
3251
3277
  .fixedHeight=${this.fixedHeight}
3252
3278
  .wrapDescription=${this.wrapDescription}
@@ -3265,6 +3291,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3265
3291
  .callback=${this.callback}
3266
3292
  .options=${this.options}
3267
3293
  .descriptionLines=${this.descriptionLines}
3294
+ .hasMinWidth=${this.hasMinWidth}
3295
+ .minWidth=${this.minWidth}
3268
3296
  ></axebow-checkbox-input>
3269
3297
  `;
3270
3298
  case "switch": return html`
@@ -3275,6 +3303,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3275
3303
  .disabled=${this.disabled}
3276
3304
  .callback=${this.callback}
3277
3305
  .descriptionLines=${this.descriptionLines}
3306
+ .hasMinWidth=${this.hasMinWidth}
3307
+ .minWidth=${this.minWidth}
3278
3308
  ></axebow-switch-input>
3279
3309
  `;
3280
3310
  case "carousel": return html`
@@ -3290,6 +3320,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3290
3320
  .carouselItems=${this.carouselItems}
3291
3321
  .carouselItemRenderer=${this.carouselItemRenderer}
3292
3322
  .descriptionLines=${this.descriptionLines}
3323
+ .hasMinWidth=${this.hasMinWidth}
3324
+ .minWidth=${this.minWidth}
3293
3325
  ></axebow-carousel-input>
3294
3326
  `;
3295
3327
  case "providers": return html`
@@ -3305,6 +3337,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3305
3337
  .carouselItems=${this.carouselItems}
3306
3338
  .carouselItemRenderer=${this.carouselItemRenderer}
3307
3339
  .descriptionLines=${this.descriptionLines}
3340
+ .hasMinWidth=${this.hasMinWidth}
3341
+ .minWidth=${this.minWidth}
3308
3342
  ></axebow-providers-input>
3309
3343
  `;
3310
3344
  default: return html`
@@ -3321,6 +3355,8 @@ var AxebowInput = class AxebowInput extends LitElement {
3321
3355
  .maxlength=${this.maxlength}
3322
3356
  .compact=${this.compact}
3323
3357
  .descriptionLines=${this.descriptionLines}
3358
+ .hasMinWidth=${this.hasMinWidth}
3359
+ .minWidth=${this.minWidth}
3324
3360
  ></axebow-text-input>
3325
3361
  `;
3326
3362
  }
@@ -3356,6 +3392,7 @@ __decorate([property({ attribute: false })], AxebowInput.prototype, "addDialogLa
3356
3392
  __decorate([property({ type: Boolean })], AxebowInput.prototype, "compact", void 0);
3357
3393
  __decorate([property({ type: String })], AxebowInput.prototype, "fixedWidth", void 0);
3358
3394
  __decorate([property({ type: String })], AxebowInput.prototype, "fixedHeight", void 0);
3395
+ __decorate([property({ type: Boolean })], AxebowInput.prototype, "hasMinWidth", void 0);
3359
3396
  __decorate([property({ type: String })], AxebowInput.prototype, "minWidth", void 0);
3360
3397
  __decorate([property({ type: Boolean })], AxebowInput.prototype, "showStepper", void 0);
3361
3398
  __decorate([property({ type: Number })], AxebowInput.prototype, "stepAmount", void 0);