@kodaris/krubble-components 1.0.20 → 1.0.23
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 +181 -66
- package/dist/form/detail-field/detail-field.d.ts +24 -0
- package/dist/form/detail-field/detail-field.d.ts.map +1 -0
- package/dist/form/detail-field/detail-field.js +70 -0
- package/dist/form/detail-field/detail-field.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/form/select-field/select-field.js +6 -6
- package/dist/form/text-field/text-field.js +6 -6
- package/dist/form/textarea-field/textarea-field.js +6 -6
- package/dist/krubble.bundled.js +210 -143
- package/dist/krubble.bundled.js.map +1 -1
- package/dist/krubble.bundled.min.js +50 -23
- package/dist/krubble.bundled.min.js.map +1 -1
- package/dist/krubble.umd.js +210 -143
- package/dist/krubble.umd.js.map +1 -1
- package/dist/krubble.umd.min.js +63 -36
- package/dist/krubble.umd.min.js.map +1 -1
- package/package.json +5 -1
package/dist/krubble.bundled.js
CHANGED
|
@@ -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$e = (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$e([
|
|
200
200
|
n$1({ type: String })
|
|
201
201
|
], KRAccordion.prototype, "header", void 0);
|
|
202
|
-
__decorate$
|
|
202
|
+
__decorate$e([
|
|
203
203
|
n$1({ type: Boolean, reflect: true })
|
|
204
204
|
], KRAccordion.prototype, "expanded", void 0);
|
|
205
|
-
KRAccordion = __decorate$
|
|
205
|
+
KRAccordion = __decorate$e([
|
|
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$d = (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;
|
|
@@ -403,23 +403,23 @@ KRAlert.styles = i$5 `
|
|
|
403
403
|
outline-offset: 2px;
|
|
404
404
|
}
|
|
405
405
|
`;
|
|
406
|
-
__decorate$
|
|
406
|
+
__decorate$d([
|
|
407
407
|
n$1({ type: String })
|
|
408
408
|
], KRAlert.prototype, "type", void 0);
|
|
409
|
-
__decorate$
|
|
409
|
+
__decorate$d([
|
|
410
410
|
n$1({ type: String })
|
|
411
411
|
], KRAlert.prototype, "header", void 0);
|
|
412
|
-
__decorate$
|
|
412
|
+
__decorate$d([
|
|
413
413
|
n$1({ type: Boolean })
|
|
414
414
|
], KRAlert.prototype, "dismissible", void 0);
|
|
415
|
-
__decorate$
|
|
415
|
+
__decorate$d([
|
|
416
416
|
n$1({ type: Boolean })
|
|
417
417
|
], KRAlert.prototype, "visible", void 0);
|
|
418
|
-
KRAlert = __decorate$
|
|
418
|
+
KRAlert = __decorate$d([
|
|
419
419
|
t$1('kr-alert')
|
|
420
420
|
], KRAlert);
|
|
421
421
|
|
|
422
|
-
var __decorate$
|
|
422
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
423
423
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
424
424
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
425
425
|
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;
|
|
@@ -838,40 +838,40 @@ KRButton.styles = i$5 `
|
|
|
838
838
|
text-decoration: none;
|
|
839
839
|
}
|
|
840
840
|
`;
|
|
841
|
-
__decorate$
|
|
841
|
+
__decorate$c([
|
|
842
842
|
n$1({ type: String, reflect: true })
|
|
843
843
|
], KRButton.prototype, "variant", void 0);
|
|
844
|
-
__decorate$
|
|
844
|
+
__decorate$c([
|
|
845
845
|
n$1({ type: String, reflect: true })
|
|
846
846
|
], KRButton.prototype, "color", void 0);
|
|
847
|
-
__decorate$
|
|
847
|
+
__decorate$c([
|
|
848
848
|
n$1({ type: String, reflect: true })
|
|
849
849
|
], KRButton.prototype, "size", void 0);
|
|
850
|
-
__decorate$
|
|
850
|
+
__decorate$c([
|
|
851
851
|
n$1({ type: Boolean, reflect: true })
|
|
852
852
|
], KRButton.prototype, "disabled", void 0);
|
|
853
|
-
__decorate$
|
|
853
|
+
__decorate$c([
|
|
854
854
|
n$1({ type: String })
|
|
855
855
|
], KRButton.prototype, "href", void 0);
|
|
856
|
-
__decorate$
|
|
856
|
+
__decorate$c([
|
|
857
857
|
n$1({ type: String })
|
|
858
858
|
], KRButton.prototype, "target", void 0);
|
|
859
|
-
__decorate$
|
|
859
|
+
__decorate$c([
|
|
860
860
|
n$1({ type: Array })
|
|
861
861
|
], KRButton.prototype, "options", void 0);
|
|
862
|
-
__decorate$
|
|
862
|
+
__decorate$c([
|
|
863
863
|
r$1()
|
|
864
864
|
], KRButton.prototype, "_state", void 0);
|
|
865
|
-
__decorate$
|
|
865
|
+
__decorate$c([
|
|
866
866
|
r$1()
|
|
867
867
|
], KRButton.prototype, "_stateText", void 0);
|
|
868
|
-
__decorate$
|
|
868
|
+
__decorate$c([
|
|
869
869
|
r$1()
|
|
870
870
|
], KRButton.prototype, "_dropdownOpened", void 0);
|
|
871
|
-
__decorate$
|
|
871
|
+
__decorate$c([
|
|
872
872
|
r$1()
|
|
873
873
|
], KRButton.prototype, "_dropdownAlignRight", void 0);
|
|
874
|
-
KRButton = __decorate$
|
|
874
|
+
KRButton = __decorate$c([
|
|
875
875
|
t$1('kr-button')
|
|
876
876
|
], KRButton);
|
|
877
877
|
|
|
@@ -881,7 +881,7 @@ KRButton = __decorate$b([
|
|
|
881
881
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
882
882
|
*/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);
|
|
883
883
|
|
|
884
|
-
var __decorate$
|
|
884
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
885
885
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
886
886
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
887
887
|
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;
|
|
@@ -1138,23 +1138,23 @@ KRCodeDemo.styles = i$5 `
|
|
|
1138
1138
|
color: #fab387;
|
|
1139
1139
|
}
|
|
1140
1140
|
`;
|
|
1141
|
-
__decorate$
|
|
1141
|
+
__decorate$b([
|
|
1142
1142
|
n$1({ type: String })
|
|
1143
1143
|
], KRCodeDemo.prototype, "language", void 0);
|
|
1144
|
-
__decorate$
|
|
1144
|
+
__decorate$b([
|
|
1145
1145
|
n$1({ type: String })
|
|
1146
1146
|
], KRCodeDemo.prototype, "code", void 0);
|
|
1147
|
-
__decorate$
|
|
1147
|
+
__decorate$b([
|
|
1148
1148
|
r$1()
|
|
1149
1149
|
], KRCodeDemo.prototype, "activeTab", void 0);
|
|
1150
|
-
__decorate$
|
|
1150
|
+
__decorate$b([
|
|
1151
1151
|
r$1()
|
|
1152
1152
|
], KRCodeDemo.prototype, "copied", void 0);
|
|
1153
|
-
KRCodeDemo = __decorate$
|
|
1153
|
+
KRCodeDemo = __decorate$b([
|
|
1154
1154
|
t$1('kr-code-demo')
|
|
1155
1155
|
], KRCodeDemo);
|
|
1156
1156
|
|
|
1157
|
-
var __decorate$
|
|
1157
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1158
1158
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1159
1159
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1160
1160
|
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;
|
|
@@ -1323,14 +1323,14 @@ KRContextMenu.styles = i$5 `
|
|
|
1323
1323
|
margin: 4px 0;
|
|
1324
1324
|
}
|
|
1325
1325
|
`;
|
|
1326
|
-
__decorate$
|
|
1326
|
+
__decorate$a([
|
|
1327
1327
|
r$1()
|
|
1328
1328
|
], KRContextMenu.prototype, "items", void 0);
|
|
1329
|
-
KRContextMenu = __decorate$
|
|
1329
|
+
KRContextMenu = __decorate$a([
|
|
1330
1330
|
t$1('kr-context-menu')
|
|
1331
1331
|
], KRContextMenu);
|
|
1332
1332
|
|
|
1333
|
-
var __decorate$
|
|
1333
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1334
1334
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1335
1335
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1336
1336
|
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;
|
|
@@ -1462,14 +1462,14 @@ KRDialog.styles = i$5 `
|
|
|
1462
1462
|
overflow: auto;
|
|
1463
1463
|
}
|
|
1464
1464
|
`;
|
|
1465
|
-
__decorate$
|
|
1465
|
+
__decorate$9([
|
|
1466
1466
|
r$1()
|
|
1467
1467
|
], KRDialog.prototype, "contentElement", void 0);
|
|
1468
|
-
KRDialog = __decorate$
|
|
1468
|
+
KRDialog = __decorate$9([
|
|
1469
1469
|
t$1('kr-dialog')
|
|
1470
1470
|
], KRDialog);
|
|
1471
1471
|
|
|
1472
|
-
var __decorate$
|
|
1472
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1473
1473
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1474
1474
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1475
1475
|
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;
|
|
@@ -1766,19 +1766,19 @@ KRSnackbar.styles = i$5 `
|
|
|
1766
1766
|
`;
|
|
1767
1767
|
/** Track active snackbars for stacking */
|
|
1768
1768
|
KRSnackbar.activeSnackbars = [];
|
|
1769
|
-
__decorate$
|
|
1769
|
+
__decorate$8([
|
|
1770
1770
|
n$1({ type: String })
|
|
1771
1771
|
], KRSnackbar.prototype, "type", void 0);
|
|
1772
|
-
__decorate$
|
|
1772
|
+
__decorate$8([
|
|
1773
1773
|
n$1({ type: String })
|
|
1774
1774
|
], KRSnackbar.prototype, "title", void 0);
|
|
1775
|
-
__decorate$
|
|
1775
|
+
__decorate$8([
|
|
1776
1776
|
n$1({ type: String })
|
|
1777
1777
|
], KRSnackbar.prototype, "message", void 0);
|
|
1778
|
-
__decorate$
|
|
1778
|
+
__decorate$8([
|
|
1779
1779
|
n$1({ type: Number })
|
|
1780
1780
|
], KRSnackbar.prototype, "duration", void 0);
|
|
1781
|
-
KRSnackbar = KRSnackbar_1 = __decorate$
|
|
1781
|
+
KRSnackbar = KRSnackbar_1 = __decorate$8([
|
|
1782
1782
|
t$1('kr-snackbar')
|
|
1783
1783
|
], KRSnackbar);
|
|
1784
1784
|
|
|
@@ -1788,7 +1788,7 @@ KRSnackbar = KRSnackbar_1 = __decorate$7([
|
|
|
1788
1788
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1789
1789
|
*/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}});
|
|
1790
1790
|
|
|
1791
|
-
var __decorate$
|
|
1791
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1792
1792
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1793
1793
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1794
1794
|
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;
|
|
@@ -2090,20 +2090,20 @@ KRTabGroup.styles = [
|
|
|
2090
2090
|
}
|
|
2091
2091
|
`,
|
|
2092
2092
|
];
|
|
2093
|
-
__decorate$
|
|
2093
|
+
__decorate$7([
|
|
2094
2094
|
n$1({ type: String, attribute: 'active-tab-id' })
|
|
2095
2095
|
], KRTabGroup.prototype, "activeTabId", void 0);
|
|
2096
|
-
__decorate$
|
|
2096
|
+
__decorate$7([
|
|
2097
2097
|
n$1({ type: Boolean })
|
|
2098
2098
|
], KRTabGroup.prototype, "justified", void 0);
|
|
2099
|
-
__decorate$
|
|
2099
|
+
__decorate$7([
|
|
2100
2100
|
n$1({ type: String, reflect: true })
|
|
2101
2101
|
], KRTabGroup.prototype, "size", void 0);
|
|
2102
|
-
KRTabGroup = __decorate$
|
|
2102
|
+
KRTabGroup = __decorate$7([
|
|
2103
2103
|
t$1('kr-tab-group')
|
|
2104
2104
|
], KRTabGroup);
|
|
2105
2105
|
|
|
2106
|
-
var __decorate$
|
|
2106
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2107
2107
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2108
2108
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2109
2109
|
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;
|
|
@@ -2174,35 +2174,35 @@ KRTab.styles = [
|
|
|
2174
2174
|
}
|
|
2175
2175
|
`,
|
|
2176
2176
|
];
|
|
2177
|
-
__decorate$
|
|
2177
|
+
__decorate$6([
|
|
2178
2178
|
n$1({ type: String, reflect: true })
|
|
2179
2179
|
], KRTab.prototype, "id", void 0);
|
|
2180
|
-
__decorate$
|
|
2180
|
+
__decorate$6([
|
|
2181
2181
|
n$1({ type: String })
|
|
2182
2182
|
], KRTab.prototype, "title", void 0);
|
|
2183
|
-
__decorate$
|
|
2183
|
+
__decorate$6([
|
|
2184
2184
|
n$1({ type: String })
|
|
2185
2185
|
], KRTab.prototype, "badge", void 0);
|
|
2186
|
-
__decorate$
|
|
2186
|
+
__decorate$6([
|
|
2187
2187
|
n$1({ type: String, attribute: 'badge-background' })
|
|
2188
2188
|
], KRTab.prototype, "badgeBackground", void 0);
|
|
2189
|
-
__decorate$
|
|
2189
|
+
__decorate$6([
|
|
2190
2190
|
n$1({ type: String, attribute: 'badge-color' })
|
|
2191
2191
|
], KRTab.prototype, "badgeColor", void 0);
|
|
2192
|
-
__decorate$
|
|
2192
|
+
__decorate$6([
|
|
2193
2193
|
n$1({ type: Boolean })
|
|
2194
2194
|
], KRTab.prototype, "disabled", void 0);
|
|
2195
|
-
__decorate$
|
|
2195
|
+
__decorate$6([
|
|
2196
2196
|
n$1({ type: Boolean })
|
|
2197
2197
|
], KRTab.prototype, "dismissible", void 0);
|
|
2198
|
-
__decorate$
|
|
2198
|
+
__decorate$6([
|
|
2199
2199
|
n$1({ type: Boolean, reflect: true })
|
|
2200
2200
|
], KRTab.prototype, "active", void 0);
|
|
2201
|
-
KRTab = __decorate$
|
|
2201
|
+
KRTab = __decorate$6([
|
|
2202
2202
|
t$1('kr-tab')
|
|
2203
2203
|
], KRTab);
|
|
2204
2204
|
|
|
2205
|
-
var __decorate$
|
|
2205
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2206
2206
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2207
2207
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2208
2208
|
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;
|
|
@@ -3404,46 +3404,46 @@ KRTable.styles = [krBaseCSS, i$5 `
|
|
|
3404
3404
|
color: #dc2626;
|
|
3405
3405
|
}
|
|
3406
3406
|
`];
|
|
3407
|
-
__decorate$
|
|
3407
|
+
__decorate$5([
|
|
3408
3408
|
r$1()
|
|
3409
3409
|
], KRTable.prototype, "_data", void 0);
|
|
3410
|
-
__decorate$
|
|
3410
|
+
__decorate$5([
|
|
3411
3411
|
r$1()
|
|
3412
3412
|
], KRTable.prototype, "_dataState", void 0);
|
|
3413
|
-
__decorate$
|
|
3413
|
+
__decorate$5([
|
|
3414
3414
|
r$1()
|
|
3415
3415
|
], KRTable.prototype, "_page", void 0);
|
|
3416
|
-
__decorate$
|
|
3416
|
+
__decorate$5([
|
|
3417
3417
|
r$1()
|
|
3418
3418
|
], KRTable.prototype, "_pageSize", void 0);
|
|
3419
|
-
__decorate$
|
|
3419
|
+
__decorate$5([
|
|
3420
3420
|
r$1()
|
|
3421
3421
|
], KRTable.prototype, "_totalItems", void 0);
|
|
3422
|
-
__decorate$
|
|
3422
|
+
__decorate$5([
|
|
3423
3423
|
r$1()
|
|
3424
3424
|
], KRTable.prototype, "_totalPages", void 0);
|
|
3425
|
-
__decorate$
|
|
3425
|
+
__decorate$5([
|
|
3426
3426
|
r$1()
|
|
3427
3427
|
], KRTable.prototype, "_searchQuery", void 0);
|
|
3428
|
-
__decorate$
|
|
3428
|
+
__decorate$5([
|
|
3429
3429
|
r$1()
|
|
3430
3430
|
], KRTable.prototype, "_canScrollLeft", void 0);
|
|
3431
|
-
__decorate$
|
|
3431
|
+
__decorate$5([
|
|
3432
3432
|
r$1()
|
|
3433
3433
|
], KRTable.prototype, "_canScrollRight", void 0);
|
|
3434
|
-
__decorate$
|
|
3434
|
+
__decorate$5([
|
|
3435
3435
|
r$1()
|
|
3436
3436
|
], KRTable.prototype, "_canScrollHorizontal", void 0);
|
|
3437
|
-
__decorate$
|
|
3437
|
+
__decorate$5([
|
|
3438
3438
|
r$1()
|
|
3439
3439
|
], KRTable.prototype, "_columnPickerOpen", void 0);
|
|
3440
|
-
__decorate$
|
|
3440
|
+
__decorate$5([
|
|
3441
3441
|
r$1()
|
|
3442
3442
|
], KRTable.prototype, "_displayedColumns", void 0);
|
|
3443
|
-
__decorate$
|
|
3443
|
+
__decorate$5([
|
|
3444
3444
|
n$1({ type: Object })
|
|
3445
3445
|
], KRTable.prototype, "def", void 0);
|
|
3446
|
-
KRTable = __decorate$
|
|
3446
|
+
KRTable = __decorate$5([
|
|
3447
3447
|
t$1('kr-table')
|
|
3448
3448
|
], KRTable);
|
|
3449
3449
|
|
|
@@ -3465,7 +3465,7 @@ KRTable = __decorate$4([
|
|
|
3465
3465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3466
3466
|
*/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}});
|
|
3467
3467
|
|
|
3468
|
-
var __decorate$
|
|
3468
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3469
3469
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3470
3470
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3471
3471
|
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;
|
|
@@ -3657,13 +3657,13 @@ KRTextField.styles = i$5 `
|
|
|
3657
3657
|
.wrapper {
|
|
3658
3658
|
display: flex;
|
|
3659
3659
|
flex-direction: column;
|
|
3660
|
-
gap:
|
|
3660
|
+
gap: 6px;
|
|
3661
3661
|
}
|
|
3662
3662
|
|
|
3663
3663
|
label {
|
|
3664
|
-
font-size:
|
|
3664
|
+
font-size: 14px;
|
|
3665
3665
|
font-weight: 500;
|
|
3666
|
-
color:
|
|
3666
|
+
color: black;
|
|
3667
3667
|
}
|
|
3668
3668
|
|
|
3669
3669
|
.required {
|
|
@@ -3674,9 +3674,9 @@ KRTextField.styles = i$5 `
|
|
|
3674
3674
|
input {
|
|
3675
3675
|
font-family: inherit;
|
|
3676
3676
|
font-size: 14px;
|
|
3677
|
-
padding:
|
|
3678
|
-
border: 1px solid var(--kr-text-field-border-color, #
|
|
3679
|
-
border-radius:
|
|
3677
|
+
padding: 10px 12px;
|
|
3678
|
+
border: 1px solid var(--kr-text-field-border-color, #0000003d);
|
|
3679
|
+
border-radius: 8px;
|
|
3680
3680
|
background-color: var(--kr-text-field-bg, #fff);
|
|
3681
3681
|
color: var(--kr-text-field-color, #111827);
|
|
3682
3682
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
@@ -3718,59 +3718,59 @@ KRTextField.styles = i$5 `
|
|
|
3718
3718
|
`;
|
|
3719
3719
|
// Enable form association
|
|
3720
3720
|
KRTextField.formAssociated = true;
|
|
3721
|
-
__decorate$
|
|
3721
|
+
__decorate$4([
|
|
3722
3722
|
n$1({ type: String })
|
|
3723
3723
|
], KRTextField.prototype, "label", void 0);
|
|
3724
|
-
__decorate$
|
|
3724
|
+
__decorate$4([
|
|
3725
3725
|
n$1({ type: String })
|
|
3726
3726
|
], KRTextField.prototype, "name", void 0);
|
|
3727
|
-
__decorate$
|
|
3727
|
+
__decorate$4([
|
|
3728
3728
|
n$1({ type: String })
|
|
3729
3729
|
], KRTextField.prototype, "value", void 0);
|
|
3730
|
-
__decorate$
|
|
3730
|
+
__decorate$4([
|
|
3731
3731
|
n$1({ type: String })
|
|
3732
3732
|
], KRTextField.prototype, "placeholder", void 0);
|
|
3733
|
-
__decorate$
|
|
3733
|
+
__decorate$4([
|
|
3734
3734
|
n$1({ type: String })
|
|
3735
3735
|
], KRTextField.prototype, "type", void 0);
|
|
3736
|
-
__decorate$
|
|
3736
|
+
__decorate$4([
|
|
3737
3737
|
n$1({ type: Boolean })
|
|
3738
3738
|
], KRTextField.prototype, "required", void 0);
|
|
3739
|
-
__decorate$
|
|
3739
|
+
__decorate$4([
|
|
3740
3740
|
n$1({ type: Boolean })
|
|
3741
3741
|
], KRTextField.prototype, "disabled", void 0);
|
|
3742
|
-
__decorate$
|
|
3742
|
+
__decorate$4([
|
|
3743
3743
|
n$1({ type: Boolean })
|
|
3744
3744
|
], KRTextField.prototype, "readonly", void 0);
|
|
3745
|
-
__decorate$
|
|
3745
|
+
__decorate$4([
|
|
3746
3746
|
n$1({ type: Number })
|
|
3747
3747
|
], KRTextField.prototype, "minlength", void 0);
|
|
3748
|
-
__decorate$
|
|
3748
|
+
__decorate$4([
|
|
3749
3749
|
n$1({ type: Number })
|
|
3750
3750
|
], KRTextField.prototype, "maxlength", void 0);
|
|
3751
|
-
__decorate$
|
|
3751
|
+
__decorate$4([
|
|
3752
3752
|
n$1({ type: String })
|
|
3753
3753
|
], KRTextField.prototype, "pattern", void 0);
|
|
3754
|
-
__decorate$
|
|
3754
|
+
__decorate$4([
|
|
3755
3755
|
n$1({ type: String })
|
|
3756
3756
|
], KRTextField.prototype, "autocomplete", void 0);
|
|
3757
|
-
__decorate$
|
|
3757
|
+
__decorate$4([
|
|
3758
3758
|
n$1({ type: String })
|
|
3759
3759
|
], KRTextField.prototype, "hint", void 0);
|
|
3760
|
-
__decorate$
|
|
3760
|
+
__decorate$4([
|
|
3761
3761
|
e$3('input')
|
|
3762
3762
|
], KRTextField.prototype, "_input", void 0);
|
|
3763
|
-
__decorate$
|
|
3763
|
+
__decorate$4([
|
|
3764
3764
|
r$1()
|
|
3765
3765
|
], KRTextField.prototype, "_touched", void 0);
|
|
3766
|
-
__decorate$
|
|
3766
|
+
__decorate$4([
|
|
3767
3767
|
r$1()
|
|
3768
3768
|
], KRTextField.prototype, "_dirty", void 0);
|
|
3769
|
-
KRTextField = __decorate$
|
|
3769
|
+
KRTextField = __decorate$4([
|
|
3770
3770
|
t$1('kr-text-field')
|
|
3771
3771
|
], KRTextField);
|
|
3772
3772
|
|
|
3773
|
-
var __decorate$
|
|
3773
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3774
3774
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3775
3775
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3776
3776
|
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;
|
|
@@ -4065,13 +4065,13 @@ KRSelectField.styles = i$5 `
|
|
|
4065
4065
|
.wrapper {
|
|
4066
4066
|
display: flex;
|
|
4067
4067
|
flex-direction: column;
|
|
4068
|
-
gap:
|
|
4068
|
+
gap: 6px;
|
|
4069
4069
|
}
|
|
4070
4070
|
|
|
4071
4071
|
label {
|
|
4072
|
-
font-size:
|
|
4072
|
+
font-size: 14px;
|
|
4073
4073
|
font-weight: 500;
|
|
4074
|
-
color:
|
|
4074
|
+
color: black;
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
4077
|
.required {
|
|
@@ -4088,14 +4088,14 @@ KRSelectField.styles = i$5 `
|
|
|
4088
4088
|
align-items: center;
|
|
4089
4089
|
justify-content: space-between;
|
|
4090
4090
|
width: 100%;
|
|
4091
|
-
padding:
|
|
4091
|
+
padding: 10px 12px;
|
|
4092
4092
|
font-family: inherit;
|
|
4093
4093
|
font-size: 14px;
|
|
4094
4094
|
line-height: 1.5;
|
|
4095
4095
|
color: var(--kr-select-color, #111827);
|
|
4096
4096
|
background-color: var(--kr-select-bg, #fff);
|
|
4097
|
-
border: 1px solid var(--kr-select-border-color, #
|
|
4098
|
-
border-radius:
|
|
4097
|
+
border: 1px solid var(--kr-select-border-color, #0000003d);
|
|
4098
|
+
border-radius: 8px;
|
|
4099
4099
|
cursor: pointer;
|
|
4100
4100
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
4101
4101
|
text-align: left;
|
|
@@ -4245,47 +4245,47 @@ KRSelectField.styles = i$5 `
|
|
|
4245
4245
|
`;
|
|
4246
4246
|
// Enable form association
|
|
4247
4247
|
KRSelectField.formAssociated = true;
|
|
4248
|
-
__decorate$
|
|
4248
|
+
__decorate$3([
|
|
4249
4249
|
n$1({ type: String })
|
|
4250
4250
|
], KRSelectField.prototype, "label", void 0);
|
|
4251
|
-
__decorate$
|
|
4251
|
+
__decorate$3([
|
|
4252
4252
|
n$1({ type: String })
|
|
4253
4253
|
], KRSelectField.prototype, "name", void 0);
|
|
4254
|
-
__decorate$
|
|
4254
|
+
__decorate$3([
|
|
4255
4255
|
n$1({ type: String })
|
|
4256
4256
|
], KRSelectField.prototype, "value", void 0);
|
|
4257
|
-
__decorate$
|
|
4257
|
+
__decorate$3([
|
|
4258
4258
|
n$1({ type: String })
|
|
4259
4259
|
], KRSelectField.prototype, "placeholder", void 0);
|
|
4260
|
-
__decorate$
|
|
4260
|
+
__decorate$3([
|
|
4261
4261
|
n$1({ type: Boolean })
|
|
4262
4262
|
], KRSelectField.prototype, "disabled", void 0);
|
|
4263
|
-
__decorate$
|
|
4263
|
+
__decorate$3([
|
|
4264
4264
|
n$1({ type: Boolean })
|
|
4265
4265
|
], KRSelectField.prototype, "required", void 0);
|
|
4266
|
-
__decorate$
|
|
4266
|
+
__decorate$3([
|
|
4267
4267
|
n$1({ type: Boolean })
|
|
4268
4268
|
], KRSelectField.prototype, "readonly", void 0);
|
|
4269
|
-
__decorate$
|
|
4269
|
+
__decorate$3([
|
|
4270
4270
|
n$1({ type: String })
|
|
4271
4271
|
], KRSelectField.prototype, "hint", void 0);
|
|
4272
|
-
__decorate$
|
|
4272
|
+
__decorate$3([
|
|
4273
4273
|
r$1()
|
|
4274
4274
|
], KRSelectField.prototype, "_isOpen", void 0);
|
|
4275
|
-
__decorate$
|
|
4275
|
+
__decorate$3([
|
|
4276
4276
|
r$1()
|
|
4277
4277
|
], KRSelectField.prototype, "_highlightedIndex", void 0);
|
|
4278
|
-
__decorate$
|
|
4278
|
+
__decorate$3([
|
|
4279
4279
|
r$1()
|
|
4280
4280
|
], KRSelectField.prototype, "_touched", void 0);
|
|
4281
|
-
__decorate$
|
|
4281
|
+
__decorate$3([
|
|
4282
4282
|
e$3('.select-trigger')
|
|
4283
4283
|
], KRSelectField.prototype, "_triggerElement", void 0);
|
|
4284
|
-
KRSelectField = __decorate$
|
|
4284
|
+
KRSelectField = __decorate$3([
|
|
4285
4285
|
t$1('kr-select-field')
|
|
4286
4286
|
], KRSelectField);
|
|
4287
4287
|
|
|
4288
|
-
var __decorate$
|
|
4288
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4289
4289
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4290
4290
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4291
4291
|
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;
|
|
@@ -4322,17 +4322,17 @@ KRSelectOption.styles = i$5 `
|
|
|
4322
4322
|
display: none;
|
|
4323
4323
|
}
|
|
4324
4324
|
`;
|
|
4325
|
-
__decorate$
|
|
4325
|
+
__decorate$2([
|
|
4326
4326
|
n$1({ type: String })
|
|
4327
4327
|
], KRSelectOption.prototype, "value", void 0);
|
|
4328
|
-
__decorate$
|
|
4328
|
+
__decorate$2([
|
|
4329
4329
|
n$1({ type: Boolean })
|
|
4330
4330
|
], KRSelectOption.prototype, "disabled", void 0);
|
|
4331
|
-
KRSelectOption = __decorate$
|
|
4331
|
+
KRSelectOption = __decorate$2([
|
|
4332
4332
|
t$1('kr-select-option')
|
|
4333
4333
|
], KRSelectOption);
|
|
4334
4334
|
|
|
4335
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4335
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4336
4336
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4337
4337
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4338
4338
|
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;
|
|
@@ -4526,13 +4526,13 @@ KRTextareaField.styles = i$5 `
|
|
|
4526
4526
|
.wrapper {
|
|
4527
4527
|
display: flex;
|
|
4528
4528
|
flex-direction: column;
|
|
4529
|
-
gap:
|
|
4529
|
+
gap: 6px;
|
|
4530
4530
|
}
|
|
4531
4531
|
|
|
4532
4532
|
label {
|
|
4533
|
-
font-size:
|
|
4533
|
+
font-size: 14px;
|
|
4534
4534
|
font-weight: 500;
|
|
4535
|
-
color:
|
|
4535
|
+
color: black;
|
|
4536
4536
|
}
|
|
4537
4537
|
|
|
4538
4538
|
.required {
|
|
@@ -4544,9 +4544,9 @@ KRTextareaField.styles = i$5 `
|
|
|
4544
4544
|
font-family: inherit;
|
|
4545
4545
|
font-size: 14px;
|
|
4546
4546
|
line-height: 1.5;
|
|
4547
|
-
padding:
|
|
4548
|
-
border: 1px solid var(--kr-textarea-field-border-color, #
|
|
4549
|
-
border-radius:
|
|
4547
|
+
padding: 10px 12px;
|
|
4548
|
+
border: 1px solid var(--kr-textarea-field-border-color, #0000003d);
|
|
4549
|
+
border-radius: 8px;
|
|
4550
4550
|
background-color: var(--kr-textarea-field-bg, #fff);
|
|
4551
4551
|
color: var(--kr-textarea-field-color, #111827);
|
|
4552
4552
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
@@ -4590,57 +4590,124 @@ KRTextareaField.styles = i$5 `
|
|
|
4590
4590
|
`;
|
|
4591
4591
|
// Enable form association
|
|
4592
4592
|
KRTextareaField.formAssociated = true;
|
|
4593
|
-
__decorate([
|
|
4593
|
+
__decorate$1([
|
|
4594
4594
|
n$1({ type: String })
|
|
4595
4595
|
], KRTextareaField.prototype, "label", void 0);
|
|
4596
|
-
__decorate([
|
|
4596
|
+
__decorate$1([
|
|
4597
4597
|
n$1({ type: String })
|
|
4598
4598
|
], KRTextareaField.prototype, "name", void 0);
|
|
4599
|
-
__decorate([
|
|
4599
|
+
__decorate$1([
|
|
4600
4600
|
n$1({ type: String })
|
|
4601
4601
|
], KRTextareaField.prototype, "value", void 0);
|
|
4602
|
-
__decorate([
|
|
4602
|
+
__decorate$1([
|
|
4603
4603
|
n$1({ type: String })
|
|
4604
4604
|
], KRTextareaField.prototype, "placeholder", void 0);
|
|
4605
|
-
__decorate([
|
|
4605
|
+
__decorate$1([
|
|
4606
4606
|
n$1({ type: Boolean })
|
|
4607
4607
|
], KRTextareaField.prototype, "required", void 0);
|
|
4608
|
-
__decorate([
|
|
4608
|
+
__decorate$1([
|
|
4609
4609
|
n$1({ type: Boolean })
|
|
4610
4610
|
], KRTextareaField.prototype, "disabled", void 0);
|
|
4611
|
-
__decorate([
|
|
4611
|
+
__decorate$1([
|
|
4612
4612
|
n$1({ type: Boolean })
|
|
4613
4613
|
], KRTextareaField.prototype, "readonly", void 0);
|
|
4614
|
-
__decorate([
|
|
4614
|
+
__decorate$1([
|
|
4615
4615
|
n$1({ type: Number })
|
|
4616
4616
|
], KRTextareaField.prototype, "rows", void 0);
|
|
4617
|
-
__decorate([
|
|
4617
|
+
__decorate$1([
|
|
4618
4618
|
n$1({ type: Number })
|
|
4619
4619
|
], KRTextareaField.prototype, "cols", void 0);
|
|
4620
|
-
__decorate([
|
|
4620
|
+
__decorate$1([
|
|
4621
4621
|
n$1({ type: Number })
|
|
4622
4622
|
], KRTextareaField.prototype, "minlength", void 0);
|
|
4623
|
-
__decorate([
|
|
4623
|
+
__decorate$1([
|
|
4624
4624
|
n$1({ type: Number })
|
|
4625
4625
|
], KRTextareaField.prototype, "maxlength", void 0);
|
|
4626
|
-
__decorate([
|
|
4626
|
+
__decorate$1([
|
|
4627
4627
|
n$1({ type: String })
|
|
4628
4628
|
], KRTextareaField.prototype, "autocomplete", void 0);
|
|
4629
|
-
__decorate([
|
|
4629
|
+
__decorate$1([
|
|
4630
4630
|
n$1({ type: String })
|
|
4631
4631
|
], KRTextareaField.prototype, "hint", void 0);
|
|
4632
|
-
__decorate([
|
|
4632
|
+
__decorate$1([
|
|
4633
4633
|
e$3('textarea')
|
|
4634
4634
|
], KRTextareaField.prototype, "_textarea", void 0);
|
|
4635
|
-
__decorate([
|
|
4635
|
+
__decorate$1([
|
|
4636
4636
|
r$1()
|
|
4637
4637
|
], KRTextareaField.prototype, "_touched", void 0);
|
|
4638
|
-
__decorate([
|
|
4638
|
+
__decorate$1([
|
|
4639
4639
|
r$1()
|
|
4640
4640
|
], KRTextareaField.prototype, "_dirty", void 0);
|
|
4641
|
-
KRTextareaField = __decorate([
|
|
4641
|
+
KRTextareaField = __decorate$1([
|
|
4642
4642
|
t$1('kr-textarea-field')
|
|
4643
4643
|
], KRTextareaField);
|
|
4644
4644
|
|
|
4645
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4646
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4647
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4648
|
+
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;
|
|
4649
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4650
|
+
};
|
|
4651
|
+
/**
|
|
4652
|
+
* A read-only field component that displays a label and value.
|
|
4653
|
+
*
|
|
4654
|
+
* @element kr-detail-field
|
|
4655
|
+
*/
|
|
4656
|
+
let KRDetailField = class KRDetailField extends i$2 {
|
|
4657
|
+
constructor() {
|
|
4658
|
+
super(...arguments);
|
|
4659
|
+
/**
|
|
4660
|
+
* The field label text
|
|
4661
|
+
*/
|
|
4662
|
+
this.label = '';
|
|
4663
|
+
/**
|
|
4664
|
+
* The value to display
|
|
4665
|
+
*/
|
|
4666
|
+
this.value = '';
|
|
4667
|
+
}
|
|
4668
|
+
render() {
|
|
4669
|
+
return b `
|
|
4670
|
+
<div class="wrapper">
|
|
4671
|
+
${this.label
|
|
4672
|
+
? b `<label>${this.label}</label>`
|
|
4673
|
+
: A}
|
|
4674
|
+
<div class="value">${this.value}</div>
|
|
4675
|
+
</div>
|
|
4676
|
+
`;
|
|
4677
|
+
}
|
|
4678
|
+
};
|
|
4679
|
+
KRDetailField.styles = i$5 `
|
|
4680
|
+
:host {
|
|
4681
|
+
display: block;
|
|
4682
|
+
font-family: inherit;
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4685
|
+
.wrapper {
|
|
4686
|
+
display: flex;
|
|
4687
|
+
flex-direction: column;
|
|
4688
|
+
gap: 6px;
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4691
|
+
label {
|
|
4692
|
+
font-size: 14px;
|
|
4693
|
+
font-weight: 500;
|
|
4694
|
+
color: black;
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4697
|
+
.value {
|
|
4698
|
+
font-size: 14px;
|
|
4699
|
+
color: black;
|
|
4700
|
+
}
|
|
4701
|
+
`;
|
|
4702
|
+
__decorate([
|
|
4703
|
+
n$1({ type: String })
|
|
4704
|
+
], KRDetailField.prototype, "label", void 0);
|
|
4705
|
+
__decorate([
|
|
4706
|
+
n$1({ type: String })
|
|
4707
|
+
], KRDetailField.prototype, "value", void 0);
|
|
4708
|
+
KRDetailField = __decorate([
|
|
4709
|
+
t$1('kr-detail-field')
|
|
4710
|
+
], KRDetailField);
|
|
4711
|
+
|
|
4645
4712
|
export { DialogRef, KRAccordion, KRAlert, KRButton, KRCodeDemo, KRContextMenu, KRDialog, KRSelectField, KRSelectOption, KRSnackbar, KRTab, KRTabGroup, KRTable, KRTextField, KRTextareaField, krBaseCSS };
|
|
4646
4713
|
//# sourceMappingURL=krubble.bundled.js.map
|