@kumori/aurora-wui-components 0.0.276 → 0.0.277-dev4130.1

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-header-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-header/parts/axebow-header-actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,+DAA+D,CAAC;AACvE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,2DAA2D,CAAC;AACnE,OAAO,iEAAiE,CAAC;AACzE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,iEAAiE,CAAC;AAEzE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BAeX;IAE0B,QAAQ,SAAM;IACf,gBAAgB,EAAE,eAAe,EAAE,CAAM;IACxC,WAAW,SAAM;IACb,QAAQ,EAAE,MAAM,IAAI,CAAY;IACpC,kBAAkB,SAAM;IACzB,aAAa,EAAE,uBAAuB,EAAE,CAAM;IAC9C,yBAAyB,EAAE,uBAAuB,EAAE,CAAM;IACzD,uBAAuB,SAAM;IAC7B,oBAAoB,SAAM;IAC1B,oBAAoB,SAAM;IAC1B,0BAA0B,SAAM;IAChC,0BAA0B,SAAM;IAChC,mBAAmB,SAAM;IACzB,OAAO,SAAM;IACb,QAAQ,SAAM;IACd,kBAAkB,SAAM;IACpB,eAAe,EAAE,MAAM,IAAI,CAAY;IAE9D,OAAO,CAAC,cAAc,CAAS;IAExC,OAAO,CAAC,0BAA0B;IAIlC,MAAM;IAmHN,OAAO,CAAC,sBAAsB;CA0C/B"}
1
+ {"version":3,"file":"axebow-header-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/axebow-header/parts/axebow-header-actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+DAA+D,CAAC;AACvE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,iEAAiE,CAAC;AACzE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,iEAAiE,CAAC;AAEzE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BAeX;IAE0B,QAAQ,SAAM;IACf,gBAAgB,EAAE,eAAe,EAAE,CAAM;IACxC,WAAW,SAAM;IACb,QAAQ,EAAE,MAAM,IAAI,CAAY;IACpC,kBAAkB,SAAM;IACzB,aAAa,EAAE,uBAAuB,EAAE,CAAM;IAC9C,yBAAyB,EAAE,uBAAuB,EAAE,CAAM;IACzD,uBAAuB,SAAM;IAC7B,oBAAoB,SAAM;IAC1B,oBAAoB,SAAM;IAC1B,0BAA0B,SAAM;IAChC,0BAA0B,SAAM;IAChC,mBAAmB,SAAM;IACzB,OAAO,SAAM;IACb,QAAQ,SAAM;IACd,kBAAkB,SAAM;IACpB,eAAe,EAAE,MAAM,IAAI,CAAY;IAE9D,OAAO,CAAC,cAAc,CAAS;IAExC,OAAO,CAAC,0BAA0B;IAIlC,MAAM;IAsHN,OAAO,CAAC,sBAAsB;CA0C/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-resource-limits-panel.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-resource-limits/axebow-resource-limits-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAa,MAAM,KAAK,CAAC;AAIlD,OAAO,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,qBACa,yBAA0B,SAAQ,UAAU;IACvD,MAAM,CAAC,MAAM,4BAAyC;IAE1B,GAAG,EAAG,kBAAkB,CAAC;IACzB,MAAM,EAAG,kBAAkB,CAAC;IAC7B,aAAa,EAAE,kBAAkB,EAAE,CAAM;IAEpE,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,YAAY;IAuBpB,MAAM;CAYP"}
1
+ {"version":3,"file":"axebow-resource-limits-panel.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-resource-limits/axebow-resource-limits-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAa,MAAM,KAAK,CAAC;AAIlD,OAAO,iCAAiC,CAAC;AACzC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,qBACa,yBAA0B,SAAQ,UAAU;IACvD,MAAM,CAAC,MAAM,4BAAyC;IAE1B,GAAG,EAAG,kBAAkB,CAAC;IACzB,MAAM,EAAG,kBAAkB,CAAC;IAC7B,aAAa,EAAE,kBAAkB,EAAE,CAAM;IAEpE,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,YAAY;IA4BpB,MAAM;CAYP"}
@@ -7,6 +7,7 @@ export interface ResourceLimitField {
7
7
  min?: number;
8
8
  required?: boolean;
9
9
  disabled?: boolean;
10
+ disabledTooltip?: string;
10
11
  hasError?: boolean;
11
12
  errorMessage?: string;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-resource-limits.models.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-resource-limits/axebow-resource-limits.models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"axebow-resource-limits.models.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-resource-limits/axebow-resource-limits.models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-search-bar-filters.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-search-bar-filters/axebow-search-bar-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AAGnE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBACa,sBAAuB,SAAQ,UAAU;IAEpD,MAAM,EAAE,4BAA4B,CAOlC;IAEyB,WAAW,EAAE,4BAA4B,EAAE,CAAM;IACjD,eAAe,EAAE,4BAA4B,EAAE,CAAM;IACrD,WAAW,EAAE,4BAA4B,EAAE,CAAM;IACjD,WAAW,EAAE,4BAA4B,EAAE,CAAM;IAE/C,mBAAmB,UAAS;IAE7B,iBAAiB,SAAM;IACvB,iBAAiB,SAAM;IACvB,eAAe,SAAM;IACrB,mBAAmB,SAAM;IACzB,eAAe,SAAM;IACrB,aAAa,SAAM;IAE/C,OAAO,KAAK,oBAAoB,GAG/B;IAED,MAAM,CAAC,MAAM,4BA6CX;IAEF,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB,EAAE,GAAG;IAK9B,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,WAAW;IAInB,MAAM;CAiIP"}
