@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,185 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
- * Code distributed by Google as part of the polymer project is also
8
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
- */
10
-
11
- (function() {
12
- 'use strict';
13
-
14
- /**
15
- * Basic flow of the loader process
16
- *
17
- * There are 4 flows the loader can take when booting up
18
- *
19
- * - Synchronous script, no polyfills needed
20
- * - wait for `DOMContentLoaded`
21
- * - fire WCR event, as there could not be any callbacks passed to `waitFor`
22
- *
23
- * - Synchronous script, polyfills needed
24
- * - document.write the polyfill bundle
25
- * - wait on the `load` event of the bundle to batch Custom Element upgrades
26
- * - wait for `DOMContentLoaded`
27
- * - run callbacks passed to `waitFor`
28
- * - fire WCR event
29
- *
30
- * - Asynchronous script, no polyfills needed
31
- * - wait for `DOMContentLoaded`
32
- * - run callbacks passed to `waitFor`
33
- * - fire WCR event
34
- *
35
- * - Asynchronous script, polyfills needed
36
- * - Append the polyfill bundle script
37
- * - wait for `load` event of the bundle
38
- * - batch Custom Element Upgrades
39
- * - run callbacks pass to `waitFor`
40
- * - fire WCR event
41
- */
42
-
43
- var polyfillsLoaded = false;
44
- var whenLoadedFns = [];
45
- var allowUpgrades = false;
46
- var flushFn;
47
-
48
- function fireEvent() {
49
- window.WebComponents.ready = true;
50
- document.dispatchEvent(new CustomEvent('WebComponentsReady', { bubbles: true }));
51
- }
52
-
53
- function batchCustomElements() {
54
- if (window.customElements && customElements.polyfillWrapFlushCallback) {
55
- customElements.polyfillWrapFlushCallback(function (flushCallback) {
56
- flushFn = flushCallback;
57
- if (allowUpgrades) {
58
- flushFn();
59
- }
60
- });
61
- }
62
- }
63
-
64
- function asyncReady() {
65
- batchCustomElements();
66
- ready();
67
- }
68
-
69
- function ready() {
70
- // bootstrap <template> elements before custom elements
71
- if (window.HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
72
- HTMLTemplateElement.bootstrap(window.document);
73
- }
74
- polyfillsLoaded = true;
75
- runWhenLoadedFns().then(fireEvent);
76
- }
77
-
78
- function runWhenLoadedFns() {
79
- allowUpgrades = false;
80
- var fnsMap = whenLoadedFns.map(function(fn) {
81
- return fn instanceof Function ? fn() : fn;
82
- });
83
- whenLoadedFns = [];
84
- return Promise.all(fnsMap).then(function() {
85
- allowUpgrades = true;
86
- flushFn && flushFn();
87
- }).catch(function(err) {
88
- console.error(err);
89
- });
90
- }
91
-
92
- window.WebComponents = window.WebComponents || {};
93
- window.WebComponents.ready = window.WebComponents.ready || false;
94
- window.WebComponents.waitFor = window.WebComponents.waitFor || function(waitFn) {
95
- if (!waitFn) {
96
- return;
97
- }
98
- whenLoadedFns.push(waitFn);
99
- if (polyfillsLoaded) {
100
- runWhenLoadedFns();
101
- }
102
- };
103
- window.WebComponents._batchCustomElements = batchCustomElements;
104
-
105
- var name = 'webcomponents-loader.js';
106
- // Feature detect which polyfill needs to be imported.
107
- var polyfills = [];
108
- if (!('attachShadow' in Element.prototype && 'getRootNode' in Element.prototype) ||
109
- (window.ShadyDOM && window.ShadyDOM.force)) {
110
- polyfills.push('sd');
111
- }
112
- if (!window.customElements || window.customElements.forcePolyfill) {
113
- polyfills.push('ce');
114
- }
115
-
116
- var needsTemplate = (function() {
117
- // no real <template> because no `content` property (IE and older browsers)
118
- var t = document.createElement('template');
119
- if (!('content' in t)) {
120
- return true;
121
- }
122
- // broken doc fragment (older Edge)
123
- if (!(t.content.cloneNode() instanceof DocumentFragment)) {
124
- return true;
125
- }
126
- // broken <template> cloning (Edge up to at least version 17)
127
- var t2 = document.createElement('template');
128
- t2.content.appendChild(document.createElement('div'));
129
- t.content.appendChild(t2);
130
- var clone = t.cloneNode(true);
131
- return (clone.content.childNodes.length === 0 ||
132
- clone.content.firstChild.content.childNodes.length === 0);
133
- })();
134
-
135
- // NOTE: any browser that does not have template or ES6 features
136
- // must load the full suite of polyfills.
137
- if (!window.Promise || !Array.from || !window.URL || !window.Symbol || needsTemplate) {
138
- polyfills = ['sd-ce-pf'];
139
- }
140
-
141
- if (polyfills.length) {
142
- var url;
143
- var polyfillFile = 'bundles/webcomponents-' + polyfills.join('-') + '.js';
144
-
145
- // Load it from the right place.
146
- if (window.WebComponents.root) {
147
- url = window.WebComponents.root + polyfillFile;
148
- } else {
149
- var script = document.querySelector('script[src*="' + name +'"]');
150
- // Load it from the right place.
151
- url = script.src.replace(name, polyfillFile);
152
- }
153
-
154
- var newScript = document.createElement('script');
155
- newScript.src = url;
156
- // if readyState is 'loading', this script is synchronous
157
- if (document.readyState === 'loading') {
158
- // make sure custom elements are batched whenever parser gets to the injected script
159
- newScript.setAttribute('onload', 'window.WebComponents._batchCustomElements()');
160
- document.write(newScript.outerHTML);
161
- document.addEventListener('DOMContentLoaded', ready);
162
- } else {
163
- newScript.addEventListener('load', function () {
164
- asyncReady();
165
- });
166
- newScript.addEventListener('error', function () {
167
- throw new Error('Could not load polyfill bundle' + url);
168
- });
169
- document.head.appendChild(newScript);
170
- }
171
- } else {
172
- // if readyState is 'complete', script is loaded imperatively on a spec-compliant browser, so just fire WCR
173
- if (document.readyState === 'complete') {
174
- polyfillsLoaded = true;
175
- fireEvent();
176
- } else {
177
- // this script may come between DCL and load, so listen for both, and cancel load listener if DCL fires
178
- window.addEventListener('load', ready);
179
- window.addEventListener('DOMContentLoaded', function() {
180
- window.removeEventListener('load', ready);
181
- ready();
182
- })
183
- }
184
- }
185
- })();