@everymatrix/general-input 1.31.2 → 1.32.4

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 (136) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +0 -36077
  4. package/dist/cjs/general-input.cjs.entry.js +0 -75
  5. package/dist/cjs/general-input.cjs.js +0 -19
  6. package/dist/cjs/index-132a0774.js +0 -1327
  7. package/dist/cjs/index.cjs.js +0 -18
  8. package/dist/cjs/loader.cjs.js +0 -21
  9. package/dist/cjs/locale.utils-cef1d3b6.js +0 -128
  10. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +0 -85
  11. package/dist/cjs/tooltipIcon-092a795f.js +0 -5
  12. package/dist/collection/collection-manifest.json +0 -23
  13. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +0 -82
  14. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +0 -366
  15. package/dist/collection/components/checkbox-input/checkbox-input.css +0 -68
  16. package/dist/collection/components/checkbox-input/checkbox-input.js +0 -324
  17. package/dist/collection/components/date-input/date-input.css +0 -101
  18. package/dist/collection/components/date-input/date-input.js +0 -396
  19. package/dist/collection/components/email-input/email-input.css +0 -95
  20. package/dist/collection/components/email-input/email-input.js +0 -403
  21. package/dist/collection/components/general-input/general-input.css +0 -4
  22. package/dist/collection/components/general-input/general-input.js +0 -373
  23. package/dist/collection/components/number-input/number-input.css +0 -102
  24. package/dist/collection/components/number-input/number-input.js +0 -368
  25. package/dist/collection/components/password-input/password-input.css +0 -182
  26. package/dist/collection/components/password-input/password-input.js +0 -527
  27. package/dist/collection/components/radio-input/radio-input.css +0 -43
  28. package/dist/collection/components/radio-input/radio-input.js +0 -297
  29. package/dist/collection/components/select-input/select-input.css +0 -122
  30. package/dist/collection/components/select-input/select-input.js +0 -429
  31. package/dist/collection/components/tel-input/tel-input.css +0 -145
  32. package/dist/collection/components/tel-input/tel-input.js +0 -440
  33. package/dist/collection/components/text-input/text-input.css +0 -98
  34. package/dist/collection/components/text-input/text-input.js +0 -448
  35. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +0 -82
  36. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +0 -324
  37. package/dist/collection/index.js +0 -17
  38. package/dist/collection/utils/locale.utils.js +0 -123
  39. package/dist/collection/utils/tooltipIcon.svg +0 -5
  40. package/dist/collection/utils/types.js +0 -1
  41. package/dist/collection/utils/utils.js +0 -5
  42. package/dist/components/active-mixin.js +0 -975
  43. package/dist/components/checkbox-group-input.d.ts +0 -11
  44. package/dist/components/checkbox-group-input.js +0 -6
  45. package/dist/components/checkbox-group-input2.js +0 -1078
  46. package/dist/components/checkbox-input.d.ts +0 -11
  47. package/dist/components/checkbox-input.js +0 -6
  48. package/dist/components/checkbox-input2.js +0 -129
  49. package/dist/components/date-input.d.ts +0 -11
  50. package/dist/components/date-input.js +0 -6
  51. package/dist/components/date-input2.js +0 -11556
  52. package/dist/components/email-input.d.ts +0 -11
  53. package/dist/components/email-input.js +0 -6
  54. package/dist/components/email-input2.js +0 -171
  55. package/dist/components/field-mixin.js +0 -12426
  56. package/dist/components/general-input.d.ts +0 -11
  57. package/dist/components/general-input.js +0 -6
  58. package/dist/components/general-input2.js +0 -341
  59. package/dist/components/index.d.ts +0 -26
  60. package/dist/components/index.js +0 -18
  61. package/dist/components/input-field-shared-styles.js +0 -1211
  62. package/dist/components/number-input.d.ts +0 -11
  63. package/dist/components/number-input.js +0 -6
  64. package/dist/components/number-input2.js +0 -158
  65. package/dist/components/password-input.d.ts +0 -11
  66. package/dist/components/password-input.js +0 -6
  67. package/dist/components/password-input2.js +0 -1041
  68. package/dist/components/radio-input.d.ts +0 -11
  69. package/dist/components/radio-input.js +0 -6
  70. package/dist/components/radio-input2.js +0 -114
  71. package/dist/components/select-input.d.ts +0 -11
  72. package/dist/components/select-input.js +0 -6
  73. package/dist/components/select-input2.js +0 -183
  74. package/dist/components/tel-input.d.ts +0 -11
  75. package/dist/components/tel-input.js +0 -6
  76. package/dist/components/tel-input2.js +0 -197
  77. package/dist/components/text-input.d.ts +0 -11
  78. package/dist/components/text-input.js +0 -6
  79. package/dist/components/text-input2.js +0 -199
  80. package/dist/components/toggle-checkbox-input.d.ts +0 -11
  81. package/dist/components/toggle-checkbox-input.js +0 -6
  82. package/dist/components/tooltipIcon.js +0 -127
  83. package/dist/components/vaadin-button.js +0 -490
  84. package/dist/components/vaadin-combo-box.js +0 -4512
  85. package/dist/components/virtual-keyboard-controller.js +0 -2001
  86. package/dist/esm/checkbox-group-input_10.entry.js +0 -36064
  87. package/dist/esm/general-input.entry.js +0 -71
  88. package/dist/esm/general-input.js +0 -17
  89. package/dist/esm/index-db76d5b5.js +0 -1299
  90. package/dist/esm/index.js +0 -16
  91. package/dist/esm/loader.js +0 -17
  92. package/dist/esm/locale.utils-de759721.js +0 -125
  93. package/dist/esm/polyfills/core-js.js +0 -11
  94. package/dist/esm/polyfills/css-shim.js +0 -1
  95. package/dist/esm/polyfills/dom.js +0 -79
  96. package/dist/esm/polyfills/es5-html-element.js +0 -1
  97. package/dist/esm/polyfills/index.js +0 -34
  98. package/dist/esm/polyfills/system.js +0 -6
  99. package/dist/esm/toggle-checkbox-input.entry.js +0 -81
  100. package/dist/esm/tooltipIcon-99c1c7b7.js +0 -3
  101. package/dist/general-input/general-input.esm.js +0 -1
  102. package/dist/general-input/index.esm.js +0 -1
  103. package/dist/general-input/p-10efdf3f.js +0 -1
  104. package/dist/general-input/p-613c3e00.entry.js +0 -1
  105. package/dist/general-input/p-660bcdd1.entry.js +0 -1
  106. package/dist/general-input/p-9b6b0396.entry.js +0 -3646
  107. package/dist/general-input/p-b408093e.js +0 -1
  108. package/dist/general-input/p-f4f4ccda.js +0 -1
  109. package/dist/index.cjs.js +0 -1
  110. package/dist/index.js +0 -1
  111. package/dist/stencil.config.js +0 -22
  112. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
  113. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +0 -74
  114. package/dist/types/components/checkbox-input/checkbox-input.d.ts +0 -65
  115. package/dist/types/components/date-input/date-input.d.ts +0 -84
  116. package/dist/types/components/email-input/email-input.d.ts +0 -80
  117. package/dist/types/components/general-input/general-input.d.ts +0 -75
  118. package/dist/types/components/number-input/number-input.d.ts +0 -74
  119. package/dist/types/components/password-input/password-input.d.ts +0 -91
  120. package/dist/types/components/radio-input/radio-input.d.ts +0 -59
  121. package/dist/types/components/select-input/select-input.d.ts +0 -83
  122. package/dist/types/components/tel-input/tel-input.d.ts +0 -89
  123. package/dist/types/components/text-input/text-input.d.ts +0 -84
  124. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +0 -67
  125. package/dist/types/components.d.ts +0 -1268
  126. package/dist/types/index.d.ts +0 -1
  127. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  128. package/dist/types/utils/locale.utils.d.ts +0 -17
  129. package/dist/types/utils/types.d.ts +0 -87
  130. package/dist/types/utils/utils.d.ts +0 -1
  131. package/loader/cdn.js +0 -3
  132. package/loader/index.cjs.js +0 -3
  133. package/loader/index.d.ts +0 -12
  134. package/loader/index.es2017.js +0 -3
  135. package/loader/index.js +0 -4
  136. package/loader/package.json +0 -10