1
+ {"version":3,"file":"axebow-search-bar-filters.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-search-bar-filters/axebow-search-bar-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AAGnE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBACa,sBAAuB,SAAQ,UAAU;IAEpD,MAAM,EAAE,4BAA4B,CAOlC;IAEyB,WAAW,EAAE,4BAA4B,EAAE,CAAM;IACjD,eAAe,EAAE,4BAA4B,EAAE,CAAM;IACrD,WAAW,EAAE,4BAA4B,EAAE,CAAM;IACjD,WAAW,EAAE,4BAA4B,EAAE,CAAM;IAE/C,mBAAmB,UAAS;IAE7B,iBAAiB,SAAM;IACvB,iBAAiB,SAAM;IACvB,eAAe,SAAM;IACrB,mBAAmB,SAAM;IACzB,eAAe,SAAM;IACrB,aAAa,SAAM;IAE/C,OAAO,KAAK,oBAAoB,GAG/B;IAED,MAAM,CAAC,MAAM,4BA8CX;IAEF,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB,EAAE,GAAG;IAK9B,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,WAAW;IAInB,MAAM;CAiIP"}
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ import "@shoelace-style/shoelace/dist/components/option/option.js";
5
5
  import { ifDefined } from "lit/directives/if-defined.js";
6
6
  import "@shoelace-style/shoelace/dist/components/button/button.js";
7
7
  import "@shoelace-style/shoelace/dist/components/input/input.js";
8
+ import "@shoelace-style/shoelace/dist/components/switch/switch.js";
8
9
  import "@shoelace-style/shoelace/dist/components/dropdown/dropdown.js";
9
10
  import "@shoelace-style/shoelace/dist/components/menu/menu.js";
10
- import "@shoelace-style/shoelace/dist/components/switch/switch.js";
11
11
  import "@shoelace-style/shoelace/dist/components/tab-group/tab-group.js";
12
12
  import "@shoelace-style/shoelace/dist/components/tab/tab.js";
13
13
  import "@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.js";
