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

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,4BAkDX;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";
@@ -931,6 +931,10 @@ var AxebowSearchBarFilters = class AxebowSearchBarFilters extends LitElement {
931
931
  axebow-button:hover axebow-icon {
932
932
  --icon-btn-color: var(--axebow-gray);
933
933
  }
934
+ sl-select {
935
+ --sl-color-primary-500: var(--axebow-tertiary);
936
+ --sl-color-primary-600: var(--axebow-tertiary);
937
+ }
934
938
  sl-select::part(combobox):hover {
935
939
  border-color: black;
936
940
  }
@@ -952,6 +956,7 @@ var AxebowSearchBarFilters = class AxebowSearchBarFilters extends LitElement {
952
956
  .filter-select::part(combobox) {
953
957
  height: 2.5rem !important;
954
958
  min-height: 2.5rem !important;
959
+ background-color: var(--axebow-white, white);
955
960
  }
956
961
  .filter-select[lockable][has-value]::part(expand-icon) {
957
962
  display: none !important;
@@ -1301,6 +1306,70 @@ __decorate([property({ type: Array })], AxebowQuickActions.prototype, "actions",
1301
1306
  __decorate([state()], AxebowQuickActions.prototype, "open", void 0);
1302
1307
  AxebowQuickActions = __decorate([customElement("axebow-quick-actions")], AxebowQuickActions);
1303
1308
  //#endregion
1309
+ //#region src/components/axebow-switch/axebow-switch.ts
1310
+ var AxebowSwitch = class AxebowSwitch extends LitElement {
1311
+ constructor(..._args) {
1312
+ super(..._args);
1313
+ this.checked = false;
1314
+ this.disabled = false;
1315
+ this.size = "medium";
1316
+ }
1317
+ static {
1318
+ this.styles = [unsafeCSS(tailwind_default), css`
1319
+ :host {
1320
+ display: inline-block;
1321
+ vertical-align: bottom;
1322
+ }
1323
+ sl-switch {
1324
+ vertical-align: bottom;
1325
+ }
1326
+ sl-switch::part(base) {
1327
+ display: flex !important;
1328
+ }
1329
+ sl-switch::part(control) {
1330
+ box-sizing: border-box !important;
1331
+ background-color: var(--axebow-white, #ffffff) !important;
1332
+ border: 1px solid var(--axebow-table-header-border) !important;
1333
+ border-radius: var(--height) !important;
1334
+ }
1335
+ sl-switch::part(thumb) {
1336
+ background-color: var(--axebow-gray) !important;
1337
+ border-color: var(--axebow-gray) !important;
1338
+ border-radius: 50% !important;
1339
+ }
1340
+ sl-switch[checked]::part(control) {
1341
+ background-color: var(--axebow-success) !important;
1342
+ border-color: var(--axebow-table-header-border) !important;
1343
+ }
1344
+ sl-switch[checked]::part(thumb) {
1345
+ background-color: var(--axebow-white, #ffffff) !important;
1346
+ border-color: var(--axebow-success) !important;
1347
+ }
1348
+ `];
1349
+ }
1350
+ render() {
1351
+ const customSizeStyle = this.width && this.height ? `--width: ${this.width}; --height: ${this.height};` : "";
1352
+ return html`
1353
+ <sl-switch
1354
+ size="${this.size}"
1355
+ ?checked=${this.checked}
1356
+ ?disabled=${this.disabled}
1357
+ style="--sl-color-primary-600: var(--axebow-success); --thumb-size: 0.875rem; ${customSizeStyle}"
1358
+ @sl-change=${(e) => this.onChange?.(e.target.checked)}
1359
+ >
1360
+ <slot></slot>
1361
+ </sl-switch>
1362
+ `;
1363
+ }
1364
+ };
1365
+ __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "checked", void 0);
1366
+ __decorate([property({ type: Boolean })], AxebowSwitch.prototype, "disabled", void 0);
1367
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "size", void 0);
1368
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "width", void 0);
1369
+ __decorate([property({ type: String })], AxebowSwitch.prototype, "height", void 0);
1370
+ __decorate([property({ attribute: false })], AxebowSwitch.prototype, "onChange", void 0);
1371
+ AxebowSwitch = __decorate([customElement("axebow-switch")], AxebowSwitch);
1372
+ //#endregion
1304
1373
  //#region src/components/axebow-header/parts/axebow-header-actions.ts
1305
1374
  var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1306
1375
  constructor(..._args) {
@@ -1339,8 +1408,8 @@ var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1339
1408
  }
1340
1409
  `];
1341
1410
  }
1342
- handleShowUnreadOnlyChange(e) {
1343
- this.showUnreadOnly = e.target.checked;
1411
+ handleShowUnreadOnlyChange(checked) {
1412
+ this.showUnreadOnly = checked;
1344
1413
  }
1345
1414
  render() {
1346
1415
  const unreadNotifications = this.notifications.filter((n) => n.status === "unread");
@@ -1379,7 +1448,10 @@ var AxebowHeaderActions = class AxebowHeaderActions extends LitElement {
1379
1448
  <div class="flex justify-between items-center flex-wrap gap-4">
1380
1449
  <div class="flex items-center py-1">
1381
1450
  <p class="mr-4 text-base">${this.showUnreadOnlyLabel}</p>
1382
- <sl-switch @sl-change=${(e) => this.handleShowUnreadOnlyChange(e)}></sl-switch>
1451
+ <axebow-switch
1452
+ .checked=${this.showUnreadOnly}
1453
+ .onChange=${(checked) => this.handleShowUnreadOnlyChange(checked)}
1454
+ ></axebow-switch>
1383
1455
  <p class="italic text-gray-400 text-base">
1384
1456
  ${this.showUnreadOnly ? this.onLabel : this.offLabel}
1385
1457
  </p>
@@ -5192,70 +5264,6 @@ __decorate([property({ type: String })], AxebowBanner.prototype, "textSize", voi
5192
5264
  __decorate([state()], AxebowBanner.prototype, "visible", void 0);
5193
5265
  AxebowBanner = __decorate([customElement("axebow-banner")], AxebowBanner);
5194
5266
  //#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
5267
  //#region src/components/axebow-runtime-zip-dialog/axebow-runtime-zip-dialog.ts
5260
5268
  var AxebowRuntimeZipDialog = class AxebowRuntimeZipDialog extends LitElement {
5261
5269
  constructor(..._args) {
@@ -10270,23 +10278,26 @@ var AxebowResourceLimitsPanel = class AxebowResourceLimitsPanel extends LitEleme
10270
10278
  }));
10271
10279
  }
10272
10280
  _renderField(field) {
10281
+ const input = html`
10282
+ <axebow-input
10283
+ controlType="numeric"
10284
+ .compact=${true}
10285
+ .label=${field.label}
10286
+ .required=${field.required}
10287
+ .value=${field.value?.toString() ?? ""}
10288
+ .max=${field.max}
10289
+ .min=${field.min ?? 0}
10290
+ .disabled=${field.disabled}
10291
+ ?hasError=${field.hasError}
10292
+ .errorMessage=${field.errorMessage ?? ""}
10293
+ .callback=${(e) => this._handleChange(field, e)}
10294
+ fixedWidth="6.1875rem"
10295
+ fixedHeight="2.5rem"
10296
+ ></axebow-input>
10297
+ `;
10273
10298
  return html`
10274
10299
  <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>
10300
+ ${field.disabled && field.disabledTooltip ? html`<axebow-tooltip content=${field.disabledTooltip} placement="top">${input}</axebow-tooltip>` : input}
10290
10301
  ${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
10302
  </div>
10292
10303
  `;