@everymatrix/general-registration 1.10.12 → 1.10.14
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/checkbox-input_11.cjs.entry.js +5363 -183
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-68f93e1e.js → index-a69a5278.js} +11 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.js +8 -5
- package/dist/components/checkbox-input2.js +7 -7
- package/dist/components/date-input2.js +2981 -20815
- package/dist/components/email-input2.js +8 -8
- package/dist/components/general-input2.js +14 -28
- package/dist/components/general-registration.js +8 -5
- package/dist/components/input-field-shared-styles.js +13776 -0
- package/dist/components/number-input2.js +7 -7
- package/dist/components/password-input2.js +725 -9
- package/dist/components/pattern-mixin.js +84 -0
- package/dist/components/radio-input2.js +5 -5
- package/dist/components/select-input2.js +10 -9
- package/dist/components/tel-input2.js +11 -10
- package/dist/components/text-input2.js +10 -10
- package/dist/components/vaadin-button.js +1432 -0
- package/dist/components/vaadin-combo-box.js +4344 -0
- package/dist/components/virtual-keyboard-controller.js +2693 -0
- package/dist/esm/checkbox-input_11.entry.js +5363 -183
- package/dist/esm/general-registration.js +2 -2
- package/dist/esm/{index-16916adb.js → index-b3c0d3c9.js} +11 -0
- package/dist/esm/loader.js +2 -2
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{p-3700b17b.entry.js → p-3313fb60.entry.js} +551 -102
- package/dist/general-registration/{p-8f644809.js → p-35d6abbe.js} +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { I as InputConstraintsMixin, D as Debouncer, e as timeOut } from './input-field-shared-styles.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright (c) 2021 - 2022 Vaadin Ltd.
|
|
6
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A mixin to provide `pattern` and `preventInvalidInput` properties.
|
|
11
|
+
*
|
|
12
|
+
* @polymerMixin
|
|
13
|
+
* @mixes InputConstraintsMixin
|
|
14
|
+
*/
|
|
15
|
+
const PatternMixin = (superclass) =>
|
|
16
|
+
class PatternMixinClass extends InputConstraintsMixin(superclass) {
|
|
17
|
+
static get properties() {
|
|
18
|
+
return {
|
|
19
|
+
/**
|
|
20
|
+
* A regular expression that the value is checked against.
|
|
21
|
+
* The pattern must match the entire value, not just some subset.
|
|
22
|
+
*/
|
|
23
|
+
pattern: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* When set to true, user is prevented from typing a value that
|
|
29
|
+
* conflicts with the given `pattern`.
|
|
30
|
+
* @attr {boolean} prevent-invalid-input
|
|
31
|
+
* @deprecated Please use `allowedCharPattern` instead.
|
|
32
|
+
*/
|
|
33
|
+
preventInvalidInput: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
observer: '_preventInvalidInputChanged',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static get delegateAttrs() {
|
|
41
|
+
return [...super.delegateAttrs, 'pattern'];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static get constraints() {
|
|
45
|
+
return [...super.constraints, 'pattern'];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @private */
|
|
49
|
+
_checkInputValue() {
|
|
50
|
+
if (this.preventInvalidInput) {
|
|
51
|
+
const input = this.inputElement;
|
|
52
|
+
if (input && input.value.length > 0 && !this.checkValidity()) {
|
|
53
|
+
input.value = this.value || '';
|
|
54
|
+
// Add input-prevented attribute for 200ms
|
|
55
|
+
this.setAttribute('input-prevented', '');
|
|
56
|
+
this._inputDebouncer = Debouncer.debounce(this._inputDebouncer, timeOut.after(200), () => {
|
|
57
|
+
this.removeAttribute('input-prevented');
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @param {Event} event
|
|
65
|
+
* @protected
|
|
66
|
+
* @override
|
|
67
|
+
*/
|
|
68
|
+
_onInput(event) {
|
|
69
|
+
this._checkInputValue();
|
|
70
|
+
|
|
71
|
+
super._onInput(event);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @private */
|
|
75
|
+
_preventInvalidInputChanged(preventInvalidInput) {
|
|
76
|
+
if (preventInvalidInput) {
|
|
77
|
+
console.warn(
|
|
78
|
+
`WARNING: Since Vaadin 23.2, "preventInvalidInput" is deprecated. Please use "allowedCharPattern" instead.`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export { PatternMixin as P };
|
|
@@ -71,13 +71,13 @@ const RadioInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
71
71
|
}; }
|
|
72
72
|
static get style() { return radioInputCss; }
|
|
73
73
|
}, [1, "radio-input", {
|
|
74
|
-
"name": [
|
|
75
|
-
"displayName": [
|
|
74
|
+
"name": [513],
|
|
75
|
+
"displayName": [513, "display-name"],
|
|
76
76
|
"optionsGroup": [16],
|
|
77
77
|
"validation": [16],
|
|
78
|
-
"language": [
|
|
79
|
-
"emitValue": [
|
|
80
|
-
"clientStyling": [
|
|
78
|
+
"language": [513],
|
|
79
|
+
"emitValue": [516, "emit-value"],
|
|
80
|
+
"clientStyling": [513, "client-styling"],
|
|
81
81
|
"errorMessage": [32],
|
|
82
82
|
"isValid": [32],
|
|
83
83
|
"limitStylingAppends": [32]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate } from './locale.utils.js';
|
|
3
|
-
import '
|
|
3
|
+
import './input-field-shared-styles.js';
|
|
4
|
+
import './vaadin-combo-box.js';
|
|
4
5
|
|
|
5
6
|
const selectInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.select{font-family:\"Roboto\";font-style:normal}.select__wrapper{position:relative;width:100%;padding-top:26px}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F;position:absolute;top:0;left:0}.select__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:#3E3E3E}.select__input[invalid]::part(input-field){border-color:#cc0000b3}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:#1F1F1F}.select__input vaadin-month-calendar::part(selected date){background-color:red}.select__input::part(input-field){border-radius:4px;background-color:#FFFFFF;border:2px solid #DEE1EE;color:#2A2E3F;border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}";
|
|
6
7
|
|
|
@@ -117,16 +118,16 @@ const SelectInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
117
118
|
}; }
|
|
118
119
|
static get style() { return selectInputCss; }
|
|
119
120
|
}, [1, "select-input", {
|
|
120
|
-
"name": [
|
|
121
|
-
"displayName": [
|
|
122
|
-
"action": [
|
|
123
|
-
"defaultValue": [
|
|
124
|
-
"autofilled": [
|
|
121
|
+
"name": [513],
|
|
122
|
+
"displayName": [513, "display-name"],
|
|
123
|
+
"action": [513],
|
|
124
|
+
"defaultValue": [513, "default-value"],
|
|
125
|
+
"autofilled": [516],
|
|
125
126
|
"options": [16],
|
|
126
127
|
"validation": [16],
|
|
127
|
-
"language": [
|
|
128
|
-
"emitValue": [
|
|
129
|
-
"clientStyling": [
|
|
128
|
+
"language": [513],
|
|
129
|
+
"emitValue": [516, "emit-value"],
|
|
130
|
+
"clientStyling": [513, "client-styling"],
|
|
130
131
|
"errorMessage": [32],
|
|
131
132
|
"isValid": [32],
|
|
132
133
|
"limitStylingAppends": [32]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { t as translate } from './locale.utils.js';
|
|
3
|
-
import '
|
|
3
|
+
import './input-field-shared-styles.js';
|
|
4
|
+
import './vaadin-combo-box.js';
|
|
4
5
|
|
|
5
6
|
const telInputCss = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:\"Roboto\";font-style:normal}.tel__wrapper{position:relative;width:100%;padding-top:26px}.tel__wrapper--flex{width:inherit;display:flex;align-items:stretch;border-radius:4px;border:2px solid #DEE1EE}.tel__wrapper--flex:focus-within{border:2px solid #3E3E3E}.tel__wrapper--flex--invalid{border:2px solid #cc0000b3}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#1F1F1F;position:absolute;top:0;left:0}.tel__label--required::after{content:\"*\";font-family:inherit;color:#1F1F1F;margin-left:2px}.tel__prefix{width:120px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 4px 4px 0;background-color:#DEE1EE;color:#1F1F1F;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px}.tel__input{border-radius:4px;background-color:transparent;font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:19px;color:#2A2E3F;border:none;padding:8px 20px;width:inherit;position:relative;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:#cc0000b3}";
|
|
6
7
|
|
|
@@ -126,16 +127,16 @@ const TelInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
126
127
|
}; }
|
|
127
128
|
static get style() { return telInputCss; }
|
|
128
129
|
}, [1, "tel-input", {
|
|
129
|
-
"name": [
|
|
130
|
-
"displayName": [
|
|
131
|
-
"showLabels": [
|
|
132
|
-
"action": [
|
|
130
|
+
"name": [513],
|
|
131
|
+
"displayName": [513, "display-name"],
|
|
132
|
+
"showLabels": [516, "show-labels"],
|
|
133
|
+
"action": [513],
|
|
133
134
|
"validation": [16],
|
|
134
|
-
"defaultValue": [
|
|
135
|
-
"autofilled": [
|
|
136
|
-
"language": [
|
|
137
|
-
"emitValue": [
|
|
138
|
-
"clientStyling": [
|
|
135
|
+
"defaultValue": [513, "default-value"],
|
|
136
|
+
"autofilled": [516],
|
|
137
|
+
"language": [513],
|
|
138
|
+
"emitValue": [516, "emit-value"],
|
|
139
|
+
"clientStyling": [513, "client-styling"],
|
|
139
140
|
"isValid": [32],
|
|
140
141
|
"errorMessage": [32],
|
|
141
142
|
"limitStylingAppends": [32]
|
|
@@ -111,17 +111,17 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
111
|
}; }
|
|
112
112
|
static get style() { return textInputCss; }
|
|
113
113
|
}, [1, "text-input", {
|
|
114
|
-
"name": [
|
|
115
|
-
"displayName": [
|
|
114
|
+
"name": [513],
|
|
115
|
+
"displayName": [513, "display-name"],
|
|
116
116
|
"validation": [16],
|
|
117
|
-
"defaultValue": [
|
|
118
|
-
"autofilled": [
|
|
119
|
-
"rules": [
|
|
120
|
-
"language": [
|
|
121
|
-
"checkValidity": [
|
|
122
|
-
"emitValue": [
|
|
123
|
-
"isDuplicateInput": [
|
|
124
|
-
"clientStyling": [
|
|
117
|
+
"defaultValue": [513, "default-value"],
|
|
118
|
+
"autofilled": [516],
|
|
119
|
+
"rules": [513],
|
|
120
|
+
"language": [513],
|
|
121
|
+
"checkValidity": [516, "check-validity"],
|
|
122
|
+
"emitValue": [516, "emit-value"],
|
|
123
|
+
"isDuplicateInput": [516, "is-duplicate-input"],
|
|
124
|
+
"clientStyling": [513, "client-styling"],
|
|
125
125
|
"isValid": [32],
|
|
126
126
|
"errorMessage": [32],
|
|
127
127
|
"limitStylingAppends": [32]
|