@kodaris/krubble-components 1.0.62 → 1.0.64

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.
@@ -95,7 +95,7 @@
95
95
  * SPDX-License-Identifier: BSD-3-Clause
96
96
  */function e$3(e,r){return (n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;return e$4(n,s,{get(){return o(this)}})}}
97
97
 
98
- var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
98
+ var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
99
99
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
100
100
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
101
101
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -202,13 +202,13 @@
202
202
  padding: 16px 16px 8px 16px;
203
203
  }
204
204
  `;
205
- __decorate$m([
205
+ __decorate$n([
206
206
  n$1({ type: String })
207
207
  ], exports.KRAccordion.prototype, "header", void 0);
208
- __decorate$m([
208
+ __decorate$n([
209
209
  n$1({ type: Boolean, reflect: true })
210
210
  ], exports.KRAccordion.prototype, "expanded", void 0);
211
- exports.KRAccordion = __decorate$m([
211
+ exports.KRAccordion = __decorate$n([
212
212
  t$1('kr-accordion')
213
213
  ], exports.KRAccordion);
214
214
 
@@ -225,7 +225,7 @@
225
225
  * SPDX-License-Identifier: BSD-3-Clause
226
226
  */const e$1=e$2(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return E}});
227
227
 
228
- var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
228
+ var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
229
229
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
230
230
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
231
231
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -423,23 +423,23 @@
423
423
  outline-offset: 2px;
424
424
  }
425
425
  `;
