@everymatrix/general-input 1.10.2 → 1.15.0
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-group-input_10.cjs.entry.js +35539 -0
- package/dist/cjs/general-input.cjs.entry.js +34 -13
- package/dist/cjs/general-input.cjs.js +2 -2
- package/dist/cjs/{index-64a5cb7f.js → index-132a0774.js} +119 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale.utils-7665b010.js +71 -0
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +85 -0
- package/dist/cjs/tooltipIcon-092a795f.js +5 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +62 -0
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +366 -0
- package/dist/collection/components/checkbox-input/checkbox-input.css +47 -1
- package/dist/collection/components/checkbox-input/checkbox-input.js +143 -16
- package/dist/collection/components/date-input/date-input.css +64 -30
- package/dist/collection/components/date-input/date-input.js +194 -13
- package/dist/collection/components/email-input/email-input.css +63 -28
- package/dist/collection/components/email-input/email-input.js +197 -21
- package/dist/collection/components/general-input/general-input.js +163 -21
- package/dist/collection/components/number-input/number-input.css +65 -30
- package/dist/collection/components/number-input/number-input.js +174 -19
- package/dist/collection/components/password-input/password-input.css +120 -29
- package/dist/collection/components/password-input/password-input.js +341 -25
- package/dist/collection/components/radio-input/radio-input.css +22 -1
- package/dist/collection/components/radio-input/radio-input.js +89 -10
- package/dist/collection/components/select-input/select-input.css +75 -22
- package/dist/collection/components/select-input/select-input.js +180 -37
- package/dist/collection/components/tel-input/tel-input.css +91 -33
- package/dist/collection/components/tel-input/tel-input.js +202 -24
- package/dist/collection/components/text-input/text-input.css +63 -28
- package/dist/collection/components/text-input/text-input.js +208 -39
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +76 -0
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +324 -0
- package/dist/collection/utils/locale.utils.js +52 -13
- package/dist/collection/utils/tooltipIcon.svg +5 -0
- package/dist/components/active-mixin.js +975 -0
- package/dist/components/checkbox-group-input.d.ts +11 -0
- package/dist/components/checkbox-group-input.js +6 -0
- package/dist/components/checkbox-group-input2.js +1125 -0
- package/dist/components/checkbox-input2.js +62 -12
- package/dist/components/date-input2.js +10247 -15
- package/dist/components/email-input2.js +98 -21
- package/dist/components/field-mixin.js +12712 -0
- package/dist/components/general-input.js +1 -118
- package/dist/components/general-input2.js +331 -0
- package/dist/components/input-field-shared-styles.js +1114 -0
- package/dist/components/number-input2.js +92 -16
- package/dist/components/password-input2.js +924 -24
- package/dist/components/pattern-mixin.js +85 -0
- package/dist/components/radio-input2.js +45 -11
- package/dist/components/select-input2.js +87 -27
- package/dist/components/tel-input2.js +122 -22
- package/dist/components/text-input2.js +120 -34
- package/dist/components/toggle-checkbox-input.d.ts +11 -0
- package/dist/components/toggle-checkbox-input.js +6 -0
- package/dist/components/tooltipIcon.js +70 -0
- package/dist/components/vaadin-button.js +461 -0
- package/dist/components/vaadin-combo-box.js +4329 -0
- package/dist/components/virtual-keyboard-controller.js +2658 -0
- package/dist/esm/checkbox-group-input_10.entry.js +35526 -0
- package/dist/esm/general-input.entry.js +34 -13
- package/dist/esm/general-input.js +2 -2
- package/dist/esm/{index-df80f936.js → index-db76d5b5.js} +118 -7
- package/dist/esm/loader.js +2 -2
- package/dist/esm/locale.utils-95ea2605.js +68 -0
- package/dist/esm/toggle-checkbox-input.entry.js +81 -0
- package/dist/esm/tooltipIcon-99c1c7b7.js +3 -0
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/p-0966f523.entry.js +3581 -0
- package/dist/general-input/p-916a1319.entry.js +1 -0
- package/dist/general-input/p-b408093e.js +1 -0
- package/dist/general-input/p-c2d4d6ac.entry.js +1 -0
- package/dist/general-input/p-f4f4ccda.js +1 -0
- package/dist/general-input/p-f6132f1d.js +1 -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 +28 -2
- package/dist/types/components/date-input/date-input.d.ts +43 -1
- package/dist/types/components/email-input/email-input.d.ts +37 -3
- package/dist/types/components/general-input/general-input.d.ts +30 -0
- package/dist/types/components/number-input/number-input.d.ts +34 -3
- package/dist/types/components/password-input/password-input.d.ts +56 -7
- package/dist/types/components/radio-input/radio-input.d.ts +17 -1
- package/dist/types/components/select-input/select-input.d.ts +36 -3
- package/dist/types/components/tel-input/tel-input.d.ts +40 -5
- package/dist/types/components/text-input/text-input.d.ts +84 -0
- package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
- package/dist/types/components.d.ts +568 -9
- package/dist/types/utils/locale.utils.d.ts +9 -0
- package/dist/types/utils/types.d.ts +41 -9
- package/package.json +8 -1
- package/dist/cjs/checkbox-input_9.cjs.entry.js +0 -623
- package/dist/components/locale.utils.js +0 -29
- package/dist/esm/checkbox-input_9.entry.js +0 -611
- package/dist/general-input/p-1703fce3.entry.js +0 -1
- package/dist/general-input/p-d9f7fa2e.js +0 -1
- package/dist/general-input/p-dea0a4ac.entry.js +0 -1
- /package/dist/types/Users/{user/workspace/everymatrix → adrian.pripon/Documents/Work}/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
interface Translation {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
}
|
|
1
4
|
interface TranslationValues {
|
|
2
5
|
values: object;
|
|
3
6
|
}
|
|
7
|
+
interface Translations {
|
|
8
|
+
en: Translation;
|
|
9
|
+
hu: Translation;
|
|
10
|
+
}
|
|
11
|
+
export declare const TRANSLATIONS: Translations;
|
|
4
12
|
export declare const translate: (key: string, customLang?: any, values?: TranslationValues) => string;
|
|
13
|
+
export declare const getTranslations: (url: string) => Promise<unknown>;
|
|
5
14
|
export {};
|
|
@@ -8,35 +8,44 @@ interface RegCfgContent {
|
|
|
8
8
|
registrationID: string;
|
|
9
9
|
step: string;
|
|
10
10
|
}
|
|
11
|
-
interface RegCfgContentField {
|
|
11
|
+
export interface RegCfgContentField {
|
|
12
12
|
action: string;
|
|
13
13
|
autofill: boolean;
|
|
14
|
-
data
|
|
14
|
+
data?: Values;
|
|
15
15
|
defaultValue: string;
|
|
16
16
|
inputType: string;
|
|
17
|
+
tooltip: string;
|
|
17
18
|
multiple: false;
|
|
18
19
|
name: string;
|
|
19
20
|
readOnly: boolean;
|
|
21
|
+
displayName: string;
|
|
22
|
+
placeholder?: string;
|
|
20
23
|
validate: ValidationSchema;
|
|
21
24
|
}
|
|
22
25
|
export interface ValidationSchema {
|
|
23
26
|
mandatory: boolean;
|
|
24
27
|
type?: string;
|
|
25
28
|
custom?: CustomValidationRules[];
|
|
26
|
-
minLength
|
|
27
|
-
maxLength
|
|
28
|
-
min
|
|
29
|
-
max
|
|
29
|
+
minLength?: number;
|
|
30
|
+
maxLength?: number;
|
|
31
|
+
min?: number;
|
|
32
|
+
max?: number;
|
|
30
33
|
}
|
|
31
|
-
interface CustomValidationRules {
|
|
34
|
+
export interface CustomValidationRules {
|
|
32
35
|
rule: string;
|
|
33
|
-
pattern?: string;
|
|
34
36
|
errorMessage: string;
|
|
37
|
+
errorKey: string;
|
|
38
|
+
pattern?: string;
|
|
39
|
+
displayName?: string;
|
|
35
40
|
}
|
|
36
41
|
export interface CustomRule {
|
|
37
42
|
rule: string;
|
|
38
43
|
errorMessage: string;
|
|
39
44
|
}
|
|
45
|
+
interface Values {
|
|
46
|
+
values?: Option[];
|
|
47
|
+
subFields?: RegCfgContentField[];
|
|
48
|
+
}
|
|
40
49
|
export interface Option {
|
|
41
50
|
value: string;
|
|
42
51
|
label: string;
|
|
@@ -46,10 +55,33 @@ export interface InputStateEvent {
|
|
|
46
55
|
name: string;
|
|
47
56
|
}
|
|
48
57
|
export interface InputValueEvent {
|
|
49
|
-
value: string
|
|
58
|
+
value: string;
|
|
59
|
+
name: string;
|
|
60
|
+
type?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface InputValue {
|
|
63
|
+
value: string;
|
|
64
|
+
name: string;
|
|
65
|
+
isDuplicate: boolean;
|
|
66
|
+
type?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface InputValidity {
|
|
69
|
+
isValid: boolean;
|
|
50
70
|
name: string;
|
|
51
71
|
}
|
|
52
72
|
export interface RegisterStep {
|
|
53
73
|
registrationId: string;
|
|
54
74
|
}
|
|
75
|
+
export interface StepState {
|
|
76
|
+
event: string;
|
|
77
|
+
type: string;
|
|
78
|
+
}
|
|
79
|
+
export interface PasswordComplexity {
|
|
80
|
+
rule: string;
|
|
81
|
+
passed: boolean;
|
|
82
|
+
ruleKey: string;
|
|
83
|
+
}
|
|
84
|
+
export interface ValueObject {
|
|
85
|
+
name: string;
|
|
86
|
+
}
|
|
55
87
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/general-input",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -15,5 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@vaadin/date-picker": "^23.1.5",
|
|
21
|
+
"@vaadin/combo-box": "^23.1.5",
|
|
22
|
+
"@vaadin/password-field": "^23.1.5",
|
|
23
|
+
"@vaadin/checkbox-group": "^23.1.5",
|
|
24
|
+
"@vaadin/checkbox": "^23.1.5"
|
|
18
25
|
}
|
|
19
26
|
}
|