@luftborn/custom-elements 1.1.40 → 1.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/demo/index.html +2 -2
  2. package/package.json +2 -2
  3. package/src/elements/CheckBoxElement/CheckBoxElement.ts +1 -0
  4. package/src/elements/DropDownList/DropDownListElement.ts +1 -0
  5. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +1 -0
  6. package/demo/index.js +0 -6357
  7. package/demo/index.min.js +0 -6358
  8. package/demo/index.min.js.map +0 -1
  9. package/dist/custom-form.d.ts +0 -20
  10. package/dist/custom-form.js +0 -147
  11. package/dist/custom-form.js.map +0 -1
  12. package/dist/elements/Address/AddressElement.d.ts +0 -28
  13. package/dist/elements/Address/AddressElement.js +0 -207
  14. package/dist/elements/Address/AddressElement.js.map +0 -1
  15. package/dist/elements/BankField/BankFieldElement.d.ts +0 -22
  16. package/dist/elements/BankField/BankFieldElement.js +0 -128
  17. package/dist/elements/BankField/BankFieldElement.js.map +0 -1
  18. package/dist/elements/CPRElement/CPRElement.d.ts +0 -14
  19. package/dist/elements/CPRElement/CPRElement.js +0 -83
  20. package/dist/elements/CPRElement/CPRElement.js.map +0 -1
  21. package/dist/elements/CVRElement/CVRElement.d.ts +0 -14
  22. package/dist/elements/CVRElement/CVRElement.js +0 -83
  23. package/dist/elements/CVRElement/CVRElement.js.map +0 -1
  24. package/dist/elements/CheckBoxElement/CheckBoxElement.d.ts +0 -14
  25. package/dist/elements/CheckBoxElement/CheckBoxElement.js +0 -96
  26. package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +0 -1
  27. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.d.ts +0 -12
  28. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +0 -83
  29. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +0 -1
  30. package/dist/elements/DateField/DateFieldElement.d.ts +0 -12
  31. package/dist/elements/DateField/DateFieldElement.js +0 -86
  32. package/dist/elements/DateField/DateFieldElement.js.map +0 -1
  33. package/dist/elements/DropDownList/DropDownListElement.d.ts +0 -14
  34. package/dist/elements/DropDownList/DropDownListElement.js +0 -93
  35. package/dist/elements/DropDownList/DropDownListElement.js.map +0 -1
  36. package/dist/elements/Elements.d.ts +0 -18
  37. package/dist/elements/Elements.js +0 -38
  38. package/dist/elements/Elements.js.map +0 -1
  39. package/dist/elements/EmailField/EmailFieldElement.d.ts +0 -13
  40. package/dist/elements/EmailField/EmailFieldElement.js +0 -84
  41. package/dist/elements/EmailField/EmailFieldElement.js.map +0 -1
  42. package/dist/elements/FileField/FileFieldElement.d.ts +0 -12
  43. package/dist/elements/FileField/FileFieldElement.js +0 -84
  44. package/dist/elements/FileField/FileFieldElement.js.map +0 -1
  45. package/dist/elements/IdentificationElement/IdentificationElement.d.ts +0 -18
  46. package/dist/elements/IdentificationElement/IdentificationElement.js +0 -95
  47. package/dist/elements/IdentificationElement/IdentificationElement.js.map +0 -1
  48. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.d.ts +0 -16
  49. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +0 -109
  50. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +0 -1
  51. package/dist/elements/NumericField/NumericFieldElement.d.ts +0 -12
  52. package/dist/elements/NumericField/NumericFieldElement.js +0 -92
  53. package/dist/elements/NumericField/NumericFieldElement.js.map +0 -1
  54. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.d.ts +0 -14
  55. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +0 -99
  56. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +0 -1
  57. package/dist/elements/TextAreaElement/TextAreaElement.d.ts +0 -12
  58. package/dist/elements/TextAreaElement/TextAreaElement.js +0 -80
  59. package/dist/elements/TextAreaElement/TextAreaElement.js.map +0 -1
  60. package/dist/elements/TextField/TextFieldElement.d.ts +0 -12
  61. package/dist/elements/TextField/TextFieldElement.js +0 -80
  62. package/dist/elements/TextField/TextFieldElement.js.map +0 -1
  63. package/dist/elements/TypeAhead/TypeAheadElement.d.ts +0 -24
  64. package/dist/elements/TypeAhead/TypeAheadElement.js +0 -210
  65. package/dist/elements/TypeAhead/TypeAheadElement.js.map +0 -1
  66. package/dist/framework/CustomEvents.d.ts +0 -21
  67. package/dist/framework/CustomEvents.js +0 -48
  68. package/dist/framework/CustomEvents.js.map +0 -1
  69. package/dist/framework/CustomInputElement.d.ts +0 -50
  70. package/dist/framework/CustomInputElement.js +0 -258
  71. package/dist/framework/CustomInputElement.js.map +0 -1
  72. package/dist/framework/Language/Languages/Base/BaseDictionary.d.ts +0 -4
  73. package/dist/framework/Language/Languages/Base/BaseDictionary.js +0 -21
  74. package/dist/framework/Language/Languages/Base/BaseDictionary.js.map +0 -1
  75. package/dist/framework/Language/Languages/DanishDictionary.d.ts +0 -4
  76. package/dist/framework/Language/Languages/DanishDictionary.js +0 -40
  77. package/dist/framework/Language/Languages/DanishDictionary.js.map +0 -1
  78. package/dist/framework/Language/Languages/EnglishDictionary.d.ts +0 -4
  79. package/dist/framework/Language/Languages/EnglishDictionary.js +0 -40
  80. package/dist/framework/Language/Languages/EnglishDictionary.js.map +0 -1
  81. package/dist/framework/Language/Translator.d.ts +0 -6
  82. package/dist/framework/Language/Translator.js +0 -33
  83. package/dist/framework/Language/Translator.js.map +0 -1
  84. package/dist/framework/Models/OptionWithDescription.d.ts +0 -6
  85. package/dist/framework/Models/OptionWithDescription.js +0 -10
  86. package/dist/framework/Models/OptionWithDescription.js.map +0 -1
  87. package/dist/framework/Polyfills/getAttributeNamesPolyfill.d.ts +0 -1
  88. package/dist/framework/Polyfills/getAttributeNamesPolyfill.js +0 -18
  89. package/dist/framework/Polyfills/getAttributeNamesPolyfill.js.map +0 -1
  90. package/dist/framework/Translations/CaseConverter.d.ts +0 -5
  91. package/dist/framework/Translations/CaseConverter.js +0 -51
  92. package/dist/framework/Translations/CaseConverter.js.map +0 -1
  93. package/dist/framework/Utilities/DomUtility.d.ts +0 -3
  94. package/dist/framework/Utilities/DomUtility.js +0 -13
  95. package/dist/framework/Utilities/DomUtility.js.map +0 -1
  96. package/dist/framework/Utilities/debouncer.d.ts +0 -8
  97. package/dist/framework/Utilities/debouncer.js +0 -52
  98. package/dist/framework/Utilities/debouncer.js.map +0 -1
  99. package/dist/framework/Validation/IValidator.interface.d.ts +0 -3
  100. package/dist/framework/Validation/IValidator.interface.js +0 -3
  101. package/dist/framework/Validation/IValidator.interface.js.map +0 -1
  102. package/dist/framework/Validation/Validators/BankAccount.d.ts +0 -4
  103. package/dist/framework/Validation/Validators/BankAccount.js +0 -13
  104. package/dist/framework/Validation/Validators/BankAccount.js.map +0 -1
  105. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.d.ts +0 -4
  106. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.js +0 -13
  107. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.js.map +0 -1
  108. package/dist/framework/Validation/Validators/BankIdNorway.d.ts +0 -5
  109. package/dist/framework/Validation/Validators/BankIdNorway.js +0 -22
  110. package/dist/framework/Validation/Validators/BankIdNorway.js.map +0 -1
  111. package/dist/framework/Validation/Validators/BankIdSweden.d.ts +0 -5
  112. package/dist/framework/Validation/Validators/BankIdSweden.js +0 -22
  113. package/dist/framework/Validation/Validators/BankIdSweden.js.map +0 -1
  114. package/dist/framework/Validation/Validators/CPR.d.ts +0 -9
  115. package/dist/framework/Validation/Validators/CPR.js +0 -76
  116. package/dist/framework/Validation/Validators/CPR.js.map +0 -1
  117. package/dist/framework/Validation/Validators/CVR.d.ts +0 -5
  118. package/dist/framework/Validation/Validators/CVR.js +0 -31
  119. package/dist/framework/Validation/Validators/CVR.js.map +0 -1
  120. package/dist/framework/custom-element.decorator.d.ts +0 -9
  121. package/dist/framework/custom-element.decorator.js +0 -52
  122. package/dist/framework/custom-element.decorator.js.map +0 -1
  123. package/dist/index.d.ts +0 -7
  124. package/dist/index.js +0 -15
  125. package/dist/index.js.map +0 -1
  126. package/node_modules/@webcomponents/webcomponentsjs/LICENSE.md +0 -19
  127. package/node_modules/@webcomponents/webcomponentsjs/README.md +0 -229
  128. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +0 -73
  129. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  130. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -320
  131. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  132. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -221
  133. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  134. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +0 -169
  135. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  136. package/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  137. package/node_modules/@webcomponents/webcomponentsjs/package.json +0 -82
  138. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  139. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  140. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  141. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  142. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  143. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  144. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +0 -321
  145. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  146. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +0 -185
