@everymatrix/general-input-hsl 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/checkbox-group-input_13.cjs.entry.js +7303 -0
- package/dist/cjs/general-input-hsl-2832e412.js +5800 -0
- package/dist/cjs/general-input-hsl.cjs.js +25 -0
- package/dist/cjs/index-6f821b8d.js +1299 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +24 -0
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +89 -0
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +390 -0
- package/dist/collection/components/checkbox-input/checkbox-input.css +78 -0
- package/dist/collection/components/checkbox-input/checkbox-input.js +344 -0
- package/dist/collection/components/date-input/date-input.css +101 -0
- package/dist/collection/components/date-input/date-input.js +466 -0
- package/dist/collection/components/email-input/email-input.css +95 -0
- package/dist/collection/components/email-input/email-input.js +429 -0
- package/dist/collection/components/general-input-hsl/general-input-hsl.css +4 -0
- package/dist/collection/components/general-input-hsl/general-input-hsl.js +438 -0
- package/dist/collection/components/general-input-hsl/index.js +1 -0
- package/dist/collection/components/number-input/number-input.css +102 -0
- package/dist/collection/components/number-input/number-input.js +393 -0
- package/dist/collection/components/password-input/password-input.css +193 -0
- package/dist/collection/components/password-input/password-input.js +573 -0
- package/dist/collection/components/radio-input/radio-input.css +43 -0
- package/dist/collection/components/radio-input/radio-input.js +319 -0
- package/dist/collection/components/select-input/select-input.css +121 -0
- package/dist/collection/components/select-input/select-input.js +488 -0
- package/dist/collection/components/tel-input/tel-input.css +145 -0
- package/dist/collection/components/tel-input/tel-input.js +468 -0
- package/dist/collection/components/text-input/text-input.css +97 -0
- package/dist/collection/components/text-input/text-input.js +489 -0
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +366 -0
- package/dist/collection/components/twofa-input/twofa-input.css +56 -0
- package/dist/collection/components/twofa-input/twofa-input.js +495 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +81 -0
- package/dist/collection/utils/tooltipIcon.svg +5 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/checkbox-group-input_13.entry.js +7288 -0
- package/dist/esm/general-input-hsl-31f19ad0.js +5797 -0
- package/dist/esm/general-input-hsl.js +20 -0
- package/dist/esm/index-8598bfb7.js +1270 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/general-input-hsl/app-globals-0f993ce5.js +1 -0
- package/dist/general-input-hsl/checkbox-group-input_13.entry.js +1 -0
- package/dist/general-input-hsl/general-input-hsl-31f19ad0.js +5614 -0
- package/dist/general-input-hsl/general-input-hsl.esm.js +1 -0
- package/dist/general-input-hsl/index-8598bfb7.js +2 -0
- package/dist/general-input-hsl/index.esm.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/main.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/packages/stencil/general-input-hsl/storybook/preview.d.ts +70 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-input-hsl/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
- package/dist/types/components/checkbox-input/checkbox-input.d.ts +67 -0
- package/dist/types/components/date-input/date-input.d.ts +89 -0
- package/dist/types/components/email-input/email-input.d.ts +81 -0
- package/dist/types/components/general-input-hsl/general-input-hsl.d.ts +84 -0
- package/dist/types/components/general-input-hsl/index.d.ts +1 -0
- package/dist/types/components/number-input/number-input.d.ts +75 -0
- package/dist/types/components/password-input/password-input.d.ts +97 -0
- package/dist/types/components/radio-input/radio-input.d.ts +60 -0
- package/dist/types/components/select-input/select-input.d.ts +85 -0
- package/dist/types/components/tel-input/tel-input.d.ts +89 -0
- package/dist/types/components/text-input/text-input.d.ts +86 -0
- package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +73 -0
- package/dist/types/components/twofa-input/twofa-input.d.ts +84 -0
- package/dist/types/components.d.ts +1599 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +13 -0
- package/dist/types/utils/types.d.ts +111 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getTranslations } from "../../utils/locale.utils";
|
|
3
|
+
import "../../../../../../../libs/vaadin-facade/index";
|
|
4
|
+
export class GeneralInputHsl {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.handleClick = (event) => {
|
|
7
|
+
if (this.emitOnClick) {
|
|
8
|
+
event.stopPropagation();
|
|
9
|
+
window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
this.type = 'text';
|
|
13
|
+
this.name = undefined;
|
|
14
|
+
this.displayName = undefined;
|
|
15
|
+
this.placeholder = undefined;
|
|
16
|
+
this.action = undefined;
|
|
17
|
+
this.validation = undefined;
|
|
18
|
+
this.options = undefined;
|
|
19
|
+
this.language = undefined;
|
|
20
|
+
this.autofilled = undefined;
|
|
21
|
+
this.tooltip = undefined;
|
|
22
|
+
this.defaultValue = undefined;
|
|
23
|
+
this.emitValue = undefined;
|
|
24
|
+
this.isDuplicateInput = undefined;
|
|
25
|
+
this.hidePasswordComplexity = false;
|
|
26
|
+
this.clientStyling = '';
|
|
27
|
+
this.dateFormat = undefined;
|
|
28
|
+
this.translationUrl = '';
|
|
29
|
+
this.emitOnClick = false;
|
|
30
|
+
this.twofaDestination = undefined;
|
|
31
|
+
this.twofaResendIntervalSeconds = 60;
|
|
32
|
+
}
|
|
33
|
+
connectedCallback() {
|
|
34
|
+
if (this.translationUrl) {
|
|
35
|
+
getTranslations(this.translationUrl);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
renderInput() {
|
|
39
|
+
var _a;
|
|
40
|
+
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
41
|
+
case 'text':
|
|
42
|
+
return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
43
|
+
case 'email':
|
|
44
|
+
return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
45
|
+
case 'number':
|
|
46
|
+
return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
47
|
+
case 'checkbox':
|
|
48
|
+
return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
49
|
+
case 'checkboxgroup':
|
|
50
|
+
return h("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
|
|
51
|
+
case 'togglecheckbox':
|
|
52
|
+
return h("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options, "emit-on-click": this.emitOnClick });
|
|
53
|
+
case 'datetime':
|
|
54
|
+
return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat, "emit-on-click": this.emitOnClick });
|
|
55
|
+
case 'password':
|
|
56
|
+
return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, hidePasswordComplexity: this.hidePasswordComplexity, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
57
|
+
case 'radio':
|
|
58
|
+
return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
59
|
+
case 'tel':
|
|
60
|
+
return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
61
|
+
case 'dropdown':
|
|
62
|
+
return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
63
|
+
case 'twofa':
|
|
64
|
+
return h("twofa-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, destination: this.twofaDestination, "resend-interval-seconds": this.twofaResendIntervalSeconds });
|
|
65
|
+
default:
|
|
66
|
+
return h("p", null, "The ", this.type, " input type is not valid");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return (h(Host, { key: 'b6eaf7e96d97d180aeae6b100072eaf91291c281', class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput()));
|
|
71
|
+
}
|
|
72
|
+
static get is() { return "general-input-hsl"; }
|
|
73
|
+
static get encapsulation() { return "shadow"; }
|
|
74
|
+
static get originalStyleUrls() {
|
|
75
|
+
return {
|
|
76
|
+
"$": ["general-input-hsl.scss"]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get styleUrls() {
|
|
80
|
+
return {
|
|
81
|
+
"$": ["general-input-hsl.css"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get properties() {
|
|
85
|
+
return {
|
|
86
|
+
"type": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string",
|
|
91
|
+
"resolved": "string",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": "Type the general-input should take. Can take the default HTML input values."
|
|
99
|
+
},
|
|
100
|
+
"attribute": "type",
|
|
101
|
+
"reflect": true,
|
|
102
|
+
"defaultValue": "'text'"
|
|
103
|
+
},
|
|
104
|
+
"name": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "string",
|
|
109
|
+
"resolved": "string",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": "Name of the input."
|
|
117
|
+
},
|
|
118
|
+
"attribute": "name",
|
|
119
|
+
"reflect": true
|
|
120
|
+
},
|
|
121
|
+
"displayName": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "string",
|
|
126
|
+
"resolved": "string",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": false,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": "Name of input to be shown to the user."
|
|
134
|
+
},
|
|
135
|
+
"attribute": "display-name",
|
|
136
|
+
"reflect": true
|
|
137
|
+
},
|
|
138
|
+
"placeholder": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "string",
|
|
143
|
+
"resolved": "string",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "Placeholder text to be shown."
|
|
151
|
+
},
|
|
152
|
+
"attribute": "placeholder",
|
|
153
|
+
"reflect": true
|
|
154
|
+
},
|
|
155
|
+
"action": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "string",
|
|
160
|
+
"resolved": "string",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Special behaviour an input should have. Can be fetching for data."
|
|
168
|
+
},
|
|
169
|
+
"attribute": "action",
|
|
170
|
+
"reflect": true
|
|
171
|
+
},
|
|
172
|
+
"validation": {
|
|
173
|
+
"type": "unknown",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "ValidationSchema",
|
|
177
|
+
"resolved": "ValidationSchema",
|
|
178
|
+
"references": {
|
|
179
|
+
"ValidationSchema": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../utils/types",
|
|
182
|
+
"id": "../../../../packages/stencil/general-input-hsl/src/utils/types.ts::ValidationSchema"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Object of validation rules for the input."
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"options": {
|
|
194
|
+
"type": "any",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "any",
|
|
198
|
+
"resolved": "any",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "For input elements that have multiple options or choises."
|
|
206
|
+
},
|
|
207
|
+
"attribute": "options",
|
|
208
|
+
"reflect": true
|
|
209
|
+
},
|
|
210
|
+
"language": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "string",
|
|
215
|
+
"resolved": "string",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": "Currently selected language."
|
|
223
|
+
},
|
|
224
|
+
"attribute": "language",
|
|
225
|
+
"reflect": true
|
|
226
|
+
},
|
|
227
|
+
"autofilled": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "boolean",
|
|
232
|
+
"resolved": "boolean",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": "Boolean. Determines if input should be readonly."
|
|
240
|
+
},
|
|
241
|
+
"attribute": "autofilled",
|
|
242
|
+
"reflect": true
|
|
243
|
+
},
|
|
244
|
+
"tooltip": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "string",
|
|
249
|
+
"resolved": "string",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "Tooltip text."
|
|
257
|
+
},
|
|
258
|
+
"attribute": "tooltip",
|
|
259
|
+
"reflect": true
|
|
260
|
+
},
|
|
261
|
+
"defaultValue": {
|
|
262
|
+
"type": "any",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "any",
|
|
266
|
+
"resolved": "any",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Default value for the input."
|
|
274
|
+
},
|
|
275
|
+
"attribute": "default-value",
|
|
276
|
+
"reflect": true
|
|
277
|
+
},
|
|
278
|
+
"emitValue": {
|
|
279
|
+
"type": "boolean",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "boolean",
|
|
283
|
+
"resolved": "boolean",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": false,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "State passed down from the parent element. Will trigger the child specialised input to send it's value through an event."
|
|
291
|
+
},
|
|
292
|
+
"attribute": "emit-value",
|
|
293
|
+
"reflect": true
|
|
294
|
+
},
|
|
295
|
+
"isDuplicateInput": {
|
|
296
|
+
"type": "boolean",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "boolean",
|
|
300
|
+
"resolved": "boolean",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": "Boolean that triggers certain validation rules, for duplicated inputs."
|
|
308
|
+
},
|
|
309
|
+
"attribute": "is-duplicate-input",
|
|
310
|
+
"reflect": true
|
|
311
|
+
},
|
|
312
|
+
"hidePasswordComplexity": {
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"mutable": false,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "boolean",
|
|
317
|
+
"resolved": "boolean",
|
|
318
|
+
"references": {}
|
|
319
|
+
},
|
|
320
|
+
"required": false,
|
|
321
|
+
"optional": false,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": "Boolean that triggers certain validation rules, for duplicated inputs."
|
|
325
|
+
},
|
|
326
|
+
"attribute": "hide-password-complexity",
|
|
327
|
+
"reflect": true,
|
|
328
|
+
"defaultValue": "false"
|
|
329
|
+
},
|
|
330
|
+
"clientStyling": {
|
|
331
|
+
"type": "any",
|
|
332
|
+
"mutable": false,
|
|
333
|
+
"complexType": {
|
|
334
|
+
"original": "any",
|
|
335
|
+
"resolved": "any",
|
|
336
|
+
"references": {}
|
|
337
|
+
},
|
|
338
|
+
"required": false,
|
|
339
|
+
"optional": false,
|
|
340
|
+
"docs": {
|
|
341
|
+
"tags": [],
|
|
342
|
+
"text": "Client custom styling via inline style"
|
|
343
|
+
},
|
|
344
|
+
"attribute": "client-styling",
|
|
345
|
+
"reflect": true,
|
|
346
|
+
"defaultValue": "''"
|
|
347
|
+
},
|
|
348
|
+
"dateFormat": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "string",
|
|
353
|
+
"resolved": "string",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Date format for date picker."
|
|
361
|
+
},
|
|
362
|
+
"attribute": "date-format",
|
|
363
|
+
"reflect": true
|
|
364
|
+
},
|
|
365
|
+
"translationUrl": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"mutable": false,
|
|
368
|
+
"complexType": {
|
|
369
|
+
"original": "string",
|
|
370
|
+
"resolved": "string",
|
|
371
|
+
"references": {}
|
|
372
|
+
},
|
|
373
|
+
"required": false,
|
|
374
|
+
"optional": false,
|
|
375
|
+
"docs": {
|
|
376
|
+
"tags": [],
|
|
377
|
+
"text": "Translations via URL"
|
|
378
|
+
},
|
|
379
|
+
"attribute": "translation-url",
|
|
380
|
+
"reflect": true,
|
|
381
|
+
"defaultValue": "''"
|
|
382
|
+
},
|
|
383
|
+
"emitOnClick": {
|
|
384
|
+
"type": "boolean",
|
|
385
|
+
"mutable": false,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "boolean",
|
|
388
|
+
"resolved": "boolean",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Emit event on click"
|
|
396
|
+
},
|
|
397
|
+
"attribute": "emit-on-click",
|
|
398
|
+
"reflect": true,
|
|
399
|
+
"defaultValue": "false"
|
|
400
|
+
},
|
|
401
|
+
"twofaDestination": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "string",
|
|
406
|
+
"resolved": "string",
|
|
407
|
+
"references": {}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": false,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "destination"
|
|
414
|
+
},
|
|
415
|
+
"attribute": "twofa-destination",
|
|
416
|
+
"reflect": true
|
|
417
|
+
},
|
|
418
|
+
"twofaResendIntervalSeconds": {
|
|
419
|
+
"type": "number",
|
|
420
|
+
"mutable": false,
|
|
421
|
+
"complexType": {
|
|
422
|
+
"original": "number",
|
|
423
|
+
"resolved": "number",
|
|
424
|
+
"references": {}
|
|
425
|
+
},
|
|
426
|
+
"required": false,
|
|
427
|
+
"optional": false,
|
|
428
|
+
"docs": {
|
|
429
|
+
"tags": [],
|
|
430
|
+
"text": "resend interval"
|
|
431
|
+
},
|
|
432
|
+
"attribute": "twofa-resend-interval-seconds",
|
|
433
|
+
"reflect": true,
|
|
434
|
+
"defaultValue": "60"
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GeneralInputHsl } from './general-input-hsl';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.number {
|
|
10
|
+
font-family: "Roboto";
|
|
11
|
+
font-style: normal;
|
|
12
|
+
}
|
|
13
|
+
.number__wrapper {
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
.number__wrapper--autofilled {
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
.number__wrapper--autofilled .number__label {
|
|
21
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
22
|
+
}
|
|
23
|
+
.number__wrapper--autofilled .number__input {
|
|
24
|
+
color: var(--emw--color-black, #000000);
|
|
25
|
+
}
|
|
26
|
+
.number__wrapper--flex {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: 5px;
|
|
29
|
+
}
|
|
30
|
+
.number__wrapper--relative {
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
.number__label {
|
|
34
|
+
font-family: inherit;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
40
|
+
}
|
|
41
|
+
.number__label--required::after {
|
|
42
|
+
content: "*";
|
|
43
|
+
font-family: inherit;
|
|
44
|
+
color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));
|
|
45
|
+
margin-left: 2px;
|
|
46
|
+
}
|
|
47
|
+
.number__input {
|
|
48
|
+
font-family: inherit;
|
|
49
|
+
border-radius: 5px;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 44px;
|
|
52
|
+
border: 1px solid var(--emw--color-gray-100, #E6E6E6);
|
|
53
|
+
color: var(--emw--color-black, #000000);
|
|
54
|
+
border-radius: 5px;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
padding: 5px 15px;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
line-height: 18px;
|
|
59
|
+
position: relative;
|
|
60
|
+
/* Firefox */
|
|
61
|
+
-moz-appearance: textfield;
|
|
62
|
+
/* Chrome, Safari, Edge, Opera */
|
|
63
|
+
}
|
|
64
|
+
.number__input:focus {
|
|
65
|
+
outline-color: #3E3E3E;
|
|
66
|
+
}
|
|
67
|
+
.number__input::-webkit-outer-spin-button, .number__input::-webkit-inner-spin-button {
|
|
68
|
+
-webkit-appearance: none;
|
|
69
|
+
margin: 0;
|
|
70
|
+
}
|
|
71
|
+
.number__input--invalid {
|
|
72
|
+
border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
73
|
+
}
|
|
74
|
+
.number__input::placeholder {
|
|
75
|
+
color: #979797;
|
|
76
|
+
}
|
|
77
|
+
.number__error-message {
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: calc(100% + 5px);
|
|
80
|
+
left: 0;
|
|
81
|
+
color: var(--emw--color-error, var(--emw--color-red, #ed0909));
|
|
82
|
+
}
|
|
83
|
+
.number__tooltip-icon {
|
|
84
|
+
width: 16px;
|
|
85
|
+
height: auto;
|
|
86
|
+
}
|
|
87
|
+
.number__tooltip {
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 20px;
|
|
91
|
+
background-color: var(--emw--color-white, #FFFFFF);
|
|
92
|
+
border: 1px solid var(--emw--color-gray-100, #E6E6E6);
|
|
93
|
+
color: var(--emw--registration-typography, var(--emw--color-black, #000000));
|
|
94
|
+
padding: 10px;
|
|
95
|
+
border-radius: 5px;
|
|
96
|
+
opacity: 0;
|
|
97
|
+
transition: opacity 0.3s ease-in-out;
|
|
98
|
+
z-index: 10;
|
|
99
|
+
}
|
|
100
|
+
.number__tooltip.visible {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|