@kodaris/krubble-components 1.0.40 → 1.0.42
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 +763 -9
- package/dist/form/auto-suggest/auto-suggest.d.ts +100 -0
- package/dist/form/auto-suggest/auto-suggest.d.ts.map +1 -0
- package/dist/form/auto-suggest/auto-suggest.js +779 -0
- package/dist/form/auto-suggest/auto-suggest.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 +2 -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 +918 -145
- package/dist/krubble-components.bundled.js.map +1 -1
- package/dist/krubble-components.bundled.min.js +392 -20
- package/dist/krubble-components.bundled.min.js.map +1 -1
- package/dist/krubble-components.umd.js +917 -144
- package/dist/krubble-components.umd.js.map +1 -1
- package/dist/krubble-components.umd.min.js +389 -17
- package/dist/krubble-components.umd.min.js.map +1 -1
- package/package.json +5 -1
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
96
|
*/function e$3(e,r){return (n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;return e$4(n,s,{get(){return o(this)}})}}
|
|
97
97
|
|
|
98
|
-
var __decorate$
|
|
98
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
99
99
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
100
100
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
101
101
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -202,13 +202,13 @@
|
|
|
202
202
|
padding: 16px 16px 8px 16px;
|
|
203
203
|
}
|
|
204
204
|
`;
|
|
205
|
-
__decorate$
|
|
205
|
+
__decorate$h([
|
|
206
206
|
n$1({ type: String })
|
|
207
207
|
], exports.KRAccordion.prototype, "header", void 0);
|
|
208
|
-
__decorate$
|
|
208
|
+
__decorate$h([
|
|
209
209
|
n$1({ type: Boolean, reflect: true })
|
|
210
210
|
], exports.KRAccordion.prototype, "expanded", void 0);
|
|
211
|
-
exports.KRAccordion = __decorate$
|
|
211
|
+
exports.KRAccordion = __decorate$h([
|
|
212
212
|
t$1('kr-accordion')
|
|
213
213
|
], exports.KRAccordion);
|
|
214
214
|
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
226
226
|
*/const e$1=e$2(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return E}});
|
|
227
227
|
|
|
228
|
-
var __decorate$
|
|
228
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
229
229
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
230
230
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
231
231
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -423,23 +423,23 @@
|
|
|
423
423
|
outline-offset: 2px;
|
|
424
424
|
}
|
|
425
425
|
`;
|
|
426
|
-
__decorate$
|
|
426
|
+
__decorate$g([
|
|
427
427
|
n$1({ type: String })
|
|
428
428
|
], exports.KRAlert.prototype, "type", void 0);
|
|
429
|
-
__decorate$
|
|
429
|
+
__decorate$g([
|
|
430
430
|
n$1({ type: String })
|
|
431
431
|
], exports.KRAlert.prototype, "title", void 0);
|
|
432
|
-
__decorate$
|
|
432
|
+
__decorate$g([
|
|
433
433
|
n$1({ type: Boolean })
|
|
434
434
|
], exports.KRAlert.prototype, "dismissible", void 0);
|
|
435
|
-
__decorate$
|
|
435
|
+
__decorate$g([
|
|
436
436
|
n$1({ type: Boolean })
|
|
437
437
|
], exports.KRAlert.prototype, "visible", void 0);
|
|
438
|
-
exports.KRAlert = __decorate$
|
|
438
|
+
exports.KRAlert = __decorate$g([
|
|
439
439
|
t$1('kr-alert')
|
|
440
440
|
], exports.KRAlert);
|
|
441
441
|
|
|
442
|
-
var __decorate$
|
|
442
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
443
443
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
444
444
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
445
445
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -898,40 +898,40 @@
|
|
|
898
898
|
height: 22px;
|
|
899
899
|
}
|
|
900
900
|
`;
|
|
901
|
-
__decorate$
|
|
901
|
+
__decorate$f([
|
|
902
902
|
n$1({ type: String, reflect: true })
|
|
903
903
|
], exports.KRButton.prototype, "variant", void 0);
|
|
904
|
-
__decorate$
|
|
904
|
+
__decorate$f([
|
|
905
905
|
n$1({ type: String, reflect: true })
|
|
906
906
|
], exports.KRButton.prototype, "color", void 0);
|
|
907
|
-
__decorate$
|
|
907
|
+
__decorate$f([
|
|
908
908
|
n$1({ type: String, reflect: true })
|
|
909
909
|
], exports.KRButton.prototype, "size", void 0);
|
|
910
|
-
__decorate$
|
|
910
|
+
__decorate$f([
|
|
911
911
|
n$1({ type: Boolean, reflect: true })
|
|
912
912
|
], exports.KRButton.prototype, "disabled", void 0);
|
|
913
|
-
__decorate$
|
|
913
|
+
__decorate$f([
|
|
914
914
|
n$1({ type: String })
|
|
915
915
|
], exports.KRButton.prototype, "href", void 0);
|
|
916
|
-
__decorate$
|
|
916
|
+
__decorate$f([
|
|
917
917
|
n$1({ type: String })
|
|
918
918
|
], exports.KRButton.prototype, "target", void 0);
|
|
919
|
-
__decorate$
|
|
919
|
+
__decorate$f([
|
|
920
920
|
n$1({ type: Array })
|
|
921
921
|
], exports.KRButton.prototype, "options", void 0);
|
|
922
|
-
__decorate$
|
|
922
|
+
__decorate$f([
|
|
923
923
|
n$1({ type: String, reflect: true, attribute: 'icon-position' })
|
|
924
924
|
], exports.KRButton.prototype, "iconPosition", void 0);
|
|
925
|
-
__decorate$
|
|
925
|
+
__decorate$f([
|
|
926
926
|
r$1()
|
|
927
927
|
], exports.KRButton.prototype, "_state", void 0);
|
|
928
|
-
__decorate$
|
|
928
|
+
__decorate$f([
|
|
929
929
|
r$1()
|
|
930
930
|
], exports.KRButton.prototype, "_stateText", void 0);
|
|
931
|
-
__decorate$
|
|
931
|
+
__decorate$f([
|
|
932
932
|
r$1()
|
|
933
933
|
], exports.KRButton.prototype, "_dropdownOpened", void 0);
|
|
934
|
-
exports.KRButton = __decorate$
|
|
934
|
+
exports.KRButton = __decorate$f([
|
|
935
935
|
t$1('kr-button')
|
|
936
936
|
], exports.KRButton);
|
|
937
937
|
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
942
942
|
*/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);
|
|
943
943
|
|
|
944
|
-
var __decorate$
|
|
944
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
945
945
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
946
946
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
947
947
|
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;
|
|
@@ -1175,26 +1175,26 @@
|
|
|
1175
1175
|
.hljs-property { color: #005cc5; }
|
|
1176
1176
|
|
|
1177
1177
|
`];
|
|
1178
|
-
__decorate$
|
|
1178
|
+
__decorate$e([
|
|
1179
1179
|
n$1({ type: String })
|
|
1180
1180
|
], exports.KRCodeDemo.prototype, "language", void 0);
|
|
1181
|
-
__decorate$
|
|
1181
|
+
__decorate$e([
|
|
1182
1182
|
r$1()
|
|
1183
1183
|
], exports.KRCodeDemo.prototype, "code", void 0);
|
|
1184
|
-
__decorate$
|
|
1184
|
+
__decorate$e([
|
|
1185
1185
|
r$1()
|
|
1186
1186
|
], exports.KRCodeDemo.prototype, "activeTab", void 0);
|
|
1187
|
-
__decorate$
|
|
1187
|
+
__decorate$e([
|
|
1188
1188
|
r$1()
|
|
1189
1189
|
], exports.KRCodeDemo.prototype, "copied", void 0);
|
|
1190
|
-
__decorate$
|
|
1190
|
+
__decorate$e([
|
|
1191
1191
|
r$1()
|
|
1192
1192
|
], exports.KRCodeDemo.prototype, "highlightedCode", void 0);
|
|
1193
|
-
exports.KRCodeDemo = __decorate$
|
|
1193
|
+
exports.KRCodeDemo = __decorate$e([
|
|
1194
1194
|
t$1('kr-code-demo')
|
|
1195
1195
|
], exports.KRCodeDemo);
|
|
1196
1196
|
|
|
1197
|
-
var __decorate$
|
|
1197
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1198
1198
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1199
1199
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1200
1200
|
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;
|
|
@@ -1363,10 +1363,10 @@
|
|
|
1363
1363
|
margin: 4px 0;
|
|
1364
1364
|
}
|
|
1365
1365
|
`;
|
|
1366
|
-
__decorate$
|
|
1366
|
+
__decorate$d([
|
|
1367
1367
|
r$1()
|
|
1368
1368
|
], exports.KRContextMenu.prototype, "items", void 0);
|
|
1369
|
-
exports.KRContextMenu = __decorate$
|
|
1369
|
+
exports.KRContextMenu = __decorate$d([
|
|
1370
1370
|
t$1('kr-context-menu')
|
|
1371
1371
|
], exports.KRContextMenu);
|
|
1372
1372
|
|
|
@@ -1376,7 +1376,7 @@
|
|
|
1376
1376
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1377
1377
|
*/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}});
|
|
1378
1378
|
|
|
1379
|
-
var __decorate$
|
|
1379
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1380
1380
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1381
1381
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1382
1382
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
font-weight: 600;
|
|
1404
1404
|
}
|
|
1405
1405
|
`;
|
|
1406
|
-
KRDialogHeader = __decorate$
|
|
1406
|
+
KRDialogHeader = __decorate$c([
|
|
1407
1407
|
t$1('kr-dialog-header')
|
|
1408
1408
|
], KRDialogHeader);
|
|
1409
1409
|
let KRDialogContent = class KRDialogContent extends i$2 {
|
|
@@ -1419,7 +1419,7 @@
|
|
|
1419
1419
|
flex: 1 1 auto;
|
|
1420
1420
|
}
|
|
1421
1421
|
`;
|
|
1422
|
-
KRDialogContent = __decorate$
|
|
1422
|
+
KRDialogContent = __decorate$c([
|
|
1423
1423
|
t$1('kr-dialog-content')
|
|
1424
1424
|
], KRDialogContent);
|
|
1425
1425
|
let KRDialogFooter = class KRDialogFooter extends i$2 {
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
justify-content: flex-end;
|
|
1440
1440
|
}
|
|
1441
1441
|
`;
|
|
1442
|
-
KRDialogFooter = __decorate$
|
|
1442
|
+
KRDialogFooter = __decorate$c([
|
|
1443
1443
|
t$1('kr-dialog-footer')
|
|
1444
1444
|
], KRDialogFooter);
|
|
1445
1445
|
/**
|
|
@@ -1647,23 +1647,23 @@
|
|
|
1647
1647
|
font-weight: 600;
|
|
1648
1648
|
}
|
|
1649
1649
|
`;
|
|
1650
|
-
__decorate$
|
|
1650
|
+
__decorate$c([
|
|
1651
1651
|
r$1()
|
|
1652
1652
|
], exports.KRDialog.prototype, "_contentElement", void 0);
|
|
1653
|
-
__decorate$
|
|
1653
|
+
__decorate$c([
|
|
1654
1654
|
n$1({ type: Boolean, reflect: true })
|
|
1655
1655
|
], exports.KRDialog.prototype, "opened", void 0);
|
|
1656
|
-
__decorate$
|
|
1656
|
+
__decorate$c([
|
|
1657
1657
|
n$1({ type: String })
|
|
1658
1658
|
], exports.KRDialog.prototype, "label", void 0);
|
|
1659
|
-
__decorate$
|
|
1659
|
+
__decorate$c([
|
|
1660
1660
|
n$1({ type: String })
|
|
1661
1661
|
], exports.KRDialog.prototype, "width", void 0);
|
|
1662
|
-
exports.KRDialog = __decorate$
|
|
1662
|
+
exports.KRDialog = __decorate$c([
|
|
1663
1663
|
t$1('kr-dialog')
|
|
1664
1664
|
], exports.KRDialog);
|
|
1665
1665
|
|
|
1666
|
-
var __decorate$
|
|
1666
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1667
1667
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1668
1668
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1669
1669
|
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;
|
|
@@ -1965,23 +1965,23 @@
|
|
|
1965
1965
|
`;
|
|
1966
1966
|
/** Track active snackbars for stacking */
|
|
1967
1967
|
exports.KRSnackbar.activeSnackbars = [];
|
|
1968
|
-
__decorate$
|
|
1968
|
+
__decorate$b([
|
|
1969
1969
|
n$1({ type: String })
|
|
1970
1970
|
], exports.KRSnackbar.prototype, "type", void 0);
|
|
1971
|
-
__decorate$
|
|
1971
|
+
__decorate$b([
|
|
1972
1972
|
n$1({ type: String })
|
|
1973
1973
|
], exports.KRSnackbar.prototype, "title", void 0);
|
|
1974
|
-
__decorate$
|
|
1974
|
+
__decorate$b([
|
|
1975
1975
|
n$1({ type: String })
|
|
1976
1976
|
], exports.KRSnackbar.prototype, "message", void 0);
|
|
1977
|
-
__decorate$
|
|
1977
|
+
__decorate$b([
|
|
1978
1978
|
n$1({ type: Number })
|
|
1979
1979
|
], exports.KRSnackbar.prototype, "duration", void 0);
|
|
1980
|
-
exports.KRSnackbar = KRSnackbar_1 = __decorate$
|
|
1980
|
+
exports.KRSnackbar = KRSnackbar_1 = __decorate$b([
|
|
1981
1981
|
t$1('kr-snackbar')
|
|
1982
1982
|
], exports.KRSnackbar);
|
|
1983
1983
|
|
|
1984
|
-
var __decorate$
|
|
1984
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1985
1985
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1986
1986
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1987
1987
|
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;
|
|
@@ -2284,20 +2284,20 @@
|
|
|
2284
2284
|
}
|
|
2285
2285
|
`,
|
|
2286
2286
|
];
|
|
2287
|
-
__decorate$
|
|
2287
|
+
__decorate$a([
|
|
2288
2288
|
n$1({ type: String, attribute: 'active-tab-id' })
|
|
2289
2289
|
], exports.KRTabGroup.prototype, "activeTabId", void 0);
|
|
2290
|
-
__decorate$
|
|
2290
|
+
__decorate$a([
|
|
2291
2291
|
n$1({ type: Boolean })
|
|
2292
2292
|
], exports.KRTabGroup.prototype, "justified", void 0);
|
|
2293
|
-
__decorate$
|
|
2293
|
+
__decorate$a([
|
|
2294
2294
|
n$1({ type: String, reflect: true })
|
|
2295
2295
|
], exports.KRTabGroup.prototype, "size", void 0);
|
|
2296
|
-
exports.KRTabGroup = __decorate$
|
|
2296
|
+
exports.KRTabGroup = __decorate$a([
|
|
2297
2297
|
t$1('kr-tab-group')
|
|
2298
2298
|
], exports.KRTabGroup);
|
|
2299
2299
|
|
|
2300
|
-
var __decorate$
|
|
2300
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2301
2301
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2302
2302
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2303
2303
|
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;
|
|
@@ -2371,35 +2371,35 @@
|
|
|
2371
2371
|
}
|
|
2372
2372
|
`,
|
|
2373
2373
|
];
|
|
2374
|
-
__decorate$
|
|
2374
|
+
__decorate$9([
|
|
2375
2375
|
n$1({ type: String, reflect: true })
|
|
2376
2376
|
], exports.KRTab.prototype, "id", void 0);
|
|
2377
|
-
__decorate$
|
|
2377
|
+
__decorate$9([
|
|
2378
2378
|
n$1({ type: String })
|
|
2379
2379
|
], exports.KRTab.prototype, "label", void 0);
|
|
2380
|
-
__decorate$
|
|
2380
|
+
__decorate$9([
|
|
2381
2381
|
n$1({ type: String })
|
|
2382
2382
|
], exports.KRTab.prototype, "badge", void 0);
|
|
2383
|
-
__decorate$
|
|
2383
|
+
__decorate$9([
|
|
2384
2384
|
n$1({ type: String, attribute: 'badge-background' })
|
|
2385
2385
|
], exports.KRTab.prototype, "badgeBackground", void 0);
|
|
2386
|
-
__decorate$
|
|
2386
|
+
__decorate$9([
|
|
2387
2387
|
n$1({ type: String, attribute: 'badge-color' })
|
|
2388
2388
|
], exports.KRTab.prototype, "badgeColor", void 0);
|
|
2389
|
-
__decorate$
|
|
2389
|
+
__decorate$9([
|
|
2390
2390
|
n$1({ type: Boolean })
|
|
2391
2391
|
], exports.KRTab.prototype, "disabled", void 0);
|
|
2392
|
-
__decorate$
|
|
2392
|
+
__decorate$9([
|
|
2393
2393
|
n$1({ type: Boolean })
|
|
2394
2394
|
], exports.KRTab.prototype, "dismissible", void 0);
|
|
2395
|
-
__decorate$
|
|
2395
|
+
__decorate$9([
|
|
2396
2396
|
n$1({ type: Boolean, reflect: true })
|
|
2397
2397
|
], exports.KRTab.prototype, "active", void 0);
|
|
2398
|
-
exports.KRTab = __decorate$
|
|
2398
|
+
exports.KRTab = __decorate$9([
|
|
2399
2399
|
t$1('kr-tab')
|
|
2400
2400
|
], exports.KRTab);
|
|
2401
2401
|
|
|
2402
|
-
var __decorate$
|
|
2402
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2403
2403
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2404
2404
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2405
2405
|
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;
|
|
@@ -3601,50 +3601,50 @@
|
|
|
3601
3601
|
color: #dc2626;
|
|
3602
3602
|
}
|
|
3603
3603
|
`];
|
|
3604
|
-
__decorate$
|
|
3604
|
+
__decorate$8([
|
|
3605
3605
|
r$1()
|
|
3606
3606
|
], exports.KRTable.prototype, "_data", void 0);
|
|
3607
|
-
__decorate$
|
|
3607
|
+
__decorate$8([
|
|
3608
3608
|
r$1()
|
|
3609
3609
|
], exports.KRTable.prototype, "_dataState", void 0);
|
|
3610
|
-
__decorate$
|
|
3610
|
+
__decorate$8([
|
|
3611
3611
|
r$1()
|
|
3612
3612
|
], exports.KRTable.prototype, "_page", void 0);
|
|
3613
|
-
__decorate$
|
|
3613
|
+
__decorate$8([
|
|
3614
3614
|
r$1()
|
|
3615
3615
|
], exports.KRTable.prototype, "_pageSize", void 0);
|
|
3616
|
-
__decorate$
|
|
3616
|
+
__decorate$8([
|
|
3617
3617
|
r$1()
|
|
3618
3618
|
], exports.KRTable.prototype, "_totalItems", void 0);
|
|
3619
|
-
__decorate$
|
|
3619
|
+
__decorate$8([
|
|
3620
3620
|
r$1()
|
|
3621
3621
|
], exports.KRTable.prototype, "_totalPages", void 0);
|
|
3622
|
-
__decorate$
|
|
3622
|
+
__decorate$8([
|
|
3623
3623
|
r$1()
|
|
3624
3624
|
], exports.KRTable.prototype, "_searchQuery", void 0);
|
|
3625
|
-
__decorate$
|
|
3625
|
+
__decorate$8([
|
|
3626
3626
|
r$1()
|
|
3627
3627
|
], exports.KRTable.prototype, "_canScrollLeft", void 0);
|
|
3628
|
-
__decorate$
|
|
3628
|
+
__decorate$8([
|
|
3629
3629
|
r$1()
|
|
3630
3630
|
], exports.KRTable.prototype, "_canScrollRight", void 0);
|
|
3631
|
-
__decorate$
|
|
3631
|
+
__decorate$8([
|
|
3632
3632
|
r$1()
|
|
3633
3633
|
], exports.KRTable.prototype, "_canScrollHorizontal", void 0);
|
|
3634
|
-
__decorate$
|
|
3634
|
+
__decorate$8([
|
|
3635
3635
|
r$1()
|
|
3636
3636
|
], exports.KRTable.prototype, "_columnPickerOpen", void 0);
|
|
3637
|
-
__decorate$
|
|
3637
|
+
__decorate$8([
|
|
3638
3638
|
r$1()
|
|
3639
3639
|
], exports.KRTable.prototype, "_displayedColumns", void 0);
|
|
3640
|
-
__decorate$
|
|
3640
|
+
__decorate$8([
|
|
3641
3641
|
n$1({ type: Object })
|
|
3642
3642
|
], exports.KRTable.prototype, "def", void 0);
|
|
3643
|
-
exports.KRTable = __decorate$
|
|
3643
|
+
exports.KRTable = __decorate$8([
|
|
3644
3644
|
t$1('kr-table')
|
|
3645
3645
|
], exports.KRTable);
|
|
3646
3646
|
|
|
3647
|
-
var __decorate$
|
|
3647
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3648
3648
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3649
3649
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3650
3650
|
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;
|
|
@@ -3764,17 +3764,17 @@
|
|
|
3764
3764
|
stroke-linecap: round;
|
|
3765
3765
|
}
|
|
3766
3766
|
`;
|
|
3767
|
-
__decorate$
|
|
3767
|
+
__decorate$7([
|
|
3768
3768
|
n$1({ type: String, reflect: true })
|
|
3769
3769
|
], exports.KRSpinner.prototype, "size", void 0);
|
|
3770
|
-
__decorate$
|
|
3770
|
+
__decorate$7([
|
|
3771
3771
|
n$1({ type: String, reflect: true })
|
|
3772
3772
|
], exports.KRSpinner.prototype, "color", void 0);
|
|
3773
|
-
exports.KRSpinner = __decorate$
|
|
3773
|
+
exports.KRSpinner = __decorate$7([
|
|
3774
3774
|
t$1('kr-spinner')
|
|
3775
3775
|
], exports.KRSpinner);
|
|
3776
3776
|
|
|
3777
|
-
var __decorate$
|
|
3777
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3778
3778
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3779
3779
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3780
3780
|
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;
|
|
@@ -3865,13 +3865,13 @@
|
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
`;
|
|
3868
|
-
__decorate$
|
|
3868
|
+
__decorate$6([
|
|
3869
3869
|
n$1({ type: String, reflect: true })
|
|
3870
3870
|
], exports.KRProgressBar.prototype, "color", void 0);
|
|
3871
|
-
__decorate$
|
|
3871
|
+
__decorate$6([
|
|
3872
3872
|
n$1({ type: String, reflect: true })
|
|
3873
3873
|
], exports.KRProgressBar.prototype, "trackColor", void 0);
|
|
3874
|
-
exports.KRProgressBar = __decorate$
|
|
3874
|
+
exports.KRProgressBar = __decorate$6([
|
|
3875
3875
|
t$1('kr-progress-bar')
|
|
3876
3876
|
], exports.KRProgressBar);
|
|
3877
3877
|
|
|
@@ -3893,7 +3893,7 @@
|
|
|
3893
3893
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3894
3894
|
*/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}});
|
|
3895
3895
|
|
|
3896
|
-
var __decorate$
|
|
3896
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3897
3897
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3898
3898
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3899
3899
|
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;
|
|
@@ -4146,59 +4146,59 @@
|
|
|
4146
4146
|
`;
|
|
4147
4147
|
// Enable form association
|
|
4148
4148
|
exports.KRTextField.formAssociated = true;
|
|
4149
|
-
__decorate$
|
|
4149
|
+
__decorate$5([
|
|
4150
4150
|
n$1({ type: String })
|
|
4151
4151
|
], exports.KRTextField.prototype, "label", void 0);
|
|
4152
|
-
__decorate$
|
|
4152
|
+
__decorate$5([
|
|
4153
4153
|
n$1({ type: String })
|
|
4154
4154
|
], exports.KRTextField.prototype, "name", void 0);
|
|
4155
|
-
__decorate$
|
|
4155
|
+
__decorate$5([
|
|
4156
4156
|
n$1({ type: String })
|
|
4157
4157
|
], exports.KRTextField.prototype, "value", void 0);
|
|
4158
|
-
__decorate$
|
|
4158
|
+
__decorate$5([
|
|
4159
4159
|
n$1({ type: String })
|
|
4160
4160
|
], exports.KRTextField.prototype, "placeholder", void 0);
|
|
4161
|
-
__decorate$
|
|
4161
|
+
__decorate$5([
|
|
4162
4162
|
n$1({ type: String })
|
|
4163
4163
|
], exports.KRTextField.prototype, "type", void 0);
|
|
4164
|
-
__decorate$
|
|
4164
|
+
__decorate$5([
|
|
4165
4165
|
n$1({ type: Boolean })
|
|
4166
4166
|
], exports.KRTextField.prototype, "required", void 0);
|
|
4167
|
-
__decorate$
|
|
4167
|
+
__decorate$5([
|
|
4168
4168
|
n$1({ type: Boolean })
|
|
4169
4169
|
], exports.KRTextField.prototype, "disabled", void 0);
|
|
4170
|
-
__decorate$
|
|
4170
|
+
__decorate$5([
|
|
4171
4171
|
n$1({ type: Boolean })
|
|
4172
4172
|
], exports.KRTextField.prototype, "readonly", void 0);
|
|
4173
|
-
__decorate$
|
|
4173
|
+
__decorate$5([
|
|
4174
4174
|
n$1({ type: Number })
|
|
4175
4175
|
], exports.KRTextField.prototype, "minlength", void 0);
|
|
4176
|
-
__decorate$
|
|
4176
|
+
__decorate$5([
|
|
4177
4177
|
n$1({ type: Number })
|
|
4178
4178
|
], exports.KRTextField.prototype, "maxlength", void 0);
|
|
4179
|
-
__decorate$
|
|
4179
|
+
__decorate$5([
|
|
4180
4180
|
n$1({ type: String })
|
|
4181
4181
|
], exports.KRTextField.prototype, "pattern", void 0);
|
|
4182
|
-
__decorate$
|
|
4182
|
+
__decorate$5([
|
|
4183
4183
|
n$1({ type: String })
|
|
4184
4184
|
], exports.KRTextField.prototype, "autocomplete", void 0);
|
|
4185
|
-
__decorate$
|
|
4185
|
+
__decorate$5([
|
|
4186
4186
|
n$1({ type: String })
|
|
4187
4187
|
], exports.KRTextField.prototype, "hint", void 0);
|
|
4188
|
-
__decorate$
|
|
4188
|
+
__decorate$5([
|
|
4189
4189
|
e$3('input')
|
|
4190
4190
|
], exports.KRTextField.prototype, "_input", void 0);
|
|
4191
|
-
__decorate$
|
|
4191
|
+
__decorate$5([
|
|
4192
4192
|
r$1()
|
|
4193
4193
|
], exports.KRTextField.prototype, "_touched", void 0);
|
|
4194
|
-
__decorate$
|
|
4194
|
+
__decorate$5([
|
|
4195
4195
|
r$1()
|
|
4196
4196
|
], exports.KRTextField.prototype, "_dirty", void 0);
|
|
4197
|
-
exports.KRTextField = __decorate$
|
|
4197
|
+
exports.KRTextField = __decorate$5([
|
|
4198
4198
|
t$1('kr-text-field')
|
|
4199
4199
|
], exports.KRTextField);
|
|
4200
4200
|
|
|
4201
|
-
var __decorate$
|
|
4201
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4202
4202
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4203
4203
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4204
4204
|
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;
|
|
@@ -4670,47 +4670,47 @@
|
|
|
4670
4670
|
`];
|
|
4671
4671
|
// Enable form association
|
|
4672
4672
|
exports.KRSelectField.formAssociated = true;
|
|
4673
|
-
__decorate$
|
|
4673
|
+
__decorate$4([
|
|
4674
4674
|
n$1({ type: String })
|
|
4675
4675
|
], exports.KRSelectField.prototype, "label", void 0);
|
|
4676
|
-
__decorate$
|
|
4676
|
+
__decorate$4([
|
|
4677
4677
|
n$1({ type: String })
|
|
4678
4678
|
], exports.KRSelectField.prototype, "name", void 0);
|
|
4679
|
-
__decorate$
|
|
4679
|
+
__decorate$4([
|
|
4680
4680
|
n$1({ type: String })
|
|
4681
4681
|
], exports.KRSelectField.prototype, "value", void 0);
|
|
4682
|
-
__decorate$
|
|
4682
|
+
__decorate$4([
|
|
4683
4683
|
n$1({ type: String })
|
|
4684
4684
|
], exports.KRSelectField.prototype, "placeholder", void 0);
|
|
4685
|
-
__decorate$
|
|
4685
|
+
__decorate$4([
|
|
4686
4686
|
n$1({ type: Boolean })
|
|
4687
4687
|
], exports.KRSelectField.prototype, "disabled", void 0);
|
|
4688
|
-
__decorate$
|
|
4688
|
+
__decorate$4([
|
|
4689
4689
|
n$1({ type: Boolean })
|
|
4690
4690
|
], exports.KRSelectField.prototype, "required", void 0);
|
|
4691
|
-
__decorate$
|
|
4691
|
+
__decorate$4([
|
|
4692
4692
|
n$1({ type: Boolean })
|
|
4693
4693
|
], exports.KRSelectField.prototype, "readonly", void 0);
|
|
4694
|
-
__decorate$
|
|
4694
|
+
__decorate$4([
|
|
4695
4695
|
n$1({ type: String })
|
|
4696
4696
|
], exports.KRSelectField.prototype, "hint", void 0);
|
|
4697
|
-
__decorate$
|
|
4697
|
+
__decorate$4([
|
|
4698
4698
|
r$1()
|
|
4699
4699
|
], exports.KRSelectField.prototype, "_isOpen", void 0);
|
|
4700
|
-
__decorate$
|
|
4700
|
+
__decorate$4([
|
|
4701
4701
|
r$1()
|
|
4702
4702
|
], exports.KRSelectField.prototype, "_highlightedIndex", void 0);
|
|
4703
|
-
__decorate$
|
|
4703
|
+
__decorate$4([
|
|
4704
4704
|
r$1()
|
|
4705
4705
|
], exports.KRSelectField.prototype, "_touched", void 0);
|
|
4706
|
-
__decorate$
|
|
4706
|
+
__decorate$4([
|
|
4707
4707
|
e$3('.select-trigger')
|
|
4708
4708
|
], exports.KRSelectField.prototype, "_triggerElement", void 0);
|
|
4709
|
-
exports.KRSelectField = __decorate$
|
|
4709
|
+
exports.KRSelectField = __decorate$4([
|
|
4710
4710
|
t$1('kr-select-field')
|
|
4711
4711
|
], exports.KRSelectField);
|
|
4712
4712
|
|
|
4713
|
-
var __decorate$
|
|
4713
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4714
4714
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4715
4715
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4716
4716
|
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;
|
|
@@ -4747,17 +4747,17 @@
|
|
|
4747
4747
|
display: none;
|
|
4748
4748
|
}
|
|
4749
4749
|
`;
|
|
4750
|
-
__decorate$
|
|
4750
|
+
__decorate$3([
|
|
4751
4751
|
n$1({ type: String })
|
|
4752
4752
|
], exports.KRSelectOption.prototype, "value", void 0);
|
|
4753
|
-
__decorate$
|
|
4753
|
+
__decorate$3([
|
|
4754
4754
|
n$1({ type: Boolean })
|
|
4755
4755
|
], exports.KRSelectOption.prototype, "disabled", void 0);
|
|
4756
|
-
exports.KRSelectOption = __decorate$
|
|
4756
|
+
exports.KRSelectOption = __decorate$3([
|
|
4757
4757
|
t$1('kr-select-option')
|
|
4758
4758
|
], exports.KRSelectOption);
|
|
4759
4759
|
|
|
4760
|
-
var __decorate$
|
|
4760
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4761
4761
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4762
4762
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4763
4763
|
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;
|
|
@@ -5015,59 +5015,59 @@
|
|
|
5015
5015
|
`;
|
|
5016
5016
|
// Enable form association
|
|
5017
5017
|
exports.KRTextareaField.formAssociated = true;
|
|
5018
|
-
__decorate$
|
|
5018
|
+
__decorate$2([
|
|
5019
5019
|
n$1({ type: String })
|
|
5020
5020
|
], exports.KRTextareaField.prototype, "label", void 0);
|
|
5021
|
-
__decorate$
|
|
5021
|
+
__decorate$2([
|
|
5022
5022
|
n$1({ type: String })
|
|
5023
5023
|
], exports.KRTextareaField.prototype, "name", void 0);
|
|
5024
|
-
__decorate$
|
|
5024
|
+
__decorate$2([
|
|
5025
5025
|
n$1({ type: String })
|
|
5026
5026
|
], exports.KRTextareaField.prototype, "value", void 0);
|
|
5027
|
-
__decorate$
|
|
5027
|
+
__decorate$2([
|
|
5028
5028
|
n$1({ type: String })
|
|
5029
5029
|
], exports.KRTextareaField.prototype, "placeholder", void 0);
|
|
5030
|
-
__decorate$
|
|
5030
|
+
__decorate$2([
|
|
5031
5031
|
n$1({ type: Boolean })
|
|
5032
5032
|
], exports.KRTextareaField.prototype, "required", void 0);
|
|
5033
|
-
__decorate$
|
|
5033
|
+
__decorate$2([
|
|
5034
5034
|
n$1({ type: Boolean })
|
|
5035
5035
|
], exports.KRTextareaField.prototype, "disabled", void 0);
|
|
5036
|
-
__decorate$
|
|
5036
|
+
__decorate$2([
|
|
5037
5037
|
n$1({ type: Boolean })
|
|
5038
5038
|
], exports.KRTextareaField.prototype, "readonly", void 0);
|
|
5039
|
-
__decorate$
|
|
5039
|
+
__decorate$2([
|
|
5040
5040
|
n$1({ type: Number })
|
|
5041
5041
|
], exports.KRTextareaField.prototype, "rows", void 0);
|
|
5042
|
-
__decorate$
|
|
5042
|
+
__decorate$2([
|
|
5043
5043
|
n$1({ type: Number })
|
|
5044
5044
|
], exports.KRTextareaField.prototype, "cols", void 0);
|
|
5045
|
-
__decorate$
|
|
5045
|
+
__decorate$2([
|
|
5046
5046
|
n$1({ type: Number })
|
|
5047
5047
|
], exports.KRTextareaField.prototype, "minlength", void 0);
|
|
5048
|
-
__decorate$
|
|
5048
|
+
__decorate$2([
|
|
5049
5049
|
n$1({ type: Number })
|
|
5050
5050
|
], exports.KRTextareaField.prototype, "maxlength", void 0);
|
|
5051
|
-
__decorate$
|
|
5051
|
+
__decorate$2([
|
|
5052
5052
|
n$1({ type: String })
|
|
5053
5053
|
], exports.KRTextareaField.prototype, "autocomplete", void 0);
|
|
5054
|
-
__decorate$
|
|
5054
|
+
__decorate$2([
|
|
5055
5055
|
n$1({ type: String })
|
|
5056
5056
|
], exports.KRTextareaField.prototype, "hint", void 0);
|
|
5057
|
-
__decorate$
|
|
5057
|
+
__decorate$2([
|
|
5058
5058
|
e$3('textarea')
|
|
5059
5059
|
], exports.KRTextareaField.prototype, "_textarea", void 0);
|
|
5060
|
-
__decorate$
|
|
5060
|
+
__decorate$2([
|
|
5061
5061
|
r$1()
|
|
5062
5062
|
], exports.KRTextareaField.prototype, "_touched", void 0);
|
|
5063
|
-
__decorate$
|
|
5063
|
+
__decorate$2([
|
|
5064
5064
|
r$1()
|
|
5065
5065
|
], exports.KRTextareaField.prototype, "_dirty", void 0);
|
|
5066
|
-
exports.KRTextareaField = __decorate$
|
|
5066
|
+
exports.KRTextareaField = __decorate$2([
|
|
5067
5067
|
t$1('kr-textarea-field')
|
|
5068
5068
|
], exports.KRTextareaField);
|
|
5069
5069
|
|
|
5070
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5070
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5071
5071
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5072
5072
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5073
5073
|
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;
|
|
@@ -5124,16 +5124,789 @@
|
|
|
5124
5124
|
color: black;
|
|
5125
5125
|
}
|
|
5126
5126
|
`;
|
|
5127
|
-
__decorate([
|
|
5127
|
+
__decorate$1([
|
|
5128
5128
|
n$1({ type: String })
|
|
5129
5129
|
], KRDetailField.prototype, "label", void 0);
|
|
5130
|
-
__decorate([
|
|
5130
|
+
__decorate$1([
|
|
5131
5131
|
n$1({ type: String })
|
|
5132
5132
|
], KRDetailField.prototype, "value", void 0);
|
|
5133
|
-
KRDetailField = __decorate([
|
|
5133
|
+
KRDetailField = __decorate$1([
|
|
5134
5134
|
t$1('kr-detail-field')
|
|
5135
5135
|
], KRDetailField);
|
|
5136
5136
|
|
|
5137
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5138
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5139
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5140
|
+
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;
|
|
5141
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5142
|
+
};
|
|
5143
|
+
function isGroup(option) {
|
|
5144
|
+
return 'options' in option;
|
|
5145
|
+
}
|
|
5146
|
+
/**
|
|
5147
|
+
* @element kr-auto-suggest
|
|
5148
|
+
*
|
|
5149
|
+
* @property {string} label - Label text for the input
|
|
5150
|
+
* @property {string} name - Name for form submission
|
|
5151
|
+
* @property {string} value - Current input value
|
|
5152
|
+
* @property {string} placeholder - Placeholder text
|
|
5153
|
+
* @property {boolean} disabled - Whether the input is disabled
|
|
5154
|
+
* @property {boolean} readonly - Whether the input is readonly
|
|
5155
|
+
* @property {boolean} required - Whether the input is required
|
|
5156
|
+
* @property {string} hint - Helper text displayed below the input
|
|
5157
|
+
* @property {SuggestionOptions} options - Array of suggestion options or groups
|
|
5158
|
+
* @property {AutoSuggestStatusType} statusType - Loading state: 'pending' | 'loading' | 'finished' | 'error'
|
|
5159
|
+
* @property {string} loadingText - Text to show during loading
|
|
5160
|
+
* @property {string} errorText - Text to show on error
|
|
5161
|
+
* @property {string} emptyText - Text to show when no matches
|
|
5162
|
+
* @property {AutoSuggestFilteringType} filteringType - 'auto' (client-side) or 'manual' (server-side)
|
|
5163
|
+
* @property {boolean} highlightMatches - Whether to highlight matching text
|
|
5164
|
+
*
|
|
5165
|
+
* @fires change - Fired when the input value changes
|
|
5166
|
+
* @fires select - Fired when a suggestion is selected
|
|
5167
|
+
* @fires load-items - Fired when items should be loaded (manual filtering)
|
|
5168
|
+
*
|
|
5169
|
+
* @slot - Not used
|
|
5170
|
+
*/
|
|
5171
|
+
exports.KRAutoSuggest = class KRAutoSuggest extends i$2 {
|
|
5172
|
+
constructor() {
|
|
5173
|
+
super();
|
|
5174
|
+
this.label = '';
|
|
5175
|
+
this.name = '';
|
|
5176
|
+
this.value = '';
|
|
5177
|
+
this.placeholder = '';
|
|
5178
|
+
this.disabled = false;
|
|
5179
|
+
this.readonly = false;
|
|
5180
|
+
this.required = false;
|
|
5181
|
+
this.hint = '';
|
|
5182
|
+
this.options = [];
|
|
5183
|
+
this.statusType = 'finished';
|
|
5184
|
+
this.loadingText = 'Loading...';
|
|
5185
|
+
this.errorText = 'Error loading options';
|
|
5186
|
+
this.emptyText = 'No matches found';
|
|
5187
|
+
this.filteringType = 'auto';
|
|
5188
|
+
this.highlightMatches = true;
|
|
5189
|
+
this._isOpen = false;
|
|
5190
|
+
this._highlightedIndex = -1;
|
|
5191
|
+
this._touched = false;
|
|
5192
|
+
this._dirty = false;
|
|
5193
|
+
this._handleDocumentClick = this._onDocumentClick.bind(this);
|
|
5194
|
+
this._internals = this.attachInternals();
|
|
5195
|
+
}
|
|
5196
|
+
connectedCallback() {
|
|
5197
|
+
super.connectedCallback();
|
|
5198
|
+
document.addEventListener('click', this._handleDocumentClick);
|
|
5199
|
+
}
|
|
5200
|
+
disconnectedCallback() {
|
|
5201
|
+
super.disconnectedCallback();
|
|
5202
|
+
document.removeEventListener('click', this._handleDocumentClick);
|
|
5203
|
+
}
|
|
5204
|
+
firstUpdated() {
|
|
5205
|
+
this._updateFormValue();
|
|
5206
|
+
}
|
|
5207
|
+
get form() {
|
|
5208
|
+
return this._internals.form;
|
|
5209
|
+
}
|
|
5210
|
+
get validity() {
|
|
5211
|
+
return this._internals.validity;
|
|
5212
|
+
}
|
|
5213
|
+
get validationMessage() {
|
|
5214
|
+
return this._internals.validationMessage;
|
|
5215
|
+
}
|
|
5216
|
+
checkValidity() {
|
|
5217
|
+
return this._internals.checkValidity();
|
|
5218
|
+
}
|
|
5219
|
+
reportValidity() {
|
|
5220
|
+
return this._internals.reportValidity();
|
|
5221
|
+
}
|
|
5222
|
+
formResetCallback() {
|
|
5223
|
+
this.value = '';
|
|
5224
|
+
this._touched = false;
|
|
5225
|
+
this._dirty = false;
|
|
5226
|
+
this._isOpen = false;
|
|
5227
|
+
this._highlightedIndex = -1;
|
|
5228
|
+
this._updateFormValue();
|
|
5229
|
+
}
|
|
5230
|
+
formStateRestoreCallback(state) {
|
|
5231
|
+
this.value = state;
|
|
5232
|
+
}
|
|
5233
|
+
get _filteredOptions() {
|
|
5234
|
+
if (this.filteringType === 'manual' || !this.value) {
|
|
5235
|
+
return this.options;
|
|
5236
|
+
}
|
|
5237
|
+
const searchValue = this.value.toLowerCase();
|
|
5238
|
+
const filtered = [];
|
|
5239
|
+
for (const option of this.options) {
|
|
5240
|
+
if (isGroup(option)) {
|
|
5241
|
+
const filteredGroupOptions = option.options.filter((opt) => {
|
|
5242
|
+
const label = (opt.label || opt.value).toLowerCase();
|
|
5243
|
+
const tags = opt.filteringTags?.join(' ').toLowerCase() || '';
|
|
5244
|
+
return label.includes(searchValue) || tags.includes(searchValue);
|
|
5245
|
+
});
|
|
5246
|
+
if (filteredGroupOptions.length > 0) {
|
|
5247
|
+
filtered.push({ ...option, options: filteredGroupOptions });
|
|
5248
|
+
}
|
|
5249
|
+
}
|
|
5250
|
+
else {
|
|
5251
|
+
const label = (option.label || option.value).toLowerCase();
|
|
5252
|
+
const tags = option.filteringTags?.join(' ').toLowerCase() || '';
|
|
5253
|
+
if (label.includes(searchValue) || tags.includes(searchValue)) {
|
|
5254
|
+
filtered.push(option);
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
return filtered;
|
|
5259
|
+
}
|
|
5260
|
+
get _flatOptions() {
|
|
5261
|
+
const flat = [];
|
|
5262
|
+
for (const option of this._filteredOptions) {
|
|
5263
|
+
if (isGroup(option)) {
|
|
5264
|
+
flat.push(...option.options);
|
|
5265
|
+
}
|
|
5266
|
+
else {
|
|
5267
|
+
flat.push(option);
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
return flat;
|
|
5271
|
+
}
|
|
5272
|
+
_updateFormValue() {
|
|
5273
|
+
this._internals.setFormValue(this.value);
|
|
5274
|
+
// Validation
|
|
5275
|
+
if (this.required && !this.value) {
|
|
5276
|
+
this._internals.setValidity({ valueMissing: true }, 'This field is required', this._input);
|
|
5277
|
+
}
|
|
5278
|
+
else {
|
|
5279
|
+
this._internals.setValidity({});
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
_onInput(e) {
|
|
5283
|
+
const target = e.target;
|
|
5284
|
+
this.value = target.value;
|
|
5285
|
+
this._dirty = true;
|
|
5286
|
+
this._isOpen = true;
|
|
5287
|
+
this._highlightedIndex = -1;
|
|
5288
|
+
this._updateFormValue();
|
|
5289
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
5290
|
+
detail: { value: this.value },
|
|
5291
|
+
bubbles: true,
|
|
5292
|
+
composed: true,
|
|
5293
|
+
}));
|
|
5294
|
+
if (this.filteringType === 'manual') {
|
|
5295
|
+
this.dispatchEvent(new CustomEvent('load-items', {
|
|
5296
|
+
detail: { filteringText: this.value },
|
|
5297
|
+
bubbles: true,
|
|
5298
|
+
composed: true,
|
|
5299
|
+
}));
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
_onFocus() {
|
|
5303
|
+
this._isOpen = true;
|
|
5304
|
+
if (this.filteringType === 'manual') {
|
|
5305
|
+
this.dispatchEvent(new CustomEvent('load-items', {
|
|
5306
|
+
detail: { filteringText: this.value },
|
|
5307
|
+
bubbles: true,
|
|
5308
|
+
composed: true,
|
|
5309
|
+
}));
|
|
5310
|
+
}
|
|
5311
|
+
}
|
|
5312
|
+
_onBlur() {
|
|
5313
|
+
this._touched = true;
|
|
5314
|
+
// Delay to allow click on option
|
|
5315
|
+
setTimeout(() => {
|
|
5316
|
+
this._isOpen = false;
|
|
5317
|
+
this._highlightedIndex = -1;
|
|
5318
|
+
}, 200);
|
|
5319
|
+
this._updateFormValue();
|
|
5320
|
+
}
|
|
5321
|
+
_onKeyDown(e) {
|
|
5322
|
+
const options = this._flatOptions;
|
|
5323
|
+
switch (e.key) {
|
|
5324
|
+
case 'ArrowDown':
|
|
5325
|
+
e.preventDefault();
|
|
5326
|
+
this._isOpen = true;
|
|
5327
|
+
this._highlightedIndex = Math.min(this._highlightedIndex + 1, options.length - 1);
|
|
5328
|
+
this._scrollToHighlighted();
|
|
5329
|
+
break;
|
|
5330
|
+
case 'ArrowUp':
|
|
5331
|
+
e.preventDefault();
|
|
5332
|
+
this._highlightedIndex = Math.max(this._highlightedIndex - 1, -1);
|
|
5333
|
+
this._scrollToHighlighted();
|
|
5334
|
+
break;
|
|
5335
|
+
case 'Enter':
|
|
5336
|
+
if (this._highlightedIndex >= 0 && options[this._highlightedIndex]) {
|
|
5337
|
+
e.preventDefault();
|
|
5338
|
+
this._selectOption(options[this._highlightedIndex]);
|
|
5339
|
+
}
|
|
5340
|
+
break;
|
|
5341
|
+
case 'Escape':
|
|
5342
|
+
e.preventDefault();
|
|
5343
|
+
this._isOpen = false;
|
|
5344
|
+
this._highlightedIndex = -1;
|
|
5345
|
+
break;
|
|
5346
|
+
case 'Tab':
|
|
5347
|
+
this._isOpen = false;
|
|
5348
|
+
this._highlightedIndex = -1;
|
|
5349
|
+
break;
|
|
5350
|
+
}
|
|
5351
|
+
}
|
|
5352
|
+
_scrollToHighlighted() {
|
|
5353
|
+
this.updateComplete.then(() => {
|
|
5354
|
+
const container = this.shadowRoot?.querySelector('.dropdown');
|
|
5355
|
+
const highlighted = this.shadowRoot?.querySelector('.option.is-highlighted');
|
|
5356
|
+
if (container && highlighted) {
|
|
5357
|
+
const containerRect = container.getBoundingClientRect();
|
|
5358
|
+
const highlightedRect = highlighted.getBoundingClientRect();
|
|
5359
|
+
if (highlightedRect.bottom > containerRect.bottom) {
|
|
5360
|
+
highlighted.scrollIntoView({ block: 'nearest' });
|
|
5361
|
+
}
|
|
5362
|
+
else if (highlightedRect.top < containerRect.top) {
|
|
5363
|
+
highlighted.scrollIntoView({ block: 'nearest' });
|
|
5364
|
+
}
|
|
5365
|
+
}
|
|
5366
|
+
});
|
|
5367
|
+
}
|
|
5368
|
+
_selectOption(option) {
|
|
5369
|
+
if (option.disabled)
|
|
5370
|
+
return;
|
|
5371
|
+
this.value = option.label || option.value;
|
|
5372
|
+
this._isOpen = false;
|
|
5373
|
+
this._highlightedIndex = -1;
|
|
5374
|
+
this._dirty = true;
|
|
5375
|
+
this._updateFormValue();
|
|
5376
|
+
this.dispatchEvent(new CustomEvent('select', {
|
|
5377
|
+
detail: { value: option.value, selectedOption: option },
|
|
5378
|
+
bubbles: true,
|
|
5379
|
+
composed: true,
|
|
5380
|
+
}));
|
|
5381
|
+
this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
|
|
5382
|
+
}
|
|
5383
|
+
_handleClear() {
|
|
5384
|
+
this.value = '';
|
|
5385
|
+
this._updateFormValue();
|
|
5386
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
5387
|
+
detail: { value: '' },
|
|
5388
|
+
bubbles: true,
|
|
5389
|
+
composed: true,
|
|
5390
|
+
}));
|
|
5391
|
+
this._input?.focus();
|
|
5392
|
+
}
|
|
5393
|
+
_onDocumentClick(e) {
|
|
5394
|
+
const path = e.composedPath();
|
|
5395
|
+
if (!path.includes(this)) {
|
|
5396
|
+
this._isOpen = false;
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5399
|
+
_highlightMatch(text) {
|
|
5400
|
+
if (!this.value || this.filteringType === 'manual' || !this.highlightMatches) {
|
|
5401
|
+
return b `${text}`;
|
|
5402
|
+
}
|
|
5403
|
+
const searchValue = this.value.toLowerCase();
|
|
5404
|
+
const index = text.toLowerCase().indexOf(searchValue);
|
|
5405
|
+
if (index === -1) {
|
|
5406
|
+
return b `${text}`;
|
|
5407
|
+
}
|
|
5408
|
+
const before = text.slice(0, index);
|
|
5409
|
+
const match = text.slice(index, index + this.value.length);
|
|
5410
|
+
const after = text.slice(index + this.value.length);
|
|
5411
|
+
return b `${before}<span class="highlight">${match}</span>${after}`;
|
|
5412
|
+
}
|
|
5413
|
+
_renderOption(option, index) {
|
|
5414
|
+
const isHighlighted = index === this._highlightedIndex;
|
|
5415
|
+
return b `
|
|
5416
|
+
<button
|
|
5417
|
+
class=${e$1({
|
|
5418
|
+
option: true,
|
|
5419
|
+
'is-highlighted': isHighlighted,
|
|
5420
|
+
})}
|
|
5421
|
+
type="button"
|
|
5422
|
+
role="option"
|
|
5423
|
+
aria-selected=${isHighlighted}
|
|
5424
|
+
?disabled=${option.disabled}
|
|
5425
|
+
@click=${() => this._selectOption(option)}
|
|
5426
|
+
@mouseenter=${() => {
|
|
5427
|
+
this._highlightedIndex = index;
|
|
5428
|
+
}}
|
|
5429
|
+
>
|
|
5430
|
+
<div class="option-content">
|
|
5431
|
+
<div class="option-label">
|
|
5432
|
+
${this._highlightMatch(option.label || option.value)}
|
|
5433
|
+
${option.labelTag ? b `<span class="option-tag">${option.labelTag}</span>` : A}
|
|
5434
|
+
</div>
|
|
5435
|
+
${option.description
|
|
5436
|
+
? b `<div class="option-description">${option.description}</div>`
|
|
5437
|
+
: A}
|
|
5438
|
+
${option.tags && option.tags.length > 0
|
|
5439
|
+
? b `
|
|
5440
|
+
<div class="option-tags">
|
|
5441
|
+
${option.tags.map((tag) => b `<span class="option-tag">${tag}</span>`)}
|
|
5442
|
+
</div>
|
|
5443
|
+
`
|
|
5444
|
+
: A}
|
|
5445
|
+
</div>
|
|
5446
|
+
</button>
|
|
5447
|
+
`;
|
|
5448
|
+
}
|
|
5449
|
+
_renderDropdownContent() {
|
|
5450
|
+
if (this.statusType === 'loading') {
|
|
5451
|
+
return b `
|
|
5452
|
+
<div class="status">
|
|
5453
|
+
<div class="spinner"></div>
|
|
5454
|
+
${this.loadingText}
|
|
5455
|
+
</div>
|
|
5456
|
+
`;
|
|
5457
|
+
}
|
|
5458
|
+
if (this.statusType === 'error') {
|
|
5459
|
+
return b `
|
|
5460
|
+
<div class="status is-error">
|
|
5461
|
+
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
5462
|
+
<path
|
|
5463
|
+
d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"
|
|
5464
|
+
/>
|
|
5465
|
+
</svg>
|
|
5466
|
+
${this.errorText}
|
|
5467
|
+
</div>
|
|
5468
|
+
`;
|
|
5469
|
+
}
|
|
5470
|
+
const filtered = this._filteredOptions;
|
|
5471
|
+
if (filtered.length === 0) {
|
|
5472
|
+
return b `<div class="empty">${this.emptyText}</div>`;
|
|
5473
|
+
}
|
|
5474
|
+
let optionIndex = 0;
|
|
5475
|
+
return b `
|
|
5476
|
+
${filtered.map((option) => {
|
|
5477
|
+
if (isGroup(option)) {
|
|
5478
|
+
const groupOptions = option.options.map((opt) => {
|
|
5479
|
+
const rendered = this._renderOption(opt, optionIndex);
|
|
5480
|
+
optionIndex++;
|
|
5481
|
+
return rendered;
|
|
5482
|
+
});
|
|
5483
|
+
return b `
|
|
5484
|
+
<div class="group-label">${option.label}</div>
|
|
5485
|
+
${groupOptions}
|
|
5486
|
+
`;
|
|
5487
|
+
}
|
|
5488
|
+
const rendered = this._renderOption(option, optionIndex);
|
|
5489
|
+
optionIndex++;
|
|
5490
|
+
return rendered;
|
|
5491
|
+
})}
|
|
5492
|
+
`;
|
|
5493
|
+
}
|
|
5494
|
+
render() {
|
|
5495
|
+
const hasError = this._touched && !this.validity.valid;
|
|
5496
|
+
return b `
|
|
5497
|
+
<div class="field-wrapper">
|
|
5498
|
+
${this.label
|
|
5499
|
+
? b `
|
|
5500
|
+
<label>
|
|
5501
|
+
${this.label}
|
|
5502
|
+
${this.required ? b `<span class="required">*</span>` : A}
|
|
5503
|
+
</label>
|
|
5504
|
+
`
|
|
5505
|
+
: A}
|
|
5506
|
+
|
|
5507
|
+
<div class="input-container">
|
|
5508
|
+
<div class="input-wrapper">
|
|
5509
|
+
<input
|
|
5510
|
+
type="text"
|
|
5511
|
+
.value=${l(this.value)}
|
|
5512
|
+
placeholder=${o(this.placeholder || undefined)}
|
|
5513
|
+
?disabled=${this.disabled}
|
|
5514
|
+
?readonly=${this.readonly}
|
|
5515
|
+
?required=${this.required}
|
|
5516
|
+
name=${o(this.name || undefined)}
|
|
5517
|
+
autocomplete="off"
|
|
5518
|
+
role="combobox"
|
|
5519
|
+
aria-autocomplete="list"
|
|
5520
|
+
aria-expanded=${this._isOpen}
|
|
5521
|
+
aria-controls="dropdown"
|
|
5522
|
+
class=${e$1({
|
|
5523
|
+
'input--invalid': hasError,
|
|
5524
|
+
})}
|
|
5525
|
+
@input=${this._onInput}
|
|
5526
|
+
@blur=${this._onBlur}
|
|
5527
|
+
@focus=${this._onFocus}
|
|
5528
|
+
@keydown=${this._onKeyDown}
|
|
5529
|
+
/>
|
|
5530
|
+
<div class="icon-container">
|
|
5531
|
+
${this.value && !this.disabled && !this.readonly
|
|
5532
|
+
? b `
|
|
5533
|
+
<button
|
|
5534
|
+
class="clear-button"
|
|
5535
|
+
type="button"
|
|
5536
|
+
aria-label="Clear"
|
|
5537
|
+
@click=${this._handleClear}
|
|
5538
|
+
>
|
|
5539
|
+
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
5540
|
+
<path
|
|
5541
|
+
d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"
|
|
5542
|
+
/>
|
|
5543
|
+
</svg>
|
|
5544
|
+
</button>
|
|
5545
|
+
`
|
|
5546
|
+
: ''}
|
|
5547
|
+
${!this.value && !this.disabled && !this.readonly
|
|
5548
|
+
? b `
|
|
5549
|
+
<svg class="search-icon" fill="currentColor" viewBox="0 0 16 16">
|
|
5550
|
+
<path
|
|
5551
|
+
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"
|
|
5552
|
+
/>
|
|
5553
|
+
</svg>
|
|
5554
|
+
`
|
|
5555
|
+
: ''}
|
|
5556
|
+
</div>
|
|
5557
|
+
</div>
|
|
5558
|
+
|
|
5559
|
+
<div
|
|
5560
|
+
id="dropdown"
|
|
5561
|
+
role="listbox"
|
|
5562
|
+
class=${e$1({
|
|
5563
|
+
dropdown: true,
|
|
5564
|
+
'is-open': this._isOpen,
|
|
5565
|
+
})}
|
|
5566
|
+
>
|
|
5567
|
+
${this._renderDropdownContent()}
|
|
5568
|
+
</div>
|
|
5569
|
+
</div>
|
|
5570
|
+
|
|
5571
|
+
${hasError
|
|
5572
|
+
? b `<div class="validation-message">${this.validationMessage}</div>`
|
|
5573
|
+
: this.hint
|
|
5574
|
+
? b `<div class="hint">${this.hint}</div>`
|
|
5575
|
+
: A}
|
|
5576
|
+
</div>
|
|
5577
|
+
`;
|
|
5578
|
+
}
|
|
5579
|
+
};
|
|
5580
|
+
exports.KRAutoSuggest.styles = i$5 `
|
|
5581
|
+
:host {
|
|
5582
|
+
display: block;
|
|
5583
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
|
|
5584
|
+
'Helvetica Neue', sans-serif;
|
|
5585
|
+
}
|
|
5586
|
+
|
|
5587
|
+
.field-wrapper {
|
|
5588
|
+
display: flex;
|
|
5589
|
+
flex-direction: column;
|
|
5590
|
+
gap: 4px;
|
|
5591
|
+
}
|
|
5592
|
+
|
|
5593
|
+
label {
|
|
5594
|
+
font-size: 14px;
|
|
5595
|
+
font-weight: 500;
|
|
5596
|
+
color: var(--kr-text-field-label-color, #374151);
|
|
5597
|
+
display: block;
|
|
5598
|
+
}
|
|
5599
|
+
|
|
5600
|
+
.required {
|
|
5601
|
+
color: var(--kr-text-field-required-color, #ef4444);
|
|
5602
|
+
margin-left: 2px;
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5605
|
+
.input-container {
|
|
5606
|
+
position: relative;
|
|
5607
|
+
}
|
|
5608
|
+
|
|
5609
|
+
.input-wrapper {
|
|
5610
|
+
position: relative;
|
|
5611
|
+
display: flex;
|
|
5612
|
+
align-items: center;
|
|
5613
|
+
}
|
|
5614
|
+
|
|
5615
|
+
input {
|
|
5616
|
+
flex: 1;
|
|
5617
|
+
width: 100%;
|
|
5618
|
+
padding: 8px 32px 8px 12px;
|
|
5619
|
+
font-size: 14px;
|
|
5620
|
+
border: 1px solid var(--kr-text-field-border-color, #d1d5db);
|
|
5621
|
+
border-radius: 6px;
|
|
5622
|
+
background: var(--kr-text-field-bg, #ffffff);
|
|
5623
|
+
color: var(--kr-text-field-color, #000000);
|
|
5624
|
+
transition: all 0.2s ease;
|
|
5625
|
+
box-sizing: border-box;
|
|
5626
|
+
font-family: inherit;
|
|
5627
|
+
}
|
|
5628
|
+
|
|
5629
|
+
input:focus {
|
|
5630
|
+
outline: none;
|
|
5631
|
+
border-color: var(--kr-text-field-focus-border-color, #163052);
|
|
5632
|
+
box-shadow: 0 0 0 3px var(--kr-text-field-focus-ring-color, rgba(22, 48, 82, 0.1));
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
input:disabled {
|
|
5636
|
+
background: var(--kr-text-field-disabled-bg, #f3f4f6);
|
|
5637
|
+
cursor: not-allowed;
|
|
5638
|
+
opacity: 0.6;
|
|
5639
|
+
}
|
|
5640
|
+
|
|
5641
|
+
input:read-only {
|
|
5642
|
+
background: var(--kr-text-field-disabled-bg, #f3f4f6);
|
|
5643
|
+
cursor: default;
|
|
5644
|
+
}
|
|
5645
|
+
|
|
5646
|
+
input.input--invalid {
|
|
5647
|
+
border-color: var(--kr-text-field-error-border-color, #ef4444);
|
|
5648
|
+
}
|
|
5649
|
+
|
|
5650
|
+
input.input--invalid:focus {
|
|
5651
|
+
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
|
|
5652
|
+
}
|
|
5653
|
+
|
|
5654
|
+
input::placeholder {
|
|
5655
|
+
color: var(--kr-text-field-placeholder-color, #9ca3af);
|
|
5656
|
+
}
|
|
5657
|
+
|
|
5658
|
+
.icon-container {
|
|
5659
|
+
position: absolute;
|
|
5660
|
+
right: 8px;
|
|
5661
|
+
display: flex;
|
|
5662
|
+
align-items: center;
|
|
5663
|
+
gap: 4px;
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5666
|
+
.clear-button {
|
|
5667
|
+
display: flex;
|
|
5668
|
+
align-items: center;
|
|
5669
|
+
justify-content: center;
|
|
5670
|
+
width: 20px;
|
|
5671
|
+
height: 20px;
|
|
5672
|
+
padding: 0;
|
|
5673
|
+
background: none;
|
|
5674
|
+
border: none;
|
|
5675
|
+
border-radius: 50%;
|
|
5676
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5677
|
+
cursor: pointer;
|
|
5678
|
+
transition: all 0.15s ease;
|
|
5679
|
+
}
|
|
5680
|
+
|
|
5681
|
+
.clear-button:hover {
|
|
5682
|
+
background-color: var(--kr-select-option-hover-bg, #f3f4f6);
|
|
5683
|
+
color: var(--kr-text, #000000);
|
|
5684
|
+
}
|
|
5685
|
+
|
|
5686
|
+
.search-icon {
|
|
5687
|
+
width: 16px;
|
|
5688
|
+
height: 16px;
|
|
5689
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5690
|
+
pointer-events: none;
|
|
5691
|
+
}
|
|
5692
|
+
|
|
5693
|
+
/* Dropdown */
|
|
5694
|
+
.dropdown {
|
|
5695
|
+
position: absolute;
|
|
5696
|
+
top: 100%;
|
|
5697
|
+
left: 0;
|
|
5698
|
+
right: 0;
|
|
5699
|
+
z-index: 50;
|
|
5700
|
+
margin-top: 4px;
|
|
5701
|
+
max-height: 300px;
|
|
5702
|
+
overflow-y: auto;
|
|
5703
|
+
background: white;
|
|
5704
|
+
border: 1px solid var(--kr-text-field-border-color, #d1d5db);
|
|
5705
|
+
border-radius: 6px;
|
|
5706
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
5707
|
+
display: none;
|
|
5708
|
+
}
|
|
5709
|
+
|
|
5710
|
+
.dropdown.is-open {
|
|
5711
|
+
display: block;
|
|
5712
|
+
}
|
|
5713
|
+
|
|
5714
|
+
/* Options */
|
|
5715
|
+
.option {
|
|
5716
|
+
display: flex;
|
|
5717
|
+
align-items: flex-start;
|
|
5718
|
+
gap: 8px;
|
|
5719
|
+
width: 100%;
|
|
5720
|
+
padding: 8px 12px;
|
|
5721
|
+
background: none;
|
|
5722
|
+
border: none;
|
|
5723
|
+
font-size: 14px;
|
|
5724
|
+
font-family: inherit;
|
|
5725
|
+
color: var(--kr-text, #000000);
|
|
5726
|
+
text-align: left;
|
|
5727
|
+
cursor: pointer;
|
|
5728
|
+
transition: background 0.15s ease;
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
.option:hover:not(:disabled) {
|
|
5732
|
+
background: var(--kr-select-option-hover-bg, #f3f4f6);
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
.option.is-highlighted {
|
|
5736
|
+
background: var(--kr-select-option-highlight-bg, #e5e7eb);
|
|
5737
|
+
}
|
|
5738
|
+
|
|
5739
|
+
.option:disabled {
|
|
5740
|
+
opacity: 0.5;
|
|
5741
|
+
cursor: not-allowed;
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
.option-content {
|
|
5745
|
+
flex: 1;
|
|
5746
|
+
min-width: 0;
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
.option-label {
|
|
5750
|
+
display: flex;
|
|
5751
|
+
align-items: center;
|
|
5752
|
+
gap: 6px;
|
|
5753
|
+
flex-wrap: wrap;
|
|
5754
|
+
}
|
|
5755
|
+
|
|
5756
|
+
.option-tag {
|
|
5757
|
+
flex-shrink: 0;
|
|
5758
|
+
padding: 2px 6px;
|
|
5759
|
+
font-size: 11px;
|
|
5760
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5761
|
+
background: var(--kr-select-option-hover-bg, #f3f4f6);
|
|
5762
|
+
border-radius: 3px;
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
.option-description {
|
|
5766
|
+
font-size: 12px;
|
|
5767
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5768
|
+
margin-top: 2px;
|
|
5769
|
+
}
|
|
5770
|
+
|
|
5771
|
+
.option-tags {
|
|
5772
|
+
display: flex;
|
|
5773
|
+
flex-wrap: wrap;
|
|
5774
|
+
gap: 4px;
|
|
5775
|
+
margin-top: 4px;
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
/* Highlight */
|
|
5779
|
+
.highlight {
|
|
5780
|
+
font-weight: 600;
|
|
5781
|
+
background-color: #fef3c7;
|
|
5782
|
+
color: #92400e;
|
|
5783
|
+
}
|
|
5784
|
+
|
|
5785
|
+
/* Group */
|
|
5786
|
+
.group-label {
|
|
5787
|
+
padding: 8px 12px;
|
|
5788
|
+
font-size: 11px;
|
|
5789
|
+
font-weight: 600;
|
|
5790
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5791
|
+
text-transform: uppercase;
|
|
5792
|
+
letter-spacing: 0.05em;
|
|
5793
|
+
background: var(--kr-select-option-hover-bg, #f9fafb);
|
|
5794
|
+
border-bottom: 1px solid var(--kr-text-field-border-color, #e5e7eb);
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5797
|
+
/* Status */
|
|
5798
|
+
.status {
|
|
5799
|
+
display: flex;
|
|
5800
|
+
align-items: center;
|
|
5801
|
+
justify-content: center;
|
|
5802
|
+
gap: 8px;
|
|
5803
|
+
padding: 16px;
|
|
5804
|
+
font-size: 14px;
|
|
5805
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
.status.is-error {
|
|
5809
|
+
color: var(--kr-text-field-error-border-color, #ef4444);
|
|
5810
|
+
}
|
|
5811
|
+
|
|
5812
|
+
.spinner {
|
|
5813
|
+
width: 16px;
|
|
5814
|
+
height: 16px;
|
|
5815
|
+
border: 2px solid var(--kr-text-field-border-color, #e5e7eb);
|
|
5816
|
+
border-top-color: var(--kr-text-field-focus-border-color, #163052);
|
|
5817
|
+
border-radius: 50%;
|
|
5818
|
+
animation: spin 0.6s linear infinite;
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5821
|
+
@keyframes spin {
|
|
5822
|
+
to {
|
|
5823
|
+
transform: rotate(360deg);
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
|
|
5827
|
+
.empty {
|
|
5828
|
+
padding: 16px;
|
|
5829
|
+
text-align: center;
|
|
5830
|
+
font-size: 14px;
|
|
5831
|
+
color: var(--kr-text-muted, #6b7280);
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
.hint {
|
|
5835
|
+
font-size: 12px;
|
|
5836
|
+
color: var(--kr-text-field-hint-color, #6b7280);
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5839
|
+
.validation-message {
|
|
5840
|
+
font-size: 12px;
|
|
5841
|
+
color: var(--kr-text-field-error-border-color, #ef4444);
|
|
5842
|
+
margin-top: 2px;
|
|
5843
|
+
}
|
|
5844
|
+
`;
|
|
5845
|
+
exports.KRAutoSuggest.formAssociated = true;
|
|
5846
|
+
__decorate([
|
|
5847
|
+
n$1({ type: String })
|
|
5848
|
+
], exports.KRAutoSuggest.prototype, "label", void 0);
|
|
5849
|
+
__decorate([
|
|
5850
|
+
n$1({ type: String })
|
|
5851
|
+
], exports.KRAutoSuggest.prototype, "name", void 0);
|
|
5852
|
+
__decorate([
|
|
5853
|
+
n$1({ type: String })
|
|
5854
|
+
], exports.KRAutoSuggest.prototype, "value", void 0);
|
|
5855
|
+
__decorate([
|
|
5856
|
+
n$1({ type: String })
|
|
5857
|
+
], exports.KRAutoSuggest.prototype, "placeholder", void 0);
|
|
5858
|
+
__decorate([
|
|
5859
|
+
n$1({ type: Boolean })
|
|
5860
|
+
], exports.KRAutoSuggest.prototype, "disabled", void 0);
|
|
5861
|
+
__decorate([
|
|
5862
|
+
n$1({ type: Boolean })
|
|
5863
|
+
], exports.KRAutoSuggest.prototype, "readonly", void 0);
|
|
5864
|
+
__decorate([
|
|
5865
|
+
n$1({ type: Boolean })
|
|
5866
|
+
], exports.KRAutoSuggest.prototype, "required", void 0);
|
|
5867
|
+
__decorate([
|
|
5868
|
+
n$1({ type: String })
|
|
5869
|
+
], exports.KRAutoSuggest.prototype, "hint", void 0);
|
|
5870
|
+
__decorate([
|
|
5871
|
+
n$1({ type: Array })
|
|
5872
|
+
], exports.KRAutoSuggest.prototype, "options", void 0);
|
|
5873
|
+
__decorate([
|
|
5874
|
+
n$1({ type: String, attribute: 'status-type' })
|
|
5875
|
+
], exports.KRAutoSuggest.prototype, "statusType", void 0);
|
|
5876
|
+
__decorate([
|
|
5877
|
+
n$1({ type: String, attribute: 'loading-text' })
|
|
5878
|
+
], exports.KRAutoSuggest.prototype, "loadingText", void 0);
|
|
5879
|
+
__decorate([
|
|
5880
|
+
n$1({ type: String, attribute: 'error-text' })
|
|
5881
|
+
], exports.KRAutoSuggest.prototype, "errorText", void 0);
|
|
5882
|
+
__decorate([
|
|
5883
|
+
n$1({ type: String, attribute: 'empty-text' })
|
|
5884
|
+
], exports.KRAutoSuggest.prototype, "emptyText", void 0);
|
|
5885
|
+
__decorate([
|
|
5886
|
+
n$1({ type: String, attribute: 'filtering-type' })
|
|
5887
|
+
], exports.KRAutoSuggest.prototype, "filteringType", void 0);
|
|
5888
|
+
__decorate([
|
|
5889
|
+
n$1({ type: Boolean, attribute: 'highlight-matches' })
|
|
5890
|
+
], exports.KRAutoSuggest.prototype, "highlightMatches", void 0);
|
|
5891
|
+
__decorate([
|
|
5892
|
+
r$1()
|
|
5893
|
+
], exports.KRAutoSuggest.prototype, "_isOpen", void 0);
|
|
5894
|
+
__decorate([
|
|
5895
|
+
r$1()
|
|
5896
|
+
], exports.KRAutoSuggest.prototype, "_highlightedIndex", void 0);
|
|
5897
|
+
__decorate([
|
|
5898
|
+
r$1()
|
|
5899
|
+
], exports.KRAutoSuggest.prototype, "_touched", void 0);
|
|
5900
|
+
__decorate([
|
|
5901
|
+
r$1()
|
|
5902
|
+
], exports.KRAutoSuggest.prototype, "_dirty", void 0);
|
|
5903
|
+
__decorate([
|
|
5904
|
+
e$3('input')
|
|
5905
|
+
], exports.KRAutoSuggest.prototype, "_input", void 0);
|
|
5906
|
+
exports.KRAutoSuggest = __decorate([
|
|
5907
|
+
t$1('kr-auto-suggest')
|
|
5908
|
+
], exports.KRAutoSuggest);
|
|
5909
|
+
|
|
5137
5910
|
exports.KRDialogRef = KRDialogRef;
|
|
5138
5911
|
exports.krBaseCSS = krBaseCSS;
|
|
5139
5912
|
|