@kodaris/krubble-components 1.0.62 → 1.0.63
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.
- package/custom-elements.json +388 -7
- package/dist/form/checkbox/checkbox.d.ts +71 -0
- package/dist/form/checkbox/checkbox.d.ts.map +1 -0
- package/dist/form/checkbox/checkbox.js +304 -0
- package/dist/form/checkbox/checkbox.js.map +1 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.d.ts.map +1 -1
- package/dist/form/index.js +1 -0
- package/dist/form/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/krubble-components.bundled.js +520 -221
- package/dist/krubble-components.bundled.js.map +1 -1
- package/dist/krubble-components.bundled.min.js +136 -27
- package/dist/krubble-components.bundled.min.js.map +1 -1
- package/dist/krubble-components.umd.js +519 -220
- package/dist/krubble-components.umd.js.map +1 -1
- package/dist/krubble-components.umd.min.js +155 -46
- package/dist/krubble-components.umd.min.js.map +1 -1
- package/package.json +9 -1
|
@@ -89,7 +89,7 @@ const e$4=(e,t,c)=>(c.configurable=true,c.enumerable=true,Reflect.decorate&&"obj
|
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
90
|
*/function e$3(e,r){return (n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;return e$4(n,s,{get(){return o(this)}})}}
|
|
91
91
|
|
|
92
|
-
var __decorate$
|
|
92
|
+
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
93
93
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94
94
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
95
95
|
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;
|
|
@@ -196,13 +196,13 @@ KRAccordion.styles = i$5 `
|
|
|
196
196
|
padding: 16px 16px 8px 16px;
|
|
197
197
|
}
|
|
198
198
|
`;
|
|
199
|
-
__decorate$
|
|
199
|
+
__decorate$n([
|
|
200
200
|
n$1({ type: String })
|
|
201
201
|
], KRAccordion.prototype, "header", void 0);
|
|
202
|
-
__decorate$
|
|
202
|
+
__decorate$n([
|
|
203
203
|
n$1({ type: Boolean, reflect: true })
|
|
204
204
|
], KRAccordion.prototype, "expanded", void 0);
|
|
205
|
-
KRAccordion = __decorate$
|
|
205
|
+
KRAccordion = __decorate$n([
|
|
206
206
|
t$1('kr-accordion')
|
|
207
207
|
], KRAccordion);
|
|
208
208
|
|
|
@@ -219,7 +219,7 @@ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},e$2=t=>(...e)=>({_$
|
|
|
219
219
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
220
220
|
*/const e$1=e$2(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return E}});
|
|
221
221
|
|
|
222
|
-
var __decorate$
|
|
222
|
+
var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
223
223
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
224
224
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
225
225
|
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;
|
|
@@ -417,23 +417,23 @@ KRAlert.styles = i$5 `
|
|
|
417
417
|
outline-offset: 2px;
|
|
418
418
|
}
|
|
419
419
|
`;
|
|
420
|
-
__decorate$
|
|
420
|
+
__decorate$m([
|
|
421
421
|
n$1({ type: String })
|
|
422
422
|
], KRAlert.prototype, "type", void 0);
|
|
423
|
-
__decorate$
|
|
423
|
+
__decorate$m([
|
|
424
424
|
n$1({ type: String })
|
|
425
425
|
], KRAlert.prototype, "title", void 0);
|
|
426
|
-
__decorate$
|
|
426
|
+
__decorate$m([
|
|
427
427
|
n$1({ type: Boolean })
|
|
428
428
|
], KRAlert.prototype, "dismissible", void 0);
|
|
429
|
-
__decorate$
|
|
429
|
+
__decorate$m([
|
|
430
430
|
n$1({ type: Boolean })
|
|
431
431
|
], KRAlert.prototype, "visible", void 0);
|
|
432
|
-
KRAlert = __decorate$
|
|
432
|
+
KRAlert = __decorate$m([
|
|
433
433
|
t$1('kr-alert')
|
|
434
434
|
], KRAlert);
|
|
435
435
|
|
|
436
|
-
var __decorate$
|
|
436
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
437
437
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
438
438
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
439
439
|
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;
|
|
@@ -932,40 +932,40 @@ KRButton.styles = i$5 `
|
|
|
932
932
|
height: 22px;
|
|
933
933
|
}
|
|
934
934
|
`;
|
|
935
|
-
__decorate$
|
|
935
|
+
__decorate$l([
|
|
936
936
|
n$1({ type: String, reflect: true })
|
|
937
937
|
], KRButton.prototype, "variant", void 0);
|
|
938
|
-
__decorate$
|
|
938
|
+
__decorate$l([
|
|
939
939
|
n$1({ type: String, reflect: true })
|
|
940
940
|
], KRButton.prototype, "color", void 0);
|
|
941
|
-
__decorate$
|
|
941
|
+
__decorate$l([
|
|
942
942
|
n$1({ type: String, reflect: true })
|
|
943
943
|
], KRButton.prototype, "size", void 0);
|
|
944
|
-
__decorate$
|
|
944
|
+
__decorate$l([
|
|
945
945
|
n$1({ type: Boolean, reflect: true })
|
|
946
946
|
], KRButton.prototype, "disabled", void 0);
|
|
947
|
-
__decorate$
|
|
947
|
+
__decorate$l([
|
|
948
948
|
n$1({ type: String })
|
|
949
949
|
], KRButton.prototype, "href", void 0);
|
|
950
|
-
__decorate$
|
|
950
|
+
__decorate$l([
|
|
951
951
|
n$1({ type: String })
|
|
952
952
|
], KRButton.prototype, "target", void 0);
|
|
953
|
-
__decorate$
|
|
953
|
+
__decorate$l([
|
|
954
954
|
n$1({ type: Array })
|
|
955
955
|
], KRButton.prototype, "options", void 0);
|
|
956
|
-
__decorate$
|
|
956
|
+
__decorate$l([
|
|
957
957
|
n$1({ type: String, reflect: true, attribute: 'icon-position' })
|
|
958
958
|
], KRButton.prototype, "iconPosition", void 0);
|
|
959
|
-
__decorate$
|
|
959
|
+
__decorate$l([
|
|
960
960
|
r$1()
|
|
961
961
|
], KRButton.prototype, "_state", void 0);
|
|
962
|
-
__decorate$
|
|
962
|
+
__decorate$l([
|
|
963
963
|
r$1()
|
|
964
964
|
], KRButton.prototype, "_stateText", void 0);
|
|
965
|
-
__decorate$
|
|
965
|
+
__decorate$l([
|
|
966
966
|
r$1()
|
|
967
967
|
], KRButton.prototype, "_dropdownOpened", void 0);
|
|
968
|
-
KRButton = __decorate$
|
|
968
|
+
KRButton = __decorate$l([
|
|
969
969
|
t$1('kr-button')
|
|
970
970
|
], KRButton);
|
|
971
971
|
|
|
@@ -975,7 +975,7 @@ KRButton = __decorate$k([
|
|
|
975
975
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
976
976
|
*/class e extends i$1{constructor(i){if(super(i),this.it=A,i.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A||null==r)return this._t=void 0,this.it=r;if(r===E)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o$2=e$2(e);
|
|
977
977
|
|
|
978
|
-
var __decorate$
|
|
978
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
979
979
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
980
980
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
981
981
|
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;
|
|
@@ -1209,26 +1209,26 @@ KRCodeDemo.styles = [krBaseCSS, i$5 `
|
|
|
1209
1209
|
.hljs-property { color: #005cc5; }
|
|
1210
1210
|
|
|
1211
1211
|
`];
|
|
1212
|
-
__decorate$
|
|
1212
|
+
__decorate$k([
|
|
1213
1213
|
n$1({ type: String })
|
|
1214
1214
|
], KRCodeDemo.prototype, "language", void 0);
|
|
1215
|
-
__decorate$
|
|
1215
|
+
__decorate$k([
|
|
1216
1216
|
r$1()
|
|
1217
1217
|
], KRCodeDemo.prototype, "code", void 0);
|
|
1218
|
-
__decorate$
|
|
1218
|
+
__decorate$k([
|
|
1219
1219
|
r$1()
|
|
1220
1220
|
], KRCodeDemo.prototype, "activeTab", void 0);
|
|
1221
|
-
__decorate$
|
|
1221
|
+
__decorate$k([
|
|
1222
1222
|
r$1()
|
|
1223
1223
|
], KRCodeDemo.prototype, "copied", void 0);
|
|
1224
|
-
__decorate$
|
|
1224
|
+
__decorate$k([
|
|
1225
1225
|
r$1()
|
|
1226
1226
|
], KRCodeDemo.prototype, "highlightedCode", void 0);
|
|
1227
|
-
KRCodeDemo = __decorate$
|
|
1227
|
+
KRCodeDemo = __decorate$k([
|
|
1228
1228
|
t$1('kr-code-demo')
|
|
1229
1229
|
], KRCodeDemo);
|
|
1230
1230
|
|
|
1231
|
-
var __decorate$
|
|
1231
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1232
1232
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1233
1233
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1234
1234
|
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;
|
|
@@ -1397,10 +1397,10 @@ KRContextMenu.styles = i$5 `
|
|
|
1397
1397
|
margin: 4px 0;
|
|
1398
1398
|
}
|
|
1399
1399
|
`;
|
|
1400
|
-
__decorate$
|
|
1400
|
+
__decorate$j([
|
|
1401
1401
|
r$1()
|
|
1402
1402
|
], KRContextMenu.prototype, "items", void 0);
|
|
1403
|
-
KRContextMenu = __decorate$
|
|
1403
|
+
KRContextMenu = __decorate$j([
|
|
1404
1404
|
t$1('kr-context-menu')
|
|
1405
1405
|
], KRContextMenu);
|
|
1406
1406
|
|
|
@@ -1410,7 +1410,7 @@ KRContextMenu = __decorate$i([
|
|
|
1410
1410
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1411
1411
|
*/const n="important",i=" !"+n,o$1=e$2(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"style"!==t$1.name||t$1.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e;}}return E}});
|
|
1412
1412
|
|
|
1413
|
-
var __decorate$
|
|
1413
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1414
1414
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1415
1415
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1416
1416
|
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;
|
|
@@ -1437,7 +1437,7 @@ KRDialogHeader.styles = i$5 `
|
|
|
1437
1437
|
font-weight: 600;
|
|
1438
1438
|
}
|
|
1439
1439
|
`;
|
|
1440
|
-
KRDialogHeader = __decorate$
|
|
1440
|
+
KRDialogHeader = __decorate$i([
|
|
1441
1441
|
t$1('kr-dialog-header')
|
|
1442
1442
|
], KRDialogHeader);
|
|
1443
1443
|
let KRDialogContent = class KRDialogContent extends i$2 {
|
|
@@ -1453,7 +1453,7 @@ KRDialogContent.styles = i$5 `
|
|
|
1453
1453
|
flex: 1 1 auto;
|
|
1454
1454
|
}
|
|
1455
1455
|
`;
|
|
1456
|
-
KRDialogContent = __decorate$
|
|
1456
|
+
KRDialogContent = __decorate$i([
|
|
1457
1457
|
t$1('kr-dialog-content')
|
|
1458
1458
|
], KRDialogContent);
|
|
1459
1459
|
let KRDialogFooter = class KRDialogFooter extends i$2 {
|
|
@@ -1473,7 +1473,7 @@ KRDialogFooter.styles = i$5 `
|
|
|
1473
1473
|
justify-content: flex-end;
|
|
1474
1474
|
}
|
|
1475
1475
|
`;
|
|
1476
|
-
KRDialogFooter = __decorate$
|
|
1476
|
+
KRDialogFooter = __decorate$i([
|
|
1477
1477
|
t$1('kr-dialog-footer')
|
|
1478
1478
|
], KRDialogFooter);
|
|
1479
1479
|
/**
|
|
@@ -1681,23 +1681,23 @@ KRDialog.styles = i$5 `
|
|
|
1681
1681
|
font-weight: 600;
|
|
1682
1682
|
}
|
|
1683
1683
|
`;
|
|
1684
|
-
__decorate$
|
|
1684
|
+
__decorate$i([
|
|
1685
1685
|
r$1()
|
|
1686
1686
|
], KRDialog.prototype, "_contentElement", void 0);
|
|
1687
|
-
__decorate$
|
|
1687
|
+
__decorate$i([
|
|
1688
1688
|
n$1({ type: Boolean, reflect: true })
|
|
1689
1689
|
], KRDialog.prototype, "opened", void 0);
|
|
1690
|
-
__decorate$
|
|
1690
|
+
__decorate$i([
|
|
1691
1691
|
n$1({ type: String })
|
|
1692
1692
|
], KRDialog.prototype, "label", void 0);
|
|
1693
|
-
__decorate$
|
|
1693
|
+
__decorate$i([
|
|
1694
1694
|
n$1({ type: String })
|
|
1695
1695
|
], KRDialog.prototype, "width", void 0);
|
|
1696
|
-
KRDialog = __decorate$
|
|
1696
|
+
KRDialog = __decorate$i([
|
|
1697
1697
|
t$1('kr-dialog')
|
|
1698
1698
|
], KRDialog);
|
|
1699
1699
|
|
|
1700
|
-
var __decorate$
|
|
1700
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1701
1701
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1702
1702
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1703
1703
|
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;
|
|
@@ -2217,47 +2217,47 @@ KRDateRangePicker.styles = i$5 `
|
|
|
2217
2217
|
border-top: 1px solid #e5e7eb;
|
|
2218
2218
|
}
|
|
2219
2219
|
`;
|
|
2220
|
-
__decorate$
|
|
2220
|
+
__decorate$h([
|
|
2221
2221
|
n$1({ type: Object })
|
|
2222
2222
|
], KRDateRangePicker.prototype, "value", void 0);
|
|
2223
|
-
__decorate$
|
|
2223
|
+
__decorate$h([
|
|
2224
2224
|
n$1({ type: Array })
|
|
2225
2225
|
], KRDateRangePicker.prototype, "relativeOptions", void 0);
|
|
2226
|
-
__decorate$
|
|
2226
|
+
__decorate$h([
|
|
2227
2227
|
n$1({ type: Boolean })
|
|
2228
2228
|
], KRDateRangePicker.prototype, "disabled", void 0);
|
|
2229
|
-
__decorate$
|
|
2229
|
+
__decorate$h([
|
|
2230
2230
|
n$1({ type: Boolean })
|
|
2231
2231
|
], KRDateRangePicker.prototype, "invalid", void 0);
|
|
2232
|
-
__decorate$
|
|
2232
|
+
__decorate$h([
|
|
2233
2233
|
n$1({ type: String })
|
|
2234
2234
|
], KRDateRangePicker.prototype, "placeholder", void 0);
|
|
2235
|
-
__decorate$
|
|
2235
|
+
__decorate$h([
|
|
2236
2236
|
n$1({ type: String })
|
|
2237
2237
|
], KRDateRangePicker.prototype, "startDate", void 0);
|
|
2238
|
-
__decorate$
|
|
2238
|
+
__decorate$h([
|
|
2239
2239
|
n$1({ type: String })
|
|
2240
2240
|
], KRDateRangePicker.prototype, "endDate", void 0);
|
|
2241
|
-
__decorate$
|
|
2241
|
+
__decorate$h([
|
|
2242
2242
|
n$1({ type: String })
|
|
2243
2243
|
], KRDateRangePicker.prototype, "mode", void 0);
|
|
2244
|
-
__decorate$
|
|
2244
|
+
__decorate$h([
|
|
2245
2245
|
r$1()
|
|
2246
2246
|
], KRDateRangePicker.prototype, "_isOpen", void 0);
|
|
2247
|
-
__decorate$
|
|
2247
|
+
__decorate$h([
|
|
2248
2248
|
r$1()
|
|
2249
2249
|
], KRDateRangePicker.prototype, "_activeTab", void 0);
|
|
2250
|
-
__decorate$
|
|
2250
|
+
__decorate$h([
|
|
2251
2251
|
r$1()
|
|
2252
2252
|
], KRDateRangePicker.prototype, "_tempStartDate", void 0);
|
|
2253
|
-
__decorate$
|
|
2253
|
+
__decorate$h([
|
|
2254
2254
|
r$1()
|
|
2255
2255
|
], KRDateRangePicker.prototype, "_tempEndDate", void 0);
|
|
2256
|
-
KRDateRangePicker = __decorate$
|
|
2256
|
+
KRDateRangePicker = __decorate$h([
|
|
2257
2257
|
t$1('kr-date-range-picker')
|
|
2258
2258
|
], KRDateRangePicker);
|
|
2259
2259
|
|
|
2260
|
-
var __decorate$
|
|
2260
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2261
2261
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2262
2262
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2263
2263
|
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;
|
|
@@ -2559,23 +2559,23 @@ KRSnackbar.styles = i$5 `
|
|
|
2559
2559
|
`;
|
|
2560
2560
|
/** Track active snackbars for stacking */
|
|
2561
2561
|
KRSnackbar.activeSnackbars = [];
|
|
2562
|
-
__decorate$
|
|
2562
|
+
__decorate$g([
|
|
2563
2563
|
n$1({ type: String })
|
|
2564
2564
|
], KRSnackbar.prototype, "type", void 0);
|
|
2565
|
-
__decorate$
|
|
2565
|
+
__decorate$g([
|
|
2566
2566
|
n$1({ type: String })
|
|
2567
2567
|
], KRSnackbar.prototype, "title", void 0);
|
|
2568
|
-
__decorate$
|
|
2568
|
+
__decorate$g([
|
|
2569
2569
|
n$1({ type: String })
|
|
2570
2570
|
], KRSnackbar.prototype, "message", void 0);
|
|
2571
|
-
__decorate$
|
|
2571
|
+
__decorate$g([
|
|
2572
2572
|
n$1({ type: Number })
|
|
2573
2573
|
], KRSnackbar.prototype, "duration", void 0);
|
|
2574
|
-
KRSnackbar = KRSnackbar_1 = __decorate$
|
|
2574
|
+
KRSnackbar = KRSnackbar_1 = __decorate$g([
|
|
2575
2575
|
t$1('kr-snackbar')
|
|
2576
2576
|
], KRSnackbar);
|
|
2577
2577
|
|
|
2578
|
-
var __decorate$
|
|
2578
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2579
2579
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2580
2580
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2581
2581
|
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;
|
|
@@ -2878,20 +2878,20 @@ KRTabGroup.styles = [
|
|
|
2878
2878
|
}
|
|
2879
2879
|
`,
|
|
2880
2880
|
];
|
|
2881
|
-
__decorate$
|
|
2881
|
+
__decorate$f([
|
|
2882
2882
|
n$1({ type: String, attribute: 'active-tab-id' })
|
|
2883
2883
|
], KRTabGroup.prototype, "activeTabId", void 0);
|
|
2884
|
-
__decorate$
|
|
2884
|
+
__decorate$f([
|
|
2885
2885
|
n$1({ type: Boolean })
|
|
2886
2886
|
], KRTabGroup.prototype, "justified", void 0);
|
|
2887
|
-
__decorate$
|
|
2887
|
+
__decorate$f([
|
|
2888
2888
|
n$1({ type: String, reflect: true })
|
|
2889
2889
|
], KRTabGroup.prototype, "size", void 0);
|
|
2890
|
-
KRTabGroup = __decorate$
|
|
2890
|
+
KRTabGroup = __decorate$f([
|
|
2891
2891
|
t$1('kr-tab-group')
|
|
2892
2892
|
], KRTabGroup);
|
|
2893
2893
|
|
|
2894
|
-
var __decorate$
|
|
2894
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2895
2895
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2896
2896
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2897
2897
|
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;
|
|
@@ -2972,35 +2972,35 @@ KRTab.styles = [
|
|
|
2972
2972
|
}
|
|
2973
2973
|
`,
|
|
2974
2974
|
];
|
|
2975
|
-
__decorate$
|
|
2975
|
+
__decorate$e([
|
|
2976
2976
|
n$1({ type: String, reflect: true })
|
|
2977
2977
|
], KRTab.prototype, "id", void 0);
|
|
2978
|
-
__decorate$
|
|
2978
|
+
__decorate$e([
|
|
2979
2979
|
n$1({ type: String })
|
|
2980
2980
|
], KRTab.prototype, "label", void 0);
|
|
2981
|
-
__decorate$
|
|
2981
|
+
__decorate$e([
|
|
2982
2982
|
n$1({ type: String })
|
|
2983
2983
|
], KRTab.prototype, "badge", void 0);
|
|
2984
|
-
__decorate$
|
|
2984
|
+
__decorate$e([
|
|
2985
2985
|
n$1({ type: String, attribute: 'badge-background' })
|
|
2986
2986
|
], KRTab.prototype, "badgeBackground", void 0);
|
|
2987
|
-
__decorate$
|
|
2987
|
+
__decorate$e([
|
|
2988
2988
|
n$1({ type: String, attribute: 'badge-color' })
|
|
2989
2989
|
], KRTab.prototype, "badgeColor", void 0);
|
|
2990
|
-
__decorate$
|
|
2990
|
+
__decorate$e([
|
|
2991
2991
|
n$1({ type: Boolean })
|
|
2992
2992
|
], KRTab.prototype, "disabled", void 0);
|
|
2993
|
-
__decorate$
|
|
2993
|
+
__decorate$e([
|
|
2994
2994
|
n$1({ type: Boolean })
|
|
2995
2995
|
], KRTab.prototype, "dismissible", void 0);
|
|
2996
|
-
__decorate$
|
|
2996
|
+
__decorate$e([
|
|
2997
2997
|
n$1({ type: Boolean, reflect: true })
|
|
2998
2998
|
], KRTab.prototype, "active", void 0);
|
|
2999
|
-
KRTab = __decorate$
|
|
2999
|
+
KRTab = __decorate$e([
|
|
3000
3000
|
t$1('kr-tab')
|
|
3001
3001
|
], KRTab);
|
|
3002
3002
|
|
|
3003
|
-
var __decorate$
|
|
3003
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3004
3004
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3005
3005
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3006
3006
|
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;
|
|
@@ -3472,47 +3472,47 @@ KRSelectField.styles = [krBaseCSS, i$5 `
|
|
|
3472
3472
|
`];
|
|
3473
3473
|
// Enable form association
|
|
3474
3474
|
KRSelectField.formAssociated = true;
|
|
3475
|
-
__decorate$
|
|
3475
|
+
__decorate$d([
|
|
3476
3476
|
n$1({ type: String })
|
|
3477
3477
|
], KRSelectField.prototype, "label", void 0);
|
|
3478
|
-
__decorate$
|
|
3478
|
+
__decorate$d([
|
|
3479
3479
|
n$1({ type: String })
|
|
3480
3480
|
], KRSelectField.prototype, "name", void 0);
|
|
3481
|
-
__decorate$
|
|
3481
|
+
__decorate$d([
|
|
3482
3482
|
n$1({ type: String })
|
|
3483
3483
|
], KRSelectField.prototype, "value", void 0);
|
|
3484
|
-
__decorate$
|
|
3484
|
+
__decorate$d([
|
|
3485
3485
|
n$1({ type: String })
|
|
3486
3486
|
], KRSelectField.prototype, "placeholder", void 0);
|
|
3487
|
-
__decorate$
|
|
3487
|
+
__decorate$d([
|
|
3488
3488
|
n$1({ type: Boolean })
|
|
3489
3489
|
], KRSelectField.prototype, "disabled", void 0);
|
|
3490
|
-
__decorate$
|
|
3490
|
+
__decorate$d([
|
|
3491
3491
|
n$1({ type: Boolean })
|
|
3492
3492
|
], KRSelectField.prototype, "required", void 0);
|
|
3493
|
-
__decorate$
|
|
3493
|
+
__decorate$d([
|
|
3494
3494
|
n$1({ type: Boolean })
|
|
3495
3495
|
], KRSelectField.prototype, "readonly", void 0);
|
|
3496
|
-
__decorate$
|
|
3496
|
+
__decorate$d([
|
|
3497
3497
|
n$1({ type: String })
|
|
3498
3498
|
], KRSelectField.prototype, "hint", void 0);
|
|
3499
|
-
__decorate$
|
|
3499
|
+
__decorate$d([
|
|
3500
3500
|
r$1()
|
|
3501
3501
|
], KRSelectField.prototype, "_isOpen", void 0);
|
|
3502
|
-
__decorate$
|
|
3502
|
+
__decorate$d([
|
|
3503
3503
|
r$1()
|
|
3504
3504
|
], KRSelectField.prototype, "_highlightedIndex", void 0);
|
|
3505
|
-
__decorate$
|
|
3505
|
+
__decorate$d([
|
|
3506
3506
|
r$1()
|
|
3507
3507
|
], KRSelectField.prototype, "_touched", void 0);
|
|
3508
|
-
__decorate$
|
|
3508
|
+
__decorate$d([
|
|
3509
3509
|
e$3('.select-trigger')
|
|
3510
3510
|
], KRSelectField.prototype, "_triggerElement", void 0);
|
|
3511
|
-
KRSelectField = __decorate$
|
|
3511
|
+
KRSelectField = __decorate$d([
|
|
3512
3512
|
t$1('kr-select-field')
|
|
3513
3513
|
], KRSelectField);
|
|
3514
3514
|
|
|
3515
|
-
var __decorate$
|
|
3515
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3516
3516
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3517
3517
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3518
3518
|
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;
|
|
@@ -3549,13 +3549,13 @@ KRSelectOption.styles = i$5 `
|
|
|
3549
3549
|
display: none;
|
|
3550
3550
|
}
|
|
3551
3551
|
`;
|
|
3552
|
-
__decorate$
|
|
3552
|
+
__decorate$c([
|
|
3553
3553
|
n$1({ type: String })
|
|
3554
3554
|
], KRSelectOption.prototype, "value", void 0);
|
|
3555
|
-
__decorate$
|
|
3555
|
+
__decorate$c([
|
|
3556
3556
|
n$1({ type: Boolean })
|
|
3557
3557
|
], KRSelectOption.prototype, "disabled", void 0);
|
|
3558
|
-
KRSelectOption = __decorate$
|
|
3558
|
+
KRSelectOption = __decorate$c([
|
|
3559
3559
|
t$1('kr-select-option')
|
|
3560
3560
|
], KRSelectOption);
|
|
3561
3561
|
|
|
@@ -4603,7 +4603,7 @@ class KRQuery {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
4605
4605
|
|
|
4606
|
-
var __decorate$
|
|
4606
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4607
4607
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4608
4608
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4609
4609
|
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;
|
|
@@ -6880,59 +6880,59 @@ KRTable.styles = [krBaseCSS, i$5 `
|
|
|
6880
6880
|
}
|
|
6881
6881
|
|
|
6882
6882
|
`];
|
|
6883
|
-
__decorate$
|
|
6883
|
+
__decorate$b([
|
|
6884
6884
|
r$1()
|
|
6885
6885
|
], KRTable.prototype, "_data", void 0);
|
|
6886
|
-
__decorate$
|
|
6886
|
+
__decorate$b([
|
|
6887
6887
|
r$1()
|
|
6888
6888
|
], KRTable.prototype, "_dataState", void 0);
|
|
6889
|
-
__decorate$
|
|
6889
|
+
__decorate$b([
|
|
6890
6890
|
r$1()
|
|
6891
6891
|
], KRTable.prototype, "_page", void 0);
|
|
6892
|
-
__decorate$
|
|
6892
|
+
__decorate$b([
|
|
6893
6893
|
r$1()
|
|
6894
6894
|
], KRTable.prototype, "_pageSize", void 0);
|
|
6895
|
-
__decorate$
|
|
6895
|
+
__decorate$b([
|
|
6896
6896
|
r$1()
|
|
6897
6897
|
], KRTable.prototype, "_totalItems", void 0);
|
|
6898
|
-
__decorate$
|
|
6898
|
+
__decorate$b([
|
|
6899
6899
|
r$1()
|
|
6900
6900
|
], KRTable.prototype, "_totalPages", void 0);
|
|
6901
|
-
__decorate$
|
|
6901
|
+
__decorate$b([
|
|
6902
6902
|
r$1()
|
|
6903
6903
|
], KRTable.prototype, "_searchQuery", void 0);
|
|
6904
|
-
__decorate$
|
|
6904
|
+
__decorate$b([
|
|
6905
6905
|
r$1()
|
|
6906
6906
|
], KRTable.prototype, "_canScrollLeft", void 0);
|
|
6907
|
-
__decorate$
|
|
6907
|
+
__decorate$b([
|
|
6908
6908
|
r$1()
|
|
6909
6909
|
], KRTable.prototype, "_canScrollRight", void 0);
|
|
6910
|
-
__decorate$
|
|
6910
|
+
__decorate$b([
|
|
6911
6911
|
r$1()
|
|
6912
6912
|
], KRTable.prototype, "_canScrollHorizontal", void 0);
|
|
6913
|
-
__decorate$
|
|
6913
|
+
__decorate$b([
|
|
6914
6914
|
r$1()
|
|
6915
6915
|
], KRTable.prototype, "_columnPickerOpen", void 0);
|
|
6916
|
-
__decorate$
|
|
6916
|
+
__decorate$b([
|
|
6917
6917
|
r$1()
|
|
6918
6918
|
], KRTable.prototype, "_filterPanelOpened", void 0);
|
|
6919
|
-
__decorate$
|
|
6919
|
+
__decorate$b([
|
|
6920
6920
|
r$1()
|
|
6921
6921
|
], KRTable.prototype, "_filterPanelTab", void 0);
|
|
6922
|
-
__decorate$
|
|
6922
|
+
__decorate$b([
|
|
6923
6923
|
r$1()
|
|
6924
6924
|
], KRTable.prototype, "_buckets", void 0);
|
|
6925
|
-
__decorate$
|
|
6925
|
+
__decorate$b([
|
|
6926
6926
|
r$1()
|
|
6927
6927
|
], KRTable.prototype, "_sorts", void 0);
|
|
6928
|
-
__decorate$
|
|
6928
|
+
__decorate$b([
|
|
6929
6929
|
n$1({ type: Object })
|
|
6930
6930
|
], KRTable.prototype, "def", void 0);
|
|
6931
|
-
KRTable = __decorate$
|
|
6931
|
+
KRTable = __decorate$b([
|
|
6932
6932
|
t$1('kr-table')
|
|
6933
6933
|
], KRTable);
|
|
6934
6934
|
|
|
6935
|
-
var __decorate$
|
|
6935
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6936
6936
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6937
6937
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6938
6938
|
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;
|
|
@@ -7052,17 +7052,17 @@ KRSpinner.styles = i$5 `
|
|
|
7052
7052
|
stroke-linecap: round;
|
|
7053
7053
|
}
|
|
7054
7054
|
`;
|
|
7055
|
-
__decorate$
|
|
7055
|
+
__decorate$a([
|
|
7056
7056
|
n$1({ type: String, reflect: true })
|
|
7057
7057
|
], KRSpinner.prototype, "size", void 0);
|
|
7058
|
-
__decorate$
|
|
7058
|
+
__decorate$a([
|
|
7059
7059
|
n$1({ type: String, reflect: true })
|
|
7060
7060
|
], KRSpinner.prototype, "color", void 0);
|
|
7061
|
-
KRSpinner = __decorate$
|
|
7061
|
+
KRSpinner = __decorate$a([
|
|
7062
7062
|
t$1('kr-spinner')
|
|
7063
7063
|
], KRSpinner);
|
|
7064
7064
|
|
|
7065
|
-
var __decorate$
|
|
7065
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7066
7066
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7067
7067
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7068
7068
|
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;
|
|
@@ -7153,17 +7153,17 @@ KRProgressBar.styles = i$5 `
|
|
|
7153
7153
|
}
|
|
7154
7154
|
}
|
|
7155
7155
|
`;
|
|
7156
|
-
__decorate$
|
|
7156
|
+
__decorate$9([
|
|
7157
7157
|
n$1({ type: String, reflect: true })
|
|
7158
7158
|
], KRProgressBar.prototype, "color", void 0);
|
|
7159
|
-
__decorate$
|
|
7159
|
+
__decorate$9([
|
|
7160
7160
|
n$1({ type: String, reflect: true })
|
|
7161
7161
|
], KRProgressBar.prototype, "trackColor", void 0);
|
|
7162
|
-
KRProgressBar = __decorate$
|
|
7162
|
+
KRProgressBar = __decorate$9([
|
|
7163
7163
|
t$1('kr-progress-bar')
|
|
7164
7164
|
], KRProgressBar);
|
|
7165
7165
|
|
|
7166
|
-
var __decorate$
|
|
7166
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7167
7167
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7168
7168
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7169
7169
|
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;
|
|
@@ -7631,23 +7631,23 @@ KRFilePreview.styles = i$5 `
|
|
|
7631
7631
|
}
|
|
7632
7632
|
`;
|
|
7633
7633
|
KRFilePreview._activePreview = null;
|
|
7634
|
-
__decorate$
|
|
7634
|
+
__decorate$8([
|
|
7635
7635
|
n$1({ type: String })
|
|
7636
7636
|
], KRFilePreview.prototype, "src", void 0);
|
|
7637
|
-
__decorate$
|
|
7637
|
+
__decorate$8([
|
|
7638
7638
|
n$1({ type: String })
|
|
7639
7639
|
], KRFilePreview.prototype, "name", void 0);
|
|
7640
|
-
__decorate$
|
|
7640
|
+
__decorate$8([
|
|
7641
7641
|
r$1()
|
|
7642
7642
|
], KRFilePreview.prototype, "_zoomLevel", void 0);
|
|
7643
|
-
__decorate$
|
|
7643
|
+
__decorate$8([
|
|
7644
7644
|
r$1()
|
|
7645
7645
|
], KRFilePreview.prototype, "_textContent", void 0);
|
|
7646
|
-
KRFilePreview = KRFilePreview_1 = __decorate$
|
|
7646
|
+
KRFilePreview = KRFilePreview_1 = __decorate$8([
|
|
7647
7647
|
t$1('kr-file-preview')
|
|
7648
7648
|
], KRFilePreview);
|
|
7649
7649
|
|
|
7650
|
-
var __decorate$
|
|
7650
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7651
7651
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7652
7652
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7653
7653
|
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;
|
|
@@ -7890,13 +7890,13 @@ KRFileList.styles = i$5 `
|
|
|
7890
7890
|
padding: 20px;
|
|
7891
7891
|
}
|
|
7892
7892
|
`;
|
|
7893
|
-
__decorate$
|
|
7893
|
+
__decorate$7([
|
|
7894
7894
|
n$1({ type: Array })
|
|
7895
7895
|
], KRFileList.prototype, "files", void 0);
|
|
7896
|
-
__decorate$
|
|
7896
|
+
__decorate$7([
|
|
7897
7897
|
n$1({ type: String, attribute: 'empty-message' })
|
|
7898
7898
|
], KRFileList.prototype, "emptyMessage", void 0);
|
|
7899
|
-
KRFileList = __decorate$
|
|
7899
|
+
KRFileList = __decorate$7([
|
|
7900
7900
|
t$1('kr-file-list')
|
|
7901
7901
|
], KRFileList);
|
|
7902
7902
|
|
|
@@ -7918,7 +7918,7 @@ KRFileList = __decorate$6([
|
|
|
7918
7918
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7919
7919
|
*/const l=e$2(class extends i$1{constructor(r$1){if(super(r$1),r$1.type!==t.PROPERTY&&r$1.type!==t.ATTRIBUTE&&r$1.type!==t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!r(r$1))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(i,[t$1]){if(t$1===E||t$1===A)return t$1;const o=i.element,l=i.name;if(i.type===t.PROPERTY){if(t$1===o[l])return E}else if(i.type===t.BOOLEAN_ATTRIBUTE){if(!!t$1===o.hasAttribute(l))return E}else if(i.type===t.ATTRIBUTE&&o.getAttribute(l)===t$1+"")return E;return p(i),t$1}});
|
|
7920
7920
|
|
|
7921
|
-
var __decorate$
|
|
7921
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7922
7922
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7923
7923
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7924
7924
|
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;
|
|
@@ -8171,59 +8171,59 @@ KRTextField.styles = i$5 `
|
|
|
8171
8171
|
`;
|
|
8172
8172
|
// Enable form association
|
|
8173
8173
|
KRTextField.formAssociated = true;
|
|
8174
|
-
__decorate$
|
|
8174
|
+
__decorate$6([
|
|
8175
8175
|
n$1({ type: String })
|
|
8176
8176
|
], KRTextField.prototype, "label", void 0);
|
|
8177
|
-
__decorate$
|
|
8177
|
+
__decorate$6([
|
|
8178
8178
|
n$1({ type: String })
|
|
8179
8179
|
], KRTextField.prototype, "name", void 0);
|
|
8180
|
-
__decorate$
|
|
8180
|
+
__decorate$6([
|
|
8181
8181
|
n$1({ type: String })
|
|
8182
8182
|
], KRTextField.prototype, "value", void 0);
|
|
8183
|
-
__decorate$
|
|
8183
|
+
__decorate$6([
|
|
8184
8184
|
n$1({ type: String })
|
|
8185
8185
|
], KRTextField.prototype, "placeholder", void 0);
|
|
8186
|
-
__decorate$
|
|
8186
|
+
__decorate$6([
|
|
8187
8187
|
n$1({ type: String })
|
|
8188
8188
|
], KRTextField.prototype, "type", void 0);
|
|
8189
|
-
__decorate$
|
|
8189
|
+
__decorate$6([
|
|
8190
8190
|
n$1({ type: Boolean })
|
|
8191
8191
|
], KRTextField.prototype, "required", void 0);
|
|
8192
|
-
__decorate$
|
|
8192
|
+
__decorate$6([
|
|
8193
8193
|
n$1({ type: Boolean })
|
|
8194
8194
|
], KRTextField.prototype, "disabled", void 0);
|
|
8195
|
-
__decorate$
|
|
8195
|
+
__decorate$6([
|
|
8196
8196
|
n$1({ type: Boolean })
|
|
8197
8197
|
], KRTextField.prototype, "readonly", void 0);
|
|
8198
|
-
__decorate$
|
|
8198
|
+
__decorate$6([
|
|
8199
8199
|
n$1({ type: Number })
|
|
8200
8200
|
], KRTextField.prototype, "minlength", void 0);
|
|
8201
|
-
__decorate$
|
|
8201
|
+
__decorate$6([
|
|
8202
8202
|
n$1({ type: Number })
|
|
8203
8203
|
], KRTextField.prototype, "maxlength", void 0);
|
|
8204
|
-
__decorate$
|
|
8204
|
+
__decorate$6([
|
|
8205
8205
|
n$1({ type: String })
|
|
8206
8206
|
], KRTextField.prototype, "pattern", void 0);
|
|
8207
|
-
__decorate$
|
|
8207
|
+
__decorate$6([
|
|
8208
8208
|
n$1({ type: String })
|
|
8209
8209
|
], KRTextField.prototype, "autocomplete", void 0);
|
|
8210
|
-
__decorate$
|
|
8210
|
+
__decorate$6([
|
|
8211
8211
|
n$1({ type: String })
|
|
8212
8212
|
], KRTextField.prototype, "hint", void 0);
|
|
8213
|
-
__decorate$
|
|
8213
|
+
__decorate$6([
|
|
8214
8214
|
e$3('input')
|
|
8215
8215
|
], KRTextField.prototype, "_input", void 0);
|
|
8216
|
-
__decorate$
|
|
8216
|
+
__decorate$6([
|
|
8217
8217
|
r$1()
|
|
8218
8218
|
], KRTextField.prototype, "_touched", void 0);
|
|
8219
|
-
__decorate$
|
|
8219
|
+
__decorate$6([
|
|
8220
8220
|
r$1()
|
|
8221
8221
|
], KRTextField.prototype, "_dirty", void 0);
|
|
8222
|
-
KRTextField = __decorate$
|
|
8222
|
+
KRTextField = __decorate$6([
|
|
8223
8223
|
t$1('kr-text-field')
|
|
8224
8224
|
], KRTextField);
|
|
8225
8225
|
|
|
8226
|
-
var __decorate$
|
|
8226
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8227
8227
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8228
8228
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8229
8229
|
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;
|
|
@@ -8481,59 +8481,59 @@ KRTextareaField.styles = i$5 `
|
|
|
8481
8481
|
`;
|
|
8482
8482
|
// Enable form association
|
|
8483
8483
|
KRTextareaField.formAssociated = true;
|
|
8484
|
-
__decorate$
|
|
8484
|
+
__decorate$5([
|
|
8485
8485
|
n$1({ type: String })
|
|
8486
8486
|
], KRTextareaField.prototype, "label", void 0);
|
|
8487
|
-
__decorate$
|
|
8487
|
+
__decorate$5([
|
|
8488
8488
|
n$1({ type: String })
|
|
8489
8489
|
], KRTextareaField.prototype, "name", void 0);
|
|
8490
|
-
__decorate$
|
|
8490
|
+
__decorate$5([
|
|
8491
8491
|
n$1({ type: String })
|
|
8492
8492
|
], KRTextareaField.prototype, "value", void 0);
|
|
8493
|
-
__decorate$
|
|
8493
|
+
__decorate$5([
|
|
8494
8494
|
n$1({ type: String })
|
|
8495
8495
|
], KRTextareaField.prototype, "placeholder", void 0);
|
|
8496
|
-
__decorate$
|
|
8496
|
+
__decorate$5([
|
|
8497
8497
|
n$1({ type: Boolean })
|
|
8498
8498
|
], KRTextareaField.prototype, "required", void 0);
|
|
8499
|
-
__decorate$
|
|
8499
|
+
__decorate$5([
|
|
8500
8500
|
n$1({ type: Boolean })
|
|
8501
8501
|
], KRTextareaField.prototype, "disabled", void 0);
|
|
8502
|
-
__decorate$
|
|
8502
|
+
__decorate$5([
|
|
8503
8503
|
n$1({ type: Boolean })
|
|
8504
8504
|
], KRTextareaField.prototype, "readonly", void 0);
|
|
8505
|
-
__decorate$
|
|
8505
|
+
__decorate$5([
|
|
8506
8506
|
n$1({ type: Number })
|
|
8507
8507
|
], KRTextareaField.prototype, "rows", void 0);
|
|
8508
|
-
__decorate$
|
|
8508
|
+
__decorate$5([
|
|
8509
8509
|
n$1({ type: Number })
|
|
8510
8510
|
], KRTextareaField.prototype, "cols", void 0);
|
|
8511
|
-
__decorate$
|
|
8511
|
+
__decorate$5([
|
|
8512
8512
|
n$1({ type: Number })
|
|
8513
8513
|
], KRTextareaField.prototype, "minlength", void 0);
|
|
8514
|
-
__decorate$
|
|
8514
|
+
__decorate$5([
|
|
8515
8515
|
n$1({ type: Number })
|
|
8516
8516
|
], KRTextareaField.prototype, "maxlength", void 0);
|
|
8517
|
-
__decorate$
|
|
8517
|
+
__decorate$5([
|
|
8518
8518
|
n$1({ type: String })
|
|
8519
8519
|
], KRTextareaField.prototype, "autocomplete", void 0);
|
|
8520
|
-
__decorate$
|
|
8520
|
+
__decorate$5([
|
|
8521
8521
|
n$1({ type: String })
|
|
8522
8522
|
], KRTextareaField.prototype, "hint", void 0);
|
|
8523
|
-
__decorate$
|
|
8523
|
+
__decorate$5([
|
|
8524
8524
|
e$3('textarea')
|
|
8525
8525
|
], KRTextareaField.prototype, "_textarea", void 0);
|
|
8526
|
-
__decorate$
|
|
8526
|
+
__decorate$5([
|
|
8527
8527
|
r$1()
|
|
8528
8528
|
], KRTextareaField.prototype, "_touched", void 0);
|
|
8529
|
-
__decorate$
|
|
8529
|
+
__decorate$5([
|
|
8530
8530
|
r$1()
|
|
8531
8531
|
], KRTextareaField.prototype, "_dirty", void 0);
|
|
8532
|
-
KRTextareaField = __decorate$
|
|
8532
|
+
KRTextareaField = __decorate$5([
|
|
8533
8533
|
t$1('kr-textarea-field')
|
|
8534
8534
|
], KRTextareaField);
|
|
8535
8535
|
|
|
8536
|
-
var __decorate$
|
|
8536
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8537
8537
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8538
8538
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8539
8539
|
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;
|
|
@@ -8590,17 +8590,17 @@ KRDetailField.styles = i$5 `
|
|
|
8590
8590
|
color: black;
|
|
8591
8591
|
}
|
|
8592
8592
|
`;
|
|
8593
|
-
__decorate$
|
|
8593
|
+
__decorate$4([
|
|
8594
8594
|
n$1({ type: String })
|
|
8595
8595
|
], KRDetailField.prototype, "label", void 0);
|
|
8596
|
-
__decorate$
|
|
8596
|
+
__decorate$4([
|
|
8597
8597
|
n$1({ type: String })
|
|
8598
8598
|
], KRDetailField.prototype, "value", void 0);
|
|
8599
|
-
KRDetailField = __decorate$
|
|
8599
|
+
KRDetailField = __decorate$4([
|
|
8600
8600
|
t$1('kr-detail-field')
|
|
8601
8601
|
], KRDetailField);
|
|
8602
8602
|
|
|
8603
|
-
var __decorate$
|
|
8603
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8604
8604
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8605
8605
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8606
8606
|
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;
|
|
@@ -9096,53 +9096,53 @@ KRAutoSuggest.styles = i$5 `
|
|
|
9096
9096
|
}
|
|
9097
9097
|
`;
|
|
9098
9098
|
KRAutoSuggest.formAssociated = true;
|
|
9099
|
-
__decorate$
|
|
9099
|
+
__decorate$3([
|
|
9100
9100
|
n$1({ type: String })
|
|
9101
9101
|
], KRAutoSuggest.prototype, "label", void 0);
|
|
9102
|
-
__decorate$
|
|
9102
|
+
__decorate$3([
|
|
9103
9103
|
n$1({ type: String })
|
|
9104
9104
|
], KRAutoSuggest.prototype, "name", void 0);
|
|
9105
|
-
__decorate$
|
|
9105
|
+
__decorate$3([
|
|
9106
9106
|
n$1({ type: String })
|
|
9107
9107
|
], KRAutoSuggest.prototype, "value", void 0);
|
|
9108
|
-
__decorate$
|
|
9108
|
+
__decorate$3([
|
|
9109
9109
|
n$1({ type: String })
|
|
9110
9110
|
], KRAutoSuggest.prototype, "placeholder", void 0);
|
|
9111
|
-
__decorate$
|
|
9111
|
+
__decorate$3([
|
|
9112
9112
|
n$1({ type: Boolean })
|
|
9113
9113
|
], KRAutoSuggest.prototype, "disabled", void 0);
|
|
9114
|
-
__decorate$
|
|
9114
|
+
__decorate$3([
|
|
9115
9115
|
n$1({ type: Boolean })
|
|
9116
9116
|
], KRAutoSuggest.prototype, "readonly", void 0);
|
|
9117
|
-
__decorate$
|
|
9117
|
+
__decorate$3([
|
|
9118
9118
|
n$1({ type: Boolean })
|
|
9119
9119
|
], KRAutoSuggest.prototype, "required", void 0);
|
|
9120
|
-
__decorate$
|
|
9120
|
+
__decorate$3([
|
|
9121
9121
|
n$1({ type: String })
|
|
9122
9122
|
], KRAutoSuggest.prototype, "hint", void 0);
|
|
9123
|
-
__decorate$
|
|
9123
|
+
__decorate$3([
|
|
9124
9124
|
n$1({ type: Array })
|
|
9125
9125
|
], KRAutoSuggest.prototype, "options", void 0);
|
|
9126
|
-
__decorate$
|
|
9126
|
+
__decorate$3([
|
|
9127
9127
|
n$1({ attribute: false })
|
|
9128
9128
|
], KRAutoSuggest.prototype, "fetch", void 0);
|
|
9129
|
-
__decorate$
|
|
9129
|
+
__decorate$3([
|
|
9130
9130
|
r$1()
|
|
9131
9131
|
], KRAutoSuggest.prototype, "_isOpen", void 0);
|
|
9132
|
-
__decorate$
|
|
9132
|
+
__decorate$3([
|
|
9133
9133
|
r$1()
|
|
9134
9134
|
], KRAutoSuggest.prototype, "_highlightedIndex", void 0);
|
|
9135
|
-
__decorate$
|
|
9135
|
+
__decorate$3([
|
|
9136
9136
|
r$1()
|
|
9137
9137
|
], KRAutoSuggest.prototype, "_touched", void 0);
|
|
9138
|
-
__decorate$
|
|
9138
|
+
__decorate$3([
|
|
9139
9139
|
e$3('input')
|
|
9140
9140
|
], KRAutoSuggest.prototype, "_input", void 0);
|
|
9141
|
-
KRAutoSuggest = __decorate$
|
|
9141
|
+
KRAutoSuggest = __decorate$3([
|
|
9142
9142
|
t$1('kr-auto-suggest')
|
|
9143
9143
|
], KRAutoSuggest);
|
|
9144
9144
|
|
|
9145
|
-
var __decorate$
|
|
9145
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9146
9146
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9147
9147
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9148
9148
|
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;
|
|
@@ -9800,71 +9800,71 @@ KRComboBox.styles = i$5 `
|
|
|
9800
9800
|
}
|
|
9801
9801
|
`;
|
|
9802
9802
|
KRComboBox.formAssociated = true;
|
|
9803
|
-
__decorate$
|
|
9803
|
+
__decorate$2([
|
|
9804
9804
|
n$1({ type: String })
|
|
9805
9805
|
], KRComboBox.prototype, "label", void 0);
|
|
9806
|
-
__decorate$
|
|
9806
|
+
__decorate$2([
|
|
9807
9807
|
n$1({ type: String })
|
|
9808
9808
|
], KRComboBox.prototype, "name", void 0);
|
|
9809
|
-
__decorate$
|
|
9809
|
+
__decorate$2([
|
|
9810
9810
|
n$1({ type: String })
|
|
9811
9811
|
], KRComboBox.prototype, "value", void 0);
|
|
9812
|
-
__decorate$
|
|
9812
|
+
__decorate$2([
|
|
9813
9813
|
n$1({ type: String })
|
|
9814
9814
|
], KRComboBox.prototype, "placeholder", void 0);
|
|
9815
|
-
__decorate$
|
|
9815
|
+
__decorate$2([
|
|
9816
9816
|
n$1({ type: Boolean })
|
|
9817
9817
|
], KRComboBox.prototype, "disabled", void 0);
|
|
9818
|
-
__decorate$
|
|
9818
|
+
__decorate$2([
|
|
9819
9819
|
n$1({ type: Boolean })
|
|
9820
9820
|
], KRComboBox.prototype, "readonly", void 0);
|
|
9821
|
-
__decorate$
|
|
9821
|
+
__decorate$2([
|
|
9822
9822
|
n$1({ type: Boolean })
|
|
9823
9823
|
], KRComboBox.prototype, "required", void 0);
|
|
9824
|
-
__decorate$
|
|
9824
|
+
__decorate$2([
|
|
9825
9825
|
n$1({ type: String })
|
|
9826
9826
|
], KRComboBox.prototype, "hint", void 0);
|
|
9827
|
-
__decorate$
|
|
9827
|
+
__decorate$2([
|
|
9828
9828
|
n$1({ attribute: 'option-value' })
|
|
9829
9829
|
], KRComboBox.prototype, "optionValue", void 0);
|
|
9830
|
-
__decorate$
|
|
9830
|
+
__decorate$2([
|
|
9831
9831
|
n$1({ attribute: 'option-label' })
|
|
9832
9832
|
], KRComboBox.prototype, "optionLabel", void 0);
|
|
9833
|
-
__decorate$
|
|
9833
|
+
__decorate$2([
|
|
9834
9834
|
n$1({ type: Array })
|
|
9835
9835
|
], KRComboBox.prototype, "options", void 0);
|
|
9836
|
-
__decorate$
|
|
9836
|
+
__decorate$2([
|
|
9837
9837
|
n$1({ attribute: false })
|
|
9838
9838
|
], KRComboBox.prototype, "fetch", void 0);
|
|
9839
|
-
__decorate$
|
|
9839
|
+
__decorate$2([
|
|
9840
9840
|
n$1({ attribute: false })
|
|
9841
9841
|
], KRComboBox.prototype, "fetchSelection", void 0);
|
|
9842
|
-
__decorate$
|
|
9842
|
+
__decorate$2([
|
|
9843
9843
|
r$1()
|
|
9844
9844
|
], KRComboBox.prototype, "_isOpen", void 0);
|
|
9845
|
-
__decorate$
|
|
9845
|
+
__decorate$2([
|
|
9846
9846
|
r$1()
|
|
9847
9847
|
], KRComboBox.prototype, "_highlightedIndex", void 0);
|
|
9848
|
-
__decorate$
|
|
9848
|
+
__decorate$2([
|
|
9849
9849
|
r$1()
|
|
9850
9850
|
], KRComboBox.prototype, "_touched", void 0);
|
|
9851
|
-
__decorate$
|
|
9851
|
+
__decorate$2([
|
|
9852
9852
|
r$1()
|
|
9853
9853
|
], KRComboBox.prototype, "_searchQuery", void 0);
|
|
9854
|
-
__decorate$
|
|
9854
|
+
__decorate$2([
|
|
9855
9855
|
r$1()
|
|
9856
9856
|
], KRComboBox.prototype, "_loading", void 0);
|
|
9857
|
-
__decorate$
|
|
9857
|
+
__decorate$2([
|
|
9858
9858
|
e$3('.trigger')
|
|
9859
9859
|
], KRComboBox.prototype, "_triggerElement", void 0);
|
|
9860
|
-
__decorate$
|
|
9860
|
+
__decorate$2([
|
|
9861
9861
|
e$3('.search__input')
|
|
9862
9862
|
], KRComboBox.prototype, "_searchInput", void 0);
|
|
9863
|
-
KRComboBox = __decorate$
|
|
9863
|
+
KRComboBox = __decorate$2([
|
|
9864
9864
|
t$1('kr-combo-box')
|
|
9865
9865
|
], KRComboBox);
|
|
9866
9866
|
|
|
9867
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9867
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9868
9868
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9869
9869
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9870
9870
|
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;
|
|
@@ -10216,36 +10216,335 @@ KRRadioCards.styles = [krBaseCSS, i$5 `
|
|
|
10216
10216
|
}
|
|
10217
10217
|
`];
|
|
10218
10218
|
KRRadioCards.formAssociated = true;
|
|
10219
|
-
__decorate([
|
|
10219
|
+
__decorate$1([
|
|
10220
10220
|
n$1({ type: String })
|
|
10221
10221
|
], KRRadioCards.prototype, "label", void 0);
|
|
10222
|
-
__decorate([
|
|
10222
|
+
__decorate$1([
|
|
10223
10223
|
n$1({ type: String })
|
|
10224
10224
|
], KRRadioCards.prototype, "name", void 0);
|
|
10225
|
-
__decorate([
|
|
10225
|
+
__decorate$1([
|
|
10226
10226
|
n$1({ type: String })
|
|
10227
10227
|
], KRRadioCards.prototype, "value", void 0);
|
|
10228
|
-
__decorate([
|
|
10228
|
+
__decorate$1([
|
|
10229
10229
|
n$1({ attribute: false })
|
|
10230
10230
|
], KRRadioCards.prototype, "options", void 0);
|
|
10231
|
-
__decorate([
|
|
10231
|
+
__decorate$1([
|
|
10232
10232
|
n$1({ type: Boolean })
|
|
10233
10233
|
], KRRadioCards.prototype, "disabled", void 0);
|
|
10234
|
-
__decorate([
|
|
10234
|
+
__decorate$1([
|
|
10235
10235
|
n$1({ type: Boolean })
|
|
10236
10236
|
], KRRadioCards.prototype, "required", void 0);
|
|
10237
|
-
__decorate([
|
|
10237
|
+
__decorate$1([
|
|
10238
10238
|
n$1({ type: String })
|
|
10239
10239
|
], KRRadioCards.prototype, "hint", void 0);
|
|
10240
|
-
__decorate([
|
|
10240
|
+
__decorate$1([
|
|
10241
10241
|
n$1({ type: String })
|
|
10242
10242
|
], KRRadioCards.prototype, "direction", void 0);
|
|
10243
|
-
__decorate([
|
|
10243
|
+
__decorate$1([
|
|
10244
10244
|
r$1()
|
|
10245
10245
|
], KRRadioCards.prototype, "_touched", void 0);
|
|
10246
|
-
KRRadioCards = __decorate([
|
|
10246
|
+
KRRadioCards = __decorate$1([
|
|
10247
10247
|
t$1('kr-radio-cards')
|
|
10248
10248
|
], KRRadioCards);
|
|
10249
10249
|
|
|
10250
|
-
|
|
10250
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10251
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10252
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10253
|
+
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;
|
|
10254
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10255
|
+
};
|
|
10256
|
+
/**
|
|
10257
|
+
* A checkbox component that works with native browser forms.
|
|
10258
|
+
*
|
|
10259
|
+
* Uses ElementInternals for form association, allowing the component
|
|
10260
|
+
* to participate in form submission, validation, and reset.
|
|
10261
|
+
*
|
|
10262
|
+
* @element kr-checkbox
|
|
10263
|
+
* @fires change - Fired when the checked state changes
|
|
10264
|
+
*/
|
|
10265
|
+
let KRCheckbox = class KRCheckbox extends i$2 {
|
|
10266
|
+
constructor() {
|
|
10267
|
+
super();
|
|
10268
|
+
/**
|
|
10269
|
+
* The checkbox label text
|
|
10270
|
+
*/
|
|
10271
|
+
this.label = '';
|
|
10272
|
+
/**
|
|
10273
|
+
* The input name for form submission
|
|
10274
|
+
*/
|
|
10275
|
+
this.name = '';
|
|
10276
|
+
/**
|
|
10277
|
+
* The value submitted when checked
|
|
10278
|
+
*/
|
|
10279
|
+
this.value = 'on';
|
|
10280
|
+
/**
|
|
10281
|
+
* Whether the checkbox is checked
|
|
10282
|
+
*/
|
|
10283
|
+
this.checked = false;
|
|
10284
|
+
/**
|
|
10285
|
+
* Whether the checkbox is disabled
|
|
10286
|
+
*/
|
|
10287
|
+
this.disabled = false;
|
|
10288
|
+
/**
|
|
10289
|
+
* Whether the checkbox is required
|
|
10290
|
+
*/
|
|
10291
|
+
this.required = false;
|
|
10292
|
+
/**
|
|
10293
|
+
* Helper text shown below the checkbox
|
|
10294
|
+
*/
|
|
10295
|
+
this.hint = '';
|
|
10296
|
+
this._touched = false;
|
|
10297
|
+
this._handleInvalid = (e) => {
|
|
10298
|
+
e.preventDefault();
|
|
10299
|
+
this._touched = true;
|
|
10300
|
+
};
|
|
10301
|
+
this._internals = this.attachInternals();
|
|
10302
|
+
}
|
|
10303
|
+
// Form-associated custom element callbacks
|
|
10304
|
+
get form() {
|
|
10305
|
+
return this._internals.form;
|
|
10306
|
+
}
|
|
10307
|
+
get validity() {
|
|
10308
|
+
return this._internals.validity;
|
|
10309
|
+
}
|
|
10310
|
+
get validationMessage() {
|
|
10311
|
+
return this._internals.validationMessage;
|
|
10312
|
+
}
|
|
10313
|
+
get willValidate() {
|
|
10314
|
+
return this._internals.willValidate;
|
|
10315
|
+
}
|
|
10316
|
+
checkValidity() {
|
|
10317
|
+
return this._internals.checkValidity();
|
|
10318
|
+
}
|
|
10319
|
+
reportValidity() {
|
|
10320
|
+
return this._internals.reportValidity();
|
|
10321
|
+
}
|
|
10322
|
+
formResetCallback() {
|
|
10323
|
+
this.checked = false;
|
|
10324
|
+
this._touched = false;
|
|
10325
|
+
this._internals.setFormValue('');
|
|
10326
|
+
this._internals.setValidity({});
|
|
10327
|
+
}
|
|
10328
|
+
formStateRestoreCallback(state) {
|
|
10329
|
+
this.checked = state === this.value;
|
|
10330
|
+
}
|
|
10331
|
+
connectedCallback() {
|
|
10332
|
+
super.connectedCallback();
|
|
10333
|
+
this.addEventListener('invalid', this._handleInvalid);
|
|
10334
|
+
}
|
|
10335
|
+
disconnectedCallback() {
|
|
10336
|
+
super.disconnectedCallback();
|
|
10337
|
+
this.removeEventListener('invalid', this._handleInvalid);
|
|
10338
|
+
}
|
|
10339
|
+
firstUpdated() {
|
|
10340
|
+
this._syncFormValue();
|
|
10341
|
+
this._updateValidity();
|
|
10342
|
+
}
|
|
10343
|
+
updated(changedProperties) {
|
|
10344
|
+
if (changedProperties.has('checked') || changedProperties.has('value')) {
|
|
10345
|
+
this._syncFormValue();
|
|
10346
|
+
}
|
|
10347
|
+
if (changedProperties.has('required') || changedProperties.has('checked')) {
|
|
10348
|
+
this._updateValidity();
|
|
10349
|
+
}
|
|
10350
|
+
}
|
|
10351
|
+
_syncFormValue() {
|
|
10352
|
+
if (this.checked) {
|
|
10353
|
+
this._internals.setFormValue(this.value);
|
|
10354
|
+
}
|
|
10355
|
+
else {
|
|
10356
|
+
this._internals.setFormValue('');
|
|
10357
|
+
}
|
|
10358
|
+
}
|
|
10359
|
+
_updateValidity() {
|
|
10360
|
+
if (this.required && !this.checked) {
|
|
10361
|
+
this._internals.setValidity({ valueMissing: true }, 'This field is required');
|
|
10362
|
+
}
|
|
10363
|
+
else {
|
|
10364
|
+
this._internals.setValidity({});
|
|
10365
|
+
}
|
|
10366
|
+
}
|
|
10367
|
+
_handleClick(e) {
|
|
10368
|
+
if (this.disabled) {
|
|
10369
|
+
return;
|
|
10370
|
+
}
|
|
10371
|
+
this.checked = !this.checked;
|
|
10372
|
+
this._touched = true;
|
|
10373
|
+
this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
|
|
10374
|
+
}
|
|
10375
|
+
_handleKeyDown(e) {
|
|
10376
|
+
if (this.disabled) {
|
|
10377
|
+
return;
|
|
10378
|
+
}
|
|
10379
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
10380
|
+
e.preventDefault();
|
|
10381
|
+
this._handleClick(e);
|
|
10382
|
+
}
|
|
10383
|
+
}
|
|
10384
|
+
render() {
|
|
10385
|
+
return b `
|
|
10386
|
+
<div class="wrapper">
|
|
10387
|
+
<div
|
|
10388
|
+
class=${e$1({
|
|
10389
|
+
'checkbox': true,
|
|
10390
|
+
'checkbox--disabled': this.disabled,
|
|
10391
|
+
})}
|
|
10392
|
+
role="checkbox"
|
|
10393
|
+
aria-checked=${this.checked}
|
|
10394
|
+
aria-disabled=${this.disabled}
|
|
10395
|
+
aria-label=${this.label}
|
|
10396
|
+
tabindex=${this.disabled ? -1 : 0}
|
|
10397
|
+
@click=${this._handleClick}
|
|
10398
|
+
@keydown=${this._handleKeyDown}
|
|
10399
|
+
>
|
|
10400
|
+
<div class=${e$1({
|
|
10401
|
+
'checkbox__box': true,
|
|
10402
|
+
'checkbox__box--checked': this.checked,
|
|
10403
|
+
'checkbox__box--invalid': this._touched && this.required && !this.checked,
|
|
10404
|
+
})}>
|
|
10405
|
+
<svg class=${e$1({
|
|
10406
|
+
'checkbox__check': true,
|
|
10407
|
+
'checkbox__check--hidden': !this.checked,
|
|
10408
|
+
})} viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
10409
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
10410
|
+
</svg>
|
|
10411
|
+
</div>
|
|
10412
|
+
${this.label
|
|
10413
|
+
? b `
|
|
10414
|
+
<span class="checkbox__label">
|
|
10415
|
+
${this.label}
|
|
10416
|
+
${this.required ? b `<span class="required" aria-hidden="true">*</span>` : A}
|
|
10417
|
+
</span>
|
|
10418
|
+
`
|
|
10419
|
+
: A}
|
|
10420
|
+
</div>
|
|
10421
|
+
${this._touched && this.required && !this.checked
|
|
10422
|
+
? b `<div class="validation-message">This field is required</div>`
|
|
10423
|
+
: this.hint
|
|
10424
|
+
? b `<div class="hint">${this.hint}</div>`
|
|
10425
|
+
: A}
|
|
10426
|
+
</div>
|
|
10427
|
+
`;
|
|
10428
|
+
}
|
|
10429
|
+
focus() {
|
|
10430
|
+
this.shadowRoot?.querySelector('.checkbox')?.focus();
|
|
10431
|
+
}
|
|
10432
|
+
blur() {
|
|
10433
|
+
this.shadowRoot?.querySelector('.checkbox')?.blur();
|
|
10434
|
+
}
|
|
10435
|
+
};
|
|
10436
|
+
KRCheckbox.styles = [krBaseCSS, i$5 `
|
|
10437
|
+
:host {
|
|
10438
|
+
display: inline-block;
|
|
10439
|
+
font-family: inherit;
|
|
10440
|
+
}
|
|
10441
|
+
|
|
10442
|
+
.wrapper {
|
|
10443
|
+
display: flex;
|
|
10444
|
+
flex-direction: column;
|
|
10445
|
+
gap: 6px;
|
|
10446
|
+
}
|
|
10447
|
+
|
|
10448
|
+
.checkbox {
|
|
10449
|
+
display: inline-flex;
|
|
10450
|
+
align-items: center;
|
|
10451
|
+
gap: 8px;
|
|
10452
|
+
cursor: pointer;
|
|
10453
|
+
}
|
|
10454
|
+
|
|
10455
|
+
.checkbox--disabled {
|
|
10456
|
+
opacity: 0.5;
|
|
10457
|
+
cursor: not-allowed;
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
|
+
.checkbox__box {
|
|
10461
|
+
flex-shrink: 0;
|
|
10462
|
+
width: 18px;
|
|
10463
|
+
height: 18px;
|
|
10464
|
+
border: 2px solid var(--kr-checkbox-border-color, #0000003d);
|
|
10465
|
+
border-radius: 4px;
|
|
10466
|
+
background-color: var(--kr-checkbox-bg, #fff);
|
|
10467
|
+
display: flex;
|
|
10468
|
+
align-items: center;
|
|
10469
|
+
justify-content: center;
|
|
10470
|
+
transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
|
|
10471
|
+
}
|
|
10472
|
+
|
|
10473
|
+
.checkbox:focus-visible .checkbox__box {
|
|
10474
|
+
outline: none;
|
|
10475
|
+
box-shadow: 0 0 0 3px rgba(22, 48, 82, 0.1);
|
|
10476
|
+
}
|
|
10477
|
+
|
|
10478
|
+
.checkbox__box--checked {
|
|
10479
|
+
border-color: var(--kr-checkbox-checked-border-color, var(--kr-primary));
|
|
10480
|
+
background-color: var(--kr-checkbox-checked-bg, var(--kr-primary));
|
|
10481
|
+
}
|
|
10482
|
+
|
|
10483
|
+
.checkbox__box--invalid {
|
|
10484
|
+
border-color: var(--kr-checkbox-error-border-color, #ef4444);
|
|
10485
|
+
}
|
|
10486
|
+
|
|
10487
|
+
.checkbox__check {
|
|
10488
|
+
width: 12px;
|
|
10489
|
+
height: 12px;
|
|
10490
|
+
color: var(--kr-checkbox-check-color, #fff);
|
|
10491
|
+
}
|
|
10492
|
+
|
|
10493
|
+
.checkbox__check--hidden {
|
|
10494
|
+
visibility: hidden;
|
|
10495
|
+
}
|
|
10496
|
+
|
|
10497
|
+
.checkbox__label {
|
|
10498
|
+
font-size: 14px;
|
|
10499
|
+
color: var(--kr-checkbox-label-color, #000);
|
|
10500
|
+
user-select: none;
|
|
10501
|
+
}
|
|
10502
|
+
|
|
10503
|
+
.required {
|
|
10504
|
+
color: var(--kr-checkbox-required-color, #ef4444);
|
|
10505
|
+
margin-left: 0.125rem;
|
|
10506
|
+
}
|
|
10507
|
+
|
|
10508
|
+
.hint {
|
|
10509
|
+
font-size: 0.75rem;
|
|
10510
|
+
color: var(--kr-checkbox-helper-color, #6b7280);
|
|
10511
|
+
margin-left: 26px;
|
|
10512
|
+
}
|
|
10513
|
+
|
|
10514
|
+
.validation-message {
|
|
10515
|
+
font-size: 0.75rem;
|
|
10516
|
+
color: var(--kr-checkbox-error-color, #ef4444);
|
|
10517
|
+
margin-left: 26px;
|
|
10518
|
+
}
|
|
10519
|
+
`];
|
|
10520
|
+
KRCheckbox.formAssociated = true;
|
|
10521
|
+
__decorate([
|
|
10522
|
+
n$1({ type: String })
|
|
10523
|
+
], KRCheckbox.prototype, "label", void 0);
|
|
10524
|
+
__decorate([
|
|
10525
|
+
n$1({ type: String })
|
|
10526
|
+
], KRCheckbox.prototype, "name", void 0);
|
|
10527
|
+
__decorate([
|
|
10528
|
+
n$1({ type: String })
|
|
10529
|
+
], KRCheckbox.prototype, "value", void 0);
|
|
10530
|
+
__decorate([
|
|
10531
|
+
n$1({ type: Boolean })
|
|
10532
|
+
], KRCheckbox.prototype, "checked", void 0);
|
|
10533
|
+
__decorate([
|
|
10534
|
+
n$1({ type: Boolean })
|
|
10535
|
+
], KRCheckbox.prototype, "disabled", void 0);
|
|
10536
|
+
__decorate([
|
|
10537
|
+
n$1({ type: Boolean })
|
|
10538
|
+
], KRCheckbox.prototype, "required", void 0);
|
|
10539
|
+
__decorate([
|
|
10540
|
+
n$1({ type: String })
|
|
10541
|
+
], KRCheckbox.prototype, "hint", void 0);
|
|
10542
|
+
__decorate([
|
|
10543
|
+
r$1()
|
|
10544
|
+
], KRCheckbox.prototype, "_touched", void 0);
|
|
10545
|
+
KRCheckbox = __decorate([
|
|
10546
|
+
t$1('kr-checkbox')
|
|
10547
|
+
], KRCheckbox);
|
|
10548
|
+
|
|
10549
|
+
export { KRAccordion, KRAlert, KRAutoSuggest, KRButton, KRCheckbox, KRCodeDemo, KRComboBox, KRContextMenu, KRDateRangePicker, KRDialog, KRDialogRef, KRFileList, KRFilePreview, KRProgressBar, KRQuery, KRRadioCards, KRSelectField, KRSelectOption, KRSnackbar, KRSpinner, KRTab, KRTabGroup, KRTable, KRTextField, KRTextareaField, KR_OPERATORS, getOperatorsForType, krBaseCSS };
|
|
10251
10550
|
//# sourceMappingURL=krubble-components.bundled.js.map
|