@elliemae/ds-number-range-field 3.12.0-next.0 → 3.12.0-rc.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.
|
@@ -65,27 +65,17 @@ const DSNumberRangeField = ({
|
|
|
65
65
|
type
|
|
66
66
|
});
|
|
67
67
|
const numberRangeFieldProps = {
|
|
68
|
-
containerProps: import_ds_utilities.PropTypes.object.description(
|
|
69
|
-
"Set of Properties attached to the main container"
|
|
70
|
-
),
|
|
68
|
+
containerProps: import_ds_utilities.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
71
69
|
maxFrom: import_ds_utilities.PropTypes.number.description("Maximum number accepted in `From` field").defaultValue(null),
|
|
72
70
|
minFrom: import_ds_utilities.PropTypes.number.description("Minimum number accepted in `From` field").defaultValue(0),
|
|
73
71
|
maxTo: import_ds_utilities.PropTypes.number.description("Maximum number accepted in `To` field").defaultValue(null),
|
|
74
72
|
minTo: import_ds_utilities.PropTypes.number.description("Minimum number accepted in `To` field").defaultValue(0),
|
|
75
|
-
onChange: import_ds_utilities.PropTypes.func.description(
|
|
76
|
-
"Function executed when the value on the fields changes"
|
|
77
|
-
),
|
|
73
|
+
onChange: import_ds_utilities.PropTypes.func.description("Function executed when the value on the fields changes"),
|
|
78
74
|
placeholderFrom: import_ds_utilities.PropTypes.string.description("Placeholder value for the `From` field").defaultValue("From"),
|
|
79
75
|
placeholderTo: import_ds_utilities.PropTypes.string.description("Placeholder value for the `To` field").defaultValue("To"),
|
|
80
|
-
stepFrom: import_ds_utilities.PropTypes.number.description(
|
|
81
|
-
|
|
82
|
-
),
|
|
83
|
-
stepTo: import_ds_utilities.PropTypes.number.description(
|
|
84
|
-
"Amount of units the `To` field value increases/decreases"
|
|
85
|
-
),
|
|
86
|
-
value: import_ds_utilities.PropTypes.shape([import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.number]).description(
|
|
87
|
-
"Array with the values of both fields"
|
|
88
|
-
),
|
|
76
|
+
stepFrom: import_ds_utilities.PropTypes.number.description("Amount of units the `From` field value increases/decreases"),
|
|
77
|
+
stepTo: import_ds_utilities.PropTypes.number.description("Amount of units the `To` field value increases/decreases"),
|
|
78
|
+
value: import_ds_utilities.PropTypes.shape([import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.number]).description("Array with the values of both fields"),
|
|
89
79
|
separator: import_ds_utilities.PropTypes.string.description("Character that separates fields").defaultValue("-"),
|
|
90
80
|
maskOptions: import_ds_utilities.PropTypes.object.description("Object with mask configurations"),
|
|
91
81
|
type: import_ds_utilities.PropTypes.string.description("Type of input")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSNumberRangeField.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description(
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBrB;AAnBF,0BAAoC;AACpC,kCAAiC;AAEjC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,iBAAiB,CAAC;AAAA,EAClB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW,MAAM;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAC;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AACF,MACE,4CAAC,4BAAAA,SAAA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,gBAAgB,8BAAU,OAAO
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n maxFrom: PropTypes.number.description('Maximum number accepted in `From` field').defaultValue(null),\n minFrom: PropTypes.number.description('Minimum number accepted in `From` field').defaultValue(0),\n maxTo: PropTypes.number.description('Maximum number accepted in `To` field').defaultValue(null),\n minTo: PropTypes.number.description('Minimum number accepted in `To` field').defaultValue(0),\n onChange: PropTypes.func.description('Function executed when the value on the fields changes'),\n placeholderFrom: PropTypes.string.description('Placeholder value for the `From` field').defaultValue('From'),\n placeholderTo: PropTypes.string.description('Placeholder value for the `To` field').defaultValue('To'),\n stepFrom: PropTypes.number.description('Amount of units the `From` field value increases/decreases'),\n stepTo: PropTypes.number.description('Amount of units the `To` field value increases/decreases'),\n value: PropTypes.shape([PropTypes.number, PropTypes.number]).description('Array with the values of both fields'),\n separator: PropTypes.string.description('Character that separates fields').defaultValue('-'),\n maskOptions: PropTypes.object.description('Object with mask configurations'),\n type: PropTypes.string.description('Type of input'),\n};\n\nDSNumberRangeField.propTypes = numberRangeFieldProps;\nDSNumberRangeField.displayName = 'DSNumberRangeField';\nconst NumberRangeFieldWithSchema = describe(DSNumberRangeField);\nNumberRangeFieldWithSchema.propTypes = numberRangeFieldProps;\n\nexport { NumberRangeFieldWithSchema, DSNumberRangeField };\nexport default DSNumberRangeField;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBrB;AAnBF,0BAAoC;AACpC,kCAAiC;AAEjC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,iBAAiB,CAAC;AAAA,EAClB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW,MAAM;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAC;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AACF,MACE,4CAAC,4BAAAA,SAAA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,gBAAgB,8BAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,SAAS,8BAAU,OAAO,YAAY,yCAAyC,EAAE,aAAa,IAAI;AAAA,EAClG,SAAS,8BAAU,OAAO,YAAY,yCAAyC,EAAE,aAAa,CAAC;AAAA,EAC/F,OAAO,8BAAU,OAAO,YAAY,uCAAuC,EAAE,aAAa,IAAI;AAAA,EAC9F,OAAO,8BAAU,OAAO,YAAY,uCAAuC,EAAE,aAAa,CAAC;AAAA,EAC3F,UAAU,8BAAU,KAAK,YAAY,wDAAwD;AAAA,EAC7F,iBAAiB,8BAAU,OAAO,YAAY,wCAAwC,EAAE,aAAa,MAAM;AAAA,EAC3G,eAAe,8BAAU,OAAO,YAAY,sCAAsC,EAAE,aAAa,IAAI;AAAA,EACrG,UAAU,8BAAU,OAAO,YAAY,4DAA4D;AAAA,EACnG,QAAQ,8BAAU,OAAO,YAAY,0DAA0D;AAAA,EAC/F,OAAO,8BAAU,MAAM,CAAC,8BAAU,QAAQ,8BAAU,MAAM,CAAC,EAAE,YAAY,sCAAsC;AAAA,EAC/G,WAAW,8BAAU,OAAO,YAAY,iCAAiC,EAAE,aAAa,GAAG;AAAA,EAC3F,aAAa,8BAAU,OAAO,YAAY,iCAAiC;AAAA,EAC3E,MAAM,8BAAU,OAAO,YAAY,eAAe;AACpD;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,iCAA6B,8BAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
6
|
"names": ["NumberRangeFieldImpl"]
|
|
7
7
|
}
|
|
@@ -34,27 +34,17 @@ const DSNumberRangeField = ({
|
|
|
34
34
|
type
|
|
35
35
|
});
|
|
36
36
|
const numberRangeFieldProps = {
|
|
37
|
-
containerProps: PropTypes.object.description(
|
|
38
|
-
"Set of Properties attached to the main container"
|
|
39
|
-
),
|
|
37
|
+
containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
|
|
40
38
|
maxFrom: PropTypes.number.description("Maximum number accepted in `From` field").defaultValue(null),
|
|
41
39
|
minFrom: PropTypes.number.description("Minimum number accepted in `From` field").defaultValue(0),
|
|
42
40
|
maxTo: PropTypes.number.description("Maximum number accepted in `To` field").defaultValue(null),
|
|
43
41
|
minTo: PropTypes.number.description("Minimum number accepted in `To` field").defaultValue(0),
|
|
44
|
-
onChange: PropTypes.func.description(
|
|
45
|
-
"Function executed when the value on the fields changes"
|
|
46
|
-
),
|
|
42
|
+
onChange: PropTypes.func.description("Function executed when the value on the fields changes"),
|
|
47
43
|
placeholderFrom: PropTypes.string.description("Placeholder value for the `From` field").defaultValue("From"),
|
|
48
44
|
placeholderTo: PropTypes.string.description("Placeholder value for the `To` field").defaultValue("To"),
|
|
49
|
-
stepFrom: PropTypes.number.description(
|
|
50
|
-
|
|
51
|
-
),
|
|
52
|
-
stepTo: PropTypes.number.description(
|
|
53
|
-
"Amount of units the `To` field value increases/decreases"
|
|
54
|
-
),
|
|
55
|
-
value: PropTypes.shape([PropTypes.number, PropTypes.number]).description(
|
|
56
|
-
"Array with the values of both fields"
|
|
57
|
-
),
|
|
45
|
+
stepFrom: PropTypes.number.description("Amount of units the `From` field value increases/decreases"),
|
|
46
|
+
stepTo: PropTypes.number.description("Amount of units the `To` field value increases/decreases"),
|
|
47
|
+
value: PropTypes.shape([PropTypes.number, PropTypes.number]).description("Array with the values of both fields"),
|
|
58
48
|
separator: PropTypes.string.description("Character that separates fields").defaultValue("-"),
|
|
59
49
|
maskOptions: PropTypes.object.description("Object with mask configurations"),
|
|
60
50
|
type: PropTypes.string.description("Type of input")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSNumberRangeField.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description(
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACoBrB;AAnBF,SAAS,UAAU,iBAAiB;AACpC,OAAO,0BAA0B;AAEjC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,iBAAiB,CAAC;AAAA,EAClB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW,MAAM;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAC;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AACF,MACE,oBAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,gBAAgB,UAAU,OAAO
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport NumberRangeFieldImpl from './impl/NumberRangeFieldImpl';\n\nconst DSNumberRangeField = ({\n containerProps = {},\n maxFrom = null,\n minFrom = 0,\n maxTo = null,\n minTo = 0,\n onChange = () => null,\n placeholderFrom = 'From',\n placeholderTo = 'To',\n stepFrom = 1,\n stepTo = 1,\n value = [],\n separator = '-',\n maskOptions,\n type,\n}) => (\n <NumberRangeFieldImpl\n containerProps={containerProps}\n maxFrom={maxFrom}\n maxTo={maxTo}\n minFrom={minFrom}\n minTo={minTo}\n onChange={onChange}\n placeholderFrom={placeholderFrom}\n placeholderTo={placeholderTo}\n separator={separator}\n stepFrom={stepFrom}\n stepTo={stepTo}\n value={value}\n maskOptions={maskOptions}\n type={type}\n />\n);\n\nconst numberRangeFieldProps = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n maxFrom: PropTypes.number.description('Maximum number accepted in `From` field').defaultValue(null),\n minFrom: PropTypes.number.description('Minimum number accepted in `From` field').defaultValue(0),\n maxTo: PropTypes.number.description('Maximum number accepted in `To` field').defaultValue(null),\n minTo: PropTypes.number.description('Minimum number accepted in `To` field').defaultValue(0),\n onChange: PropTypes.func.description('Function executed when the value on the fields changes'),\n placeholderFrom: PropTypes.string.description('Placeholder value for the `From` field').defaultValue('From'),\n placeholderTo: PropTypes.string.description('Placeholder value for the `To` field').defaultValue('To'),\n stepFrom: PropTypes.number.description('Amount of units the `From` field value increases/decreases'),\n stepTo: PropTypes.number.description('Amount of units the `To` field value increases/decreases'),\n value: PropTypes.shape([PropTypes.number, PropTypes.number]).description('Array with the values of both fields'),\n separator: PropTypes.string.description('Character that separates fields').defaultValue('-'),\n maskOptions: PropTypes.object.description('Object with mask configurations'),\n type: PropTypes.string.description('Type of input'),\n};\n\nDSNumberRangeField.propTypes = numberRangeFieldProps;\nDSNumberRangeField.displayName = 'DSNumberRangeField';\nconst NumberRangeFieldWithSchema = describe(DSNumberRangeField);\nNumberRangeFieldWithSchema.propTypes = numberRangeFieldProps;\n\nexport { NumberRangeFieldWithSchema, DSNumberRangeField };\nexport default DSNumberRangeField;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACoBrB;AAnBF,SAAS,UAAU,iBAAiB;AACpC,OAAO,0BAA0B;AAEjC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,iBAAiB,CAAC;AAAA,EAClB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW,MAAM;AAAA,EACjB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAC;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AACF,MACE,oBAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,SAAS,UAAU,OAAO,YAAY,yCAAyC,EAAE,aAAa,IAAI;AAAA,EAClG,SAAS,UAAU,OAAO,YAAY,yCAAyC,EAAE,aAAa,CAAC;AAAA,EAC/F,OAAO,UAAU,OAAO,YAAY,uCAAuC,EAAE,aAAa,IAAI;AAAA,EAC9F,OAAO,UAAU,OAAO,YAAY,uCAAuC,EAAE,aAAa,CAAC;AAAA,EAC3F,UAAU,UAAU,KAAK,YAAY,wDAAwD;AAAA,EAC7F,iBAAiB,UAAU,OAAO,YAAY,wCAAwC,EAAE,aAAa,MAAM;AAAA,EAC3G,eAAe,UAAU,OAAO,YAAY,sCAAsC,EAAE,aAAa,IAAI;AAAA,EACrG,UAAU,UAAU,OAAO,YAAY,4DAA4D;AAAA,EACnG,QAAQ,UAAU,OAAO,YAAY,0DAA0D;AAAA,EAC/F,OAAO,UAAU,MAAM,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,sCAAsC;AAAA,EAC/G,WAAW,UAAU,OAAO,YAAY,iCAAiC,EAAE,aAAa,GAAG;AAAA,EAC3F,aAAa,UAAU,OAAO,YAAY,iCAAiC;AAAA,EAC3E,MAAM,UAAU,OAAO,YAAY,eAAe;AACpD;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,SAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-number-range-field",
|
|
3
|
-
"version": "3.12.0-
|
|
3
|
+
"version": "3.12.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Number Range Field",
|
|
6
6
|
"files": [
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"indent": 4
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@elliemae/ds-classnames": "3.12.0-
|
|
47
|
-
"@elliemae/ds-form": "3.12.0-
|
|
48
|
-
"@elliemae/ds-utilities": "3.12.0-
|
|
46
|
+
"@elliemae/ds-classnames": "3.12.0-rc.0",
|
|
47
|
+
"@elliemae/ds-form": "3.12.0-rc.0",
|
|
48
|
+
"@elliemae/ds-utilities": "3.12.0-rc.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"lodash": "^4.17.21",
|