@kodaris/krubble-app-components 1.0.173 → 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;
|
|
@@ -5213,6 +5213,7 @@
|
|
|
5213
5213
|
min-width: 250px;
|
|
5214
5214
|
padding: 0.5rem 0.75rem;
|
|
5215
5215
|
font-size: 14px;
|
|
5216
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
5216
5217
|
font-family: inherit;
|
|
5217
5218
|
color: #111827;
|
|
5218
5219
|
background-color: #fff;
|
|
@@ -5380,58 +5381,58 @@
|
|
|
5380
5381
|
`;
|
|
5381
5382
|
// Enable form association
|
|
5382
5383
|
KRDateRangePicker.formAssociated = true;
|
|
5383
|
-
__decorate$
|
|
5384
|
+
__decorate$o([
|
|
5384
5385
|
n$1({ type: String })
|
|
5385
5386
|
], KRDateRangePicker.prototype, "name", void 0);
|
|
5386
|
-
__decorate$
|
|
5387
|
+
__decorate$o([
|
|
5387
5388
|
n$1({
|
|
5388
5389
|
type: Boolean,
|
|
5389
5390
|
reflect: true,
|
|
5390
5391
|
})
|
|
5391
5392
|
], KRDateRangePicker.prototype, "dirty", void 0);
|
|
5392
|
-
__decorate$
|
|
5393
|
+
__decorate$o([
|
|
5393
5394
|
n$1({ attribute: 'save-mode' })
|
|
5394
5395
|
], KRDateRangePicker.prototype, "saveMode", void 0);
|
|
5395
|
-
__decorate$
|
|
5396
|
+
__decorate$o([
|
|
5396
5397
|
n$1({
|
|
5397
5398
|
type: Boolean,
|
|
5398
5399
|
reflect: true,
|
|
5399
5400
|
})
|
|
5400
5401
|
], KRDateRangePicker.prototype, "saving", void 0);
|
|
5401
|
-
__decorate$
|
|
5402
|
+
__decorate$o([
|
|
5402
5403
|
n$1({ type: Object })
|
|
5403
5404
|
], KRDateRangePicker.prototype, "value", void 0);
|
|
5404
|
-
__decorate$
|
|
5405
|
+
__decorate$o([
|
|
5405
5406
|
n$1({ type: Array })
|
|
5406
5407
|
], KRDateRangePicker.prototype, "relativeOptions", void 0);
|
|
5407
|
-
__decorate$
|
|
5408
|
+
__decorate$o([
|
|
5408
5409
|
n$1({ type: Boolean })
|
|
5409
5410
|
], KRDateRangePicker.prototype, "disabled", void 0);
|
|
5410
|
-
__decorate$
|
|
5411
|
+
__decorate$o([
|
|
5411
5412
|
n$1({ type: Boolean })
|
|
5412
5413
|
], KRDateRangePicker.prototype, "invalid", void 0);
|
|
5413
|
-
__decorate$
|
|
5414
|
+
__decorate$o([
|
|
5414
5415
|
n$1({ type: String })
|
|
5415
5416
|
], KRDateRangePicker.prototype, "placeholder", void 0);
|
|
5416
|
-
__decorate$
|
|
5417
|
+
__decorate$o([
|
|
5417
5418
|
n$1({ type: String })
|
|
5418
5419
|
], KRDateRangePicker.prototype, "startDate", void 0);
|
|
5419
|
-
__decorate$
|
|
5420
|
+
__decorate$o([
|
|
5420
5421
|
n$1({ type: String })
|
|
5421
5422
|
], KRDateRangePicker.prototype, "endDate", void 0);
|
|
5422
|
-
__decorate$
|
|
5423
|
+
__decorate$o([
|
|
5423
5424
|
n$1({ type: String })
|
|
5424
5425
|
], KRDateRangePicker.prototype, "mode", void 0);
|
|
5425
|
-
__decorate$
|
|
5426
|
+
__decorate$o([
|
|
5426
5427
|
r$1()
|
|
5427
5428
|
], KRDateRangePicker.prototype, "_isOpen", void 0);
|
|
5428
|
-
__decorate$
|
|
5429
|
+
__decorate$o([
|
|
5429
5430
|
r$1()
|
|
5430
5431
|
], KRDateRangePicker.prototype, "_activeTab", void 0);
|
|
5431
|
-
__decorate$
|
|
5432
|
+
__decorate$o([
|
|
5432
5433
|
r$1()
|
|
5433
5434
|
], KRDateRangePicker.prototype, "_tempStartDate", void 0);
|
|
5434
|
-
__decorate$
|
|
5435
|
+
__decorate$o([
|
|
5435
5436
|
r$1()
|
|
5436
5437
|
], KRDateRangePicker.prototype, "_tempEndDate", void 0);
|
|
5437
5438
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -5441,7 +5442,7 @@
|
|
|
5441
5442
|
customElements.define('krs-date-range-picker', KRDateRangePicker);
|
|
5442
5443
|
}
|
|
5443
5444
|
|
|
5444
|
-
var __decorate$
|
|
5445
|
+
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5445
5446
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5446
5447
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5447
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;
|
|
@@ -5844,19 +5845,19 @@
|
|
|
5844
5845
|
`;
|
|
5845
5846
|
/** Track active snackbars for stacking */
|
|
5846
5847
|
KRSnackbar.activeSnackbars = [];
|
|
5847
|
-
__decorate$
|
|
5848
|
+
__decorate$n([
|
|
5848
5849
|
n$1({ type: String })
|
|
5849
5850
|
], KRSnackbar.prototype, "type", void 0);
|
|
5850
|
-
__decorate$
|
|
5851
|
+
__decorate$n([
|
|
5851
5852
|
n$1({ type: String })
|
|
5852
5853
|
], KRSnackbar.prototype, "title", void 0);
|
|
5853
|
-
__decorate$
|
|
5854
|
+
__decorate$n([
|
|
5854
5855
|
n$1({ type: String })
|
|
5855
5856
|
], KRSnackbar.prototype, "message", void 0);
|
|
5856
|
-
__decorate$
|
|
5857
|
+
__decorate$n([
|
|
5857
5858
|
n$1({ type: Number })
|
|
5858
5859
|
], KRSnackbar.prototype, "duration", void 0);
|
|
5859
|
-
__decorate$
|
|
5860
|
+
__decorate$n([
|
|
5860
5861
|
n$1({ attribute: false })
|
|
5861
5862
|
], KRSnackbar.prototype, "action", void 0);
|
|
5862
5863
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -5866,7 +5867,7 @@
|
|
|
5866
5867
|
customElements.define('krs-snackbar', KRSnackbar);
|
|
5867
5868
|
}
|
|
5868
5869
|
|
|
5869
|
-
var __decorate$
|
|
5870
|
+
var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5870
5871
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5871
5872
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5872
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;
|
|
@@ -6204,16 +6205,16 @@
|
|
|
6204
6205
|
}
|
|
6205
6206
|
`,
|
|
6206
6207
|
];
|
|
6207
|
-
__decorate$
|
|
6208
|
+
__decorate$m([
|
|
6208
6209
|
n$1({
|
|
6209
6210
|
type: String,
|
|
6210
6211
|
attribute: 'active-tab-id',
|
|
6211
6212
|
})
|
|
6212
6213
|
], KRTabGroup.prototype, "activeTabId", void 0);
|
|
6213
|
-
__decorate$
|
|
6214
|
+
__decorate$m([
|
|
6214
6215
|
n$1({ type: Boolean })
|
|
6215
6216
|
], KRTabGroup.prototype, "justified", void 0);
|
|
6216
|
-
__decorate$
|
|
6217
|
+
__decorate$m([
|
|
6217
6218
|
n$1({
|
|
6218
6219
|
type: String,
|
|
6219
6220
|
reflect: true,
|
|
@@ -6226,7 +6227,7 @@
|
|
|
6226
6227
|
customElements.define('krs-tab-group', KRTabGroup);
|
|
6227
6228
|
}
|
|
6228
6229
|
|
|
6229
|
-
var __decorate$
|
|
6230
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6230
6231
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6231
6232
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6232
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;
|
|
@@ -6307,37 +6308,37 @@
|
|
|
6307
6308
|
}
|
|
6308
6309
|
`,
|
|
6309
6310
|
];
|
|
6310
|
-
__decorate$
|
|
6311
|
+
__decorate$l([
|
|
6311
6312
|
n$1({
|
|
6312
6313
|
type: String,
|
|
6313
6314
|
reflect: true,
|
|
6314
6315
|
})
|
|
6315
6316
|
], KRTab.prototype, "id", void 0);
|
|
6316
|
-
__decorate$
|
|
6317
|
+
__decorate$l([
|
|
6317
6318
|
n$1({ type: String })
|
|
6318
6319
|
], KRTab.prototype, "label", void 0);
|
|
6319
|
-
__decorate$
|
|
6320
|
+
__decorate$l([
|
|
6320
6321
|
n$1({ type: String })
|
|
6321
6322
|
], KRTab.prototype, "badge", void 0);
|
|
6322
|
-
__decorate$
|
|
6323
|
+
__decorate$l([
|
|
6323
6324
|
n$1({
|
|
6324
6325
|
type: String,
|
|
6325
6326
|
attribute: 'badge-background',
|
|
6326
6327
|
})
|
|
6327
6328
|
], KRTab.prototype, "badgeBackground", void 0);
|
|
6328
|
-
__decorate$
|
|
6329
|
+
__decorate$l([
|
|
6329
6330
|
n$1({
|
|
6330
6331
|
type: String,
|
|
6331
6332
|
attribute: 'badge-color',
|
|
6332
6333
|
})
|
|
6333
6334
|
], KRTab.prototype, "badgeColor", void 0);
|
|
6334
|
-
__decorate$
|
|
6335
|
+
__decorate$l([
|
|
6335
6336
|
n$1({ type: Boolean })
|
|
6336
6337
|
], KRTab.prototype, "disabled", void 0);
|
|
6337
|
-
__decorate$
|
|
6338
|
+
__decorate$l([
|
|
6338
6339
|
n$1({ type: Boolean })
|
|
6339
6340
|
], KRTab.prototype, "dismissible", void 0);
|
|
6340
|
-
__decorate$
|
|
6341
|
+
__decorate$l([
|
|
6341
6342
|
n$1({
|
|
6342
6343
|
type: Boolean,
|
|
6343
6344
|
reflect: true,
|
|
@@ -6350,7 +6351,7 @@
|
|
|
6350
6351
|
customElements.define('krs-tab', KRTab);
|
|
6351
6352
|
}
|
|
6352
6353
|
|
|
6353
|
-
var __decorate$
|
|
6354
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6354
6355
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6355
6356
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6356
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;
|
|
@@ -6387,10 +6388,10 @@
|
|
|
6387
6388
|
display: none;
|
|
6388
6389
|
}
|
|
6389
6390
|
`;
|
|
6390
|
-
__decorate$
|
|
6391
|
+
__decorate$k([
|
|
6391
6392
|
n$1({ type: String })
|
|
6392
6393
|
], KRSelectOption.prototype, "value", void 0);
|
|
6393
|
-
__decorate$
|
|
6394
|
+
__decorate$k([
|
|
6394
6395
|
n$1({ type: Boolean })
|
|
6395
6396
|
], KRSelectOption.prototype, "disabled", void 0);
|
|
6396
6397
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -6400,7 +6401,7 @@
|
|
|
6400
6401
|
customElements.define('krs-select-option', KRSelectOption);
|
|
6401
6402
|
}
|
|
6402
6403
|
|
|
6403
|
-
var __decorate$
|
|
6404
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6404
6405
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6405
6406
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6406
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;
|
|
@@ -6855,7 +6856,7 @@
|
|
|
6855
6856
|
padding: var(--kr-select-padding, var(--kr-field-padding, 10px 12px));
|
|
6856
6857
|
font-family: inherit;
|
|
6857
6858
|
font-size: var(--kr-field-font-size, 14px);
|
|
6858
|
-
line-height: 1.
|
|
6859
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
6859
6860
|
color: var(--kr-select-color, #000000);
|
|
6860
6861
|
background-color: var(--kr-select-bg, #fff);
|
|
6861
6862
|
border: 1px solid var(--kr-select-border-color, #0000003d);
|
|
@@ -6988,8 +6989,8 @@
|
|
|
6988
6989
|
}
|
|
6989
6990
|
|
|
6990
6991
|
.chevron-icon {
|
|
6991
|
-
width:
|
|
6992
|
-
height:
|
|
6992
|
+
width: 16px;
|
|
6993
|
+
height: 16px;
|
|
6993
6994
|
}
|
|
6994
6995
|
|
|
6995
6996
|
/* Hide the slot - options are rendered in dropdown */
|
|
@@ -6999,55 +7000,55 @@
|
|
|
6999
7000
|
`];
|
|
7000
7001
|
// Enable form association
|
|
7001
7002
|
KRSelectField.formAssociated = true;
|
|
7002
|
-
__decorate$
|
|
7003
|
+
__decorate$j([
|
|
7003
7004
|
n$1({ type: String })
|
|
7004
7005
|
], KRSelectField.prototype, "label", void 0);
|
|
7005
|
-
__decorate$
|
|
7006
|
+
__decorate$j([
|
|
7006
7007
|
n$1({ type: String })
|
|
7007
7008
|
], KRSelectField.prototype, "name", void 0);
|
|
7008
|
-
__decorate$
|
|
7009
|
+
__decorate$j([
|
|
7009
7010
|
n$1({ type: String })
|
|
7010
7011
|
], KRSelectField.prototype, "value", void 0);
|
|
7011
|
-
__decorate$
|
|
7012
|
+
__decorate$j([
|
|
7012
7013
|
n$1({ type: String })
|
|
7013
7014
|
], KRSelectField.prototype, "placeholder", void 0);
|
|
7014
|
-
__decorate$
|
|
7015
|
+
__decorate$j([
|
|
7015
7016
|
n$1({ type: Boolean })
|
|
7016
7017
|
], KRSelectField.prototype, "disabled", void 0);
|
|
7017
|
-
__decorate$
|
|
7018
|
+
__decorate$j([
|
|
7018
7019
|
n$1({ type: Boolean })
|
|
7019
7020
|
], KRSelectField.prototype, "required", void 0);
|
|
7020
|
-
__decorate$
|
|
7021
|
+
__decorate$j([
|
|
7021
7022
|
n$1({ type: Boolean })
|
|
7022
7023
|
], KRSelectField.prototype, "readonly", void 0);
|
|
7023
|
-
__decorate$
|
|
7024
|
+
__decorate$j([
|
|
7024
7025
|
n$1({ type: String })
|
|
7025
7026
|
], KRSelectField.prototype, "hint", void 0);
|
|
7026
|
-
__decorate$
|
|
7027
|
+
__decorate$j([
|
|
7027
7028
|
n$1({
|
|
7028
7029
|
type: Boolean,
|
|
7029
7030
|
reflect: true,
|
|
7030
7031
|
})
|
|
7031
7032
|
], KRSelectField.prototype, "dirty", void 0);
|
|
7032
|
-
__decorate$
|
|
7033
|
+
__decorate$j([
|
|
7033
7034
|
n$1({ attribute: 'save-mode' })
|
|
7034
7035
|
], KRSelectField.prototype, "saveMode", void 0);
|
|
7035
|
-
__decorate$
|
|
7036
|
+
__decorate$j([
|
|
7036
7037
|
n$1({
|
|
7037
7038
|
type: Boolean,
|
|
7038
7039
|
reflect: true,
|
|
7039
7040
|
})
|
|
7040
7041
|
], KRSelectField.prototype, "saving", void 0);
|
|
7041
|
-
__decorate$
|
|
7042
|
+
__decorate$j([
|
|
7042
7043
|
r$1()
|
|
7043
7044
|
], KRSelectField.prototype, "_isOpen", void 0);
|
|
7044
|
-
__decorate$
|
|
7045
|
+
__decorate$j([
|
|
7045
7046
|
r$1()
|
|
7046
7047
|
], KRSelectField.prototype, "_highlightedIndex", void 0);
|
|
7047
|
-
__decorate$
|
|
7048
|
+
__decorate$j([
|
|
7048
7049
|
r$1()
|
|
7049
7050
|
], KRSelectField.prototype, "_touched", void 0);
|
|
7050
|
-
__decorate$
|
|
7051
|
+
__decorate$j([
|
|
7051
7052
|
e$3('.select-trigger')
|
|
7052
7053
|
], KRSelectField.prototype, "_triggerElement", void 0);
|
|
7053
7054
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -8333,7 +8334,7 @@
|
|
|
8333
8334
|
}
|
|
8334
8335
|
}
|
|
8335
8336
|
|
|
8336
|
-
var __decorate$
|
|
8337
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8337
8338
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8338
8339
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8339
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;
|
|
@@ -10912,58 +10913,58 @@
|
|
|
10912
10913
|
}
|
|
10913
10914
|
|
|
10914
10915
|
`];
|
|
10915
|
-
__decorate$
|
|
10916
|
+
__decorate$i([
|
|
10916
10917
|
n$1({ type: Object })
|
|
10917
10918
|
], KRTable.prototype, "def", void 0);
|
|
10918
|
-
__decorate$
|
|
10919
|
+
__decorate$i([
|
|
10919
10920
|
n$1({
|
|
10920
10921
|
type: String,
|
|
10921
10922
|
reflect: true
|
|
10922
10923
|
})
|
|
10923
10924
|
], KRTable.prototype, "variant", void 0);
|
|
10924
|
-
__decorate$
|
|
10925
|
+
__decorate$i([
|
|
10925
10926
|
r$1()
|
|
10926
10927
|
], KRTable.prototype, "_data", void 0);
|
|
10927
|
-
__decorate$
|
|
10928
|
+
__decorate$i([
|
|
10928
10929
|
r$1()
|
|
10929
10930
|
], KRTable.prototype, "_dataState", void 0);
|
|
10930
|
-
__decorate$
|
|
10931
|
+
__decorate$i([
|
|
10931
10932
|
r$1()
|
|
10932
10933
|
], KRTable.prototype, "_page", void 0);
|
|
10933
|
-
__decorate$
|
|
10934
|
+
__decorate$i([
|
|
10934
10935
|
r$1()
|
|
10935
10936
|
], KRTable.prototype, "_pageSize", void 0);
|
|
10936
|
-
__decorate$
|
|
10937
|
+
__decorate$i([
|
|
10937
10938
|
r$1()
|
|
10938
10939
|
], KRTable.prototype, "_totalItems", void 0);
|
|
10939
|
-
__decorate$
|
|
10940
|
+
__decorate$i([
|
|
10940
10941
|
r$1()
|
|
10941
10942
|
], KRTable.prototype, "_totalPages", void 0);
|
|
10942
|
-
__decorate$
|
|
10943
|
+
__decorate$i([
|
|
10943
10944
|
r$1()
|
|
10944
10945
|
], KRTable.prototype, "_searchQuery", void 0);
|
|
10945
|
-
__decorate$
|
|
10946
|
+
__decorate$i([
|
|
10946
10947
|
r$1()
|
|
10947
10948
|
], KRTable.prototype, "_canScrollLeft", void 0);
|
|
10948
|
-
__decorate$
|
|
10949
|
+
__decorate$i([
|
|
10949
10950
|
r$1()
|
|
10950
10951
|
], KRTable.prototype, "_canScrollRight", void 0);
|
|
10951
|
-
__decorate$
|
|
10952
|
+
__decorate$i([
|
|
10952
10953
|
r$1()
|
|
10953
10954
|
], KRTable.prototype, "_canScrollHorizontal", void 0);
|
|
10954
|
-
__decorate$
|
|
10955
|
+
__decorate$i([
|
|
10955
10956
|
r$1()
|
|
10956
10957
|
], KRTable.prototype, "_columnPickerOpen", void 0);
|
|
10957
|
-
__decorate$
|
|
10958
|
+
__decorate$i([
|
|
10958
10959
|
r$1()
|
|
10959
10960
|
], KRTable.prototype, "_filterPanelOpened", void 0);
|
|
10960
|
-
__decorate$
|
|
10961
|
+
__decorate$i([
|
|
10961
10962
|
r$1()
|
|
10962
10963
|
], KRTable.prototype, "_filterPanelTab", void 0);
|
|
10963
|
-
__decorate$
|
|
10964
|
+
__decorate$i([
|
|
10964
10965
|
r$1()
|
|
10965
10966
|
], KRTable.prototype, "_buckets", void 0);
|
|
10966
|
-
__decorate$
|
|
10967
|
+
__decorate$i([
|
|
10967
10968
|
r$1()
|
|
10968
10969
|
], KRTable.prototype, "_sorts", void 0);
|
|
10969
10970
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -10973,7 +10974,7 @@
|
|
|
10973
10974
|
customElements.define('krs-table', KRTable);
|
|
10974
10975
|
}
|
|
10975
10976
|
|
|
10976
|
-
var __decorate$
|
|
10977
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10977
10978
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10978
10979
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10979
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;
|
|
@@ -11342,43 +11343,43 @@
|
|
|
11342
11343
|
}
|
|
11343
11344
|
`];
|
|
11344
11345
|
KRCheckbox.formAssociated = true;
|
|
11345
|
-
__decorate$
|
|
11346
|
+
__decorate$h([
|
|
11346
11347
|
n$1({ type: String })
|
|
11347
11348
|
], KRCheckbox.prototype, "label", void 0);
|
|
11348
|
-
__decorate$
|
|
11349
|
+
__decorate$h([
|
|
11349
11350
|
n$1({ type: String })
|
|
11350
11351
|
], KRCheckbox.prototype, "name", void 0);
|
|
11351
|
-
__decorate$
|
|
11352
|
+
__decorate$h([
|
|
11352
11353
|
n$1({ type: String })
|
|
11353
11354
|
], KRCheckbox.prototype, "value", void 0);
|
|
11354
|
-
__decorate$
|
|
11355
|
+
__decorate$h([
|
|
11355
11356
|
n$1({ type: Boolean })
|
|
11356
11357
|
], KRCheckbox.prototype, "checked", void 0);
|
|
11357
|
-
__decorate$
|
|
11358
|
+
__decorate$h([
|
|
11358
11359
|
n$1({ type: Boolean })
|
|
11359
11360
|
], KRCheckbox.prototype, "disabled", void 0);
|
|
11360
|
-
__decorate$
|
|
11361
|
+
__decorate$h([
|
|
11361
11362
|
n$1({ type: Boolean })
|
|
11362
11363
|
], KRCheckbox.prototype, "required", void 0);
|
|
11363
|
-
__decorate$
|
|
11364
|
+
__decorate$h([
|
|
11364
11365
|
n$1({ type: String })
|
|
11365
11366
|
], KRCheckbox.prototype, "hint", void 0);
|
|
11366
|
-
__decorate$
|
|
11367
|
+
__decorate$h([
|
|
11367
11368
|
n$1({
|
|
11368
11369
|
type: Boolean,
|
|
11369
11370
|
reflect: true,
|
|
11370
11371
|
})
|
|
11371
11372
|
], KRCheckbox.prototype, "dirty", void 0);
|
|
11372
|
-
__decorate$
|
|
11373
|
+
__decorate$h([
|
|
11373
11374
|
n$1({ attribute: 'save-mode' })
|
|
11374
11375
|
], KRCheckbox.prototype, "saveMode", void 0);
|
|
11375
|
-
__decorate$
|
|
11376
|
+
__decorate$h([
|
|
11376
11377
|
n$1({
|
|
11377
11378
|
type: Boolean,
|
|
11378
11379
|
reflect: true,
|
|
11379
11380
|
})
|
|
11380
11381
|
], KRCheckbox.prototype, "saving", void 0);
|
|
11381
|
-
__decorate$
|
|
11382
|
+
__decorate$h([
|
|
11382
11383
|
r$1()
|
|
11383
11384
|
], KRCheckbox.prototype, "_touched", void 0);
|
|
11384
11385
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -11388,7 +11389,7 @@
|
|
|
11388
11389
|
customElements.define('krs-checkbox', KRCheckbox);
|
|
11389
11390
|
}
|
|
11390
11391
|
|
|
11391
|
-
var __decorate$
|
|
11392
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11392
11393
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11393
11394
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11394
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;
|
|
@@ -14290,65 +14291,65 @@
|
|
|
14290
14291
|
}
|
|
14291
14292
|
|
|
14292
14293
|
`];
|
|
14293
|
-
__decorate$
|
|
14294
|
+
__decorate$g([
|
|
14294
14295
|
n$1({ type: Object })
|
|
14295
14296
|
], KRGrid.prototype, "def", void 0);
|
|
14296
|
-
__decorate$
|
|
14297
|
+
__decorate$g([
|
|
14297
14298
|
n$1({
|
|
14298
14299
|
type: String,
|
|
14299
14300
|
reflect: true
|
|
14300
14301
|
})
|
|
14301
14302
|
], KRGrid.prototype, "variant", void 0);
|
|
14302
|
-
__decorate$
|
|
14303
|
+
__decorate$g([
|
|
14303
14304
|
n$1({
|
|
14304
14305
|
type: String,
|
|
14305
14306
|
attribute: 'scroll-mode',
|
|
14306
14307
|
reflect: true
|
|
14307
14308
|
})
|
|
14308
14309
|
], KRGrid.prototype, "scrollMode", void 0);
|
|
14309
|
-
__decorate$
|
|
14310
|
+
__decorate$g([
|
|
14310
14311
|
r$1()
|
|
14311
14312
|
], KRGrid.prototype, "_data", void 0);
|
|
14312
|
-
__decorate$
|
|
14313
|
+
__decorate$g([
|
|
14313
14314
|
r$1()
|
|
14314
14315
|
], KRGrid.prototype, "_dataState", void 0);
|
|
14315
|
-
__decorate$
|
|
14316
|
+
__decorate$g([
|
|
14316
14317
|
r$1()
|
|
14317
14318
|
], KRGrid.prototype, "_page", void 0);
|
|
14318
|
-
__decorate$
|
|
14319
|
+
__decorate$g([
|
|
14319
14320
|
r$1()
|
|
14320
14321
|
], KRGrid.prototype, "_pageSize", void 0);
|
|
14321
|
-
__decorate$
|
|
14322
|
+
__decorate$g([
|
|
14322
14323
|
r$1()
|
|
14323
14324
|
], KRGrid.prototype, "_totalItems", void 0);
|
|
14324
|
-
__decorate$
|
|
14325
|
+
__decorate$g([
|
|
14325
14326
|
r$1()
|
|
14326
14327
|
], KRGrid.prototype, "_totalPages", void 0);
|
|
14327
|
-
__decorate$
|
|
14328
|
+
__decorate$g([
|
|
14328
14329
|
r$1()
|
|
14329
14330
|
], KRGrid.prototype, "_searchQuery", void 0);
|
|
14330
|
-
__decorate$
|
|
14331
|
+
__decorate$g([
|
|
14331
14332
|
r$1()
|
|
14332
14333
|
], KRGrid.prototype, "_canScrollLeft", void 0);
|
|
14333
|
-
__decorate$
|
|
14334
|
+
__decorate$g([
|
|
14334
14335
|
r$1()
|
|
14335
14336
|
], KRGrid.prototype, "_canScrollRight", void 0);
|
|
14336
|
-
__decorate$
|
|
14337
|
+
__decorate$g([
|
|
14337
14338
|
r$1()
|
|
14338
14339
|
], KRGrid.prototype, "_canScrollHorizontal", void 0);
|
|
14339
|
-
__decorate$
|
|
14340
|
+
__decorate$g([
|
|
14340
14341
|
r$1()
|
|
14341
14342
|
], KRGrid.prototype, "_columnPickerOpen", void 0);
|
|
14342
|
-
__decorate$
|
|
14343
|
+
__decorate$g([
|
|
14343
14344
|
r$1()
|
|
14344
14345
|
], KRGrid.prototype, "_filterPanelOpened", void 0);
|
|
14345
|
-
__decorate$
|
|
14346
|
+
__decorate$g([
|
|
14346
14347
|
r$1()
|
|
14347
14348
|
], KRGrid.prototype, "_filterPanelTab", void 0);
|
|
14348
|
-
__decorate$
|
|
14349
|
+
__decorate$g([
|
|
14349
14350
|
r$1()
|
|
14350
14351
|
], KRGrid.prototype, "_buckets", void 0);
|
|
14351
|
-
__decorate$
|
|
14352
|
+
__decorate$g([
|
|
14352
14353
|
r$1()
|
|
14353
14354
|
], KRGrid.prototype, "_sorts", void 0);
|
|
14354
14355
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -14358,7 +14359,7 @@
|
|
|
14358
14359
|
customElements.define('krs-grid', KRGrid);
|
|
14359
14360
|
}
|
|
14360
14361
|
|
|
14361
|
-
var __decorate$
|
|
14362
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14362
14363
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14363
14364
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14364
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;
|
|
@@ -14736,22 +14737,22 @@
|
|
|
14736
14737
|
}
|
|
14737
14738
|
`,
|
|
14738
14739
|
];
|
|
14739
|
-
__decorate$
|
|
14740
|
+
__decorate$f([
|
|
14740
14741
|
n$1({
|
|
14741
14742
|
type: Boolean,
|
|
14742
14743
|
reflect: true
|
|
14743
14744
|
})
|
|
14744
14745
|
], KRGridDialog.prototype, "opened", void 0);
|
|
14745
|
-
__decorate$
|
|
14746
|
+
__decorate$f([
|
|
14746
14747
|
n$1({ type: String })
|
|
14747
14748
|
], KRGridDialog.prototype, "title", void 0);
|
|
14748
|
-
__decorate$
|
|
14749
|
+
__decorate$f([
|
|
14749
14750
|
n$1({ type: String })
|
|
14750
14751
|
], KRGridDialog.prototype, "description", void 0);
|
|
14751
|
-
__decorate$
|
|
14752
|
+
__decorate$f([
|
|
14752
14753
|
n$1({ attribute: false })
|
|
14753
14754
|
], KRGridDialog.prototype, "def", void 0);
|
|
14754
|
-
__decorate$
|
|
14755
|
+
__decorate$f([
|
|
14755
14756
|
n$1({ attribute: false })
|
|
14756
14757
|
], KRGridDialog.prototype, "actions", void 0);
|
|
14757
14758
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -14761,7 +14762,7 @@
|
|
|
14761
14762
|
customElements.define('krs-grid-dialog', KRGridDialog);
|
|
14762
14763
|
}
|
|
14763
14764
|
|
|
14764
|
-
var __decorate$
|
|
14765
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14765
14766
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14766
14767
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14767
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;
|
|
@@ -14885,13 +14886,13 @@
|
|
|
14885
14886
|
stroke-linecap: round;
|
|
14886
14887
|
}
|
|
14887
14888
|
`;
|
|
14888
|
-
__decorate$
|
|
14889
|
+
__decorate$e([
|
|
14889
14890
|
n$1({
|
|
14890
14891
|
type: String,
|
|
14891
14892
|
reflect: true,
|
|
14892
14893
|
})
|
|
14893
14894
|
], KRSpinner.prototype, "size", void 0);
|
|
14894
|
-
__decorate$
|
|
14895
|
+
__decorate$e([
|
|
14895
14896
|
n$1({
|
|
14896
14897
|
type: String,
|
|
14897
14898
|
reflect: true,
|
|
@@ -14904,7 +14905,7 @@
|
|
|
14904
14905
|
customElements.define('krs-spinner', KRSpinner);
|
|
14905
14906
|
}
|
|
14906
14907
|
|
|
14907
|
-
var __decorate$
|
|
14908
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14908
14909
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14909
14910
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14910
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;
|
|
@@ -14995,13 +14996,13 @@
|
|
|
14995
14996
|
}
|
|
14996
14997
|
}
|
|
14997
14998
|
`;
|
|
14998
|
-
__decorate$
|
|
14999
|
+
__decorate$d([
|
|
14999
15000
|
n$1({
|
|
15000
15001
|
type: String,
|
|
15001
15002
|
reflect: true,
|
|
15002
15003
|
})
|
|
15003
15004
|
], KRProgressBar.prototype, "color", void 0);
|
|
15004
|
-
__decorate$
|
|
15005
|
+
__decorate$d([
|
|
15005
15006
|
n$1({
|
|
15006
15007
|
type: String,
|
|
15007
15008
|
reflect: true,
|
|
@@ -15014,7 +15015,7 @@
|
|
|
15014
15015
|
customElements.define('krs-progress-bar', KRProgressBar);
|
|
15015
15016
|
}
|
|
15016
15017
|
|
|
15017
|
-
var __decorate$
|
|
15018
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15018
15019
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15019
15020
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15020
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;
|
|
@@ -15578,16 +15579,16 @@
|
|
|
15578
15579
|
`;
|
|
15579
15580
|
// eslint-disable-next-line kodaris/component-name-context
|
|
15580
15581
|
KRFilePreview._activePreview = null;
|
|
15581
|
-
__decorate$
|
|
15582
|
+
__decorate$c([
|
|
15582
15583
|
n$1({ type: String })
|
|
15583
15584
|
], KRFilePreview.prototype, "src", void 0);
|
|
15584
|
-
__decorate$
|
|
15585
|
+
__decorate$c([
|
|
15585
15586
|
n$1({ type: String })
|
|
15586
15587
|
], KRFilePreview.prototype, "name", void 0);
|
|
15587
|
-
__decorate$
|
|
15588
|
+
__decorate$c([
|
|
15588
15589
|
r$1()
|
|
15589
15590
|
], KRFilePreview.prototype, "_zoomLevel", void 0);
|
|
15590
|
-
__decorate$
|
|
15591
|
+
__decorate$c([
|
|
15591
15592
|
r$1()
|
|
15592
15593
|
], KRFilePreview.prototype, "_textContent", void 0);
|
|
15593
15594
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -15597,7 +15598,7 @@
|
|
|
15597
15598
|
customElements.define('krs-file-preview', KRFilePreview);
|
|
15598
15599
|
}
|
|
15599
15600
|
|
|
15600
|
-
var __decorate$
|
|
15601
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15601
15602
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15602
15603
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15603
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;
|
|
@@ -15915,10 +15916,10 @@
|
|
|
15915
15916
|
padding: 20px;
|
|
15916
15917
|
}
|
|
15917
15918
|
`;
|
|
15918
|
-
__decorate$
|
|
15919
|
+
__decorate$b([
|
|
15919
15920
|
n$1({ type: Array })
|
|
15920
15921
|
], KRFileList.prototype, "files", void 0);
|
|
15921
|
-
__decorate$
|
|
15922
|
+
__decorate$b([
|
|
15922
15923
|
n$1({
|
|
15923
15924
|
type: String,
|
|
15924
15925
|
attribute: 'empty-message',
|
|
@@ -15943,7 +15944,7 @@
|
|
|
15943
15944
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15944
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}});
|
|
15945
15946
|
|
|
15946
|
-
var __decorate$
|
|
15947
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15947
15948
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15948
15949
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15949
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;
|
|
@@ -16275,6 +16276,7 @@
|
|
|
16275
16276
|
input {
|
|
16276
16277
|
font-family: inherit;
|
|
16277
16278
|
font-size: var(--kr-field-font-size, 14px);
|
|
16279
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
16278
16280
|
padding: var(--kr-field-padding, 10px 12px);
|
|
16279
16281
|
border: 1px solid var(--kr-text-field-border-color, #0000003d);
|
|
16280
16282
|
border-radius: 8px;
|
|
@@ -16319,67 +16321,67 @@
|
|
|
16319
16321
|
`;
|
|
16320
16322
|
// Enable form association
|
|
16321
16323
|
KRTextField.formAssociated = true;
|
|
16322
|
-
__decorate$
|
|
16324
|
+
__decorate$a([
|
|
16323
16325
|
n$1({ type: String })
|
|
16324
16326
|
], KRTextField.prototype, "label", void 0);
|
|
16325
|
-
__decorate$
|
|
16327
|
+
__decorate$a([
|
|
16326
16328
|
n$1({ type: String })
|
|
16327
16329
|
], KRTextField.prototype, "name", void 0);
|
|
16328
|
-
__decorate$
|
|
16330
|
+
__decorate$a([
|
|
16329
16331
|
n$1({ type: String })
|
|
16330
16332
|
], KRTextField.prototype, "value", void 0);
|
|
16331
|
-
__decorate$
|
|
16333
|
+
__decorate$a([
|
|
16332
16334
|
n$1({ attribute: false })
|
|
16333
16335
|
], KRTextField.prototype, "valueAsNumber", void 0);
|
|
16334
|
-
__decorate$
|
|
16336
|
+
__decorate$a([
|
|
16335
16337
|
n$1({ type: String })
|
|
16336
16338
|
], KRTextField.prototype, "placeholder", void 0);
|
|
16337
|
-
__decorate$
|
|
16339
|
+
__decorate$a([
|
|
16338
16340
|
n$1({ type: String })
|
|
16339
16341
|
], KRTextField.prototype, "type", void 0);
|
|
16340
|
-
__decorate$
|
|
16342
|
+
__decorate$a([
|
|
16341
16343
|
n$1({ type: Boolean })
|
|
16342
16344
|
], KRTextField.prototype, "required", void 0);
|
|
16343
|
-
__decorate$
|
|
16345
|
+
__decorate$a([
|
|
16344
16346
|
n$1({ type: Boolean })
|
|
16345
16347
|
], KRTextField.prototype, "disabled", void 0);
|
|
16346
|
-
__decorate$
|
|
16348
|
+
__decorate$a([
|
|
16347
16349
|
n$1({ type: Boolean })
|
|
16348
16350
|
], KRTextField.prototype, "readonly", void 0);
|
|
16349
|
-
__decorate$
|
|
16351
|
+
__decorate$a([
|
|
16350
16352
|
n$1({ type: Number })
|
|
16351
16353
|
], KRTextField.prototype, "minlength", void 0);
|
|
16352
|
-
__decorate$
|
|
16354
|
+
__decorate$a([
|
|
16353
16355
|
n$1({ type: Number })
|
|
16354
16356
|
], KRTextField.prototype, "maxlength", void 0);
|
|
16355
|
-
__decorate$
|
|
16357
|
+
__decorate$a([
|
|
16356
16358
|
n$1({ type: String })
|
|
16357
16359
|
], KRTextField.prototype, "pattern", void 0);
|
|
16358
|
-
__decorate$
|
|
16360
|
+
__decorate$a([
|
|
16359
16361
|
n$1({ type: String })
|
|
16360
16362
|
], KRTextField.prototype, "autocomplete", void 0);
|
|
16361
|
-
__decorate$
|
|
16363
|
+
__decorate$a([
|
|
16362
16364
|
n$1({ type: String })
|
|
16363
16365
|
], KRTextField.prototype, "hint", void 0);
|
|
16364
|
-
__decorate$
|
|
16366
|
+
__decorate$a([
|
|
16365
16367
|
n$1({
|
|
16366
16368
|
type: Boolean,
|
|
16367
16369
|
reflect: true,
|
|
16368
16370
|
})
|
|
16369
16371
|
], KRTextField.prototype, "dirty", void 0);
|
|
16370
|
-
__decorate$
|
|
16372
|
+
__decorate$a([
|
|
16371
16373
|
n$1({ attribute: 'save-mode' })
|
|
16372
16374
|
], KRTextField.prototype, "saveMode", void 0);
|
|
16373
|
-
__decorate$
|
|
16375
|
+
__decorate$a([
|
|
16374
16376
|
n$1({
|
|
16375
16377
|
type: Boolean,
|
|
16376
16378
|
reflect: true,
|
|
16377
16379
|
})
|
|
16378
16380
|
], KRTextField.prototype, "saving", void 0);
|
|
16379
|
-
__decorate$
|
|
16381
|
+
__decorate$a([
|
|
16380
16382
|
r$1()
|
|
16381
16383
|
], KRTextField.prototype, "_touched", void 0);
|
|
16382
|
-
__decorate$
|
|
16384
|
+
__decorate$a([
|
|
16383
16385
|
e$3('input')
|
|
16384
16386
|
], KRTextField.prototype, "_input", void 0);
|
|
16385
16387
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
@@ -16389,6 +16391,448 @@
|
|
|
16389
16391
|
customElements.define('krs-text-field', KRTextField);
|
|
16390
16392
|
}
|
|
16391
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
|
+
|
|
16392
16836
|
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16393
16837
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16394
16838
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -17410,6 +17854,7 @@
|
|
|
17410
17854
|
padding: var(--kr-field-padding, 10px 12px);
|
|
17411
17855
|
padding-right: 32px;
|
|
17412
17856
|
font-size: var(--kr-field-font-size, 14px);
|
|
17857
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
17413
17858
|
font-family: inherit;
|
|
17414
17859
|
border: 1px solid var(--kr-text-field-border-color, #0000003d);
|
|
17415
17860
|
border-radius: 8px;
|
|
@@ -17849,10 +18294,10 @@
|
|
|
17849
18294
|
formStateRestoreCallback(state) {
|
|
17850
18295
|
this.value = state;
|
|
17851
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.
|
|
17852
18299
|
focus() {
|
|
17853
|
-
|
|
17854
|
-
this._open();
|
|
17855
|
-
}
|
|
18300
|
+
this._triggerElement?.focus();
|
|
17856
18301
|
}
|
|
17857
18302
|
blur() {
|
|
17858
18303
|
this._triggerElement?.blur();
|
|
@@ -18359,7 +18804,7 @@
|
|
|
18359
18804
|
padding: var(--kr-field-padding, 10px 12px);
|
|
18360
18805
|
font-family: inherit;
|
|
18361
18806
|
font-size: var(--kr-field-font-size, 14px);
|
|
18362
|
-
line-height: 1.
|
|
18807
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
18363
18808
|
color: var(--kr-text-field-color, #111827);
|
|
18364
18809
|
background-color: var(--kr-text-field-bg, #fff);
|
|
18365
18810
|
border: 1px solid var(--kr-text-field-border-color, #0000003d);
|
|
@@ -18412,8 +18857,8 @@
|
|
|
18412
18857
|
.trigger__icon {
|
|
18413
18858
|
flex-shrink: 0;
|
|
18414
18859
|
margin-left: 0.5rem;
|
|
18415
|
-
width:
|
|
18416
|
-
height:
|
|
18860
|
+
width: 16px;
|
|
18861
|
+
height: 16px;
|
|
18417
18862
|
color: var(--kr-text-muted, #6b7280);
|
|
18418
18863
|
transition: transform 0.2s;
|
|
18419
18864
|
}
|
|
@@ -20039,6 +20484,7 @@
|
|
|
20039
20484
|
width: 100%;
|
|
20040
20485
|
padding: var(--kr-date-picker-padding, var(--kr-field-padding, 10px 12px));
|
|
20041
20486
|
font-size: var(--kr-field-font-size, 14px);
|
|
20487
|
+
line-height: var(--kr-field-line-height, 1.2);
|
|
20042
20488
|
font-family: inherit;
|
|
20043
20489
|
color: var(--kr-date-picker-color, #111827);
|
|
20044
20490
|
background-color: var(--kr-date-picker-bg, #fff);
|
|
@@ -20932,7 +21378,7 @@
|
|
|
20932
21378
|
}
|
|
20933
21379
|
/**
|
|
20934
21380
|
* Builds one field from a plain object whose `type` names the control, as a tool's UI spec describes
|
|
20935
|
-
* 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`,
|
|
20936
21382
|
* `textarea-field`, `checkbox`, `select-field`, `combo-box`, `date-picker`, `date-range-picker`,
|
|
20937
21383
|
* `auto-suggest`, `radio-cards`, `file-field`, `detail-field` or `monaco`. The other keys are the
|
|
20938
21384
|
* control's own properties and go to its static `fromJSON`. `monaco` is built only when the caller has
|
|
@@ -20946,6 +21392,9 @@
|
|
|
20946
21392
|
if (json.type === 'textarea-field') {
|
|
20947
21393
|
return KRTextareaField.fromJSON(json);
|
|
20948
21394
|
}
|
|
21395
|
+
if (json.type === 'number-field') {
|
|
21396
|
+
return KRNumberField.fromJSON(json);
|
|
21397
|
+
}
|
|
20949
21398
|
if (json.type === 'checkbox') {
|
|
20950
21399
|
return KRCheckbox.fromJSON(json);
|
|
20951
21400
|
}
|
|
@@ -21009,7 +21458,7 @@
|
|
|
21009
21458
|
else if (field.tagName === 'KR-DATE-PICKER') {
|
|
21010
21459
|
changes[field.name] = field.valueAsDate;
|
|
21011
21460
|
}
|
|
21012
|
-
else if (field.
|
|
21461
|
+
else if (field.tagName === 'KR-NUMBER-FIELD') {
|
|
21013
21462
|
changes[field.name] = field.valueAsNumber;
|
|
21014
21463
|
}
|
|
21015
21464
|
else {
|