@@ -1,8 +0,0 @@
1
- declare type Procedure = (...args: any[]) => any;
2
- interface Debounce {
3
- (...args: any[]): any;
4
- clear: () => void;
5
- flush: () => void;
6
- }
7
- declare const debouncer: (func: Procedure, wait: number, immediate?: boolean) => Debounce;
8
- export default debouncer;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var debouncer = function (func, wait, immediate) {
4
- if (immediate === void 0) { immediate = false; }
5
- var timeout;
6
- var args;
7
- var context;
8
- var result;
9
- var later = function () {
10
- timeout = null;
11
- if (!immediate) {
12
- result = func.apply(context, args);
13
- context = args = null;
14
- }
15
- };
16
- var debouncedFunc = function () {
17
- context = this;
18
- args = arguments;
19
- var callNow = immediate && !timeout;
20
- if (!timeout) {
21
- timeout = window.setTimeout(later, wait);
22
- }
23
- if (callNow) {
24
- result = func.apply(context, args);
25
- context = args = null;
26
- }
27
- return result;
28
- };
29
- var clear = function () {
30
- if (timeout) {
31
- clearTimeout(timeout);
32
- timeout = null;
33
- }
34
- };
35
- var flush = function () {
36
- if (timeout) {
37
- result = func.apply(context, args);
38
- context = args = null;
39
- clearTimeout(timeout);
40
- timeout = null;
41
- }
42
- };
43
- var debounced = (function () {
44
- var f = debouncedFunc;
45
- f.clear = clear;
46
- f.flush = flush;
47
- return f;
48
- })();
49
- return debounced;
50
- };
51
- exports.default = debouncer;
52
- //# sourceMappingURL=debouncer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debouncer.js","sourceRoot":"","sources":["../../../src/framework/Utilities/debouncer.ts"],"names":[],"mappings":";;AAQA,IAAM,SAAS,GAAG,UAAC,IAAe,EAAE,IAAY,EAAE,SAA0B;IAA1B,0BAAA,EAAA,iBAA0B;IAC3E,IAAI,OAAsB,CAAC;IAC3B,IAAI,IAAS,CAAC;IACd,IAAI,OAAY,CAAC;IACjB,IAAI,MAAW,CAAC;IAEhB,IAAM,KAAK,GAAG;QACb,OAAO,GAAG,IAAI,CAAC;QACf,IAAI,CAAC,SAAS,EAAE;YACf,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnC,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;SACtB;IACF,CAAC,CAAC;IAEF,IAAM,aAAa,GAAc;QAChC,OAAO,GAAG,IAAI,CAAC;QACf,IAAI,GAAG,SAAS,CAAC;QACjB,IAAM,OAAO,GAAG,SAAS,IAAI,CAAC,OAAO,CAAC;QAEtC,IAAI,CAAC,OAAO,EAAE;YACb,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;SACzC;QAED,IAAI,OAAO,EAAE;YACZ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnC,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;SACtB;QAED,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IAEF,IAAM,KAAK,GAAG;QACb,IAAI,OAAO,EAAE;YACZ,YAAY,CAAC,OAAO,CAAC,CAAC;YACtB,OAAO,GAAG,IAAI,CAAC;SACf;IACF,CAAC,CAAC;IAEF,IAAM,KAAK,GAAG;QACb,IAAI,OAAO,EAAE;YACZ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnC,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;YAEtB,YAAY,CAAC,OAAO,CAAC,CAAC;YACtB,OAAO,GAAG,IAAI,CAAC;SACf;IACF,CAAC,CAAC;IAEF,IAAM,SAAS,GAAa,CAAC;QAC5B,IAAM,CAAC,GAAQ,aAAa,CAAC;QAC7B,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;QAChB,OAAO,CAAC,CAAC;IACV,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- export default interface IValidator {
2
- isSatisfiedBy(input: string, allowEmpty: boolean): boolean;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IValidator.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IValidator.interface.js","sourceRoot":"","sources":["../../../src/framework/Validation/IValidator.interface.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class BankAccountValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var BankAccountValidator = /** @class */ (function () {
4
- function BankAccountValidator() {
5
- }
6
- BankAccountValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return true;
9
- };
10
- return BankAccountValidator;
11
- }());
12
- exports.default = BankAccountValidator;
13
- //# sourceMappingURL=BankAccount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BankAccount.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/BankAccount.ts"],"names":[],"mappings":";;AAEA;IAAA;IAIA,CAAC;IAHG,4CAAa,GAAb,UAAc,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACnD,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,2BAAC;AAAD,CAAC,AAJD,IAIC"}
@@ -1,4 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class BankAccountRegistrationNumberValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var BankAccountRegistrationNumberValidator = /** @class */ (function () {
4
- function BankAccountRegistrationNumberValidator() {
5
- }
6
- BankAccountRegistrationNumberValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return true;
9
- };
10
- return BankAccountRegistrationNumberValidator;
11
- }());
12
- exports.default = BankAccountRegistrationNumberValidator;
13
- //# sourceMappingURL=BankAccountRegistrationNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BankAccountRegistrationNumber.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/BankAccountRegistrationNumber.ts"],"names":[],"mappings":";;AAEA;IAAA;IAKA,CAAC;IAHG,8DAAa,GAAb,UAAc,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACnD,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,6CAAC;AAAD,CAAC,AALD,IAKC"}
@@ -1,5 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class BankIdNorwayValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- private checkNoPersonnummer;
5
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var BankIdNorwayValidator = /** @class */ (function () {
4
- function BankIdNorwayValidator() {
5
- }
6
- BankIdNorwayValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return this.checkNoPersonnummer(input, allowEmpty);
9
- };
10
- BankIdNorwayValidator.prototype.checkNoPersonnummer = function (input, allowEmpty) {
11
- if (allowEmpty === void 0) { allowEmpty = true; }
12
- if (!input) {
13
- return allowEmpty;
14
- }
15
- var personnummer = input.replace(' ', '').replace('-', '');
16
- var regex = new RegExp(/^(0[1-9]|1[0-9]|2[0-9]|3[0-1])(0[1-9]|1[0-2])(\d{2})(\d{5})$/);
17
- return regex.test(personnummer);
18
- };
19
- return BankIdNorwayValidator;
20
- }());
21
- exports.default = BankIdNorwayValidator;
22
- //# sourceMappingURL=BankIdNorway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BankIdNorway.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/BankIdNorway.ts"],"names":[],"mappings":";;AAEA;IAAA;IAkBA,CAAC;IAjBG,6CAAa,GAAb,UAAc,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACnD,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IACvD,CAAC;IAEO,mDAAmB,GAA3B,UACI,KAAa,EACb,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QAE1B,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,UAAU,CAAC;SACrB;QACD,IAAM,YAAY,GAAW,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACrE,IAAM,KAAK,GAAW,IAAI,MAAM,CAC5B,8DAA8D,CACjE,CAAC;QACF,OAAO,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC;IACL,4BAAC;AAAD,CAAC,AAlBD,IAkBC"}
@@ -1,5 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class BankIdSwedenValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- private checkSePersonnummer;
5
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var BankIdSwedenValidator = /** @class */ (function () {
4
- function BankIdSwedenValidator() {
5
- }
6
- BankIdSwedenValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return this.checkSePersonnummer(input, allowEmpty);
9
- };
10
- BankIdSwedenValidator.prototype.checkSePersonnummer = function (input, allowEmpty) {
11
- if (allowEmpty === void 0) { allowEmpty = true; }
12
- if (!input) {
13
- return allowEmpty;
14
- }
15
- var personnummer = input.replace(' ', '').replace('-', '');
16
- var regex = new RegExp(/^(19\d{2}|20\d{2})(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])(\d{4})$/);
17
- return regex.test(personnummer);
18
- };
19
- return BankIdSwedenValidator;
20
- }());
21
- exports.default = BankIdSwedenValidator;
22
- //# sourceMappingURL=BankIdSweden.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BankIdSweden.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/BankIdSweden.ts"],"names":[],"mappings":";;AAEA;IAAA;IAkBA,CAAC;IAjBG,6CAAa,GAAb,UAAc,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACnD,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IACvD,CAAC;IAEO,mDAAmB,GAA3B,UACI,KAAa,EACb,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QAE1B,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,UAAU,CAAC;SACrB;QACD,IAAM,YAAY,GAAW,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACrE,IAAM,KAAK,GAAW,IAAI,MAAM,CAC5B,wEAAwE,CAC3E,CAAC;QACF,OAAO,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC;IACL,4BAAC;AAAD,CAAC,AAlBD,IAkBC"}
@@ -1,9 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class CprValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- private modulus11Multiply;
5
- private modulus11Exceptions;
6
- private checkCprDate;
7
- private getCprDate;
8
- private checkCpr;
9
- }
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var CprValidator = /** @class */ (function () {
4
- function CprValidator() {
5
- }
6
- CprValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return this.checkCpr(input, allowEmpty);
9
- };
10
- CprValidator.prototype.modulus11Multiply = function (value, index) {
11
- var control = [4, 3, 2, 7, 6, 5, 4, 3, 2, 1];
12
- return control[index] * value;
13
- };
14
- CprValidator.prototype.modulus11Exceptions = function (input) {
15
- var exceptionDates = [
16
- 1960,
17
- 1964,
18
- 1965,
19
- 1966,
20
- 1969,
21
- 1970,
22
- 1980,
23
- 1982,
24
- 1984,
25
- 1985,
26
- 1986,
27
- 1987,
28
- 1988,
29
- 1989,
30
- 1990,
31
- ].map(function (x) { return new Date(x, 0, 1); }); // months are 0-indexed
32
- var cprDate = this.getCprDate(input);
33
- return exceptionDates.some(function (x) { return x.getDate() === cprDate.getDate(); });
34
- };
35
- CprValidator.prototype.checkCprDate = function (input) {
36
- var year = +input.substr(4, 2) + 2000;
37
- year -= year > new Date().getFullYear() ? 100 : 0; // is 20xx or 19xx
38
- var month = +input.substr(2, 2) - 1;
39
- var day = +input.substr(0, 2);
40
- var date = new Date(year, month, day);
41
- return (date.getFullYear() === year &&
42
- date.getMonth() === month &&
43
- date.getDate() === day);
44
- };
45
- CprValidator.prototype.getCprDate = function (input) {
46
- var year = +input.substr(4, 2) + 2000;
47
- year -= year > new Date().getFullYear() ? 100 : 0; // is 20xx or 19xx
48
- var month = +input.substr(2, 2) - 1;
49
- var day = +input.substr(0, 2);
50
- return new Date(year, month, day);
51
- };
52
- CprValidator.prototype.checkCpr = function (input, allowEmpty) {
53
- if (allowEmpty === void 0) { allowEmpty = true; }
54
- if (!input) {
55
- return allowEmpty;
56
- }
57
- var cprnr = input.replace(' ', '').replace('-', '');
58
- if (!cprnr.match(/^\d{10}$/)) {
59
- return false;
60
- }
61
- if (!this.checkCprDate(cprnr)) {
62
- return false;
63
- }
64
- if (this.modulus11Exceptions(cprnr)) {
65
- return true;
66
- }
67
- var output = 0;
68
- for (var i = 0; i < 10; i++) {
69
- output += this.modulus11Multiply(parseInt(cprnr.substr(i, 1), 10), i);
70
- }
71
- return output % 11 === 0; // hvis output går op i 11, er det et gyldigt cpr.
72
- };
73
- return CprValidator;
74
- }());
75
- exports.default = CprValidator;
76
- //# sourceMappingURL=CPR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CPR.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/CPR.ts"],"names":[],"mappings":"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"}
@@ -1,5 +0,0 @@
1
- import IValidation from '../IValidator.interface';
2
- export default class CvrValidator implements IValidation {
3
- isSatisfiedBy(input: string, allowEmpty?: boolean): boolean;
4
- private checkCvr;
5
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var CvrValidator = /** @class */ (function () {
4
- function CvrValidator() {
5
- }
6
- CvrValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
7
- if (allowEmpty === void 0) { allowEmpty = true; }
8
- return this.checkCvr(input, allowEmpty);
9
- };
10
- CvrValidator.prototype.checkCvr = function (input, allowEmpty) {
11
- if (allowEmpty === void 0) { allowEmpty = true; }
12
- if (!allowEmpty && !input)
13
- return false;
14
- var cvrnr = input.replace(' ', '').replace('-', '');
15
- if (!cvrnr) {
16
- return allowEmpty;
17
- }
18
- if (!/^\d{8}$/.test(cvrnr)) {
19
- return false;
20
- }
21
- // cvr numre kan åbenbart også modulus11 testes.
22
- var total = 0;
23
- [2, 7, 6, 5, 4, 3, 2, 1].forEach(function (elm, index) {
24
- total += parseInt(cvrnr[index], 10) * elm;
25
- });
26
- return total % 11 === 0;
27
- };
28
- return CvrValidator;
29
- }());
30
- exports.default = CvrValidator;
31
- //# sourceMappingURL=CVR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CVR.js","sourceRoot":"","sources":["../../../../src/framework/Validation/Validators/CVR.ts"],"names":[],"mappings":";;AAEA;IAAA;IAwBA,CAAC;IAvBG,oCAAa,GAAb,UAAc,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAEO,+BAAQ,GAAhB,UAAiB,KAAa,EAAE,UAA0B;QAA1B,2BAAA,EAAA,iBAA0B;QACtD,IAAI,CAAC,UAAU,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QACxC,IAAM,KAAK,GAAW,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,UAAU,CAAC;SACrB;QACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YACxB,OAAO,KAAK,CAAC;SAChB;QAED,gDAAgD;QAChD,IAAI,KAAK,GAAW,CAAC,CAAC;QAEtB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAC,GAAG,EAAE,KAAK;YACxC,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC;QAC9C,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,GAAG,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IACL,mBAAC;AAAD,CAAC,AAxBD,IAwBC"}
@@ -1,9 +0,0 @@
1
- declare class elementConfig {
2
- selector: string;
3
- template: string;
4
- style: string;
5
- useShadow: boolean;
6
- templatePath?: string;
7
- }
8
- declare const CustomElement: (config: elementConfig) => (cls: any) => void;
9
- export default CustomElement;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var elementConfig = /** @class */ (function () {
4
- function elementConfig() {
5
- }
6
- return elementConfig;
7
- }());
8
- var validateSelector = function (selector) {
9
- if (selector.indexOf('-') <= 0) {
10
- throw new Error('You need at least 1 dash in the custom element name!');
11
- }
12
- };
13
- var CustomElement = function (config) {
14
- return function (cls) {
15
- validateSelector(config.selector);
16
- var templateElement = document.createElement('template');
17
- if (!config.template) {
18
- throw new Error('You need to pass a template for the element');
19
- }
20
- templateElement.innerHTML = "<style>" + config.style + "</style> " + config.template;
21
- var connectedCallback = cls.prototype.connectedCallback || function () { };
22
- var disconnectedCallback = cls.prototype.disconnectedCallback || function () { };
23
- cls.prototype.connectedCallback = function () {
24
- var clone = document.importNode(templateElement.content, true);
25
- if (config.useShadow && !this.shadowRoot) {
26
- this.attachShadow({ mode: 'open' }).appendChild(clone);
27
- }
28
- else {
29
- this.appendChild(clone);
30
- }
31
- if (this.componentWillMount) {
32
- this.componentWillMount();
33
- }
34
- connectedCallback.call(this);
35
- if (this.componentDidMount) {
36
- this.componentDidMount();
37
- }
38
- };
39
- cls.prototype.disconnectedCallback = function () {
40
- if (this.componentWillUnmount) {
41
- this.componentWillUnmount();
42
- }
43
- disconnectedCallback.call(this);
44
- if (this.componentDidUnmount) {
45
- this.componentDidUnmount();
46
- }
47
- };
48
- window.customElements.define(config.selector, cls);
49
- };
50
- };
51
- exports.default = CustomElement;
52
- //# sourceMappingURL=custom-element.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-element.decorator.js","sourceRoot":"","sources":["../../src/framework/custom-element.decorator.ts"],"names":[],"mappings":";;AAAA;IAAA;IAMA,CAAC;IAAD,oBAAC;AAAD,CAAC,AAND,IAMC;AAED,IAAM,gBAAgB,GAAG,UAAC,QAAgB;IACzC,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;KACxE;AACF,CAAC,CAAC;AAEF,IAAM,aAAa,GAAG,UAAC,MAAqB;IAC3C,OAAO,UAAC,GAAQ;QACf,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,IAAI,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;SAC/D;QACD,eAAe,CAAC,SAAS,GAAG,YAAU,MAAM,CAAC,KAAK,iBACjD,MAAM,CAAC,QACL,CAAC;QACJ,IAAI,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,iBAAiB,IAAI,cAAc,CAAC,CAAC;QAC3E,IAAM,oBAAoB,GAAG,GAAG,CAAC,SAAS,CAAC,oBAAoB,IAAI,cAAc,CAAC,CAAC;QAEnF,GAAG,CAAC,SAAS,CAAC,iBAAiB,GAAG;YACjC,IAAI,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC/D,IAAI,MAAM,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBACzC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACvD;iBAAM;gBACN,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACxB;YACD,IAAI,IAAI,CAAC,kBAAkB,EAAE;gBAC5B,IAAI,CAAC,kBAAkB,EAAE,CAAC;aAC1B;YACD,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;aACzB;QACF,CAAC,CAAC;QAEF,GAAG,CAAC,SAAS,CAAC,oBAAoB,GAAG;YACpC,IAAI,IAAI,CAAC,oBAAoB,EAAE;gBAC9B,IAAI,CAAC,oBAAoB,EAAE,CAAC;aAC5B;YACD,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,IAAI,IAAI,CAAC,mBAAmB,EAAE;gBAC7B,IAAI,CAAC,mBAAmB,EAAE,CAAC;aAC3B;QACF,CAAC,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import '@webcomponents/webcomponentsjs/webcomponents-bundle';
2
- import '@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js';
3
- import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
4
- import { CustomForm } from './custom-form';
5
- import { CustomInputElement } from './framework/CustomInputElement';
6
- import * as elements from './elements/Elements';
7
- export { CustomForm, elements, CustomInputElement };
package/dist/index.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomInputElement = exports.elements = exports.CustomForm = void 0;
4
- require("@webcomponents/webcomponentsjs/webcomponents-bundle");
5
- require("@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js");
6
- require("@webcomponents/webcomponentsjs/webcomponents-loader.js");
7
- // form
8
- var custom_form_1 = require("./custom-form");
9
- Object.defineProperty(exports, "CustomForm", { enumerable: true, get: function () { return custom_form_1.CustomForm; } });
10
- var CustomInputElement_1 = require("./framework/CustomInputElement");
11
- Object.defineProperty(exports, "CustomInputElement", { enumerable: true, get: function () { return CustomInputElement_1.CustomInputElement; } });
12
- // elements
13
- var elements = require("./elements/Elements");
14
- exports.elements = elements;
15
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+DAA6D;AAC7D,yEAAuE;AACvE,kEAAgE;AAEhE,OAAO;AACP,6CAA2C;AAMlC,2FANA,wBAAU,OAMA;AALnB,qEAAoE;AAKrC,mGALtB,uCAAkB,OAKsB;AAHjD,WAAW;AACX,8CAAgD;AAE3B,4BAAQ"}
@@ -1,19 +0,0 @@
1
- # License
2
-
3
- Everything in this repo is BSD style license unless otherwise specified.
4
-
5
- Copyright (c) 2015 The Polymer Authors. All rights reserved.
6
-
7
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8
-
9
- * Redistributions of source code must retain the above copyright
10
- notice, this list of conditions and the following disclaimer.
11
- * Redistributions in binary form must reproduce the above
12
- copyright notice, this list of conditions and the following disclaimer
13
- in the documentation and/or other materials provided with the
14
- distribution.
15
- * Neither the name of Google Inc. nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.