@@ -952,6 +952,7 @@ var AxebowSearchBarFilters = class AxebowSearchBarFilters extends LitElement {
952
952
  .filter-select::part(combobox) {
953
953
  height: 2.5rem !important;
954
954
  min-height: 2.5rem !important;
955
+ background-color: var(--axebow-white, white);
955
956
  }
956
957
  .filter-select[lockable][has-value]::part(expand-icon) {
957
958
  display: none !important;
@@ -1301,6 +1302,70 @@ __decorate([property({ type: Array })], AxebowQuickActions.prototype, "actions",
1301
1302
  __decorate([state()], AxebowQuickActions.prototype, "open", void 0);
1302
1303
  AxebowQuickActions = __decorate([customElement("axebow-quick-actions")], AxebowQuickActions);
1303
1304
  //#endregion
1305
+ //#region src/components/axebow-switch/axebow-switch.ts
1306
+ var AxebowSwitch = class AxebowSwitch extends LitElement {
1307
+ constructor(..._args) {
1308
+ super(..._args);
1309
+ this.checked = false;
1310
+ this.disabled = false;
1311
+ this.size = "medium";
1312
+ }
1313
+ static {
1314
+ this.styles = [unsafeCSS(tailwind_default), css`
1315
+ :host {
1316
+ display: inline-block;
1317
+ vertical-align: bottom;
1318
+ }
1319
+ sl-switch {
1320
+ vertical-align: bottom;
1321
+ }
1322
+ sl-switch::part(base) {
1323
+ display: flex !important;
1324
+ }
1325
+ sl-switch::part(control) {
1326
+ box-sizing: border-box !important;
1327
+ background-color: var(--axebow-white, #ffffff) !important;
1328
+ border: 1px solid var(--axebow-table-header-border) !important;
1329
+ border-radius: var(--height) !important;
1330
+ }
1331
+ sl-switch::part(thumb) {
1332
+ background-color: var(--axebow-gray) !important;
1333
+ border-color: var(--axebow-gray) !important;
1334
+ border-radius: 50% !important;
1335
+ }
1336
+ sl-switch[checked]::part(control) {
1337
+ background-color: var(--axebow-success) !important;
1338
+ border-color: var(--axebow-table-header-border) !important;
1339
+ }
1340
+ sl-switch[checked]::part(thumb) {
1341
+ background-color: var(--axebow-white, #ffffff) !important;
1342
+ border-color: var(--axebow-success) !important;
1343
+ }
1344
+ `];
1345
+ }
1346
+ render() {
1347
+ const customSizeStyle = this.width && this.height ? `--width: ${this.width}; --height: ${this.height};` : "";
1348
+ return html`
1349
+ <sl-switch
1350
+ size="${this.size}"
1351
+ ?checked=${this.checked}
1352
+ ?disabled=${this.disabled}
1353
+ style="--sl-color-primary-600: var(--axebow-success); --thumb-size: 0.875rem; ${customSizeStyle}"
1354
+ @sl-change=${(e) => this.onChange?.(e.target.checked)}
1355
+ >
1356
+ <slot></slot>
1357
+ </sl-switch>
1358
+ `;
1359
+ }
1360
+ };
1361
+ __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "checked", void 0);
1362
+ __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "disabled", void 0);
1363
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "size", void 0);
1364
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "width", void 0);
1365
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "height", void 0);
1366
+ __decorate([property({ attribute: false })], AxebowSwitch.prototype, "onChange", void 0);
1367
+ AxebowSwitch = __decorate([customElement("axebow-switch")], AxebowSwitch);
1368
+ //#endregion
1304
1369
  //#region src/components/axebow-header/parts/axebow-header-actions.ts
1305
1370
  var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1306
1371
  constructor(..._args) {
@@ -1339,8 +1404,8 @@ var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1339
1404
  }
