@kodaris/krubble-app-components 1.0.174 → 1.0.176

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.
@@ -2552,7 +2552,7 @@
2552
2552
  }
2553
2553
  `;
2554
2554
 
2555
- var __decorate$t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2555
+ var __decorate$u = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2556
2556
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2557
2557
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2558
2558
  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;
@@ -2667,10 +2667,10 @@
2667
2667
  padding: 16px 16px 8px 16px;
2668
2668
  }
2669
2669
  `;
2670
- __decorate$t([
2670
+ __decorate$u([
2671
2671
  n$1({ type: String })
2672
2672
  ], KRAccordion.prototype, "header", void 0);
2673
- __decorate$t([
2673
+ __decorate$u([
2674
2674
  n$1({
2675
2675
  type: Boolean,
2676
2676
  reflect: true,
@@ -2683,7 +2683,7 @@
2683
2683
  customElements.define('krs-accordion', KRAccordion);
2684
2684
  }
2685
2685
 
2686
- var __decorate$s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2686
+ var __decorate$t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2687
2687
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2688
2688
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2689
2689
  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;
@@ -2947,19 +2947,19 @@
2947
2947
  outline-offset: 2px;
2948
2948
  }
2949
2949
  `;
2950
- __decorate$s([
2950
+ __decorate$t([
2951
2951
  n$1({ type: String })
2952
2952
  ], KRAlert.prototype, "type", void 0);
2953
- __decorate$s([
2953
+ __decorate$t([
2954
2954
  n$1({ type: String })
2955
2955
  ], KRAlert.prototype, "label", void 0);
2956
- __decorate$s([
2956
+ __decorate$t([
2957
2957
  n$1({ type: String })
2958
2958
  ], KRAlert.prototype, "title", void 0);
2959
- __decorate$s([
2959
+ __decorate$t([
2960
2960
  n$1({ type: Boolean })
2961
2961
  ], KRAlert.prototype, "dismissible", void 0);
2962
- __decorate$s([
2962
+ __decorate$t([
2963
2963
  n$1({ type: Boolean })
2964
2964
  ], KRAlert.prototype, "visible", void 0);
2965
2965
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -2969,7 +2969,7 @@
2969
2969
  customElements.define('krs-alert', KRAlert);
2970
2970
  }
2971
2971
 
2972
- var __decorate$r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2972
+ var __decorate$s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2973
2973
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2974
2974
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2975
2975
  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;
@@ -3774,59 +3774,59 @@
3774
3774
  * with how long the confirmation is visible.
3775
3775
  */
3776
3776
  KRButton.STATE_DURATION = 2000;
3777
- __decorate$r([
3777
+ __decorate$s([
3778
3778
  n$1({
3779
3779
  type: String,
3780
3780
  reflect: true,
3781
3781
  })
3782
3782
  ], KRButton.prototype, "variant", void 0);
3783
- __decorate$r([
3783
+ __decorate$s([
3784
3784
  n$1({
3785
3785
  type: String,
3786
3786
  reflect: true,
3787
3787
  })
3788
3788
  ], KRButton.prototype, "color", void 0);
3789
- __decorate$r([
3789
+ __decorate$s([
3790
3790
  n$1({
3791
3791
  type: String,
3792
3792
  reflect: true,
3793
3793
  })
3794
3794
  ], KRButton.prototype, "size", void 0);
3795
- __decorate$r([
3795
+ __decorate$s([
3796
3796
  n$1({
3797
3797
  type: Boolean,
3798
3798
  reflect: true,
3799
3799
  })
3800
3800
  ], KRButton.prototype, "disabled", void 0);
3801
- __decorate$r([
3801
+ __decorate$s([
3802
3802
  n$1({ type: String })
3803
3803
  ], KRButton.prototype, "href", void 0);
3804
- __decorate$r([
3804
+ __decorate$s([
3805
3805
  n$1({ type: String })
3806
3806
  ], KRButton.prototype, "target", void 0);
3807
- __decorate$r([
3807
+ __decorate$s([
3808
3808
  n$1({ type: Array })
3809
3809
  ], KRButton.prototype, "options", void 0);
3810
- __decorate$r([
3810
+ __decorate$s([
3811
3811
  n$1({
3812
3812
  type: String,
3813
3813
  reflect: true,
3814
3814
  attribute: 'icon-position',
3815
3815
  })
3816
3816
  ], KRButton.prototype, "iconPosition", void 0);
3817
- __decorate$r([
3817
+ __decorate$s([
3818
3818
  n$1({
3819
3819
  type: Boolean,
3820
3820
  reflect: true
3821
3821
  })
3822
3822
  ], KRButton.prototype, "split", void 0);
3823
- __decorate$r([
3823
+ __decorate$s([
3824
3824
  r$1()
3825
3825
  ], KRButton.prototype, "_state", void 0);
3826
- __decorate$r([
3826
+ __decorate$s([
3827
3827
  r$1()
3828
3828
  ], KRButton.prototype, "_stateText", void 0);
3829
- __decorate$r([
3829
+ __decorate$s([
3830
3830
  r$1()
3831
3831
  ], KRButton.prototype, "_dropdownOpened", void 0);
3832
3832
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -3836,7 +3836,7 @@
3836
3836
  customElements.define('krs-button', KRButton);
3837
3837
  }
3838
3838
 
3839
- var __decorate$q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3839
+ var __decorate$r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3840
3840
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3841
3841
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3842
3842
  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;
@@ -4109,19 +4109,19 @@
4109
4109
  .hljs-property { color: #005cc5; }
4110
4110
 
4111
4111
  `];
4112
- __decorate$q([
4112
+ __decorate$r([
4113
4113
  n$1({ type: String })
4114
4114
  ], KRCodeDemo.prototype, "language", void 0);
4115
- __decorate$q([
4115
+ __decorate$r([
4116
4116
  r$1()
4117
4117
  ], KRCodeDemo.prototype, "code", void 0);
4118
- __decorate$q([
4118
+ __decorate$r([
4119
4119
  r$1()
4120
4120
  ], KRCodeDemo.prototype, "activeTab", void 0);
4121
- __decorate$q([
4121
+ __decorate$r([
4122
4122
  r$1()
4123
4123
  ], KRCodeDemo.prototype, "copied", void 0);
4124
- __decorate$q([
4124
+ __decorate$r([
4125
4125
  r$1()
4126
4126
  ], KRCodeDemo.prototype, "highlightedCode", void 0);
4127
4127
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -4131,7 +4131,7 @@
4131
4131
  customElements.define('krs-code-demo', KRCodeDemo);
4132
4132
  }
4133
4133
 
4134
- var __decorate$p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4134
+ var __decorate$q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4135
4135
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4136
4136
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4137
4137
  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;
@@ -4301,7 +4301,7 @@
4301
4301
  margin: 4px 0;
4302
4302
  }
4303
4303
  `;
4304
- __decorate$p([
4304
+ __decorate$q([
4305
4305
  r$1()
4306
4306
  ], KRContextMenu.prototype, "items", void 0);
4307
4307
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -4311,7 +4311,7 @@
4311
4311
  customElements.define('krs-context-menu', KRContextMenu);
4312
4312
  }
4313
4313
 
4314
- var __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4314
+ var __decorate$p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4315
4315
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4316
4316
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4317
4317
  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;
@@ -4635,19 +4635,19 @@
4635
4635
  flex-direction: column;
4636
4636
  }
4637
4637
  `;
4638
- __decorate$o([
4638
+ __decorate$p([
4639
4639
  n$1({
4640
4640
  type: Boolean,
4641
4641
  reflect: true,
4642
4642
  })
4643
4643
  ], KRDialog.prototype, "opened", void 0);
4644
- __decorate$o([
4644
+ __decorate$p([
4645
4645
  n$1({ type: String })
4646
4646
  ], KRDialog.prototype, "label", void 0);
4647
- __decorate$o([
4647
+ __decorate$p([
4648
4648
  n$1({ type: String })
4649
4649
  ], KRDialog.prototype, "width", void 0);
4650
- __decorate$o([
4650
+ __decorate$p([
4651
4651
  r$1()
4652
4652
  ], KRDialog.prototype, "_contentElement", void 0);
4653
4653
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -4666,7 +4666,7 @@
4666
4666
  customElements.define('krs-dialog', KRDialog);
4667
4667
  }
4668
4668
 
4669
- var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4669
+ var __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4670
4670
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4671
4671
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4672
4672
  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;
@@ -5381,58 +5381,58 @@
5381
5381
  `;
5382
5382
  // Enable form association
5383
5383
  KRDateRangePicker.formAssociated = true;
5384
- __decorate$n([
5384
+ __decorate$o([
5385
5385
  n$1({ type: String })
5386
5386
  ], KRDateRangePicker.prototype, "name", void 0);
5387
- __decorate$n([
5387
+ __decorate$o([
5388
5388
  n$1({
5389
5389
  type: Boolean,
5390
5390
  reflect: true,
5391
5391
  })
5392
5392
  ], KRDateRangePicker.prototype, "dirty", void 0);
5393
- __decorate$n([
5393
+ __decorate$o([
5394
5394
  n$1({ attribute: 'save-mode' })
5395
5395
  ], KRDateRangePicker.prototype, "saveMode", void 0);
5396
- __decorate$n([
5396
+ __decorate$o([
5397
5397
  n$1({
5398
5398
  type: Boolean,
5399
5399
  reflect: true,
5400
5400
  })
5401
5401
  ], KRDateRangePicker.prototype, "saving", void 0);
5402
- __decorate$n([
5402
+ __decorate$o([
5403
5403
  n$1({ type: Object })
5404
5404
  ], KRDateRangePicker.prototype, "value", void 0);
5405
- __decorate$n([
5405
+ __decorate$o([
5406
5406
  n$1({ type: Array })
5407
5407
  ], KRDateRangePicker.prototype, "relativeOptions", void 0);
5408
- __decorate$n([
5408
+ __decorate$o([
5409
5409
  n$1({ type: Boolean })
5410
5410
  ], KRDateRangePicker.prototype, "disabled", void 0);
5411
- __decorate$n([
5411
+ __decorate$o([
5412
5412
  n$1({ type: Boolean })
5413
5413
  ], KRDateRangePicker.prototype, "invalid", void 0);
5414
- __decorate$n([
5414
+ __decorate$o([
5415
5415
  n$1({ type: String })
5416
5416
  ], KRDateRangePicker.prototype, "placeholder", void 0);
5417
- __decorate$n([
5417
+ __decorate$o([
5418
5418
  n$1({ type: String })
5419
5419
  ], KRDateRangePicker.prototype, "startDate", void 0);
5420
- __decorate$n([
5420
+ __decorate$o([
5421
5421
  n$1({ type: String })
5422
5422
  ], KRDateRangePicker.prototype, "endDate", void 0);
5423
- __decorate$n([
5423
+ __decorate$o([
5424
5424
  n$1({ type: String })
5425
5425
  ], KRDateRangePicker.prototype, "mode", void 0);
5426
- __decorate$n([
5426
+ __decorate$o([
5427
5427
  r$1()
5428
5428
  ], KRDateRangePicker.prototype, "_isOpen", void 0);
5429
- __decorate$n([
5429
+ __decorate$o([
5430
5430
  r$1()
5431
5431
  ], KRDateRangePicker.prototype, "_activeTab", void 0);
5432
- __decorate$n([
5432
+ __decorate$o([
5433
5433
  r$1()
5434
5434
  ], KRDateRangePicker.prototype, "_tempStartDate", void 0);
5435
- __decorate$n([
5435
+ __decorate$o([
5436
5436
  r$1()
5437
5437
  ], KRDateRangePicker.prototype, "_tempEndDate", void 0);
5438
5438
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -5442,7 +5442,7 @@
5442
5442
  customElements.define('krs-date-range-picker', KRDateRangePicker);
5443
5443
  }
5444
5444
 
5445
- var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5445
+ var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5446
5446
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5447
5447
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5448
5448
  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;
@@ -5845,19 +5845,19 @@
5845
5845
  `;
5846
5846
  /** Track active snackbars for stacking */
5847
5847
  KRSnackbar.activeSnackbars = [];
5848
- __decorate$m([
5848
+ __decorate$n([
5849
5849
  n$1({ type: String })
5850
5850
  ], KRSnackbar.prototype, "type", void 0);
5851
- __decorate$m([
5851
+ __decorate$n([
5852
5852
  n$1({ type: String })
5853
5853
  ], KRSnackbar.prototype, "title", void 0);
5854
- __decorate$m([
5854
+ __decorate$n([
5855
5855
  n$1({ type: String })
5856
5856
  ], KRSnackbar.prototype, "message", void 0);
5857
- __decorate$m([
5857
+ __decorate$n([
5858
5858
  n$1({ type: Number })
5859
5859
  ], KRSnackbar.prototype, "duration", void 0);
5860
- __decorate$m([
5860
+ __decorate$n([
5861
5861
  n$1({ attribute: false })
5862
5862
  ], KRSnackbar.prototype, "action", void 0);
5863
5863
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -5867,7 +5867,7 @@
5867
5867
  customElements.define('krs-snackbar', KRSnackbar);
5868
5868
  }
5869
5869
 
5870
- var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5870
+ var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5871
5871
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5872
5872
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5873
5873
  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;
@@ -6205,16 +6205,16 @@
6205
6205
  }
6206
6206
  `,
6207
6207
  ];
6208
- __decorate$l([
6208
+ __decorate$m([
6209
6209
  n$1({
6210
6210
  type: String,
6211
6211
  attribute: 'active-tab-id',
6212
6212
  })
6213
6213
  ], KRTabGroup.prototype, "activeTabId", void 0);
6214
- __decorate$l([
6214
+ __decorate$m([
6215
6215
  n$1({ type: Boolean })
6216
6216
  ], KRTabGroup.prototype, "justified", void 0);
6217
- __decorate$l([
6217
+ __decorate$m([
6218
6218
  n$1({
6219
6219
  type: String,
6220
6220
  reflect: true,
@@ -6227,7 +6227,7 @@
6227
6227
  customElements.define('krs-tab-group', KRTabGroup);
6228
6228
  }
6229
6229
 
6230
- var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6230
+ var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6231
6231
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6232
6232
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6233
6233
  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;
@@ -6308,37 +6308,37 @@
6308
6308
  }
6309
6309
  `,
6310
6310
  ];
6311
- __decorate$k([
6311
+ __decorate$l([
6312
6312
  n$1({
6313
6313
  type: String,
6314
6314
  reflect: true,
6315
6315
  })
6316
6316
  ], KRTab.prototype, "id", void 0);
6317
- __decorate$k([
6317
+ __decorate$l([
6318
6318
  n$1({ type: String })
6319
6319
  ], KRTab.prototype, "label", void 0);
6320
- __decorate$k([
6320
+ __decorate$l([
6321
6321
  n$1({ type: String })
6322
6322
  ], KRTab.prototype, "badge", void 0);
6323
- __decorate$k([
6323
+ __decorate$l([
6324
6324
  n$1({
6325
6325
  type: String,
6326
6326
  attribute: 'badge-background',
6327
6327
  })
6328
6328
  ], KRTab.prototype, "badgeBackground", void 0);
6329
- __decorate$k([
6329
+ __decorate$l([
6330
6330
  n$1({
6331
6331
  type: String,
6332
6332
  attribute: 'badge-color',
6333
6333
  })
6334
6334
  ], KRTab.prototype, "badgeColor", void 0);
6335
- __decorate$k([
6335
+ __decorate$l([
6336
6336
  n$1({ type: Boolean })
6337
6337
  ], KRTab.prototype, "disabled", void 0);
6338
- __decorate$k([
6338
+ __decorate$l([
6339
6339
  n$1({ type: Boolean })
6340
6340
  ], KRTab.prototype, "dismissible", void 0);
6341
- __decorate$k([
6341
+ __decorate$l([
6342
6342
  n$1({
6343
6343
  type: Boolean,
6344
6344
  reflect: true,
@@ -6351,7 +6351,7 @@
6351
6351
  customElements.define('krs-tab', KRTab);
6352
6352
  }
6353
6353
 
6354
- var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6354
+ var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6355
6355
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6356
6356
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6357
6357
  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;
@@ -6388,10 +6388,10 @@
6388
6388
  display: none;
6389
6389
  }
6390
6390
  `;
6391
- __decorate$j([
6391
+ __decorate$k([
6392
6392
  n$1({ type: String })
6393
6393
  ], KRSelectOption.prototype, "value", void 0);
6394
- __decorate$j([
6394
+ __decorate$k([
6395
6395
  n$1({ type: Boolean })
6396
6396
  ], KRSelectOption.prototype, "disabled", void 0);
6397
6397
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -6401,7 +6401,7 @@
6401
6401
  customElements.define('krs-select-option', KRSelectOption);
6402
6402
  }
6403
6403
 
6404
- var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6404
+ var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6405
6405
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6406
6406
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6407
6407
  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;
@@ -7000,55 +7000,55 @@
7000
7000
  `];
7001
7001
  // Enable form association
7002
7002
  KRSelectField.formAssociated = true;
7003
- __decorate$i([
7003
+ __decorate$j([
7004
7004
  n$1({ type: String })
7005
7005
  ], KRSelectField.prototype, "label", void 0);
7006
- __decorate$i([
7006
+ __decorate$j([
7007
7007
  n$1({ type: String })
7008
7008
  ], KRSelectField.prototype, "name", void 0);
7009
- __decorate$i([
7009
+ __decorate$j([
7010
7010
  n$1({ type: String })
7011
7011
  ], KRSelectField.prototype, "value", void 0);
7012
- __decorate$i([
7012
+ __decorate$j([
7013
7013
  n$1({ type: String })
7014
7014
  ], KRSelectField.prototype, "placeholder", void 0);
7015
- __decorate$i([
7015
+ __decorate$j([
7016
7016
  n$1({ type: Boolean })
7017
7017
  ], KRSelectField.prototype, "disabled", void 0);
7018
- __decorate$i([
7018
+ __decorate$j([
7019
7019
  n$1({ type: Boolean })
7020
7020
  ], KRSelectField.prototype, "required", void 0);
7021
- __decorate$i([
7021
+ __decorate$j([
7022
7022
  n$1({ type: Boolean })
7023
7023
  ], KRSelectField.prototype, "readonly", void 0);
7024
- __decorate$i([
7024
+ __decorate$j([
7025
7025
  n$1({ type: String })
7026
7026
  ], KRSelectField.prototype, "hint", void 0);
7027
- __decorate$i([
7027
+ __decorate$j([
7028
7028
  n$1({
7029
7029
  type: Boolean,
7030
7030
  reflect: true,
7031
7031
  })
7032
7032
  ], KRSelectField.prototype, "dirty", void 0);
7033
- __decorate$i([
7033
+ __decorate$j([
7034
7034
  n$1({ attribute: 'save-mode' })
7035
7035
  ], KRSelectField.prototype, "saveMode", void 0);
7036
- __decorate$i([
7036
+ __decorate$j([
7037
7037
  n$1({
7038
7038
  type: Boolean,
7039
7039
  reflect: true,
7040
7040
  })
7041
7041
  ], KRSelectField.prototype, "saving", void 0);
7042
- __decorate$i([
7042
+ __decorate$j([
7043
7043
  r$1()
7044
7044
  ], KRSelectField.prototype, "_isOpen", void 0);
7045
- __decorate$i([
7045
+ __decorate$j([
7046
7046
  r$1()
7047
7047
  ], KRSelectField.prototype, "_highlightedIndex", void 0);
7048
- __decorate$i([
7048
+ __decorate$j([
7049
7049
  r$1()
7050
7050
  ], KRSelectField.prototype, "_touched", void 0);
7051
- __decorate$i([
7051
+ __decorate$j([
7052
7052
  e$3('.select-trigger')
7053
7053
  ], KRSelectField.prototype, "_triggerElement", void 0);
7054
7054
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -8334,7 +8334,7 @@
8334
8334
  }
8335
8335
  }
8336
8336
 
8337
- var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8337
+ var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8338
8338
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8339
8339
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8340
8340
  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;
@@ -8639,6 +8639,12 @@
8639
8639
  refresh() {
8640
8640
  this._fetch();
8641
8641
  }
8642
+ goToFirstPage() {
8643
+ if (this._page > 1) {
8644
+ this._page = 1;
8645
+ this._fetch();
8646
+ }
8647
+ }
8642
8648
  goToPrevPage() {
8643
8649
  if (this._page > 1) {
8644
8650
  this._page--;
@@ -8651,6 +8657,12 @@
8651
8657
  this._fetch();
8652
8658
  }
8653
8659
  }
8660
+ goToLastPage() {
8661
+ if (this._page < this._totalPages) {
8662
+ this._page = this._totalPages;
8663
+ this._fetch();
8664
+ }
8665
+ }
8654
8666
  goToPage(page) {
8655
8667
  if (page >= 1 && page <= this._totalPages) {
8656
8668
  this._page = page;
@@ -9344,9 +9356,9 @@
9344
9356
  }
9345
9357
  /**
9346
9358
  * Renders the pagination controls:
9347
- * - Previous page arrow (disabled on first page)
9359
+ * - First page and previous page arrows (disabled on first page)
9348
9360
  * - Range text showing "1-50 of 150" format
9349
- * - Next page arrow (disabled on last page)
9361
+ * - Next page and last page arrows (disabled on last page)
9350
9362
  *
9351
9363
  * Hidden when there's no data or all data fits on one page.
9352
9364
  */
@@ -9355,6 +9367,18 @@
9355
9367
  const end = Math.min(this._page * this._pageSize, this._totalItems);
9356
9368
  return b `
9357
9369
  <div class="pagination">
9370
+ <span
9371
+ class=${e$1({
9372
+ 'pagination-icon': true,
9373
+ 'pagination-icon--disabled': this._page === 1
9374
+ })}
9375
+ title="First page"
9376
+ @click=${this.goToFirstPage}
9377
+ >
9378
+ <svg viewBox="0 0 24 24" fill="currentColor">
9379
+ <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
9380
+ </svg>
9381
+ </span>
9358
9382
  <span
9359
9383
  class=${e$1({
9360
9384
  'pagination-icon': true,
@@ -9378,6 +9402,18 @@
9378
9402
  <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
9379
9403
  </svg>
9380
9404
  </span>
9405
+ <span
9406
+ class=${e$1({
9407
+ 'pagination-icon': true,
9408
+ 'pagination-icon--disabled': this._page === this._totalPages
9409
+ })}
9410
+ title="Last page"
9411
+ @click=${this.goToLastPage}
9412
+ >
9413
+ <svg viewBox="0 0 24 24" fill="currentColor">
9414
+ <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
9415
+ </svg>
9416
+ </span>
9381
9417
  </div>
9382
9418
  `;
9383
9419
  }
@@ -10913,58 +10949,58 @@
10913
10949
  }
10914
10950
 
10915
10951
  `];
10916
- __decorate$h([
10952
+ __decorate$i([
10917
10953
  n$1({ type: Object })
10918
10954
  ], KRTable.prototype, "def", void 0);
10919
- __decorate$h([
10955
+ __decorate$i([
10920
10956
  n$1({
10921
10957
  type: String,
10922
10958
  reflect: true
10923
10959
  })
10924
10960
  ], KRTable.prototype, "variant", void 0);
10925
- __decorate$h([
10961
+ __decorate$i([
10926
10962
  r$1()
10927
10963
  ], KRTable.prototype, "_data", void 0);
10928
- __decorate$h([
10964
+ __decorate$i([
10929
10965
  r$1()
10930
10966
  ], KRTable.prototype, "_dataState", void 0);
10931
- __decorate$h([
10967
+ __decorate$i([
10932
10968
  r$1()
10933
10969
  ], KRTable.prototype, "_page", void 0);
10934
- __decorate$h([
10970
+ __decorate$i([
10935
10971
  r$1()
10936
10972
  ], KRTable.prototype, "_pageSize", void 0);
10937
- __decorate$h([
10973
+ __decorate$i([
10938
10974
  r$1()
10939
10975
  ], KRTable.prototype, "_totalItems", void 0);
10940
- __decorate$h([
10976
+ __decorate$i([
10941
10977
  r$1()
10942
10978
  ], KRTable.prototype, "_totalPages", void 0);
10943
- __decorate$h([
10979
+ __decorate$i([
10944
10980
  r$1()
10945
10981
  ], KRTable.prototype, "_searchQuery", void 0);
10946
- __decorate$h([
10982
+ __decorate$i([
10947
10983
  r$1()
10948
10984
  ], KRTable.prototype, "_canScrollLeft", void 0);
10949
- __decorate$h([
10985
+ __decorate$i([
10950
10986
  r$1()
10951
10987
  ], KRTable.prototype, "_canScrollRight", void 0);
10952
- __decorate$h([
10988
+ __decorate$i([
10953
10989
  r$1()
10954
10990
  ], KRTable.prototype, "_canScrollHorizontal", void 0);
10955
- __decorate$h([
10991
+ __decorate$i([
10956
10992
  r$1()
10957
10993
  ], KRTable.prototype, "_columnPickerOpen", void 0);
10958
- __decorate$h([
10994
+ __decorate$i([
10959
10995
  r$1()
10960
10996
  ], KRTable.prototype, "_filterPanelOpened", void 0);
10961
- __decorate$h([
10997
+ __decorate$i([
10962
10998
  r$1()
10963
10999
  ], KRTable.prototype, "_filterPanelTab", void 0);
10964
- __decorate$h([
11000
+ __decorate$i([
10965
11001
  r$1()
10966
11002
  ], KRTable.prototype, "_buckets", void 0);
10967
- __decorate$h([
11003
+ __decorate$i([
10968
11004
  r$1()
10969
11005
  ], KRTable.prototype, "_sorts", void 0);
10970
11006
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -10974,7 +11010,7 @@
10974
11010
  customElements.define('krs-table', KRTable);
10975
11011
  }
10976
11012
 
10977
- var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11013
+ var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10978
11014
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10979
11015
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10980
11016
  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;
@@ -11343,43 +11379,43 @@
11343
11379
  }
11344
11380
  `];
11345
11381
  KRCheckbox.formAssociated = true;
11346
- __decorate$g([
11382
+ __decorate$h([
11347
11383
  n$1({ type: String })
11348
11384
  ], KRCheckbox.prototype, "label", void 0);
11349
- __decorate$g([
11385
+ __decorate$h([
11350
11386
  n$1({ type: String })
11351
11387
  ], KRCheckbox.prototype, "name", void 0);
11352
- __decorate$g([
11388
+ __decorate$h([
11353
11389
  n$1({ type: String })
11354
11390
  ], KRCheckbox.prototype, "value", void 0);
11355
- __decorate$g([
11391
+ __decorate$h([
11356
11392
  n$1({ type: Boolean })
11357
11393
  ], KRCheckbox.prototype, "checked", void 0);
11358
- __decorate$g([
11394
+ __decorate$h([
11359
11395
  n$1({ type: Boolean })
11360
11396
  ], KRCheckbox.prototype, "disabled", void 0);
11361
- __decorate$g([
11397
+ __decorate$h([
11362
11398
  n$1({ type: Boolean })
11363
11399
  ], KRCheckbox.prototype, "required", void 0);
11364
- __decorate$g([
11400
+ __decorate$h([
11365
11401
  n$1({ type: String })
11366
11402
  ], KRCheckbox.prototype, "hint", void 0);
11367
- __decorate$g([
11403
+ __decorate$h([
11368
11404
  n$1({
11369
11405
  type: Boolean,
11370
11406
  reflect: true,
11371
11407
  })
11372
11408
  ], KRCheckbox.prototype, "dirty", void 0);
11373
- __decorate$g([
11409
+ __decorate$h([
11374
11410
  n$1({ attribute: 'save-mode' })
11375
11411
  ], KRCheckbox.prototype, "saveMode", void 0);
11376
- __decorate$g([
11412
+ __decorate$h([
11377
11413
  n$1({
11378
11414
  type: Boolean,
11379
11415
  reflect: true,
11380
11416
  })
11381
11417
  ], KRCheckbox.prototype, "saving", void 0);
11382
- __decorate$g([
11418
+ __decorate$h([
11383
11419
  r$1()
11384
11420
  ], KRCheckbox.prototype, "_touched", void 0);
11385
11421
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -11389,7 +11425,7 @@
11389
11425
  customElements.define('krs-checkbox', KRCheckbox);
11390
11426
  }
11391
11427
 
11392
- var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11428
+ var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11393
11429
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11394
11430
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11395
11431
  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;
@@ -11692,6 +11728,12 @@
11692
11728
  refresh() {
11693
11729
  this._fetch();
11694
11730
  }
11731
+ goToFirstPage() {
11732
+ if (this._page > 1) {
11733
+ this._page = 1;
11734
+ this._fetch();
11735
+ }
11736
+ }
11695
11737
  goToPrevPage() {
11696
11738
  if (this._page > 1) {
11697
11739
  this._page--;
@@ -11704,6 +11746,12 @@
11704
11746
  this._fetch();
11705
11747
  }
11706
11748
  }
11749
+ goToLastPage() {
11750
+ if (this._page < this._totalPages) {
11751
+ this._page = this._totalPages;
11752
+ this._fetch();
11753
+ }
11754
+ }
11707
11755
  goToPage(page) {
11708
11756
  if (page >= 1 && page <= this._totalPages) {
11709
11757
  this._page = page;
@@ -12557,9 +12605,9 @@
12557
12605
  }
12558
12606
  /**
12559
12607
  * Renders the pagination controls:
12560
- * - Previous page arrow (disabled on first page)
12608
+ * - First page and previous page arrows (disabled on first page)
12561
12609
  * - Range text showing "1-50 of 150" format
12562
- * - Next page arrow (disabled on last page)
12610
+ * - Next page and last page arrows (disabled on last page)
12563
12611
  *
12564
12612
  * Hidden when there's no data or all data fits on one page.
12565
12613
  */
@@ -12568,6 +12616,18 @@
12568
12616
  const end = Math.min(this._page * this._pageSize, this._totalItems);
12569
12617
  return b `
12570
12618
  <div class="pagination">
12619
+ <span
12620
+ class=${e$1({
12621
+ 'pagination-icon': true,
12622
+ 'pagination-icon--disabled': this._page === 1
12623
+ })}
12624
+ title="First page"
12625
+ @click=${this.goToFirstPage}
12626
+ >
12627
+ <svg viewBox="0 0 24 24" fill="currentColor">
12628
+ <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
12629
+ </svg>
12630
+ </span>
12571
12631
  <span
12572
12632
  class=${e$1({
12573
12633
  'pagination-icon': true,
@@ -12591,6 +12651,18 @@
12591
12651
  <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
12592
12652
  </svg>
12593
12653
  </span>
12654
+ <span
12655
+ class=${e$1({
12656
+ 'pagination-icon': true,
12657
+ 'pagination-icon--disabled': this._page === this._totalPages
12658
+ })}
12659
+ title="Last page"
12660
+ @click=${this.goToLastPage}
12661
+ >
12662
+ <svg viewBox="0 0 24 24" fill="currentColor">
12663
+ <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
12664
+ </svg>
12665
+ </span>
12594
12666
  </div>
12595
12667
  `;
12596
12668
  }
@@ -14291,65 +14363,65 @@
14291
14363
  }
14292
14364
 
14293
14365
  `];
14294
- __decorate$f([
14366
+ __decorate$g([
14295
14367
  n$1({ type: Object })
14296
14368
  ], KRGrid.prototype, "def", void 0);
14297
- __decorate$f([
14369
+ __decorate$g([
14298
14370
  n$1({
14299
14371
  type: String,
14300
14372
  reflect: true
14301
14373
  })
14302
14374
  ], KRGrid.prototype, "variant", void 0);
14303
- __decorate$f([
14375
+ __decorate$g([
14304
14376
  n$1({
14305
14377
  type: String,
14306
14378
  attribute: 'scroll-mode',
14307
14379
  reflect: true
14308
14380
  })
14309
14381
  ], KRGrid.prototype, "scrollMode", void 0);
14310
- __decorate$f([
14382
+ __decorate$g([
14311
14383
  r$1()
14312
14384
  ], KRGrid.prototype, "_data", void 0);
14313
- __decorate$f([
14385
+ __decorate$g([
14314
14386
  r$1()
14315
14387
  ], KRGrid.prototype, "_dataState", void 0);
14316
- __decorate$f([
14388
+ __decorate$g([
14317
14389
  r$1()
14318
14390
  ], KRGrid.prototype, "_page", void 0);
14319
- __decorate$f([
14391
+ __decorate$g([
14320
14392
  r$1()
14321
14393
  ], KRGrid.prototype, "_pageSize", void 0);
14322
- __decorate$f([
14394
+ __decorate$g([
14323
14395
  r$1()
14324
14396
  ], KRGrid.prototype, "_totalItems", void 0);
14325
- __decorate$f([
14397
+ __decorate$g([
14326
14398
  r$1()
14327
14399
  ], KRGrid.prototype, "_totalPages", void 0);
14328
- __decorate$f([
14400
+ __decorate$g([
14329
14401
  r$1()
14330
14402
  ], KRGrid.prototype, "_searchQuery", void 0);
14331
- __decorate$f([
14403
+ __decorate$g([
14332
14404
  r$1()
14333
14405
  ], KRGrid.prototype, "_canScrollLeft", void 0);
14334
- __decorate$f([
14406
+ __decorate$g([
14335
14407
  r$1()
14336
14408
  ], KRGrid.prototype, "_canScrollRight", void 0);
14337
- __decorate$f([
14409
+ __decorate$g([
14338
14410
  r$1()
14339
14411
  ], KRGrid.prototype, "_canScrollHorizontal", void 0);
14340
- __decorate$f([
14412
+ __decorate$g([
14341
14413
  r$1()
14342
14414
  ], KRGrid.prototype, "_columnPickerOpen", void 0);
14343
- __decorate$f([
14415
+ __decorate$g([
14344
14416
  r$1()
14345
14417
  ], KRGrid.prototype, "_filterPanelOpened", void 0);
14346
- __decorate$f([
14418
+ __decorate$g([
14347
14419
  r$1()
14348
14420
  ], KRGrid.prototype, "_filterPanelTab", void 0);
14349
- __decorate$f([
14421
+ __decorate$g([
14350
14422
  r$1()
14351
14423
  ], KRGrid.prototype, "_buckets", void 0);
14352
- __decorate$f([
14424
+ __decorate$g([
14353
14425
  r$1()
14354
14426
  ], KRGrid.prototype, "_sorts", void 0);
14355
14427
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -14359,7 +14431,7 @@
14359
14431
  customElements.define('krs-grid', KRGrid);
14360
14432
  }
14361
14433
 
14362
- var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14434
+ var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14363
14435
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14364
14436
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14365
14437
  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;
@@ -14737,22 +14809,22 @@
14737
14809
  }
14738
14810
  `,
14739
14811
  ];
14740
- __decorate$e([
14812
+ __decorate$f([
14741
14813
  n$1({
14742
14814
  type: Boolean,
14743
14815
  reflect: true
14744
14816
  })
14745
14817
  ], KRGridDialog.prototype, "opened", void 0);
14746
- __decorate$e([
14818
+ __decorate$f([
14747
14819
  n$1({ type: String })
14748
14820
  ], KRGridDialog.prototype, "title", void 0);
14749
- __decorate$e([
14821
+ __decorate$f([
14750
14822
  n$1({ type: String })
14751
14823
  ], KRGridDialog.prototype, "description", void 0);
14752
- __decorate$e([
14824
+ __decorate$f([
14753
14825
  n$1({ attribute: false })
14754
14826
  ], KRGridDialog.prototype, "def", void 0);
14755
- __decorate$e([
14827
+ __decorate$f([
14756
14828
  n$1({ attribute: false })
14757
14829
  ], KRGridDialog.prototype, "actions", void 0);
14758
14830
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -14762,7 +14834,7 @@
14762
14834
  customElements.define('krs-grid-dialog', KRGridDialog);
14763
14835
  }
14764
14836
 
14765
- var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14837
+ var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14766
14838
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14767
14839
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14768
14840
  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;
@@ -14886,13 +14958,13 @@
14886
14958
  stroke-linecap: round;
14887
14959
  }
14888
14960
  `;
14889
- __decorate$d([
14961
+ __decorate$e([
14890
14962
  n$1({
14891
14963
  type: String,
14892
14964
  reflect: true,
14893
14965
  })
14894
14966
  ], KRSpinner.prototype, "size", void 0);
14895
- __decorate$d([
14967
+ __decorate$e([
14896
14968
  n$1({
14897
14969
  type: String,
14898
14970
  reflect: true,
@@ -14905,7 +14977,7 @@
14905
14977
  customElements.define('krs-spinner', KRSpinner);
14906
14978
  }
14907
14979
 
14908
- var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14980
+ var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14909
14981
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14910
14982
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14911
14983
  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;
@@ -14996,13 +15068,13 @@
14996
15068
  }
14997
15069
  }
14998
15070
  `;
14999
- __decorate$c([
15071
+ __decorate$d([
15000
15072
  n$1({
15001
15073
  type: String,
15002
15074
  reflect: true,
15003
15075
  })
15004
15076
  ], KRProgressBar.prototype, "color", void 0);
15005
- __decorate$c([
15077
+ __decorate$d([
15006
15078
  n$1({
15007
15079
  type: String,
15008
15080
  reflect: true,
@@ -15015,7 +15087,7 @@
15015
15087
  customElements.define('krs-progress-bar', KRProgressBar);
15016
15088
  }
15017
15089
 
15018
- var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15090
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15019
15091
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15020
15092
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15021
15093
  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;
@@ -15579,16 +15651,16 @@
15579
15651
  `;
15580
15652
  // eslint-disable-next-line kodaris/component-name-context
15581
15653
  KRFilePreview._activePreview = null;
15582
- __decorate$b([
15654
+ __decorate$c([
15583
15655
  n$1({ type: String })
15584
15656
  ], KRFilePreview.prototype, "src", void 0);
15585
- __decorate$b([
15657
+ __decorate$c([
15586
15658
  n$1({ type: String })
15587
15659
  ], KRFilePreview.prototype, "name", void 0);
15588
- __decorate$b([
15660
+ __decorate$c([
15589
15661
  r$1()
15590
15662
  ], KRFilePreview.prototype, "_zoomLevel", void 0);
15591
- __decorate$b([
15663
+ __decorate$c([
15592
15664
  r$1()
15593
15665
  ], KRFilePreview.prototype, "_textContent", void 0);
15594
15666
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -15598,7 +15670,7 @@
15598
15670
  customElements.define('krs-file-preview', KRFilePreview);
15599
15671
  }
15600
15672
 
15601
- var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15673
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15602
15674
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15603
15675
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15604
15676
  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;
@@ -15916,10 +15988,10 @@
15916
15988
  padding: 20px;
15917
15989
  }
15918
15990
  `;
15919
- __decorate$a([
15991
+ __decorate$b([
15920
15992
  n$1({ type: Array })
15921
15993
  ], KRFileList.prototype, "files", void 0);
15922
- __decorate$a([
15994
+ __decorate$b([
15923
15995
  n$1({
15924
15996
  type: String,
15925
15997
  attribute: 'empty-message',
@@ -15944,7 +16016,7 @@
15944
16016
  * SPDX-License-Identifier: BSD-3-Clause
15945
16017
  */const l=e$2(class extends i$2{constructor(r$1){if(super(r$1),r$1.type!==t$1.PROPERTY&&r$1.type!==t$1.ATTRIBUTE&&r$1.type!==t$1.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]){if(t===E||t===A)return t;const o=i.element,l=i.name;if(i.type===t$1.PROPERTY){if(t===o[l])return E}else if(i.type===t$1.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(l))return E}else if(i.type===t$1.ATTRIBUTE&&o.getAttribute(l)===t+"")return E;return p(i),t}});
15946
16018
 
15947
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16019
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15948
16020
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15949
16021
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15950
16022
  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;
@@ -16321,67 +16393,67 @@
16321
16393
  `;
16322
16394
  // Enable form association
16323
16395
  KRTextField.formAssociated = true;
16324
- __decorate$9([
16396
+ __decorate$a([
16325
16397
  n$1({ type: String })
16326
16398
  ], KRTextField.prototype, "label", void 0);
16327
- __decorate$9([
16399
+ __decorate$a([
16328
16400
  n$1({ type: String })
16329
16401
  ], KRTextField.prototype, "name", void 0);
16330
- __decorate$9([
16402
+ __decorate$a([
16331
16403
  n$1({ type: String })
16332
16404
  ], KRTextField.prototype, "value", void 0);
16333
- __decorate$9([
16405
+ __decorate$a([
16334
16406
  n$1({ attribute: false })
16335
16407
  ], KRTextField.prototype, "valueAsNumber", void 0);
16336
- __decorate$9([
16408
+ __decorate$a([
16337
16409
  n$1({ type: String })
16338
16410
  ], KRTextField.prototype, "placeholder", void 0);
16339
- __decorate$9([
16411
+ __decorate$a([
16340
16412
  n$1({ type: String })
16341
16413
  ], KRTextField.prototype, "type", void 0);
16342
- __decorate$9([
16414
+ __decorate$a([
16343
16415
  n$1({ type: Boolean })
16344
16416
  ], KRTextField.prototype, "required", void 0);
16345
- __decorate$9([
16417
+ __decorate$a([
16346
16418
  n$1({ type: Boolean })
16347
16419
  ], KRTextField.prototype, "disabled", void 0);
16348
- __decorate$9([
16420
+ __decorate$a([
16349
16421
  n$1({ type: Boolean })
16350
16422
  ], KRTextField.prototype, "readonly", void 0);
16351
- __decorate$9([
16423
+ __decorate$a([
16352
16424
  n$1({ type: Number })
16353
16425
  ], KRTextField.prototype, "minlength", void 0);
16354
- __decorate$9([
16426
+ __decorate$a([
16355
16427
  n$1({ type: Number })
16356
16428
  ], KRTextField.prototype, "maxlength", void 0);
16357
- __decorate$9([
16429
+ __decorate$a([
16358
16430
  n$1({ type: String })
16359
16431
  ], KRTextField.prototype, "pattern", void 0);
16360
- __decorate$9([
16432
+ __decorate$a([
16361
16433
  n$1({ type: String })
16362
16434
  ], KRTextField.prototype, "autocomplete", void 0);
16363
- __decorate$9([
16435
+ __decorate$a([
16364
16436
  n$1({ type: String })
16365
16437
  ], KRTextField.prototype, "hint", void 0);
16366
- __decorate$9([
16438
+ __decorate$a([
16367
16439
  n$1({
16368
16440
  type: Boolean,
16369
16441
  reflect: true,
16370
16442
  })
16371
16443
  ], KRTextField.prototype, "dirty", void 0);
16372
- __decorate$9([
16444
+ __decorate$a([
16373
16445
  n$1({ attribute: 'save-mode' })
16374
16446
  ], KRTextField.prototype, "saveMode", void 0);
16375
- __decorate$9([
16447
+ __decorate$a([
16376
16448
  n$1({
16377
16449
  type: Boolean,
16378
16450
  reflect: true,
16379
16451
  })
16380
16452
  ], KRTextField.prototype, "saving", void 0);
16381
- __decorate$9([
16453
+ __decorate$a([
16382
16454
  r$1()
16383
16455
  ], KRTextField.prototype, "_touched", void 0);
16384
- __decorate$9([
16456
+ __decorate$a([
16385
16457
  e$3('input')
16386
16458
  ], KRTextField.prototype, "_input", void 0);
16387
16459
  // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
@@ -16391,29 +16463,32 @@
16391
16463
  customElements.define('krs-text-field', KRTextField);
16392
16464
  }
16393
16465
 
16394
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16466
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16395
16467
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16396
16468
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16397
16469
  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;
16398
16470
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16399
16471
  };
16400
16472
  /**
16401
- * A textarea component that works with native browser forms.
16473
+ * A number field component that works with native browser forms.
16402
16474
  *
16403
- * Uses ElementInternals for form association, allowing the component
16404
- * to participate in form submission, validation, and reset.
16475
+ * Wraps a native number input, so the browser supplies the numeric keyboard, the spin buttons and
16476
+ * min/max/step validation. Uses ElementInternals for form association, allowing the component to
16477
+ * participate in form submission, validation, and reset.
16405
16478
  *
16406
- * Native input and change events bubble up from the inner textarea element.
16479
+ * `value` is the text in the input, as a native number input reports it. `valueAsNumber` is the
16480
+ * parsed number, or null when the field is empty; <krs-form> reads it so a change carries a real
16481
+ * number rather than a string.
16407
16482
  *
16408
- * @element krs-textarea-field
16483
+ * Native input and change events bubble up from the inner input element.
16409
16484
  */
16410
- class KRTextareaField extends i$3 {
16485
+ class KRNumberField extends i$3 {
16411
16486
  /**
16412
16487
  * Builds a field from a plain object, as a tool's UI spec describes one. Every key is one of this
16413
16488
  * field's own properties and is set only when present, so an absent key keeps the default.
16414
16489
  */
16415
16490
  static fromJSON(json) {
16416
- const field = new KRTextareaField();
16491
+ const field = new KRNumberField();
16417
16492
  if (json.label !== undefined) {
16418
16493
  field.label = json.label;
16419
16494
  }
@@ -16421,11 +16496,20 @@
16421
16496
  field.name = json.name;
16422
16497
  }
16423
16498
  if (json.value !== undefined) {
16424
- field.value = json.value;
16499
+ field.value = String(json.value);
16425
16500
  }
16426
16501
  if (json.placeholder !== undefined) {
16427
16502
  field.placeholder = json.placeholder;
16428
16503
  }
16504
+ if (json.min !== undefined) {
16505
+ field.min = json.min;
16506
+ }
16507
+ if (json.max !== undefined) {
16508
+ field.max = json.max;
16509
+ }
16510
+ if (json.step !== undefined) {
16511
+ field.step = json.step;
16512
+ }
16429
16513
  if (json.required !== undefined) {
16430
16514
  field.required = json.required;
16431
16515
  }
@@ -16435,21 +16519,6 @@
16435
16519
  if (json.readonly !== undefined) {
16436
16520
  field.readonly = json.readonly;
16437
16521
  }
16438
- if (json.rows !== undefined) {
16439
- field.rows = json.rows;
16440
- }
16441
- if (json.cols !== undefined) {
16442
- field.cols = json.cols;
16443
- }
16444
- if (json.minlength !== undefined) {
16445
- field.minlength = json.minlength;
16446
- }
16447
- if (json.maxlength !== undefined) {
16448
- field.maxlength = json.maxlength;
16449
- }
16450
- if (json.autocomplete !== undefined) {
16451
- field.autocomplete = json.autocomplete;
16452
- }
16453
16522
  if (json.hint !== undefined) {
16454
16523
  field.hint = json.hint;
16455
16524
  }
@@ -16464,17 +16533,23 @@
16464
16533
  // willUpdate) so a parent re-binding from the server can't overwrite an unsaved edit.
16465
16534
  this._dirtyValue = '';
16466
16535
  /**
16467
- * The textarea label text
16536
+ * The input label text
16468
16537
  */
16469
16538
  this.label = '';
16470
16539
  /**
16471
- * The textarea name for form submission
16540
+ * The input name for form submission
16472
16541
  */
16473
16542
  this.name = '';
16474
16543
  /**
16475
- * The current value
16544
+ * The current value as text, as the native number input holds it. Set it to a number's string
16545
+ * form, or to '' to clear the field.
16476
16546
  */
16477
16547
  this.value = '';
16548
+ /**
16549
+ * The value as a number. Kept in sync with `value`; null when the field is empty or the text is
16550
+ * not a number. <krs-form> reads this so the emitted change carries a real number (or null to clear).
16551
+ */
16552
+ this.valueAsNumber = null;
16478
16553
  /**
16479
16554
  * Placeholder text
16480
16555
  */
@@ -16492,15 +16567,7 @@
16492
16567
  */
16493
16568
  this.readonly = false;
16494
16569
  /**
16495
- * Number of visible text lines
16496
- */
16497
- this.rows = 3;
16498
- /**
16499
- * Autocomplete attribute value
16500
- */
16501
- this.autocomplete = '';
16502
- /**
16503
- * Helper text shown below the textarea
16570
+ * Helper text shown below the input
16504
16571
  */
16505
16572
  this.hint = '';
16506
16573
  /**
@@ -16547,9 +16614,21 @@
16547
16614
  }
16548
16615
  }
16549
16616
  updated(changedProperties) {
16550
- if (changedProperties.has('required') || changedProperties.has('value')) {
16617
+ if (changedProperties.has('required') || changedProperties.has('value') || changedProperties.has('min')
16618
+ || changedProperties.has('max') || changedProperties.has('step')) {
16551
16619
  this._updateValidity();
16552
16620
  }
16621
+ // Keep valueAsNumber in sync with value (from user input or a programmatic set). Empty or
16622
+ // non-numeric is null.
16623
+ if (changedProperties.has('value')) {
16624
+ const parsed = Number(this.value);
16625
+ if (this.value === '' || Number.isNaN(parsed)) {
16626
+ this.valueAsNumber = null;
16627
+ }
16628
+ else {
16629
+ this.valueAsNumber = parsed;
16630
+ }
16631
+ }
16553
16632
  }
16554
16633
  // Form-associated custom element callbacks
16555
16634
  get form() {
@@ -16604,17 +16683,17 @@
16604
16683
  }
16605
16684
  // Public methods for programmatic control
16606
16685
  focus() {
16607
- this._textarea?.focus();
16686
+ this._input?.focus();
16608
16687
  }
16609
16688
  blur() {
16610
- this._textarea?.blur();
16689
+ this._input?.blur();
16611
16690
  }
16612
16691
  select() {
16613
- this._textarea?.select();
16692
+ this._input?.select();
16614
16693
  }
16615
16694
  _updateValidity() {
16616
- if (this._textarea) {
16617
- this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
16695
+ if (this._input) {
16696
+ this._internals.setValidity(this._input.validity, this._input.validationMessage);
16618
16697
  }
16619
16698
  }
16620
16699
  _handleInput(e) {
@@ -16622,10 +16701,11 @@
16622
16701
  this.dirty = true;
16623
16702
  this._dirtyValue = this.value;
16624
16703
  this._internals.setFormValue(this.value);
16625
- this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
16704
+ this._internals.setValidity(this._input.validity, this._input.validationMessage);
16626
16705
  }
16627
- // The inner textarea's native `change` fires on commit (blur after an edit) but doesn't cross the
16628
- // shadow boundary — re-dispatch a composed one so a wrapping <krs-form> hears it.
16706
+ // The inner input's native `change` fires on commit (blur after an edit, or a spin button click)
16707
+ // but doesn't cross the shadow boundary — re-dispatch a composed one so a wrapping <krs-form>
16708
+ // hears it.
16629
16709
  _handleChange(e) {
16630
16710
  this.value = e.target.value;
16631
16711
  this._internals.setFormValue(this.value);
@@ -16636,27 +16716,461 @@
16636
16716
  }
16637
16717
  _handleBlur() {
16638
16718
  this._touched = true;
16639
- this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
16719
+ this._internals.setValidity(this._input.validity, this._input.validationMessage);
16640
16720
  }
16641
16721
  render() {
16642
16722
  let validationMessage = '';
16643
- if (this._touched && this._textarea && !this._textarea.validity.valid) {
16644
- validationMessage = this._textarea.validationMessage;
16723
+ if (this._touched && this._input && !this._input.validity.valid) {
16724
+ validationMessage = this._input.validationMessage;
16725
+ }
16726
+ let labelTemplate = b ``;
16727
+ if (this.label) {
16728
+ let requiredMark = b ``;
16729
+ if (this.required) {
16730
+ requiredMark = b `<span class="required" aria-hidden="true">*</span>`;
16731
+ }
16732
+ labelTemplate = b `
16733
+ <label for="input">
16734
+ ${this.label}
16735
+ ${requiredMark}
16736
+ </label>
16737
+ `;
16738
+ }
16739
+ let footer = b ``;
16740
+ if (validationMessage) {
16741
+ footer = b `<div class="validation-message">${validationMessage}</div>`;
16742
+ }
16743
+ else if (this.hint) {
16744
+ footer = b `<div class="hint">${this.hint}</div>`;
16645
16745
  }
16646
16746
  return b `
16647
16747
  <div class="wrapper">
16648
- ${this.label
16649
- ? b `
16650
- <label for="textarea">
16651
- ${this.label}
16652
- ${this.required ? b `<span class="required" aria-hidden="true">*</span>` : A}
16653
- </label>
16654
- `
16655
- : A}
16656
- <textarea
16657
- id="textarea"
16748
+ ${labelTemplate}
16749
+ <input
16750
+ id="input"
16658
16751
  class=${e$1({
16659
- 'textarea--invalid': this._touched && this._textarea && !this._textarea.validity.valid
16752
+ 'input--invalid': this._touched && this._input && !this._input.validity.valid
16753
+ })}
16754
+ type="number"
16755
+ name=${this.name}
16756
+ .value=${l(this.value)}
16757
+ placeholder=${this.placeholder}
16758
+ ?required=${this.required}
16759
+ ?disabled=${this.disabled}
16760
+ ?readonly=${this.readonly}
16761
+ min=${o(this.min)}
16762
+ max=${o(this.max)}
16763
+ step=${o(this.step)}
16764
+ @input=${this._handleInput}
16765
+ @change=${this._handleChange}
16766
+ @blur=${this._handleBlur}
16767
+ />
16768
+ ${footer}
16769
+ </div>
16770
+ `;
16771
+ }
16772
+ }
16773
+ KRNumberField.styles = i$6 `
16774
+ :host {
16775
+ display: block;
16776
+ font-family: inherit;
16777
+ }
16778
+
16779
+ .wrapper {
16780
+ display: flex;
16781
+ flex-direction: column;
16782
+ gap: 6px;
16783
+ }
16784
+
16785
+ label {
16786
+ font-size: var(--kr-field-font-size, 14px);
16787
+ font-weight: 500;
16788
+ color: black;
16789
+ }
16790
+
16791
+ .required {
16792
+ color: var(--kr-number-field-required-color, #ef4444);
16793
+ margin-left: 0.125rem;
16794
+ }
16795
+
16796
+ input {
16797
+ font-family: inherit;
16798
+ font-size: var(--kr-field-font-size, 14px);
16799
+ line-height: var(--kr-field-line-height, 1.2);
16800
+ padding: var(--kr-field-padding, 10px 12px);
16801
+ border: 1px solid var(--kr-number-field-border-color, #0000003d);
16802
+ border-radius: 8px;
16803
+ background-color: var(--kr-number-field-bg, #fff);
16804
+ color: var(--kr-number-field-color, #111827);
16805
+ transition: border-color 0.2s, box-shadow 0.2s;
16806
+ }
16807
+
16808
+ input:focus {
16809
+ outline: none;
16810
+ border-color: var(--kr-number-field-focus-border-color, #163052);
16811
+ box-shadow: 0 0 0 3px var(--kr-number-field-focus-ring-color, rgba(22, 48, 82, 0.1));
16812
+ }
16813
+
16814
+ input:disabled {
16815
+ background-color: var(--kr-number-field-disabled-bg, #f3f4f6);
16816
+ color: var(--kr-number-field-disabled-color, #9ca3af);
16817
+ cursor: not-allowed;
16818
+ }
16819
+
16820
+ input::placeholder {
16821
+ color: var(--kr-number-field-placeholder-color, #9ca3af);
16822
+ }
16823
+
16824
+ input.input--invalid {
16825
+ border-color: var(--kr-number-field-error-border-color, #ef4444);
16826
+ }
16827
+
16828
+ input.input--invalid:focus {
16829
+ box-shadow: 0 0 0 3px var(--kr-number-field-error-ring-color, rgba(239, 68, 68, 0.1));
16830
+ }
16831
+
16832
+ .validation-message {
16833
+ font-size: 0.75rem;
16834
+ color: var(--kr-number-field-error-color, #ef4444);
16835
+ }
16836
+
16837
+ .hint {
16838
+ font-size: 0.75rem;
16839
+ color: var(--kr-number-field-helper-color, #6b7280);
16840
+ }
16841
+ `;
16842
+ // Enable form association
16843
+ KRNumberField.formAssociated = true;
16844
+ __decorate$9([
16845
+ n$1({ type: String })
16846
+ ], KRNumberField.prototype, "label", void 0);
16847
+ __decorate$9([
16848
+ n$1({ type: String })
16849
+ ], KRNumberField.prototype, "name", void 0);
16850
+ __decorate$9([
16851
+ n$1({ type: String })
16852
+ ], KRNumberField.prototype, "value", void 0);
16853
+ __decorate$9([
16854
+ n$1({ attribute: false })
16855
+ ], KRNumberField.prototype, "valueAsNumber", void 0);
16856
+ __decorate$9([
16857
+ n$1({ type: String })
16858
+ ], KRNumberField.prototype, "placeholder", void 0);
16859
+ __decorate$9([
16860
+ n$1({ type: Number })
16861
+ ], KRNumberField.prototype, "min", void 0);
16862
+ __decorate$9([
16863
+ n$1({ type: Number })
16864
+ ], KRNumberField.prototype, "max", void 0);
16865
+ __decorate$9([
16866
+ n$1({ type: String })
16867
+ ], KRNumberField.prototype, "step", void 0);
16868
+ __decorate$9([
16869
+ n$1({ type: Boolean })
16870
+ ], KRNumberField.prototype, "required", void 0);
16871
+ __decorate$9([
16872
+ n$1({ type: Boolean })
16873
+ ], KRNumberField.prototype, "disabled", void 0);
16874
+ __decorate$9([
16875
+ n$1({ type: Boolean })
16876
+ ], KRNumberField.prototype, "readonly", void 0);
16877
+ __decorate$9([
16878
+ n$1({ type: String })
16879
+ ], KRNumberField.prototype, "hint", void 0);
16880
+ __decorate$9([
16881
+ n$1({
16882
+ type: Boolean,
16883
+ reflect: true,
16884
+ })
16885
+ ], KRNumberField.prototype, "dirty", void 0);
16886
+ __decorate$9([
16887
+ n$1({ attribute: 'save-mode' })
16888
+ ], KRNumberField.prototype, "saveMode", void 0);
16889
+ __decorate$9([
16890
+ n$1({
16891
+ type: Boolean,
16892
+ reflect: true,
16893
+ })
16894
+ ], KRNumberField.prototype, "saving", void 0);
16895
+ __decorate$9([
16896
+ r$1()
16897
+ ], KRNumberField.prototype, "_touched", void 0);
16898
+ __decorate$9([
16899
+ e$3('input')
16900
+ ], KRNumberField.prototype, "_input", void 0);
16901
+ // Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
16902
+ // the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
16903
+ // own copy) doesn't throw. First definition wins.
16904
+ if (!customElements.get('krs-number-field')) {
16905
+ customElements.define('krs-number-field', KRNumberField);
16906
+ }
16907
+
16908
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16909
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16910
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16911
+ 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;
16912
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16913
+ };
16914
+ /**
16915
+ * A textarea component that works with native browser forms.
16916
+ *
16917
+ * Uses ElementInternals for form association, allowing the component
16918
+ * to participate in form submission, validation, and reset.
16919
+ *
16920
+ * Native input and change events bubble up from the inner textarea element.
16921
+ *
16922
+ * @element krs-textarea-field
16923
+ */
16924
+ class KRTextareaField extends i$3 {
16925
+ /**
16926
+ * Builds a field from a plain object, as a tool's UI spec describes one. Every key is one of this
16927
+ * field's own properties and is set only when present, so an absent key keeps the default.
16928
+ */
16929
+ static fromJSON(json) {
16930
+ const field = new KRTextareaField();
16931
+ if (json.label !== undefined) {
16932
+ field.label = json.label;
16933
+ }
16934
+ if (json.name !== undefined) {
16935
+ field.name = json.name;
16936
+ }
16937
+ if (json.value !== undefined) {
16938
+ field.value = json.value;
16939
+ }
16940
+ if (json.placeholder !== undefined) {
16941
+ field.placeholder = json.placeholder;
16942
+ }
16943
+ if (json.required !== undefined) {
16944
+ field.required = json.required;
16945
+ }
16946
+ if (json.disabled !== undefined) {
16947
+ field.disabled = json.disabled;
16948
+ }
16949
+ if (json.readonly !== undefined) {
16950
+ field.readonly = json.readonly;
16951
+ }
16952
+ if (json.rows !== undefined) {
16953
+ field.rows = json.rows;
16954
+ }
16955
+ if (json.cols !== undefined) {
16956
+ field.cols = json.cols;
16957
+ }
16958
+ if (json.minlength !== undefined) {
16959
+ field.minlength = json.minlength;
16960
+ }
16961
+ if (json.maxlength !== undefined) {
16962
+ field.maxlength = json.maxlength;
16963
+ }
16964
+ if (json.autocomplete !== undefined) {
16965
+ field.autocomplete = json.autocomplete;
16966
+ }
16967
+ if (json.hint !== undefined) {
16968
+ field.hint = json.hint;
16969
+ }
16970
+ if (json.saveMode !== undefined) {
16971
+ field.saveMode = json.saveMode;
16972
+ }
16973
+ return field;
16974
+ }
16975
+ constructor() {
16976
+ super();
16977
+ // The value the user last typed. While dirty, an external `value` set is reverted to this (see
16978
+ // willUpdate) so a parent re-binding from the server can't overwrite an unsaved edit.
16979
+ this._dirtyValue = '';
16980
+ /**
16981
+ * The textarea label text
16982
+ */
16983
+ this.label = '';
16984
+ /**
16985
+ * The textarea name for form submission
16986
+ */
16987
+ this.name = '';
16988
+ /**
16989
+ * The current value
16990
+ */
16991
+ this.value = '';
16992
+ /**
16993
+ * Placeholder text
16994
+ */
16995
+ this.placeholder = '';
16996
+ /**
16997
+ * Whether the field is required
16998
+ */
16999
+ this.required = false;
17000
+ /**
17001
+ * Whether the field is disabled
17002
+ */
17003
+ this.disabled = false;
17004
+ /**
17005
+ * Whether the field is readonly
17006
+ */
17007
+ this.readonly = false;
17008
+ /**
17009
+ * Number of visible text lines
17010
+ */
17011
+ this.rows = 3;
17012
+ /**
17013
+ * Autocomplete attribute value
17014
+ */
17015
+ this.autocomplete = '';
17016
+ /**
17017
+ * Helper text shown below the textarea
17018
+ */
17019
+ this.hint = '';
17020
+ /**
17021
+ * Whether the user has edited this field since it was last loaded or marked pristine. Set on
17022
+ * user input, cleared by markPristine(). Used by <krs-form> to collect only changed fields.
17023
+ */
17024
+ this.dirty = false;
17025
+ /**
17026
+ * Whether a <krs-form> save carrying this field's edit is in flight. Set by markSaving(), cleared
17027
+ * by markSaved()/markSaveFailed().
17028
+ */
17029
+ this.saving = false;
17030
+ this._touched = false;
17031
+ this._handleInvalid = (e) => {
17032
+ e.preventDefault();
17033
+ this._touched = true;
17034
+ };
17035
+ this._internals = this.attachInternals();
17036
+ }
17037
+ connectedCallback() {
17038
+ super.connectedCallback();
17039
+ // Marks this as a krubble form field so <krs-form> can find its controls (.kr-form-field).
17040
+ this.classList.add('kr-form-field');
17041
+ this.addEventListener('invalid', this._handleInvalid);
17042
+ }
17043
+ disconnectedCallback() {
17044
+ super.disconnectedCallback();
17045
+ this.removeEventListener('invalid', this._handleInvalid);
17046
+ }
17047
+ firstUpdated() {
17048
+ this._updateValidity();
17049
+ }
17050
+ willUpdate(changedProperties) {
17051
+ // This field's own save-mode, else the enclosing <krs-form>'s. Unset either way means manual.
17052
+ let saveMode = this.saveMode;
17053
+ if (!saveMode) {
17054
+ saveMode = this.closest('krs-form')?.saveMode;
17055
+ }
17056
+ // While the user has an unsaved edit, an external `value` set (e.g. a parent re-binding from a
17057
+ // server response that predates the edit) would overwrite it. Revert to the user's value. The
17058
+ // field accepts external values again once the edit is saved (markSaving clears dirty) or reset.
17059
+ if (changedProperties.has('value') && this.dirty && this.value !== this._dirtyValue && saveMode === 'autosave') {
17060
+ this.value = this._dirtyValue;
17061
+ }
17062
+ }
17063
+ updated(changedProperties) {
17064
+ if (changedProperties.has('required') || changedProperties.has('value')) {
17065
+ this._updateValidity();
17066
+ }
17067
+ }
17068
+ // Form-associated custom element callbacks
17069
+ get form() {
17070
+ return this._internals.form;
17071
+ }
17072
+ get validity() {
17073
+ return this._internals.validity;
17074
+ }
17075
+ get validationMessage() {
17076
+ return this._internals.validationMessage;
17077
+ }
17078
+ get willValidate() {
17079
+ return this._internals.willValidate;
17080
+ }
17081
+ checkValidity() {
17082
+ return this._internals.checkValidity();
17083
+ }
17084
+ reportValidity() {
17085
+ return this._internals.reportValidity();
17086
+ }
17087
+ formResetCallback() {
17088
+ this.value = '';
17089
+ this._touched = false;
17090
+ this.dirty = false;
17091
+ this.saving = false;
17092
+ this._internals.setFormValue('');
17093
+ this._internals.setValidity({});
17094
+ }
17095
+ // Clears the dirty flag so the field is no longer reported as changed.
17096
+ markPristine() {
17097
+ this.dirty = false;
17098
+ }
17099
+ // <krs-form> calls this when a save carrying this field's edit starts. Clearing dirty here means a
17100
+ // further edit during the request is tracked as new and goes out in the next save.
17101
+ markSaving() {
17102
+ this.saving = true;
17103
+ this.dirty = false;
17104
+ }
17105
+ // <krs-form> calls this when the save succeeded. If the user edited mid-flight the field is dirty
17106
+ // again and stays that way.
17107
+ markSaved() {
17108
+ this.saving = false;
17109
+ }
17110
+ // <krs-form> calls this when the save failed. Restore dirty so the next change retries the edit.
17111
+ markSaveFailed() {
17112
+ this.saving = false;
17113
+ this.dirty = true;
17114
+ this._dirtyValue = this.value;
17115
+ }
17116
+ formStateRestoreCallback(state) {
17117
+ this.value = state;
17118
+ }
17119
+ // Public methods for programmatic control
17120
+ focus() {
17121
+ this._textarea?.focus();
17122
+ }
17123
+ blur() {
17124
+ this._textarea?.blur();
17125
+ }
17126
+ select() {
17127
+ this._textarea?.select();
17128
+ }
17129
+ _updateValidity() {
17130
+ if (this._textarea) {
17131
+ this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
17132
+ }
17133
+ }
17134
+ _handleInput(e) {
17135
+ this.value = e.target.value;
17136
+ this.dirty = true;
17137
+ this._dirtyValue = this.value;
17138
+ this._internals.setFormValue(this.value);
17139
+ this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
17140
+ }
17141
+ // The inner textarea's native `change` fires on commit (blur after an edit) but doesn't cross the
17142
+ // shadow boundary — re-dispatch a composed one so a wrapping <krs-form> hears it.
17143
+ _handleChange(e) {
17144
+ this.value = e.target.value;
17145
+ this._internals.setFormValue(this.value);
17146
+ this.dispatchEvent(new Event('change', {
17147
+ bubbles: true,
17148
+ composed: true,
17149
+ }));
17150
+ }
17151
+ _handleBlur() {
17152
+ this._touched = true;
17153
+ this._internals.setValidity(this._textarea.validity, this._textarea.validationMessage);
17154
+ }
17155
+ render() {
17156
+ let validationMessage = '';
17157
+ if (this._touched && this._textarea && !this._textarea.validity.valid) {
17158
+ validationMessage = this._textarea.validationMessage;
17159
+ }
17160
+ return b `
17161
+ <div class="wrapper">
17162
+ ${this.label
17163
+ ? b `
17164
+ <label for="textarea">
17165
+ ${this.label}
17166
+ ${this.required ? b `<span class="required" aria-hidden="true">*</span>` : A}
17167
+ </label>
17168
+ `
17169
+ : A}
17170
+ <textarea
17171
+ id="textarea"
17172
+ class=${e$1({
17173
+ 'textarea--invalid': this._touched && this._textarea && !this._textarea.validity.valid
16660
17174
  })}
16661
17175
  name=${this.name}
16662
17176
  .value=${l(this.value)}
@@ -17852,10 +18366,10 @@
17852
18366
  formStateRestoreCallback(state) {
17853
18367
  this.value = state;
17854
18368
  }
18369
+ // Focuses the trigger without opening the list, like every other field's focus(). Click, Enter, Space and
18370
+ // the arrow keys open it.
17855
18371
  focus() {
17856
- if (!this._isOpen) {
17857
- this._open();
17858
- }
18372
+ this._triggerElement?.focus();
17859
18373
  }
17860
18374
  blur() {
17861
18375
  this._triggerElement?.blur();
@@ -20936,7 +21450,7 @@
20936
21450
  }
20937
21451
  /**
20938
21452
  * Builds one field from a plain object whose `type` names the control, as a tool's UI spec describes
20939
- * an input. The type is the control's own name, its tag without the `kr-` prefix: `text-field`,
21453
+ * an input. The type is the control's own name, its tag without the `kr-` prefix: `text-field`, `number-field`,
20940
21454
  * `textarea-field`, `checkbox`, `select-field`, `combo-box`, `date-picker`, `date-range-picker`,
20941
21455
  * `auto-suggest`, `radio-cards`, `file-field`, `detail-field` or `monaco`. The other keys are the
20942
21456
  * control's own properties and go to its static `fromJSON`. `monaco` is built only when the caller has
@@ -20950,6 +21464,9 @@
20950
21464
  if (json.type === 'textarea-field') {
20951
21465
  return KRTextareaField.fromJSON(json);
20952
21466
  }
21467
+ if (json.type === 'number-field') {
21468
+ return KRNumberField.fromJSON(json);
21469
+ }
20953
21470
  if (json.type === 'checkbox') {
20954
21471
  return KRCheckbox.fromJSON(json);
20955
21472
  }
@@ -21013,7 +21530,7 @@
21013
21530
  else if (field.tagName === 'KR-DATE-PICKER') {
21014
21531
  changes[field.name] = field.valueAsDate;
21015
21532
  }
21016
- else if (field.type === 'number') {
21533
+ else if (field.tagName === 'KR-NUMBER-FIELD') {
21017
21534
  changes[field.name] = field.valueAsNumber;
21018
21535
  }
21019
21536
  else {