@synergy-design-system/components 0.1.0 → 1.0.0-main.10
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/LICENSE +28 -0
- package/README.md +150 -1
- package/dist/chunks/{chunk.Y5USHY74.js → chunk.5FQRRIZP.js} +4 -3
- package/dist/chunks/chunk.5FQRRIZP.js.map +7 -0
- package/dist/chunks/{chunk.2DA7CIOQ.js → chunk.5OIEI73E.js} +3 -2
- package/dist/chunks/chunk.5OIEI73E.js.map +7 -0
- package/dist/chunks/{chunk.7XI5LKCC.js → chunk.6C4JXZZN.js} +2 -1
- package/dist/chunks/chunk.6C4JXZZN.js.map +7 -0
- package/dist/chunks/{chunk.MAS2SHYD.js → chunk.A3SKDWCT.js} +1 -0
- package/dist/chunks/chunk.A3SKDWCT.js.map +7 -0
- package/dist/chunks/{chunk.SVIWEI6P.js → chunk.BREU4ILT.js} +2 -1
- package/dist/chunks/chunk.BREU4ILT.js.map +7 -0
- package/dist/chunks/{chunk.2CFEYJLE.js → chunk.C7624ITA.js} +1 -0
- package/dist/chunks/chunk.C7624ITA.js.map +7 -0
- package/dist/chunks/{chunk.PM7NIY3M.js → chunk.DJOAQ4JU.js} +1 -0
- package/dist/chunks/chunk.DJOAQ4JU.js.map +7 -0
- package/dist/chunks/{chunk.Q5SD5LHE.js → chunk.GHPQ7ZMD.js} +11 -242
- package/dist/chunks/chunk.GHPQ7ZMD.js.map +7 -0
- package/dist/chunks/chunk.IFBY43YE.js +138 -0
- package/dist/chunks/chunk.IFBY43YE.js.map +7 -0
- package/dist/chunks/{chunk.HQUF2ZAX.js → chunk.LE4ARJTE.js} +3 -2
- package/dist/chunks/chunk.LE4ARJTE.js.map +7 -0
- package/dist/chunks/{chunk.QPNUJNT5.js → chunk.N2I6HVX3.js} +2 -1
- package/dist/chunks/chunk.N2I6HVX3.js.map +7 -0
- package/dist/chunks/{chunk.KHU4AFPL.js → chunk.N7UUNTQC.js} +2 -1
- package/dist/chunks/chunk.N7UUNTQC.js.map +7 -0
- package/dist/chunks/{chunk.4NMNW5OM.js → chunk.O7USYXBT.js} +1 -0
- package/dist/chunks/chunk.O7USYXBT.js.map +7 -0
- package/dist/chunks/{chunk.NBKDLFEY.js → chunk.OEWBEV4Z.js} +7 -6
- package/dist/chunks/chunk.OEWBEV4Z.js.map +7 -0
- package/dist/chunks/{chunk.HSF5YXAS.js → chunk.OLZ3GIFL.js} +19 -35
- package/dist/chunks/chunk.OLZ3GIFL.js.map +7 -0
- package/dist/chunks/chunk.R55DOPNK.js +12 -0
- package/dist/chunks/chunk.R55DOPNK.js.map +7 -0
- package/dist/chunks/{chunk.2A3352EO.js → chunk.R6VNLE6N.js} +1 -0
- package/dist/chunks/chunk.R6VNLE6N.js.map +7 -0
- package/dist/chunks/{chunk.XVEDHRRP.js → chunk.RLGMLXIP.js} +20 -22
- package/dist/chunks/chunk.RLGMLXIP.js.map +7 -0
- package/dist/chunks/{chunk.VRTJZYIC.js → chunk.U7ZJ22QM.js} +1 -0
- package/dist/chunks/chunk.U7ZJ22QM.js.map +7 -0
- package/dist/chunks/chunk.W46CFM2R.js +90 -0
- package/dist/chunks/chunk.W46CFM2R.js.map +7 -0
- package/dist/chunks/{chunk.Z6AW3P62.js → chunk.WDCAHRYG.js} +4 -48
- package/dist/chunks/chunk.WDCAHRYG.js.map +7 -0
- package/dist/chunks/chunk.WTCUSH7V.js +42 -0
- package/dist/chunks/chunk.WTCUSH7V.js.map +7 -0
- package/dist/chunks/chunk.XGXFE6IF.js +49 -0
- package/dist/chunks/chunk.XGXFE6IF.js.map +7 -0
- package/dist/chunks/{chunk.O3LUPMYG.js → chunk.Y7DVVKVJ.js} +82 -18
- package/dist/chunks/chunk.Y7DVVKVJ.js.map +7 -0
- package/dist/components/button/button.component.d.ts +1 -10
- package/dist/components/button/button.component.js +19 -16
- package/dist/components/button/button.component.js.map +7 -0
- package/dist/components/button/button.custom.styles.d.ts +2 -0
- package/dist/components/button/button.custom.styles.js +8 -0
- package/dist/components/button/button.custom.styles.js.map +7 -0
- package/dist/components/button/button.js +21 -21
- package/dist/components/button/button.js.map +7 -0
- package/dist/components/button/button.styles.js +5 -3
- package/dist/components/button/button.styles.js.map +7 -0
- package/dist/components/checkbox/checkbox.custom.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.custom.styles.js +11 -0
- package/dist/components/checkbox/checkbox.custom.styles.js.map +7 -0
- package/dist/components/icon/icon.component.js +10 -9
- package/dist/components/icon/icon.component.js.map +7 -0
- package/dist/components/icon/icon.js +10 -9
- package/dist/components/icon/icon.js.map +7 -0
- package/dist/components/icon/icon.styles.js +4 -3
- package/dist/components/icon/icon.styles.js.map +7 -0
- package/dist/components/icon/library.default.js +4 -3
- package/dist/components/icon/library.default.js.map +7 -0
- package/dist/components/icon/library.js +6 -5
- package/dist/components/icon/library.js.map +7 -0
- package/dist/components/icon/library.system.js +3 -2
- package/dist/components/icon/library.system.js.map +7 -0
- package/dist/components/input/input.component.d.ts +0 -4
- package/dist/components/input/input.component.js +17 -14
- package/dist/components/input/input.component.js.map +7 -0
- package/dist/components/input/input.custom.styles.d.ts +2 -0
- package/dist/components/input/input.custom.styles.js +8 -0
- package/dist/components/input/input.custom.styles.js.map +7 -0
- package/dist/components/input/input.js +18 -15
- package/dist/components/input/input.js.map +7 -0
- package/dist/components/input/input.styles.js +5 -3
- package/dist/components/input/input.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.js +8 -7
- package/dist/components/spinner/spinner.component.js.map +7 -0
- package/dist/components/spinner/spinner.styles.js +4 -3
- package/dist/components/spinner/spinner.styles.js.map +7 -0
- package/dist/components/textarea/textarea.custom.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.custom.styles.js +11 -0
- package/dist/components/textarea/textarea.custom.styles.js.map +7 -0
- package/dist/custom-elements.json +11 -108
- package/dist/events/events.d.ts +8 -8
- package/dist/styles/form-control.custom.styles.d.ts +2 -0
- package/dist/synergy-autoloader.js +3 -2
- package/dist/synergy-autoloader.js.map +7 -0
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +34 -16
- package/dist/synergy.js.map +7 -0
- package/dist/translations/de.js +4 -3
- package/dist/translations/de.js.map +7 -0
- package/dist/translations/en.js +3 -2
- package/dist/translations/en.js.map +7 -0
- package/dist/utilities/base-path.js +3 -2
- package/dist/utilities/base-path.js.map +7 -0
- package/dist/utilities/form.d.ts +11 -0
- package/dist/utilities/form.js +11 -0
- package/dist/utilities/form.js.map +7 -0
- package/dist/utilities/localize.js +4 -3
- package/dist/utilities/localize.js.map +7 -0
- package/dist/vscode.html-custom-data.json +2 -31
- package/dist/web-types.json +4 -56
- package/package.json +73 -34
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
10
|
-
import "../../chunks/chunk.
|
|
11
|
-
import "../../chunks/chunk.
|
|
12
|
-
import "../../chunks/chunk.
|
|
13
|
-
import "../../chunks/chunk.
|
|
14
|
-
import "../../chunks/chunk.
|
|
15
|
-
import "../../chunks/chunk.
|
|
16
|
-
import "../../chunks/chunk.
|
|
17
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.N7UUNTQC.js";
|
|
4
|
+
import "../../chunks/chunk.RLGMLXIP.js";
|
|
5
|
+
import "../../chunks/chunk.Y7DVVKVJ.js";
|
|
6
|
+
import "../../chunks/chunk.W46CFM2R.js";
|
|
7
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
|
+
import "../../chunks/chunk.R6VNLE6N.js";
|
|
9
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
10
|
+
import "../../chunks/chunk.WDCAHRYG.js";
|
|
11
|
+
import "../../chunks/chunk.OEWBEV4Z.js";
|
|
12
|
+
import "../../chunks/chunk.LE4ARJTE.js";
|
|
13
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
14
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
15
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
16
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
17
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
18
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
19
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
18
20
|
export {
|
|
19
21
|
input_default as default
|
|
20
22
|
};
|
|
23
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_styles_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.Y7DVVKVJ.js";
|
|
4
|
+
import "../../chunks/chunk.W46CFM2R.js";
|
|
5
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
6
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
6
7
|
export {
|
|
7
8
|
input_styles_default as default
|
|
8
9
|
};
|
|
10
|
+
//# sourceMappingURL=input.styles.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
7
|
-
import "../../chunks/chunk.
|
|
8
|
-
import "../../chunks/chunk.
|
|
9
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.5FQRRIZP.js";
|
|
4
|
+
import "../../chunks/chunk.N2I6HVX3.js";
|
|
5
|
+
import "../../chunks/chunk.R6VNLE6N.js";
|
|
6
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
7
|
+
import "../../chunks/chunk.LE4ARJTE.js";
|
|
8
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
9
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
10
10
|
export {
|
|
11
11
|
SynSpinner as default
|
|
12
12
|
};
|
|
13
|
+
//# sourceMappingURL=spinner.component.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spinner_styles_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.N2I6HVX3.js";
|
|
4
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
5
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
6
6
|
export {
|
|
7
7
|
spinner_styles_default as default
|
|
8
8
|
};
|
|
9
|
+
//# sourceMappingURL=spinner.styles.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
2
|
+
|
|
3
|
+
// src/components/textarea/textarea.custom.styles.ts
|
|
4
|
+
import { css } from "lit";
|
|
5
|
+
var textarea_custom_styles_default = css`
|
|
6
|
+
/* Write custom CSS here */
|
|
7
|
+
`;
|
|
8
|
+
export {
|
|
9
|
+
textarea_custom_styles_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=textarea.custom.styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/textarea/textarea.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* Write custom CSS here */\n`;\n"],
|
|
5
|
+
"mappings": ";;;AAAA,SAAS,WAAW;AAEpB,IAAO,iCAAQ;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"kind": "field",
|
|
119
119
|
"name": "variant",
|
|
120
120
|
"type": {
|
|
121
|
-
"text": "'
|
|
121
|
+
"text": "'filled' | 'outline' | 'text'"
|
|
122
122
|
},
|
|
123
|
-
"default": "'
|
|
123
|
+
"default": "'filled'",
|
|
124
124
|
"description": "The button's theme variant.",
|
|
125
125
|
"attribute": "variant",
|
|
126
126
|
"reflects": true
|
|
@@ -169,39 +169,6 @@
|
|
|
169
169
|
"attribute": "loading",
|
|
170
170
|
"reflects": true
|
|
171
171
|
},
|
|
172
|
-
{
|
|
173
|
-
"kind": "field",
|
|
174
|
-
"name": "outline",
|
|
175
|
-
"type": {
|
|
176
|
-
"text": "boolean"
|
|
177
|
-
},
|
|
178
|
-
"default": "false",
|
|
179
|
-
"description": "Draws an outlined button.",
|
|
180
|
-
"attribute": "outline",
|
|
181
|
-
"reflects": true
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"kind": "field",
|
|
185
|
-
"name": "pill",
|
|
186
|
-
"type": {
|
|
187
|
-
"text": "boolean"
|
|
188
|
-
},
|
|
189
|
-
"default": "false",
|
|
190
|
-
"description": "Draws a pill-style button with rounded edges.",
|
|
191
|
-
"attribute": "pill",
|
|
192
|
-
"reflects": true
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"kind": "field",
|
|
196
|
-
"name": "circle",
|
|
197
|
-
"type": {
|
|
198
|
-
"text": "boolean"
|
|
199
|
-
},
|
|
200
|
-
"default": "false",
|
|
201
|
-
"description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
|
|
202
|
-
"attribute": "circle",
|
|
203
|
-
"reflects": true
|
|
204
|
-
},
|
|
205
172
|
{
|
|
206
173
|
"kind": "field",
|
|
207
174
|
"name": "type",
|
|
@@ -468,9 +435,9 @@
|
|
|
468
435
|
{
|
|
469
436
|
"name": "variant",
|
|
470
437
|
"type": {
|
|
471
|
-
"text": "'
|
|
438
|
+
"text": "'filled' | 'outline' | 'text'"
|
|
472
439
|
},
|
|
473
|
-
"default": "'
|
|
440
|
+
"default": "'filled'",
|
|
474
441
|
"description": "The button's theme variant.",
|
|
475
442
|
"fieldName": "variant"
|
|
476
443
|
},
|
|
@@ -510,33 +477,6 @@
|
|
|
510
477
|
"description": "Draws the button in a loading state.",
|
|
511
478
|
"fieldName": "loading"
|
|
512
479
|
},
|
|
513
|
-
{
|
|
514
|
-
"name": "outline",
|
|
515
|
-
"type": {
|
|
516
|
-
"text": "boolean"
|
|
517
|
-
},
|
|
518
|
-
"default": "false",
|
|
519
|
-
"description": "Draws an outlined button.",
|
|
520
|
-
"fieldName": "outline"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"name": "pill",
|
|
524
|
-
"type": {
|
|
525
|
-
"text": "boolean"
|
|
526
|
-
},
|
|
527
|
-
"default": "false",
|
|
528
|
-
"description": "Draws a pill-style button with rounded edges.",
|
|
529
|
-
"fieldName": "pill"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"name": "circle",
|
|
533
|
-
"type": {
|
|
534
|
-
"text": "boolean"
|
|
535
|
-
},
|
|
536
|
-
"default": "false",
|
|
537
|
-
"description": "Draws a circular icon button. When this attribute is present, the button expects a single `<syn-icon>` in the\ndefault slot.",
|
|
538
|
-
"fieldName": "circle"
|
|
539
|
-
},
|
|
540
480
|
{
|
|
541
481
|
"name": "type",
|
|
542
482
|
"type": {
|
|
@@ -975,7 +915,7 @@
|
|
|
975
915
|
"name": "hasSlotController",
|
|
976
916
|
"privacy": "private",
|
|
977
917
|
"readonly": true,
|
|
978
|
-
"default": "new HasSlotController(this, 'help-text', 'label')"
|
|
918
|
+
"default": "new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix')"
|
|
979
919
|
},
|
|
980
920
|
{
|
|
981
921
|
"kind": "field",
|
|
@@ -1070,28 +1010,6 @@
|
|
|
1070
1010
|
"attribute": "size",
|
|
1071
1011
|
"reflects": true
|
|
1072
1012
|
},
|
|
1073
|
-
{
|
|
1074
|
-
"kind": "field",
|
|
1075
|
-
"name": "filled",
|
|
1076
|
-
"type": {
|
|
1077
|
-
"text": "boolean"
|
|
1078
|
-
},
|
|
1079
|
-
"default": "false",
|
|
1080
|
-
"description": "Draws a filled input.",
|
|
1081
|
-
"attribute": "filled",
|
|
1082
|
-
"reflects": true
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"kind": "field",
|
|
1086
|
-
"name": "pill",
|
|
1087
|
-
"type": {
|
|
1088
|
-
"text": "boolean"
|
|
1089
|
-
},
|
|
1090
|
-
"default": "false",
|
|
1091
|
-
"description": "Draws a pill-style input with rounded edges.",
|
|
1092
|
-
"attribute": "pill",
|
|
1093
|
-
"reflects": true
|
|
1094
|
-
},
|
|
1095
1013
|
{
|
|
1096
1014
|
"kind": "field",
|
|
1097
1015
|
"name": "label",
|
|
@@ -1638,24 +1556,6 @@
|
|
|
1638
1556
|
"description": "The input's size.",
|
|
1639
1557
|
"fieldName": "size"
|
|
1640
1558
|
},
|
|
1641
|
-
{
|
|
1642
|
-
"name": "filled",
|
|
1643
|
-
"type": {
|
|
1644
|
-
"text": "boolean"
|
|
1645
|
-
},
|
|
1646
|
-
"default": "false",
|
|
1647
|
-
"description": "Draws a filled input.",
|
|
1648
|
-
"fieldName": "filled"
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"name": "pill",
|
|
1652
|
-
"type": {
|
|
1653
|
-
"text": "boolean"
|
|
1654
|
-
},
|
|
1655
|
-
"default": "false",
|
|
1656
|
-
"description": "Draws a pill-style input with rounded edges.",
|
|
1657
|
-
"fieldName": "pill"
|
|
1658
|
-
},
|
|
1659
1559
|
{
|
|
1660
1560
|
"name": "label",
|
|
1661
1561
|
"type": {
|
|
@@ -1959,9 +1859,12 @@
|
|
|
1959
1859
|
"package": {
|
|
1960
1860
|
"name": "@synergy-design-system/components",
|
|
1961
1861
|
"description": "",
|
|
1962
|
-
"version": "0.
|
|
1963
|
-
"author":
|
|
1964
|
-
|
|
1862
|
+
"version": "1.0.0-main.10",
|
|
1863
|
+
"author": {
|
|
1864
|
+
"name": "SICK Global UX Foundation",
|
|
1865
|
+
"url": "https://www.sick.com"
|
|
1866
|
+
},
|
|
1867
|
+
"homepage": "https://github.com/SickDesignSystem/synergy/tree/main/packages/components",
|
|
1965
1868
|
"license": "ISC"
|
|
1966
1869
|
}
|
|
1967
1870
|
}
|
package/dist/events/events.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
1
|
+
export type * from './syn-blur.ts';
|
|
2
|
+
export type * from './syn-change.ts';
|
|
3
|
+
export type * from './syn-clear.ts';
|
|
4
|
+
export type * from './syn-error.ts';
|
|
5
|
+
export type * from './syn-focus.ts';
|
|
6
|
+
export type * from './syn-input.ts';
|
|
7
|
+
export type * from './syn-invalid.ts';
|
|
8
|
+
export type * from './syn-load.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBasePath
|
|
3
|
-
} from "./chunks/chunk.
|
|
4
|
-
import "./chunks/chunk.
|
|
3
|
+
} from "./chunks/chunk.C7624ITA.js";
|
|
4
|
+
import "./chunks/chunk.DJOAQ4JU.js";
|
|
5
5
|
|
|
6
6
|
// src/synergy-autoloader.ts
|
|
7
7
|
var observer = new MutationObserver((mutations) => {
|
|
@@ -38,3 +38,4 @@ observer.observe(document.documentElement, { subtree: true, childList: true });
|
|
|
38
38
|
export {
|
|
39
39
|
discover
|
|
40
40
|
};
|
|
41
|
+
//# sourceMappingURL=synergy-autoloader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/synergy-autoloader.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { getBasePath } from './utilities/base-path.js';\n\nconst observer = new MutationObserver(mutations => {\n for (const { addedNodes } of mutations) {\n for (const node of addedNodes) {\n if (node.nodeType === Node.ELEMENT_NODE) {\n discover(node as Element);\n }\n }\n }\n});\n\n/**\n * Checks a node for undefined elements and attempts to register them.\n */\nexport async function discover(root: Element | ShadowRoot) {\n const rootTagName = root instanceof Element ? root.tagName.toLowerCase() : '';\n const rootIsSynergyElement = rootTagName?.startsWith('syn-');\n const tags = [...root.querySelectorAll(':not(:defined)')]\n .map(el => el.tagName.toLowerCase())\n .filter(tag => tag.startsWith('syn-'));\n\n // If the root element is an undefined Synergy component, add it to the list\n if (rootIsSynergyElement && !customElements.get(rootTagName)) {\n tags.push(rootTagName);\n }\n\n // Make the list unique\n const tagsToRegister = [...new Set(tags)];\n\n await Promise.allSettled(tagsToRegister.map(tagName => register(tagName)));\n}\n\n/**\n * Registers an element by tag name.\n */\nfunction register(tagName: string): Promise<void> {\n // If the element is already defined, there's nothing more to do\n if (customElements.get(tagName)) {\n return Promise.resolve();\n }\n\n const tagWithoutPrefix = tagName.replace(/^syn-/i, '');\n const path = getBasePath(`components/${tagWithoutPrefix}/${tagWithoutPrefix}.js`);\n\n // Register it\n return new Promise((resolve, reject) => {\n import(path).then(() => resolve()).catch(() => reject(new Error(`Unable to autoload <${tagName}> from ${path}`)));\n });\n}\n\n// Initial discovery\ndiscover(document.body);\n\n// Listen for new undefined elements\nobserver.observe(document.documentElement, { subtree: true, childList: true });\n"],
|
|
5
|
+
"mappings": ";;;;;;AAQA,IAAM,WAAW,IAAI,iBAAiB,eAAa;AACjD,aAAW,EAAE,WAAW,KAAK,WAAW;AACtC,eAAW,QAAQ,YAAY;AAC7B,UAAI,KAAK,aAAa,KAAK,cAAc;AACvC,iBAAS,IAAe;AAAA,MAC1B;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAKD,eAAsB,SAAS,MAA4B;AACzD,QAAM,cAAc,gBAAgB,UAAU,KAAK,QAAQ,YAAY,IAAI;AAC3E,QAAM,uBAAuB,2CAAa,WAAW;AACrD,QAAM,OAAO,CAAC,GAAG,KAAK,iBAAiB,gBAAgB,CAAC,EACrD,IAAI,QAAM,GAAG,QAAQ,YAAY,CAAC,EAClC,OAAO,SAAO,IAAI,WAAW,MAAM,CAAC;AAGvC,MAAI,wBAAwB,CAAC,eAAe,IAAI,WAAW,GAAG;AAC5D,SAAK,KAAK,WAAW;AAAA,EACvB;AAGA,QAAM,iBAAiB,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC;AAExC,QAAM,QAAQ,WAAW,eAAe,IAAI,aAAW,SAAS,OAAO,CAAC,CAAC;AAC3E;AAKA,SAAS,SAAS,SAAgC;AAEhD,MAAI,eAAe,IAAI,OAAO,GAAG;AAC/B,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAEA,QAAM,mBAAmB,QAAQ,QAAQ,UAAU,EAAE;AACrD,QAAM,OAAO,YAAY,cAAc,gBAAgB,IAAI,gBAAgB,KAAK;AAGhF,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,WAAO,MAAM,KAAK,MAAM,QAAQ,CAAC,EAAE,MAAM,MAAM,OAAO,IAAI,MAAM,uBAAuB,OAAO,UAAU,IAAI,EAAE,CAAC,CAAC;AAAA,EAClH,CAAC;AACH;AAGA,SAAS,SAAS,IAAI;AAGtB,SAAS,QAAQ,SAAS,iBAAiB,EAAE,SAAS,MAAM,WAAW,KAAK,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/synergy.d.ts
CHANGED
package/dist/synergy.js
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input_default
|
|
3
|
-
} from "./chunks/chunk.
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "./chunks/chunk.
|
|
9
|
-
import "./chunks/chunk.
|
|
10
|
-
import "./chunks/chunk.
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "./chunks/chunk.
|
|
15
|
-
import "./chunks/chunk.
|
|
16
|
-
import "./chunks/chunk.
|
|
17
|
-
import "./chunks/chunk.
|
|
3
|
+
} from "./chunks/chunk.N7UUNTQC.js";
|
|
4
|
+
import {
|
|
5
|
+
getFormControls,
|
|
6
|
+
serialize
|
|
7
|
+
} from "./chunks/chunk.WTCUSH7V.js";
|
|
8
|
+
import "./chunks/chunk.RLGMLXIP.js";
|
|
9
|
+
import "./chunks/chunk.Y7DVVKVJ.js";
|
|
10
|
+
import "./chunks/chunk.W46CFM2R.js";
|
|
11
|
+
import {
|
|
12
|
+
button_default
|
|
13
|
+
} from "./chunks/chunk.R55DOPNK.js";
|
|
14
|
+
import "./chunks/chunk.OLZ3GIFL.js";
|
|
15
|
+
import "./chunks/chunk.5FQRRIZP.js";
|
|
16
|
+
import "./chunks/chunk.N2I6HVX3.js";
|
|
17
|
+
import "./chunks/chunk.XGXFE6IF.js";
|
|
18
|
+
import "./chunks/chunk.R6VNLE6N.js";
|
|
19
|
+
import "./chunks/chunk.A3SKDWCT.js";
|
|
20
|
+
import "./chunks/chunk.WDCAHRYG.js";
|
|
21
|
+
import "./chunks/chunk.GHPQ7ZMD.js";
|
|
22
|
+
import "./chunks/chunk.IFBY43YE.js";
|
|
23
|
+
import "./chunks/chunk.OEWBEV4Z.js";
|
|
24
|
+
import "./chunks/chunk.LE4ARJTE.js";
|
|
25
|
+
import "./chunks/chunk.5OIEI73E.js";
|
|
26
|
+
import "./chunks/chunk.6C4JXZZN.js";
|
|
27
|
+
import "./chunks/chunk.U7ZJ22QM.js";
|
|
28
|
+
import "./chunks/chunk.C7624ITA.js";
|
|
29
|
+
import "./chunks/chunk.BREU4ILT.js";
|
|
30
|
+
import "./chunks/chunk.O7USYXBT.js";
|
|
31
|
+
import "./chunks/chunk.DJOAQ4JU.js";
|
|
18
32
|
export {
|
|
19
|
-
|
|
33
|
+
button_default as SynButton,
|
|
34
|
+
input_default as SynInput,
|
|
35
|
+
getFormControls,
|
|
36
|
+
serialize
|
|
20
37
|
};
|
|
38
|
+
//# sourceMappingURL=synergy.js.map
|
package/dist/translations/de.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranslation
|
|
3
|
-
} from "../chunks/chunk.
|
|
4
|
-
import "../chunks/chunk.
|
|
5
|
-
import "../chunks/chunk.
|
|
3
|
+
} from "../chunks/chunk.R6VNLE6N.js";
|
|
4
|
+
import "../chunks/chunk.A3SKDWCT.js";
|
|
5
|
+
import "../chunks/chunk.DJOAQ4JU.js";
|
|
6
6
|
|
|
7
7
|
// src/translations/de.ts
|
|
8
8
|
var translation = {
|
|
@@ -43,3 +43,4 @@ var de_default = translation;
|
|
|
43
43
|
export {
|
|
44
44
|
de_default as default
|
|
45
45
|
};
|
|
46
|
+
//# sourceMappingURL=de.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/translations/de.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { registerTranslation } from '../utilities/localize.js';\nimport type { Translation } from '../utilities/localize.js';\n\nconst translation: Translation = {\n $code: 'de',\n $name: 'Deutsch',\n $dir: 'ltr',\n\n carousel: 'Karussell',\n clearEntry: 'Eingabe l\u00F6schen',\n close: 'Schlie\u00DFen',\n copied: 'Kopiert',\n copy: 'Kopieren',\n currentValue: 'Aktueller Wert',\n error: 'Fehler',\n goToSlide: (slide, count) => `Zu Folie ${slide} von ${count} gehen`,\n hidePassword: 'Passwort verbergen',\n loading: 'Wird geladen',\n nextSlide: 'N\u00E4chste Folie',\n numOptionsSelected: num => {\n if (num === 0) return 'Keine Optionen ausgew\u00E4hlt';\n if (num === 1) return '1 Option ausgew\u00E4hlt';\n return `${num} Optionen ausgew\u00E4hlt`;\n },\n previousSlide: 'Vorherige Folie',\n progress: 'Fortschritt',\n remove: 'Entfernen',\n resize: 'Gr\u00F6\u00DFe \u00E4ndern',\n scrollToEnd: 'Zum Ende scrollen',\n scrollToStart: 'Zum Anfang scrollen',\n selectAColorFromTheScreen: 'Farbe vom Bildschirm ausw\u00E4hlen',\n showPassword: 'Passwort anzeigen',\n slideNum: slide => `Folie ${slide}`,\n toggleColorFormat: 'Farbformat umschalten'\n};\n\nregisterTranslation(translation);\n\nexport default translation;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AASA,IAAM,cAA2B;AAAA,EAC/B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EAEN,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,EACP,WAAW,CAAC,OAAO,UAAU,YAAY,KAAK,QAAQ,KAAK;AAAA,EAC3D,cAAc;AAAA,EACd,SAAS;AAAA,EACT,WAAW;AAAA,EACX,oBAAoB,SAAO;AACzB,QAAI,QAAQ;AAAG,aAAO;AACtB,QAAI,QAAQ;AAAG,aAAO;AACtB,WAAO,GAAG,GAAG;AAAA,EACf;AAAA,EACA,eAAe;AAAA,EACf,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,cAAc;AAAA,EACd,UAAU,WAAS,SAAS,KAAK;AAAA,EACjC,mBAAmB;AACrB;AAEA,oBAAoB,WAAW;AAE/B,IAAO,aAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/translations/en.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBasePath,
|
|
3
3
|
setBasePath
|
|
4
|
-
} from "../chunks/chunk.
|
|
5
|
-
import "../chunks/chunk.
|
|
4
|
+
} from "../chunks/chunk.C7624ITA.js";
|
|
5
|
+
import "../chunks/chunk.DJOAQ4JU.js";
|
|
6
6
|
export {
|
|
7
7
|
getBasePath,
|
|
8
8
|
setBasePath
|
|
9
9
|
};
|
|
10
|
+
//# sourceMappingURL=base-path.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serializes a form and returns a plain object. If a form control with the same name appears more than once, the
|
|
3
|
+
* property will be converted to an array.
|
|
4
|
+
*/
|
|
5
|
+
export declare function serialize(form: HTMLFormElement): Record<string, unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* Returns all form controls that are associated with the specified form. Includes both native and Synergy form
|
|
8
|
+
* controls. Use this function in lieu of the `HTMLFormElement.elements` property, which doesn't recognize Synergy
|
|
9
|
+
* form controls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFormControls(form: HTMLFormElement): Element[];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocalizeController,
|
|
3
3
|
registerTranslation
|
|
4
|
-
} from "../chunks/chunk.
|
|
5
|
-
import "../chunks/chunk.
|
|
6
|
-
import "../chunks/chunk.
|
|
4
|
+
} from "../chunks/chunk.R6VNLE6N.js";
|
|
5
|
+
import "../chunks/chunk.A3SKDWCT.js";
|
|
6
|
+
import "../chunks/chunk.DJOAQ4JU.js";
|
|
7
7
|
export {
|
|
8
8
|
LocalizeController,
|
|
9
9
|
registerTranslation
|
|
10
10
|
};
|
|
11
|
+
//# sourceMappingURL=localize.js.map
|