1340
1405
  `];
1341
1406
  }
1342
- handleShowUnreadOnlyChange(e) {
1343
- this.showUnreadOnly = e.target.checked;
1407
+ handleShowUnreadOnlyChange(checked) {
1408
+ this.showUnreadOnly = checked;
1344
1409
  }
1345
1410
  render() {
1346
1411
  const unreadNotifications = this.notifications.filter((n) => n.status === "unread");
@@ -1379,7 +1444,10 @@ var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1379
1444
  <div class="flex justify-between items-center flex-wrap gap-4">
1380
1445
  <div class="flex items-center py-1">
1381
1446
  <p class="mr-4 text-base">${this.showUnreadOnlyLabel}</p>
1382
- <sl-switch @sl-change=${(e) => this.handleShowUnreadOnlyChange(e)}></sl-switch>
1447
+ <axebow-switch
1448
+ .checked=${this.showUnreadOnly}
1449
+ .onChange=${(checked) => this.handleShowUnreadOnlyChange(checked)}
1450
+ ></axebow-switch>
1383
1451
  <p class="italic text-gray-400 text-base">
1384
1452
  ${this.showUnreadOnly ? this.onLabel : this.offLabel}
1385
1453
  </p>
@@ -5192,70 +5260,6 @@ __decorate([property({ type: String })], AxebowBanner.prototype, "textSize", voi
5192
5260
  __decorate([state()], AxebowBanner.prototype, "visible", void 0);
5193
5261
  AxebowBanner = __decorate([customElement("axebow-banner")], AxebowBanner);
5194
5262
  //#endregion
5195
- //#region src/components/axebow-switch/axebow-switch.ts
5196
- var AxebowSwitch = class AxebowSwitch extends LitElement {
5197
- constructor(..._args) {
5198
- super(..._args);
5199
- this.checked = false;
5200
- this.disabled = false;
5201
- this.size = "medium";
5202
- }
5203
- static {
5204
- this.styles = [unsafeCSS(tailwind_default), css`
5205
- :host {
5206
- display: inline-block;
5207
- vertical-align: bottom;
5208
- }
5209
- sl-switch {
5210
- vertical-align: bottom;
5211
- }
5212
- sl-switch::part(base) {
5213
- display: flex !important;
5214
- }
5215
- sl-switch::part(control) {
5216
- box-sizing: border-box !important;
5217
- background-color: var(--axebow-white, #ffffff) !important;
5218
- border: 1px solid var(--axebow-table-header-border) !important;
5219
- border-radius: var(--height) !important;
5220
- }
5221
- sl-switch::part(thumb) {
5222
- background-color: var(--axebow-gray) !important;
5223
- border-color: var(--axebow-gray) !important;
5224
- border-radius: 50% !important;
5225
- }
5226
- sl-switch[checked]::part(control) {
5227
- background-color: var(--axebow-success) !important;
5228
- border-color: var(--axebow-table-header-border) !important;
5229
- }
5230
- sl-switch[checked]::part(thumb) {
5231
- background-color: var(--axebow-white, #ffffff) !important;
5232
- border-color: var(--axebow-success) !important;
5233
- }
5234
- `];
5235
- }
5236
- render() {
5237
- const customSizeStyle = this.width && this.height ? `--width: ${this.width}; --height: ${this.height};` : "";
5238
- return html`
5239
- <sl-switch
5240
- size="${this.size}"
5241
- ?checked=${this.checked}
5242
- ?disabled=${this.disabled}
5243
- style="--sl-color-primary-600: var(--axebow-success); --thumb-size: 0.875rem; ${customSizeStyle}"
5244
- @sl-change=${(e) => this.onChange?.(e.target.checked)}
5245
- >
5246
- <slot></slot>
5247
- </sl-switch>
5248
- `;
5249
- }
5250
- };
5251
- __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "checked", void 0);
5252
- __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "disabled", void 0);
5253
- __decorate([property({ type: String })], AxebowSwitch.prototype, "size", void 0);
5254
- __decorate([property({ type: String })], AxebowSwitch.prototype, "width", void 0);
5255
- __decorate([property({ type: String })], AxebowSwitch.prototype, "height", void 0);
5256
- __decorate([property({ attribute: false })], AxebowSwitch.prototype, "onChange", void 0);
5257
- AxebowSwitch = __decorate([customElement("axebow-switch")], AxebowSwitch);
5258
- //#endregion
5259
5263
  //#region src/components/axebow-runtime-zip-dialog/axebow-runtime-zip-dialog.ts
5260
5264
  var AxebowRuntimeZipDialog = class AxebowRuntimeZipDialog extends LitElement {
5261
5265
  constructor(..._args) {
@@ -10270,23 +10274,26 @@ var AxebowResourceLimitsPanel = class AxebowResourceLimitsPanel extends LitEleme
10270
10274
  }));
10271
10275
  }
10272
10276
  _renderField(field) {
10277
+ const input = html`
10278
+ <axebow-input
10279
+ controlType="numeric"
10280
+ .compact=${true}
10281
+ .label=${field.label}
10282
+ .required=${field.required}
10283
+ .value=${field.value?.toString() ?? ""}
10284
+ .max=${field.max}
10285
+ .min=${field.min ?? 0}
10286
+ .disabled=${field.disabled}
10287
+ ?hasError=${field.hasError}
10288
+ .errorMessage=${field.errorMessage ?? ""}
10289
+ .callback=${(e) => this._handleChange(field, e)}
10290
+ fixedWidth="6.1875rem"
10291
+ fixedHeight="2.5rem"
10292
+ ></axebow-input>
10293
+ `;
10273
10294
  return html`
10274
10295
  <div class="flex flex-col items-center w-28.25 shrink-0">
10275
- <axebow-input
10276
- controlType="numeric"
10277
- .compact=${true}
10278
- .label=${field.label}
10279
- .required=${field.required}
10280
- .value=${field.value?.toString() ?? ""}
10281
- .max=${field.max}
10282
- .min=${field.min ?? 0}
10283
- ?disabled=${field.disabled}
10284
- ?hasError=${field.hasError}
10285
- .errorMessage=${field.errorMessage ?? ""}
10286
- .callback=${(e) => this._handleChange(field, e)}
10287
- fixedWidth="6.1875rem"
10288
- fixedHeight="2.5rem"
10289
- ></axebow-input>
10296
+ ${field.disabled && field.disabledTooltip ? html`<axebow-tooltip content=${field.disabledTooltip} placement="top">${input}</axebow-tooltip>` : input}
10290
10297
  ${field.hasError && field.errorMessage ? html`<span class="text-sm text-(--axebow-error) text-center mt-1 leading-tight">${field.errorMessage}</span>` : html`<span class="text-sm text-(--axebow-gray, #6b7280) text-center mt-1">${field.unit}</span>`}
10291
10298
  </div>
10292
10299
  `;