@everymatrix/general-input 1.44.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +3873 -1756
  3. package/dist/cjs/general-input.cjs.entry.js +65 -63
  4. package/dist/cjs/general-input.cjs.js +17 -11
  5. package/dist/cjs/index-8cb018cb.js +1316 -0
  6. package/dist/cjs/index.cjs.js +13 -13
  7. package/dist/cjs/loader.cjs.js +7 -13
  8. package/dist/cjs/locale.utils-76c75c40.js +147 -0
  9. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +77 -78
  10. package/dist/collection/collection-manifest.json +14 -14
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +368 -353
  12. package/dist/collection/components/checkbox-input/checkbox-input.js +325 -315
  13. package/dist/collection/components/date-input/date-input.css +2 -2
  14. package/dist/collection/components/date-input/date-input.js +397 -376
  15. package/dist/collection/components/email-input/email-input.css +7 -11
  16. package/dist/collection/components/email-input/email-input.js +404 -385
  17. package/dist/collection/components/general-input/general-input.js +373 -368
  18. package/dist/collection/components/general-input/index.js +1 -0
  19. package/dist/collection/components/number-input/number-input.js +370 -352
  20. package/dist/collection/components/password-input/password-input.css +2 -4
  21. package/dist/collection/components/password-input/password-input.js +513 -540
  22. package/dist/collection/components/radio-input/radio-input.js +301 -286
  23. package/dist/collection/components/select-input/select-input.css +8 -9
  24. package/dist/collection/components/select-input/select-input.js +427 -414
  25. package/dist/collection/components/tel-input/tel-input.css +1 -1
  26. package/dist/collection/components/tel-input/tel-input.js +440 -422
  27. package/dist/collection/components/text-input/text-input.css +0 -1
  28. package/dist/collection/components/text-input/text-input.js +444 -429
  29. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +327 -340
  30. package/dist/collection/index.js +13 -13
  31. package/dist/collection/utils/locale.utils.js +133 -133
  32. package/dist/collection/utils/utils.js +3 -3
  33. package/dist/esm/app-globals-0f993ce5.js +3 -0
  34. package/dist/esm/checkbox-group-input_10.entry.js +3873 -1756
  35. package/dist/esm/general-input.entry.js +65 -63
  36. package/dist/esm/general-input.js +14 -11
  37. package/dist/esm/index-514fda47.js +1287 -0
  38. package/dist/esm/index.js +13 -13
  39. package/dist/esm/loader.js +7 -13
  40. package/dist/esm/locale.utils-ca41bf95.js +144 -0
  41. package/dist/esm/toggle-checkbox-input.entry.js +77 -78
  42. package/dist/general-input/general-input.esm.js +1 -1
  43. package/dist/general-input/p-03e81c11.js +2 -0
  44. package/dist/general-input/p-aec71434.js +1 -0
  45. package/dist/general-input/p-e1255160.js +1 -0
  46. package/dist/general-input/p-eb454344.entry.js +1 -0
  47. package/dist/general-input/p-ecdc294b.entry.js +5430 -0
  48. package/dist/general-input/p-f92ab852.entry.js +1 -0
  49. package/dist/stencil.config.dev.js +17 -0
  50. package/dist/stencil.config.js +14 -19
  51. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
  52. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
  53. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +68 -68
  54. package/dist/types/components/checkbox-input/checkbox-input.d.ts +61 -62
  55. package/dist/types/components/date-input/date-input.d.ts +78 -78
  56. package/dist/types/components/email-input/email-input.d.ts +77 -77
  57. package/dist/types/components/general-input/general-input.d.ts +72 -72
  58. package/dist/types/components/general-input/index.d.ts +1 -0
  59. package/dist/types/components/number-input/number-input.d.ts +71 -71
  60. package/dist/types/components/password-input/password-input.d.ts +87 -92
  61. package/dist/types/components/radio-input/radio-input.d.ts +55 -55
  62. package/dist/types/components/select-input/select-input.d.ts +79 -79
  63. package/dist/types/components/tel-input/tel-input.d.ts +85 -85
  64. package/dist/types/components/text-input/text-input.d.ts +81 -81
  65. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +63 -68
  66. package/dist/types/components.d.ts +201 -39
  67. package/dist/types/stencil-public-runtime.d.ts +142 -33
  68. package/dist/types/utils/locale.utils.d.ts +8 -8
  69. package/dist/types/utils/types.d.ts +54 -54
  70. package/loader/cdn.js +1 -3
  71. package/loader/index.cjs.js +1 -3
  72. package/loader/index.d.ts +13 -1
  73. package/loader/index.es2017.js +1 -3
  74. package/loader/index.js +1 -3
  75. package/loader/package.json +1 -0
  76. package/package.json +8 -1
  77. package/dist/cjs/index-132a0774.js +0 -1327
  78. package/dist/cjs/locale.utils-2fa6f747.js +0 -147
  79. package/dist/components/active-mixin.js +0 -975
  80. package/dist/components/checkbox-group-input.d.ts +0 -11
  81. package/dist/components/checkbox-group-input.js +0 -6
  82. package/dist/components/checkbox-group-input2.js +0 -1078
  83. package/dist/components/checkbox-input.d.ts +0 -11
  84. package/dist/components/checkbox-input.js +0 -6
  85. package/dist/components/checkbox-input2.js +0 -132
  86. package/dist/components/date-input.d.ts +0 -11
  87. package/dist/components/date-input.js +0 -6
  88. package/dist/components/date-input2.js +0 -11556
  89. package/dist/components/email-input.d.ts +0 -11
  90. package/dist/components/email-input.js +0 -6
  91. package/dist/components/email-input2.js +0 -171
  92. package/dist/components/field-mixin.js +0 -12426
  93. package/dist/components/general-input.d.ts +0 -11
  94. package/dist/components/general-input.js +0 -6
  95. package/dist/components/general-input2.js +0 -350
  96. package/dist/components/index.d.ts +0 -26
  97. package/dist/components/index.js +0 -18
  98. package/dist/components/input-field-shared-styles.js +0 -1211
  99. package/dist/components/number-input.d.ts +0 -11
  100. package/dist/components/number-input.js +0 -6
  101. package/dist/components/number-input2.js +0 -158
  102. package/dist/components/password-input.d.ts +0 -11
  103. package/dist/components/password-input.js +0 -6
  104. package/dist/components/password-input2.js +0 -1059
  105. package/dist/components/radio-input.d.ts +0 -11
  106. package/dist/components/radio-input.js +0 -6
  107. package/dist/components/radio-input2.js +0 -114
  108. package/dist/components/select-input.d.ts +0 -11
  109. package/dist/components/select-input.js +0 -6
  110. package/dist/components/select-input2.js +0 -183
  111. package/dist/components/tel-input.d.ts +0 -11
  112. package/dist/components/tel-input.js +0 -6
  113. package/dist/components/tel-input2.js +0 -197
  114. package/dist/components/text-input.d.ts +0 -11
  115. package/dist/components/text-input.js +0 -6
  116. package/dist/components/text-input2.js +0 -199
  117. package/dist/components/toggle-checkbox-input.d.ts +0 -11
  118. package/dist/components/toggle-checkbox-input.js +0 -6
  119. package/dist/components/tooltipIcon.js +0 -146
  120. package/dist/components/vaadin-button.js +0 -490
  121. package/dist/components/vaadin-combo-box.js +0 -4512
  122. package/dist/components/virtual-keyboard-controller.js +0 -2001
  123. package/dist/esm/index-db76d5b5.js +0 -1299
  124. package/dist/esm/locale.utils-30fb5289.js +0 -144
  125. package/dist/esm/polyfills/core-js.js +0 -11
  126. package/dist/esm/polyfills/css-shim.js +0 -1
  127. package/dist/esm/polyfills/dom.js +0 -79
  128. package/dist/esm/polyfills/es5-html-element.js +0 -1
  129. package/dist/esm/polyfills/index.js +0 -34
  130. package/dist/esm/polyfills/system.js +0 -6
  131. package/dist/general-input/p-04d4b145.js +0 -1
  132. package/dist/general-input/p-a8221ce9.entry.js +0 -1
  133. package/dist/general-input/p-b408093e.js +0 -1
  134. package/dist/general-input/p-b64caafa.entry.js +0 -3646
  135. package/dist/general-input/p-c85c0e4d.entry.js +0 -1
  136. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
  137. /package/dist/cjs/{tooltipIcon-092a795f.js → tooltipIcon-7e9ee226.js} +0 -0
  138. /package/dist/esm/{tooltipIcon-99c1c7b7.js → tooltipIcon-0a5a06a2.js} +0 -0
  139. /package/dist/general-input/{p-f4f4ccda.js → p-2dccd0bf.js} +0 -0