@@ -1,368 +0,0 @@
1
- import { Component, h, Prop, State, Watch, Event, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import tooltipIcon from '../../utils/tooltipIcon.svg';
4
- export class NumberInput {
5
- constructor() {
6
- /**
7
- * Client custom styling via inline style
8
- */
9
- this.clientStyling = '';
10
- this.limitStylingAppends = false;
11
- this.showTooltip = false;
12
- this.validationPattern = '';
13
- this.touched = false;
14
- this.handleInput = (event) => {
15
- this.value = event.target.value;
16
- this.touched = true;
17
- if (this.debounceTime) {
18
- clearTimeout(this.debounceTime);
19
- }
20
- this.debounceTime = setTimeout(() => {
21
- this.isValid = this.setValidity();
22
- this.errorMessage = this.setErrorMessage();
23
- this.emitValueHandler(true);
24
- }, 500);
25
- };
26
- this.handleBlur = () => {
27
- this.isValid = this.setValidity();
28
- this.errorMessage = this.setErrorMessage();
29
- this.touched = true;
30
- };
31
- this.setClientStyling = () => {
32
- let sheet = document.createElement('style');
33
- sheet.innerHTML = this.clientStyling;
34
- this.stylingContainer.prepend(sheet);
35
- };
36
- }
37
- validityChanged() {
38
- this.validityStateHandler({ valid: this.isValid, name: this.name });
39
- if (this.emitValue == true) {
40
- this.valueHandler({ name: this.name, value: this.value });
41
- }
42
- }
43
- validityStateHandler(inputStateEvent) {
44
- this.sendValidityState.emit(inputStateEvent);
45
- }
46
- emitValueHandler(newValue) {
47
- if (newValue == true && this.isValid) {
48
- this.valueHandler({ name: this.name, value: this.value });
49
- }
50
- }
51
- valueHandler(inputValueEvent) {
52
- this.sendInputValue.emit(inputValueEvent);
53
- }
54
- handleClickOutside(event) {
55
- if (event.composedPath()[0] === this.tooltipIconReference)
56
- return;
57
- if (event.composedPath()[0] !== this.tooltipReference)
58
- this.showTooltip = false;
59
- }
60
- connectedCallback() {
61
- this.validationPattern = this.setPattern();
62
- }
63
- componentDidRender() {
64
- // start custom styling area
65
- if (!this.limitStylingAppends && this.stylingContainer) {
66
- if (this.clientStyling)
67
- this.setClientStyling();
68
- this.limitStylingAppends = true;
69
- }
70
- // end custom styling area
71
- }
72
- componentDidLoad() {
73
- this.isValid = this.setValidity();
74
- if (this.defaultValue) {
75
- this.value = this.defaultValue;
76
- this.valueHandler({ name: this.name, value: this.value });
77
- }
78
- }
79
- setValidity() {
80
- return this.inputReference.validity.valid;
81
- }
82
- setPattern() {
83
- var _a, _b;
84
- if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
85
- return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
86
- }
87
- }
88
- setErrorMessage() {
89
- var _a, _b;
90
- if (this.inputReference.validity.patternMismatch) {
91
- const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
92
- const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
93
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
94
- }
95
- if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow) {
96
- return translate('numberLengthError', this.language, { values: { min: this.validation.min, max: this.validation.max } });
97
- }
98
- if (this.inputReference.validity.valueMissing) {
99
- return translate('requiredError', this.language);
100
- }
101
- }
102
- renderTooltip() {
103
- if (this.showTooltip) {
104
- return (h("div", { class: `number__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
105
- }
106
- return null;
107
- }
108
- render() {
109
- let invalidClass = '';
110
- if (this.touched) {
111
- invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
112
- }
113
- return h("div", { class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el },
114
- h("div", { class: 'number__wrapper--flex' },
115
- h("label", { class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName),
116
- h("div", { class: 'number__wrapper--relative' },
117
- this.tooltip &&
118
- h("img", { class: 'number__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
119
- this.renderTooltip())),
120
- h("input", { ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }),
121
- h("small", { class: 'number__error-message' }, this.errorMessage));
122
- }
123
- static get is() { return "number-input"; }
124
- static get encapsulation() { return "shadow"; }
125
- static get originalStyleUrls() { return {
126
- "$": ["number-input.scss"]
127
- }; }
128
- static get styleUrls() { return {
129
- "$": ["number-input.css"]
130
- }; }
131
- static get properties() { return {
132
- "name": {
133
- "type": "string",
134
- "mutable": false,
135
- "complexType": {
136
- "original": "string",
137
- "resolved": "string",
138
- "references": {}
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": "Name of the input."
145
- },
146
- "attribute": "name",
147
- "reflect": true
148
- },
149
- "displayName": {
150
- "type": "string",
151
- "mutable": false,
152
- "complexType": {
153
- "original": "string",
154
- "resolved": "string",
155
- "references": {}
156
- },
157
- "required": false,
158
- "optional": false,
159
- "docs": {
160
- "tags": [],
161
- "text": "Name of input to be shown to the user."
162
- },
163
- "attribute": "display-name",
164
- "reflect": true
165
- },
166
- "placeholder": {
167
- "type": "string",
168
- "mutable": false,
169
- "complexType": {
170
- "original": "string",
171
- "resolved": "string",
172
- "references": {}
173
- },
174
- "required": false,
175
- "optional": false,
176
- "docs": {
177
- "tags": [],
178
- "text": "Placeholder text to be shown."
179
- },
180
- "attribute": "placeholder",
181
- "reflect": true
182
- },
183
- "validation": {
184
- "type": "unknown",
185
- "mutable": false,
186
- "complexType": {
187
- "original": "ValidationSchema",
188
- "resolved": "ValidationSchema",
189
- "references": {
190
- "ValidationSchema": {
191
- "location": "import",
192
- "path": "../../utils/types"
193
- }
194
- }
195
- },
196
- "required": false,
197
- "optional": false,
198
- "docs": {
199
- "tags": [],
200
- "text": "Object of validation rules for the input."
201
- }
202
- },
203
- "defaultValue": {
204
- "type": "string",
205
- "mutable": false,
206
- "complexType": {
207
- "original": "string",
208
- "resolved": "string",
209
- "references": {}
210
- },
211
- "required": false,
212
- "optional": false,
213
- "docs": {
214
- "tags": [],
215
- "text": "Default value for the input."
216
- },
217
- "attribute": "default-value",
218
- "reflect": true
219
- },
220
- "autofilled": {
221
- "type": "boolean",
222
- "mutable": false,
223
- "complexType": {
224
- "original": "boolean",
225
- "resolved": "boolean",
226
- "references": {}
227
- },
228
- "required": false,
229
- "optional": false,
230
- "docs": {
231
- "tags": [],
232
- "text": "Boolean. Determines if input should be readonly."
233
- },
234
- "attribute": "autofilled",
235
- "reflect": true
236
- },
237
- "tooltip": {
238
- "type": "string",
239
- "mutable": false,
240
- "complexType": {
241
- "original": "string",
242
- "resolved": "string",
243
- "references": {}
244
- },
245
- "required": false,
246
- "optional": false,
247
- "docs": {
248
- "tags": [],
249
- "text": "Tooltip text."
250
- },
251
- "attribute": "tooltip",
252
- "reflect": true
253
- },
254
- "language": {
255
- "type": "string",
256
- "mutable": false,
257
- "complexType": {
258
- "original": "string",
259
- "resolved": "string",
260
- "references": {}
261
- },
262
- "required": false,
263
- "optional": false,
264
- "docs": {
265
- "tags": [],
266
- "text": "Currently selected language."
267
- },
268
- "attribute": "language",
269
- "reflect": true
270
- },
271
- "emitValue": {
272
- "type": "boolean",
273
- "mutable": false,
274
- "complexType": {
275
- "original": "boolean",
276
- "resolved": "boolean",
277
- "references": {}
278
- },
279
- "required": false,
280
- "optional": false,
281
- "docs": {
282
- "tags": [],
283
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
284
- },
285
- "attribute": "emit-value",
286
- "reflect": true
287
- },
288
- "clientStyling": {
289
- "type": "string",
290
- "mutable": false,
291
- "complexType": {
292
- "original": "string",
293
- "resolved": "string",
294
- "references": {}
295
- },
296
- "required": false,
297
- "optional": false,
298
- "docs": {
299
- "tags": [],
300
- "text": "Client custom styling via inline style"
301
- },
302
- "attribute": "client-styling",
303
- "reflect": true,
304
- "defaultValue": "''"
305
- }
306
- }; }
307
- static get states() { return {
308
- "errorMessage": {},
309
- "isValid": {},
310
- "limitStylingAppends": {},
311
- "showTooltip": {}
312
- }; }
313
- static get events() { return [{
314
- "method": "sendValidityState",
315
- "name": "sendValidityState",
316
- "bubbles": true,
317
- "cancelable": true,
318
- "composed": true,
319
- "docs": {
320
- "tags": [],
321
- "text": ""
322
- },
323
- "complexType": {
324
- "original": "InputStateEvent",
325
- "resolved": "InputStateEvent",
326
- "references": {
327
- "InputStateEvent": {
328
- "location": "import",
329
- "path": "../../utils/types"
330
- }
331
- }
332
- }
333
- }, {
334
- "method": "sendInputValue",
335
- "name": "sendInputValue",
336
- "bubbles": true,
337
- "cancelable": true,
338
- "composed": true,
339
- "docs": {
340
- "tags": [],
341
- "text": ""
342
- },
343
- "complexType": {
344
- "original": "InputValueEvent",
345
- "resolved": "InputValueEvent",
346
- "references": {
347
- "InputValueEvent": {
348
- "location": "import",
349
- "path": "../../utils/types"
350
- }
351
- }
352
- }
353
- }]; }
354
- static get watchers() { return [{
355
- "propName": "isValid",
356
- "methodName": "validityChanged"
357
- }, {
358
- "propName": "emitValue",
359
- "methodName": "emitValueHandler"
360
- }]; }
361
- static get listeners() { return [{
362
- "name": "click",
363
- "method": "handleClickOutside",
364
- "target": "document",
365
- "capture": false,
366
- "passive": false
367
- }]; }
368
- }
@@ -1,182 +0,0 @@
1
- *,
2
- *::before,
3
- *::after {
4
- padding: 0;
5
- margin: 0;
6
- box-sizing: border-box;
7
- }
8
-
9
- .password {
10
- font-family: "Roboto";
11
- font-style: normal;
12
- }
13
- .password__wrapper {
14
- position: relative;
15
- width: 100%;
16
- display: flex;
17
- flex-direction: column;
18
- gap: 5px;
19
- }
20
- .password__wrapper--autofilled {
21
- pointer-events: none;
22
- }
23
- .password__wrapper--autofilled .password__label {
24
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
25
- }
26
- .password__wrapper--autofilled .password__input::part(input-field) {
27
- color: var(--emfe-w-color-black, #000000);
28
- }
29
- .password__wrapper--flex {
30
- display: flex;
31
- gap: 5px;
32
- }
33
- .password__wrapper--relative {
34
- position: relative;
35
- }
36
- .password__label {
37
- font-family: inherit;
38
- font-style: normal;
39
- font-weight: 500;
40
- font-size: 16px;
41
- line-height: 20px;
42
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
43
- }
44
- .password__label--required::after {
45
- content: "*";
46
- font-family: inherit;
47
- color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
48
- margin-left: 2px;
49
- }
50
- .password__input {
51
- width: inherit;
52
- border: none;
53
- }
54
- .password__input[focused]::part(input-field) {
55
- border-color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
56
- }
57
- .password__input[invalid]::part(input-field) {
58
- border: 1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
59
- }
60
- .password__input::part(input-field) {
61
- border-radius: 4px;
62
- background-color: var(--emfe-w-color-white, #FFFFFF);
63
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
64
- color: var(--emfe-w-color-black, #000000);
65
- background-color: var(--emfe-w-color-white, #FFFFFF);
66
- font-family: inherit;
67
- font-style: normal;
68
- font-weight: 300;
69
- font-size: 16px;
70
- line-height: 1.5;
71
- position: relative;
72
- margin-bottom: unset;
73
- height: 44px;
74
- padding: 0;
75
- width: 100%;
76
- }
77
- .password__input::part(reveal-button) {
78
- position: relative;
79
- right: 10px;
80
- }
81
- .password__input::part(reveal-button)::before {
82
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
83
- }
84
- .password__input > input {
85
- padding: 5px 15px;
86
- }
87
- .password__input > input:placeholder-shown {
88
- color: var(--emfe-w-color-gray-150, #828282);
89
- }
90
- .password__error-message {
91
- position: absolute;
92
- top: calc(100% + 5px);
93
- left: 0;
94
- color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
95
- }
96
- .password__complexity {
97
- position: relative;
98
- padding: 10px;
99
- display: flex;
100
- flex-direction: column;
101
- gap: 20px;
102
- justify-content: center;
103
- margin-top: 20px;
104
- font-weight: 300;
105
- background: var(--emfe-w-color-white, #FFFFFF);
106
- -webkit-border-radius: 5px;
107
- -moz-border-radius: 5px;
108
- border-radius: 5px;
109
- height: 150px;
110
- border: 1px solid #B0B0B0;
111
- /* works only in this order */
112
- }
113
- .password__complexity meter {
114
- border-color: transparent;
115
- /* Needed for Safari */
116
- }
117
- .password__complexity meter[value="1"]::-moz-meter-bar {
118
- background-color: var(--emfe-w-color-valid, #48952a);
119
- }
120
- .password__complexity meter[value="1"]::-webkit-meter-optimum-value {
121
- background-color: var(--emfe-w-color-valid, #48952a);
122
- }
123
- .password__complexity meter:not([value="1"])::-moz-meter-bar {
124
- background-color: var(--emfe-w-color-error, #FD2839);
125
- }
126
- .password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {
127
- background-color: var(--emfe-w-color-error, #FD2839);
128
- }
129
- .password__complexity--strength {
130
- display: flex;
131
- justify-content: space-evenly;
132
- align-items: center;
133
- }
134
- .password__complexity--strength meter::-moz-meter-bar {
135
- /* Firefox Pseudo Class */
136
- background: #B0B0B0;
137
- }
138
- .password__complexity--hidden {
139
- display: none;
140
- }
141
- .password__complexity--text-bold {
142
- font-weight: 500;
143
- }
144
- .password__complexity--checkbox {
145
- margin-right: 5px;
146
- }
147
- .password__complexity:after {
148
- content: "";
149
- position: absolute;
150
- width: 25px;
151
- height: 25px;
152
- border-top: 1px solid var(--emfe-w-color-gray-150, #828282);
153
- border-right: 0 solid var(--emfe-w-color-gray-150, #828282);
154
- border-left: 1px solid var(--emfe-w-color-gray-150, #828282);
155
- border-bottom: 0 solid var(--emfe-w-color-gray-150, #828282);
156
- bottom: 92%;
157
- left: 50%;
158
- margin-left: -25px;
159
- transform: rotate(45deg);
160
- margin-top: -25px;
161
- background-color: var(--emfe-w-color-white, #FFFFFF);
162
- }
163
- .password__tooltip-icon {
164
- width: 16px;
165
- height: auto;
166
- }
167
- .password__tooltip {
168
- position: absolute;
169
- top: 0;
170
- left: 20px;
171
- background-color: var(--emfe-w-color-white, #FFFFFF);
172
- border: 1px solid var(--emfe-w-color-gray-150, #828282);
173
- color: #2B2D3F;
174
- padding: 10px;
175
- border-radius: 5px;
176
- opacity: 0;
177
- transition: opacity 0.3s ease-in-out;
178
- z-index: 10;
179
- }
180
- .password__tooltip.visible {
181
- opacity: 1;
182
- }