kemet-ui 5.0.0 → 5.0.2
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/README.md +1 -1
- package/custom-elements.json +3355 -3272
- package/dist/{constants-W9QKPlZP.d.ts → constants-CHvA2ed5.d.ts} +13 -0
- package/dist/elements/accordion/index.d.ts +1 -0
- package/dist/elements/accordion/index.js +5 -1
- package/dist/elements/accordion/index.js.map +1 -1
- package/dist/elements/accordion-panel/index.d.ts +1 -0
- package/dist/elements/accordion-panel/index.js +5 -1
- package/dist/elements/accordion-panel/index.js.map +1 -1
- package/dist/elements/alert/index.d.ts +2 -1
- package/dist/elements/alert/index.js +5 -1
- package/dist/elements/alert/index.js.map +1 -1
- package/dist/elements/avatar/index.d.ts +2 -1
- package/dist/elements/avatar/index.js +5 -1
- package/dist/elements/avatar/index.js.map +1 -1
- package/dist/elements/avatars/index.d.ts +1 -0
- package/dist/elements/avatars/index.js +5 -1
- package/dist/elements/avatars/index.js.map +1 -1
- package/dist/elements/badge/index.d.ts +2 -1
- package/dist/elements/badge/index.js +5 -1
- package/dist/elements/badge/index.js.map +1 -1
- package/dist/elements/button/index.d.ts +2 -1
- package/dist/elements/button/index.js +5 -1
- package/dist/elements/button/index.js.map +1 -1
- package/dist/elements/card/index.d.ts +2 -1
- package/dist/elements/card/index.js +5 -1
- package/dist/elements/card/index.js.map +1 -1
- package/dist/elements/checkbox/index.d.ts +2 -1
- package/dist/elements/checkbox/index.js +7 -1
- package/dist/elements/checkbox/index.js.map +1 -1
- package/dist/elements/combo/index.d.ts +1 -1
- package/dist/elements/combo/index.js +5 -1
- package/dist/elements/combo/index.js.map +1 -1
- package/dist/elements/count/index.d.ts +1 -1
- package/dist/elements/count/index.js +28 -1
- package/dist/elements/count/index.js.map +1 -1
- package/dist/elements/dialog/index.d.ts +2 -1
- package/dist/elements/dialog/index.js +5 -1
- package/dist/elements/dialog/index.js.map +1 -1
- package/dist/elements/dialog-close/index.d.ts +1 -0
- package/dist/elements/dialog-close/index.js +5 -1
- package/dist/elements/dialog-close/index.js.map +1 -1
- package/dist/elements/drawer/effects.js +1 -1
- package/dist/elements/drawer/effects.js.map +1 -1
- package/dist/elements/drawer/index.d.ts +1 -0
- package/dist/elements/drawer/index.js +6 -2
- package/dist/elements/drawer/index.js.map +1 -1
- package/dist/elements/fab/index.d.ts +2 -1
- package/dist/elements/fab/index.js +5 -1
- package/dist/elements/fab/index.js.map +1 -1
- package/dist/elements/field/index.d.ts +1 -1
- package/dist/elements/field/index.js +5 -1
- package/dist/elements/field/index.js.map +1 -1
- package/dist/elements/flipcard/index.d.ts +2 -1
- package/dist/elements/flipcard/index.js +5 -1
- package/dist/elements/flipcard/index.js.map +1 -1
- package/dist/elements/flipcard-trigger/index.d.ts +1 -0
- package/dist/elements/flipcard-trigger/index.js +5 -1
- package/dist/elements/flipcard-trigger/index.js.map +1 -1
- package/dist/elements/icon/index.d.ts +2 -1
- package/dist/elements/icon/index.js +8 -2
- package/dist/elements/icon/index.js.map +1 -1
- package/dist/elements/input/index.d.ts +1 -1
- package/dist/elements/input/index.js +9 -3
- package/dist/elements/input/index.js.map +1 -1
- package/dist/elements/input/styles.css.js +2 -2
- package/dist/elements/input/styles.css.js.map +1 -1
- package/dist/elements/input-combo/index.d.ts +2 -1
- package/dist/elements/input-combo/index.js +7 -1
- package/dist/elements/input-combo/index.js.map +1 -1
- package/dist/elements/input-file/index.d.ts +1 -1
- package/dist/elements/input-file/index.js +39 -249
- package/dist/elements/input-file/index.js.map +1 -1
- package/dist/elements/input-file/styles.css.js +8 -8
- package/dist/elements/input-file/styles.css.js.map +1 -1
- package/dist/elements/input-files/index.d.ts +1 -1
- package/dist/elements/input-files/index.js +29 -237
- package/dist/elements/input-files/index.js.map +1 -1
- package/dist/elements/input-files/styles.css.js +2 -2
- package/dist/elements/input-files/styles.css.js.map +1 -1
- package/dist/elements/input-otp/index.d.ts +1 -0
- package/dist/elements/input-otp/index.js +5 -1
- package/dist/elements/input-otp/index.js.map +1 -1
- package/dist/elements/loader/index.d.ts +1 -0
- package/dist/elements/loader/index.js +5 -1
- package/dist/elements/loader/index.js.map +1 -1
- package/dist/elements/password/index.d.ts +2 -2
- package/dist/elements/password/index.js +24 -234
- package/dist/elements/password/index.js.map +1 -1
- package/dist/elements/radio/index.d.ts +1 -0
- package/dist/elements/radio/index.js +7 -1
- package/dist/elements/radio/index.js.map +1 -1
- package/dist/elements/radios/index.d.ts +2 -1
- package/dist/elements/radios/index.js +5 -1
- package/dist/elements/radios/index.js.map +1 -1
- package/dist/elements/rotator/index.d.ts +1 -0
- package/dist/elements/rotator/index.js +7 -2
- package/dist/elements/rotator/index.js.map +1 -1
- package/dist/elements/select/index.d.ts +2 -1
- package/dist/elements/select/index.js +28 -25
- package/dist/elements/select/index.js.map +1 -1
- package/dist/elements/select-option/index.d.ts +1 -0
- package/dist/elements/select-option/index.js +7 -1
- package/dist/elements/select-option/index.js.map +1 -1
- package/dist/elements/sortable/index.d.ts +1 -0
- package/dist/elements/sortable/index.js +7 -1
- package/dist/elements/sortable/index.js.map +1 -1
- package/dist/elements/sortable-item/index.d.ts +1 -0
- package/dist/elements/sortable-item/index.js +5 -1
- package/dist/elements/sortable-item/index.js.map +1 -1
- package/dist/elements/tab/index.d.ts +1 -1
- package/dist/elements/tab/index.js +18 -228
- package/dist/elements/tab/index.js.map +1 -1
- package/dist/elements/tab-panel/index.d.ts +1 -0
- package/dist/elements/tab-panel/index.js +5 -1
- package/dist/elements/tab-panel/index.js.map +1 -1
- package/dist/elements/tabs/index.d.ts +3 -2
- package/dist/elements/tabs/index.js +44 -246
- package/dist/elements/tabs/index.js.map +1 -1
- package/dist/elements/textarea/index.d.ts +1 -1
- package/dist/elements/textarea/index.js +9 -3
- package/dist/elements/textarea/index.js.map +1 -1
- package/dist/elements/textarea/styles.css.js +2 -2
- package/dist/elements/textarea/styles.css.js.map +1 -1
- package/dist/elements/timer/index.d.ts +1 -0
- package/dist/elements/timer/index.js +11 -7
- package/dist/elements/timer/index.js.map +1 -1
- package/dist/elements/timer-display/index.d.ts +1 -1
- package/dist/elements/timer-display/index.js +19 -16
- package/dist/elements/timer-display/index.js.map +1 -1
- package/dist/elements/toggle/index.d.ts +1 -0
- package/dist/elements/toggle/index.js +5 -1
- package/dist/elements/toggle/index.js.map +1 -1
- package/dist/elements/tracker/index.d.ts +1 -2
- package/dist/elements/tracker/index.js +10 -19
- package/dist/elements/tracker/index.js.map +1 -1
- package/dist/elements/tracker-step/index.d.ts +1 -2
- package/dist/elements/tracker-step/index.js +46 -240
- package/dist/elements/tracker-step/index.js.map +1 -1
- package/dist/elements/typewriter/index.d.ts +1 -0
- package/dist/elements/typewriter/index.js +7 -1
- package/dist/elements/typewriter/index.js.map +1 -1
- package/dist/{index-h1DTXXCf.d.ts → index-n43o0UmE.d.ts} +13 -7
- package/dist/wrappers/react.d.ts +2 -2
- package/dist/wrappers/react.js +489 -491
- package/dist/wrappers/react.js.map +1 -1
- package/package.json +2 -3
package/dist/wrappers/react.js
CHANGED
|
@@ -15,7 +15,11 @@ import { createComponent } from "@lit/react";
|
|
|
15
15
|
|
|
16
16
|
// src/elements/accordion/index.ts
|
|
17
17
|
import { html, LitElement } from "lit";
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
// src/utilities/decorators.ts
|
|
20
|
+
import { property, state, query, queryAll } from "lit/decorators.js";
|
|
21
|
+
import { customElement as litCustomElement } from "lit/decorators.js";
|
|
22
|
+
var customElement = (tagName) => (classOrDescriptor) => typeof customElements !== "undefined" && !customElements.get(tagName) ? litCustomElement(tagName)(classOrDescriptor) : classOrDescriptor;
|
|
19
23
|
|
|
20
24
|
// src/elements/accordion/styles.css.ts
|
|
21
25
|
import { css } from "lit";
|
|
@@ -192,7 +196,6 @@ KemetAccordion = __decorateClass([
|
|
|
192
196
|
|
|
193
197
|
// src/elements/accordion-panel/index.ts
|
|
194
198
|
import { html as html2, LitElement as LitElement2 } from "lit";
|
|
195
|
-
import { customElement as customElement2, property as property2, state as state2 } from "lit/decorators.js";
|
|
196
199
|
|
|
197
200
|
// src/elements/accordion-panel/styles.css.ts
|
|
198
201
|
import { css as css2 } from "lit";
|
|
@@ -322,42 +325,41 @@ var KemetAccordionPanel = class extends LitElement2 {
|
|
|
322
325
|
};
|
|
323
326
|
KemetAccordionPanel.styles = [styles_css_default2];
|
|
324
327
|
__decorateClass([
|
|
325
|
-
|
|
328
|
+
property({ type: Boolean, reflect: true })
|
|
326
329
|
], KemetAccordionPanel.prototype, "opened", 2);
|
|
327
330
|
__decorateClass([
|
|
328
|
-
|
|
331
|
+
property({ type: String, attribute: "max-height" })
|
|
329
332
|
], KemetAccordionPanel.prototype, "maxHeight", 2);
|
|
330
333
|
__decorateClass([
|
|
331
|
-
|
|
334
|
+
property({ type: String })
|
|
332
335
|
], KemetAccordionPanel.prototype, "slug", 2);
|
|
333
336
|
__decorateClass([
|
|
334
|
-
|
|
337
|
+
property({ type: Number })
|
|
335
338
|
], KemetAccordionPanel.prototype, "index", 2);
|
|
336
339
|
__decorateClass([
|
|
337
|
-
|
|
340
|
+
property({ type: String, reflect: true })
|
|
338
341
|
], KemetAccordionPanel.prototype, "dom", 2);
|
|
339
342
|
__decorateClass([
|
|
340
|
-
|
|
343
|
+
property({ type: String, reflect: true })
|
|
341
344
|
], KemetAccordionPanel.prototype, "polarity", 2);
|
|
342
345
|
__decorateClass([
|
|
343
|
-
|
|
346
|
+
state()
|
|
344
347
|
], KemetAccordionPanel.prototype, "focusableSelector", 2);
|
|
345
348
|
__decorateClass([
|
|
346
|
-
|
|
349
|
+
state()
|
|
347
350
|
], KemetAccordionPanel.prototype, "bodyElement", 2);
|
|
348
351
|
__decorateClass([
|
|
349
|
-
|
|
352
|
+
state()
|
|
350
353
|
], KemetAccordionPanel.prototype, "bodyElementFirst", 2);
|
|
351
354
|
__decorateClass([
|
|
352
|
-
|
|
355
|
+
state()
|
|
353
356
|
], KemetAccordionPanel.prototype, "bodyElementLast", 2);
|
|
354
357
|
KemetAccordionPanel = __decorateClass([
|
|
355
|
-
|
|
358
|
+
customElement("kemet-accordion-panel")
|
|
356
359
|
], KemetAccordionPanel);
|
|
357
360
|
|
|
358
361
|
// src/elements/button/index.ts
|
|
359
362
|
import { html as html3, LitElement as LitElement3 } from "lit";
|
|
360
|
-
import { customElement as customElement3, property as property3, query } from "lit/decorators.js";
|
|
361
363
|
|
|
362
364
|
// src/elements/button/styles.css.ts
|
|
363
365
|
import { css as css3 } from "lit";
|
|
@@ -794,57 +796,56 @@ var KemetButton = class extends LitElement3 {
|
|
|
794
796
|
};
|
|
795
797
|
KemetButton.styles = [styles_css_default3];
|
|
796
798
|
__decorateClass([
|
|
797
|
-
|
|
799
|
+
property({ type: String })
|
|
798
800
|
], KemetButton.prototype, "href", 2);
|
|
799
801
|
__decorateClass([
|
|
800
|
-
|
|
802
|
+
property({ type: Boolean, reflect: true })
|
|
801
803
|
], KemetButton.prototype, "disabled", 2);
|
|
802
804
|
__decorateClass([
|
|
803
|
-
|
|
805
|
+
property({ reflect: true })
|
|
804
806
|
], KemetButton.prototype, "variant", 2);
|
|
805
807
|
__decorateClass([
|
|
806
|
-
|
|
808
|
+
property()
|
|
807
809
|
], KemetButton.prototype, "target", 2);
|
|
808
810
|
__decorateClass([
|
|
809
|
-
|
|
811
|
+
property()
|
|
810
812
|
], KemetButton.prototype, "type", 2);
|
|
811
813
|
__decorateClass([
|
|
812
|
-
|
|
814
|
+
property({ type: Boolean, reflect: true, attribute: "icon-left" })
|
|
813
815
|
], KemetButton.prototype, "iconLeft", 2);
|
|
814
816
|
__decorateClass([
|
|
815
|
-
|
|
817
|
+
property({ type: Boolean, reflect: true, attribute: "icon-right" })
|
|
816
818
|
], KemetButton.prototype, "iconRight", 2);
|
|
817
819
|
__decorateClass([
|
|
818
|
-
|
|
820
|
+
property({ type: Boolean, reflect: true, attribute: "icon-button" })
|
|
819
821
|
], KemetButton.prototype, "iconButton", 2);
|
|
820
822
|
__decorateClass([
|
|
821
|
-
|
|
823
|
+
property({ type: String, reflect: true })
|
|
822
824
|
], KemetButton.prototype, "rounded", 2);
|
|
823
825
|
__decorateClass([
|
|
824
|
-
|
|
826
|
+
property({ type: Boolean, reflect: true })
|
|
825
827
|
], KemetButton.prototype, "loading", 2);
|
|
826
828
|
__decorateClass([
|
|
827
|
-
|
|
829
|
+
property({ type: String, reflect: true })
|
|
828
830
|
], KemetButton.prototype, "appearance", 2);
|
|
829
831
|
__decorateClass([
|
|
830
|
-
|
|
832
|
+
property({ type: String, reflect: true })
|
|
831
833
|
], KemetButton.prototype, "size", 2);
|
|
832
834
|
__decorateClass([
|
|
833
|
-
|
|
835
|
+
property({ type: String, reflect: true })
|
|
834
836
|
], KemetButton.prototype, "polarity", 2);
|
|
835
837
|
__decorateClass([
|
|
836
|
-
|
|
838
|
+
property({ type: String, reflect: true })
|
|
837
839
|
], KemetButton.prototype, "dom", 2);
|
|
838
840
|
__decorateClass([
|
|
839
841
|
query("button")
|
|
840
842
|
], KemetButton.prototype, "internalButton", 2);
|
|
841
843
|
KemetButton = __decorateClass([
|
|
842
|
-
|
|
844
|
+
customElement("kemet-button")
|
|
843
845
|
], KemetButton);
|
|
844
846
|
|
|
845
847
|
// src/elements/alert/index.ts
|
|
846
848
|
import { html as html4, LitElement as LitElement4 } from "lit";
|
|
847
|
-
import { customElement as customElement4, property as property4 } from "lit/decorators.js";
|
|
848
849
|
|
|
849
850
|
// src/utilities/constants.ts
|
|
850
851
|
var EnumDirections = /* @__PURE__ */ ((EnumDirections2) => {
|
|
@@ -1121,45 +1122,44 @@ var KemetAlert = class extends LitElement4 {
|
|
|
1121
1122
|
};
|
|
1122
1123
|
KemetAlert.styles = [styles_css_default4];
|
|
1123
1124
|
__decorateClass([
|
|
1124
|
-
|
|
1125
|
+
property({ type: Boolean, reflect: true })
|
|
1125
1126
|
], KemetAlert.prototype, "opened", 2);
|
|
1126
1127
|
__decorateClass([
|
|
1127
|
-
|
|
1128
|
+
property({ type: Boolean, reflect: true })
|
|
1128
1129
|
], KemetAlert.prototype, "reveal", 2);
|
|
1129
1130
|
__decorateClass([
|
|
1130
|
-
|
|
1131
|
+
property({ type: Boolean, reflect: true })
|
|
1131
1132
|
], KemetAlert.prototype, "closable", 2);
|
|
1132
1133
|
__decorateClass([
|
|
1133
|
-
|
|
1134
|
+
property({ type: String, reflect: true })
|
|
1134
1135
|
], KemetAlert.prototype, "appearance", 2);
|
|
1135
1136
|
__decorateClass([
|
|
1136
|
-
|
|
1137
|
+
property({ type: String, reflect: true, attribute: "border-appearance" })
|
|
1137
1138
|
], KemetAlert.prototype, "borderAppearance", 2);
|
|
1138
1139
|
__decorateClass([
|
|
1139
|
-
|
|
1140
|
+
property({ type: Boolean, reflect: true })
|
|
1140
1141
|
], KemetAlert.prototype, "hidden", 2);
|
|
1141
1142
|
__decorateClass([
|
|
1142
|
-
|
|
1143
|
+
property({ type: String, reflect: true })
|
|
1143
1144
|
], KemetAlert.prototype, "overlay", 2);
|
|
1144
1145
|
__decorateClass([
|
|
1145
|
-
|
|
1146
|
+
property({ type: String, reflect: true })
|
|
1146
1147
|
], KemetAlert.prototype, "rounded", 2);
|
|
1147
1148
|
__decorateClass([
|
|
1148
|
-
|
|
1149
|
+
property({ type: Boolean, reflect: true })
|
|
1149
1150
|
], KemetAlert.prototype, "filled", 2);
|
|
1150
1151
|
__decorateClass([
|
|
1151
|
-
|
|
1152
|
+
property({ type: String, reflect: true })
|
|
1152
1153
|
], KemetAlert.prototype, "polarity", 2);
|
|
1153
1154
|
__decorateClass([
|
|
1154
|
-
|
|
1155
|
+
property({ type: String, reflect: true })
|
|
1155
1156
|
], KemetAlert.prototype, "dom", 2);
|
|
1156
1157
|
KemetAlert = __decorateClass([
|
|
1157
|
-
|
|
1158
|
+
customElement("kemet-alert")
|
|
1158
1159
|
], KemetAlert);
|
|
1159
1160
|
|
|
1160
1161
|
// src/elements/avatar/index.ts
|
|
1161
1162
|
import { html as html5, LitElement as LitElement5 } from "lit";
|
|
1162
|
-
import { customElement as customElement5, property as property5 } from "lit/decorators.js";
|
|
1163
1163
|
|
|
1164
1164
|
// src/elements/avatar/styles.css.ts
|
|
1165
1165
|
import { css as css5 } from "lit";
|
|
@@ -1269,33 +1269,32 @@ var KemetAvatar = class extends LitElement5 {
|
|
|
1269
1269
|
};
|
|
1270
1270
|
KemetAvatar.styles = [styles_css_default5];
|
|
1271
1271
|
__decorateClass([
|
|
1272
|
-
|
|
1272
|
+
property({ type: String })
|
|
1273
1273
|
], KemetAvatar.prototype, "size", 2);
|
|
1274
1274
|
__decorateClass([
|
|
1275
|
-
|
|
1275
|
+
property({ type: String })
|
|
1276
1276
|
], KemetAvatar.prototype, "image", 2);
|
|
1277
1277
|
__decorateClass([
|
|
1278
|
-
|
|
1278
|
+
property({ type: String })
|
|
1279
1279
|
], KemetAvatar.prototype, "label", 2);
|
|
1280
1280
|
__decorateClass([
|
|
1281
|
-
|
|
1281
|
+
property({ type: String })
|
|
1282
1282
|
], KemetAvatar.prototype, "initials", 2);
|
|
1283
1283
|
__decorateClass([
|
|
1284
|
-
|
|
1284
|
+
property({ type: String, reflect: true })
|
|
1285
1285
|
], KemetAvatar.prototype, "rounded", 2);
|
|
1286
1286
|
__decorateClass([
|
|
1287
|
-
|
|
1287
|
+
property({ type: String, reflect: true })
|
|
1288
1288
|
], KemetAvatar.prototype, "polarity", 2);
|
|
1289
1289
|
__decorateClass([
|
|
1290
|
-
|
|
1290
|
+
property({ type: String, reflect: true })
|
|
1291
1291
|
], KemetAvatar.prototype, "dom", 2);
|
|
1292
1292
|
KemetAvatar = __decorateClass([
|
|
1293
|
-
|
|
1293
|
+
customElement("kemet-avatar")
|
|
1294
1294
|
], KemetAvatar);
|
|
1295
1295
|
|
|
1296
1296
|
// src/elements/avatars/index.ts
|
|
1297
1297
|
import { html as html6, LitElement as LitElement6 } from "lit";
|
|
1298
|
-
import { customElement as customElement6, property as property6 } from "lit/decorators.js";
|
|
1299
1298
|
|
|
1300
1299
|
// src/elements/avatars/styles.css.ts
|
|
1301
1300
|
import { css as css6 } from "lit";
|
|
@@ -1338,18 +1337,17 @@ var KemetAvatars = class extends LitElement6 {
|
|
|
1338
1337
|
};
|
|
1339
1338
|
KemetAvatars.styles = [styles_css_default6];
|
|
1340
1339
|
__decorateClass([
|
|
1341
|
-
|
|
1340
|
+
property({ type: String, reflect: true })
|
|
1342
1341
|
], KemetAvatars.prototype, "polarity", 2);
|
|
1343
1342
|
__decorateClass([
|
|
1344
|
-
|
|
1343
|
+
property({ type: String, reflect: true })
|
|
1345
1344
|
], KemetAvatars.prototype, "dom", 2);
|
|
1346
1345
|
KemetAvatars = __decorateClass([
|
|
1347
|
-
|
|
1346
|
+
customElement("kemet-avatars")
|
|
1348
1347
|
], KemetAvatars);
|
|
1349
1348
|
|
|
1350
1349
|
// src/elements/badge/index.ts
|
|
1351
1350
|
import { html as html7, LitElement as LitElement7 } from "lit";
|
|
1352
|
-
import { customElement as customElement7, property as property7, state as state3 } from "lit/decorators.js";
|
|
1353
1351
|
|
|
1354
1352
|
// src/elements/badge/styles.css.ts
|
|
1355
1353
|
import { css as css7 } from "lit";
|
|
@@ -1492,36 +1490,35 @@ var KemetBadge = class extends LitElement7 {
|
|
|
1492
1490
|
};
|
|
1493
1491
|
KemetBadge.styles = [styles_css_default7];
|
|
1494
1492
|
__decorateClass([
|
|
1495
|
-
|
|
1493
|
+
property({ reflect: true })
|
|
1496
1494
|
], KemetBadge.prototype, "appearance", 2);
|
|
1497
1495
|
__decorateClass([
|
|
1498
|
-
|
|
1496
|
+
property({ type: Number, attribute: "circle-padding" })
|
|
1499
1497
|
], KemetBadge.prototype, "circlePadding", 2);
|
|
1500
1498
|
__decorateClass([
|
|
1501
|
-
|
|
1499
|
+
property({ type: String, reflect: true })
|
|
1502
1500
|
], KemetBadge.prototype, "rounded", 2);
|
|
1503
1501
|
__decorateClass([
|
|
1504
|
-
|
|
1502
|
+
property({ type: Boolean, reflect: true })
|
|
1505
1503
|
], KemetBadge.prototype, "outlined", 2);
|
|
1506
1504
|
__decorateClass([
|
|
1507
|
-
|
|
1505
|
+
property({ type: String, reflect: true })
|
|
1508
1506
|
], KemetBadge.prototype, "polarity", 2);
|
|
1509
1507
|
__decorateClass([
|
|
1510
|
-
|
|
1508
|
+
property({ type: String, reflect: true })
|
|
1511
1509
|
], KemetBadge.prototype, "dom", 2);
|
|
1512
1510
|
__decorateClass([
|
|
1513
|
-
|
|
1511
|
+
state()
|
|
1514
1512
|
], KemetBadge.prototype, "iconLeft", 2);
|
|
1515
1513
|
__decorateClass([
|
|
1516
|
-
|
|
1514
|
+
state()
|
|
1517
1515
|
], KemetBadge.prototype, "iconRight", 2);
|
|
1518
1516
|
KemetBadge = __decorateClass([
|
|
1519
|
-
|
|
1517
|
+
customElement("kemet-badge")
|
|
1520
1518
|
], KemetBadge);
|
|
1521
1519
|
|
|
1522
1520
|
// src/elements/card/index.ts
|
|
1523
1521
|
import { html as html8, LitElement as LitElement8 } from "lit";
|
|
1524
|
-
import { customElement as customElement8, property as property8 } from "lit/decorators.js";
|
|
1525
1522
|
|
|
1526
1523
|
// src/elements/card/styles.css.ts
|
|
1527
1524
|
import { css as css8 } from "lit";
|
|
@@ -1701,33 +1698,32 @@ var KemetCard = class extends LitElement8 {
|
|
|
1701
1698
|
};
|
|
1702
1699
|
KemetCard.styles = [styles_css_default8];
|
|
1703
1700
|
__decorateClass([
|
|
1704
|
-
|
|
1701
|
+
property({ type: Boolean, reflect: true })
|
|
1705
1702
|
], KemetCard.prototype, "center", 2);
|
|
1706
1703
|
__decorateClass([
|
|
1707
|
-
|
|
1704
|
+
property({ type: String, reflect: true })
|
|
1708
1705
|
], KemetCard.prototype, "rounded", 2);
|
|
1709
1706
|
__decorateClass([
|
|
1710
|
-
|
|
1707
|
+
property({ type: Boolean, reflect: true })
|
|
1711
1708
|
], KemetCard.prototype, "filled", 2);
|
|
1712
1709
|
__decorateClass([
|
|
1713
|
-
|
|
1710
|
+
property({ type: Boolean, reflect: true })
|
|
1714
1711
|
], KemetCard.prototype, "borderless", 2);
|
|
1715
1712
|
__decorateClass([
|
|
1716
|
-
|
|
1713
|
+
property({ type: String, reflect: true })
|
|
1717
1714
|
], KemetCard.prototype, "elevation", 2);
|
|
1718
1715
|
__decorateClass([
|
|
1719
|
-
|
|
1716
|
+
property({ type: String, reflect: true })
|
|
1720
1717
|
], KemetCard.prototype, "polarity", 2);
|
|
1721
1718
|
__decorateClass([
|
|
1722
|
-
|
|
1719
|
+
property({ type: String, reflect: true })
|
|
1723
1720
|
], KemetCard.prototype, "dom", 2);
|
|
1724
1721
|
KemetCard = __decorateClass([
|
|
1725
|
-
|
|
1722
|
+
customElement("kemet-card")
|
|
1726
1723
|
], KemetCard);
|
|
1727
1724
|
|
|
1728
1725
|
// src/elements/checkbox/index.ts
|
|
1729
1726
|
import { html as html9, LitElement as LitElement9 } from "lit";
|
|
1730
|
-
import { customElement as customElement9, property as property9, query as query2 } from "lit/decorators.js";
|
|
1731
1727
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1732
1728
|
import { live } from "lit/directives/live.js";
|
|
1733
1729
|
|
|
@@ -2057,58 +2053,61 @@ var KemetCheckbox = class extends LitElement9 {
|
|
|
2057
2053
|
};
|
|
2058
2054
|
KemetCheckbox.styles = [styles_css_default9];
|
|
2059
2055
|
__decorateClass([
|
|
2060
|
-
|
|
2056
|
+
property({ type: String })
|
|
2061
2057
|
], KemetCheckbox.prototype, "label", 2);
|
|
2062
2058
|
__decorateClass([
|
|
2063
|
-
|
|
2059
|
+
property({ type: Boolean, reflect: true })
|
|
2064
2060
|
], KemetCheckbox.prototype, "checked", 2);
|
|
2065
2061
|
__decorateClass([
|
|
2066
|
-
|
|
2062
|
+
property({ type: Boolean, reflect: true })
|
|
2067
2063
|
], KemetCheckbox.prototype, "indeterminate", 2);
|
|
2068
2064
|
__decorateClass([
|
|
2069
|
-
|
|
2065
|
+
property({ type: String })
|
|
2070
2066
|
], KemetCheckbox.prototype, "name", 2);
|
|
2071
2067
|
__decorateClass([
|
|
2072
|
-
|
|
2068
|
+
property({ type: Boolean })
|
|
2073
2069
|
], KemetCheckbox.prototype, "value", 2);
|
|
2074
2070
|
__decorateClass([
|
|
2075
|
-
|
|
2071
|
+
property({ type: Boolean, reflect: true })
|
|
2076
2072
|
], KemetCheckbox.prototype, "disabled", 2);
|
|
2077
2073
|
__decorateClass([
|
|
2078
|
-
|
|
2074
|
+
property({ type: Boolean, reflect: true })
|
|
2079
2075
|
], KemetCheckbox.prototype, "required", 2);
|
|
2080
2076
|
__decorateClass([
|
|
2081
|
-
|
|
2077
|
+
property({ type: Boolean, reflect: true })
|
|
2082
2078
|
], KemetCheckbox.prototype, "focused", 2);
|
|
2083
2079
|
__decorateClass([
|
|
2084
|
-
|
|
2080
|
+
property({ type: Boolean, reflect: true })
|
|
2085
2081
|
], KemetCheckbox.prototype, "rounded", 2);
|
|
2086
2082
|
__decorateClass([
|
|
2087
|
-
|
|
2083
|
+
property({ type: Boolean, reflect: true })
|
|
2088
2084
|
], KemetCheckbox.prototype, "filled", 2);
|
|
2089
2085
|
__decorateClass([
|
|
2090
|
-
|
|
2086
|
+
property({ type: String, reflect: true })
|
|
2091
2087
|
], KemetCheckbox.prototype, "appearance", 2);
|
|
2092
2088
|
__decorateClass([
|
|
2093
|
-
|
|
2089
|
+
property({ type: String })
|
|
2094
2090
|
], KemetCheckbox.prototype, "message", 2);
|
|
2095
2091
|
__decorateClass([
|
|
2096
|
-
|
|
2092
|
+
property({ type: String, reflect: true })
|
|
2097
2093
|
], KemetCheckbox.prototype, "polarity", 2);
|
|
2098
2094
|
__decorateClass([
|
|
2099
|
-
|
|
2095
|
+
property({ type: String, reflect: true })
|
|
2100
2096
|
], KemetCheckbox.prototype, "dom", 2);
|
|
2101
2097
|
__decorateClass([
|
|
2102
|
-
|
|
2098
|
+
query("input")
|
|
2103
2099
|
], KemetCheckbox.prototype, "input", 2);
|
|
2104
2100
|
KemetCheckbox = __decorateClass([
|
|
2105
|
-
|
|
2101
|
+
customElement("kemet-checkbox")
|
|
2106
2102
|
], KemetCheckbox);
|
|
2107
2103
|
|
|
2108
2104
|
// src/elements/count/index.ts
|
|
2109
2105
|
import { html as html10, css as css10, LitElement as LitElement10 } from "lit";
|
|
2110
|
-
import { customElement as customElement10, property as property10, state as state4 } from "lit/decorators.js";
|
|
2111
2106
|
var KemetCount = class extends LitElement10 {
|
|
2107
|
+
constructor() {
|
|
2108
|
+
super(...arguments);
|
|
2109
|
+
this.dom = "initializing";
|
|
2110
|
+
}
|
|
2112
2111
|
firstUpdated() {
|
|
2113
2112
|
this.field = this.closest("kemet-field");
|
|
2114
2113
|
this.inputSlot = this.field.querySelector('[slot="input"]');
|
|
@@ -2117,12 +2116,25 @@ var KemetCount = class extends LitElement10 {
|
|
|
2117
2116
|
this.field.addEventListener("kemet-textarea-input", (event) => this.handleInput(event));
|
|
2118
2117
|
this.input = this.inputSlot?.shadowRoot?.querySelector("input") || null;
|
|
2119
2118
|
this.textarea = this.inputSlot?.shadowRoot?.querySelector("textarea") || null;
|
|
2119
|
+
emitEvent(this, "kemet-count-mounted", {
|
|
2120
|
+
bubbles: true,
|
|
2121
|
+
composed: true,
|
|
2122
|
+
detail: {
|
|
2123
|
+
element: this
|
|
2124
|
+
}
|
|
2125
|
+
});
|
|
2126
|
+
this.dom = "mounted";
|
|
2120
2127
|
}
|
|
2121
2128
|
render() {
|
|
2129
|
+
if (isNaN(this.remaining)) {
|
|
2130
|
+
this.remaining = this.limit;
|
|
2131
|
+
}
|
|
2122
2132
|
return html10`${this.remaining} ${this.message}`;
|
|
2123
2133
|
}
|
|
2124
2134
|
handleInput(event) {
|
|
2135
|
+
console.log("event detail", event.detail);
|
|
2125
2136
|
this.remaining = this.limit - event.detail.value.length;
|
|
2137
|
+
console.log("remaining", this.remaining);
|
|
2126
2138
|
const nativeElement = this.input || this.textarea;
|
|
2127
2139
|
if (nativeElement) {
|
|
2128
2140
|
if (this.remaining < 0) {
|
|
@@ -2157,36 +2169,41 @@ KemetCount.styles = [
|
|
|
2157
2169
|
`
|
|
2158
2170
|
];
|
|
2159
2171
|
__decorateClass([
|
|
2160
|
-
|
|
2172
|
+
property({ type: String })
|
|
2161
2173
|
], KemetCount.prototype, "message", 2);
|
|
2162
2174
|
__decorateClass([
|
|
2163
|
-
|
|
2175
|
+
property({ type: Number })
|
|
2164
2176
|
], KemetCount.prototype, "limit", 2);
|
|
2165
2177
|
__decorateClass([
|
|
2166
|
-
|
|
2178
|
+
property({ type: Boolean, attribute: "validate-immediately" })
|
|
2167
2179
|
], KemetCount.prototype, "validateImmediately", 2);
|
|
2168
2180
|
__decorateClass([
|
|
2169
|
-
|
|
2181
|
+
property({ type: String, reflect: true })
|
|
2182
|
+
], KemetCount.prototype, "polarity", 2);
|
|
2183
|
+
__decorateClass([
|
|
2184
|
+
property({ type: String, reflect: true })
|
|
2185
|
+
], KemetCount.prototype, "dom", 2);
|
|
2186
|
+
__decorateClass([
|
|
2187
|
+
state()
|
|
2170
2188
|
], KemetCount.prototype, "remaining", 2);
|
|
2171
2189
|
__decorateClass([
|
|
2172
|
-
|
|
2190
|
+
state()
|
|
2173
2191
|
], KemetCount.prototype, "field", 2);
|
|
2174
2192
|
__decorateClass([
|
|
2175
|
-
|
|
2193
|
+
state()
|
|
2176
2194
|
], KemetCount.prototype, "inputSlot", 2);
|
|
2177
2195
|
__decorateClass([
|
|
2178
|
-
|
|
2196
|
+
state()
|
|
2179
2197
|
], KemetCount.prototype, "input", 2);
|
|
2180
2198
|
__decorateClass([
|
|
2181
|
-
|
|
2199
|
+
state()
|
|
2182
2200
|
], KemetCount.prototype, "textarea", 2);
|
|
2183
2201
|
KemetCount = __decorateClass([
|
|
2184
|
-
|
|
2202
|
+
customElement("kemet-count")
|
|
2185
2203
|
], KemetCount);
|
|
2186
2204
|
|
|
2187
2205
|
// src/elements/combo/index.ts
|
|
2188
2206
|
import { html as html11, LitElement as LitElement11 } from "lit";
|
|
2189
|
-
import { customElement as customElement11, property as property11, state as state5 } from "lit/decorators.js";
|
|
2190
2207
|
|
|
2191
2208
|
// src/elements/combo/styles.css.ts
|
|
2192
2209
|
import { css as css11 } from "lit";
|
|
@@ -2362,34 +2379,33 @@ var KemetCombo = class extends LitElement11 {
|
|
|
2362
2379
|
};
|
|
2363
2380
|
KemetCombo.styles = [styles_css_default10];
|
|
2364
2381
|
__decorateClass([
|
|
2365
|
-
|
|
2382
|
+
property({ type: String })
|
|
2366
2383
|
], KemetCombo.prototype, "slug", 2);
|
|
2367
2384
|
__decorateClass([
|
|
2368
|
-
|
|
2385
|
+
property({ type: Array })
|
|
2369
2386
|
], KemetCombo.prototype, "options", 2);
|
|
2370
2387
|
__decorateClass([
|
|
2371
|
-
|
|
2388
|
+
property({ type: Boolean, reflect: true })
|
|
2372
2389
|
], KemetCombo.prototype, "show", 2);
|
|
2373
2390
|
__decorateClass([
|
|
2374
|
-
|
|
2391
|
+
state()
|
|
2375
2392
|
], KemetCombo.prototype, "filteredOptions", 2);
|
|
2376
2393
|
__decorateClass([
|
|
2377
|
-
|
|
2394
|
+
state()
|
|
2378
2395
|
], KemetCombo.prototype, "field", 2);
|
|
2379
2396
|
__decorateClass([
|
|
2380
|
-
|
|
2397
|
+
state()
|
|
2381
2398
|
], KemetCombo.prototype, "input", 2);
|
|
2382
2399
|
KemetCombo = __decorateClass([
|
|
2383
|
-
|
|
2400
|
+
customElement("kemet-combo")
|
|
2384
2401
|
], KemetCombo);
|
|
2385
2402
|
|
|
2386
2403
|
// src/elements/drawer/index.ts
|
|
2387
2404
|
import { LitElement as LitElement12, html as html12 } from "lit";
|
|
2388
|
-
import { customElement as customElement12, property as property12 } from "lit/decorators.js";
|
|
2389
2405
|
|
|
2390
2406
|
// src/elements/drawer/effects.ts
|
|
2391
2407
|
import { css as css12, unsafeCSS as unsafeCSS11 } from "lit";
|
|
2392
|
-
var documentHeight = `${document.documentElement.scrollHeight}px
|
|
2408
|
+
var documentHeight = typeof document !== "undefined" ? `${document.documentElement.scrollHeight}px` : "100vh";
|
|
2393
2409
|
var effects_default = css12`
|
|
2394
2410
|
/* slide */
|
|
2395
2411
|
:host([effect='slide']) [part=drawer] {
|
|
@@ -2763,33 +2779,32 @@ var KemetDrawer = class extends LitElement12 {
|
|
|
2763
2779
|
};
|
|
2764
2780
|
KemetDrawer.styles = [styles_css_default11, effects_default];
|
|
2765
2781
|
__decorateClass([
|
|
2766
|
-
|
|
2782
|
+
property({ type: Boolean, reflect: true })
|
|
2767
2783
|
], KemetDrawer.prototype, "opened", 2);
|
|
2768
2784
|
__decorateClass([
|
|
2769
|
-
|
|
2785
|
+
property({ type: String, reflect: true })
|
|
2770
2786
|
], KemetDrawer.prototype, "effect", 2);
|
|
2771
2787
|
__decorateClass([
|
|
2772
|
-
|
|
2788
|
+
property({ type: String, reflect: true })
|
|
2773
2789
|
], KemetDrawer.prototype, "side", 2);
|
|
2774
2790
|
__decorateClass([
|
|
2775
|
-
|
|
2791
|
+
property({ type: Boolean, reflect: true })
|
|
2776
2792
|
], KemetDrawer.prototype, "overlay", 2);
|
|
2777
2793
|
__decorateClass([
|
|
2778
|
-
|
|
2794
|
+
property({ type: Boolean, reflect: true, attribute: "fill-viewport" })
|
|
2779
2795
|
], KemetDrawer.prototype, "fillViewport", 2);
|
|
2780
2796
|
__decorateClass([
|
|
2781
|
-
|
|
2797
|
+
property({ type: String, reflect: true })
|
|
2782
2798
|
], KemetDrawer.prototype, "polarity", 2);
|
|
2783
2799
|
__decorateClass([
|
|
2784
|
-
|
|
2800
|
+
property({ type: String, reflect: true })
|
|
2785
2801
|
], KemetDrawer.prototype, "dom", 2);
|
|
2786
2802
|
KemetDrawer = __decorateClass([
|
|
2787
|
-
|
|
2803
|
+
customElement("kemet-drawer")
|
|
2788
2804
|
], KemetDrawer);
|
|
2789
2805
|
|
|
2790
2806
|
// src/elements/fab/index.ts
|
|
2791
2807
|
import { html as html13, LitElement as LitElement13 } from "lit";
|
|
2792
|
-
import { customElement as customElement13, property as property13 } from "lit/decorators.js";
|
|
2793
2808
|
|
|
2794
2809
|
// src/elements/fab/styles.css.ts
|
|
2795
2810
|
import { css as css15 } from "lit";
|
|
@@ -2986,39 +3001,38 @@ var KemetFAB = class extends LitElement13 {
|
|
|
2986
3001
|
};
|
|
2987
3002
|
KemetFAB.styles = [styles_css_default12];
|
|
2988
3003
|
__decorateClass([
|
|
2989
|
-
|
|
3004
|
+
property({ type: Boolean, reflect: true })
|
|
2990
3005
|
], KemetFAB.prototype, "expanded", 2);
|
|
2991
3006
|
__decorateClass([
|
|
2992
|
-
|
|
3007
|
+
property({ type: Boolean, reflect: true })
|
|
2993
3008
|
], KemetFAB.prototype, "outlined", 2);
|
|
2994
3009
|
__decorateClass([
|
|
2995
|
-
|
|
3010
|
+
property({ type: Boolean, reflect: true })
|
|
2996
3011
|
], KemetFAB.prototype, "disabled", 2);
|
|
2997
3012
|
__decorateClass([
|
|
2998
|
-
|
|
3013
|
+
property({ type: String, reflect: true })
|
|
2999
3014
|
], KemetFAB.prototype, "rounded", 2);
|
|
3000
3015
|
__decorateClass([
|
|
3001
|
-
|
|
3016
|
+
property({ type: String, reflect: true })
|
|
3002
3017
|
], KemetFAB.prototype, "appearance", 2);
|
|
3003
3018
|
__decorateClass([
|
|
3004
|
-
|
|
3019
|
+
property({ type: Number, attribute: "expand-point" })
|
|
3005
3020
|
], KemetFAB.prototype, "expandPoint", 2);
|
|
3006
3021
|
__decorateClass([
|
|
3007
|
-
|
|
3022
|
+
property({ type: Number, attribute: "collapse-point" })
|
|
3008
3023
|
], KemetFAB.prototype, "collapsePoint", 2);
|
|
3009
3024
|
__decorateClass([
|
|
3010
|
-
|
|
3025
|
+
property({ type: String, reflect: true })
|
|
3011
3026
|
], KemetFAB.prototype, "polarity", 2);
|
|
3012
3027
|
__decorateClass([
|
|
3013
|
-
|
|
3028
|
+
property({ type: String, reflect: true })
|
|
3014
3029
|
], KemetFAB.prototype, "dom", 2);
|
|
3015
3030
|
KemetFAB = __decorateClass([
|
|
3016
|
-
|
|
3031
|
+
customElement("kemet-fab")
|
|
3017
3032
|
], KemetFAB);
|
|
3018
3033
|
|
|
3019
3034
|
// src/elements/field/index.ts
|
|
3020
3035
|
import { html as html14, LitElement as LitElement14 } from "lit";
|
|
3021
|
-
import { customElement as customElement14, property as property14, state as state6 } from "lit/decorators.js";
|
|
3022
3036
|
|
|
3023
3037
|
// src/elements/field/styles.css.ts
|
|
3024
3038
|
import { css as css16 } from "lit";
|
|
@@ -3133,54 +3147,53 @@ var HTMLKemetFieldElement = class extends LitElement14 {
|
|
|
3133
3147
|
};
|
|
3134
3148
|
HTMLKemetFieldElement.styles = [styles_css_default13];
|
|
3135
3149
|
__decorateClass([
|
|
3136
|
-
|
|
3150
|
+
property({ type: String })
|
|
3137
3151
|
], HTMLKemetFieldElement.prototype, "slug", 2);
|
|
3138
3152
|
__decorateClass([
|
|
3139
|
-
|
|
3153
|
+
property({ type: String })
|
|
3140
3154
|
], HTMLKemetFieldElement.prototype, "label", 2);
|
|
3141
3155
|
__decorateClass([
|
|
3142
|
-
|
|
3156
|
+
property({ type: String })
|
|
3143
3157
|
], HTMLKemetFieldElement.prototype, "message", 2);
|
|
3144
3158
|
__decorateClass([
|
|
3145
|
-
|
|
3159
|
+
property({ type: Boolean, reflect: true })
|
|
3146
3160
|
], HTMLKemetFieldElement.prototype, "focused", 2);
|
|
3147
3161
|
__decorateClass([
|
|
3148
|
-
|
|
3162
|
+
property({ type: String, reflect: true })
|
|
3149
3163
|
], HTMLKemetFieldElement.prototype, "appearance", 2);
|
|
3150
3164
|
__decorateClass([
|
|
3151
|
-
|
|
3165
|
+
property({ type: Boolean, reflect: true })
|
|
3152
3166
|
], HTMLKemetFieldElement.prototype, "filled", 2);
|
|
3153
3167
|
__decorateClass([
|
|
3154
|
-
|
|
3168
|
+
property({ type: Number })
|
|
3155
3169
|
], HTMLKemetFieldElement.prototype, "length", 2);
|
|
3156
3170
|
__decorateClass([
|
|
3157
|
-
|
|
3171
|
+
property({ type: Boolean, reflect: true })
|
|
3158
3172
|
], HTMLKemetFieldElement.prototype, "disabled", 2);
|
|
3159
3173
|
__decorateClass([
|
|
3160
|
-
|
|
3174
|
+
property({ type: String, attribute: "error-icon" })
|
|
3161
3175
|
], HTMLKemetFieldElement.prototype, "errorIcon", 2);
|
|
3162
3176
|
__decorateClass([
|
|
3163
|
-
|
|
3177
|
+
property({ type: String, attribute: "success-icon" })
|
|
3164
3178
|
], HTMLKemetFieldElement.prototype, "successIcon", 2);
|
|
3165
3179
|
__decorateClass([
|
|
3166
|
-
|
|
3180
|
+
property({ type: String, reflect: true })
|
|
3167
3181
|
], HTMLKemetFieldElement.prototype, "polarity", 2);
|
|
3168
3182
|
__decorateClass([
|
|
3169
|
-
|
|
3183
|
+
property({ type: String, reflect: true })
|
|
3170
3184
|
], HTMLKemetFieldElement.prototype, "dom", 2);
|
|
3171
3185
|
__decorateClass([
|
|
3172
|
-
|
|
3186
|
+
state()
|
|
3173
3187
|
], HTMLKemetFieldElement.prototype, "slotInput", 2);
|
|
3174
3188
|
__decorateClass([
|
|
3175
|
-
|
|
3189
|
+
state()
|
|
3176
3190
|
], HTMLKemetFieldElement.prototype, "slotCombo", 2);
|
|
3177
3191
|
HTMLKemetFieldElement = __decorateClass([
|
|
3178
|
-
|
|
3192
|
+
customElement("kemet-field")
|
|
3179
3193
|
], HTMLKemetFieldElement);
|
|
3180
3194
|
|
|
3181
3195
|
// src/elements/flipcard/index.ts
|
|
3182
3196
|
import { html as html15, LitElement as LitElement15 } from "lit";
|
|
3183
|
-
import { customElement as customElement15, property as property15, state as state7, query as query3 } from "lit/decorators.js";
|
|
3184
3197
|
|
|
3185
3198
|
// src/elements/flipcard/styles.css.ts
|
|
3186
3199
|
import { css as css17 } from "lit";
|
|
@@ -3350,48 +3363,47 @@ var KemetFlipcard = class extends LitElement15 {
|
|
|
3350
3363
|
};
|
|
3351
3364
|
KemetFlipcard.styles = [styles_css_default14];
|
|
3352
3365
|
__decorateClass([
|
|
3353
|
-
|
|
3366
|
+
property({ type: String, reflect: true })
|
|
3354
3367
|
], KemetFlipcard.prototype, "axis", 2);
|
|
3355
3368
|
__decorateClass([
|
|
3356
|
-
|
|
3369
|
+
property({ type: Boolean, reflect: true })
|
|
3357
3370
|
], KemetFlipcard.prototype, "flipped", 2);
|
|
3358
3371
|
__decorateClass([
|
|
3359
|
-
|
|
3372
|
+
property({ type: Boolean, attribute: "flip-on-hover" })
|
|
3360
3373
|
], KemetFlipcard.prototype, "flipOnHover", 2);
|
|
3361
3374
|
__decorateClass([
|
|
3362
|
-
|
|
3375
|
+
property({ type: String })
|
|
3363
3376
|
], KemetFlipcard.prototype, "height", 2);
|
|
3364
3377
|
__decorateClass([
|
|
3365
|
-
|
|
3378
|
+
property({ type: Boolean })
|
|
3366
3379
|
], KemetFlipcard.prototype, "measure", 2);
|
|
3367
3380
|
__decorateClass([
|
|
3368
|
-
|
|
3381
|
+
property({ type: String, reflect: true })
|
|
3369
3382
|
], KemetFlipcard.prototype, "rounded", 2);
|
|
3370
3383
|
__decorateClass([
|
|
3371
|
-
|
|
3384
|
+
property({ type: String, reflect: true })
|
|
3372
3385
|
], KemetFlipcard.prototype, "polarity", 2);
|
|
3373
3386
|
__decorateClass([
|
|
3374
|
-
|
|
3387
|
+
property({ type: String, reflect: true })
|
|
3375
3388
|
], KemetFlipcard.prototype, "dom", 2);
|
|
3376
3389
|
__decorateClass([
|
|
3377
|
-
|
|
3390
|
+
query('[name="front"]')
|
|
3378
3391
|
], KemetFlipcard.prototype, "frontChildren", 2);
|
|
3379
3392
|
__decorateClass([
|
|
3380
|
-
|
|
3393
|
+
query('[name="back"]')
|
|
3381
3394
|
], KemetFlipcard.prototype, "backChildren", 2);
|
|
3382
3395
|
__decorateClass([
|
|
3383
|
-
|
|
3396
|
+
state()
|
|
3384
3397
|
], KemetFlipcard.prototype, "frontElement", 2);
|
|
3385
3398
|
__decorateClass([
|
|
3386
|
-
|
|
3399
|
+
state()
|
|
3387
3400
|
], KemetFlipcard.prototype, "backElement", 2);
|
|
3388
3401
|
KemetFlipcard = __decorateClass([
|
|
3389
|
-
|
|
3402
|
+
customElement("kemet-flipcard")
|
|
3390
3403
|
], KemetFlipcard);
|
|
3391
3404
|
|
|
3392
3405
|
// src/elements/flipcard-trigger/index.ts
|
|
3393
3406
|
import { LitElement as LitElement16, html as html16, css as css18 } from "lit";
|
|
3394
|
-
import { customElement as customElement16, property as property16 } from "lit/decorators.js";
|
|
3395
3407
|
var KemetFlipcardTrigger = class extends LitElement16 {
|
|
3396
3408
|
constructor() {
|
|
3397
3409
|
super(...arguments);
|
|
@@ -3434,18 +3446,17 @@ KemetFlipcardTrigger.styles = [
|
|
|
3434
3446
|
`
|
|
3435
3447
|
];
|
|
3436
3448
|
__decorateClass([
|
|
3437
|
-
|
|
3449
|
+
property({ type: String, reflect: true })
|
|
3438
3450
|
], KemetFlipcardTrigger.prototype, "polarity", 2);
|
|
3439
3451
|
__decorateClass([
|
|
3440
|
-
|
|
3452
|
+
property({ type: String, reflect: true })
|
|
3441
3453
|
], KemetFlipcardTrigger.prototype, "dom", 2);
|
|
3442
3454
|
KemetFlipcardTrigger = __decorateClass([
|
|
3443
|
-
|
|
3455
|
+
customElement("kemet-flipcard-trigger")
|
|
3444
3456
|
], KemetFlipcardTrigger);
|
|
3445
3457
|
|
|
3446
3458
|
// src/elements/icon/index.ts
|
|
3447
3459
|
import { html as html17, LitElement as LitElement17 } from "lit";
|
|
3448
|
-
import { customElement as customElement17, property as property17, state as state8 } from "lit/decorators.js";
|
|
3449
3460
|
import { isTemplateResult } from "lit/directive-helpers.js";
|
|
3450
3461
|
|
|
3451
3462
|
// src/elements/icon/styles.css.ts
|
|
@@ -3547,7 +3558,7 @@ var KemetIcon = class extends LitElement17 {
|
|
|
3547
3558
|
}
|
|
3548
3559
|
if (isTemplateResult(svg)) {
|
|
3549
3560
|
this.svg = svg;
|
|
3550
|
-
} else if (svg instanceof SVGSVGElement) {
|
|
3561
|
+
} else if (typeof SVGSVGElement !== "undefined" && svg instanceof SVGSVGElement) {
|
|
3551
3562
|
this.svg = svg.cloneNode(true);
|
|
3552
3563
|
}
|
|
3553
3564
|
}
|
|
@@ -3627,39 +3638,38 @@ var KemetIcon = class extends LitElement17 {
|
|
|
3627
3638
|
};
|
|
3628
3639
|
KemetIcon.styles = [styles_css_default15];
|
|
3629
3640
|
__decorateClass([
|
|
3630
|
-
|
|
3641
|
+
property({ type: String })
|
|
3631
3642
|
], KemetIcon.prototype, "name", 2);
|
|
3632
3643
|
__decorateClass([
|
|
3633
|
-
|
|
3644
|
+
property({ type: String })
|
|
3634
3645
|
], KemetIcon.prototype, "library", 2);
|
|
3635
3646
|
__decorateClass([
|
|
3636
|
-
|
|
3647
|
+
property({ type: String })
|
|
3637
3648
|
], KemetIcon.prototype, "family", 2);
|
|
3638
3649
|
__decorateClass([
|
|
3639
|
-
|
|
3650
|
+
property({ type: Number })
|
|
3640
3651
|
], KemetIcon.prototype, "size", 2);
|
|
3641
3652
|
__decorateClass([
|
|
3642
|
-
|
|
3653
|
+
property({ type: String })
|
|
3643
3654
|
], KemetIcon.prototype, "version", 2);
|
|
3644
3655
|
__decorateClass([
|
|
3645
|
-
|
|
3656
|
+
property({ type: String, reflect: true })
|
|
3646
3657
|
], KemetIcon.prototype, "polarity", 2);
|
|
3647
3658
|
__decorateClass([
|
|
3648
|
-
|
|
3659
|
+
property({ type: String, reflect: true })
|
|
3649
3660
|
], KemetIcon.prototype, "dom", 2);
|
|
3650
3661
|
__decorateClass([
|
|
3651
|
-
|
|
3662
|
+
state()
|
|
3652
3663
|
], KemetIcon.prototype, "svg", 2);
|
|
3653
3664
|
__decorateClass([
|
|
3654
|
-
|
|
3665
|
+
state()
|
|
3655
3666
|
], KemetIcon.prototype, "url", 2);
|
|
3656
3667
|
KemetIcon = __decorateClass([
|
|
3657
|
-
|
|
3668
|
+
customElement("kemet-icon")
|
|
3658
3669
|
], KemetIcon);
|
|
3659
3670
|
|
|
3660
3671
|
// src/elements/input/index.ts
|
|
3661
3672
|
import { html as html18, LitElement as LitElement18 } from "lit";
|
|
3662
|
-
import { customElement as customElement18, property as property18, state as state9 } from "lit/decorators.js";
|
|
3663
3673
|
import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
|
|
3664
3674
|
import { live as live2 } from "lit/directives/live.js";
|
|
3665
3675
|
|
|
@@ -3668,8 +3678,8 @@ import { css as css20 } from "lit";
|
|
|
3668
3678
|
var styles_css_default16 = css20`:host {
|
|
3669
3679
|
/* public */
|
|
3670
3680
|
--kemet-input-height: 50px;
|
|
3671
|
-
--kemet-input-color:
|
|
3672
|
-
--kemet-input-border: 1px solid
|
|
3681
|
+
--kemet-input-color: inherit;
|
|
3682
|
+
--kemet-input-border: 1px solid;
|
|
3673
3683
|
--kemet-input-padding-y: 0.5rem;
|
|
3674
3684
|
--kemet-input-padding-x: 1rem;
|
|
3675
3685
|
--kemet-input-icon-gap: 3rem;
|
|
@@ -4055,117 +4065,116 @@ var HTMLKemetInputElement = class extends LitElement18 {
|
|
|
4055
4065
|
};
|
|
4056
4066
|
HTMLKemetInputElement.styles = [styles_css_default16];
|
|
4057
4067
|
__decorateClass([
|
|
4058
|
-
|
|
4068
|
+
property({ type: String })
|
|
4059
4069
|
], HTMLKemetInputElement.prototype, "slug", 2);
|
|
4060
4070
|
__decorateClass([
|
|
4061
|
-
|
|
4071
|
+
property({ type: String })
|
|
4062
4072
|
], HTMLKemetInputElement.prototype, "name", 2);
|
|
4063
4073
|
__decorateClass([
|
|
4064
|
-
|
|
4074
|
+
property({ type: String })
|
|
4065
4075
|
], HTMLKemetInputElement.prototype, "placeholder", 2);
|
|
4066
4076
|
__decorateClass([
|
|
4067
|
-
|
|
4077
|
+
property({ type: Number })
|
|
4068
4078
|
], HTMLKemetInputElement.prototype, "minlength", 2);
|
|
4069
4079
|
__decorateClass([
|
|
4070
|
-
|
|
4080
|
+
property({ type: Number })
|
|
4071
4081
|
], HTMLKemetInputElement.prototype, "maxlength", 2);
|
|
4072
4082
|
__decorateClass([
|
|
4073
|
-
|
|
4083
|
+
property({ type: String })
|
|
4074
4084
|
], HTMLKemetInputElement.prototype, "min", 2);
|
|
4075
4085
|
__decorateClass([
|
|
4076
|
-
|
|
4086
|
+
property({ type: String })
|
|
4077
4087
|
], HTMLKemetInputElement.prototype, "max", 2);
|
|
4078
4088
|
__decorateClass([
|
|
4079
|
-
|
|
4089
|
+
property({ type: Number })
|
|
4080
4090
|
], HTMLKemetInputElement.prototype, "step", 2);
|
|
4081
4091
|
__decorateClass([
|
|
4082
|
-
|
|
4092
|
+
property({ type: String })
|
|
4083
4093
|
], HTMLKemetInputElement.prototype, "autocomplete", 2);
|
|
4084
4094
|
__decorateClass([
|
|
4085
|
-
|
|
4095
|
+
property({ type: String })
|
|
4086
4096
|
], HTMLKemetInputElement.prototype, "pattern", 2);
|
|
4087
4097
|
__decorateClass([
|
|
4088
|
-
|
|
4098
|
+
property({ type: String })
|
|
4089
4099
|
], HTMLKemetInputElement.prototype, "inputmode", 2);
|
|
4090
4100
|
__decorateClass([
|
|
4091
|
-
|
|
4101
|
+
property({ type: Boolean })
|
|
4092
4102
|
], HTMLKemetInputElement.prototype, "autofocus", 2);
|
|
4093
4103
|
__decorateClass([
|
|
4094
|
-
|
|
4104
|
+
property({ type: Boolean, reflect: true })
|
|
4095
4105
|
], HTMLKemetInputElement.prototype, "disabled", 2);
|
|
4096
4106
|
__decorateClass([
|
|
4097
|
-
|
|
4107
|
+
property({ type: Boolean })
|
|
4098
4108
|
], HTMLKemetInputElement.prototype, "readonly", 2);
|
|
4099
4109
|
__decorateClass([
|
|
4100
|
-
|
|
4110
|
+
property({ type: Boolean, reflect: true })
|
|
4101
4111
|
], HTMLKemetInputElement.prototype, "required", 2);
|
|
4102
4112
|
__decorateClass([
|
|
4103
|
-
|
|
4113
|
+
property({ type: String })
|
|
4104
4114
|
], HTMLKemetInputElement.prototype, "type", 2);
|
|
4105
4115
|
__decorateClass([
|
|
4106
|
-
|
|
4116
|
+
property({ type: String, reflect: true })
|
|
4107
4117
|
], HTMLKemetInputElement.prototype, "value", 2);
|
|
4108
4118
|
__decorateClass([
|
|
4109
|
-
|
|
4119
|
+
property({ type: Boolean, reflect: true })
|
|
4110
4120
|
], HTMLKemetInputElement.prototype, "invalid", 2);
|
|
4111
4121
|
__decorateClass([
|
|
4112
|
-
|
|
4122
|
+
property({ type: String, reflect: true })
|
|
4113
4123
|
], HTMLKemetInputElement.prototype, "appearance", 2);
|
|
4114
4124
|
__decorateClass([
|
|
4115
|
-
|
|
4125
|
+
property({ type: Boolean, attribute: "validate-on-blur" })
|
|
4116
4126
|
], HTMLKemetInputElement.prototype, "validateOnBlur", 2);
|
|
4117
4127
|
__decorateClass([
|
|
4118
|
-
|
|
4128
|
+
property({ type: String, attribute: "aria-autocomplete" })
|
|
4119
4129
|
], HTMLKemetInputElement.prototype, "ariaAutoComplete", 2);
|
|
4120
4130
|
__decorateClass([
|
|
4121
|
-
|
|
4131
|
+
property({ type: String, attribute: "aria-controls" })
|
|
4122
4132
|
], HTMLKemetInputElement.prototype, "ariaControls", 2);
|
|
4123
4133
|
__decorateClass([
|
|
4124
|
-
|
|
4134
|
+
property({ type: String, attribute: "aria-activedescendant" })
|
|
4125
4135
|
], HTMLKemetInputElement.prototype, "ariaActiveDescendant", 2);
|
|
4126
4136
|
__decorateClass([
|
|
4127
|
-
|
|
4137
|
+
property({ type: Boolean, reflect: true })
|
|
4128
4138
|
], HTMLKemetInputElement.prototype, "filled", 2);
|
|
4129
4139
|
__decorateClass([
|
|
4130
|
-
|
|
4140
|
+
property({ type: Boolean, reflect: true, attribute: "icon-right" })
|
|
4131
4141
|
], HTMLKemetInputElement.prototype, "iconRight", 2);
|
|
4132
4142
|
__decorateClass([
|
|
4133
|
-
|
|
4143
|
+
property({ type: Boolean, reflect: true, attribute: "icon-left" })
|
|
4134
4144
|
], HTMLKemetInputElement.prototype, "iconLeft", 2);
|
|
4135
4145
|
__decorateClass([
|
|
4136
|
-
|
|
4146
|
+
property({ type: Object })
|
|
4137
4147
|
], HTMLKemetInputElement.prototype, "validity", 2);
|
|
4138
4148
|
__decorateClass([
|
|
4139
|
-
|
|
4149
|
+
property({ type: Boolean })
|
|
4140
4150
|
], HTMLKemetInputElement.prototype, "isPasswordVisible", 2);
|
|
4141
4151
|
__decorateClass([
|
|
4142
|
-
|
|
4152
|
+
property({ type: Boolean, reflect: true })
|
|
4143
4153
|
], HTMLKemetInputElement.prototype, "focused", 2);
|
|
4144
4154
|
__decorateClass([
|
|
4145
|
-
|
|
4155
|
+
property({ type: String, reflect: true })
|
|
4146
4156
|
], HTMLKemetInputElement.prototype, "rounded", 2);
|
|
4147
4157
|
__decorateClass([
|
|
4148
|
-
|
|
4158
|
+
property({ type: String, reflect: true })
|
|
4149
4159
|
], HTMLKemetInputElement.prototype, "polarity", 2);
|
|
4150
4160
|
__decorateClass([
|
|
4151
|
-
|
|
4161
|
+
property({ type: String, reflect: true })
|
|
4152
4162
|
], HTMLKemetInputElement.prototype, "dom", 2);
|
|
4153
4163
|
__decorateClass([
|
|
4154
|
-
|
|
4164
|
+
state()
|
|
4155
4165
|
], HTMLKemetInputElement.prototype, "field", 2);
|
|
4156
4166
|
__decorateClass([
|
|
4157
|
-
|
|
4167
|
+
state()
|
|
4158
4168
|
], HTMLKemetInputElement.prototype, "form", 2);
|
|
4159
4169
|
__decorateClass([
|
|
4160
|
-
|
|
4170
|
+
state()
|
|
4161
4171
|
], HTMLKemetInputElement.prototype, "input", 2);
|
|
4162
4172
|
HTMLKemetInputElement = __decorateClass([
|
|
4163
|
-
|
|
4173
|
+
customElement("kemet-input")
|
|
4164
4174
|
], HTMLKemetInputElement);
|
|
4165
4175
|
|
|
4166
4176
|
// src/elements/dialog/index.ts
|
|
4167
4177
|
import { html as html19, LitElement as LitElement19 } from "lit";
|
|
4168
|
-
import { customElement as customElement19, property as property19, query as query4, state as state10 } from "lit/decorators.js";
|
|
4169
4178
|
|
|
4170
4179
|
// src/elements/dialog/styles.css.ts
|
|
4171
4180
|
import { css as css21 } from "lit";
|
|
@@ -4578,45 +4587,44 @@ var Dialog = class extends LitElement19 {
|
|
|
4578
4587
|
};
|
|
4579
4588
|
Dialog.styles = [styles_css_default17, effects_css_default];
|
|
4580
4589
|
__decorateClass([
|
|
4581
|
-
|
|
4590
|
+
property({ type: Boolean, reflect: true })
|
|
4582
4591
|
], Dialog.prototype, "opened", 2);
|
|
4583
4592
|
__decorateClass([
|
|
4584
|
-
|
|
4593
|
+
property({ type: String, reflect: true })
|
|
4585
4594
|
], Dialog.prototype, "effect", 2);
|
|
4586
4595
|
__decorateClass([
|
|
4587
|
-
|
|
4596
|
+
property({ type: Boolean, attribute: "close-on-click" })
|
|
4588
4597
|
], Dialog.prototype, "closeOnClick", 2);
|
|
4589
4598
|
__decorateClass([
|
|
4590
|
-
|
|
4599
|
+
property({ type: String })
|
|
4591
4600
|
], Dialog.prototype, "breakpoint", 2);
|
|
4592
4601
|
__decorateClass([
|
|
4593
|
-
|
|
4602
|
+
property({ type: Boolean, reflect: true })
|
|
4594
4603
|
], Dialog.prototype, "mobile", 2);
|
|
4595
4604
|
__decorateClass([
|
|
4596
|
-
|
|
4605
|
+
property({ reflect: true })
|
|
4597
4606
|
], Dialog.prototype, "rounded", 2);
|
|
4598
4607
|
__decorateClass([
|
|
4599
|
-
|
|
4608
|
+
property({ type: String, reflect: true })
|
|
4600
4609
|
], Dialog.prototype, "polarity", 2);
|
|
4601
4610
|
__decorateClass([
|
|
4602
|
-
|
|
4611
|
+
property({ type: String, reflect: true })
|
|
4603
4612
|
], Dialog.prototype, "dom", 2);
|
|
4604
4613
|
__decorateClass([
|
|
4605
|
-
|
|
4614
|
+
query("dialog")
|
|
4606
4615
|
], Dialog.prototype, "dialogElement", 2);
|
|
4607
4616
|
__decorateClass([
|
|
4608
|
-
|
|
4617
|
+
state()
|
|
4609
4618
|
], Dialog.prototype, "focusableSelector", 2);
|
|
4610
4619
|
__decorateClass([
|
|
4611
|
-
|
|
4620
|
+
state()
|
|
4612
4621
|
], Dialog.prototype, "focusableElements", 2);
|
|
4613
4622
|
Dialog = __decorateClass([
|
|
4614
|
-
|
|
4623
|
+
customElement("kemet-dialog")
|
|
4615
4624
|
], Dialog);
|
|
4616
4625
|
|
|
4617
4626
|
// src/elements/dialog-close/index.ts
|
|
4618
4627
|
import { css as css23, html as html20, LitElement as LitElement20 } from "lit";
|
|
4619
|
-
import { customElement as customElement20, property as property20 } from "lit/decorators.js";
|
|
4620
4628
|
var DialogClose = class extends LitElement20 {
|
|
4621
4629
|
constructor() {
|
|
4622
4630
|
super(...arguments);
|
|
@@ -4654,18 +4662,17 @@ DialogClose.styles = [
|
|
|
4654
4662
|
`
|
|
4655
4663
|
];
|
|
4656
4664
|
__decorateClass([
|
|
4657
|
-
|
|
4665
|
+
property({ type: String, reflect: true })
|
|
4658
4666
|
], DialogClose.prototype, "polarity", 2);
|
|
4659
4667
|
__decorateClass([
|
|
4660
|
-
|
|
4668
|
+
property({ type: String, reflect: true })
|
|
4661
4669
|
], DialogClose.prototype, "dom", 2);
|
|
4662
4670
|
DialogClose = __decorateClass([
|
|
4663
|
-
|
|
4671
|
+
customElement("kemet-dialog-close")
|
|
4664
4672
|
], DialogClose);
|
|
4665
4673
|
|
|
4666
4674
|
// src/elements/input-combo/index.ts
|
|
4667
4675
|
import { html as html21, LitElement as LitElement21 } from "lit";
|
|
4668
|
-
import { customElement as customElement21, property as property21, query as query5, state as state11 } from "lit/decorators.js";
|
|
4669
4676
|
import { live as live3 } from "lit/directives/live.js";
|
|
4670
4677
|
|
|
4671
4678
|
// src/elements/input-combo/styles.css.ts
|
|
@@ -5004,63 +5011,62 @@ var InputCombo = class extends LitElement21 {
|
|
|
5004
5011
|
};
|
|
5005
5012
|
InputCombo.styles = [styles_css_default18];
|
|
5006
5013
|
__decorateClass([
|
|
5007
|
-
|
|
5014
|
+
property({ type: String })
|
|
5008
5015
|
], InputCombo.prototype, "slug", 2);
|
|
5009
5016
|
__decorateClass([
|
|
5010
|
-
|
|
5017
|
+
property({ type: String })
|
|
5011
5018
|
], InputCombo.prototype, "placeholder", 2);
|
|
5012
5019
|
__decorateClass([
|
|
5013
|
-
|
|
5020
|
+
property({ type: Boolean })
|
|
5014
5021
|
], InputCombo.prototype, "disabled", 2);
|
|
5015
5022
|
__decorateClass([
|
|
5016
|
-
|
|
5023
|
+
property({ type: Boolean })
|
|
5017
5024
|
], InputCombo.prototype, "filled", 2);
|
|
5018
5025
|
__decorateClass([
|
|
5019
|
-
|
|
5026
|
+
property({ type: String, reflect: true })
|
|
5020
5027
|
], InputCombo.prototype, "rounded", 2);
|
|
5021
5028
|
__decorateClass([
|
|
5022
|
-
|
|
5029
|
+
property({ type: String })
|
|
5023
5030
|
], InputCombo.prototype, "name", 2);
|
|
5024
5031
|
__decorateClass([
|
|
5025
|
-
|
|
5032
|
+
property({ reflect: true })
|
|
5026
5033
|
], InputCombo.prototype, "appearance", 2);
|
|
5027
5034
|
__decorateClass([
|
|
5028
|
-
|
|
5035
|
+
property({ type: Boolean })
|
|
5029
5036
|
], InputCombo.prototype, "required", 2);
|
|
5030
5037
|
__decorateClass([
|
|
5031
|
-
|
|
5038
|
+
property({ type: Boolean })
|
|
5032
5039
|
], InputCombo.prototype, "invalid", 2);
|
|
5033
5040
|
__decorateClass([
|
|
5034
|
-
|
|
5041
|
+
property({ type: Boolean, attribute: "validate-on-blur" })
|
|
5035
5042
|
], InputCombo.prototype, "validateOnBlur", 2);
|
|
5036
5043
|
__decorateClass([
|
|
5037
|
-
|
|
5044
|
+
state()
|
|
5038
5045
|
], InputCombo.prototype, "value", 2);
|
|
5039
5046
|
__decorateClass([
|
|
5040
|
-
|
|
5047
|
+
state()
|
|
5041
5048
|
], InputCombo.prototype, "selections", 2);
|
|
5042
5049
|
__decorateClass([
|
|
5043
|
-
|
|
5050
|
+
state()
|
|
5044
5051
|
], InputCombo.prototype, "paddingLeft", 2);
|
|
5045
5052
|
__decorateClass([
|
|
5046
|
-
|
|
5053
|
+
state()
|
|
5047
5054
|
], InputCombo.prototype, "field", 2);
|
|
5048
5055
|
__decorateClass([
|
|
5049
|
-
|
|
5056
|
+
state()
|
|
5050
5057
|
], InputCombo.prototype, "combo", 2);
|
|
5051
5058
|
__decorateClass([
|
|
5052
|
-
|
|
5059
|
+
query("[part=chips]")
|
|
5053
5060
|
], InputCombo.prototype, "chips", 2);
|
|
5054
5061
|
__decorateClass([
|
|
5055
|
-
|
|
5062
|
+
query("input")
|
|
5056
5063
|
], InputCombo.prototype, "input", 2);
|
|
5057
5064
|
InputCombo = __decorateClass([
|
|
5058
|
-
|
|
5065
|
+
customElement("kemet-input-combo")
|
|
5059
5066
|
], InputCombo);
|
|
5060
5067
|
|
|
5061
5068
|
// src/elements/password/index.ts
|
|
5062
5069
|
import { html as html22, LitElement as LitElement22 } from "lit";
|
|
5063
|
-
import { customElement as customElement22, property as property22, state as state12 } from "lit/decorators.js";
|
|
5064
5070
|
|
|
5065
5071
|
// src/elements/password/styles.css.ts
|
|
5066
5072
|
import { css as css25 } from "lit";
|
|
@@ -5258,42 +5264,41 @@ var KemetPassword = class extends LitElement22 {
|
|
|
5258
5264
|
};
|
|
5259
5265
|
KemetPassword.styles = [styles_css_default19];
|
|
5260
5266
|
__decorateClass([
|
|
5261
|
-
|
|
5267
|
+
property({ type: Array })
|
|
5262
5268
|
], KemetPassword.prototype, "rules", 2);
|
|
5263
5269
|
__decorateClass([
|
|
5264
|
-
|
|
5270
|
+
property({ type: Boolean, reflect: true })
|
|
5265
5271
|
], KemetPassword.prototype, "show", 2);
|
|
5266
5272
|
__decorateClass([
|
|
5267
|
-
|
|
5273
|
+
property({ type: String })
|
|
5268
5274
|
], KemetPassword.prototype, "value", 2);
|
|
5269
5275
|
__decorateClass([
|
|
5270
|
-
|
|
5276
|
+
property({ type: String })
|
|
5271
5277
|
], KemetPassword.prototype, "message", 2);
|
|
5272
5278
|
__decorateClass([
|
|
5273
|
-
|
|
5279
|
+
property({ type: String })
|
|
5274
5280
|
], KemetPassword.prototype, "strength", 2);
|
|
5275
5281
|
__decorateClass([
|
|
5276
|
-
|
|
5282
|
+
property({ type: String })
|
|
5277
5283
|
], KemetPassword.prototype, "icon", 2);
|
|
5278
5284
|
__decorateClass([
|
|
5279
|
-
|
|
5285
|
+
property({ type: Number })
|
|
5280
5286
|
], KemetPassword.prototype, "iconSize", 2);
|
|
5281
5287
|
__decorateClass([
|
|
5282
|
-
|
|
5288
|
+
state()
|
|
5283
5289
|
], KemetPassword.prototype, "appearance", 2);
|
|
5284
5290
|
__decorateClass([
|
|
5285
|
-
|
|
5291
|
+
state()
|
|
5286
5292
|
], KemetPassword.prototype, "field", 2);
|
|
5287
5293
|
__decorateClass([
|
|
5288
|
-
|
|
5294
|
+
state()
|
|
5289
5295
|
], KemetPassword.prototype, "input", 2);
|
|
5290
5296
|
KemetPassword = __decorateClass([
|
|
5291
|
-
|
|
5297
|
+
customElement("kemet-password")
|
|
5292
5298
|
], KemetPassword);
|
|
5293
5299
|
|
|
5294
5300
|
// src/elements/radio/index.ts
|
|
5295
5301
|
import { html as html23, LitElement as LitElement23 } from "lit";
|
|
5296
|
-
import { customElement as customElement23, property as property23, state as state13 } from "lit/decorators.js";
|
|
5297
5302
|
import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
|
|
5298
5303
|
import { live as live4 } from "lit/directives/live.js";
|
|
5299
5304
|
|
|
@@ -5459,42 +5464,41 @@ var KemetRadio = class extends LitElement23 {
|
|
|
5459
5464
|
};
|
|
5460
5465
|
KemetRadio.styles = [styles_css_default20];
|
|
5461
5466
|
__decorateClass([
|
|
5462
|
-
|
|
5467
|
+
property({ type: String })
|
|
5463
5468
|
], KemetRadio.prototype, "label", 2);
|
|
5464
5469
|
__decorateClass([
|
|
5465
|
-
|
|
5470
|
+
property({ type: Boolean, reflect: true })
|
|
5466
5471
|
], KemetRadio.prototype, "checked", 2);
|
|
5467
5472
|
__decorateClass([
|
|
5468
|
-
|
|
5473
|
+
property({ type: String })
|
|
5469
5474
|
], KemetRadio.prototype, "name", 2);
|
|
5470
5475
|
__decorateClass([
|
|
5471
|
-
|
|
5476
|
+
property({ type: String })
|
|
5472
5477
|
], KemetRadio.prototype, "value", 2);
|
|
5473
5478
|
__decorateClass([
|
|
5474
|
-
|
|
5479
|
+
property({ type: Boolean, reflect: true })
|
|
5475
5480
|
], KemetRadio.prototype, "disabled", 2);
|
|
5476
5481
|
__decorateClass([
|
|
5477
|
-
|
|
5482
|
+
property({ type: Boolean, reflect: true })
|
|
5478
5483
|
], KemetRadio.prototype, "focused", 2);
|
|
5479
5484
|
__decorateClass([
|
|
5480
|
-
|
|
5485
|
+
property({ type: Boolean, reflect: true })
|
|
5481
5486
|
], KemetRadio.prototype, "filled", 2);
|
|
5482
5487
|
__decorateClass([
|
|
5483
|
-
|
|
5488
|
+
property({ type: String, reflect: true })
|
|
5484
5489
|
], KemetRadio.prototype, "polarity", 2);
|
|
5485
5490
|
__decorateClass([
|
|
5486
|
-
|
|
5491
|
+
property({ type: String, reflect: true })
|
|
5487
5492
|
], KemetRadio.prototype, "dom", 2);
|
|
5488
5493
|
__decorateClass([
|
|
5489
|
-
|
|
5494
|
+
state()
|
|
5490
5495
|
], KemetRadio.prototype, "input", 2);
|
|
5491
5496
|
KemetRadio = __decorateClass([
|
|
5492
|
-
|
|
5497
|
+
customElement("kemet-radio")
|
|
5493
5498
|
], KemetRadio);
|
|
5494
5499
|
|
|
5495
5500
|
// src/elements/radios/index.ts
|
|
5496
5501
|
import { html as html24, LitElement as LitElement24 } from "lit";
|
|
5497
|
-
import { customElement as customElement24, property as property24, state as state14 } from "lit/decorators.js";
|
|
5498
5502
|
|
|
5499
5503
|
// src/elements/radios/styles.css.ts
|
|
5500
5504
|
import { css as css27 } from "lit";
|
|
@@ -5636,42 +5640,41 @@ var KemetRadios = class extends LitElement24 {
|
|
|
5636
5640
|
};
|
|
5637
5641
|
KemetRadios.styles = [styles_css_default21];
|
|
5638
5642
|
__decorateClass([
|
|
5639
|
-
|
|
5643
|
+
property({ type: String })
|
|
5640
5644
|
], KemetRadios.prototype, "legend", 2);
|
|
5641
5645
|
__decorateClass([
|
|
5642
|
-
|
|
5646
|
+
property({ type: String, reflect: true })
|
|
5643
5647
|
], KemetRadios.prototype, "axis", 2);
|
|
5644
5648
|
__decorateClass([
|
|
5645
|
-
|
|
5649
|
+
property({ type: String })
|
|
5646
5650
|
], KemetRadios.prototype, "value", 2);
|
|
5647
5651
|
__decorateClass([
|
|
5648
|
-
|
|
5652
|
+
property({ type: String })
|
|
5649
5653
|
], KemetRadios.prototype, "name", 2);
|
|
5650
5654
|
__decorateClass([
|
|
5651
|
-
|
|
5655
|
+
property({ type: String, reflect: true })
|
|
5652
5656
|
], KemetRadios.prototype, "appearance", 2);
|
|
5653
5657
|
__decorateClass([
|
|
5654
|
-
|
|
5658
|
+
property({ type: String })
|
|
5655
5659
|
], KemetRadios.prototype, "message", 2);
|
|
5656
5660
|
__decorateClass([
|
|
5657
|
-
|
|
5661
|
+
property({ type: Boolean })
|
|
5658
5662
|
], KemetRadios.prototype, "required", 2);
|
|
5659
5663
|
__decorateClass([
|
|
5660
|
-
|
|
5664
|
+
property({ type: String, reflect: true })
|
|
5661
5665
|
], KemetRadios.prototype, "polarity", 2);
|
|
5662
5666
|
__decorateClass([
|
|
5663
|
-
|
|
5667
|
+
property({ type: String, reflect: true })
|
|
5664
5668
|
], KemetRadios.prototype, "dom", 2);
|
|
5665
5669
|
__decorateClass([
|
|
5666
|
-
|
|
5670
|
+
state()
|
|
5667
5671
|
], KemetRadios.prototype, "radios", 2);
|
|
5668
5672
|
KemetRadios = __decorateClass([
|
|
5669
|
-
|
|
5673
|
+
customElement("kemet-radios")
|
|
5670
5674
|
], KemetRadios);
|
|
5671
5675
|
|
|
5672
5676
|
// src/elements/rotator/index.ts
|
|
5673
5677
|
import { html as html25, LitElement as LitElement25 } from "lit";
|
|
5674
|
-
import { customElement as customElement25, property as property25, state as state15 } from "lit/decorators.js";
|
|
5675
5678
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
5676
5679
|
|
|
5677
5680
|
// src/elements/rotator/styles.css.ts
|
|
@@ -5786,7 +5789,6 @@ var KemetRotator = class extends LitElement25 {
|
|
|
5786
5789
|
render() {
|
|
5787
5790
|
const setWidth = this.effect === "flip" ? `width:${this.width};` : "";
|
|
5788
5791
|
const setHeight = this.effect === "flip" ? `height:${this.height};` : "";
|
|
5789
|
-
console.log(this.height);
|
|
5790
5792
|
return html25`
|
|
5791
5793
|
<span part="rotator" style="${setWidth} ${setHeight}">
|
|
5792
5794
|
${this.makeMessages()}
|
|
@@ -5835,39 +5837,38 @@ var KemetRotator = class extends LitElement25 {
|
|
|
5835
5837
|
};
|
|
5836
5838
|
KemetRotator.styles = [styles_css_default22];
|
|
5837
5839
|
__decorateClass([
|
|
5838
|
-
|
|
5840
|
+
property({ type: Number, attribute: "active-slide" })
|
|
5839
5841
|
], KemetRotator.prototype, "activeSlide", 2);
|
|
5840
5842
|
__decorateClass([
|
|
5841
|
-
|
|
5843
|
+
property({ type: Array })
|
|
5842
5844
|
], KemetRotator.prototype, "messages", 2);
|
|
5843
5845
|
__decorateClass([
|
|
5844
|
-
|
|
5846
|
+
property({ type: String, reflect: true })
|
|
5845
5847
|
], KemetRotator.prototype, "effect", 2);
|
|
5846
5848
|
__decorateClass([
|
|
5847
|
-
|
|
5849
|
+
property({ type: Number })
|
|
5848
5850
|
], KemetRotator.prototype, "speed", 2);
|
|
5849
5851
|
__decorateClass([
|
|
5850
|
-
|
|
5852
|
+
property({ type: String, reflect: true })
|
|
5851
5853
|
], KemetRotator.prototype, "polarity", 2);
|
|
5852
5854
|
__decorateClass([
|
|
5853
|
-
|
|
5855
|
+
property({ type: String, reflect: true })
|
|
5854
5856
|
], KemetRotator.prototype, "dom", 2);
|
|
5855
5857
|
__decorateClass([
|
|
5856
|
-
|
|
5858
|
+
state()
|
|
5857
5859
|
], KemetRotator.prototype, "width", 2);
|
|
5858
5860
|
__decorateClass([
|
|
5859
|
-
|
|
5861
|
+
state()
|
|
5860
5862
|
], KemetRotator.prototype, "height", 2);
|
|
5861
5863
|
__decorateClass([
|
|
5862
|
-
|
|
5864
|
+
state()
|
|
5863
5865
|
], KemetRotator.prototype, "prevSlide", 2);
|
|
5864
5866
|
KemetRotator = __decorateClass([
|
|
5865
|
-
|
|
5867
|
+
customElement("kemet-rotator")
|
|
5866
5868
|
], KemetRotator);
|
|
5867
5869
|
|
|
5868
5870
|
// src/elements/select/index.ts
|
|
5869
5871
|
import { html as html26, LitElement as LitElement26 } from "lit";
|
|
5870
|
-
import { customElement as customElement26, property as property26, state as state16 } from "lit/decorators.js";
|
|
5871
5872
|
|
|
5872
5873
|
// src/elements/select/styles.css.ts
|
|
5873
5874
|
import { css as css29 } from "lit";
|
|
@@ -6018,9 +6019,9 @@ var KemetSelect = class extends LitElement26 {
|
|
|
6018
6019
|
this.invalid = false;
|
|
6019
6020
|
this.hasFocus = false;
|
|
6020
6021
|
this.formSubmitController = new FormSubmitController(this);
|
|
6021
|
-
this.control = this.closest("kemet-field");
|
|
6022
6022
|
}
|
|
6023
6023
|
firstUpdated() {
|
|
6024
|
+
this.control = this.closest("kemet-field");
|
|
6024
6025
|
this.select = this.shadowRoot?.querySelector("select");
|
|
6025
6026
|
this.selectedOption = this.querySelector("[selected]");
|
|
6026
6027
|
this.value = this.selectedOption ? this.selectedOption.value : "";
|
|
@@ -6158,96 +6159,94 @@ var KemetSelect = class extends LitElement26 {
|
|
|
6158
6159
|
};
|
|
6159
6160
|
KemetSelect.styles = [styles_css_default23];
|
|
6160
6161
|
__decorateClass([
|
|
6161
|
-
|
|
6162
|
+
property({ type: String })
|
|
6162
6163
|
], KemetSelect.prototype, "slug", 2);
|
|
6163
6164
|
__decorateClass([
|
|
6164
|
-
|
|
6165
|
+
property({ type: String })
|
|
6165
6166
|
], KemetSelect.prototype, "name", 2);
|
|
6166
6167
|
__decorateClass([
|
|
6167
|
-
|
|
6168
|
+
property({ type: String })
|
|
6168
6169
|
], KemetSelect.prototype, "value", 2);
|
|
6169
6170
|
__decorateClass([
|
|
6170
|
-
|
|
6171
|
+
property({ type: Array })
|
|
6171
6172
|
], KemetSelect.prototype, "options", 2);
|
|
6172
6173
|
__decorateClass([
|
|
6173
|
-
|
|
6174
|
+
property({ type: String, reflect: true })
|
|
6174
6175
|
], KemetSelect.prototype, "appearance", 2);
|
|
6175
6176
|
__decorateClass([
|
|
6176
|
-
|
|
6177
|
+
property({ type: Boolean, reflect: true })
|
|
6177
6178
|
], KemetSelect.prototype, "required", 2);
|
|
6178
6179
|
__decorateClass([
|
|
6179
|
-
|
|
6180
|
+
property({ type: Boolean, reflect: true })
|
|
6180
6181
|
], KemetSelect.prototype, "disabled", 2);
|
|
6181
6182
|
__decorateClass([
|
|
6182
|
-
|
|
6183
|
+
property({ type: Boolean })
|
|
6183
6184
|
], KemetSelect.prototype, "multiple", 2);
|
|
6184
6185
|
__decorateClass([
|
|
6185
|
-
|
|
6186
|
+
property({ type: String })
|
|
6186
6187
|
], KemetSelect.prototype, "icon", 2);
|
|
6187
6188
|
__decorateClass([
|
|
6188
|
-
|
|
6189
|
+
property({ type: Number, attribute: "icon-size" })
|
|
6189
6190
|
], KemetSelect.prototype, "iconSize", 2);
|
|
6190
6191
|
__decorateClass([
|
|
6191
|
-
|
|
6192
|
+
property({ type: Boolean, reflect: true })
|
|
6192
6193
|
], KemetSelect.prototype, "filled", 2);
|
|
6193
6194
|
__decorateClass([
|
|
6194
|
-
|
|
6195
|
+
property({ reflect: true })
|
|
6195
6196
|
], KemetSelect.prototype, "rounded", 2);
|
|
6196
6197
|
__decorateClass([
|
|
6197
|
-
|
|
6198
|
+
property({ type: String, reflect: true })
|
|
6198
6199
|
], KemetSelect.prototype, "polarity", 2);
|
|
6199
6200
|
__decorateClass([
|
|
6200
|
-
|
|
6201
|
+
property({ type: String, reflect: true })
|
|
6201
6202
|
], KemetSelect.prototype, "dom", 2);
|
|
6202
6203
|
__decorateClass([
|
|
6203
|
-
|
|
6204
|
+
state()
|
|
6204
6205
|
], KemetSelect.prototype, "invalid", 2);
|
|
6205
6206
|
__decorateClass([
|
|
6206
|
-
|
|
6207
|
+
state()
|
|
6207
6208
|
], KemetSelect.prototype, "control", 2);
|
|
6208
6209
|
__decorateClass([
|
|
6209
|
-
|
|
6210
|
+
state()
|
|
6210
6211
|
], KemetSelect.prototype, "select", 2);
|
|
6211
6212
|
__decorateClass([
|
|
6212
|
-
|
|
6213
|
+
state()
|
|
6213
6214
|
], KemetSelect.prototype, "selectedOption", 2);
|
|
6214
6215
|
__decorateClass([
|
|
6215
|
-
|
|
6216
|
+
state()
|
|
6216
6217
|
], KemetSelect.prototype, "optionElements", 2);
|
|
6217
6218
|
__decorateClass([
|
|
6218
|
-
|
|
6219
|
+
state()
|
|
6219
6220
|
], KemetSelect.prototype, "hasFocus", 2);
|
|
6220
6221
|
KemetSelect = __decorateClass([
|
|
6221
|
-
|
|
6222
|
+
customElement("kemet-select")
|
|
6222
6223
|
], KemetSelect);
|
|
6223
6224
|
|
|
6224
6225
|
// src/elements/select-option/index.ts
|
|
6225
6226
|
import { html as html27, LitElement as LitElement27 } from "lit";
|
|
6226
|
-
import { customElement as customElement27, property as property27 } from "lit/decorators.js";
|
|
6227
6227
|
var KemetSelectOption = class extends LitElement27 {
|
|
6228
6228
|
render() {
|
|
6229
6229
|
return html27`<slot></slot>`;
|
|
6230
6230
|
}
|
|
6231
6231
|
};
|
|
6232
6232
|
__decorateClass([
|
|
6233
|
-
|
|
6233
|
+
property({ type: String })
|
|
6234
6234
|
], KemetSelectOption.prototype, "label", 2);
|
|
6235
6235
|
__decorateClass([
|
|
6236
|
-
|
|
6236
|
+
property({ type: String })
|
|
6237
6237
|
], KemetSelectOption.prototype, "value", 2);
|
|
6238
6238
|
__decorateClass([
|
|
6239
|
-
|
|
6239
|
+
property({ type: Boolean })
|
|
6240
6240
|
], KemetSelectOption.prototype, "disabled", 2);
|
|
6241
6241
|
__decorateClass([
|
|
6242
|
-
|
|
6242
|
+
property({ type: Boolean })
|
|
6243
6243
|
], KemetSelectOption.prototype, "selected", 2);
|
|
6244
6244
|
KemetSelectOption = __decorateClass([
|
|
6245
|
-
|
|
6245
|
+
customElement("kemet-select-option")
|
|
6246
6246
|
], KemetSelectOption);
|
|
6247
6247
|
|
|
6248
6248
|
// src/elements/sortable/index.ts
|
|
6249
6249
|
import { html as html28, LitElement as LitElement28 } from "lit";
|
|
6250
|
-
import { customElement as customElement28, property as property28, state as state17 } from "lit/decorators.js";
|
|
6251
6250
|
import { polyfill } from "mobile-drag-drop";
|
|
6252
6251
|
|
|
6253
6252
|
// src/elements/sortable/styles.css.ts
|
|
@@ -6338,21 +6337,20 @@ var KemetSortable = class extends LitElement28 {
|
|
|
6338
6337
|
};
|
|
6339
6338
|
KemetSortable.styles = [styles_css_default24];
|
|
6340
6339
|
__decorateClass([
|
|
6341
|
-
|
|
6340
|
+
property({ type: String, reflect: true })
|
|
6342
6341
|
], KemetSortable.prototype, "polarity", 2);
|
|
6343
6342
|
__decorateClass([
|
|
6344
|
-
|
|
6343
|
+
property({ type: String, reflect: true })
|
|
6345
6344
|
], KemetSortable.prototype, "dom", 2);
|
|
6346
6345
|
__decorateClass([
|
|
6347
|
-
|
|
6346
|
+
state()
|
|
6348
6347
|
], KemetSortable.prototype, "sortableItem", 2);
|
|
6349
6348
|
KemetSortable = __decorateClass([
|
|
6350
|
-
|
|
6349
|
+
customElement("kemet-sortable")
|
|
6351
6350
|
], KemetSortable);
|
|
6352
6351
|
|
|
6353
6352
|
// src/elements/sortable-item/index.ts
|
|
6354
6353
|
import { html as html29, LitElement as LitElement29 } from "lit";
|
|
6355
|
-
import { customElement as customElement29, property as property29 } from "lit/decorators.js";
|
|
6356
6354
|
|
|
6357
6355
|
// src/elements/sortable-item/styles.css.ts
|
|
6358
6356
|
import { css as css31 } from "lit";
|
|
@@ -6392,21 +6390,20 @@ var KemetSortableItem = class extends LitElement29 {
|
|
|
6392
6390
|
};
|
|
6393
6391
|
KemetSortableItem.styles = [styles_css_default25];
|
|
6394
6392
|
__decorateClass([
|
|
6395
|
-
|
|
6393
|
+
property({ type: Boolean, reflect: true })
|
|
6396
6394
|
], KemetSortableItem.prototype, "ghost", 2);
|
|
6397
6395
|
__decorateClass([
|
|
6398
|
-
|
|
6396
|
+
property({ type: String, reflect: true })
|
|
6399
6397
|
], KemetSortableItem.prototype, "polarity", 2);
|
|
6400
6398
|
__decorateClass([
|
|
6401
|
-
|
|
6399
|
+
property({ type: String, reflect: true })
|
|
6402
6400
|
], KemetSortableItem.prototype, "dom", 2);
|
|
6403
6401
|
KemetSortableItem = __decorateClass([
|
|
6404
|
-
|
|
6402
|
+
customElement("kemet-sortable-item")
|
|
6405
6403
|
], KemetSortableItem);
|
|
6406
6404
|
|
|
6407
6405
|
// src/elements/tab/index.ts
|
|
6408
6406
|
import { LitElement as LitElement30, html as html30 } from "lit";
|
|
6409
|
-
import { customElement as customElement30, property as property30 } from "lit/decorators.js";
|
|
6410
6407
|
|
|
6411
6408
|
// src/elements/tab/styles.css.ts
|
|
6412
6409
|
import { css as css32 } from "lit";
|
|
@@ -6485,30 +6482,29 @@ var KemetTab = class extends LitElement30 {
|
|
|
6485
6482
|
};
|
|
6486
6483
|
KemetTab.styles = [styles_css_default26];
|
|
6487
6484
|
__decorateClass([
|
|
6488
|
-
|
|
6485
|
+
property({ type: Number })
|
|
6489
6486
|
], KemetTab.prototype, "index", 2);
|
|
6490
6487
|
__decorateClass([
|
|
6491
|
-
|
|
6488
|
+
property({ type: Boolean, reflect: true })
|
|
6492
6489
|
], KemetTab.prototype, "selected", 2);
|
|
6493
6490
|
__decorateClass([
|
|
6494
|
-
|
|
6491
|
+
property({ type: String })
|
|
6495
6492
|
], KemetTab.prototype, "link", 2);
|
|
6496
6493
|
__decorateClass([
|
|
6497
|
-
|
|
6494
|
+
property({ type: Boolean })
|
|
6498
6495
|
], KemetTab.prototype, "closable", 2);
|
|
6499
6496
|
__decorateClass([
|
|
6500
|
-
|
|
6497
|
+
property({ type: String, reflect: true })
|
|
6501
6498
|
], KemetTab.prototype, "polarity", 2);
|
|
6502
6499
|
__decorateClass([
|
|
6503
|
-
|
|
6500
|
+
property({ type: String, reflect: true })
|
|
6504
6501
|
], KemetTab.prototype, "dom", 2);
|
|
6505
6502
|
KemetTab = __decorateClass([
|
|
6506
|
-
|
|
6503
|
+
customElement("kemet-tab")
|
|
6507
6504
|
], KemetTab);
|
|
6508
6505
|
|
|
6509
6506
|
// src/elements/tab-panel/index.ts
|
|
6510
6507
|
import { LitElement as LitElement31, html as html31 } from "lit";
|
|
6511
|
-
import { customElement as customElement31, property as property31 } from "lit/decorators.js";
|
|
6512
6508
|
|
|
6513
6509
|
// src/elements/tab-panel/styles.css.ts
|
|
6514
6510
|
import { css as css33 } from "lit";
|
|
@@ -6597,27 +6593,26 @@ var KemetTabPanel = class extends LitElement31 {
|
|
|
6597
6593
|
};
|
|
6598
6594
|
KemetTabPanel.styles = [styles_css_default27];
|
|
6599
6595
|
__decorateClass([
|
|
6600
|
-
|
|
6596
|
+
property({ type: Boolean, reflect: true })
|
|
6601
6597
|
], KemetTabPanel.prototype, "selected", 2);
|
|
6602
6598
|
__decorateClass([
|
|
6603
|
-
|
|
6599
|
+
property({ type: String })
|
|
6604
6600
|
], KemetTabPanel.prototype, "panel", 2);
|
|
6605
6601
|
__decorateClass([
|
|
6606
|
-
|
|
6602
|
+
property({ type: Number })
|
|
6607
6603
|
], KemetTabPanel.prototype, "index", 2);
|
|
6608
6604
|
__decorateClass([
|
|
6609
|
-
|
|
6605
|
+
property({ type: String, reflect: true })
|
|
6610
6606
|
], KemetTabPanel.prototype, "polarity", 2);
|
|
6611
6607
|
__decorateClass([
|
|
6612
|
-
|
|
6608
|
+
property({ type: String, reflect: true })
|
|
6613
6609
|
], KemetTabPanel.prototype, "dom", 2);
|
|
6614
6610
|
KemetTabPanel = __decorateClass([
|
|
6615
|
-
|
|
6611
|
+
customElement("kemet-tab-panel")
|
|
6616
6612
|
], KemetTabPanel);
|
|
6617
6613
|
|
|
6618
6614
|
// src/elements/tabs/index.ts
|
|
6619
6615
|
import { LitElement as LitElement32, html as html32 } from "lit";
|
|
6620
|
-
import { customElement as customElement32, property as property32, query as query6, state as state18 } from "lit/decorators.js";
|
|
6621
6616
|
|
|
6622
6617
|
// src/elements/tabs/styles.css.ts
|
|
6623
6618
|
import { css as css34 } from "lit";
|
|
@@ -6837,9 +6832,12 @@ var KemetTabs = class extends LitElement32 {
|
|
|
6837
6832
|
this.hideInk = false;
|
|
6838
6833
|
this.overflow = false;
|
|
6839
6834
|
this.dom = "initializing";
|
|
6835
|
+
this._handleTabKeydown = this.handleTabKeydown.bind(this);
|
|
6840
6836
|
this.addEventListener("kemet-tab-selected", this.tabSelectedChange.bind(this));
|
|
6841
6837
|
this.addEventListener("kemet-tab-closed", this.handleTabClose.bind(this));
|
|
6842
|
-
window
|
|
6838
|
+
if (typeof window !== "undefined") {
|
|
6839
|
+
window.addEventListener("resize", this.handleResize.bind(this));
|
|
6840
|
+
}
|
|
6843
6841
|
}
|
|
6844
6842
|
firstUpdated() {
|
|
6845
6843
|
this.tabs = [];
|
|
@@ -6847,6 +6845,8 @@ var KemetTabs = class extends LitElement32 {
|
|
|
6847
6845
|
this.xDown = null;
|
|
6848
6846
|
this.yDown = null;
|
|
6849
6847
|
this.links = this.shadowRoot?.getElementById("links");
|
|
6848
|
+
this.handleLinksSlotChange();
|
|
6849
|
+
this.handlePanelsSlotChange();
|
|
6850
6850
|
emitEvent(this, "kemet-tabs-mounted", {
|
|
6851
6851
|
bubbles: true,
|
|
6852
6852
|
composed: true,
|
|
@@ -6888,13 +6888,15 @@ var KemetTabs = class extends LitElement32 {
|
|
|
6888
6888
|
}
|
|
6889
6889
|
}
|
|
6890
6890
|
handleLinksSlotChange() {
|
|
6891
|
+
this.tabs?.forEach((tab) => tab.removeEventListener("keydown", this._handleTabKeydown));
|
|
6892
|
+
this.tabs = [];
|
|
6891
6893
|
const tabs = this.querySelectorAll("kemet-tab");
|
|
6892
6894
|
let index = 0;
|
|
6893
6895
|
tabs.forEach((tab) => {
|
|
6894
6896
|
tab.index = index;
|
|
6895
6897
|
index += 1;
|
|
6896
6898
|
this.tabs = this.tabs.concat(tab);
|
|
6897
|
-
tab.addEventListener("keydown",
|
|
6899
|
+
tab.addEventListener("keydown", this._handleTabKeydown);
|
|
6898
6900
|
});
|
|
6899
6901
|
const firstTab = this.tabs[0];
|
|
6900
6902
|
if (firstTab) firstTab.selected = true;
|
|
@@ -6904,6 +6906,7 @@ var KemetTabs = class extends LitElement32 {
|
|
|
6904
6906
|
this.determineOverflow();
|
|
6905
6907
|
}
|
|
6906
6908
|
handlePanelsSlotChange() {
|
|
6909
|
+
this.panels = [];
|
|
6907
6910
|
const panels = this.querySelectorAll("kemet-tab-panel");
|
|
6908
6911
|
const panelElement = this.shadowRoot?.getElementById("panels");
|
|
6909
6912
|
let index = 0;
|
|
@@ -7232,69 +7235,68 @@ var KemetTabs = class extends LitElement32 {
|
|
|
7232
7235
|
};
|
|
7233
7236
|
KemetTabs.styles = [styles_css_default28];
|
|
7234
7237
|
__decorateClass([
|
|
7235
|
-
|
|
7238
|
+
property({ type: String, reflect: true })
|
|
7236
7239
|
], KemetTabs.prototype, "selected", 2);
|
|
7237
7240
|
__decorateClass([
|
|
7238
|
-
|
|
7241
|
+
property({ type: Number, reflect: true, attribute: "selected-index" })
|
|
7239
7242
|
], KemetTabs.prototype, "selectedIndex", 2);
|
|
7240
7243
|
__decorateClass([
|
|
7241
|
-
|
|
7244
|
+
property({ type: Number })
|
|
7242
7245
|
], KemetTabs.prototype, "panelPosition", 2);
|
|
7243
7246
|
__decorateClass([
|
|
7244
|
-
|
|
7247
|
+
property({ type: String, reflect: true, attribute: "panel-effect" })
|
|
7245
7248
|
], KemetTabs.prototype, "panelEffect", 2);
|
|
7246
7249
|
__decorateClass([
|
|
7247
|
-
|
|
7250
|
+
property({ type: Boolean })
|
|
7248
7251
|
], KemetTabs.prototype, "swipe", 2);
|
|
7249
7252
|
__decorateClass([
|
|
7250
|
-
|
|
7253
|
+
property({ type: String, reflect: true })
|
|
7251
7254
|
], KemetTabs.prototype, "placement", 2);
|
|
7252
7255
|
__decorateClass([
|
|
7253
|
-
|
|
7256
|
+
property({ type: Boolean })
|
|
7254
7257
|
], KemetTabs.prototype, "divider", 2);
|
|
7255
7258
|
__decorateClass([
|
|
7256
|
-
|
|
7259
|
+
property({ type: String, reflect: true, attribute: "tabs-align" })
|
|
7257
7260
|
], KemetTabs.prototype, "tabsAlign", 2);
|
|
7258
7261
|
__decorateClass([
|
|
7259
|
-
|
|
7262
|
+
property({ type: Object })
|
|
7260
7263
|
], KemetTabs.prototype, "ink", 2);
|
|
7261
7264
|
__decorateClass([
|
|
7262
|
-
|
|
7265
|
+
property({ type: Boolean, attribute: "hide-ink" })
|
|
7263
7266
|
], KemetTabs.prototype, "hideInk", 2);
|
|
7264
7267
|
__decorateClass([
|
|
7265
|
-
|
|
7268
|
+
property({ type: Boolean, reflect: true })
|
|
7266
7269
|
], KemetTabs.prototype, "overflow", 2);
|
|
7267
7270
|
__decorateClass([
|
|
7268
|
-
|
|
7271
|
+
property({ type: String, reflect: true })
|
|
7269
7272
|
], KemetTabs.prototype, "polarity", 2);
|
|
7270
7273
|
__decorateClass([
|
|
7271
|
-
|
|
7274
|
+
property({ type: String, reflect: true })
|
|
7272
7275
|
], KemetTabs.prototype, "dom", 2);
|
|
7273
7276
|
__decorateClass([
|
|
7274
|
-
|
|
7277
|
+
state()
|
|
7275
7278
|
], KemetTabs.prototype, "tabs", 2);
|
|
7276
7279
|
__decorateClass([
|
|
7277
|
-
|
|
7280
|
+
state()
|
|
7278
7281
|
], KemetTabs.prototype, "panels", 2);
|
|
7279
7282
|
__decorateClass([
|
|
7280
|
-
|
|
7283
|
+
state()
|
|
7281
7284
|
], KemetTabs.prototype, "xDown", 2);
|
|
7282
7285
|
__decorateClass([
|
|
7283
|
-
|
|
7286
|
+
state()
|
|
7284
7287
|
], KemetTabs.prototype, "yDown", 2);
|
|
7285
7288
|
__decorateClass([
|
|
7286
|
-
|
|
7289
|
+
state()
|
|
7287
7290
|
], KemetTabs.prototype, "links", 2);
|
|
7288
7291
|
__decorateClass([
|
|
7289
|
-
|
|
7292
|
+
query("#panels")
|
|
7290
7293
|
], KemetTabs.prototype, "panelsElement", 2);
|
|
7291
7294
|
KemetTabs = __decorateClass([
|
|
7292
|
-
|
|
7295
|
+
customElement("kemet-tabs")
|
|
7293
7296
|
], KemetTabs);
|
|
7294
7297
|
|
|
7295
7298
|
// src/elements/toggle/index.ts
|
|
7296
7299
|
import { html as html33, LitElement as LitElement33 } from "lit";
|
|
7297
|
-
import { customElement as customElement33, property as property33, state as state19 } from "lit/decorators.js";
|
|
7298
7300
|
|
|
7299
7301
|
// src/elements/toggle/styles.css.ts
|
|
7300
7302
|
import { css as css35 } from "lit";
|
|
@@ -7455,45 +7457,44 @@ var KemetToggle = class extends LitElement33 {
|
|
|
7455
7457
|
};
|
|
7456
7458
|
KemetToggle.styles = [styles_css_default29];
|
|
7457
7459
|
__decorateClass([
|
|
7458
|
-
|
|
7460
|
+
property({ type: String })
|
|
7459
7461
|
], KemetToggle.prototype, "name", 2);
|
|
7460
7462
|
__decorateClass([
|
|
7461
|
-
|
|
7463
|
+
property({ type: Boolean, reflect: true })
|
|
7462
7464
|
], KemetToggle.prototype, "checked", 2);
|
|
7463
7465
|
__decorateClass([
|
|
7464
|
-
|
|
7466
|
+
property({ type: Boolean })
|
|
7465
7467
|
], KemetToggle.prototype, "disabled", 2);
|
|
7466
7468
|
__decorateClass([
|
|
7467
|
-
|
|
7469
|
+
property({ type: String })
|
|
7468
7470
|
], KemetToggle.prototype, "label", 2);
|
|
7469
7471
|
__decorateClass([
|
|
7470
|
-
|
|
7472
|
+
property({ type: Boolean })
|
|
7471
7473
|
], KemetToggle.prototype, "show", 2);
|
|
7472
7474
|
__decorateClass([
|
|
7473
|
-
|
|
7475
|
+
property({ type: Boolean })
|
|
7474
7476
|
], KemetToggle.prototype, "squared", 2);
|
|
7475
7477
|
__decorateClass([
|
|
7476
|
-
|
|
7478
|
+
property({ type: String, attribute: "option-checked" })
|
|
7477
7479
|
], KemetToggle.prototype, "optionChecked", 2);
|
|
7478
7480
|
__decorateClass([
|
|
7479
|
-
|
|
7481
|
+
property({ type: String, attribute: "option-unchecked" })
|
|
7480
7482
|
], KemetToggle.prototype, "optionUnchecked", 2);
|
|
7481
7483
|
__decorateClass([
|
|
7482
|
-
|
|
7484
|
+
property({ type: String, reflect: true })
|
|
7483
7485
|
], KemetToggle.prototype, "polarity", 2);
|
|
7484
7486
|
__decorateClass([
|
|
7485
|
-
|
|
7487
|
+
property({ type: String, reflect: true })
|
|
7486
7488
|
], KemetToggle.prototype, "dom", 2);
|
|
7487
7489
|
__decorateClass([
|
|
7488
|
-
|
|
7490
|
+
state()
|
|
7489
7491
|
], KemetToggle.prototype, "value", 2);
|
|
7490
7492
|
KemetToggle = __decorateClass([
|
|
7491
|
-
|
|
7493
|
+
customElement("kemet-toggle")
|
|
7492
7494
|
], KemetToggle);
|
|
7493
7495
|
|
|
7494
7496
|
// src/elements/timer/index.ts
|
|
7495
7497
|
import { html as html34, LitElement as LitElement34 } from "lit";
|
|
7496
|
-
import { customElement as customElement34, property as property34, state as state20 } from "lit/decorators.js";
|
|
7497
7498
|
|
|
7498
7499
|
// src/elements/timer/styles.css.ts
|
|
7499
7500
|
import { css as css36 } from "lit";
|
|
@@ -7582,30 +7583,29 @@ var KemetTimer = class extends LitElement34 {
|
|
|
7582
7583
|
};
|
|
7583
7584
|
KemetTimer.styles = [styles_css_default30];
|
|
7584
7585
|
__decorateClass([
|
|
7585
|
-
|
|
7586
|
+
property({ type: String })
|
|
7586
7587
|
], KemetTimer.prototype, "format", 2);
|
|
7587
7588
|
__decorateClass([
|
|
7588
|
-
|
|
7589
|
+
property({ type: Number })
|
|
7589
7590
|
], KemetTimer.prototype, "amount", 2);
|
|
7590
7591
|
__decorateClass([
|
|
7591
|
-
|
|
7592
|
+
property({ type: String })
|
|
7592
7593
|
], KemetTimer.prototype, "expires", 2);
|
|
7593
7594
|
__decorateClass([
|
|
7594
|
-
|
|
7595
|
+
property({ type: String, reflect: true })
|
|
7595
7596
|
], KemetTimer.prototype, "polarity", 2);
|
|
7596
7597
|
__decorateClass([
|
|
7597
|
-
|
|
7598
|
+
property({ type: String, reflect: true })
|
|
7598
7599
|
], KemetTimer.prototype, "dom", 2);
|
|
7599
7600
|
__decorateClass([
|
|
7600
|
-
|
|
7601
|
+
state()
|
|
7601
7602
|
], KemetTimer.prototype, "interval", 2);
|
|
7602
7603
|
KemetTimer = __decorateClass([
|
|
7603
|
-
|
|
7604
|
+
customElement("kemet-timer")
|
|
7604
7605
|
], KemetTimer);
|
|
7605
7606
|
|
|
7606
7607
|
// src/elements/timer-display/index.ts
|
|
7607
7608
|
import { html as html35, LitElement as LitElement35 } from "lit";
|
|
7608
|
-
import { customElement as customElement35, property as property35, state as state21 } from "lit/decorators.js";
|
|
7609
7609
|
|
|
7610
7610
|
// src/elements/timer-display/styles.css.ts
|
|
7611
7611
|
import { css as css37 } from "lit";
|
|
@@ -7617,12 +7617,12 @@ var styles_css_default31 = css37`:host {
|
|
|
7617
7617
|
// src/elements/timer-display/index.ts
|
|
7618
7618
|
var KemetTimerDisplay = class extends LitElement35 {
|
|
7619
7619
|
constructor() {
|
|
7620
|
-
super();
|
|
7620
|
+
super(...arguments);
|
|
7621
7621
|
this.format = "seconds" /* Seconds */;
|
|
7622
7622
|
this.dom = "initializing";
|
|
7623
|
-
this.getTime();
|
|
7624
7623
|
}
|
|
7625
7624
|
firstUpdated() {
|
|
7625
|
+
this.getTime();
|
|
7626
7626
|
emitEvent(this, "kemet-timer-display-mounted", {
|
|
7627
7627
|
bubbles: true,
|
|
7628
7628
|
composed: true,
|
|
@@ -7671,24 +7671,23 @@ var KemetTimerDisplay = class extends LitElement35 {
|
|
|
7671
7671
|
};
|
|
7672
7672
|
KemetTimerDisplay.styles = [styles_css_default31];
|
|
7673
7673
|
__decorateClass([
|
|
7674
|
-
|
|
7674
|
+
property({ type: String })
|
|
7675
7675
|
], KemetTimerDisplay.prototype, "format", 2);
|
|
7676
7676
|
__decorateClass([
|
|
7677
|
-
|
|
7677
|
+
state()
|
|
7678
7678
|
], KemetTimerDisplay.prototype, "displayTime", 2);
|
|
7679
7679
|
__decorateClass([
|
|
7680
|
-
|
|
7680
|
+
property({ type: String, reflect: true })
|
|
7681
7681
|
], KemetTimerDisplay.prototype, "polarity", 2);
|
|
7682
7682
|
__decorateClass([
|
|
7683
|
-
|
|
7683
|
+
property({ type: String, reflect: true })
|
|
7684
7684
|
], KemetTimerDisplay.prototype, "dom", 2);
|
|
7685
7685
|
KemetTimerDisplay = __decorateClass([
|
|
7686
|
-
|
|
7686
|
+
customElement("kemet-timer-display")
|
|
7687
7687
|
], KemetTimerDisplay);
|
|
7688
7688
|
|
|
7689
7689
|
// src/elements/tracker/index.ts
|
|
7690
7690
|
import { html as html36, LitElement as LitElement36 } from "lit";
|
|
7691
|
-
import { customElement as customElement36, property as property36, state as state22 } from "lit/decorators.js";
|
|
7692
7691
|
|
|
7693
7692
|
// src/elements/tracker/styles.css.ts
|
|
7694
7693
|
import { css as css38 } from "lit";
|
|
@@ -7703,16 +7702,11 @@ var styles_css_default32 = css38`:host {
|
|
|
7703
7702
|
// src/elements/tracker/index.ts
|
|
7704
7703
|
var KemetTracker = class extends LitElement36 {
|
|
7705
7704
|
constructor() {
|
|
7706
|
-
super();
|
|
7705
|
+
super(...arguments);
|
|
7707
7706
|
this.dom = "initializing";
|
|
7708
|
-
this.breakpoint = "767px";
|
|
7709
7707
|
}
|
|
7710
7708
|
firstUpdated() {
|
|
7711
|
-
this.
|
|
7712
|
-
this.isMobile();
|
|
7713
|
-
window.addEventListener("resize", () => {
|
|
7714
|
-
this.isMobile();
|
|
7715
|
-
});
|
|
7709
|
+
this.initializeSteps();
|
|
7716
7710
|
emitEvent(this, "kemet-tracker-mounted", {
|
|
7717
7711
|
bubbles: true,
|
|
7718
7712
|
composed: true,
|
|
@@ -7723,9 +7717,10 @@ var KemetTracker = class extends LitElement36 {
|
|
|
7723
7717
|
this.dom = "mounted";
|
|
7724
7718
|
}
|
|
7725
7719
|
render() {
|
|
7726
|
-
return html36`<slot @slotchange=${() => this.
|
|
7720
|
+
return html36`<slot @slotchange=${() => this.initializeSteps()}></slot>`;
|
|
7727
7721
|
}
|
|
7728
|
-
|
|
7722
|
+
initializeSteps() {
|
|
7723
|
+
this.steps = this.querySelectorAll("kemet-tracker-step");
|
|
7729
7724
|
this.total = this.steps.length;
|
|
7730
7725
|
this.steps.forEach((step, index) => {
|
|
7731
7726
|
step.step = index + 1;
|
|
@@ -7734,36 +7729,26 @@ var KemetTracker = class extends LitElement36 {
|
|
|
7734
7729
|
}
|
|
7735
7730
|
});
|
|
7736
7731
|
}
|
|
7737
|
-
isMobile() {
|
|
7738
|
-
const mediaQuery = window.matchMedia(`(max-width: ${this.breakpoint})`);
|
|
7739
|
-
this.steps.forEach((step) => {
|
|
7740
|
-
step.mobile = mediaQuery.matches;
|
|
7741
|
-
});
|
|
7742
|
-
}
|
|
7743
7732
|
};
|
|
7744
7733
|
KemetTracker.styles = [styles_css_default32];
|
|
7745
7734
|
__decorateClass([
|
|
7746
|
-
|
|
7735
|
+
property({ type: Number })
|
|
7747
7736
|
], KemetTracker.prototype, "total", 2);
|
|
7748
7737
|
__decorateClass([
|
|
7749
|
-
|
|
7750
|
-
], KemetTracker.prototype, "breakpoint", 2);
|
|
7751
|
-
__decorateClass([
|
|
7752
|
-
property36({ type: String, reflect: true })
|
|
7738
|
+
property({ type: String, reflect: true })
|
|
7753
7739
|
], KemetTracker.prototype, "polarity", 2);
|
|
7754
7740
|
__decorateClass([
|
|
7755
|
-
|
|
7741
|
+
property({ type: String, reflect: true })
|
|
7756
7742
|
], KemetTracker.prototype, "dom", 2);
|
|
7757
7743
|
__decorateClass([
|
|
7758
|
-
|
|
7744
|
+
state()
|
|
7759
7745
|
], KemetTracker.prototype, "steps", 2);
|
|
7760
7746
|
KemetTracker = __decorateClass([
|
|
7761
|
-
|
|
7747
|
+
customElement("kemet-tracker")
|
|
7762
7748
|
], KemetTracker);
|
|
7763
7749
|
|
|
7764
7750
|
// src/elements/tracker-step/index.ts
|
|
7765
7751
|
import { html as html37, LitElement as LitElement37 } from "lit";
|
|
7766
|
-
import { customElement as customElement37, property as property37, state as state23 } from "lit/decorators.js";
|
|
7767
7752
|
|
|
7768
7753
|
// src/elements/tracker-step/styles.css.ts
|
|
7769
7754
|
import { css as css39 } from "lit";
|
|
@@ -7891,12 +7876,18 @@ var styles_css_default33 = css39`:host {
|
|
|
7891
7876
|
var KemetTrackerStep = class extends LitElement37 {
|
|
7892
7877
|
constructor() {
|
|
7893
7878
|
super(...arguments);
|
|
7879
|
+
this.breakpoint = "767px";
|
|
7894
7880
|
this.completedSize = 16;
|
|
7881
|
+
this.total = 0;
|
|
7895
7882
|
this.dom = "initializing";
|
|
7896
7883
|
}
|
|
7897
7884
|
firstUpdated() {
|
|
7898
|
-
this.
|
|
7899
|
-
|
|
7885
|
+
this.last = this.step === this.total;
|
|
7886
|
+
this.isMobile();
|
|
7887
|
+
window.addEventListener("resize", () => {
|
|
7888
|
+
this.isMobile();
|
|
7889
|
+
});
|
|
7890
|
+
emitEvent(this, "kemet-tracker-step-mounted", {
|
|
7900
7891
|
bubbles: true,
|
|
7901
7892
|
composed: true,
|
|
7902
7893
|
detail: {
|
|
@@ -7933,7 +7924,7 @@ var KemetTrackerStep = class extends LitElement37 {
|
|
|
7933
7924
|
}
|
|
7934
7925
|
if (!this.mobile && !this.hideDotContent) {
|
|
7935
7926
|
return html37`
|
|
7936
|
-
<span>${this.step}/${this.
|
|
7927
|
+
<span>${this.step}/${this.total}</span>
|
|
7937
7928
|
`;
|
|
7938
7929
|
}
|
|
7939
7930
|
return null;
|
|
@@ -7945,58 +7936,67 @@ var KemetTrackerStep = class extends LitElement37 {
|
|
|
7945
7936
|
return null;
|
|
7946
7937
|
}
|
|
7947
7938
|
handleCompletedLineEnd() {
|
|
7948
|
-
const currentDot = this.
|
|
7939
|
+
const currentDot = this.current ? this.shadowRoot?.querySelector(".dot") : null;
|
|
7949
7940
|
if (currentDot) {
|
|
7950
7941
|
currentDot.classList.add("animate");
|
|
7951
7942
|
}
|
|
7952
7943
|
}
|
|
7944
|
+
isMobile() {
|
|
7945
|
+
const mediaQuery = window.matchMedia(`(max-width: ${this.breakpoint})`);
|
|
7946
|
+
this.mobile = mediaQuery.matches;
|
|
7947
|
+
}
|
|
7953
7948
|
};
|
|
7954
7949
|
KemetTrackerStep.styles = [styles_css_default33];
|
|
7955
7950
|
__decorateClass([
|
|
7956
|
-
|
|
7951
|
+
property({ type: Number })
|
|
7957
7952
|
], KemetTrackerStep.prototype, "step", 2);
|
|
7958
7953
|
__decorateClass([
|
|
7959
|
-
|
|
7954
|
+
property({ type: Boolean, reflect: true })
|
|
7960
7955
|
], KemetTrackerStep.prototype, "completed", 2);
|
|
7961
7956
|
__decorateClass([
|
|
7962
|
-
|
|
7957
|
+
property({ type: Boolean, reflect: true })
|
|
7963
7958
|
], KemetTrackerStep.prototype, "current", 2);
|
|
7964
7959
|
__decorateClass([
|
|
7965
|
-
|
|
7960
|
+
property({ type: Boolean, reflect: true })
|
|
7966
7961
|
], KemetTrackerStep.prototype, "last", 2);
|
|
7967
7962
|
__decorateClass([
|
|
7968
|
-
|
|
7963
|
+
property({ type: String })
|
|
7964
|
+
], KemetTrackerStep.prototype, "breakpoint", 2);
|
|
7965
|
+
__decorateClass([
|
|
7966
|
+
property({ type: Boolean, reflect: true })
|
|
7969
7967
|
], KemetTrackerStep.prototype, "mobile", 2);
|
|
7970
7968
|
__decorateClass([
|
|
7971
|
-
|
|
7969
|
+
property({ type: Boolean, reflect: true, attribute: "hide-dot-content" })
|
|
7972
7970
|
], KemetTrackerStep.prototype, "hideDotContent", 2);
|
|
7973
7971
|
__decorateClass([
|
|
7974
|
-
|
|
7972
|
+
property({ type: Number })
|
|
7975
7973
|
], KemetTrackerStep.prototype, "completedSize", 2);
|
|
7976
7974
|
__decorateClass([
|
|
7977
|
-
|
|
7975
|
+
property({ type: Number })
|
|
7976
|
+
], KemetTrackerStep.prototype, "total", 2);
|
|
7977
|
+
__decorateClass([
|
|
7978
|
+
property({ type: String, reflect: true })
|
|
7978
7979
|
], KemetTrackerStep.prototype, "polarity", 2);
|
|
7979
7980
|
__decorateClass([
|
|
7980
|
-
|
|
7981
|
+
property({ type: String, reflect: true })
|
|
7981
7982
|
], KemetTrackerStep.prototype, "dom", 2);
|
|
7982
7983
|
__decorateClass([
|
|
7983
|
-
|
|
7984
|
+
state()
|
|
7984
7985
|
], KemetTrackerStep.prototype, "tracker", 2);
|
|
7985
7986
|
KemetTrackerStep = __decorateClass([
|
|
7986
|
-
|
|
7987
|
+
customElement("kemet-tracker-step")
|
|
7987
7988
|
], KemetTrackerStep);
|
|
7988
7989
|
|
|
7989
7990
|
// src/elements/input-files/index.ts
|
|
7990
7991
|
import { html as html38, LitElement as LitElement38 } from "lit";
|
|
7991
|
-
import { customElement as customElement38, property as property38, state as state24 } from "lit/decorators.js";
|
|
7992
7992
|
import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
|
|
7993
7993
|
|
|
7994
7994
|
// src/elements/input-files/styles.css.ts
|
|
7995
7995
|
import { css as css40 } from "lit";
|
|
7996
7996
|
var styles_css_default34 = css40`:host {
|
|
7997
|
-
--kemet-upload-color:
|
|
7997
|
+
--kemet-upload-color: inherit;
|
|
7998
7998
|
--kemet-upload-height: 364px;
|
|
7999
|
-
--kemet-upload-border:
|
|
7999
|
+
--kemet-upload-border: 0;
|
|
8000
8000
|
--kemet-upload-background-color: transparent;
|
|
8001
8001
|
|
|
8002
8002
|
color: var(--kemet-upload-color);
|
|
@@ -8155,62 +8155,61 @@ var InputFiles = class extends LitElement38 {
|
|
|
8155
8155
|
};
|
|
8156
8156
|
InputFiles.styles = [styles_css_default34];
|
|
8157
8157
|
__decorateClass([
|
|
8158
|
-
|
|
8158
|
+
property({ type: String })
|
|
8159
8159
|
], InputFiles.prototype, "slug", 2);
|
|
8160
8160
|
__decorateClass([
|
|
8161
|
-
|
|
8161
|
+
property({ type: String })
|
|
8162
8162
|
], InputFiles.prototype, "accept", 2);
|
|
8163
8163
|
__decorateClass([
|
|
8164
|
-
|
|
8164
|
+
property({ type: Boolean })
|
|
8165
8165
|
], InputFiles.prototype, "multiple", 2);
|
|
8166
8166
|
__decorateClass([
|
|
8167
|
-
|
|
8167
|
+
property({ type: Boolean, reflect: true })
|
|
8168
8168
|
], InputFiles.prototype, "over", 2);
|
|
8169
8169
|
__decorateClass([
|
|
8170
|
-
|
|
8170
|
+
property({ type: String })
|
|
8171
8171
|
], InputFiles.prototype, "heading", 2);
|
|
8172
8172
|
__decorateClass([
|
|
8173
|
-
|
|
8173
|
+
property({ type: Boolean, reflect: true })
|
|
8174
8174
|
], InputFiles.prototype, "mobile", 2);
|
|
8175
8175
|
__decorateClass([
|
|
8176
|
-
|
|
8176
|
+
property({ type: String, reflect: true })
|
|
8177
8177
|
], InputFiles.prototype, "breakpoint", 2);
|
|
8178
8178
|
__decorateClass([
|
|
8179
|
-
|
|
8179
|
+
property({ type: Boolean, reflect: true, attribute: "no-drag-drop" })
|
|
8180
8180
|
], InputFiles.prototype, "noDragDrop", 2);
|
|
8181
8181
|
__decorateClass([
|
|
8182
|
-
|
|
8182
|
+
property({ type: Number, attribute: "max-size" })
|
|
8183
8183
|
], InputFiles.prototype, "maxSize", 2);
|
|
8184
8184
|
__decorateClass([
|
|
8185
|
-
|
|
8185
|
+
property({ type: String, attribute: "button-label" })
|
|
8186
8186
|
], InputFiles.prototype, "buttonLabel", 2);
|
|
8187
8187
|
__decorateClass([
|
|
8188
|
-
|
|
8188
|
+
property({ type: String, reflect: true })
|
|
8189
8189
|
], InputFiles.prototype, "polarity", 2);
|
|
8190
8190
|
__decorateClass([
|
|
8191
|
-
|
|
8191
|
+
property({ type: String, reflect: true })
|
|
8192
8192
|
], InputFiles.prototype, "dom", 2);
|
|
8193
8193
|
__decorateClass([
|
|
8194
|
-
|
|
8194
|
+
state()
|
|
8195
8195
|
], InputFiles.prototype, "fileInputElement", 2);
|
|
8196
8196
|
__decorateClass([
|
|
8197
|
-
|
|
8197
|
+
state()
|
|
8198
8198
|
], InputFiles.prototype, "upload", 2);
|
|
8199
8199
|
InputFiles = __decorateClass([
|
|
8200
|
-
|
|
8200
|
+
customElement("kemet-input-files")
|
|
8201
8201
|
], InputFiles);
|
|
8202
8202
|
|
|
8203
8203
|
// src/elements/input-file/index.ts
|
|
8204
8204
|
import { html as html39, LitElement as LitElement39 } from "lit";
|
|
8205
|
-
import { customElement as customElement39, property as property39 } from "lit/decorators.js";
|
|
8206
8205
|
|
|
8207
8206
|
// src/elements/input-file/styles.css.ts
|
|
8208
8207
|
import { css as css41 } from "lit";
|
|
8209
8208
|
var styles_css_default35 = css41`:host {
|
|
8210
8209
|
--kemet-upload-file-ripple-color: var(--kemet-color-font-active);
|
|
8211
|
-
--kemet-upload-file-color:
|
|
8210
|
+
--kemet-upload-file-color: inherit;
|
|
8212
8211
|
--kemet-upload-file-padding: 0.5rem 1rem;
|
|
8213
|
-
--kemet-upload-file-border: 1px solid
|
|
8212
|
+
--kemet-upload-file-border: 1px solid;
|
|
8214
8213
|
|
|
8215
8214
|
color: var(--kemet-upload-file-color);
|
|
8216
8215
|
display: grid;
|
|
@@ -8223,11 +8222,11 @@ var styles_css_default35 = css41`:host {
|
|
|
8223
8222
|
border: var(--kemet-upload-file-border);
|
|
8224
8223
|
}
|
|
8225
8224
|
|
|
8226
|
-
:host([status=
|
|
8225
|
+
:host([status=error]) {
|
|
8227
8226
|
border: 1px solid var(--kemet-color-font-error);
|
|
8228
8227
|
}
|
|
8229
8228
|
|
|
8230
|
-
:host([status=
|
|
8229
|
+
:host([status=complete]) {
|
|
8231
8230
|
border: 1px solid var(--kemet-color-font-success);
|
|
8232
8231
|
}
|
|
8233
8232
|
|
|
@@ -8245,13 +8244,13 @@ h3 {
|
|
|
8245
8244
|
transform: scale(0.8);
|
|
8246
8245
|
}
|
|
8247
8246
|
|
|
8248
|
-
:host([status=
|
|
8249
|
-
:host([status=
|
|
8247
|
+
:host([status=complete]) .message,
|
|
8248
|
+
:host([status=complete]) .indicator {
|
|
8250
8249
|
color: rgb(var(--kemet-color-success));
|
|
8251
8250
|
}
|
|
8252
8251
|
|
|
8253
|
-
:host([status=
|
|
8254
|
-
:host([status=
|
|
8252
|
+
:host([status=error]) .message,
|
|
8253
|
+
:host([status=error]) .indicator {
|
|
8255
8254
|
color: rgb(var(--kemet-color-error));
|
|
8256
8255
|
}
|
|
8257
8256
|
`;
|
|
@@ -8373,39 +8372,38 @@ var InputFile = class extends LitElement39 {
|
|
|
8373
8372
|
};
|
|
8374
8373
|
InputFile.styles = [styles_css_default35, loaders_css_default];
|
|
8375
8374
|
__decorateClass([
|
|
8376
|
-
|
|
8375
|
+
property({ type: String })
|
|
8377
8376
|
], InputFile.prototype, "name", 2);
|
|
8378
8377
|
__decorateClass([
|
|
8379
|
-
|
|
8378
|
+
property({ type: Number })
|
|
8380
8379
|
], InputFile.prototype, "loaded", 2);
|
|
8381
8380
|
__decorateClass([
|
|
8382
|
-
|
|
8381
|
+
property({ type: Number })
|
|
8383
8382
|
], InputFile.prototype, "size", 2);
|
|
8384
8383
|
__decorateClass([
|
|
8385
|
-
|
|
8384
|
+
property({ type: String })
|
|
8386
8385
|
], InputFile.prototype, "type", 2);
|
|
8387
8386
|
__decorateClass([
|
|
8388
|
-
|
|
8387
|
+
property({ type: String, reflect: true })
|
|
8389
8388
|
], InputFile.prototype, "status", 2);
|
|
8390
8389
|
__decorateClass([
|
|
8391
|
-
|
|
8390
|
+
property({ type: Number })
|
|
8392
8391
|
], InputFile.prototype, "percent", 2);
|
|
8393
8392
|
__decorateClass([
|
|
8394
|
-
|
|
8393
|
+
property({ type: String })
|
|
8395
8394
|
], InputFile.prototype, "message", 2);
|
|
8396
8395
|
__decorateClass([
|
|
8397
|
-
|
|
8396
|
+
property({ type: String, reflect: true })
|
|
8398
8397
|
], InputFile.prototype, "polarity", 2);
|
|
8399
8398
|
__decorateClass([
|
|
8400
|
-
|
|
8399
|
+
property({ type: String, reflect: true })
|
|
8401
8400
|
], InputFile.prototype, "dom", 2);
|
|
8402
8401
|
InputFile = __decorateClass([
|
|
8403
|
-
|
|
8402
|
+
customElement("kemet-input-file")
|
|
8404
8403
|
], InputFile);
|
|
8405
8404
|
|
|
8406
8405
|
// src/elements/typewriter/index.ts
|
|
8407
8406
|
import { html as html40, LitElement as LitElement40 } from "lit";
|
|
8408
|
-
import { customElement as customElement40, property as property40 } from "lit/decorators.js";
|
|
8409
8407
|
import Typewriter from "typewriter-effect/dist/core";
|
|
8410
8408
|
var KemetTypewriter = class extends LitElement40 {
|
|
8411
8409
|
constructor() {
|
|
@@ -8480,28 +8478,28 @@ var KemetTypewriter = class extends LitElement40 {
|
|
|
8480
8478
|
}
|
|
8481
8479
|
};
|
|
8482
8480
|
__decorateClass([
|
|
8483
|
-
|
|
8481
|
+
property({ type: String })
|
|
8484
8482
|
], KemetTypewriter.prototype, "content", 2);
|
|
8485
8483
|
__decorateClass([
|
|
8486
|
-
|
|
8484
|
+
property({ type: Number })
|
|
8487
8485
|
], KemetTypewriter.prototype, "delay", 2);
|
|
8488
8486
|
__decorateClass([
|
|
8489
|
-
|
|
8487
|
+
property({ type: String })
|
|
8490
8488
|
], KemetTypewriter.prototype, "cursor", 2);
|
|
8491
8489
|
__decorateClass([
|
|
8492
|
-
|
|
8490
|
+
property({ type: Boolean })
|
|
8493
8491
|
], KemetTypewriter.prototype, "loop", 2);
|
|
8494
8492
|
__decorateClass([
|
|
8495
|
-
|
|
8493
|
+
property({ type: Number, attribute: "restart-delay" })
|
|
8496
8494
|
], KemetTypewriter.prototype, "restartDelay", 2);
|
|
8497
8495
|
__decorateClass([
|
|
8498
|
-
|
|
8496
|
+
property({ type: String, reflect: true })
|
|
8499
8497
|
], KemetTypewriter.prototype, "polarity", 2);
|
|
8500
8498
|
__decorateClass([
|
|
8501
|
-
|
|
8499
|
+
property({ type: String, reflect: true })
|
|
8502
8500
|
], KemetTypewriter.prototype, "dom", 2);
|
|
8503
8501
|
KemetTypewriter = __decorateClass([
|
|
8504
|
-
|
|
8502
|
+
customElement("kemet-typewriter")
|
|
8505
8503
|
], KemetTypewriter);
|
|
8506
8504
|
|
|
8507
8505
|
// src/wrappers/react.ts
|