@kodaris/krubble-app-components 1.0.174 → 1.0.175
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$
|
|
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$
|
|
2670
|
+
__decorate$u([
|
|
2671
2671
|
n$1({ type: String })
|
|
2672
2672
|
], KRAccordion.prototype, "header", void 0);
|
|
2673
|
-
__decorate$
|
|
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$
|
|
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$
|
|
2950
|
+
__decorate$t([
|
|
2951
2951
|
n$1({ type: String })
|
|
2952
2952
|
], KRAlert.prototype, "type", void 0);
|
|
2953
|
-
__decorate$
|
|
2953
|
+
__decorate$t([
|
|
2954
2954
|
n$1({ type: String })
|
|
2955
2955
|
], KRAlert.prototype, "label", void 0);
|
|
2956
|
-
__decorate$
|
|
2956
|
+
__decorate$t([
|
|
2957
2957
|
n$1({ type: String })
|
|
2958
2958
|
], KRAlert.prototype, "title", void 0);
|
|
2959
|
-
__decorate$
|
|
2959
|
+
__decorate$t([
|
|
2960
2960
|
n$1({ type: Boolean })
|
|
2961
2961
|
], KRAlert.prototype, "dismissible", void 0);
|
|
2962
|
-
__decorate$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3801
|
+
__decorate$s([
|
|
3802
3802
|
n$1({ type: String })
|
|
3803
3803
|
], KRButton.prototype, "href", void 0);
|
|
3804
|
-
__decorate$
|
|
3804
|
+
__decorate$s([
|
|
3805
3805
|
n$1({ type: String })
|
|
3806
3806
|
], KRButton.prototype, "target", void 0);
|
|
3807
|
-
__decorate$
|
|
3807
|
+
__decorate$s([
|
|
3808
3808
|
n$1({ type: Array })
|
|
3809
3809
|
], KRButton.prototype, "options", void 0);
|
|
3810
|
-
__decorate$
|
|
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$
|
|
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$
|
|
3823
|
+
__decorate$s([
|
|
3824
3824
|
r$1()
|
|
3825
3825
|
], KRButton.prototype, "_state", void 0);
|
|
3826
|
-
__decorate$
|
|
3826
|
+
__decorate$s([
|
|
3827
3827
|
r$1()
|
|
3828
3828
|
], KRButton.prototype, "_stateText", void 0);
|
|
3829
|
-
__decorate$
|
|
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$
|
|
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$
|
|
4112
|
+
__decorate$r([
|
|
4113
4113
|
n$1({ type: String })
|
|
4114
4114
|
], KRCodeDemo.prototype, "language", void 0);
|
|
4115
|
-
__decorate$
|
|
4115
|
+
__decorate$r([
|
|
4116
4116
|
r$1()
|
|
4117
4117
|
], KRCodeDemo.prototype, "code", void 0);
|
|
4118
|
-
__decorate$
|
|
4118
|
+
__decorate$r([
|
|
4119
4119
|
r$1()
|
|
4120
4120
|
], KRCodeDemo.prototype, "activeTab", void 0);
|
|
4121
|
-
__decorate$
|
|
4121
|
+
__decorate$r([
|
|
4122
4122
|
r$1()
|
|
4123
4123
|
], KRCodeDemo.prototype, "copied", void 0);
|
|
4124
|
-
__decorate$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4644
|
+
__decorate$p([
|
|
4645
4645
|
n$1({ type: String })
|
|
4646
4646
|
], KRDialog.prototype, "label", void 0);
|
|
4647
|
-
__decorate$
|
|
4647
|
+
__decorate$p([
|
|
4648
4648
|
n$1({ type: String })
|
|
4649
4649
|
], KRDialog.prototype, "width", void 0);
|
|
4650
|
-
__decorate$
|
|
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$
|
|
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$
|
|
5384
|
+
__decorate$o([
|
|
5385
5385
|
n$1({ type: String })
|
|
5386
5386
|
], KRDateRangePicker.prototype, "name", void 0);
|
|
5387
|
-
__decorate$
|
|
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$
|
|
5393
|
+
__decorate$o([
|
|
5394
5394
|
n$1({ attribute: 'save-mode' })
|
|
5395
5395
|
], KRDateRangePicker.prototype, "saveMode", void 0);
|
|
5396
|
-
__decorate$
|
|
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$
|
|
5402
|
+
__decorate$o([
|
|
5403
5403
|
n$1({ type: Object })
|
|
5404
5404
|
], KRDateRangePicker.prototype, "value", void 0);
|
|
5405
|
-
__decorate$
|
|
5405
|
+
__decorate$o([
|
|
5406
5406
|
n$1({ type: Array })
|
|
5407
5407
|
], KRDateRangePicker.prototype, "relativeOptions", void 0);
|
|
5408
|
-
__decorate$
|
|
5408
|
+
__decorate$o([
|
|
5409
5409
|
n$1({ type: Boolean })
|
|
5410
5410
|
], KRDateRangePicker.prototype, "disabled", void 0);
|
|
5411
|
-
__decorate$
|
|
5411
|
+
__decorate$o([
|
|
5412
5412
|
n$1({ type: Boolean })
|
|
5413
5413
|
], KRDateRangePicker.prototype, "invalid", void 0);
|
|
5414
|
-
__decorate$
|
|
5414
|
+
__decorate$o([
|
|
5415
5415
|
n$1({ type: String })
|
|
5416
5416
|
], KRDateRangePicker.prototype, "placeholder", void 0);
|
|
5417
|
-
__decorate$
|
|
5417
|
+
__decorate$o([
|
|
5418
5418
|
n$1({ type: String })
|
|
5419
5419
|
], KRDateRangePicker.prototype, "startDate", void 0);
|
|
5420
|
-
__decorate$
|
|
5420
|
+
__decorate$o([
|
|
5421
5421
|
n$1({ type: String })
|
|
5422
5422
|
], KRDateRangePicker.prototype, "endDate", void 0);
|
|
5423
|
-
__decorate$
|
|
5423
|
+
__decorate$o([
|
|
5424
5424
|
n$1({ type: String })
|
|
5425
5425
|
], KRDateRangePicker.prototype, "mode", void 0);
|
|
5426
|
-
__decorate$
|
|
5426
|
+
__decorate$o([
|
|
5427
5427
|
r$1()
|
|
5428
5428
|
], KRDateRangePicker.prototype, "_isOpen", void 0);
|
|
5429
|
-
__decorate$
|
|
5429
|
+
__decorate$o([
|
|
5430
5430
|
r$1()
|
|
5431
5431
|
], KRDateRangePicker.prototype, "_activeTab", void 0);
|
|
5432
|
-
__decorate$
|
|
5432
|
+
__decorate$o([
|
|
5433
5433
|
r$1()
|
|
5434
5434
|
], KRDateRangePicker.prototype, "_tempStartDate", void 0);
|
|
5435
|
-
__decorate$
|
|
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$
|
|
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$
|
|
5848
|
+
__decorate$n([
|
|
5849
5849
|
n$1({ type: String })
|
|
5850
5850
|
], KRSnackbar.prototype, "type", void 0);
|
|
5851
|
-
__decorate$
|
|
5851
|
+
__decorate$n([
|
|
5852
5852
|
n$1({ type: String })
|
|
5853
5853
|
], KRSnackbar.prototype, "title", void 0);
|
|
5854
|
-
__decorate$
|
|
5854
|
+
__decorate$n([
|
|
5855
5855
|
n$1({ type: String })
|
|
5856
5856
|
], KRSnackbar.prototype, "message", void 0);
|
|
5857
|
-
__decorate$
|
|
5857
|
+
__decorate$n([
|
|
5858
5858
|
n$1({ type: Number })
|
|
5859
5859
|
], KRSnackbar.prototype, "duration", void 0);
|
|
5860
|
-
__decorate$
|
|
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$
|
|
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$
|
|
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$
|
|
6214
|
+
__decorate$m([
|
|
6215
6215
|
n$1({ type: Boolean })
|
|
6216
6216
|
], KRTabGroup.prototype, "justified", void 0);
|
|
6217
|
-
__decorate$
|
|
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$
|
|
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$
|
|
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$
|
|
6317
|
+
__decorate$l([
|
|
6318
6318
|
n$1({ type: String })
|
|
6319
6319
|
], KRTab.prototype, "label", void 0);
|
|
6320
|
-
__decorate$
|
|
6320
|
+
__decorate$l([
|
|
6321
6321
|
n$1({ type: String })
|
|
6322
6322
|
], KRTab.prototype, "badge", void 0);
|
|
6323
|
-
__decorate$
|
|
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$
|
|
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$
|
|
6335
|
+
__decorate$l([
|
|
6336
6336
|
n$1({ type: Boolean })
|
|
6337
6337
|
], KRTab.prototype, "disabled", void 0);
|
|
6338
|
-
__decorate$
|
|
6338
|
+
__decorate$l([
|
|
6339
6339
|
n$1({ type: Boolean })
|
|
6340
6340
|
], KRTab.prototype, "dismissible", void 0);
|
|
6341
|
-
__decorate$
|
|
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$
|
|
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$
|
|
6391
|
+
__decorate$k([
|
|
6392
6392
|
n$1({ type: String })
|
|
6393
6393
|
], KRSelectOption.prototype, "value", void 0);
|
|
6394
|
-
__decorate$
|
|
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$
|
|
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$
|
|
7003
|
+
__decorate$j([
|
|
7004
7004
|
n$1({ type: String })
|
|
7005
7005
|
], KRSelectField.prototype, "label", void 0);
|
|
7006
|
-
__decorate$
|
|
7006
|
+
__decorate$j([
|
|
7007
7007
|
n$1({ type: String })
|
|
7008
7008
|
], KRSelectField.prototype, "name", void 0);
|
|
7009
|
-
__decorate$
|
|
7009
|
+
__decorate$j([
|
|
7010
7010
|
n$1({ type: String })
|
|
7011
7011
|
], KRSelectField.prototype, "value", void 0);
|
|
7012
|
-
__decorate$
|
|
7012
|
+
__decorate$j([
|
|
7013
7013
|
n$1({ type: String })
|
|
7014
7014
|
], KRSelectField.prototype, "placeholder", void 0);
|
|
7015
|
-
__decorate$
|
|
7015
|
+
__decorate$j([
|
|
7016
7016
|
n$1({ type: Boolean })
|
|
7017
7017
|
], KRSelectField.prototype, "disabled", void 0);
|
|
7018
|
-
__decorate$
|
|
7018
|
+
__decorate$j([
|
|
7019
7019
|
n$1({ type: Boolean })
|
|
7020
7020
|
], KRSelectField.prototype, "required", void 0);
|
|
7021
|
-
__decorate$
|
|
7021
|
+
__decorate$j([
|
|
7022
7022
|
n$1({ type: Boolean })
|
|
7023
7023
|
], KRSelectField.prototype, "readonly", void 0);
|
|
7024
|
-
__decorate$
|
|
7024
|
+
__decorate$j([
|
|
7025
7025
|
n$1({ type: String })
|
|
7026
7026
|
], KRSelectField.prototype, "hint", void 0);
|
|
7027
|
-
__decorate$
|
|
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$
|
|
7033
|
+
__decorate$j([
|
|
7034
7034
|
n$1({ attribute: 'save-mode' })
|
|
7035
7035
|
], KRSelectField.prototype, "saveMode", void 0);
|
|
7036
|
-
__decorate$
|
|
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$
|
|
7042
|
+
__decorate$j([
|
|
7043
7043
|
r$1()
|
|
7044
7044
|
], KRSelectField.prototype, "_isOpen", void 0);
|
|
7045
|
-
__decorate$
|
|
7045
|
+
__decorate$j([
|
|
7046
7046
|
r$1()
|
|
7047
7047
|
], KRSelectField.prototype, "_highlightedIndex", void 0);
|
|
7048
|
-
__decorate$
|
|
7048
|
+
__decorate$j([
|
|
7049
7049
|
r$1()
|
|
7050
7050
|
], KRSelectField.prototype, "_touched", void 0);
|
|
7051
|
-
__decorate$
|
|
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$
|
|
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;
|
|
@@ -10913,58 +10913,58 @@
|
|
|
10913
10913
|
}
|
|
10914
10914
|
|
|
10915
10915
|
`];
|
|
10916
|
-
__decorate$
|
|
10916
|
+
__decorate$i([
|
|
10917
10917
|
n$1({ type: Object })
|
|
10918
10918
|
], KRTable.prototype, "def", void 0);
|
|
10919
|
-
__decorate$
|
|
10919
|
+
__decorate$i([
|
|
10920
10920
|
n$1({
|
|
10921
10921
|
type: String,
|
|
10922
10922
|
reflect: true
|
|
10923
10923
|
})
|
|
10924
10924
|
], KRTable.prototype, "variant", void 0);
|
|
10925
|
-
__decorate$
|
|
10925
|
+
__decorate$i([
|
|
10926
10926
|
r$1()
|
|
10927
10927
|
], KRTable.prototype, "_data", void 0);
|
|
10928
|
-
__decorate$
|
|
10928
|
+
__decorate$i([
|
|
10929
10929
|
r$1()
|
|
10930
10930
|
], KRTable.prototype, "_dataState", void 0);
|
|
10931
|
-
__decorate$
|
|
10931
|
+
__decorate$i([
|
|
10932
10932
|
r$1()
|
|
10933
10933
|
], KRTable.prototype, "_page", void 0);
|
|
10934
|
-
__decorate$
|
|
10934
|
+
__decorate$i([
|
|
10935
10935
|
r$1()
|
|
10936
10936
|
], KRTable.prototype, "_pageSize", void 0);
|
|
10937
|
-
__decorate$
|
|
10937
|
+
__decorate$i([
|
|
10938
10938
|
r$1()
|
|
10939
10939
|
], KRTable.prototype, "_totalItems", void 0);
|
|
10940
|
-
__decorate$
|
|
10940
|
+
__decorate$i([
|
|
10941
10941
|
r$1()
|
|
10942
10942
|
], KRTable.prototype, "_totalPages", void 0);
|
|
10943
|
-
__decorate$
|
|
10943
|
+
__decorate$i([
|
|
10944
10944
|
r$1()
|
|
10945
10945
|
], KRTable.prototype, "_searchQuery", void 0);
|
|
10946
|
-
__decorate$
|
|
10946
|
+
__decorate$i([
|
|
10947
10947
|
r$1()
|
|
10948
10948
|
], KRTable.prototype, "_canScrollLeft", void 0);
|
|
10949
|
-
__decorate$
|
|
10949
|
+
__decorate$i([
|
|
10950
10950
|
r$1()
|
|
10951
10951
|
], KRTable.prototype, "_canScrollRight", void 0);
|
|
10952
|
-
__decorate$
|
|
10952
|
+
__decorate$i([
|
|
10953
10953
|
r$1()
|
|
10954
10954
|
], KRTable.prototype, "_canScrollHorizontal", void 0);
|
|
10955
|
-
__decorate$
|
|
10955
|
+
__decorate$i([
|
|
10956
10956
|
r$1()
|
|
10957
10957
|
], KRTable.prototype, "_columnPickerOpen", void 0);
|
|
10958
|
-
__decorate$
|
|
10958
|
+
__decorate$i([
|
|
10959
10959
|
r$1()
|
|
10960
10960
|
], KRTable.prototype, "_filterPanelOpened", void 0);
|
|
10961
|
-
__decorate$
|
|
10961
|
+
__decorate$i([
|
|
10962
10962
|
r$1()
|
|
10963
10963
|
], KRTable.prototype, "_filterPanelTab", void 0);
|
|
10964
|
-
__decorate$
|
|
10964
|
+
__decorate$i([
|
|
10965
10965
|
r$1()
|
|
10966
10966
|
], KRTable.prototype, "_buckets", void 0);
|
|
10967
|
-
__decorate$
|
|
10967
|
+
__decorate$i([
|
|
10968
10968
|
r$1()
|
|
10969
10969
|
], KRTable.prototype, "_sorts", void 0);
|
|
10970
10970
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -10974,7 +10974,7 @@
|
|
|
10974
10974
|
customElements.define('krs-table', KRTable);
|
|
10975
10975
|
}
|
|
10976
10976
|
|
|
10977
|
-
var __decorate$
|
|
10977
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10978
10978
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10979
10979
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10980
10980
|
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 +11343,43 @@
|
|
|
11343
11343
|
}
|
|
11344
11344
|
`];
|
|
11345
11345
|
KRCheckbox.formAssociated = true;
|
|
11346
|
-
__decorate$
|
|
11346
|
+
__decorate$h([
|
|
11347
11347
|
n$1({ type: String })
|
|
11348
11348
|
], KRCheckbox.prototype, "label", void 0);
|
|
11349
|
-
__decorate$
|
|
11349
|
+
__decorate$h([
|
|
11350
11350
|
n$1({ type: String })
|
|
11351
11351
|
], KRCheckbox.prototype, "name", void 0);
|
|
11352
|
-
__decorate$
|
|
11352
|
+
__decorate$h([
|
|
11353
11353
|
n$1({ type: String })
|
|
11354
11354
|
], KRCheckbox.prototype, "value", void 0);
|
|
11355
|
-
__decorate$
|
|
11355
|
+
__decorate$h([
|
|
11356
11356
|
n$1({ type: Boolean })
|
|
11357
11357
|
], KRCheckbox.prototype, "checked", void 0);
|
|
11358
|
-
__decorate$
|
|
11358
|
+
__decorate$h([
|
|
11359
11359
|
n$1({ type: Boolean })
|
|
11360
11360
|
], KRCheckbox.prototype, "disabled", void 0);
|
|
11361
|
-
__decorate$
|
|
11361
|
+
__decorate$h([
|
|
11362
11362
|
n$1({ type: Boolean })
|
|
11363
11363
|
], KRCheckbox.prototype, "required", void 0);
|
|
11364
|
-
__decorate$
|
|
11364
|
+
__decorate$h([
|
|
11365
11365
|
n$1({ type: String })
|
|
11366
11366
|
], KRCheckbox.prototype, "hint", void 0);
|
|
11367
|
-
__decorate$
|
|
11367
|
+
__decorate$h([
|
|
11368
11368
|
n$1({
|
|
11369
11369
|
type: Boolean,
|
|
11370
11370
|
reflect: true,
|
|
11371
11371
|
})
|
|
11372
11372
|
], KRCheckbox.prototype, "dirty", void 0);
|
|
11373
|
-
__decorate$
|
|
11373
|
+
__decorate$h([
|
|
11374
11374
|
n$1({ attribute: 'save-mode' })
|
|
11375
11375
|
], KRCheckbox.prototype, "saveMode", void 0);
|
|
11376
|
-
__decorate$
|
|
11376
|
+
__decorate$h([
|
|
11377
11377
|
n$1({
|
|
11378
11378
|
type: Boolean,
|
|
11379
11379
|
reflect: true,
|
|
11380
11380
|
})
|
|
11381
11381
|
], KRCheckbox.prototype, "saving", void 0);
|
|
11382
|
-
__decorate$
|
|
11382
|
+
__decorate$h([
|
|
11383
11383
|
r$1()
|
|
11384
11384
|
], KRCheckbox.prototype, "_touched", void 0);
|
|
11385
11385
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -11389,7 +11389,7 @@
|
|
|
11389
11389
|
customElements.define('krs-checkbox', KRCheckbox);
|
|
11390
11390
|
}
|
|
11391
11391
|
|
|
11392
|
-
var __decorate$
|
|
11392
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11393
11393
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11394
11394
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11395
11395
|
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;
|
|
@@ -14291,65 +14291,65 @@
|
|
|
14291
14291
|
}
|
|
14292
14292
|
|
|
14293
14293
|
`];
|
|
14294
|
-
__decorate$
|
|
14294
|
+
__decorate$g([
|
|
14295
14295
|
n$1({ type: Object })
|
|
14296
14296
|
], KRGrid.prototype, "def", void 0);
|
|
14297
|
-
__decorate$
|
|
14297
|
+
__decorate$g([
|
|
14298
14298
|
n$1({
|
|
14299
14299
|
type: String,
|
|
14300
14300
|
reflect: true
|
|
14301
14301
|
})
|
|
14302
14302
|
], KRGrid.prototype, "variant", void 0);
|
|
14303
|
-
__decorate$
|
|
14303
|
+
__decorate$g([
|
|
14304
14304
|
n$1({
|
|
14305
14305
|
type: String,
|
|
14306
14306
|
attribute: 'scroll-mode',
|
|
14307
14307
|
reflect: true
|
|
14308
14308
|
})
|
|
14309
14309
|
], KRGrid.prototype, "scrollMode", void 0);
|
|
14310
|
-
__decorate$
|
|
14310
|
+
__decorate$g([
|
|
14311
14311
|
r$1()
|
|
14312
14312
|
], KRGrid.prototype, "_data", void 0);
|
|
14313
|
-
__decorate$
|
|
14313
|
+
__decorate$g([
|
|
14314
14314
|
r$1()
|
|
14315
14315
|
], KRGrid.prototype, "_dataState", void 0);
|
|
14316
|
-
__decorate$
|
|
14316
|
+
__decorate$g([
|
|
14317
14317
|
r$1()
|
|
14318
14318
|
], KRGrid.prototype, "_page", void 0);
|
|
14319
|
-
__decorate$
|
|
14319
|
+
__decorate$g([
|
|
14320
14320
|
r$1()
|
|
14321
14321
|
], KRGrid.prototype, "_pageSize", void 0);
|
|
14322
|
-
__decorate$
|
|
14322
|
+
__decorate$g([
|
|
14323
14323
|
r$1()
|
|
14324
14324
|
], KRGrid.prototype, "_totalItems", void 0);
|
|
14325
|
-
__decorate$
|
|
14325
|
+
__decorate$g([
|
|
14326
14326
|
r$1()
|
|
14327
14327
|
], KRGrid.prototype, "_totalPages", void 0);
|
|
14328
|
-
__decorate$
|
|
14328
|
+
__decorate$g([
|
|
14329
14329
|
r$1()
|
|
14330
14330
|
], KRGrid.prototype, "_searchQuery", void 0);
|
|
14331
|
-
__decorate$
|
|
14331
|
+
__decorate$g([
|
|
14332
14332
|
r$1()
|
|
14333
14333
|
], KRGrid.prototype, "_canScrollLeft", void 0);
|
|
14334
|
-
__decorate$
|
|
14334
|
+
__decorate$g([
|
|
14335
14335
|
r$1()
|
|
14336
14336
|
], KRGrid.prototype, "_canScrollRight", void 0);
|
|
14337
|
-
__decorate$
|
|
14337
|
+
__decorate$g([
|
|
14338
14338
|
r$1()
|
|
14339
14339
|
], KRGrid.prototype, "_canScrollHorizontal", void 0);
|
|
14340
|
-
__decorate$
|
|
14340
|
+
__decorate$g([
|
|
14341
14341
|
r$1()
|
|
14342
14342
|
], KRGrid.prototype, "_columnPickerOpen", void 0);
|
|
14343
|
-
__decorate$
|
|
14343
|
+
__decorate$g([
|
|
14344
14344
|
r$1()
|
|
14345
14345
|
], KRGrid.prototype, "_filterPanelOpened", void 0);
|
|
14346
|
-
__decorate$
|
|
14346
|
+
__decorate$g([
|
|
14347
14347
|
r$1()
|
|
14348
14348
|
], KRGrid.prototype, "_filterPanelTab", void 0);
|
|
14349
|
-
__decorate$
|
|
14349
|
+
__decorate$g([
|
|
14350
14350
|
r$1()
|
|
14351
14351
|
], KRGrid.prototype, "_buckets", void 0);
|
|
14352
|
-
__decorate$
|
|
14352
|
+
__decorate$g([
|
|
14353
14353
|
r$1()
|
|
14354
14354
|
], KRGrid.prototype, "_sorts", void 0);
|
|
14355
14355
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -14359,7 +14359,7 @@
|
|
|
14359
14359
|
customElements.define('krs-grid', KRGrid);
|
|
14360
14360
|
}
|
|
14361
14361
|
|
|
14362
|
-
var __decorate$
|
|
14362
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14363
14363
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14364
14364
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14365
14365
|
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 +14737,22 @@
|
|
|
14737
14737
|
}
|
|
14738
14738
|
`,
|
|
14739
14739
|
];
|
|
14740
|
-
__decorate$
|
|
14740
|
+
__decorate$f([
|
|
14741
14741
|
n$1({
|
|
14742
14742
|
type: Boolean,
|
|
14743
14743
|
reflect: true
|
|
14744
14744
|
})
|
|
14745
14745
|
], KRGridDialog.prototype, "opened", void 0);
|
|
14746
|
-
__decorate$
|
|
14746
|
+
__decorate$f([
|
|
14747
14747
|
n$1({ type: String })
|
|
14748
14748
|
], KRGridDialog.prototype, "title", void 0);
|
|
14749
|
-
__decorate$
|
|
14749
|
+
__decorate$f([
|
|
14750
14750
|
n$1({ type: String })
|
|
14751
14751
|
], KRGridDialog.prototype, "description", void 0);
|
|
14752
|
-
__decorate$
|
|
14752
|
+
__decorate$f([
|
|
14753
14753
|
n$1({ attribute: false })
|
|
14754
14754
|
], KRGridDialog.prototype, "def", void 0);
|
|
14755
|
-
__decorate$
|
|
14755
|
+
__decorate$f([
|
|
14756
14756
|
n$1({ attribute: false })
|
|
14757
14757
|
], KRGridDialog.prototype, "actions", void 0);
|
|
14758
14758
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -14762,7 +14762,7 @@
|
|
|
14762
14762
|
customElements.define('krs-grid-dialog', KRGridDialog);
|
|
14763
14763
|
}
|
|
14764
14764
|
|
|
14765
|
-
var __decorate$
|
|
14765
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14766
14766
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14767
14767
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14768
14768
|
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 +14886,13 @@
|
|
|
14886
14886
|
stroke-linecap: round;
|
|
14887
14887
|
}
|
|
14888
14888
|
`;
|
|
14889
|
-
__decorate$
|
|
14889
|
+
__decorate$e([
|
|
14890
14890
|
n$1({
|
|
14891
14891
|
type: String,
|
|
14892
14892
|
reflect: true,
|
|
14893
14893
|
})
|
|
14894
14894
|
], KRSpinner.prototype, "size", void 0);
|
|
14895
|
-
__decorate$
|
|
14895
|
+
__decorate$e([
|
|
14896
14896
|
n$1({
|
|
14897
14897
|
type: String,
|
|
14898
14898
|
reflect: true,
|
|
@@ -14905,7 +14905,7 @@
|
|
|
14905
14905
|
customElements.define('krs-spinner', KRSpinner);
|
|
14906
14906
|
}
|
|
14907
14907
|
|
|
14908
|
-
var __decorate$
|
|
14908
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14909
14909
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14910
14910
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14911
14911
|
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 +14996,13 @@
|
|
|
14996
14996
|
}
|
|
14997
14997
|
}
|
|
14998
14998
|
`;
|
|
14999
|
-
__decorate$
|
|
14999
|
+
__decorate$d([
|
|
15000
15000
|
n$1({
|
|
15001
15001
|
type: String,
|
|
15002
15002
|
reflect: true,
|
|
15003
15003
|
})
|
|
15004
15004
|
], KRProgressBar.prototype, "color", void 0);
|
|
15005
|
-
__decorate$
|
|
15005
|
+
__decorate$d([
|
|
15006
15006
|
n$1({
|
|
15007
15007
|
type: String,
|
|
15008
15008
|
reflect: true,
|
|
@@ -15015,7 +15015,7 @@
|
|
|
15015
15015
|
customElements.define('krs-progress-bar', KRProgressBar);
|
|
15016
15016
|
}
|
|
15017
15017
|
|
|
15018
|
-
var __decorate$
|
|
15018
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15019
15019
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15020
15020
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15021
15021
|
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 +15579,16 @@
|
|
|
15579
15579
|
`;
|
|
15580
15580
|
// eslint-disable-next-line kodaris/component-name-context
|
|
15581
15581
|
KRFilePreview._activePreview = null;
|
|
15582
|
-
__decorate$
|
|
15582
|
+
__decorate$c([
|
|
15583
15583
|
n$1({ type: String })
|
|
15584
15584
|
], KRFilePreview.prototype, "src", void 0);
|
|
15585
|
-
__decorate$
|
|
15585
|
+
__decorate$c([
|
|
15586
15586
|
n$1({ type: String })
|
|
15587
15587
|
], KRFilePreview.prototype, "name", void 0);
|
|
15588
|
-
__decorate$
|
|
15588
|
+
__decorate$c([
|
|
15589
15589
|
r$1()
|
|
15590
15590
|
], KRFilePreview.prototype, "_zoomLevel", void 0);
|
|
15591
|
-
__decorate$
|
|
15591
|
+
__decorate$c([
|
|
15592
15592
|
r$1()
|
|
15593
15593
|
], KRFilePreview.prototype, "_textContent", void 0);
|
|
15594
15594
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -15598,7 +15598,7 @@
|
|
|
15598
15598
|
customElements.define('krs-file-preview', KRFilePreview);
|
|
15599
15599
|
}
|
|
15600
15600
|
|
|
15601
|
-
var __decorate$
|
|
15601
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15602
15602
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15603
15603
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15604
15604
|
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 +15916,10 @@
|
|
|
15916
15916
|
padding: 20px;
|
|
15917
15917
|
}
|
|
15918
15918
|
`;
|
|
15919
|
-
__decorate$
|
|
15919
|
+
__decorate$b([
|
|
15920
15920
|
n$1({ type: Array })
|
|
15921
15921
|
], KRFileList.prototype, "files", void 0);
|
|
15922
|
-
__decorate$
|
|
15922
|
+
__decorate$b([
|
|
15923
15923
|
n$1({
|
|
15924
15924
|
type: String,
|
|
15925
15925
|
attribute: 'empty-message',
|
|
@@ -15944,7 +15944,7 @@
|
|
|
15944
15944
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15945
15945
|
*/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
15946
|
|
|
15947
|
-
var __decorate$
|
|
15947
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15948
15948
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15949
15949
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15950
15950
|
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 +16321,67 @@
|
|
|
16321
16321
|
`;
|
|
16322
16322
|
// Enable form association
|
|
16323
16323
|
KRTextField.formAssociated = true;
|
|
16324
|
-
__decorate$
|
|
16324
|
+
__decorate$a([
|
|
16325
16325
|
n$1({ type: String })
|
|
16326
16326
|
], KRTextField.prototype, "label", void 0);
|
|
16327
|
-
__decorate$
|
|
16327
|
+
__decorate$a([
|
|
16328
16328
|
n$1({ type: String })
|
|
16329
16329
|
], KRTextField.prototype, "name", void 0);
|
|
16330
|
-
__decorate$
|
|
16330
|
+
__decorate$a([
|
|
16331
16331
|
n$1({ type: String })
|
|
16332
16332
|
], KRTextField.prototype, "value", void 0);
|
|
16333
|
-
__decorate$
|
|
16333
|
+
__decorate$a([
|
|
16334
16334
|
n$1({ attribute: false })
|
|
16335
16335
|
], KRTextField.prototype, "valueAsNumber", void 0);
|
|
16336
|
-
__decorate$
|
|
16336
|
+
__decorate$a([
|
|
16337
16337
|
n$1({ type: String })
|
|
16338
16338
|
], KRTextField.prototype, "placeholder", void 0);
|
|
16339
|
-
__decorate$
|
|
16339
|
+
__decorate$a([
|
|
16340
16340
|
n$1({ type: String })
|
|
16341
16341
|
], KRTextField.prototype, "type", void 0);
|
|
16342
|
-
__decorate$
|
|
16342
|
+
__decorate$a([
|
|
16343
16343
|
n$1({ type: Boolean })
|
|
16344
16344
|
], KRTextField.prototype, "required", void 0);
|
|
16345
|
-
__decorate$
|
|
16345
|
+
__decorate$a([
|
|
16346
16346
|
n$1({ type: Boolean })
|
|
16347
16347
|
], KRTextField.prototype, "disabled", void 0);
|
|
16348
|
-
__decorate$
|
|
16348
|
+
__decorate$a([
|
|
16349
16349
|
n$1({ type: Boolean })
|
|
16350
16350
|
], KRTextField.prototype, "readonly", void 0);
|
|
16351
|
-
__decorate$
|
|
16351
|
+
__decorate$a([
|
|
16352
16352
|
n$1({ type: Number })
|
|
16353
16353
|
], KRTextField.prototype, "minlength", void 0);
|
|
16354
|
-
__decorate$
|
|
16354
|
+
__decorate$a([
|
|
16355
16355
|
n$1({ type: Number })
|
|
16356
16356
|
], KRTextField.prototype, "maxlength", void 0);
|
|
16357
|
-
__decorate$
|
|
16357
|
+
__decorate$a([
|
|
16358
16358
|
n$1({ type: String })
|
|
16359
16359
|
], KRTextField.prototype, "pattern", void 0);
|
|
16360
|
-
__decorate$
|
|
16360
|
+
__decorate$a([
|
|
16361
16361
|
n$1({ type: String })
|
|
16362
16362
|
], KRTextField.prototype, "autocomplete", void 0);
|
|
16363
|
-
__decorate$
|
|
16363
|
+
__decorate$a([
|
|
16364
16364
|
n$1({ type: String })
|
|
16365
16365
|
], KRTextField.prototype, "hint", void 0);
|
|
16366
|
-
__decorate$
|
|
16366
|
+
__decorate$a([
|
|
16367
16367
|
n$1({
|
|
16368
16368
|
type: Boolean,
|
|
16369
16369
|
reflect: true,
|
|
16370
16370
|
})
|
|
16371
16371
|
], KRTextField.prototype, "dirty", void 0);
|
|
16372
|
-
__decorate$
|
|
16372
|
+
__decorate$a([
|
|
16373
16373
|
n$1({ attribute: 'save-mode' })
|
|
16374
16374
|
], KRTextField.prototype, "saveMode", void 0);
|
|
16375
|
-
__decorate$
|
|
16375
|
+
__decorate$a([
|
|
16376
16376
|
n$1({
|
|
16377
16377
|
type: Boolean,
|
|
16378
16378
|
reflect: true,
|
|
16379
16379
|
})
|
|
16380
16380
|
], KRTextField.prototype, "saving", void 0);
|
|
16381
|
-
__decorate$
|
|
16381
|
+
__decorate$a([
|
|
16382
16382
|
r$1()
|
|
16383
16383
|
], KRTextField.prototype, "_touched", void 0);
|
|
16384
|
-
__decorate$
|
|
16384
|
+
__decorate$a([
|
|
16385
16385
|
e$3('input')
|
|
16386
16386
|
], KRTextField.prototype, "_input", void 0);
|
|
16387
16387
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -16391,6 +16391,448 @@
|
|
|
16391
16391
|
customElements.define('krs-text-field', KRTextField);
|
|
16392
16392
|
}
|
|
16393
16393
|
|
|
16394
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16395
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16396
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16397
|
+
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16399
|
+
};
|
|
16400
|
+
/**
|
|
16401
|
+
* A number field component that works with native browser forms.
|
|
16402
|
+
*
|
|
16403
|
+
* Wraps a native number input, so the browser supplies the numeric keyboard, the spin buttons and
|
|
16404
|
+
* min/max/step validation. Uses ElementInternals for form association, allowing the component to
|
|
16405
|
+
* participate in form submission, validation, and reset.
|
|
16406
|
+
*
|
|
16407
|
+
* `value` is the text in the input, as a native number input reports it. `valueAsNumber` is the
|
|
16408
|
+
* parsed number, or null when the field is empty; <krs-form> reads it so a change carries a real
|
|
16409
|
+
* number rather than a string.
|
|
16410
|
+
*
|
|
16411
|
+
* Native input and change events bubble up from the inner input element.
|
|
16412
|
+
*/
|
|
16413
|
+
class KRNumberField extends i$3 {
|
|
16414
|
+
/**
|
|
16415
|
+
* Builds a field from a plain object, as a tool's UI spec describes one. Every key is one of this
|
|
16416
|
+
* field's own properties and is set only when present, so an absent key keeps the default.
|
|
16417
|
+
*/
|
|
16418
|
+
static fromJSON(json) {
|
|
16419
|
+
const field = new KRNumberField();
|
|
16420
|
+
if (json.label !== undefined) {
|
|
16421
|
+
field.label = json.label;
|
|
16422
|
+
}
|
|
16423
|
+
if (json.name !== undefined) {
|
|
16424
|
+
field.name = json.name;
|
|
16425
|
+
}
|
|
16426
|
+
if (json.value !== undefined) {
|
|
16427
|
+
field.value = String(json.value);
|
|
16428
|
+
}
|
|
16429
|
+
if (json.placeholder !== undefined) {
|
|
16430
|
+
field.placeholder = json.placeholder;
|
|
16431
|
+
}
|
|
16432
|
+
if (json.min !== undefined) {
|
|
16433
|
+
field.min = json.min;
|
|
16434
|
+
}
|
|
16435
|
+
if (json.max !== undefined) {
|
|
16436
|
+
field.max = json.max;
|
|
16437
|
+
}
|
|
16438
|
+
if (json.step !== undefined) {
|
|
16439
|
+
field.step = json.step;
|
|
16440
|
+
}
|
|
16441
|
+
if (json.required !== undefined) {
|
|
16442
|
+
field.required = json.required;
|
|
16443
|
+
}
|
|
16444
|
+
if (json.disabled !== undefined) {
|
|
16445
|
+
field.disabled = json.disabled;
|
|
16446
|
+
}
|
|
16447
|
+
if (json.readonly !== undefined) {
|
|
16448
|
+
field.readonly = json.readonly;
|
|
16449
|
+
}
|
|
16450
|
+
if (json.hint !== undefined) {
|
|
16451
|
+
field.hint = json.hint;
|
|
16452
|
+
}
|
|
16453
|
+
if (json.saveMode !== undefined) {
|
|
16454
|
+
field.saveMode = json.saveMode;
|
|
16455
|
+
}
|
|
16456
|
+
return field;
|
|
16457
|
+
}
|
|
16458
|
+
constructor() {
|
|
16459
|
+
super();
|
|
16460
|
+
// The value the user last typed. While dirty, an external `value` set is reverted to this (see
|
|
16461
|
+
// willUpdate) so a parent re-binding from the server can't overwrite an unsaved edit.
|
|
16462
|
+
this._dirtyValue = '';
|
|
16463
|
+
/**
|
|
16464
|
+
* The input label text
|
|
16465
|
+
*/
|
|
16466
|
+
this.label = '';
|
|
16467
|
+
/**
|
|
16468
|
+
* The input name for form submission
|
|
16469
|
+
*/
|
|
16470
|
+
this.name = '';
|
|
16471
|
+
/**
|
|
16472
|
+
* The current value as text, as the native number input holds it. Set it to a number's string
|
|
16473
|
+
* form, or to '' to clear the field.
|
|
16474
|
+
*/
|
|
16475
|
+
this.value = '';
|
|
16476
|
+
/**
|
|
16477
|
+
* The value as a number. Kept in sync with `value`; null when the field is empty or the text is
|
|
16478
|
+
* not a number. <krs-form> reads this so the emitted change carries a real number (or null to clear).
|
|
16479
|
+
*/
|
|
16480
|
+
this.valueAsNumber = null;
|
|
16481
|
+
/**
|
|
16482
|
+
* Placeholder text
|
|
16483
|
+
*/
|
|
16484
|
+
this.placeholder = '';
|
|
16485
|
+
/**
|
|
16486
|
+
* Whether the field is required
|
|
16487
|
+
*/
|
|
16488
|
+
this.required = false;
|
|
16489
|
+
/**
|
|
16490
|
+
* Whether the field is disabled
|
|
16491
|
+
*/
|
|
16492
|
+
this.disabled = false;
|
|
16493
|
+
/**
|
|
16494
|
+
* Whether the field is readonly
|
|
16495
|
+
*/
|
|
16496
|
+
this.readonly = false;
|
|
16497
|
+
/**
|
|
16498
|
+
* Helper text shown below the input
|
|
16499
|
+
*/
|
|
16500
|
+
this.hint = '';
|
|
16501
|
+
/**
|
|
16502
|
+
* Whether the user has edited this field since it was last loaded or marked pristine. Set on
|
|
16503
|
+
* user input, cleared by markPristine(). Used by <krs-form> to collect only changed fields.
|
|
16504
|
+
*/
|
|
16505
|
+
this.dirty = false;
|
|
16506
|
+
/**
|
|
16507
|
+
* Whether a <krs-form> save carrying this field's edit is in flight. Set by markSaving(), cleared
|
|
16508
|
+
* by markSaved()/markSaveFailed().
|
|
16509
|
+
*/
|
|
16510
|
+
this.saving = false;
|
|
16511
|
+
this._touched = false;
|
|
16512
|
+
this._handleInvalid = (e) => {
|
|
16513
|
+
e.preventDefault();
|
|
16514
|
+
this._touched = true;
|
|
16515
|
+
};
|
|
16516
|
+
this._internals = this.attachInternals();
|
|
16517
|
+
}
|
|
16518
|
+
connectedCallback() {
|
|
16519
|
+
super.connectedCallback();
|
|
16520
|
+
// Marks this as a krubble form field so <krs-form> can find its controls (.kr-form-field).
|
|
16521
|
+
this.classList.add('kr-form-field');
|
|
16522
|
+
this.addEventListener('invalid', this._handleInvalid);
|
|
16523
|
+
}
|
|
16524
|
+
disconnectedCallback() {
|
|
16525
|
+
super.disconnectedCallback();
|
|
16526
|
+
this.removeEventListener('invalid', this._handleInvalid);
|
|
16527
|
+
}
|
|
16528
|
+
firstUpdated() {
|
|
16529
|
+
this._updateValidity();
|
|
16530
|
+
}
|
|
16531
|
+
willUpdate(changedProperties) {
|
|
16532
|
+
// This field's own save-mode, else the enclosing <krs-form>'s. Unset either way means manual.
|
|
16533
|
+
let saveMode = this.saveMode;
|
|
16534
|
+
if (!saveMode) {
|
|
16535
|
+
saveMode = this.closest('krs-form')?.saveMode;
|
|
16536
|
+
}
|
|
16537
|
+
// While the user has an unsaved edit, an external `value` set (e.g. a parent re-binding from a
|
|
16538
|
+
// server response that predates the edit) would overwrite it. Revert to the user's value. The
|
|
16539
|
+
// field accepts external values again once the edit is saved (markSaving clears dirty) or reset.
|
|
16540
|
+
if (changedProperties.has('value') && this.dirty && this.value !== this._dirtyValue && saveMode === 'autosave') {
|
|
16541
|
+
this.value = this._dirtyValue;
|
|
16542
|
+
}
|
|
16543
|
+
}
|
|
16544
|
+
updated(changedProperties) {
|
|
16545
|
+
if (changedProperties.has('required') || changedProperties.has('value') || changedProperties.has('min')
|
|
16546
|
+
|| changedProperties.has('max') || changedProperties.has('step')) {
|
|
16547
|
+
this._updateValidity();
|
|
16548
|
+
}
|
|
16549
|
+
// Keep valueAsNumber in sync with value (from user input or a programmatic set). Empty or
|
|
16550
|
+
// non-numeric is null.
|
|
16551
|
+
if (changedProperties.has('value')) {
|
|
16552
|
+
const parsed = Number(this.value);
|
|
16553
|
+
if (this.value === '' || Number.isNaN(parsed)) {
|
|
16554
|
+
this.valueAsNumber = null;
|
|
16555
|
+
}
|
|
16556
|
+
else {
|
|
16557
|
+
this.valueAsNumber = parsed;
|
|
16558
|
+
}
|
|
16559
|
+
}
|
|
16560
|
+
}
|
|
16561
|
+
// Form-associated custom element callbacks
|
|
16562
|
+
get form() {
|
|
16563
|
+
return this._internals.form;
|
|
16564
|
+
}
|
|
16565
|
+
get validity() {
|
|
16566
|
+
return this._internals.validity;
|
|
16567
|
+
}
|
|
16568
|
+
get validationMessage() {
|
|
16569
|
+
return this._internals.validationMessage;
|
|
16570
|
+
}
|
|
16571
|
+
get willValidate() {
|
|
16572
|
+
return this._internals.willValidate;
|
|
16573
|
+
}
|
|
16574
|
+
checkValidity() {
|
|
16575
|
+
return this._internals.checkValidity();
|
|
16576
|
+
}
|
|
16577
|
+
reportValidity() {
|
|
16578
|
+
return this._internals.reportValidity();
|
|
16579
|
+
}
|
|
16580
|
+
formResetCallback() {
|
|
16581
|
+
this.value = '';
|
|
16582
|
+
this._touched = false;
|
|
16583
|
+
this.dirty = false;
|
|
16584
|
+
this.saving = false;
|
|
16585
|
+
this._internals.setFormValue('');
|
|
16586
|
+
this._internals.setValidity({});
|
|
16587
|
+
}
|
|
16588
|
+
// Clears the dirty flag so the field is no longer reported as changed.
|
|
16589
|
+
markPristine() {
|
|
16590
|
+
this.dirty = false;
|
|
16591
|
+
}
|
|
16592
|
+
// <krs-form> calls this when a save carrying this field's edit starts. Clearing dirty here means a
|
|
16593
|
+
// further edit during the request is tracked as new and goes out in the next save.
|
|
16594
|
+
markSaving() {
|
|
16595
|
+
this.saving = true;
|
|
16596
|
+
this.dirty = false;
|
|
16597
|
+
}
|
|
16598
|
+
// <krs-form> calls this when the save succeeded. If the user edited mid-flight the field is dirty
|
|
16599
|
+
// again and stays that way.
|
|
16600
|
+
markSaved() {
|
|
16601
|
+
this.saving = false;
|
|
16602
|
+
}
|
|
16603
|
+
// <krs-form> calls this when the save failed. Restore dirty so the next change retries the edit.
|
|
16604
|
+
markSaveFailed() {
|
|
16605
|
+
this.saving = false;
|
|
16606
|
+
this.dirty = true;
|
|
16607
|
+
this._dirtyValue = this.value;
|
|
16608
|
+
}
|
|
16609
|
+
formStateRestoreCallback(state) {
|
|
16610
|
+
this.value = state;
|
|
16611
|
+
}
|
|
16612
|
+
// Public methods for programmatic control
|
|
16613
|
+
focus() {
|
|
16614
|
+
this._input?.focus();
|
|
16615
|
+
}
|
|
16616
|
+
blur() {
|
|
16617
|
+
this._input?.blur();
|
|
16618
|
+
}
|
|
16619
|
+
select() {
|
|
16620
|
+
this._input?.select();
|
|
16621
|
+
}
|
|
16622
|
+
_updateValidity() {
|
|
16623
|
+
if (this._input) {
|
|
16624
|
+
this._internals.setValidity(this._input.validity, this._input.validationMessage);
|
|
16625
|
+
}
|
|
16626
|
+
}
|
|
16627
|
+
_handleInput(e) {
|
|
16628
|
+
this.value = e.target.value;
|
|
16629
|
+
this.dirty = true;
|
|
16630
|
+
this._dirtyValue = this.value;
|
|
16631
|
+
this._internals.setFormValue(this.value);
|
|
16632
|
+
this._internals.setValidity(this._input.validity, this._input.validationMessage);
|
|
16633
|
+
}
|
|
16634
|
+
// The inner input's native `change` fires on commit (blur after an edit, or a spin button click)
|
|
16635
|
+
// but doesn't cross the shadow boundary — re-dispatch a composed one so a wrapping <krs-form>
|
|
16636
|
+
// hears it.
|
|
16637
|
+
_handleChange(e) {
|
|
16638
|
+
this.value = e.target.value;
|
|
16639
|
+
this._internals.setFormValue(this.value);
|
|
16640
|
+
this.dispatchEvent(new Event('change', {
|
|
16641
|
+
bubbles: true,
|
|
16642
|
+
composed: true,
|
|
16643
|
+
}));
|
|
16644
|
+
}
|
|
16645
|
+
_handleBlur() {
|
|
16646
|
+
this._touched = true;
|
|
16647
|
+
this._internals.setValidity(this._input.validity, this._input.validationMessage);
|
|
16648
|
+
}
|
|
16649
|
+
render() {
|
|
16650
|
+
let validationMessage = '';
|
|
16651
|
+
if (this._touched && this._input && !this._input.validity.valid) {
|
|
16652
|
+
validationMessage = this._input.validationMessage;
|
|
16653
|
+
}
|
|
16654
|
+
let labelTemplate = b ``;
|
|
16655
|
+
if (this.label) {
|
|
16656
|
+
let requiredMark = b ``;
|
|
16657
|
+
if (this.required) {
|
|
16658
|
+
requiredMark = b `<span class="required" aria-hidden="true">*</span>`;
|
|
16659
|
+
}
|
|
16660
|
+
labelTemplate = b `
|
|
16661
|
+
<label for="input">
|
|
16662
|
+
${this.label}
|
|
16663
|
+
${requiredMark}
|
|
16664
|
+
</label>
|
|
16665
|
+
`;
|
|
16666
|
+
}
|
|
16667
|
+
let footer = b ``;
|
|
16668
|
+
if (validationMessage) {
|
|
16669
|
+
footer = b `<div class="validation-message">${validationMessage}</div>`;
|
|
16670
|
+
}
|
|
16671
|
+
else if (this.hint) {
|
|
16672
|
+
footer = b `<div class="hint">${this.hint}</div>`;
|
|
16673
|
+
}
|
|
16674
|
+
return b `
|
|
16675
|
+
<div class="wrapper">
|
|
16676
|
+
${labelTemplate}
|
|
16677
|
+
<input
|
|
16678
|
+
id="input"
|
|
16679
|
+
class=${e$1({
|
|
16680
|
+
'input--invalid': this._touched && this._input && !this._input.validity.valid
|
|
16681
|
+
})}
|
|
16682
|
+
type="number"
|
|
16683
|
+
name=${this.name}
|
|
16684
|
+
.value=${l(this.value)}
|
|
16685
|
+
placeholder=${this.placeholder}
|
|
16686
|
+
?required=${this.required}
|
|
16687
|
+
?disabled=${this.disabled}
|
|
16688
|
+
?readonly=${this.readonly}
|
|
16689
|
+
min=${o(this.min)}
|
|
16690
|
+
max=${o(this.max)}
|
|
16691
|
+
step=${o(this.step)}
|
|
16692
|
+
@input=${this._handleInput}
|
|
16693
|
+
@change=${this._handleChange}
|
|
16694
|
+
@blur=${this._handleBlur}
|
|
16695
|
+
/>
|
|
16696
|
+
${footer}
|
|
16697
|
+
</div>
|
|
16698
|
+
`;
|
|
16699
|
+
}
|
|
16700
|
+
}
|
|
16701
|
+
KRNumberField.styles = i$6 `
|
|
16702
|
+
:host {
|
|
16703
|
+
display: block;
|
|
16704
|
+
font-family: inherit;
|
|
16705
|
+
}
|
|
16706
|
+
|
|
16707
|
+
.wrapper {
|
|
16708
|
+
display: flex;
|
|
16709
|
+
flex-direction: column;
|
|
16710
|
+
gap: 6px;
|
|
16711
|
+
}
|
|
16712
|
+
|
|
16713
|
+
label {
|
|
16714
|
+
font-size: var(--kr-field-font-size, 14px);
|
|
16715
|
+
font-weight: 500;
|
|
16716
|
+
color: black;
|
|
16717
|
+
}
|
|
16718
|
+
|
|
16719
|
+
.required {
|
|
16720
|
+
color: var(--kr-number-field-required-color, #ef4444);
|
|
16721
|
+
margin-left: 0.125rem;
|
|
16722
|
+
}
|
|
16723
|
+
|
|
16724
|
+
input {
|
|
16725
|
+
font-family: inherit;
|
|
16726
|
+
font-size: var(--kr-field-font-size, 14px);
|
|
16727
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
16728
|
+
padding: var(--kr-field-padding, 10px 12px);
|
|
16729
|
+
border: 1px solid var(--kr-number-field-border-color, #0000003d);
|
|
16730
|
+
border-radius: 8px;
|
|
16731
|
+
background-color: var(--kr-number-field-bg, #fff);
|
|
16732
|
+
color: var(--kr-number-field-color, #111827);
|
|
16733
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
16734
|
+
}
|
|
16735
|
+
|
|
16736
|
+
input:focus {
|
|
16737
|
+
outline: none;
|
|
16738
|
+
border-color: var(--kr-number-field-focus-border-color, #163052);
|
|
16739
|
+
box-shadow: 0 0 0 3px var(--kr-number-field-focus-ring-color, rgba(22, 48, 82, 0.1));
|
|
16740
|
+
}
|
|
16741
|
+
|
|
16742
|
+
input:disabled {
|
|
16743
|
+
background-color: var(--kr-number-field-disabled-bg, #f3f4f6);
|
|
16744
|
+
color: var(--kr-number-field-disabled-color, #9ca3af);
|
|
16745
|
+
cursor: not-allowed;
|
|
16746
|
+
}
|
|
16747
|
+
|
|
16748
|
+
input::placeholder {
|
|
16749
|
+
color: var(--kr-number-field-placeholder-color, #9ca3af);
|
|
16750
|
+
}
|
|
16751
|
+
|
|
16752
|
+
input.input--invalid {
|
|
16753
|
+
border-color: var(--kr-number-field-error-border-color, #ef4444);
|
|
16754
|
+
}
|
|
16755
|
+
|
|
16756
|
+
input.input--invalid:focus {
|
|
16757
|
+
box-shadow: 0 0 0 3px var(--kr-number-field-error-ring-color, rgba(239, 68, 68, 0.1));
|
|
16758
|
+
}
|
|
16759
|
+
|
|
16760
|
+
.validation-message {
|
|
16761
|
+
font-size: 0.75rem;
|
|
16762
|
+
color: var(--kr-number-field-error-color, #ef4444);
|
|
16763
|
+
}
|
|
16764
|
+
|
|
16765
|
+
.hint {
|
|
16766
|
+
font-size: 0.75rem;
|
|
16767
|
+
color: var(--kr-number-field-helper-color, #6b7280);
|
|
16768
|
+
}
|
|
16769
|
+
`;
|
|
16770
|
+
// Enable form association
|
|
16771
|
+
KRNumberField.formAssociated = true;
|
|
16772
|
+
__decorate$9([
|
|
16773
|
+
n$1({ type: String })
|
|
16774
|
+
], KRNumberField.prototype, "label", void 0);
|
|
16775
|
+
__decorate$9([
|
|
16776
|
+
n$1({ type: String })
|
|
16777
|
+
], KRNumberField.prototype, "name", void 0);
|
|
16778
|
+
__decorate$9([
|
|
16779
|
+
n$1({ type: String })
|
|
16780
|
+
], KRNumberField.prototype, "value", void 0);
|
|
16781
|
+
__decorate$9([
|
|
16782
|
+
n$1({ attribute: false })
|
|
16783
|
+
], KRNumberField.prototype, "valueAsNumber", void 0);
|
|
16784
|
+
__decorate$9([
|
|
16785
|
+
n$1({ type: String })
|
|
16786
|
+
], KRNumberField.prototype, "placeholder", void 0);
|
|
16787
|
+
__decorate$9([
|
|
16788
|
+
n$1({ type: Number })
|
|
16789
|
+
], KRNumberField.prototype, "min", void 0);
|
|
16790
|
+
__decorate$9([
|
|
16791
|
+
n$1({ type: Number })
|
|
16792
|
+
], KRNumberField.prototype, "max", void 0);
|
|
16793
|
+
__decorate$9([
|
|
16794
|
+
n$1({ type: String })
|
|
16795
|
+
], KRNumberField.prototype, "step", void 0);
|
|
16796
|
+
__decorate$9([
|
|
16797
|
+
n$1({ type: Boolean })
|
|
16798
|
+
], KRNumberField.prototype, "required", void 0);
|
|
16799
|
+
__decorate$9([
|
|
16800
|
+
n$1({ type: Boolean })
|
|
16801
|
+
], KRNumberField.prototype, "disabled", void 0);
|
|
16802
|
+
__decorate$9([
|
|
16803
|
+
n$1({ type: Boolean })
|
|
16804
|
+
], KRNumberField.prototype, "readonly", void 0);
|
|
16805
|
+
__decorate$9([
|
|
16806
|
+
n$1({ type: String })
|
|
16807
|
+
], KRNumberField.prototype, "hint", void 0);
|
|
16808
|
+
__decorate$9([
|
|
16809
|
+
n$1({
|
|
16810
|
+
type: Boolean,
|
|
16811
|
+
reflect: true,
|
|
16812
|
+
})
|
|
16813
|
+
], KRNumberField.prototype, "dirty", void 0);
|
|
16814
|
+
__decorate$9([
|
|
16815
|
+
n$1({ attribute: 'save-mode' })
|
|
16816
|
+
], KRNumberField.prototype, "saveMode", void 0);
|
|
16817
|
+
__decorate$9([
|
|
16818
|
+
n$1({
|
|
16819
|
+
type: Boolean,
|
|
16820
|
+
reflect: true,
|
|
16821
|
+
})
|
|
16822
|
+
], KRNumberField.prototype, "saving", void 0);
|
|
16823
|
+
__decorate$9([
|
|
16824
|
+
r$1()
|
|
16825
|
+
], KRNumberField.prototype, "_touched", void 0);
|
|
16826
|
+
__decorate$9([
|
|
16827
|
+
e$3('input')
|
|
16828
|
+
], KRNumberField.prototype, "_input", void 0);
|
|
16829
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
16830
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
16831
|
+
// own copy) doesn't throw. First definition wins.
|
|
16832
|
+
if (!customElements.get('krs-number-field')) {
|
|
16833
|
+
customElements.define('krs-number-field', KRNumberField);
|
|
16834
|
+
}
|
|
16835
|
+
|
|
16394
16836
|
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16395
16837
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16396
16838
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -17852,10 +18294,10 @@
|
|
|
17852
18294
|
formStateRestoreCallback(state) {
|
|
17853
18295
|
this.value = state;
|
|
17854
18296
|
}
|
|
18297
|
+
// Focuses the trigger without opening the list, like every other field's focus(). Click, Enter, Space and
|
|
18298
|
+
// the arrow keys open it.
|
|
17855
18299
|
focus() {
|
|
17856
|
-
|
|
17857
|
-
this._open();
|
|
17858
|
-
}
|
|
18300
|
+
this._triggerElement?.focus();
|
|
17859
18301
|
}
|
|
17860
18302
|
blur() {
|
|
17861
18303
|
this._triggerElement?.blur();
|
|
@@ -20936,7 +21378,7 @@
|
|
|
20936
21378
|
}
|
|
20937
21379
|
/**
|
|
20938
21380
|
* 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`,
|
|
21381
|
+
* an input. The type is the control's own name, its tag without the `kr-` prefix: `text-field`, `number-field`,
|
|
20940
21382
|
* `textarea-field`, `checkbox`, `select-field`, `combo-box`, `date-picker`, `date-range-picker`,
|
|
20941
21383
|
* `auto-suggest`, `radio-cards`, `file-field`, `detail-field` or `monaco`. The other keys are the
|
|
20942
21384
|
* control's own properties and go to its static `fromJSON`. `monaco` is built only when the caller has
|
|
@@ -20950,6 +21392,9 @@
|
|
|
20950
21392
|
if (json.type === 'textarea-field') {
|
|
20951
21393
|
return KRTextareaField.fromJSON(json);
|
|
20952
21394
|
}
|
|
21395
|
+
if (json.type === 'number-field') {
|
|
21396
|
+
return KRNumberField.fromJSON(json);
|
|
21397
|
+
}
|
|
20953
21398
|
if (json.type === 'checkbox') {
|
|
20954
21399
|
return KRCheckbox.fromJSON(json);
|
|
20955
21400
|
}
|
|
@@ -21013,7 +21458,7 @@
|
|
|
21013
21458
|
else if (field.tagName === 'KR-DATE-PICKER') {
|
|
21014
21459
|
changes[field.name] = field.valueAsDate;
|
|
21015
21460
|
}
|
|
21016
|
-
else if (field.
|
|
21461
|
+
else if (field.tagName === 'KR-NUMBER-FIELD') {
|
|
21017
21462
|
changes[field.name] = field.valueAsNumber;
|
|
21018
21463
|
}
|
|
21019
21464
|
else {
|