@luftborn/custom-elements 1.1.43 → 1.4.0
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/dist/custom-form.js +5 -4
- package/dist/custom-form.js.map +1 -1
- package/dist/elements/CheckBoxElement/CheckBoxElement.js +2 -2
- package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -1
- package/dist/elements/DropDownList/DropDownListElement.js +2 -2
- package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
- package/dist/elements/FileField/FileFieldElement.d.ts +3 -0
- package/dist/elements/FileField/FileFieldElement.js +21 -1
- package/dist/elements/FileField/FileFieldElement.js.map +1 -1
- package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +19 -13
- package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +2 -2
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
- package/dist/framework/CustomInputElement.d.ts +1 -1
- package/dist/framework/CustomInputElement.js +4 -3
- package/dist/framework/CustomInputElement.js.map +1 -1
- package/dist/framework/Language/Languages/CzechDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/CzechDictionary.js +40 -0
- package/dist/framework/Language/Languages/CzechDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/DutchDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/DutchDictionary.js +40 -0
- package/dist/framework/Language/Languages/DutchDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/EstonianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/EstonianDictionary.js +40 -0
- package/dist/framework/Language/Languages/EstonianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/FinnishDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/FinnishDictionary.js +40 -0
- package/dist/framework/Language/Languages/FinnishDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/FrenchDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/FrenchDictionary.js +40 -0
- package/dist/framework/Language/Languages/FrenchDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/GermanDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/GermanDictionary.js +40 -0
- package/dist/framework/Language/Languages/GermanDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/GreekDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/GreekDictionary.js +40 -0
- package/dist/framework/Language/Languages/GreekDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/HungarianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/HungarianDictionary.js +40 -0
- package/dist/framework/Language/Languages/HungarianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/IcelandicDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/IcelandicDictionary.js +40 -0
- package/dist/framework/Language/Languages/IcelandicDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/ItalianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/ItalianDictionary.js +40 -0
- package/dist/framework/Language/Languages/ItalianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/LatvianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/LatvianDictionary.js +40 -0
- package/dist/framework/Language/Languages/LatvianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/LituanianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/LituanianDictionary.js +40 -0
- package/dist/framework/Language/Languages/LituanianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/NorwegianDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/NorwegianDictionary.js +40 -0
- package/dist/framework/Language/Languages/NorwegianDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/PolishDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/PolishDictionary.js +40 -0
- package/dist/framework/Language/Languages/PolishDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/PortugueseDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/PortugueseDictionary.js +40 -0
- package/dist/framework/Language/Languages/PortugueseDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/SpanishDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/SpanishDictionary.js +40 -0
- package/dist/framework/Language/Languages/SpanishDictionary.js.map +1 -0
- package/dist/framework/Language/Languages/SwedishDictionary.d.ts +4 -0
- package/dist/framework/Language/Languages/SwedishDictionary.js +40 -0
- package/dist/framework/Language/Languages/SwedishDictionary.js.map +1 -0
- package/dist/framework/Language/Translator.d.ts +17 -0
- package/dist/framework/Language/Translator.js +86 -3
- package/dist/framework/Language/Translator.js.map +1 -1
- package/dist/framework/Utilities/ArrayUtil.d.ts +6 -0
- package/dist/framework/Utilities/ArrayUtil.js +37 -0
- package/dist/framework/Utilities/ArrayUtil.js.map +1 -0
- package/dist/framework/Utilities/DomUtil.d.ts +21 -0
- package/dist/framework/Utilities/DomUtil.js +102 -0
- package/dist/framework/Utilities/DomUtil.js.map +1 -0
- package/dist/framework/Utilities/MakeRequest.d.ts +8 -0
- package/dist/framework/Utilities/MakeRequest.js +49 -0
- package/dist/framework/Utilities/MakeRequest.js.map +1 -0
- package/dist/framework/Utilities/StringUtil.d.ts +4 -0
- package/dist/framework/Utilities/StringUtil.js +17 -0
- package/dist/framework/Utilities/StringUtil.js.map +1 -0
- package/dist/framework/Utilities/ViewportUtil.d.ts +8 -0
- package/dist/framework/Utilities/ViewportUtil.js +43 -0
- package/dist/framework/Utilities/ViewportUtil.js.map +1 -0
- package/node_modules/@webcomponents/webcomponentsjs/package.json +31 -62
- package/package.json +1 -2
- package/src/custom-form.ts +2 -1
- package/src/elements/CheckBoxElement/CheckBoxElement.ts +1 -1
- package/src/elements/DropDownList/DropDownListElement.ts +1 -1
- package/src/elements/FileField/FileFieldElement.ts +20 -0
- package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +22 -17
- package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +1 -1
- package/src/framework/CustomInputElement.ts +2 -1
- package/src/framework/Language/Languages/CzechDictionary.ts +18 -0
- package/src/framework/Language/Languages/DutchDictionary.ts +18 -0
- package/src/framework/Language/Languages/EstonianDictionary.ts +18 -0
- package/src/framework/Language/Languages/FinnishDictionary.ts +18 -0
- package/src/framework/Language/Languages/FrenchDictionary.ts +18 -0
- package/src/framework/Language/Languages/GermanDictionary.ts +18 -0
- package/src/framework/Language/Languages/GreekDictionary.ts +18 -0
- package/src/framework/Language/Languages/HungarianDictionary.ts +18 -0
- package/src/framework/Language/Languages/IcelandicDictionary.ts +18 -0
- package/src/framework/Language/Languages/ItalianDictionary.ts +18 -0
- package/src/framework/Language/Languages/LatvianDictionary.ts +18 -0
- package/src/framework/Language/Languages/LituanianDictionary.ts +18 -0
- package/src/framework/Language/Languages/NorwegianDictionary.ts +18 -0
- package/src/framework/Language/Languages/PolishDictionary.ts +18 -0
- package/src/framework/Language/Languages/PortugueseDictionary.ts +18 -0
- package/src/framework/Language/Languages/SpanishDictionary.ts +18 -0
- package/src/framework/Language/Languages/SwedishDictionary.ts +18 -0
- package/src/framework/Language/Translator.ts +87 -3
- package/src/framework/Utilities/ArrayUtil.ts +31 -0
- package/src/framework/Utilities/DomUtil.ts +117 -0
- package/src/framework/Utilities/MakeRequest.ts +47 -0
- package/src/framework/Utilities/StringUtil.ts +9 -0
- package/src/framework/Utilities/ViewportUtil.ts +46 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseDictionary_1 = require("./Base/BaseDictionary");
|
|
19
|
+
var SwedishDictionary = /** @class */ (function (_super) {
|
|
20
|
+
__extends(SwedishDictionary, _super);
|
|
21
|
+
function SwedishDictionary() {
|
|
22
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
_this.dictionary = {
|
|
24
|
+
AddressElement: {
|
|
25
|
+
Address: "adress",
|
|
26
|
+
City: "stad",
|
|
27
|
+
Country: "land",
|
|
28
|
+
Zip: "postnummer"
|
|
29
|
+
},
|
|
30
|
+
BankElement: {
|
|
31
|
+
Account: "Bankkonto",
|
|
32
|
+
RegistrationNumber: "Bankkontoregistreringsnummer"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return SwedishDictionary;
|
|
38
|
+
}(BaseDictionary_1.default));
|
|
39
|
+
exports.default = SwedishDictionary;
|
|
40
|
+
//# sourceMappingURL=SwedishDictionary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwedishDictionary.js","sourceRoot":"","sources":["../../../../src/framework/Language/Languages/SwedishDictionary.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAmD;AAEnD;IAA+C,qCAAc;IAA7D;QAAA,qEAeC;QAbG,gBAAU,GAAQ;YACd,cAAc,EAAE;gBACZ,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,MAAM;gBACf,GAAG,EAAE,YAAY;aACpB;YACD,WAAW,EAAE;gBACT,OAAO,EAAE,WAAW;gBACpB,kBAAkB,EAAE,8BAA8B;aACrD;SACJ,CAAC;;IAEN,CAAC;IAAD,wBAAC;AAAD,CAAC,AAfD,CAA+C,wBAAc,GAe5D"}
|
|
@@ -2,5 +2,22 @@ export default class Translator {
|
|
|
2
2
|
private static langauges;
|
|
3
3
|
private static danishDictionary;
|
|
4
4
|
private static englishDictionary;
|
|
5
|
+
private static czechDictionary;
|
|
6
|
+
private static germanDictionary;
|
|
7
|
+
private static greekDictionary;
|
|
8
|
+
private static spanishDictionary;
|
|
9
|
+
private static estonianDictionary;
|
|
10
|
+
private static finnishDictionary;
|
|
11
|
+
private static frenchDictionary;
|
|
12
|
+
private static hungarianDictionary;
|
|
13
|
+
private static icelandicDictionary;
|
|
14
|
+
private static italianDictionary;
|
|
15
|
+
private static latvianDictionary;
|
|
16
|
+
private static lituanianDictionary;
|
|
17
|
+
private static dutchDictionary;
|
|
18
|
+
private static norwegianDictionary;
|
|
19
|
+
private static polishDictionary;
|
|
20
|
+
private static portugueseDictionary;
|
|
21
|
+
private static swedishDictionary;
|
|
5
22
|
static Translate(key: string, language?: string): string;
|
|
6
23
|
}
|
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var DanishDictionary_1 = require("./Languages/DanishDictionary");
|
|
4
4
|
var EnglishDictionary_1 = require("./Languages/EnglishDictionary");
|
|
5
|
+
var CzechDictionary_1 = require("./Languages/CzechDictionary");
|
|
6
|
+
var GermanDictionary_1 = require("./Languages/GermanDictionary");
|
|
7
|
+
var GreekDictionary_1 = require("./Languages/GreekDictionary");
|
|
8
|
+
var SpanishDictionary_1 = require("./Languages/SpanishDictionary");
|
|
9
|
+
var EstonianDictionary_1 = require("./Languages/EstonianDictionary");
|
|
10
|
+
var FinnishDictionary_1 = require("./Languages/FinnishDictionary");
|
|
11
|
+
var FrenchDictionary_1 = require("./Languages/FrenchDictionary");
|
|
12
|
+
var HungarianDictionary_1 = require("./Languages/HungarianDictionary");
|
|
13
|
+
var IcelandicDictionary_1 = require("./Languages/IcelandicDictionary");
|
|
14
|
+
var ItalianDictionary_1 = require("./Languages/ItalianDictionary");
|
|
15
|
+
var LatvianDictionary_1 = require("./Languages/LatvianDictionary");
|
|
16
|
+
var LituanianDictionary_1 = require("./Languages/LituanianDictionary");
|
|
17
|
+
var DutchDictionary_1 = require("./Languages/DutchDictionary");
|
|
18
|
+
var NorwegianDictionary_1 = require("./Languages/NorwegianDictionary");
|
|
19
|
+
var PolishDictionary_1 = require("./Languages/PolishDictionary");
|
|
20
|
+
var PortugueseDictionary_1 = require("./Languages/PortugueseDictionary");
|
|
21
|
+
var SwedishDictionary_1 = require("./Languages/SwedishDictionary");
|
|
5
22
|
var Translator = /** @class */ (function () {
|
|
6
23
|
function Translator() {
|
|
7
24
|
}
|
|
@@ -15,18 +32,84 @@ var Translator = /** @class */ (function () {
|
|
|
15
32
|
switch (language) {
|
|
16
33
|
case 'da':
|
|
17
34
|
return this.danishDictionary.get(key);
|
|
18
|
-
break;
|
|
19
35
|
case 'en':
|
|
20
36
|
return this.englishDictionary.get(key);
|
|
21
|
-
|
|
37
|
+
case 'cs':
|
|
38
|
+
return this.czechDictionary.get(key);
|
|
39
|
+
case 'de':
|
|
40
|
+
return this.germanDictionary.get(key);
|
|
41
|
+
case 'el':
|
|
42
|
+
return this.greekDictionary.get(key);
|
|
43
|
+
case 'es':
|
|
44
|
+
return this.spanishDictionary.get(key);
|
|
45
|
+
case 'et':
|
|
46
|
+
return this.estonianDictionary.get(key);
|
|
47
|
+
case 'fi':
|
|
48
|
+
return this.finnishDictionary.get(key);
|
|
49
|
+
case 'fr':
|
|
50
|
+
return this.frenchDictionary.get(key);
|
|
51
|
+
case 'hu':
|
|
52
|
+
return this.hungarianDictionary.get(key);
|
|
53
|
+
case 'is':
|
|
54
|
+
return this.icelandicDictionary.get(key);
|
|
55
|
+
case 'it':
|
|
56
|
+
return this.italianDictionary.get(key);
|
|
57
|
+
case 'lt':
|
|
58
|
+
return this.latvianDictionary.get(key);
|
|
59
|
+
case 'lv':
|
|
60
|
+
return this.lituanianDictionary.get(key);
|
|
61
|
+
case 'nl':
|
|
62
|
+
return this.dutchDictionary.get(key);
|
|
63
|
+
case 'no':
|
|
64
|
+
return this.norwegianDictionary.get(key);
|
|
65
|
+
case 'pl':
|
|
66
|
+
return this.polishDictionary.get(key);
|
|
67
|
+
case 'pt':
|
|
68
|
+
return this.portugueseDictionary.get(key);
|
|
69
|
+
case 'sv':
|
|
70
|
+
return this.swedishDictionary.get(key);
|
|
22
71
|
}
|
|
23
72
|
};
|
|
24
73
|
Translator.langauges = [
|
|
25
74
|
'en',
|
|
26
|
-
'da'
|
|
75
|
+
'da',
|
|
76
|
+
'cs',
|
|
77
|
+
'de',
|
|
78
|
+
'el',
|
|
79
|
+
'es',
|
|
80
|
+
'et',
|
|
81
|
+
'fi',
|
|
82
|
+
'fr',
|
|
83
|
+
'hu',
|
|
84
|
+
'is',
|
|
85
|
+
'it',
|
|
86
|
+
'lt',
|
|
87
|
+
'lv',
|
|
88
|
+
'nl',
|
|
89
|
+
'no',
|
|
90
|
+
'pl',
|
|
91
|
+
'pt',
|
|
92
|
+
'sv',
|
|
27
93
|
];
|
|
28
94
|
Translator.danishDictionary = new DanishDictionary_1.default();
|
|
29
95
|
Translator.englishDictionary = new EnglishDictionary_1.default();
|
|
96
|
+
Translator.czechDictionary = new CzechDictionary_1.default();
|
|
97
|
+
Translator.germanDictionary = new GermanDictionary_1.default();
|
|
98
|
+
Translator.greekDictionary = new GreekDictionary_1.default();
|
|
99
|
+
Translator.spanishDictionary = new SpanishDictionary_1.default();
|
|
100
|
+
Translator.estonianDictionary = new EstonianDictionary_1.default();
|
|
101
|
+
Translator.finnishDictionary = new FinnishDictionary_1.default();
|
|
102
|
+
Translator.frenchDictionary = new FrenchDictionary_1.default();
|
|
103
|
+
Translator.hungarianDictionary = new HungarianDictionary_1.default();
|
|
104
|
+
Translator.icelandicDictionary = new IcelandicDictionary_1.default();
|
|
105
|
+
Translator.italianDictionary = new ItalianDictionary_1.default();
|
|
106
|
+
Translator.latvianDictionary = new LatvianDictionary_1.default();
|
|
107
|
+
Translator.lituanianDictionary = new LituanianDictionary_1.default();
|
|
108
|
+
Translator.dutchDictionary = new DutchDictionary_1.default();
|
|
109
|
+
Translator.norwegianDictionary = new NorwegianDictionary_1.default();
|
|
110
|
+
Translator.polishDictionary = new PolishDictionary_1.default();
|
|
111
|
+
Translator.portugueseDictionary = new PortugueseDictionary_1.default();
|
|
112
|
+
Translator.swedishDictionary = new SwedishDictionary_1.default();
|
|
30
113
|
return Translator;
|
|
31
114
|
}());
|
|
32
115
|
exports.default = Translator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Translator.js","sourceRoot":"","sources":["../../../src/framework/Language/Translator.ts"],"names":[],"mappings":";;AAAA,iEAA4D;AAC5D,mEAA8D;AAE9D;IAAA;
|
|
1
|
+
{"version":3,"file":"Translator.js","sourceRoot":"","sources":["../../../src/framework/Language/Translator.ts"],"names":[],"mappings":";;AAAA,iEAA4D;AAC5D,mEAA8D;AAC9D,+DAA0D;AAC1D,iEAA4D;AAC5D,+DAA0D;AAC1D,mEAA8D;AAC9D,qEAAgE;AAChE,mEAA8D;AAC9D,iEAA4D;AAC5D,uEAAkE;AAClE,uEAAkE;AAClE,mEAA8D;AAC9D,mEAA8D;AAC9D,uEAAkE;AAClE,+DAA0D;AAC1D,uEAAkE;AAClE,iEAA4D;AAC5D,yEAAoE;AACpE,mEAA8D;AAE9D;IAAA;IA0FA,CAAC;IA/CO,oBAAS,GAAhB,UAAiB,GAAW,EAAE,QAAe;QAAf,yBAAA,EAAA,eAAe;QAC5C,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;QAClC,IAAM,mBAAmB,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QACzE,IAAI,CAAC,mBAAmB,EAAE;Y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IAChD,8BAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;IAChD,4BAAiB,GAAG,IAAI,2BAAiB,EAAE,CAAC;IAC5C,4BAAiB,GAAG,IAAI,2BAAiB,EAAE,CAAC;IAC5C,8BAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;IAChD,0BAAe,GAAG,IAAI,yBAAe,EAAE,CAAC;IACxC,8BAAmB,GAAG,IAAI,6BAAmB,EAAE,CAAC;IAChD,2BAAgB,GAAG,IAAI,0BAAgB,EAAE,CAAC;IAC1C,+BAAoB,GAAG,IAAI,8BAAoB,EAAE,CAAC;IAClD,4BAAiB,GAAG,IAAI,2BAAiB,EAAE,CAAC;IAiD/D,iBAAC;CAAA,AA1FD,IA0FC;kBA1FoB,UAAU"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ArrayUtil = /** @class */ (function () {
|
|
4
|
+
function ArrayUtil() {
|
|
5
|
+
}
|
|
6
|
+
ArrayUtil.FromNodeList = function (list) {
|
|
7
|
+
return Array.prototype.concat.apply([], list);
|
|
8
|
+
};
|
|
9
|
+
ArrayUtil.addToCurrent = function (chunks, item) {
|
|
10
|
+
if (!chunks.length) {
|
|
11
|
+
chunks[0] = [];
|
|
12
|
+
}
|
|
13
|
+
chunks[chunks.length - 1].push(item);
|
|
14
|
+
};
|
|
15
|
+
ArrayUtil.addToNew = function (chunks, item) {
|
|
16
|
+
chunks[chunks.length] = [];
|
|
17
|
+
chunks[chunks.length - 1].push(item);
|
|
18
|
+
};
|
|
19
|
+
ArrayUtil.divideAccordingProperty = function (array, selector) {
|
|
20
|
+
var _this = this;
|
|
21
|
+
var chunks = [];
|
|
22
|
+
chunks[0] = [array[0]];
|
|
23
|
+
array.reduce(function (a, b) {
|
|
24
|
+
if (selector(a) === selector(b)) {
|
|
25
|
+
_this.addToCurrent(chunks, b);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
_this.addToNew(chunks, b);
|
|
29
|
+
}
|
|
30
|
+
return b;
|
|
31
|
+
});
|
|
32
|
+
return chunks;
|
|
33
|
+
};
|
|
34
|
+
return ArrayUtil;
|
|
35
|
+
}());
|
|
36
|
+
exports.default = ArrayUtil;
|
|
37
|
+
//# sourceMappingURL=ArrayUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayUtil.js","sourceRoot":"","sources":["../../../src/framework/Utilities/ArrayUtil.ts"],"names":[],"mappings":";;AAAA;IAAA;IA8BA,CAAC;IA7Bc,sBAAY,GAA1B,UAA2C,IAAmB;QAC7D,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,IAAW,CAAC,CAAC;IACtD,CAAC;IAEc,sBAAY,GAA3B,UAA+B,MAAa,EAAE,IAAO;QACpD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YACnB,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACf;QACD,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEc,kBAAQ,GAAvB,UAA2B,MAAa,EAAE,IAAO;QAChD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEa,iCAAuB,GAArC,UAAyC,KAAU,EAAE,QAA0B;QAA/E,iBAYC;QAXA,IAAM,MAAM,GAAG,EAAE,CAAC;QAClB,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACvB,KAAK,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC;YACjB,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE;gBAChC,KAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;aAC7B;iBAAM;gBACN,KAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,CAAC;QACV,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IACf,CAAC;IACF,gBAAC;AAAD,CAAC,AA9BD,IA8BC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default class DomUtil {
|
|
2
|
+
private viewPortUtil;
|
|
3
|
+
element: Element;
|
|
4
|
+
constructor(element: Element);
|
|
5
|
+
getDataAttr(attr: string, defaultvalue?: string): any;
|
|
6
|
+
setDataAttr(attr: string, value: string): any;
|
|
7
|
+
getAttr(attr: string, defaultvalue?: string): any;
|
|
8
|
+
setAttr(attr: string, value: string): void;
|
|
9
|
+
removeAttr(attr: string): void;
|
|
10
|
+
removeDataAttr(attr: string): void;
|
|
11
|
+
hasAttr(attr: string): boolean;
|
|
12
|
+
shake(): void;
|
|
13
|
+
error(): void;
|
|
14
|
+
focus(): void;
|
|
15
|
+
removeClass(classname: any): void;
|
|
16
|
+
appendClass(classname: any): void;
|
|
17
|
+
deleteElement(): void;
|
|
18
|
+
setChildElementByAttrName(name: string, value: string): void;
|
|
19
|
+
hasClass(className: string): boolean;
|
|
20
|
+
getStyle(ruleName: string): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ViewportUtil_1 = require("./ViewportUtil");
|
|
4
|
+
var DomUtil = /** @class */ (function () {
|
|
5
|
+
function DomUtil(element) {
|
|
6
|
+
this.element = element;
|
|
7
|
+
this.viewPortUtil = new ViewportUtil_1.ViewportUtil(this.element);
|
|
8
|
+
}
|
|
9
|
+
DomUtil.prototype.getDataAttr = function (attr, defaultvalue) {
|
|
10
|
+
if (!this.element) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
var value = this.element.getAttribute("data-" + attr);
|
|
14
|
+
return value !== undefined ? value : defaultvalue;
|
|
15
|
+
};
|
|
16
|
+
DomUtil.prototype.setDataAttr = function (attr, value) {
|
|
17
|
+
if (!this.element) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return this.element.setAttribute("data-" + attr, value);
|
|
21
|
+
};
|
|
22
|
+
DomUtil.prototype.getAttr = function (attr, defaultvalue) {
|
|
23
|
+
if (!this.element) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
var value = this.element.getAttribute(attr);
|
|
27
|
+
return value !== undefined ? value : defaultvalue;
|
|
28
|
+
};
|
|
29
|
+
DomUtil.prototype.setAttr = function (attr, value) {
|
|
30
|
+
if (!this.element) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
this.element.setAttribute(attr, value);
|
|
34
|
+
};
|
|
35
|
+
DomUtil.prototype.removeAttr = function (attr) {
|
|
36
|
+
if (!this.element) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
this.element.removeAttribute(attr);
|
|
40
|
+
};
|
|
41
|
+
DomUtil.prototype.removeDataAttr = function (attr) {
|
|
42
|
+
if (!this.element) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
this.element.removeAttribute("data-" + attr);
|
|
46
|
+
};
|
|
47
|
+
DomUtil.prototype.hasAttr = function (attr) {
|
|
48
|
+
if (!this.element) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return this.element.hasAttribute(attr);
|
|
52
|
+
};
|
|
53
|
+
DomUtil.prototype.shake = function () {
|
|
54
|
+
var _this = this;
|
|
55
|
+
this.appendClass('shake');
|
|
56
|
+
setTimeout(function () {
|
|
57
|
+
_this.removeClass('shake');
|
|
58
|
+
_this.element.readOnly = false;
|
|
59
|
+
}, 600);
|
|
60
|
+
};
|
|
61
|
+
DomUtil.prototype.error = function () {
|
|
62
|
+
var _this = this;
|
|
63
|
+
this.appendClass('error');
|
|
64
|
+
setTimeout(function () {
|
|
65
|
+
_this.removeClass('error');
|
|
66
|
+
_this.element.readOnly = false;
|
|
67
|
+
}, 5000);
|
|
68
|
+
};
|
|
69
|
+
DomUtil.prototype.focus = function () {
|
|
70
|
+
if (!this.viewPortUtil.IsVisible()) {
|
|
71
|
+
this.element.scrollIntoView();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
DomUtil.prototype.removeClass = function (classname) {
|
|
75
|
+
this.element.classList.remove(classname);
|
|
76
|
+
};
|
|
77
|
+
DomUtil.prototype.appendClass = function (classname) {
|
|
78
|
+
this.element.classList.add(classname);
|
|
79
|
+
};
|
|
80
|
+
DomUtil.prototype.deleteElement = function () {
|
|
81
|
+
if (!this.element) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
this.element.remove();
|
|
85
|
+
};
|
|
86
|
+
DomUtil.prototype.setChildElementByAttrName = function (name, value) {
|
|
87
|
+
var firstLetter = name.replace(/^\w/, function (c) { return c.toUpperCase(); });
|
|
88
|
+
var SubElement = this.element.querySelector("[name=\"" + firstLetter + "\"]");
|
|
89
|
+
if (SubElement) {
|
|
90
|
+
SubElement.value = value;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
DomUtil.prototype.hasClass = function (className) {
|
|
94
|
+
return this.element.classList.contains(className);
|
|
95
|
+
};
|
|
96
|
+
DomUtil.prototype.getStyle = function (ruleName) {
|
|
97
|
+
return getComputedStyle(this.element)[ruleName];
|
|
98
|
+
};
|
|
99
|
+
return DomUtil;
|
|
100
|
+
}());
|
|
101
|
+
exports.default = DomUtil;
|
|
102
|
+
//# sourceMappingURL=DomUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DomUtil.js","sourceRoot":"","sources":["../../../src/framework/Utilities/DomUtil.ts"],"names":[],"mappings":";;AAAA,+CAA8C;AA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M,6BAAW,GAAlB,UAAmB,SAAS;QACxB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAEM,+BAAa,GAApB;QACI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IAC1B,CAAC;IAEM,2CAAyB,GAAhC,UAAiC,IAAY,EAAE,KAAa;QACxD,IAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,WAAW,EAAE,EAAf,CAAe,CAAC,CAAC;QAC9D,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CACzC,aAAU,WAAW,QAAI,CACR,CAAC;QACtB,IAAI,UAAU,EAAE;YACZ,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;SAC5B;IACL,CAAC;IAEM,0BAAQ,GAAf,UAAgB,SAAiB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC;IAEM,0BAAQ,GAAf,UAAgB,QAAgB;QAC5B,OAAO,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IACL,cAAC;AAAD,CAAC,AAlHD,IAkHC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var MakeRequest = /** @class */ (function () {
|
|
4
|
+
function MakeRequest(url, method, headers) {
|
|
5
|
+
if (method === void 0) { method = 'get'; }
|
|
6
|
+
if (headers === void 0) { headers = {}; }
|
|
7
|
+
this.method = method;
|
|
8
|
+
this.url = url;
|
|
9
|
+
this.headers = headers;
|
|
10
|
+
}
|
|
11
|
+
MakeRequest.prototype.setHeaders = function (httpRequest) {
|
|
12
|
+
for (var header in this.headers) {
|
|
13
|
+
httpRequest.setRequestHeader(header, this.headers[header]);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
MakeRequest.prototype.send = function (data) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
if (data === void 0) { data = null; }
|
|
19
|
+
return new Promise(function (resolve, reject) {
|
|
20
|
+
var xmlHttpRequest = new XMLHttpRequest();
|
|
21
|
+
xmlHttpRequest.open(_this.method, _this.url);
|
|
22
|
+
_this.setHeaders(xmlHttpRequest);
|
|
23
|
+
xmlHttpRequest.onload = function () {
|
|
24
|
+
if (xmlHttpRequest.status >= 200 &&
|
|
25
|
+
xmlHttpRequest.status < 300) {
|
|
26
|
+
resolve(xmlHttpRequest.response);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
reject({
|
|
30
|
+
status: xmlHttpRequest.status,
|
|
31
|
+
statusText: xmlHttpRequest.statusText,
|
|
32
|
+
body: xmlHttpRequest.response,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
xmlHttpRequest.onerror = function () {
|
|
37
|
+
reject({
|
|
38
|
+
status: xmlHttpRequest.status,
|
|
39
|
+
statusText: xmlHttpRequest.statusText,
|
|
40
|
+
body: xmlHttpRequest.response,
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
xmlHttpRequest.send(data);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
return MakeRequest;
|
|
47
|
+
}());
|
|
48
|
+
exports.default = MakeRequest;
|
|
49
|
+
//# sourceMappingURL=MakeRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MakeRequest.js","sourceRoot":"","sources":["../../../src/framework/Utilities/MakeRequest.ts"],"names":[],"mappings":";;AAAA;IAKI,qBAAY,GAAW,EAAE,MAAsB,EAAE,OAAiB;QAAzC,uBAAA,EAAA,cAAsB;QAAE,wBAAA,EAAA,YAAiB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AAC,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACP,CAAC;IACL,kBAAC;AAAD,CAAC,AA9CD,IA8CC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StringUtil = void 0;
|
|
4
|
+
var StringUtil = /** @class */ (function () {
|
|
5
|
+
function StringUtil() {
|
|
6
|
+
}
|
|
7
|
+
StringUtil.StringFormat = function (str) {
|
|
8
|
+
var args = [];
|
|
9
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
10
|
+
args[_i - 1] = arguments[_i];
|
|
11
|
+
}
|
|
12
|
+
return str.replace(/{(\d+)}/g, function (match, index) { return args[index] || ''; });
|
|
13
|
+
};
|
|
14
|
+
return StringUtil;
|
|
15
|
+
}());
|
|
16
|
+
exports.StringUtil = StringUtil;
|
|
17
|
+
//# sourceMappingURL=StringUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringUtil.js","sourceRoot":"","sources":["../../../src/framework/Utilities/StringUtil.ts"],"names":[],"mappings":";;;AAAA;IAEI;IACA,CAAC;IAEa,uBAAY,GAA1B,UAA2B,GAAW;QAAE,cAAiB;aAAjB,UAAiB,EAAjB,qBAAiB,EAAjB,IAAiB;YAAjB,6BAAiB;;QACrD,OAAO,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAjB,CAAiB,CAAC,CAAC;IACxE,CAAC;IACL,iBAAC;AAAD,CAAC,AARD,IAQC;AARY,gCAAU"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewportUtil = void 0;
|
|
4
|
+
var ViewportUtil = /** @class */ (function () {
|
|
5
|
+
function ViewportUtil(element) {
|
|
6
|
+
if (element === void 0) { element = null; }
|
|
7
|
+
this.element = element;
|
|
8
|
+
}
|
|
9
|
+
ViewportUtil.prototype.IsVisible = function () {
|
|
10
|
+
var bounds = this.element.getBoundingClientRect();
|
|
11
|
+
return (((bounds.top > 0 && bounds.top < innerHeight) ||
|
|
12
|
+
(bounds.bottom > 0 && bounds.bottom < innerHeight)) &&
|
|
13
|
+
((bounds.left > 0 && bounds.left < innerWidth) ||
|
|
14
|
+
(bounds.right > 0 && bounds.right < innerWidth)));
|
|
15
|
+
};
|
|
16
|
+
ViewportUtil.prototype.IsPartiallyVisible = function () {
|
|
17
|
+
var bounds = this.element.getBoundingClientRect();
|
|
18
|
+
return (bounds.top >= 0 ||
|
|
19
|
+
bounds.left >= 0 ||
|
|
20
|
+
bounds.bottom <= innerHeight ||
|
|
21
|
+
bounds.right <= innerWidth);
|
|
22
|
+
};
|
|
23
|
+
ViewportUtil.prototype.IsOffsetVisible = function (offset) {
|
|
24
|
+
if (offset === void 0) { offset = 300; }
|
|
25
|
+
var bounds = this.element.getBoundingClientRect();
|
|
26
|
+
// tslint:disable-next-line: max-line-length
|
|
27
|
+
return (bounds.top + offset >= 0 ||
|
|
28
|
+
bounds.left + offset >= 0 ||
|
|
29
|
+
bounds.bottom - offset <= innerHeight ||
|
|
30
|
+
bounds.right - offset <= innerWidth);
|
|
31
|
+
};
|
|
32
|
+
ViewportUtil.prototype.WindowTop = function (offset) {
|
|
33
|
+
if (offset === void 0) { offset = 0; }
|
|
34
|
+
var YOffset = window.pageYOffset ||
|
|
35
|
+
document.documentElement.scrollTop ||
|
|
36
|
+
document.body.scrollTop ||
|
|
37
|
+
0;
|
|
38
|
+
return offset <= YOffset;
|
|
39
|
+
};
|
|
40
|
+
return ViewportUtil;
|
|
41
|
+
}());
|
|
42
|
+
exports.ViewportUtil = ViewportUtil;
|
|
43
|
+
//# sourceMappingURL=ViewportUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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AAI,WAAW;YACrC,MAAM,CAAC,KAAK,GAAG,MAAM,IAAI,UAAU,CACtC,CAAC;IACN,CAAC;IAEM,gCAAS,GAAhB,UAAiB,MAAkB;QAAlB,uBAAA,EAAA,UAAkB;QAC/B,IAAM,OAAO,GACT,MAAM,CAAC,WAAW;YAClB,QAAQ,CAAC,eAAe,CAAC,SAAS;YAClC,QAAQ,CAAC,IAAI,CAAC,SAAS;YACvB,CAAC,CAAC;QACN,OAAO,MAAM,IAAI,OAAO,CAAC;IAC7B,CAAC;IACL,mBAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,oCAAY"}
|
|
@@ -1,48 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"_location": "/@webcomponents/webcomponentsjs",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "@webcomponents/webcomponentsjs@^2.4.3",
|
|
12
|
-
"name": "@webcomponents/webcomponentsjs",
|
|
13
|
-
"escapedName": "@webcomponents%2fwebcomponentsjs",
|
|
14
|
-
"scope": "@webcomponents",
|
|
15
|
-
"rawSpec": "^2.4.3",
|
|
16
|
-
"saveSpec": null,
|
|
17
|
-
"fetchSpec": "^2.4.3"
|
|
18
|
-
},
|
|
19
|
-
"_requiredBy": [
|
|
20
|
-
"/"
|
|
21
|
-
],
|
|
22
|
-
"_resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.8.0.tgz",
|
|
23
|
-
"_shasum": "ab21f027594fa827c1889e8b646da7be27c7908a",
|
|
24
|
-
"_spec": "@webcomponents/webcomponentsjs@^2.4.3",
|
|
25
|
-
"_where": "C:\\eSignatur\\npm repos\\ss\\JSCustomComponents\\custom-input-elements",
|
|
26
|
-
"author": {
|
|
27
|
-
"name": "The Polymer Project Authors",
|
|
28
|
-
"url": "https://polymer.github.io/AUTHORS.txt"
|
|
29
|
-
},
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/webcomponents/polyfills/issues?q=is%3Aissue+is%3Aopen+label%3A\"Package%3A+webcomponentsjs\""
|
|
2
|
+
"name": "@webcomponents/webcomponentsjs",
|
|
3
|
+
"version": "2.8.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
32
6
|
},
|
|
33
|
-
"bundleDependencies": false,
|
|
34
|
-
"deprecated": false,
|
|
35
7
|
"description": "Web Components Polyfills",
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
8
|
+
"license": "BSD-3-Clause",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/webcomponents/polyfills.git",
|
|
12
|
+
"directory": "packages/webcomponentsjs"
|
|
13
|
+
},
|
|
14
|
+
"author": "The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)",
|
|
15
|
+
"homepage": "https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs",
|
|
16
|
+
"bugs": "https://github.com/webcomponents/polyfills/issues?q=is%3Aissue+is%3Aopen+label%3A\"Package%3A+webcomponentsjs\"",
|
|
17
|
+
"main": "webcomponents-bundle.js",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc && gulp",
|
|
20
|
+
"build:watch": "chokidar --initial --follow-symlinks 'src/entrypoints/**/*.js' 'ts_src/**/*.ts' 'node_modules/@webcomponents/**/*.js' -c 'npm run build'",
|
|
21
|
+
"clean": "gulp clean",
|
|
22
|
+
"prepack": "npm run build",
|
|
23
|
+
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
|
|
46
24
|
},
|
|
47
25
|
"files": [
|
|
48
26
|
"bundles/**/*",
|
|
@@ -53,30 +31,21 @@
|
|
|
53
31
|
"webcomponents-bundle.js*",
|
|
54
32
|
"webcomponents-loader.js"
|
|
55
33
|
],
|
|
56
|
-
"homepage": "https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs",
|
|
57
34
|
"keywords": [
|
|
58
35
|
"webcomponents",
|
|
59
36
|
"web-components",
|
|
60
37
|
"polyfill",
|
|
61
38
|
"shim"
|
|
62
39
|
],
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
}
|
|
74
|
-
"scripts": {
|
|
75
|
-
"build": "tsc && gulp",
|
|
76
|
-
"build:watch": "chokidar --initial --follow-symlinks 'src/entrypoints/**/*.js' 'ts_src/**/*.ts' 'node_modules/@webcomponents/**/*.js' -c 'npm run build'",
|
|
77
|
-
"clean": "gulp clean",
|
|
78
|
-
"prepack": "npm run build",
|
|
79
|
-
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
|
|
80
|
-
},
|
|
81
|
-
"version": "2.8.0"
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@webcomponents/custom-elements": "^1.6.0",
|
|
42
|
+
"@webcomponents/shadycss": "^1.11.2",
|
|
43
|
+
"@webcomponents/shadydom": "^1.11.0",
|
|
44
|
+
"@webcomponents/template": "^1.5.1",
|
|
45
|
+
"@webcomponents/url": "^0.7.9",
|
|
46
|
+
"babel-preset-minify": "^0.4.3",
|
|
47
|
+
"get-own-property-symbols": "^0.9.2",
|
|
48
|
+
"gulp-concat": "^2.6.1",
|
|
49
|
+
"promise-polyfill": "^8.0.0"
|
|
50
|
+
}
|
|
82
51
|
}
|