@vaadin/custom-field 25.4.0-alpha2 → 25.4.0-alpha4
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/custom-elements.json +4 -58
- package/package.json +20 -20
- package/web-types.json +3 -3
- package/web-types.lit.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -76,10 +76,6 @@
|
|
|
76
76
|
"type": {
|
|
77
77
|
"text": "boolean"
|
|
78
78
|
}
|
|
79
|
-
},
|
|
80
|
-
"inheritedFrom": {
|
|
81
|
-
"name": "ValidateMixin",
|
|
82
|
-
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
83
79
|
}
|
|
84
80
|
},
|
|
85
81
|
{
|
|
@@ -103,8 +99,7 @@
|
|
|
103
99
|
"type": {
|
|
104
100
|
"text": "!CustomFieldFormatValueFn | undefined"
|
|
105
101
|
},
|
|
106
|
-
"description": "A function to format the values of the individual fields contained by\nthe custom field into a single component value. The function receives\nan array of all values of the individual fields in the order of their\npresence in the DOM, and must return a single component value.\nThis function is called each time a value of an internal field is\nchanged.\n\nExample:\n```js\ncustomField.formatValue = (fieldValues) => {\n return fieldValues.join(\"-\");\n}\n```"
|
|
107
|
-
"attribute": "format-value"
|
|
102
|
+
"description": "A function to format the values of the individual fields contained by\nthe custom field into a single component value. The function receives\nan array of all values of the individual fields in the order of their\npresence in the DOM, and must return a single component value.\nThis function is called each time a value of an internal field is\nchanged.\n\nExample:\n```js\ncustomField.formatValue = (fieldValues) => {\n return fieldValues.join(\"-\");\n}\n```"
|
|
108
103
|
},
|
|
109
104
|
{
|
|
110
105
|
"kind": "field",
|
|
@@ -128,7 +123,6 @@
|
|
|
128
123
|
"text": "!Array<!HTMLElement> | undefined"
|
|
129
124
|
},
|
|
130
125
|
"description": "Array of available input nodes",
|
|
131
|
-
"attribute": "inputs",
|
|
132
126
|
"readonly": true
|
|
133
127
|
},
|
|
134
128
|
{
|
|
@@ -190,8 +184,7 @@
|
|
|
190
184
|
"type": {
|
|
191
185
|
"text": "!CustomFieldParseValueFn | undefined"
|
|
192
186
|
},
|
|
193
|
-
"description": "A function to parse the component value into values for the individual\nfields contained by the custom field. The function receives the\ncomponent value, and must return an array of values for the individual\nfields in the order of their presence in the DOM.\nThe function is called each time the value of the component changes.\n\nExample:\n```js\ncustomField.parseValue = (componentValue) => {\n return componentValue.split(\"-\");\n}\n```"
|
|
194
|
-
"attribute": "parse-value"
|
|
187
|
+
"description": "A function to parse the component value into values for the individual\nfields contained by the custom field. The function receives the\ncomponent value, and must return an array of values for the individual\nfields in the order of their presence in the DOM.\nThe function is called each time the value of the component changes.\n\nExample:\n```js\ncustomField.parseValue = (componentValue) => {\n return componentValue.split(\"-\");\n}\n```"
|
|
195
188
|
},
|
|
196
189
|
{
|
|
197
190
|
"kind": "field",
|
|
@@ -299,14 +292,6 @@
|
|
|
299
292
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
300
293
|
}
|
|
301
294
|
},
|
|
302
|
-
{
|
|
303
|
-
"name": "format-value",
|
|
304
|
-
"type": {
|
|
305
|
-
"text": "!CustomFieldFormatValueFn | undefined"
|
|
306
|
-
},
|
|
307
|
-
"description": "A function to format the values of the individual fields contained by\nthe custom field into a single component value. The function receives\nan array of all values of the individual fields in the order of their\npresence in the DOM, and must return a single component value.\nThis function is called each time a value of an internal field is\nchanged.\n\nExample:\n```js\ncustomField.formatValue = (fieldValues) => {\n return fieldValues.join(\"-\");\n}\n```",
|
|
308
|
-
"fieldName": "formatValue"
|
|
309
|
-
},
|
|
310
295
|
{
|
|
311
296
|
"name": "helper-text",
|
|
312
297
|
"type": {
|
|
@@ -363,14 +348,6 @@
|
|
|
363
348
|
"description": "The name of the control, which is submitted with the form data.",
|
|
364
349
|
"fieldName": "name"
|
|
365
350
|
},
|
|
366
|
-
{
|
|
367
|
-
"name": "parse-value",
|
|
368
|
-
"type": {
|
|
369
|
-
"text": "!CustomFieldParseValueFn | undefined"
|
|
370
|
-
},
|
|
371
|
-
"description": "A function to parse the component value into values for the individual\nfields contained by the custom field. The function receives the\ncomponent value, and must return an array of values for the individual\nfields in the order of their presence in the DOM.\nThe function is called each time the value of the component changes.\n\nExample:\n```js\ncustomField.parseValue = (componentValue) => {\n return componentValue.split(\"-\");\n}\n```",
|
|
372
|
-
"fieldName": "parseValue"
|
|
373
|
-
},
|
|
374
351
|
{
|
|
375
352
|
"name": "required",
|
|
376
353
|
"type": {
|
|
@@ -511,7 +488,6 @@
|
|
|
511
488
|
"text": "!CustomFieldFormatValueFn | undefined"
|
|
512
489
|
},
|
|
513
490
|
"description": "A function to format the values of the individual fields contained by\nthe custom field into a single component value. The function receives\nan array of all values of the individual fields in the order of their\npresence in the DOM, and must return a single component value.\nThis function is called each time a value of an internal field is\nchanged.\n\nExample:\n```js\ncustomField.formatValue = (fieldValues) => {\n return fieldValues.join(\"-\");\n}\n```",
|
|
514
|
-
"attribute": "format-value",
|
|
515
491
|
"inheritedFrom": {
|
|
516
492
|
"name": "CustomFieldMixin",
|
|
517
493
|
"module": "src/vaadin-custom-field-mixin.js"
|
|
@@ -539,7 +515,6 @@
|
|
|
539
515
|
"text": "!Array<!HTMLElement> | undefined"
|
|
540
516
|
},
|
|
541
517
|
"description": "Array of available input nodes",
|
|
542
|
-
"attribute": "inputs",
|
|
543
518
|
"readonly": true,
|
|
544
519
|
"inheritedFrom": {
|
|
545
520
|
"name": "CustomFieldMixin",
|
|
@@ -610,7 +585,6 @@
|
|
|
610
585
|
"text": "!CustomFieldParseValueFn | undefined"
|
|
611
586
|
},
|
|
612
587
|
"description": "A function to parse the component value into values for the individual\nfields contained by the custom field. The function receives the\ncomponent value, and must return an array of values for the individual\nfields in the order of their presence in the DOM.\nThe function is called each time the value of the component changes.\n\nExample:\n```js\ncustomField.parseValue = (componentValue) => {\n return componentValue.split(\"-\");\n}\n```",
|
|
613
|
-
"attribute": "parse-value",
|
|
614
588
|
"inheritedFrom": {
|
|
615
589
|
"name": "CustomFieldMixin",
|
|
616
590
|
"module": "src/vaadin-custom-field-mixin.js"
|
|
@@ -661,15 +635,11 @@
|
|
|
661
635
|
],
|
|
662
636
|
"events": [
|
|
663
637
|
{
|
|
664
|
-
"name": "change",
|
|
665
638
|
"type": {
|
|
666
|
-
"text": "
|
|
639
|
+
"text": "Event"
|
|
667
640
|
},
|
|
668
641
|
"description": "Fired when the user commits a value change for any of the internal inputs.",
|
|
669
|
-
"
|
|
670
|
-
"name": "CustomFieldMixin",
|
|
671
|
-
"module": "src/vaadin-custom-field-mixin.js"
|
|
672
|
-
}
|
|
642
|
+
"name": "change"
|
|
673
643
|
},
|
|
674
644
|
{
|
|
675
645
|
"type": {
|
|
@@ -742,18 +712,6 @@
|
|
|
742
712
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
743
713
|
}
|
|
744
714
|
},
|
|
745
|
-
{
|
|
746
|
-
"name": "format-value",
|
|
747
|
-
"type": {
|
|
748
|
-
"text": "!CustomFieldFormatValueFn | undefined"
|
|
749
|
-
},
|
|
750
|
-
"description": "A function to format the values of the individual fields contained by\nthe custom field into a single component value. The function receives\nan array of all values of the individual fields in the order of their\npresence in the DOM, and must return a single component value.\nThis function is called each time a value of an internal field is\nchanged.\n\nExample:\n```js\ncustomField.formatValue = (fieldValues) => {\n return fieldValues.join(\"-\");\n}\n```",
|
|
751
|
-
"fieldName": "formatValue",
|
|
752
|
-
"inheritedFrom": {
|
|
753
|
-
"name": "CustomFieldMixin",
|
|
754
|
-
"module": "src/vaadin-custom-field-mixin.js"
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
715
|
{
|
|
758
716
|
"name": "helper-text",
|
|
759
717
|
"type": {
|
|
@@ -814,18 +772,6 @@
|
|
|
814
772
|
"module": "src/vaadin-custom-field-mixin.js"
|
|
815
773
|
}
|
|
816
774
|
},
|
|
817
|
-
{
|
|
818
|
-
"name": "parse-value",
|
|
819
|
-
"type": {
|
|
820
|
-
"text": "!CustomFieldParseValueFn | undefined"
|
|
821
|
-
},
|
|
822
|
-
"description": "A function to parse the component value into values for the individual\nfields contained by the custom field. The function receives the\ncomponent value, and must return an array of values for the individual\nfields in the order of their presence in the DOM.\nThe function is called each time the value of the component changes.\n\nExample:\n```js\ncustomField.parseValue = (componentValue) => {\n return componentValue.split(\"-\");\n}\n```",
|
|
823
|
-
"fieldName": "parseValue",
|
|
824
|
-
"inheritedFrom": {
|
|
825
|
-
"name": "CustomFieldMixin",
|
|
826
|
-
"module": "src/vaadin-custom-field-mixin.js"
|
|
827
|
-
}
|
|
828
|
-
},
|
|
829
775
|
{
|
|
830
776
|
"name": "required",
|
|
831
777
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/custom-field",
|
|
3
|
-
"version": "25.4.0-
|
|
3
|
+
"version": "25.4.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.4.0-
|
|
39
|
-
"@vaadin/component-base": "25.4.0-
|
|
40
|
-
"@vaadin/field-base": "25.4.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.4.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.4.0-alpha4",
|
|
39
|
+
"@vaadin/component-base": "25.4.0-alpha4",
|
|
40
|
+
"@vaadin/field-base": "25.4.0-alpha4",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.4.0-alpha4",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/aura": "25.4.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.4.0-
|
|
47
|
-
"@vaadin/combo-box": "25.4.0-
|
|
48
|
-
"@vaadin/date-picker": "25.4.0-
|
|
49
|
-
"@vaadin/email-field": "25.4.0-
|
|
50
|
-
"@vaadin/form-layout": "25.4.0-
|
|
51
|
-
"@vaadin/number-field": "25.4.0-
|
|
52
|
-
"@vaadin/password-field": "25.4.0-
|
|
53
|
-
"@vaadin/select": "25.4.0-
|
|
54
|
-
"@vaadin/test-runner-commands": "25.4.0-
|
|
45
|
+
"@vaadin/aura": "25.4.0-alpha4",
|
|
46
|
+
"@vaadin/chai-plugins": "25.4.0-alpha4",
|
|
47
|
+
"@vaadin/combo-box": "25.4.0-alpha4",
|
|
48
|
+
"@vaadin/date-picker": "25.4.0-alpha4",
|
|
49
|
+
"@vaadin/email-field": "25.4.0-alpha4",
|
|
50
|
+
"@vaadin/form-layout": "25.4.0-alpha4",
|
|
51
|
+
"@vaadin/number-field": "25.4.0-alpha4",
|
|
52
|
+
"@vaadin/password-field": "25.4.0-alpha4",
|
|
53
|
+
"@vaadin/select": "25.4.0-alpha4",
|
|
54
|
+
"@vaadin/test-runner-commands": "25.4.0-alpha4",
|
|
55
55
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
|
-
"@vaadin/text-area": "25.4.0-
|
|
57
|
-
"@vaadin/text-field": "25.4.0-
|
|
58
|
-
"@vaadin/time-picker": "25.4.0-
|
|
59
|
-
"@vaadin/vaadin-lumo-styles": "25.4.0-
|
|
56
|
+
"@vaadin/text-area": "25.4.0-alpha4",
|
|
57
|
+
"@vaadin/text-field": "25.4.0-alpha4",
|
|
58
|
+
"@vaadin/time-picker": "25.4.0-alpha4",
|
|
59
|
+
"@vaadin/vaadin-lumo-styles": "25.4.0-alpha4",
|
|
60
60
|
"sinon": "^22.0.0"
|
|
61
61
|
},
|
|
62
62
|
"customElements": "custom-elements.json",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"web-types.json",
|
|
65
65
|
"web-types.lit.json"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "7809e4c099538333a6dbd11d8da18a0c6ec30dad"
|
|
68
68
|
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/custom-field",
|
|
4
|
-
"version": "25.4.0-
|
|
4
|
+
"version": "25.4.0-alpha4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "value",
|
|
114
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-
|
|
114
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
115
115
|
"value": {
|
|
116
116
|
"type": [
|
|
117
117
|
"string"
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
"name": "value",
|
|
236
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-
|
|
236
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
237
237
|
"value": {
|
|
238
238
|
"type": [
|
|
239
239
|
"string"
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/custom-field",
|
|
4
|
-
"version": "25.4.0-
|
|
4
|
+
"version": "25.4.0-alpha4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"name": ".value",
|
|
108
|
-
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-
|
|
108
|
+
"description": "The value of the field. When wrapping several inputs, it will contain `\\t`\n(Tab character) as a delimiter indicating parts intended to be used as the\ncorresponding inputs values.\nUse the [`formatValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-formatValue)\nand [`parseValue`](https://cdn.vaadin.com/vaadin-web-components/25.4.0-alpha4/#/elements/vaadin-custom-field#property-parseValue)\nproperties to customize this behavior.",
|
|
109
109
|
"value": {
|
|
110
110
|
"kind": "expression"
|
|
111
111
|
}
|