426
- __decorate$l([
426
+ __decorate$m([
427
427
  n$1({ type: String })
428
428
  ], exports.KRAlert.prototype, "type", void 0);
429
- __decorate$l([
429
+ __decorate$m([
430
430
  n$1({ type: String })
431
431
  ], exports.KRAlert.prototype, "title", void 0);
432
- __decorate$l([
432
+ __decorate$m([
433
433
  n$1({ type: Boolean })
434
434
  ], exports.KRAlert.prototype, "dismissible", void 0);
435
- __decorate$l([
435
+ __decorate$m([
436
436
  n$1({ type: Boolean })
437
437
  ], exports.KRAlert.prototype, "visible", void 0);
438
- exports.KRAlert = __decorate$l([
438
+ exports.KRAlert = __decorate$m([
439
439
  t$1('kr-alert')
440
440
  ], exports.KRAlert);
441
441
 
442
- var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
442
+ var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
443
443
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
444
444
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
445
445
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -938,40 +938,40 @@
938
938
  height: 22px;
939
939
  }
940
940
  `;
941
- __decorate$k([
941
+ __decorate$l([
942
942
  n$1({ type: String, reflect: true })
943
943
  ], exports.KRButton.prototype, "variant", void 0);
944
- __decorate$k([
944
+ __decorate$l([
945
945
  n$1({ type: String, reflect: true })
946
946
  ], exports.KRButton.prototype, "color", void 0);
947
- __decorate$k([
947
+ __decorate$l([
948
948
  n$1({ type: String, reflect: true })
949
949
  ], exports.KRButton.prototype, "size", void 0);
950
- __decorate$k([
950
+ __decorate$l([
951
951
  n$1({ type: Boolean, reflect: true })
952
952
  ], exports.KRButton.prototype, "disabled", void 0);
953
- __decorate$k([
953
+ __decorate$l([
954
954
  n$1({ type: String })
955
955
  ], exports.KRButton.prototype, "href", void 0);
956
- __decorate$k([
956
+ __decorate$l([
957
957
  n$1({ type: String })
958
958
  ], exports.KRButton.prototype, "target", void 0);
959
- __decorate$k([
959
+ __decorate$l([
960
960
  n$1({ type: Array })
961
961
  ], exports.KRButton.prototype, "options", void 0);
962
- __decorate$k([
962
+ __decorate$l([
963
963
  n$1({ type: String, reflect: true, attribute: 'icon-position' })
964
964
  ], exports.KRButton.prototype, "iconPosition", void 0);
965
- __decorate$k([
965
+ __decorate$l([
966
966
  r$1()
967
967
  ], exports.KRButton.prototype, "_state", void 0);
968
- __decorate$k([
968
+ __decorate$l([
969
969
  r$1()
970
970
  ], exports.KRButton.prototype, "_stateText", void 0);
971
- __decorate$k([
971
+ __decorate$l([
972
972
  r$1()
973
973
  ], exports.KRButton.prototype, "_dropdownOpened", void 0);
974
- exports.KRButton = __decorate$k([
974
+ exports.KRButton = __decorate$l([
975
975
  t$1('kr-button')
976
976
  ], exports.KRButton);
977
977
 
@@ -981,7 +981,7 @@
981
981
  * SPDX-License-Identifier: BSD-3-Clause
982
982
  */class e extends i$1{constructor(i){if(super(i),this.it=A,i.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A||null==r)return this._t=void 0,this.it=r;if(r===E)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o$2=e$2(e);
983
983
 
984
- var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
984
+ var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
985
985
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
986
986
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
987
987
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1215,26 +1215,26 @@
1215
1215
  .hljs-property { color: #005cc5; }
1216
1216
 
1217
1217
  `];
1218
- __decorate$j([
1218
+ __decorate$k([
1219
1219
  n$1({ type: String })
1220
1220
  ], exports.KRCodeDemo.prototype, "language", void 0);
1221
- __decorate$j([
1221
+ __decorate$k([
1222
1222
  r$1()
1223
1223
  ], exports.KRCodeDemo.prototype, "code", void 0);
1224
- __decorate$j([
1224
+ __decorate$k([
1225
1225
  r$1()
1226
1226
  ], exports.KRCodeDemo.prototype, "activeTab", void 0);
1227
- __decorate$j([
1227
+ __decorate$k([
1228
1228
  r$1()
1229
1229
  ], exports.KRCodeDemo.prototype, "copied", void 0);
1230
- __decorate$j([
1230
+ __decorate$k([
1231
1231
  r$1()
1232
1232
  ], exports.KRCodeDemo.prototype, "highlightedCode", void 0);
1233
- exports.KRCodeDemo = __decorate$j([
1233
+ exports.KRCodeDemo = __decorate$k([
1234
1234
  t$1('kr-code-demo')
1235
1235
  ], exports.KRCodeDemo);
1236
1236
 
1237
- var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1237
+ var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1238
1238
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1239
1239
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1240
1240
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1403,10 +1403,10 @@
1403
1403
  margin: 4px 0;
1404
1404
  }
1405
1405
  `;
1406
- __decorate$i([
1406
+ __decorate$j([
1407
1407
  r$1()
1408
1408
  ], exports.KRContextMenu.prototype, "items", void 0);
1409
- exports.KRContextMenu = __decorate$i([
1409
+ exports.KRContextMenu = __decorate$j([
1410
1410
  t$1('kr-context-menu')
1411
1411
  ], exports.KRContextMenu);
1412
1412
 
@@ -1416,7 +1416,7 @@
1416
1416
  * SPDX-License-Identifier: BSD-3-Clause
1417
1417
  */const n="important",i=" !"+n,o$1=e$2(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"style"!==t$1.name||t$1.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e;}}return E}});
1418
1418
 
1419
- var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1419
+ var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1420
1420
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1421
1421
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1422
1422
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1443,7 +1443,7 @@
1443
1443
  font-weight: 600;
1444
1444
  }
1445
1445
  `;
1446
- KRDialogHeader = __decorate$h([
1446
+ KRDialogHeader = __decorate$i([
1447
1447
  t$1('kr-dialog-header')
1448
1448
  ], KRDialogHeader);
1449
1449
  let KRDialogContent = class KRDialogContent extends i$2 {
@@ -1459,7 +1459,7 @@
1459
1459
  flex: 1 1 auto;
1460
1460
  }
1461
1461
  `;
1462
- KRDialogContent = __decorate$h([
1462
+ KRDialogContent = __decorate$i([
1463
1463
  t$1('kr-dialog-content')
1464
1464
  ], KRDialogContent);
1465
1465
  let KRDialogFooter = class KRDialogFooter extends i$2 {
@@ -1479,7 +1479,7 @@
1479
1479
  justify-content: flex-end;
1480
1480
  }
1481
1481
  `;
1482
- KRDialogFooter = __decorate$h([
1482
+ KRDialogFooter = __decorate$i([
1483
1483
  t$1('kr-dialog-footer')
1484
1484
  ], KRDialogFooter);
1485
1485
  /**
@@ -1687,23 +1687,23 @@
1687
1687
  font-weight: 600;
1688
1688
  }
1689
1689
  `;
1690
- __decorate$h([
1690
+ __decorate$i([
1691
1691
  r$1()
1692
1692
  ], exports.KRDialog.prototype, "_contentElement", void 0);
1693
- __decorate$h([
1693
+ __decorate$i([
1694
1694
  n$1({ type: Boolean, reflect: true })
1695
1695
  ], exports.KRDialog.prototype, "opened", void 0);
1696
- __decorate$h([
1696
+ __decorate$i([
1697
1697
  n$1({ type: String })
1698
1698
  ], exports.KRDialog.prototype, "label", void 0);
1699
- __decorate$h([
1699
+ __decorate$i([
1700
1700
  n$1({ type: String })
1701
1701
  ], exports.KRDialog.prototype, "width", void 0);
1702
- exports.KRDialog = __decorate$h([
1702
+ exports.KRDialog = __decorate$i([
1703
1703
  t$1('kr-dialog')
1704
1704
  ], exports.KRDialog);
1705
1705
 
1706
- var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1706
+ var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1707
1707
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1708
1708
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1709
1709
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2223,47 +2223,47 @@
2223
2223
  border-top: 1px solid #e5e7eb;
2224
2224
  }
2225
2225
  `;
2226
- __decorate$g([
2226
+ __decorate$h([
2227
2227
  n$1({ type: Object })
2228
2228
  ], exports.KRDateRangePicker.prototype, "value", void 0);
2229
- __decorate$g([
2229
+ __decorate$h([
2230
2230
  n$1({ type: Array })
2231
2231
  ], exports.KRDateRangePicker.prototype, "relativeOptions", void 0);
2232
- __decorate$g([
2232
+ __decorate$h([
2233
2233
  n$1({ type: Boolean })
2234
2234
  ], exports.KRDateRangePicker.prototype, "disabled", void 0);
2235
- __decorate$g([
2235
+ __decorate$h([
2236
2236
  n$1({ type: Boolean })
2237
2237
  ], exports.KRDateRangePicker.prototype, "invalid", void 0);
2238
- __decorate$g([
2238
+ __decorate$h([
2239
2239
  n$1({ type: String })
2240
2240
  ], exports.KRDateRangePicker.prototype, "placeholder", void 0);
2241
- __decorate$g([
2241
+ __decorate$h([
2242
2242
  n$1({ type: String })
2243
2243
  ], exports.KRDateRangePicker.prototype, "startDate", void 0);
2244
- __decorate$g([
2244
+ __decorate$h([
2245
2245
  n$1({ type: String })
2246
2246
  ], exports.KRDateRangePicker.prototype, "endDate", void 0);
2247
- __decorate$g([
2247
+ __decorate$h([
2248
2248
  n$1({ type: String })
2249
2249
  ], exports.KRDateRangePicker.prototype, "mode", void 0);
2250
- __decorate$g([
2250
+ __decorate$h([
2251
2251
  r$1()
2252
2252
  ], exports.KRDateRangePicker.prototype, "_isOpen", void 0);
2253
- __decorate$g([
2253
+ __decorate$h([
2254
2254
  r$1()
2255
2255
  ], exports.KRDateRangePicker.prototype, "_activeTab", void 0);
2256
- __decorate$g([
2256
+ __decorate$h([
2257
2257
  r$1()
2258
2258
  ], exports.KRDateRangePicker.prototype, "_tempStartDate", void 0);
2259
- __decorate$g([
2259
+ __decorate$h([
2260
2260
  r$1()
2261
2261
  ], exports.KRDateRangePicker.prototype, "_tempEndDate", void 0);
2262
- exports.KRDateRangePicker = __decorate$g([
2262
+ exports.KRDateRangePicker = __decorate$h([
2263
2263
  t$1('kr-date-range-picker')
2264
2264
  ], exports.KRDateRangePicker);
2265
2265
 
2266
- var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2266
+ var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2267
2267
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2268
2268
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2269
2269
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2565,23 +2565,23 @@
2565
2565
  `;
2566
2566
  /** Track active snackbars for stacking */
2567
2567
  exports.KRSnackbar.activeSnackbars = [];
2568
- __decorate$f([
2568
+ __decorate$g([
2569
2569
  n$1({ type: String })
2570
2570
  ], exports.KRSnackbar.prototype, "type", void 0);
2571
- __decorate$f([
2571
+ __decorate$g([
2572
2572
  n$1({ type: String })
2573
2573
  ], exports.KRSnackbar.prototype, "title", void 0);
2574
- __decorate$f([
2574
+ __decorate$g([
2575
2575
  n$1({ type: String })
2576
2576
  ], exports.KRSnackbar.prototype, "message", void 0);
2577
- __decorate$f([
2577
+ __decorate$g([
2578
2578
  n$1({ type: Number })
2579
2579
  ], exports.KRSnackbar.prototype, "duration", void 0);
2580
- exports.KRSnackbar = KRSnackbar_1 = __decorate$f([
2580
+ exports.KRSnackbar = KRSnackbar_1 = __decorate$g([
2581
2581
  t$1('kr-snackbar')
2582
2582
  ], exports.KRSnackbar);
2583
2583
 
2584
- var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2584
+ var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2585
2585
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2586
2586
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2587
2587
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2884,20 +2884,20 @@
2884
2884
  }
2885
2885
  `,
2886
2886
  ];
2887
- __decorate$e([
2887
+ __decorate$f([
2888
2888
  n$1({ type: String, attribute: 'active-tab-id' })
2889
2889
  ], exports.KRTabGroup.prototype, "activeTabId", void 0);
2890
- __decorate$e([
2890
+ __decorate$f([
2891
2891
  n$1({ type: Boolean })
2892
2892
  ], exports.KRTabGroup.prototype, "justified", void 0);
2893
- __decorate$e([
2893
+ __decorate$f([
2894
2894
  n$1({ type: String, reflect: true })
2895
2895
  ], exports.KRTabGroup.prototype, "size", void 0);
2896
- exports.KRTabGroup = __decorate$e([
2896
+ exports.KRTabGroup = __decorate$f([
2897
2897
  t$1('kr-tab-group')
2898
2898
  ], exports.KRTabGroup);
2899
2899
 
2900
- var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2900
+ var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2901
2901
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2902
2902
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2903
2903
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2978,35 +2978,35 @@
2978
2978
  }
2979
2979
  `,
2980
2980
  ];
2981
- __decorate$d([
2981
+ __decorate$e([
2982
2982
  n$1({ type: String, reflect: true })
2983
2983
  ], exports.KRTab.prototype, "id", void 0);
2984
- __decorate$d([
2984
+ __decorate$e([
2985
2985
  n$1({ type: String })
2986
2986
  ], exports.KRTab.prototype, "label", void 0);
2987
- __decorate$d([
2987
+ __decorate$e([
2988
2988
  n$1({ type: String })
2989
2989
  ], exports.KRTab.prototype, "badge", void 0);
2990
- __decorate$d([
2990
+ __decorate$e([
2991
2991
  n$1({ type: String, attribute: 'badge-background' })
2992
2992
  ], exports.KRTab.prototype, "badgeBackground", void 0);
2993
- __decorate$d([
2993
+ __decorate$e([
2994
2994
  n$1({ type: String, attribute: 'badge-color' })
2995
2995
  ], exports.KRTab.prototype, "badgeColor", void 0);
2996
- __decorate$d([
2996
+ __decorate$e([
2997
2997
  n$1({ type: Boolean })
2998
2998
  ], exports.KRTab.prototype, "disabled", void 0);
2999
- __decorate$d([
2999
+ __decorate$e([
3000
3000
  n$1({ type: Boolean })
3001
3001
  ], exports.KRTab.prototype, "dismissible", void 0);
3002
- __decorate$d([
3002
+ __decorate$e([
3003
3003
  n$1({ type: Boolean, reflect: true })
3004
3004
  ], exports.KRTab.prototype, "active", void 0);
3005
- exports.KRTab = __decorate$d([
3005
+ exports.KRTab = __decorate$e([
3006
3006
  t$1('kr-tab')
3007
3007
  ], exports.KRTab);
3008
3008
 
3009
- var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3009
+ var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3010
3010
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3011
3011
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3012
3012
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -3478,47 +3478,47 @@
3478
3478
  `];
3479
3479
  // Enable form association
3480
3480
  exports.KRSelectField.formAssociated = true;
3481
- __decorate$c([
3481
+ __decorate$d([
3482
3482
  n$1({ type: String })
3483
3483
  ], exports.KRSelectField.prototype, "label", void 0);
3484
- __decorate$c([
3484
+ __decorate$d([
3485
3485
  n$1({ type: String })
3486
3486
  ], exports.KRSelectField.prototype, "name", void 0);
3487
- __decorate$c([
3487
+ __decorate$d([
3488
3488
  n$1({ type: String })
3489
3489
  ], exports.KRSelectField.prototype, "value", void 0);
3490
- __decorate$c([
3490
+ __decorate$d([
3491
3491
  n$1({ type: String })
3492
3492
  ], exports.KRSelectField.prototype, "placeholder", void 0);
3493
- __decorate$c([
3493
+ __decorate$d([
3494
3494
  n$1({ type: Boolean })
3495
3495
  ], exports.KRSelectField.prototype, "disabled", void 0);
3496
- __decorate$c([
3496
+ __decorate$d([
3497
3497
  n$1({ type: Boolean })
3498
3498
  ], exports.KRSelectField.prototype, "required", void 0);
3499
- __decorate$c([
3499
+ __decorate$d([
3500
3500
  n$1({ type: Boolean })
3501
3501
  ], exports.KRSelectField.prototype, "readonly", void 0);
3502
- __decorate$c([
3502
+ __decorate$d([
3503
3503
  n$1({ type: String })
3504
3504
  ], exports.KRSelectField.prototype, "hint", void 0);
3505
- __decorate$c([
3505
+ __decorate$d([
3506
3506
  r$1()
3507
3507
  ], exports.KRSelectField.prototype, "_isOpen", void 0);
3508
- __decorate$c([
3508
+ __decorate$d([
3509
3509
  r$1()
3510
3510
  ], exports.KRSelectField.prototype, "_highlightedIndex", void 0);
3511
- __decorate$c([
3511
+ __decorate$d([
3512
3512
  r$1()
3513
3513
  ], exports.KRSelectField.prototype, "_touched", void 0);
3514
- __decorate$c([
3514
+ __decorate$d([
3515
3515
  e$3('.select-trigger')
3516
3516
  ], exports.KRSelectField.prototype, "_triggerElement", void 0);
3517
- exports.KRSelectField = __decorate$c([
3517
+ exports.KRSelectField = __decorate$d([
3518
3518
  t$1('kr-select-field')
3519
3519
  ], exports.KRSelectField);
3520
3520
 
3521
- var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3521
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3522
3522
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3523
3523
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3524
3524
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -3555,13 +3555,13 @@
3555
3555
  display: none;
3556
3556
  }
3557
3557
  `;
3558
- __decorate$b([
3558
+ __decorate$c([
3559
3559
  n$1({ type: String })
3560
3560
  ], exports.KRSelectOption.prototype, "value", void 0);
3561
- __decorate$b([
3561
+ __decorate$c([
3562
3562
  n$1({ type: Boolean })
3563
3563
  ], exports.KRSelectOption.prototype, "disabled", void 0);
3564
- exports.KRSelectOption = __decorate$b([
3564
+ exports.KRSelectOption = __decorate$c([
3565
3565
  t$1('kr-select-option')
3566
3566
  ], exports.KRSelectOption);
3567
3567
 
@@ -4609,7 +4609,7 @@
4609
4609
  }
4610
4610
  }
4611
4611
 
4612
- var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4612
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4613
4613
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4614
4614
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4615
4615
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4619,6 +4619,7 @@
4619
4619
  class KRTableModel {
4620
4620
  constructor() {
4621
4621
  this.title = '';
4622
+ this.description = '';
4622
4623
  this.actions = [];
4623
4624
  this.columns = [];
4624
4625
  this.displayedColumns = [];
@@ -4661,6 +4662,13 @@
4661
4662
  this._columnWidthsLocked = false;
4662
4663
  this._model = new KRTableModel();
4663
4664
  this.def = { columns: [] };
4665
+ /**
4666
+ * Table layout variant.
4667
+ * - 'default': Full-page table that fills parent height with centered search.
4668
+ * - 'card': Embedded table that sizes itself to content, left-aligns search, and
4669
+ * reserves space for pageSize rows to prevent layout shift.
4670
+ */
4671
+ this.variant = 'default';
4664
4672
  this._handleClickOutside = (e) => {
4665
4673
  const path = e.composedPath();
4666
4674
  if (this._columnPickerOpen) {
@@ -4719,6 +4727,9 @@
4719
4727
  if (this.def.title) {
4720
4728
  this._model.title = this.def.title;
4721
4729
  }
4730
+ if (this.def.description) {
4731
+ this._model.description = this.def.description;
4732
+ }
4722
4733
  if (this.def.actions) {
4723
4734
  this._model.actions = this.def.actions;
4724
4735
  }
@@ -4733,6 +4744,7 @@
4733
4744
  }
4734
4745
  if (typeof this.def.pageSize === 'number') {
4735
4746
  this._model.pageSize = this.def.pageSize;
4747
+ this._pageSize = this.def.pageSize;
4736
4748
  }
4737
4749
  if (this.def.rowClickable) {
4738
4750
  this._model.rowClickable = this.def.rowClickable;
@@ -4790,6 +4802,7 @@
4790
4802
  }
4791
4803
  }
4792
4804
  updated(changedProperties) {
4805
+ this.classList.toggle('kr-table--card', this.variant === 'card');
4793
4806
  this._updateScrollFlags();
4794
4807
  this._syncSlottedContent();
4795
4808
  }
@@ -5087,6 +5100,9 @@
5087
5100
  // Skip if already locked (prevents shifts on pagination changes)
5088
5101
  if (this._searchPositionLocked)
5089
5102
  return;
5103
+ // In card mode, search is left-aligned via CSS — no position locking needed
5104
+ if (this.variant === 'card')
5105
+ return;
5090
5106
  const search = this.shadowRoot?.querySelector('.search');
5091
5107
  const searchField = search?.querySelector('.search-field');
5092
5108
  if (!search || !searchField)
@@ -5559,12 +5575,25 @@
5559
5575
  <svg viewBox="0 0 24 24" fill="currentColor"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
5560
5576
  </span>
5561
5577
  </div>
5578
+ `;
5579
+ }
5580
+ /** Renders the card title block (title + description) above the toolbar in card mode. */
5581
+ _renderCardHeader() {
5582
+ if (this.variant !== 'card')
5583
+ return A;
5584
+ if (!this._model.title && !this._model.description)
5585
+ return A;
5586
+ return b `
5587
+ <div class="card-header">
5588
+ ${this._model.title ? b `<h2 class="card-header__title">${this._model.title}</h2>` : A}
5589
+ ${this._model.description ? b `<p class="card-header__description">${this._model.description}</p>` : A}
5590
+ </div>
5562
5591
  `;
5563
5592
  }
5564
5593
  /**
5565
5594
  * Renders the header toolbar containing:
5566
- * - Title (left)
5567
- * - Search bar with view selector dropdown (center)
5595
+ * - Title (left, default variant only)
5596
+ * - Search bar with view selector dropdown (center, or left-aligned in card variant)
5568
5597
  * - Tools (right): page navigation, refresh button, column visibility picker, actions dropdown
5569
5598
  *
5570
5599
  * Hidden when there's no title, no actions, and data fits on one page.
@@ -5575,7 +5604,7 @@
5575
5604
  }
5576
5605
  return b `
5577
5606
  <div class="header">
5578
- <div class="title">${this._model.title ?? ''}</div>
5607
+ ${this._model.title && this.variant !== 'card' ? b `<div class="title">${this._model.title}</div>` : A}
5579
5608
  ${this._model.dataSource?.mode === 'db' && !this._model.columns.some(col => col.searchable) ? b `<div class="search"></div>` : b `
5580
5609
  <div class="search">
5581
5610
  <!-- TODO: Saved views dropdown
@@ -5953,8 +5982,13 @@
5953
5982
  }
5954
5983
  /** Renders the scrollable data grid with column headers and rows. */
5955
5984
  _renderTable() {
5985
+ const wrapperStyle = {};
5986
+ if (this.variant === 'card') {
5987
+ // Reserve space for header row + pageSize data rows to prevent layout shift
5988
+ wrapperStyle['min-height'] = `${48 + (this._pageSize * 48)}px`;
5989
+ }
5956
5990
  return b `
5957
- <div class="wrapper">
5991
+ <div class="wrapper" style=${o$1(wrapperStyle)}>
5958
5992
  <div class="overlay-left"></div>
5959
5993
  <div class="overlay-right"></div>
5960
5994
  ${this._renderStatus()}
@@ -6022,6 +6056,7 @@
6022
6056
  return b `<slot></slot>`;
6023
6057
  }
6024
6058
  return b `
6059
+ ${this._renderCardHeader()}
6025
6060
  ${this._renderHeader()}
6026
6061
  ${this._renderTable()}
6027
6062
  ${this._renderFilterPanel()}
@@ -6060,7 +6095,7 @@
6060
6095
  }
6061
6096
 
6062
6097
  .title {
6063
- font-size: 20px;
6098
+ font-size: 18px;
6064
6099
  font-weight: 600;
6065
6100
  color: #000;
6066
6101
  }
@@ -6077,7 +6112,6 @@
6077
6112
  .content {
6078
6113
  height: 100%;
6079
6114
  overflow: auto;
6080
- padding-bottom: 24px;
6081
6115
  }
6082
6116
 
6083
6117
  /* -------------------------------------------------------------------------
@@ -6091,6 +6125,11 @@
6091
6125
  min-width: 0;
6092
6126
  }
6093
6127
 
6128
+ /* In card mode, align search left instead of center */
6129
+ :host(.kr-table--card) .search {
6130
+ justify-content: flex-start;
6131
+ }
6132
+
6094
6133
  .search-field {
6095
6134
  width: 100%;
6096
6135
  max-width: 400px;
@@ -6885,60 +6924,105 @@
6885
6924
  padding: 16px;
6886
6925
  }
6887
6926
 
6927
+ /* Card variant — self-contained card with border, auto height, left-aligned search */
6928
+ :host(.kr-table--card) {
6929
+ height: auto;
6930
+ /* overflow: visible; */
6931
+ overflow: hidden;
6932
+ /* border: 1px solid #e5e7eb; */
6933
+ /* border-radius: 8px; */
6934
+ border: 1px solid #c6c6cd;
6935
+ border-radius: 12px;
6936
+ background: #fff;
6937
+ }
6938
+
6939
+ .card-header {
6940
+ padding: 24px 24px 16px;
6941
+ }
6942
+
6943
+ .card-header__title {
6944
+ font-size: 18px;
6945
+ font-weight: 600;
6946
+ color: #1f2937;
6947
+ margin: 0;
6948
+ }
6949
+
6950
+ .card-header__description {
6951
+ font-size: 14px;
6952
+ color: #1f2937;
6953
+ margin: 12px 0 0;
6954
+ }
6955
+
6956
+ :host(.kr-table--card) .header {
6957
+ margin: 0 24px;
6958
+ }
6959
+
6960
+ :host(.kr-table--card) .wrapper {
6961
+ flex: none;
6962
+ overflow: visible;
6963
+ }
6964
+
6965
+ :host(.kr-table--card) .content {
6966
+ height: auto;
6967
+ }
6968
+
6888
6969
  `];
6889
- __decorate$a([
6970
+ __decorate$b([
6890
6971
  r$1()
6891
6972
  ], exports.KRTable.prototype, "_data", void 0);
6892
- __decorate$a([
6973
+ __decorate$b([
6893
6974
  r$1()
6894
6975
  ], exports.KRTable.prototype, "_dataState", void 0);
6895
- __decorate$a([
6976
+ __decorate$b([
6896
6977
  r$1()
6897
6978
  ], exports.KRTable.prototype, "_page", void 0);
6898
- __decorate$a([
6979
+ __decorate$b([
6899
6980
  r$1()
6900
6981
  ], exports.KRTable.prototype, "_pageSize", void 0);
6901
- __decorate$a([
6982
+ __decorate$b([
6902
6983
  r$1()
6903
6984
  ], exports.KRTable.prototype, "_totalItems", void 0);
6904
- __decorate$a([
6985
+ __decorate$b([
6905
6986
  r$1()
6906
6987
  ], exports.KRTable.prototype, "_totalPages", void 0);
6907
- __decorate$a([
6988
+ __decorate$b([
6908
6989
  r$1()
6909
6990
  ], exports.KRTable.prototype, "_searchQuery", void 0);
6910
- __decorate$a([
6991
+ __decorate$b([
6911
6992
  r$1()
6912
6993
  ], exports.KRTable.prototype, "_canScrollLeft", void 0);
6913
- __decorate$a([
6994
+ __decorate$b([
6914
6995
  r$1()
6915
6996
  ], exports.KRTable.prototype, "_canScrollRight", void 0);
6916
- __decorate$a([
6997
+ __decorate$b([
6917
6998
  r$1()
6918
6999
  ], exports.KRTable.prototype, "_canScrollHorizontal", void 0);
6919
- __decorate$a([
7000
+ __decorate$b([
6920
7001
  r$1()
6921
7002
  ], exports.KRTable.prototype, "_columnPickerOpen", void 0);
6922
- __decorate$a([
7003
+ __decorate$b([
6923
7004
  r$1()
6924
7005
  ], exports.KRTable.prototype, "_filterPanelOpened", void 0);
6925
- __decorate$a([
7006
+ __decorate$b([
6926
7007
  r$1()
6927
7008
  ], exports.KRTable.prototype, "_filterPanelTab", void 0);
6928
- __decorate$a([
7009
+ __decorate$b([
6929
7010
  r$1()
6930
7011
  ], exports.KRTable.prototype, "_buckets", void 0);
6931
- __decorate$a([
7012
+ __decorate$b([
6932
7013
  r$1()
6933
7014
  ], exports.KRTable.prototype, "_sorts", void 0);
6934
- __decorate$a([
7015
+ __decorate$b([
6935
7016
  n$1({ type: Object })
6936
7017
  ], exports.KRTable.prototype, "def", void 0);
6937
- exports.KRTable = __decorate$a([
7018
+ __decorate$b([
7019
+ n$1({ type: String, reflect: true })
7020
+ ], exports.KRTable.prototype, "variant", void 0);
7021
+ exports.KRTable = __decorate$b([
6938
7022
  t$1('kr-table')
6939
7023
  ], exports.KRTable);
6940
7024
 
6941
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7025
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6942
7026
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6943
7027
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6944
7028
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -7058,17 +7142,17 @@
7058
7142
  stroke-linecap: round;
7059
7143
  }
7060
7144
  `;
7061
- __decorate$9([
7145
+ __decorate$a([
7062
7146
  n$1({ type: String, reflect: true })
7063
7147
  ], exports.KRSpinner.prototype, "size", void 0);
7064
- __decorate$9([
7148
+ __decorate$a([
7065
7149
  n$1({ type: String, reflect: true })
7066
7150
  ], exports.KRSpinner.prototype, "color", void 0);
7067
- exports.KRSpinner = __decorate$9([
7151
+ exports.KRSpinner = __decorate$a([
7068
7152
  t$1('kr-spinner')
7069
7153
  ], exports.KRSpinner);
7070
7154
 
7071
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7155
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7072
7156
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7073
7157
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7074
7158
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -7159,17 +7243,17 @@
7159
7243
  }
7160
7244
  }
7161
7245
  `;
7162
- __decorate$8([
7246
+ __decorate$9([
7163
7247
  n$1({ type: String, reflect: true })
7164
7248
  ], exports.KRProgressBar.prototype, "color", void 0);
7165
- __decorate$8([
7249
+ __decorate$9([
7166
7250
  n$1({ type: String, reflect: true })
7167
7251
  ], exports.KRProgressBar.prototype, "trackColor", void 0);
7168
- exports.KRProgressBar = __decorate$8([
7252
+ exports.KRProgressBar = __decorate$9([
7169
7253
  t$1('kr-progress-bar')
7170
7254
  ], exports.KRProgressBar);
7171
7255
 
7172
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7256
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7173
7257
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7174
7258
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7175
7259
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -7637,23 +7721,23 @@
7637
7721
  }
7638
7722
  `;
7639
7723
  exports.KRFilePreview._activePreview = null;
7640
- __decorate$7([
7724
+ __decorate$8([
7641
7725
  n$1({ type: String })
7642
7726
  ], exports.KRFilePreview.prototype, "src", void 0);
7643
- __decorate$7([
7727
+ __decorate$8([
7644
7728
  n$1({ type: String })
7645
7729
  ], exports.KRFilePreview.prototype, "name", void 0);
7646
- __decorate$7([
7730
+ __decorate$8([
7647
7731
  r$1()
7648
7732
  ], exports.KRFilePreview.prototype, "_zoomLevel", void 0);
7649
- __decorate$7([
7733
+ __decorate$8([
7650
7734
  r$1()
7651
7735
  ], exports.KRFilePreview.prototype, "_textContent", void 0);
7652
- exports.KRFilePreview = KRFilePreview_1 = __decorate$7([
7736
+ exports.KRFilePreview = KRFilePreview_1 = __decorate$8([
7653
7737
  t$1('kr-file-preview')
7654
7738
  ], exports.KRFilePreview);
7655
7739
 
7656
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7740
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7657
7741
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7658
7742
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7659
7743
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -7896,13 +7980,13 @@
7896
7980
  padding: 20px;
7897
7981
  }
7898
7982
  `;
7899
- __decorate$6([
7983
+ __decorate$7([
7900
7984
  n$1({ type: Array })
7901
7985
  ], exports.KRFileList.prototype, "files", void 0);
7902
- __decorate$6([
7986
+ __decorate$7([
7903
7987
  n$1({ type: String, attribute: 'empty-message' })
7904
7988
  ], exports.KRFileList.prototype, "emptyMessage", void 0);
7905
- exports.KRFileList = __decorate$6([
7989
+ exports.KRFileList = __decorate$7([
7906
7990
  t$1('kr-file-list')
7907
7991
  ], exports.KRFileList);
7908
7992
 
@@ -7924,7 +8008,7 @@
7924
8008
  * SPDX-License-Identifier: BSD-3-Clause
7925
8009
  */const l=e$2(class extends i$1{constructor(r$1){if(super(r$1),r$1.type!==t.PROPERTY&&r$1.type!==t.ATTRIBUTE&&r$1.type!==t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!r(r$1))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(i,[t$1]){if(t$1===E||t$1===A)return t$1;const o=i.element,l=i.name;if(i.type===t.PROPERTY){if(t$1===o[l])return E}else if(i.type===t.BOOLEAN_ATTRIBUTE){if(!!t$1===o.hasAttribute(l))return E}else if(i.type===t.ATTRIBUTE&&o.getAttribute(l)===t$1+"")return E;return p(i),t$1}});
7926
8010
 
7927
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8011
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7928
8012
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7929
8013
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7930
8014
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -8177,59 +8261,59 @@
8177
8261
  `;
8178
8262
  // Enable form association
8179
8263
  exports.KRTextField.formAssociated = true;
8180
- __decorate$5([
8264
+ __decorate$6([
8181
8265
  n$1({ type: String })
8182
8266
  ], exports.KRTextField.prototype, "label", void 0);
8183
- __decorate$5([
8267
+ __decorate$6([
8184
8268
  n$1({ type: String })
8185
8269
  ], exports.KRTextField.prototype, "name", void 0);
8186
- __decorate$5([
8270
+ __decorate$6([
8187
8271
  n$1({ type: String })
8188
8272
  ], exports.KRTextField.prototype, "value", void 0);
8189
- __decorate$5([
8273
+ __decorate$6([
8190
8274
  n$1({ type: String })
8191
8275
  ], exports.KRTextField.prototype, "placeholder", void 0);
8192
- __decorate$5([
8276
+ __decorate$6([
8193
8277
  n$1({ type: String })
8194
8278
  ], exports.KRTextField.prototype, "type", void 0);
8195
- __decorate$5([
8279
+ __decorate$6([
8196
8280
  n$1({ type: Boolean })
8197
8281
  ], exports.KRTextField.prototype, "required", void 0);
8198
- __decorate$5([
8282
+ __decorate$6([
8199
8283
  n$1({ type: Boolean })
8200
8284
  ], exports.KRTextField.prototype, "disabled", void 0);
8201
- __decorate$5([
8285
+ __decorate$6([
8202
8286
  n$1({ type: Boolean })
8203
8287
  ], exports.KRTextField.prototype, "readonly", void 0);
8204
- __decorate$5([
8288
+ __decorate$6([
8205
8289
  n$1({ type: Number })
8206
8290
  ], exports.KRTextField.prototype, "minlength", void 0);
8207
- __decorate$5([
8291
+ __decorate$6([
8208
8292
  n$1({ type: Number })
8209
8293
  ], exports.KRTextField.prototype, "maxlength", void 0);
8210
- __decorate$5([
8294
+ __decorate$6([
8211
8295
  n$1({ type: String })
8212
8296
  ], exports.KRTextField.prototype, "pattern", void 0);
8213
- __decorate$5([
8297
+ __decorate$6([
8214
8298
  n$1({ type: String })
8215
8299
  ], exports.KRTextField.prototype, "autocomplete", void 0);
8216
- __decorate$5([
8300
+ __decorate$6([
8217
8301
  n$1({ type: String })
8218
8302
  ], exports.KRTextField.prototype, "hint", void 0);
8219
- __decorate$5([
8303
+ __decorate$6([
8220
8304
  e$3('input')
8221
8305
  ], exports.KRTextField.prototype, "_input", void 0);
8222
- __decorate$5([
8306
+ __decorate$6([
8223
8307
  r$1()
8224
8308
  ], exports.KRTextField.prototype, "_touched", void 0);
8225
- __decorate$5([
8309
+ __decorate$6([
8226
8310
  r$1()
8227
8311
  ], exports.KRTextField.prototype, "_dirty", void 0);
8228
- exports.KRTextField = __decorate$5([
8312
+ exports.KRTextField = __decorate$6([
8229
8313
  t$1('kr-text-field')
8230
8314
  ], exports.KRTextField);
8231
8315
 
8232
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8316
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8233
8317
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8234
8318
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8235
8319
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -8487,59 +8571,59 @@
8487
8571
  `;
8488
8572
  // Enable form association
8489
8573
  exports.KRTextareaField.formAssociated = true;
8490
- __decorate$4([
8574
+ __decorate$5([
8491
8575
  n$1({ type: String })
8492
8576
  ], exports.KRTextareaField.prototype, "label", void 0);
8493
- __decorate$4([
8577
+ __decorate$5([
8494
8578
  n$1({ type: String })
8495
8579
  ], exports.KRTextareaField.prototype, "name", void 0);
8496
- __decorate$4([
8580
+ __decorate$5([
8497
8581
  n$1({ type: String })
8498
8582
  ], exports.KRTextareaField.prototype, "value", void 0);
8499
- __decorate$4([
8583
+ __decorate$5([
8500
8584
  n$1({ type: String })
8501
8585
  ], exports.KRTextareaField.prototype, "placeholder", void 0);
8502
- __decorate$4([
8586
+ __decorate$5([
8503
8587
  n$1({ type: Boolean })
8504
8588
  ], exports.KRTextareaField.prototype, "required", void 0);
8505
- __decorate$4([
8589
+ __decorate$5([
8506
8590
  n$1({ type: Boolean })
8507
8591
  ], exports.KRTextareaField.prototype, "disabled", void 0);
8508
- __decorate$4([
8592
+ __decorate$5([
8509
8593
  n$1({ type: Boolean })
8510
8594
  ], exports.KRTextareaField.prototype, "readonly", void 0);
8511
- __decorate$4([
8595
+ __decorate$5([
8512
8596
  n$1({ type: Number })
8513
8597
  ], exports.KRTextareaField.prototype, "rows", void 0);
8514
- __decorate$4([
8598
+ __decorate$5([
8515
8599
  n$1({ type: Number })
8516
8600
  ], exports.KRTextareaField.prototype, "cols", void 0);
8517
- __decorate$4([
8601
+ __decorate$5([
8518
8602
  n$1({ type: Number })
8519
8603
  ], exports.KRTextareaField.prototype, "minlength", void 0);
8520
- __decorate$4([
8604
+ __decorate$5([
8521
8605
  n$1({ type: Number })
8522
8606
  ], exports.KRTextareaField.prototype, "maxlength", void 0);
8523
- __decorate$4([
8607
+ __decorate$5([
8524
8608
  n$1({ type: String })
8525
8609
  ], exports.KRTextareaField.prototype, "autocomplete", void 0);
8526
- __decorate$4([
8610
+ __decorate$5([
8527
8611
  n$1({ type: String })
8528
8612
  ], exports.KRTextareaField.prototype, "hint", void 0);
8529
- __decorate$4([
8613
+ __decorate$5([
8530
8614
  e$3('textarea')
8531
8615
  ], exports.KRTextareaField.prototype, "_textarea", void 0);
8532
- __decorate$4([
8616
+ __decorate$5([
8533
8617
  r$1()
8534
8618
  ], exports.KRTextareaField.prototype, "_touched", void 0);
8535
- __decorate$4([
8619
+ __decorate$5([
8536
8620
  r$1()
8537
8621
  ], exports.KRTextareaField.prototype, "_dirty", void 0);
8538
- exports.KRTextareaField = __decorate$4([
8622
+ exports.KRTextareaField = __decorate$5([
8539
8623
  t$1('kr-textarea-field')
8540
8624
  ], exports.KRTextareaField);
8541
8625
 
8542
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8626
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8543
8627
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8544
8628
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8545
8629
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -8596,17 +8680,17 @@
8596
8680
  color: black;
8597
8681
  }
8598
8682
  `;
8599
- __decorate$3([
8683
+ __decorate$4([
8600
8684
  n$1({ type: String })
8601
8685
  ], KRDetailField.prototype, "label", void 0);
8602
- __decorate$3([
8686
+ __decorate$4([
8603
8687
  n$1({ type: String })
8604
8688
  ], KRDetailField.prototype, "value", void 0);
8605
- KRDetailField = __decorate$3([
8689
+ KRDetailField = __decorate$4([
8606
8690
  t$1('kr-detail-field')
8607
8691
  ], KRDetailField);
8608
8692
 
8609
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8693
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8610
8694
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8611
8695
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8612
8696
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -9102,53 +9186,53 @@
9102
9186
  }
9103
9187
  `;
9104
9188
  exports.KRAutoSuggest.formAssociated = true;
9105
- __decorate$2([
9189
+ __decorate$3([
9106
9190
  n$1({ type: String })
9107
9191
  ], exports.KRAutoSuggest.prototype, "label", void 0);
9108
- __decorate$2([
9192
+ __decorate$3([
9109
9193
  n$1({ type: String })
9110
9194
  ], exports.KRAutoSuggest.prototype, "name", void 0);
9111
- __decorate$2([
9195
+ __decorate$3([
9112
9196
  n$1({ type: String })
9113
9197
  ], exports.KRAutoSuggest.prototype, "value", void 0);
9114
- __decorate$2([
9198
+ __decorate$3([
9115
9199
  n$1({ type: String })
9116
9200
  ], exports.KRAutoSuggest.prototype, "placeholder", void 0);
9117
- __decorate$2([
9201
+ __decorate$3([
9118
9202
  n$1({ type: Boolean })
9119
9203
  ], exports.KRAutoSuggest.prototype, "disabled", void 0);
9120
- __decorate$2([
9204
+ __decorate$3([
9121
9205
  n$1({ type: Boolean })
9122
9206
  ], exports.KRAutoSuggest.prototype, "readonly", void 0);
9123
- __decorate$2([
9207
+ __decorate$3([
9124
9208
  n$1({ type: Boolean })
9125
9209
  ], exports.KRAutoSuggest.prototype, "required", void 0);
9126
- __decorate$2([
9210
+ __decorate$3([
9127
9211
  n$1({ type: String })
9128
9212
  ], exports.KRAutoSuggest.prototype, "hint", void 0);
9129
- __decorate$2([
9213
+ __decorate$3([
9130
9214
  n$1({ type: Array })
9131
9215
  ], exports.KRAutoSuggest.prototype, "options", void 0);
9132
- __decorate$2([
9216
+ __decorate$3([
9133
9217
  n$1({ attribute: false })
9134
9218
  ], exports.KRAutoSuggest.prototype, "fetch", void 0);
9135
- __decorate$2([
9219
+ __decorate$3([
9136
9220
  r$1()
9137
9221
  ], exports.KRAutoSuggest.prototype, "_isOpen", void 0);
9138
- __decorate$2([
9222
+ __decorate$3([
9139
9223
  r$1()
9140
9224
  ], exports.KRAutoSuggest.prototype, "_highlightedIndex", void 0);
9141
- __decorate$2([
9225
+ __decorate$3([
9142
9226
  r$1()
9143
9227
  ], exports.KRAutoSuggest.prototype, "_touched", void 0);
9144
- __decorate$2([
9228
+ __decorate$3([
9145
9229
  e$3('input')
9146
9230
  ], exports.KRAutoSuggest.prototype, "_input", void 0);
9147
- exports.KRAutoSuggest = __decorate$2([
9231
+ exports.KRAutoSuggest = __decorate$3([
9148
9232
  t$1('kr-auto-suggest')
9149
9233
  ], exports.KRAutoSuggest);
9150
9234
 
9151
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9235
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9152
9236
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9153
9237
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9154
9238
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -9806,71 +9890,71 @@
9806
9890
  }
9807
9891
  `;
9808
9892
  exports.KRComboBox.formAssociated = true;
9809
- __decorate$1([
9893
+ __decorate$2([
9810
9894
  n$1({ type: String })
9811
9895
  ], exports.KRComboBox.prototype, "label", void 0);
9812
- __decorate$1([
9896
+ __decorate$2([
9813
9897
  n$1({ type: String })
9814
9898
  ], exports.KRComboBox.prototype, "name", void 0);
9815
- __decorate$1([
9899
+ __decorate$2([
9816
9900
  n$1({ type: String })
9817
9901
  ], exports.KRComboBox.prototype, "value", void 0);
9818
- __decorate$1([
9902
+ __decorate$2([
9819
9903
  n$1({ type: String })
9820
9904
  ], exports.KRComboBox.prototype, "placeholder", void 0);
9821
- __decorate$1([
9905
+ __decorate$2([
9822
9906
  n$1({ type: Boolean })
9823
9907
  ], exports.KRComboBox.prototype, "disabled", void 0);
9824
- __decorate$1([
9908
+ __decorate$2([
9825
9909
  n$1({ type: Boolean })
9826
9910
  ], exports.KRComboBox.prototype, "readonly", void 0);
9827
- __decorate$1([
9911
+ __decorate$2([
9828
9912
  n$1({ type: Boolean })
9829
9913
  ], exports.KRComboBox.prototype, "required", void 0);
9830
- __decorate$1([
9914
+ __decorate$2([
9831
9915
  n$1({ type: String })
9832
9916
  ], exports.KRComboBox.prototype, "hint", void 0);
9833
- __decorate$1([
9917
+ __decorate$2([
9834
9918
  n$1({ attribute: 'option-value' })
9835
9919
  ], exports.KRComboBox.prototype, "optionValue", void 0);
9836
- __decorate$1([
9920
+ __decorate$2([
9837
9921
  n$1({ attribute: 'option-label' })
9838
9922
  ], exports.KRComboBox.prototype, "optionLabel", void 0);
9839
- __decorate$1([
9923
+ __decorate$2([
9840
9924
  n$1({ type: Array })
9841
9925
  ], exports.KRComboBox.prototype, "options", void 0);
9842
- __decorate$1([
9926
+ __decorate$2([
9843
9927
  n$1({ attribute: false })
9844
9928
  ], exports.KRComboBox.prototype, "fetch", void 0);
9845
- __decorate$1([
9929
+ __decorate$2([
9846
9930
  n$1({ attribute: false })
9847
9931
  ], exports.KRComboBox.prototype, "fetchSelection", void 0);
9848
- __decorate$1([
9932
+ __decorate$2([
9849
9933
  r$1()
9850
9934
  ], exports.KRComboBox.prototype, "_isOpen", void 0);
9851
- __decorate$1([
9935
+ __decorate$2([
9852
9936
  r$1()
9853
9937
  ], exports.KRComboBox.prototype, "_highlightedIndex", void 0);
9854
- __decorate$1([
9938
+ __decorate$2([
9855
9939
  r$1()
9856
9940
  ], exports.KRComboBox.prototype, "_touched", void 0);
9857
- __decorate$1([
9941
+ __decorate$2([
9858
9942
  r$1()
9859
9943
  ], exports.KRComboBox.prototype, "_searchQuery", void 0);
9860
- __decorate$1([
9944
+ __decorate$2([
9861
9945
  r$1()
9862
9946
  ], exports.KRComboBox.prototype, "_loading", void 0);
9863
- __decorate$1([
9947
+ __decorate$2([
9864
9948
  e$3('.trigger')
9865
9949
  ], exports.KRComboBox.prototype, "_triggerElement", void 0);
9866
- __decorate$1([
9950
+ __decorate$2([
9867
9951
  e$3('.search__input')
9868
9952
  ], exports.KRComboBox.prototype, "_searchInput", void 0);
9869
- exports.KRComboBox = __decorate$1([
9953
+ exports.KRComboBox = __decorate$2([
9870
9954
  t$1('kr-combo-box')
9871
9955
  ], exports.KRComboBox);
9872
9956
 
9873
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9957
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9874
9958
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9875
9959
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9876
9960
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -10222,37 +10306,336 @@
10222
10306
  }
10223
10307
  `];
10224
10308
  exports.KRRadioCards.formAssociated = true;
10225
- __decorate([
10309
+ __decorate$1([
10226
10310
  n$1({ type: String })
10227
10311
  ], exports.KRRadioCards.prototype, "label", void 0);
10228
- __decorate([
10312
+ __decorate$1([
10229
10313
  n$1({ type: String })
10230
10314
  ], exports.KRRadioCards.prototype, "name", void 0);
10231
- __decorate([
10315
+ __decorate$1([
10232
10316
  n$1({ type: String })
10233
10317
  ], exports.KRRadioCards.prototype, "value", void 0);
10234
- __decorate([
10318
+ __decorate$1([
10235
10319
  n$1({ attribute: false })
10236
10320
  ], exports.KRRadioCards.prototype, "options", void 0);
10237
- __decorate([
10321
+ __decorate$1([
10238
10322
  n$1({ type: Boolean })
10239
10323
  ], exports.KRRadioCards.prototype, "disabled", void 0);
10240
- __decorate([
10324
+ __decorate$1([
10241
10325
  n$1({ type: Boolean })
10242
10326
  ], exports.KRRadioCards.prototype, "required", void 0);
10243
- __decorate([
10327
+ __decorate$1([
10244
10328
  n$1({ type: String })
10245
10329
  ], exports.KRRadioCards.prototype, "hint", void 0);
10246
- __decorate([
10330
+ __decorate$1([
10247
10331
  n$1({ type: String })
10248
10332
  ], exports.KRRadioCards.prototype, "direction", void 0);
10249
- __decorate([
10333
+ __decorate$1([
10250
10334
  r$1()
10251
10335
  ], exports.KRRadioCards.prototype, "_touched", void 0);
10252
- exports.KRRadioCards = __decorate([
10336
+ exports.KRRadioCards = __decorate$1([
10253
10337
  t$1('kr-radio-cards')
10254
10338
  ], exports.KRRadioCards);
10255
10339
 
10340
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10341
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10342
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10343
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
10344
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10345
+ };
10346
+ /**
10347
+ * A checkbox component that works with native browser forms.
10348
+ *
10349
+ * Uses ElementInternals for form association, allowing the component
10350
+ * to participate in form submission, validation, and reset.
10351
+ *
10352
+ * @element kr-checkbox
10353
+ * @fires change - Fired when the checked state changes
10354
+ */
10355
+ exports.KRCheckbox = class KRCheckbox extends i$2 {
10356
+ constructor() {
10357
+ super();
10358
+ /**
10359
+ * The checkbox label text
10360
+ */
10361
+ this.label = '';
10362
+ /**
10363
+ * The input name for form submission
10364
+ */
10365
+ this.name = '';
10366
+ /**
10367
+ * The value submitted when checked
10368
+ */
10369
+ this.value = 'on';
10370
+ /**
10371
+ * Whether the checkbox is checked
10372
+ */
10373
+ this.checked = false;
10374
+ /**
10375
+ * Whether the checkbox is disabled
10376
+ */
10377
+ this.disabled = false;
10378
+ /**
10379
+ * Whether the checkbox is required
10380
+ */
10381
+ this.required = false;
10382
+ /**
10383
+ * Helper text shown below the checkbox
10384
+ */
10385
+ this.hint = '';
10386
+ this._touched = false;
10387
+ this._handleInvalid = (e) => {
10388
+ e.preventDefault();
10389
+ this._touched = true;
10390
+ };
10391
+ this._internals = this.attachInternals();
10392
+ }
10393
+ // Form-associated custom element callbacks
10394
+ get form() {
10395
+ return this._internals.form;
10396
+ }
10397
+ get validity() {
10398
+ return this._internals.validity;
10399
+ }
10400
+ get validationMessage() {
10401
+ return this._internals.validationMessage;
10402
+ }
10403
+ get willValidate() {
10404
+ return this._internals.willValidate;
10405
+ }
10406
+ checkValidity() {
10407
+ return this._internals.checkValidity();
10408
+ }
10409
+ reportValidity() {
10410
+ return this._internals.reportValidity();
10411
+ }
10412
+ formResetCallback() {
10413
+ this.checked = false;
10414
+ this._touched = false;
10415
+ this._internals.setFormValue('');
10416
+ this._internals.setValidity({});
10417
+ }
10418
+ formStateRestoreCallback(state) {
10419
+ this.checked = state === this.value;
10420
+ }
10421
+ connectedCallback() {
10422
+ super.connectedCallback();
10423
+ this.addEventListener('invalid', this._handleInvalid);
10424
+ }
10425
+ disconnectedCallback() {
10426
+ super.disconnectedCallback();
10427
+ this.removeEventListener('invalid', this._handleInvalid);
10428
+ }
10429
+ firstUpdated() {
10430
+ this._syncFormValue();
10431
+ this._updateValidity();
10432
+ }
10433
+ updated(changedProperties) {
10434
+ if (changedProperties.has('checked') || changedProperties.has('value')) {
10435
+ this._syncFormValue();
10436
+ }
10437
+ if (changedProperties.has('required') || changedProperties.has('checked')) {
10438
+ this._updateValidity();
10439
+ }
10440
+ }
10441
+ _syncFormValue() {
10442
+ if (this.checked) {
10443
+ this._internals.setFormValue(this.value);
10444
+ }
10445
+ else {
10446
+ this._internals.setFormValue('');
10447
+ }
10448
+ }
10449
+ _updateValidity() {
10450
+ if (this.required && !this.checked) {
10451
+ this._internals.setValidity({ valueMissing: true }, 'This field is required');
10452
+ }
10453
+ else {
10454
+ this._internals.setValidity({});
10455
+ }
10456
+ }
10457
+ _handleClick(e) {
10458
+ if (this.disabled) {
10459
+ return;
10460
+ }
10461
+ this.checked = !this.checked;
10462
+ this._touched = true;
10463
+ this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
10464
+ }
10465
+ _handleKeyDown(e) {
10466
+ if (this.disabled) {
10467
+ return;
10468
+ }
10469
+ if (e.key === ' ' || e.key === 'Enter') {
10470
+ e.preventDefault();
10471
+ this._handleClick(e);
10472
+ }
10473
+ }
10474
+ render() {
10475
+ return b `
10476
+ <div class="wrapper">
10477
+ <div
10478
+ class=${e$1({
10479
+ 'checkbox': true,
10480
+ 'checkbox--disabled': this.disabled,
10481
+ })}
10482
+ role="checkbox"
10483
+ aria-checked=${this.checked}
10484
+ aria-disabled=${this.disabled}
10485
+ aria-label=${this.label}
10486
+ tabindex=${this.disabled ? -1 : 0}
10487
+ @click=${this._handleClick}
10488
+ @keydown=${this._handleKeyDown}
10489
+ >
10490
+ <div class=${e$1({
10491
+ 'checkbox__box': true,
10492
+ 'checkbox__box--checked': this.checked,
10493
+ 'checkbox__box--invalid': this._touched && this.required && !this.checked,
10494
+ })}>
10495
+ <svg class=${e$1({
10496
+ 'checkbox__check': true,
10497
+ 'checkbox__check--hidden': !this.checked,
10498
+ })} viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
10499
+ <polyline points="20 6 9 17 4 12"></polyline>
10500
+ </svg>
10501
+ </div>
10502
+ ${this.label
10503
+ ? b `
10504
+ <span class="checkbox__label">
10505
+ ${this.label}
10506
+ ${this.required ? b `<span class="required" aria-hidden="true">*</span>` : A}
10507
+ </span>
10508
+ `
10509
+ : A}
10510
+ </div>
10511
+ ${this._touched && this.required && !this.checked
10512
+ ? b `<div class="validation-message">This field is required</div>`
10513
+ : this.hint
10514
+ ? b `<div class="hint">${this.hint}</div>`
10515
+ : A}
10516
+ </div>
10517
+ `;
10518
+ }
10519
+ focus() {
10520
+ this.shadowRoot?.querySelector('.checkbox')?.focus();
10521
+ }
10522
+ blur() {
10523
+ this.shadowRoot?.querySelector('.checkbox')?.blur();
10524
+ }
10525
+ };
10526
+ exports.KRCheckbox.styles = [krBaseCSS, i$5 `
10527
+ :host {
10528
+ display: inline-block;
10529
+ font-family: inherit;
10530
+ }
10531
+
10532
+ .wrapper {
10533
+ display: flex;
10534
+ flex-direction: column;
10535
+ gap: 6px;
10536
+ }
10537
+
10538
+ .checkbox {
10539
+ display: inline-flex;
10540
+ align-items: center;
10541
+ gap: 8px;
10542
+ cursor: pointer;
10543
+ }
10544
+
10545
+ .checkbox--disabled {
10546
+ opacity: 0.5;
10547
+ cursor: not-allowed;
10548
+ }
10549
+
10550
+ .checkbox__box {
10551
+ flex-shrink: 0;
10552
+ width: 18px;
10553
+ height: 18px;
10554
+ border: 2px solid var(--kr-checkbox-border-color, #0000003d);
10555
+ border-radius: 4px;
10556
+ background-color: var(--kr-checkbox-bg, #fff);
10557
+ display: flex;
10558
+ align-items: center;
10559
+ justify-content: center;
10560
+ transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
10561
+ }
10562
+
10563
+ .checkbox:focus-visible .checkbox__box {
10564
+ outline: none;
10565
+ box-shadow: 0 0 0 3px rgba(22, 48, 82, 0.1);
10566
+ }
10567
+
10568
+ .checkbox__box--checked {
10569
+ border-color: var(--kr-checkbox-checked-border-color, var(--kr-primary));
10570
+ background-color: var(--kr-checkbox-checked-bg, var(--kr-primary));
10571
+ }
10572
+
10573
+ .checkbox__box--invalid {
10574
+ border-color: var(--kr-checkbox-error-border-color, #ef4444);
10575
+ }
10576
+
10577
+ .checkbox__check {
10578
+ width: 12px;
10579
+ height: 12px;
10580
+ color: var(--kr-checkbox-check-color, #fff);
10581
+ }
10582
+
10583
+ .checkbox__check--hidden {
10584
+ visibility: hidden;
10585
+ }
10586
+
10587
+ .checkbox__label {
10588
+ font-size: 14px;
10589
+ color: var(--kr-checkbox-label-color, #000);
10590
+ user-select: none;
10591
+ }
10592
+
10593
+ .required {
10594
+ color: var(--kr-checkbox-required-color, #ef4444);
10595
+ margin-left: 0.125rem;
10596
+ }
10597
+
10598
+ .hint {
10599
+ font-size: 0.75rem;
10600
+ color: var(--kr-checkbox-helper-color, #6b7280);
10601
+ margin-left: 26px;
10602
+ }
10603
+
10604
+ .validation-message {
10605
+ font-size: 0.75rem;
10606
+ color: var(--kr-checkbox-error-color, #ef4444);
10607
+ margin-left: 26px;
10608
+ }
10609
+ `];
10610
+ exports.KRCheckbox.formAssociated = true;
10611
+ __decorate([
10612
+ n$1({ type: String })
10613
+ ], exports.KRCheckbox.prototype, "label", void 0);
10614
+ __decorate([
10615
+ n$1({ type: String })
10616
+ ], exports.KRCheckbox.prototype, "name", void 0);
10617
+ __decorate([
10618
+ n$1({ type: String })
10619
+ ], exports.KRCheckbox.prototype, "value", void 0);
10620
+ __decorate([
10621
+ n$1({ type: Boolean })
10622
+ ], exports.KRCheckbox.prototype, "checked", void 0);
10623
+ __decorate([
10624
+ n$1({ type: Boolean })
10625
+ ], exports.KRCheckbox.prototype, "disabled", void 0);
10626
+ __decorate([
10627
+ n$1({ type: Boolean })
10628
+ ], exports.KRCheckbox.prototype, "required", void 0);
10629
+ __decorate([
10630
+ n$1({ type: String })
10631
+ ], exports.KRCheckbox.prototype, "hint", void 0);
10632
+ __decorate([
10633
+ r$1()
10634
+ ], exports.KRCheckbox.prototype, "_touched", void 0);
10635
+ exports.KRCheckbox = __decorate([
10636
+ t$1('kr-checkbox')
10637
+ ], exports.KRCheckbox);
10638
+
10256
10639
  exports.KRDialogRef = KRDialogRef;
10257
10640
  exports.KRQuery = KRQuery;
10258
10641
  exports.KR_OPERATORS = KR_OPERATORS;