@@ -1,562 +1,535 @@
1
- import { Component, h, Prop, State, Watch, Event, Listen, Element } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import '@vaadin/password-field';
4
- import tooltipIcon from '../../utils/tooltipIcon.svg';
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import "@vaadin/password-field";
4
+ import tooltipIcon from "../../utils/tooltipIcon.svg";
5
5
  export class PasswordInput {
6
- constructor() {
7
- /**
8
- * Default value for the input.
9
- */
10
- this.defaultValue = '';
11
- /**
12
- * Client custom styling via inline style
13
- */
14
- this.clientStyling = '';
15
- /**
16
- * Client Styling Url
17
- */
18
- this.clientStylingUrl = '';
19
- this.limitStylingAppends = false;
20
- this.showTooltip = false;
21
- this.value = '';
22
- this.touched = false;
23
- this.originalValid = false;
24
- this.validationPattern = '';
25
- this.duplicateInputValue = null;
26
- this.handleInput = (event) => {
27
- this.value = event.target.value;
28
- this.calculateComplexity(this.value);
29
- this.validation.custom.length === 0 || (this.showPopup = true);
30
- this.touched = true;
31
- if (this.debounceTime) {
32
- clearTimeout(this.debounceTime);
33
- }
34
- this.debounceTime = setTimeout(() => {
35
- this.isValid = this.setValidity();
36
- this.errorMessage = this.setErrorMessage();
37
- this.emitValueHandler(true);
38
- }, 500);
39
- };
40
- this.handleBlur = (event) => {
41
- this.value = event.target.value;
42
- this.showPopup = false;
43
- this.touched = true;
44
- this.isValid = this.setValidity();
45
- this.errorMessage = this.setErrorMessage();
46
- };
47
- this.handleFocus = () => {
48
- this.validation.custom.length === 0 || (this.showPopup = true);
49
- this.calculateComplexity(this.value);
50
- };
51
- this.setClientStyling = () => {
52
- const sheet = document.createElement('style');
53
- sheet.innerHTML = this.clientStyling;
54
- this.stylingContainer.prepend(sheet);
55
- };
56
- this.setClientStylingURL = () => {
57
- const url = new URL(this.clientStylingUrl);
58
- const cssFile = document.createElement('style');
59
- fetch(url.href)
60
- .then((res) => res.text())
61
- .then((data) => {
62
- cssFile.innerHTML = data;
63
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
64
- })
65
- .catch((err) => {
66
- console.error(err);
67
- });
68
- };
69
- }
70
- validityChanged() {
71
- this.validityStateHandler({ valid: this.isValid, name: this.name });
72
- if (this.emitValue == true) {
73
- this.valueHandler({ name: this.name, value: this.value });
6
+ constructor() {
7
+ this.touched = false;
8
+ this.originalValid = false;
9
+ this.validationPattern = '';
10
+ this.duplicateInputValue = null;
11
+ this.handleInput = (event) => {
12
+ this.value = event.target.value;
13
+ this.calculateComplexity(this.value);
14
+ this.showPopup = true;
15
+ this.touched = true;
16
+ if (this.debounceTime) {
17
+ clearTimeout(this.debounceTime);
18
+ }
19
+ this.debounceTime = setTimeout(() => {
20
+ this.isValid = this.setValidity();
21
+ this.errorMessage = this.setErrorMessage();
22
+ this.emitValueHandler(true);
23
+ }, 500);
24
+ };
25
+ this.handleBlur = (event) => {
26
+ this.value = event.target.value;
27
+ this.showPopup = false;
28
+ this.touched = true;
29
+ this.isValid = this.setValidity();
30
+ this.errorMessage = this.setErrorMessage();
31
+ };
32
+ this.handleFocus = () => {
33
+ this.showPopup = true;
34
+ this.calculateComplexity(this.value);
35
+ };
36
+ this.setClientStyling = () => {
37
+ let sheet = document.createElement('style');
38
+ sheet.innerHTML = this.clientStyling;
39
+ this.stylingContainer.prepend(sheet);
40
+ };
41
+ this.name = undefined;
42
+ this.displayName = undefined;
43
+ this.placeholder = undefined;
44
+ this.defaultValue = '';
45
+ this.autofilled = undefined;
46
+ this.tooltip = undefined;
47
+ this.validation = undefined;
48
+ this.language = undefined;
49
+ this.emitValue = undefined;
50
+ this.isDuplicateInput = undefined;
51
+ this.clientStyling = '';
52
+ this.isValid = undefined;
53
+ this.errorMessage = undefined;
54
+ this.limitStylingAppends = false;
55
+ this.showTooltip = false;
56
+ this.passwordComplexity = undefined;
57
+ this.showPopup = undefined;
58
+ this.value = '';
74
59
  }
75
- }
76
- valueChanged() {
77
- if (!this.isDuplicateInput) {
78
- // recalculate complexity immediately in order to send the correct validity to the duplicate
79
- this.calculateComplexity(this.value);
80
- this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() });
60
+ validityChanged() {
61
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
62
+ if (this.emitValue == true) {
63
+ this.valueHandler({ name: this.name, value: this.value });
64
+ }
81
65
  }
82
- }
83
- emitValueHandler(newValue) {
84
- if (newValue == true && this.isValid) {
85
- this.valueHandler({ name: this.name, value: this.value, type: 'duplicate' });
66
+ valueChanged() {
67
+ if (!this.isDuplicateInput) {
68
+ // recalculate complexity immediately in order to send the correct validity to the duplicate
69
+ this.calculateComplexity(this.value);
70
+ this.sendOriginalValidityState.emit({ name: this.name, valid: this.setValidity() });
71
+ }
86
72
  }
87
- }
88
- validityStateHandler(inputStateEvent) {
89
- this.sendValidityState.emit(inputStateEvent);
90
- }
91
- valueHandler(inputValueEvent) {
92
- this.sendInputValue.emit(inputValueEvent);
93
- }
94
- originalValidityChangedHandler(event) {
95
- if (this.isDuplicateInput) {
96
- if (event.detail.valid) {
97
- this.originalValid = true;
98
- this.isValid = this.setValidity();
99
- }
100
- else {
101
- this.originalValid = false;
102
- this.isValid = false;
103
- // only show error if the user has touched the input, in order to not show errors on empty inputs
104
- this.value !== '' && (this.errorMessage = this.setErrorMessage());
105
- }
73
+ emitValueHandler(newValue) {
74
+ if (newValue == true && this.isValid) {
75
+ this.valueHandler({ name: this.name, value: this.value, type: 'duplicate' });
76
+ }
106
77
  }
107
- }
108
- valueChangedHandler(event) {
109
- if (this.isDuplicateInput && this.name === event.detail.name + 'Duplicate') {
110
- this.duplicateInputValue = event.detail.value;
111
- if (this.touched) {
112
- this.isValid = this.setValidity();
113
- this.errorMessage = this.setErrorMessage();
114
- }
78
+ validityStateHandler(inputStateEvent) {
79
+ this.sendValidityState.emit(inputStateEvent);
80
+ }
81
+ valueHandler(inputValueEvent) {
82
+ this.sendInputValue.emit(inputValueEvent);
83
+ }
84
+ originalValidityChangedHandler(event) {
85
+ if (this.isDuplicateInput) {
86
+ if (event.detail.valid) {
87
+ this.originalValid = true;
88
+ this.isValid = this.setValidity();
89
+ }
90
+ else {
91
+ this.originalValid = false;
92
+ this.isValid = false;
93
+ // only show error if the user has touched the input, in order to not show errors on empty inputs
94
+ this.value !== '' && (this.errorMessage = this.setErrorMessage());
95
+ }
96
+ }
97
+ }
98
+ valueChangedHandler(event) {
99
+ if (this.isDuplicateInput && this.name === event.detail.name + 'Duplicate') {
100
+ this.duplicateInputValue = event.detail.value;
101
+ if (this.touched) {
102
+ this.isValid = this.setValidity();
103
+ this.errorMessage = this.setErrorMessage();
104
+ }
105
+ }
106
+ if (this.name === event.detail.name + 'Duplicate'
107
+ && this.name.replace('Duplicate', '') === event.detail.name
108
+ && this.touched === true) {
109
+ this.isValid = this.setValidity();
110
+ this.errorMessage = this.setErrorMessage();
111
+ }
112
+ }
113
+ handleClickOutside(event) {
114
+ if (event.composedPath()[0] === this.tooltipIconReference)
115
+ return;
116
+ if (event.composedPath()[0] !== this.tooltipReference)
117
+ this.showTooltip = false;
118
+ }
119
+ componentDidRender() {
120
+ // start custom styling area
121
+ if (!this.limitStylingAppends && this.stylingContainer) {
122
+ if (this.clientStyling)
123
+ this.setClientStyling();
124
+ this.limitStylingAppends = true;
125
+ }
126
+ // end custom styling area
115
127
  }
116
- if (this.name === event.detail.name + 'Duplicate'
117
- && this.name.replace('Duplicate', '') === event.detail.name
118
- && this.touched === true) {
119
- this.isValid = this.setValidity();
120
- this.errorMessage = this.setErrorMessage();
128
+ componentDidLoad() {
129
+ this.inputReference = this.element.shadowRoot.querySelector('input');
130
+ this.passwordButton = this.element.shadowRoot.querySelector('vaadin-password-field-button');
131
+ this.passwordButton.tabIndex = -1;
132
+ if (this.defaultValue) {
133
+ this.value = this.defaultValue;
134
+ this.calculateComplexity(this.value);
135
+ this.valueHandler({ name: this.name, value: this.value });
136
+ if (this.isDuplicateInput) {
137
+ this.duplicateInputValue = this.defaultValue;
138
+ this.touched = true;
139
+ }
140
+ }
141
+ this.isValid = this.setValidity();
121
142
  }
122
- }
123
- handleClickOutside(event) {
124
- if (event.composedPath()[0] === this.tooltipIconReference)
125
- return;
126
- if (event.composedPath()[0] !== this.tooltipReference)
127
- this.showTooltip = false;
128
- }
129
- componentDidRender() {
130
- // start custom styling area
131
- if (!this.limitStylingAppends && this.stylingContainer) {
132
- if (this.clientStyling)
133
- this.setClientStyling();
134
- this.limitStylingAppends = true;
143
+ calculateComplexity(password) {
144
+ this.passwordComplexity = this.validation.custom
145
+ .filter(rule => rule.rule === 'regex')
146
+ .map(rule => {
147
+ const ruleRegex = new RegExp(rule.pattern);
148
+ const passed = ruleRegex.test(password);
149
+ return { rule: rule.displayName, ruleKey: rule.errorKey, passed };
150
+ });
135
151
  }
136
- // end custom styling area
137
- }
138
- componentDidLoad() {
139
- this.inputReference = this.element.shadowRoot.querySelector('input');
140
- this.passwordButton = this.element.shadowRoot.querySelector('vaadin-password-field-button');
141
- this.passwordButton.tabIndex = -1;
142
- if (this.defaultValue) {
143
- this.value = this.defaultValue;
144
- this.calculateComplexity(this.value);
145
- this.valueHandler({ name: this.name, value: this.value });
146
- if (this.isDuplicateInput) {
147
- this.duplicateInputValue = this.defaultValue;
148
- this.touched = true;
149
- }
152
+ setValidity() {
153
+ var _a, _b;
154
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
155
+ return false;
156
+ }
157
+ else if (!((_a = this.passwordComplexity) === null || _a === void 0 ? void 0 : _a.every(complexity => complexity.passed))) {
158
+ return false;
159
+ }
160
+ else {
161
+ return (_b = this.inputReference) === null || _b === void 0 ? void 0 : _b.validity.valid;
162
+ }
150
163
  }
151
- this.isValid = this.setValidity();
152
- }
153
- calculateComplexity(password) {
154
- this.passwordComplexity = this.validation.custom
155
- .filter(customValidation => customValidation.rule.toLowerCase() === 'regex')
156
- .map(customValidation => {
157
- const ruleRegex = new RegExp(customValidation.pattern);
158
- const passed = ruleRegex.test(password);
159
- return { rule: customValidation.displayName, ruleKey: customValidation.errorKey, passed };
160
- });
161
- }
162
- setValidity() {
163
- var _a, _b;
164
- if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
165
- return false;
164
+ setPattern() {
165
+ var _a, _b;
166
+ if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
167
+ return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
168
+ }
166
169
  }
167
- else if (!((_a = this.passwordComplexity) === null || _a === void 0 ? void 0 : _a.every(complexity => complexity.passed))) {
168
- return false;
170
+ setErrorMessage() {
171
+ var _a, _b, _c, _d;
172
+ if (this.isDuplicateInput && !this.originalValid) {
173
+ return translate('invalidOriginalPasswordError', this.language);
174
+ }
175
+ if (this.inputReference.validity.patternMismatch) {
176
+ const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
177
+ const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
178
+ return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
179
+ }
180
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
181
+ return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
182
+ }
183
+ if (this.inputReference.validity.valueMissing) {
184
+ return translate('requiredError', this.language);
185
+ }
186
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
187
+ const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
188
+ const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
189
+ return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
190
+ }
169
191
  }
170
- else {
171
- return (_b = this.inputReference) === null || _b === void 0 ? void 0 : _b.validity.valid;
192
+ renderTooltip() {
193
+ if (this.showTooltip) {
194
+ return (h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
195
+ }
196
+ return null;
172
197
  }
173
- }
174
- setPattern() {
175
- var _a, _b;
176
- if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
177
- return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
198
+ renderComplexityPopup() {
199
+ const totalRules = this.passwordComplexity.length;
200
+ const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
201
+ const meterValue = passedRules / totalRules;
202
+ const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
203
+ return (h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, h("div", { class: 'password__complexity--strength' }, h("p", { class: 'password__complexity--text' }, translate('passwordStrength', this.language), "\u00A0", h("span", { class: 'password__complexity--text-bold' }, translate(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), h("meter", { value: meterValue, min: "0", max: "1" })), h("div", null, this.passwordComplexity.map((complexity, index) => {
204
+ return (h("div", { key: index }, h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), h("span", null, translate(`${complexity.ruleKey}`, this.language) ? translate(`${complexity.ruleKey}`, this.language) : complexity.rule)));
205
+ }))));
178
206
  }
179
- }
180
- setErrorMessage() {
181
- var _a, _b, _c, _d;
182
- if (this.isDuplicateInput && !this.originalValid) {
183
- return translate('invalidOriginalPasswordError', this.language);
207
+ render() {
208
+ let invalidClass = '';
209
+ if (this.touched) {
210
+ invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
211
+ }
212
+ return h("div", { key: '7f6a07f3c7e3aa53e1d97d674cc7a5591c33f7ce', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: 'a487d206585a3eb30441509070a6ab0747b911b4', class: 'password__wrapper--flex' }, h("label", { key: 'e8c471fa0836cb842f529c3733491249400b534c', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '4d90f18a711b27a621ebf5043906d5f35387a7e5', class: 'password__wrapper--relative' }, this.tooltip &&
213
+ h("img", { key: 'c44c2d9bf69b37761da9d0c5485326391627b8b4', class: 'password__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("vaadin-password-field", { key: '582dde61d4f34b09e8894168c0d09ed5a7b571d8', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), h("small", { key: '6fb3a91b1872805085f4d028c0760be8f6383b10', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
184
214
  }
185
- if (this.inputReference.validity.patternMismatch) {
186
- const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
187
- const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
188
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
215
+ static get is() { return "password-input"; }
216
+ static get encapsulation() { return "shadow"; }
217
+ static get originalStyleUrls() {
218
+ return {
219
+ "$": ["password-input.scss"]
220
+ };
189
221
  }
190
- if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
191
- return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
222
+ static get styleUrls() {
223
+ return {
224
+ "$": ["password-input.css"]
225
+ };
192
226
  }
193
- if (this.inputReference.validity.valueMissing) {
194
- return translate('requiredError', this.language);
227
+ static get properties() {
228
+ return {
229
+ "name": {
230
+ "type": "string",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "string",
234
+ "resolved": "string",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": false,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "Name of the input."
242
+ },
243
+ "attribute": "name",
244
+ "reflect": true
245
+ },
246
+ "displayName": {
247
+ "type": "string",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": false,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": "Name of input to be shown to the user."
259
+ },
260
+ "attribute": "display-name",
261
+ "reflect": true
262
+ },
263
+ "placeholder": {
264
+ "type": "string",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "string",
268
+ "resolved": "string",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": false,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": "Placeholder text to be shown."
276
+ },
277
+ "attribute": "placeholder",
278
+ "reflect": true
279
+ },
280
+ "defaultValue": {
281
+ "type": "string",
282
+ "mutable": false,
283
+ "complexType": {
284
+ "original": "string",
285
+ "resolved": "string",
286
+ "references": {}
287
+ },
288
+ "required": false,
289
+ "optional": false,
290
+ "docs": {
291
+ "tags": [],
292
+ "text": "Default value for the input."
293
+ },
294
+ "attribute": "default-value",
295
+ "reflect": true,
296
+ "defaultValue": "''"
297
+ },
298
+ "autofilled": {
299
+ "type": "boolean",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "boolean",
303
+ "resolved": "boolean",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": false,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": "Boolean. Determines if input should be readonly."
311
+ },
312
+ "attribute": "autofilled",
313
+ "reflect": true
314
+ },
315
+ "tooltip": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": false,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": "Tooltip text."
328
+ },
329
+ "attribute": "tooltip",
330
+ "reflect": true
331
+ },
332
+ "validation": {
333
+ "type": "unknown",
334
+ "mutable": false,
335
+ "complexType": {
336
+ "original": "ValidationSchema",
337
+ "resolved": "ValidationSchema",
338
+ "references": {
339
+ "ValidationSchema": {
340
+ "location": "import",
341
+ "path": "../../utils/types",
342
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::ValidationSchema"
343
+ }
344
+ }
345
+ },
346
+ "required": false,
347
+ "optional": false,
348
+ "docs": {
349
+ "tags": [],
350
+ "text": "Object of validation rules for the input."
351
+ }
352
+ },
353
+ "language": {
354
+ "type": "string",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "string",
358
+ "resolved": "string",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": "Currently selected language."
366
+ },
367
+ "attribute": "language",
368
+ "reflect": true
369
+ },
370
+ "emitValue": {
371
+ "type": "boolean",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "boolean",
375
+ "resolved": "boolean",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
383
+ },
384
+ "attribute": "emit-value",
385
+ "reflect": true
386
+ },
387
+ "isDuplicateInput": {
388
+ "type": "boolean",
389
+ "mutable": false,
390
+ "complexType": {
391
+ "original": "boolean",
392
+ "resolved": "boolean",
393
+ "references": {}
394
+ },
395
+ "required": false,
396
+ "optional": false,
397
+ "docs": {
398
+ "tags": [],
399
+ "text": "Flag for duplicate inputs, it sets up the input for certain validation rules."
400
+ },
401
+ "attribute": "is-duplicate-input",
402
+ "reflect": true
403
+ },
404
+ "clientStyling": {
405
+ "type": "string",
406
+ "mutable": false,
407
+ "complexType": {
408
+ "original": "string",
409
+ "resolved": "string",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [],
416
+ "text": "Client custom styling via inline style"
417
+ },
418
+ "attribute": "client-styling",
419
+ "reflect": true,
420
+ "defaultValue": "''"
421
+ }
422
+ };
195
423
  }
196
- if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
197
- const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
198
- const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
199
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
424
+ static get states() {
425
+ return {
426
+ "isValid": {},
427
+ "errorMessage": {},
428
+ "limitStylingAppends": {},
429
+ "showTooltip": {},
430
+ "passwordComplexity": {},
431
+ "showPopup": {},
432
+ "value": {}
433
+ };
200
434
  }
201
- }
202
- renderTooltip() {
203
- if (this.showTooltip) {
204
- return (h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
435
+ static get events() {
436
+ return [{
437
+ "method": "sendOriginalValidityState",
438
+ "name": "sendOriginalValidityState",
439
+ "bubbles": true,
440
+ "cancelable": true,
441
+ "composed": true,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": ""
445
+ },
446
+ "complexType": {
447
+ "original": "InputStateEvent",
448
+ "resolved": "InputStateEvent",
449
+ "references": {
450
+ "InputStateEvent": {
451
+ "location": "import",
452
+ "path": "../../utils/types",
453
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputStateEvent"
454
+ }
455
+ }
456
+ }
457
+ }, {
458
+ "method": "sendValidityState",
459
+ "name": "sendValidityState",
460
+ "bubbles": true,
461
+ "cancelable": true,
462
+ "composed": true,
463
+ "docs": {
464
+ "tags": [],
465
+ "text": ""
466
+ },
467
+ "complexType": {
468
+ "original": "InputStateEvent",
469
+ "resolved": "InputStateEvent",
470
+ "references": {
471
+ "InputStateEvent": {
472
+ "location": "import",
473
+ "path": "../../utils/types",
474
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputStateEvent"
475
+ }
476
+ }
477
+ }
478
+ }, {
479
+ "method": "sendInputValue",
480
+ "name": "sendInputValue",
481
+ "bubbles": true,
482
+ "cancelable": true,
483
+ "composed": true,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": ""
487
+ },
488
+ "complexType": {
489
+ "original": "InputValueEvent",
490
+ "resolved": "InputValueEvent",
491
+ "references": {
492
+ "InputValueEvent": {
493
+ "location": "import",
494
+ "path": "../../utils/types",
495
+ "id": "../../../../packages/stencil/general-input/src/utils/types.ts::InputValueEvent"
496
+ }
497
+ }
498
+ }
499
+ }];
205
500
  }
206
- return null;
207
- }
208
- renderComplexityPopup() {
209
- const totalRules = this.passwordComplexity.length;
210
- const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
211
- const meterValue = passedRules / totalRules;
212
- const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
213
- return (h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` },
214
- h("div", { class: 'password__complexity--strength' },
215
- h("p", { class: 'password__complexity--text' },
216
- translate('passwordStrength', this.language),
217
- "\u00A0",
218
- h("span", { class: 'password__complexity--text-bold' }, translate(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))),
219
- h("meter", { value: meterValue, min: "0", max: "1" })),
220
- h("div", null, this.passwordComplexity.map((complexity, index) => {
221
- return (h("div", { key: index },
222
- h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }),
223
- h("span", null, translate(`${complexity.ruleKey}`, this.language) ? translate(`${complexity.ruleKey}`, this.language) : complexity.rule)));
224
- }))));
225
- }
226
- render() {
227
- let invalidClass = '';
228
- if (this.touched) {
229
- invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
501
+ static get elementRef() { return "element"; }
502
+ static get watchers() {
503
+ return [{
504
+ "propName": "isValid",
505
+ "methodName": "validityChanged"
506
+ }, {
507
+ "propName": "value",
508
+ "methodName": "valueChanged"
509
+ }, {
510
+ "propName": "emitValue",
511
+ "methodName": "emitValueHandler"
512
+ }];
230
513
  }
231
- return h("div", { class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el },
232
- h("div", { class: 'password__wrapper--flex' },
233
- h("label", { class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName),
234
- h("div", { class: 'password__wrapper--relative' },
235
- this.tooltip &&
236
- h("img", { class: 'password__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
237
- this.renderTooltip())),
238
- h("vaadin-password-field", { type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }),
239
- h("small", { class: 'password__error-message' }, this.errorMessage),
240
- this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
241
- }
242
- static get is() { return "password-input"; }
243
- static get encapsulation() { return "shadow"; }
244
- static get originalStyleUrls() { return {
245
- "$": ["password-input.scss"]
246
- }; }
247
- static get styleUrls() { return {
248
- "$": ["password-input.css"]
249
- }; }
250
- static get properties() { return {
251
- "name": {
252
- "type": "string",
253
- "mutable": false,
254
- "complexType": {
255
- "original": "string",
256
- "resolved": "string",
257
- "references": {}
258
- },
259
- "required": false,
260
- "optional": false,
261
- "docs": {
262
- "tags": [],
263
- "text": "Name of the input."
264
- },
265
- "attribute": "name",
266
- "reflect": true
267
- },
268
- "displayName": {
269
- "type": "string",
270
- "mutable": false,
271
- "complexType": {
272
- "original": "string",
273
- "resolved": "string",
274
- "references": {}
275
- },
276
- "required": false,
277
- "optional": false,
278
- "docs": {
279
- "tags": [],
280
- "text": "Name of input to be shown to the user."
281
- },
282
- "attribute": "display-name",
283
- "reflect": true
284
- },
285
- "placeholder": {
286
- "type": "string",
287
- "mutable": false,
288
- "complexType": {
289
- "original": "string",
290
- "resolved": "string",
291
- "references": {}
292
- },
293
- "required": false,
294
- "optional": false,
295
- "docs": {
296
- "tags": [],
297
- "text": "Placeholder text to be shown."
298
- },
299
- "attribute": "placeholder",
300
- "reflect": true
301
- },
302
- "defaultValue": {
303
- "type": "string",
304
- "mutable": false,
305
- "complexType": {
306
- "original": "string",
307
- "resolved": "string",
308
- "references": {}
309
- },
310
- "required": false,
311
- "optional": false,
312
- "docs": {
313
- "tags": [],
314
- "text": "Default value for the input."
315
- },
316
- "attribute": "default-value",
317
- "reflect": true,
318
- "defaultValue": "''"
319
- },
320
- "autofilled": {
321
- "type": "boolean",
322
- "mutable": false,
323
- "complexType": {
324
- "original": "boolean",
325
- "resolved": "boolean",
326
- "references": {}
327
- },
328
- "required": false,
329
- "optional": false,
330
- "docs": {
331
- "tags": [],
332
- "text": "Boolean. Determines if input should be readonly."
333
- },
334
- "attribute": "autofilled",
335
- "reflect": true
336
- },
337
- "tooltip": {
338
- "type": "string",
339
- "mutable": false,
340
- "complexType": {
341
- "original": "string",
342
- "resolved": "string",
343
- "references": {}
344
- },
345
- "required": false,
346
- "optional": false,
347
- "docs": {
348
- "tags": [],
349
- "text": "Tooltip text."
350
- },
351
- "attribute": "tooltip",
352
- "reflect": true
353
- },
354
- "validation": {
355
- "type": "unknown",
356
- "mutable": false,
357
- "complexType": {
358
- "original": "ValidationSchema",
359
- "resolved": "ValidationSchema",
360
- "references": {
361
- "ValidationSchema": {
362
- "location": "import",
363
- "path": "../../utils/types"
364
- }
365
- }
366
- },
367
- "required": false,
368
- "optional": false,
369
- "docs": {
370
- "tags": [],
371
- "text": "Object of validation rules for the input."
372
- }
373
- },
374
- "language": {
375
- "type": "string",
376
- "mutable": false,
377
- "complexType": {
378
- "original": "string",
379
- "resolved": "string",
380
- "references": {}
381
- },
382
- "required": false,
383
- "optional": false,
384
- "docs": {
385
- "tags": [],
386
- "text": "Currently selected language."
387
- },
388
- "attribute": "language",
389
- "reflect": true
390
- },
391
- "emitValue": {
392
- "type": "boolean",
393
- "mutable": false,
394
- "complexType": {
395
- "original": "boolean",
396
- "resolved": "boolean",
397
- "references": {}
398
- },
399
- "required": false,
400
- "optional": false,
401
- "docs": {
402
- "tags": [],
403
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
404
- },
405
- "attribute": "emit-value",
406
- "reflect": true
407
- },
408
- "isDuplicateInput": {
409
- "type": "boolean",
410
- "mutable": false,
411
- "complexType": {
412
- "original": "boolean",
413
- "resolved": "boolean",
414
- "references": {}
415
- },
416
- "required": false,
417
- "optional": false,
418
- "docs": {
419
- "tags": [],
420
- "text": "Flag for duplicate inputs, it sets up the input for certain validation rules."
421
- },
422
- "attribute": "is-duplicate-input",
423
- "reflect": true
424
- },
425
- "clientStyling": {
426
- "type": "string",
427
- "mutable": false,
428
- "complexType": {
429
- "original": "string",
430
- "resolved": "string",
431
- "references": {}
432
- },
433
- "required": false,
434
- "optional": false,
435
- "docs": {
436
- "tags": [],
437
- "text": "Client custom styling via inline style"
438
- },
439
- "attribute": "client-styling",
440
- "reflect": true,
441
- "defaultValue": "''"
442
- },
443
- "clientStylingUrl": {
444
- "type": "string",
445
- "mutable": false,
446
- "complexType": {
447
- "original": "string",
448
- "resolved": "string",
449
- "references": {}
450
- },
451
- "required": false,
452
- "optional": false,
453
- "docs": {
454
- "tags": [],
455
- "text": "Client Styling Url"
456
- },
457
- "attribute": "client-styling-url",
458
- "reflect": true,
459
- "defaultValue": "''"
514
+ static get listeners() {
515
+ return [{
516
+ "name": "sendOriginalValidityState",
517
+ "method": "originalValidityChangedHandler",
518
+ "target": "body",
519
+ "capture": false,
520
+ "passive": false
521
+ }, {
522
+ "name": "sendInputValue",
523
+ "method": "valueChangedHandler",
524
+ "target": "body",
525
+ "capture": false,
526
+ "passive": false
527
+ }, {
528
+ "name": "click",
529
+ "method": "handleClickOutside",
530
+ "target": "document",
531
+ "capture": false,
532
+ "passive": false
533
+ }];
460
534
  }
461
- }; }
462
- static get states() { return {
463
- "isValid": {},
464
- "errorMessage": {},
465
- "limitStylingAppends": {},
466
- "showTooltip": {},
467
- "passwordComplexity": {},
468
- "showPopup": {},
469
- "value": {}
470
- }; }
471
- static get events() { return [{
472
- "method": "sendOriginalValidityState",
473
- "name": "sendOriginalValidityState",
474
- "bubbles": true,
475
- "cancelable": true,
476
- "composed": true,
477
- "docs": {
478
- "tags": [],
479
- "text": ""
480
- },
481
- "complexType": {
482
- "original": "InputStateEvent",
483
- "resolved": "InputStateEvent",
484
- "references": {
485
- "InputStateEvent": {
486
- "location": "import",
487
- "path": "../../utils/types"
488
- }
489
- }
490
- }
491
- }, {
492
- "method": "sendValidityState",
493
- "name": "sendValidityState",
494
- "bubbles": true,
495
- "cancelable": true,
496
- "composed": true,
497
- "docs": {
498
- "tags": [],
499
- "text": ""
500
- },
501
- "complexType": {
502
- "original": "InputStateEvent",
503
- "resolved": "InputStateEvent",
504
- "references": {
505
- "InputStateEvent": {
506
- "location": "import",
507
- "path": "../../utils/types"
508
- }
509
- }
510
- }
511
- }, {
512
- "method": "sendInputValue",
513
- "name": "sendInputValue",
514
- "bubbles": true,
515
- "cancelable": true,
516
- "composed": true,
517
- "docs": {
518
- "tags": [],
519
- "text": ""
520
- },
521
- "complexType": {
522
- "original": "InputValueEvent",
523
- "resolved": "InputValueEvent",
524
- "references": {
525
- "InputValueEvent": {
526
- "location": "import",
527
- "path": "../../utils/types"
528
- }
529
- }
530
- }
531
- }]; }
532
- static get elementRef() { return "element"; }
533
- static get watchers() { return [{
534
- "propName": "isValid",
535
- "methodName": "validityChanged"
536
- }, {
537
- "propName": "value",
538
- "methodName": "valueChanged"
539
- }, {
540
- "propName": "emitValue",
541
- "methodName": "emitValueHandler"
542
- }]; }
543
- static get listeners() { return [{
544
- "name": "sendOriginalValidityState",
545
- "method": "originalValidityChangedHandler",
546
- "target": "body",
547
- "capture": false,
548
- "passive": false
549
- }, {
550
- "name": "sendInputValue",
551
- "method": "valueChangedHandler",
552
- "target": "body",
553
- "capture": false,
554
- "passive": false
555
- }, {
556
- "name": "click",
557
- "method": "handleClickOutside",
558
- "target": "document",
559
- "capture": false,
560
- "passive": false
561
- }]; }
562
535
  }