@wordpress/dataviews 11.0.0 → 11.1.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/CHANGELOG.md +20 -0
- package/README.md +140 -93
- package/build/components/dataviews-filters/filter.js +25 -267
- package/build/components/dataviews-filters/filter.js.map +2 -2
- package/build/components/dataviews-filters/input-widget.js +1 -4
- package/build/components/dataviews-filters/input-widget.js.map +2 -2
- package/build/components/dataviews-filters/use-filters.js +3 -3
- package/build/components/dataviews-filters/use-filters.js.map +2 -2
- package/build/constants.js +5 -142
- package/build/constants.js.map +2 -2
- package/build/dataform-controls/number.js +2 -1
- package/build/dataform-controls/number.js.map +2 -2
- package/build/dataform-controls/textarea.js +3 -1
- package/build/dataform-controls/textarea.js.map +2 -2
- package/build/dataform-controls/utils/get-custom-validity.js +8 -0
- package/build/dataform-controls/utils/get-custom-validity.js.map +2 -2
- package/build/dataform-controls/utils/validated-input.js +4 -2
- package/build/dataform-controls/utils/validated-input.js.map +2 -2
- package/build/dataform-controls/utils/validated-number.js +4 -2
- package/build/dataform-controls/utils/validated-number.js.map +2 -2
- package/build/dataform-layouts/panel/modal.js +14 -5
- package/build/dataform-layouts/panel/modal.js.map +2 -2
- package/build/dataviews-layouts/grid/composite-grid.js +39 -37
- package/build/dataviews-layouts/grid/composite-grid.js.map +3 -3
- package/build/dataviews-layouts/table/index.js +8 -3
- package/build/dataviews-layouts/table/index.js.map +2 -2
- package/build/field-types/array.js +27 -14
- package/build/field-types/array.js.map +3 -3
- package/build/field-types/boolean.js +13 -10
- package/build/field-types/boolean.js.map +3 -3
- package/build/field-types/color.js +14 -11
- package/build/field-types/color.js.map +3 -3
- package/build/field-types/date.js +11 -8
- package/build/field-types/date.js.map +3 -3
- package/build/field-types/datetime.js +7 -5
- package/build/field-types/datetime.js.map +3 -3
- package/build/field-types/email.js +20 -11
- package/build/field-types/email.js.map +3 -3
- package/build/field-types/index.js +12 -14
- package/build/field-types/index.js.map +3 -3
- package/build/field-types/integer.js +63 -14
- package/build/field-types/integer.js.map +3 -3
- package/build/field-types/media.js +5 -5
- package/build/field-types/media.js.map +2 -2
- package/build/field-types/no-type.js +9 -6
- package/build/field-types/no-type.js.map +3 -3
- package/build/field-types/number.js +51 -15
- package/build/field-types/number.js.map +3 -3
- package/build/field-types/password.js +13 -5
- package/build/field-types/password.js.map +3 -3
- package/build/field-types/telephone.js +13 -5
- package/build/field-types/telephone.js.map +3 -3
- package/build/field-types/text.js +13 -5
- package/build/field-types/text.js.map +3 -3
- package/build/field-types/url.js +13 -5
- package/build/field-types/url.js.map +3 -3
- package/build/field-types/utils/get-is-valid.js +89 -0
- package/build/field-types/utils/get-is-valid.js.map +7 -0
- package/build/field-types/utils/is-valid-elements.js +35 -0
- package/build/field-types/utils/is-valid-elements.js.map +7 -0
- package/build/field-types/utils/is-valid-max-length.js +36 -0
- package/build/field-types/utils/is-valid-max-length.js.map +7 -0
- package/build/field-types/utils/is-valid-max.js +36 -0
- package/build/field-types/utils/is-valid-max.js.map +7 -0
- package/build/field-types/utils/is-valid-min-length.js +36 -0
- package/build/field-types/utils/is-valid-min-length.js.map +7 -0
- package/build/field-types/utils/is-valid-min.js +36 -0
- package/build/field-types/utils/is-valid-min.js.map +7 -0
- package/build/field-types/utils/is-valid-pattern.js +41 -0
- package/build/field-types/utils/is-valid-pattern.js.map +7 -0
- package/build/field-types/utils/is-valid-required-for-array.js +32 -0
- package/build/field-types/utils/is-valid-required-for-array.js.map +7 -0
- package/build/field-types/utils/is-valid-required-for-bool.js +30 -0
- package/build/field-types/utils/is-valid-required-for-bool.js.map +7 -0
- package/build/field-types/utils/is-valid-required.js +30 -0
- package/build/field-types/utils/is-valid-required.js.map +7 -0
- package/build/hooks/use-form-validity.js +52 -102
- package/build/hooks/use-form-validity.js.map +2 -2
- package/build/types/field-api.js.map +1 -1
- package/build/types/private.js.map +1 -1
- package/build/utils/filter-sort-and-paginate.js +5 -0
- package/build/utils/filter-sort-and-paginate.js.map +3 -3
- package/build/utils/operators.js +399 -0
- package/build/utils/operators.js.map +7 -0
- package/build-module/components/dataviews-filters/filter.js +26 -292
- package/build-module/components/dataviews-filters/filter.js.map +2 -2
- package/build-module/components/dataviews-filters/input-widget.js +1 -4
- package/build-module/components/dataviews-filters/input-widget.js.map +2 -2
- package/build-module/components/dataviews-filters/use-filters.js +6 -3
- package/build-module/components/dataviews-filters/use-filters.js.map +2 -2
- package/build-module/constants.js +5 -139
- package/build-module/constants.js.map +2 -2
- package/build-module/dataform-controls/number.js +2 -1
- package/build-module/dataform-controls/number.js.map +2 -2
- package/build-module/dataform-controls/textarea.js +3 -1
- package/build-module/dataform-controls/textarea.js.map +2 -2
- package/build-module/dataform-controls/utils/get-custom-validity.js +8 -0
- package/build-module/dataform-controls/utils/get-custom-validity.js.map +2 -2
- package/build-module/dataform-controls/utils/validated-input.js +4 -2
- package/build-module/dataform-controls/utils/validated-input.js.map +2 -2
- package/build-module/dataform-controls/utils/validated-number.js +4 -2
- package/build-module/dataform-controls/utils/validated-number.js.map +2 -2
- package/build-module/dataform-layouts/panel/modal.js +14 -5
- package/build-module/dataform-layouts/panel/modal.js.map +2 -2
- package/build-module/dataviews-layouts/grid/composite-grid.js +40 -38
- package/build-module/dataviews-layouts/grid/composite-grid.js.map +3 -3
- package/build-module/dataviews-layouts/table/index.js +8 -3
- package/build-module/dataviews-layouts/table/index.js.map +2 -2
- package/build-module/field-types/array.js +17 -14
- package/build-module/field-types/array.js.map +2 -2
- package/build-module/field-types/boolean.js +13 -10
- package/build-module/field-types/boolean.js.map +2 -2
- package/build-module/field-types/color.js +14 -11
- package/build-module/field-types/color.js.map +2 -2
- package/build-module/field-types/date.js +11 -8
- package/build-module/field-types/date.js.map +2 -2
- package/build-module/field-types/datetime.js +7 -5
- package/build-module/field-types/datetime.js.map +2 -2
- package/build-module/field-types/email.js +20 -11
- package/build-module/field-types/email.js.map +2 -2
- package/build-module/field-types/index.js +12 -14
- package/build-module/field-types/index.js.map +2 -2
- package/build-module/field-types/integer.js +58 -13
- package/build-module/field-types/integer.js.map +2 -2
- package/build-module/field-types/media.js +5 -5
- package/build-module/field-types/media.js.map +2 -2
- package/build-module/field-types/no-type.js +10 -7
- package/build-module/field-types/no-type.js.map +2 -2
- package/build-module/field-types/number.js +47 -15
- package/build-module/field-types/number.js.map +2 -2
- package/build-module/field-types/password.js +13 -5
- package/build-module/field-types/password.js.map +2 -2
- package/build-module/field-types/telephone.js +13 -5
- package/build-module/field-types/telephone.js.map +2 -2
- package/build-module/field-types/text.js +13 -5
- package/build-module/field-types/text.js.map +2 -2
- package/build-module/field-types/url.js +13 -5
- package/build-module/field-types/url.js.map +2 -2
- package/build-module/field-types/utils/get-is-valid.js +68 -0
- package/build-module/field-types/utils/get-is-valid.js.map +7 -0
- package/build-module/field-types/utils/is-valid-elements.js +14 -0
- package/build-module/field-types/utils/is-valid-elements.js.map +7 -0
- package/build-module/field-types/utils/is-valid-max-length.js +15 -0
- package/build-module/field-types/utils/is-valid-max-length.js.map +7 -0
- package/build-module/field-types/utils/is-valid-max.js +15 -0
- package/build-module/field-types/utils/is-valid-max.js.map +7 -0
- package/build-module/field-types/utils/is-valid-min-length.js +15 -0
- package/build-module/field-types/utils/is-valid-min-length.js.map +7 -0
- package/build-module/field-types/utils/is-valid-min.js +15 -0
- package/build-module/field-types/utils/is-valid-min.js.map +7 -0
- package/build-module/field-types/utils/is-valid-pattern.js +20 -0
- package/build-module/field-types/utils/is-valid-pattern.js.map +7 -0
- package/build-module/field-types/utils/is-valid-required-for-array.js +11 -0
- package/build-module/field-types/utils/is-valid-required-for-array.js.map +7 -0
- package/build-module/field-types/utils/is-valid-required-for-bool.js +9 -0
- package/build-module/field-types/utils/is-valid-required-for-bool.js.map +7 -0
- package/build-module/field-types/utils/is-valid-required.js +9 -0
- package/build-module/field-types/utils/is-valid-required.js.map +7 -0
- package/build-module/hooks/use-form-validity.js +52 -102
- package/build-module/hooks/use-form-validity.js.map +2 -2
- package/build-module/utils/filter-sort-and-paginate.js +5 -0
- package/build-module/utils/filter-sort-and-paginate.js.map +2 -2
- package/build-module/utils/operators.js +394 -0
- package/build-module/utils/operators.js.map +7 -0
- package/build-style/style-rtl.css +13 -80
- package/build-style/style.css +13 -80
- package/build-types/components/dataviews-filters/filter.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/input-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/use-filters.d.ts.map +1 -1
- package/build-types/constants.d.ts +6 -12
- package/build-types/constants.d.ts.map +1 -1
- package/build-types/dataform-controls/number.d.ts.map +1 -1
- package/build-types/dataform-controls/textarea.d.ts.map +1 -1
- package/build-types/dataform-controls/utils/get-custom-validity.d.ts +2 -2
- package/build-types/dataform-controls/utils/get-custom-validity.d.ts.map +1 -1
- package/build-types/dataform-controls/utils/validated-input.d.ts.map +1 -1
- package/build-types/dataform-controls/utils/validated-number.d.ts.map +1 -1
- package/build-types/dataform-layouts/panel/modal.d.ts.map +1 -1
- package/build-types/dataviews-layouts/grid/composite-grid.d.ts.map +1 -1
- package/build-types/dataviews-layouts/table/index.d.ts.map +1 -1
- package/build-types/field-types/array.d.ts +9 -2
- package/build-types/field-types/array.d.ts.map +1 -1
- package/build-types/field-types/boolean.d.ts +9 -2
- package/build-types/field-types/boolean.d.ts.map +1 -1
- package/build-types/field-types/color.d.ts +9 -2
- package/build-types/field-types/color.d.ts.map +1 -1
- package/build-types/field-types/date.d.ts +6 -4
- package/build-types/field-types/date.d.ts.map +1 -1
- package/build-types/field-types/datetime.d.ts +6 -4
- package/build-types/field-types/datetime.d.ts.map +1 -1
- package/build-types/field-types/email.d.ts +15 -2
- package/build-types/field-types/email.d.ts.map +1 -1
- package/build-types/field-types/index.d.ts.map +1 -1
- package/build-types/field-types/integer.d.ts +17 -4
- package/build-types/field-types/integer.d.ts.map +1 -1
- package/build-types/field-types/media.d.ts +1 -4
- package/build-types/field-types/media.d.ts.map +1 -1
- package/build-types/field-types/no-type.d.ts +6 -4
- package/build-types/field-types/no-type.d.ts.map +1 -1
- package/build-types/field-types/number.d.ts +17 -4
- package/build-types/field-types/number.d.ts.map +1 -1
- package/build-types/field-types/password.d.ts +12 -4
- package/build-types/field-types/password.d.ts.map +1 -1
- package/build-types/field-types/telephone.d.ts +12 -4
- package/build-types/field-types/telephone.d.ts.map +1 -1
- package/build-types/field-types/text.d.ts +12 -4
- package/build-types/field-types/text.d.ts.map +1 -1
- package/build-types/field-types/url.d.ts +12 -4
- package/build-types/field-types/url.d.ts.map +1 -1
- package/build-types/field-types/utils/get-is-valid.d.ts +7 -0
- package/build-types/field-types/utils/get-is-valid.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-elements.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-elements.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-max-length.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-max-length.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-max.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-max.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-min-length.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-min-length.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-min.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-min.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-pattern.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-pattern.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-required-for-array.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-required-for-array.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-required-for-bool.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-required-for-bool.d.ts.map +1 -0
- package/build-types/field-types/utils/is-valid-required.d.ts +6 -0
- package/build-types/field-types/utils/is-valid-required.d.ts.map +1 -0
- package/build-types/hooks/use-form-validity.d.ts.map +1 -1
- package/build-types/stories/dataform.story.d.ts +9 -1
- package/build-types/stories/dataform.story.d.ts.map +1 -1
- package/build-types/stories/dataviews-picker.story.d.ts.map +1 -1
- package/build-types/stories/dataviews.story.d.ts +27 -2
- package/build-types/stories/dataviews.story.d.ts.map +1 -1
- package/build-types/stories/field-types.story.d.ts +39 -2
- package/build-types/stories/field-types.story.d.ts.map +1 -1
- package/build-types/types/field-api.d.ts +72 -4
- package/build-types/types/field-api.d.ts.map +1 -1
- package/build-types/types/private.d.ts +13 -3
- package/build-types/types/private.d.ts.map +1 -1
- package/build-types/utils/filter-sort-and-paginate.d.ts.map +1 -1
- package/build-types/utils/operators.d.ts +16 -0
- package/build-types/utils/operators.d.ts.map +1 -0
- package/build-wp/index.js +1548 -1452
- package/package.json +17 -16
- package/src/components/dataviews/style.scss +3 -28
- package/src/components/dataviews-filters/filter.tsx +34 -321
- package/src/components/dataviews-filters/input-widget.tsx +7 -5
- package/src/components/dataviews-filters/use-filters.ts +6 -3
- package/src/components/dataviews-footer/style.scss +1 -7
- package/src/constants.ts +6 -140
- package/src/dataform-controls/number.tsx +3 -3
- package/src/dataform-controls/textarea.tsx +7 -1
- package/src/dataform-controls/utils/get-custom-validity.ts +10 -2
- package/src/dataform-controls/utils/validated-input.tsx +8 -2
- package/src/dataform-controls/utils/validated-number.tsx +3 -1
- package/src/dataform-layouts/panel/modal.tsx +14 -5
- package/src/dataviews-layouts/activity/style.scss +1 -1
- package/src/dataviews-layouts/grid/composite-grid.tsx +64 -57
- package/src/dataviews-layouts/grid/style.scss +3 -12
- package/src/dataviews-layouts/table/index.tsx +9 -3
- package/src/dataviews-layouts/table/style.scss +4 -15
- package/src/dataviews-layouts/utils/grid-items.scss +1 -9
- package/src/field-types/array.tsx +26 -19
- package/src/field-types/boolean.tsx +22 -15
- package/src/field-types/color.tsx +22 -15
- package/src/field-types/date.tsx +14 -11
- package/src/field-types/datetime.tsx +6 -4
- package/src/field-types/email.tsx +24 -15
- package/src/field-types/index.tsx +12 -14
- package/src/field-types/integer.tsx +83 -17
- package/src/field-types/media.tsx +4 -4
- package/src/field-types/no-type.tsx +9 -6
- package/src/field-types/number.tsx +82 -16
- package/src/field-types/password.tsx +12 -4
- package/src/field-types/telephone.tsx +12 -4
- package/src/field-types/text.tsx +12 -4
- package/src/field-types/url.tsx +12 -4
- package/src/field-types/utils/get-is-valid.ts +103 -0
- package/src/field-types/utils/is-valid-elements.ts +20 -0
- package/src/field-types/utils/is-valid-max-length.ts +23 -0
- package/src/field-types/utils/is-valid-max.ts +23 -0
- package/src/field-types/utils/is-valid-min-length.ts +23 -0
- package/src/field-types/utils/is-valid-min.ts +23 -0
- package/src/field-types/utils/is-valid-pattern.ts +29 -0
- package/src/field-types/utils/is-valid-required-for-array.ts +18 -0
- package/src/field-types/utils/is-valid-required-for-bool.ts +13 -0
- package/src/field-types/utils/is-valid-required.ts +13 -0
- package/src/hooks/use-form-validity.ts +78 -156
- package/src/stories/dataform.story.tsx +126 -30
- package/src/stories/dataviews-picker.story.tsx +27 -17
- package/src/stories/dataviews.story.tsx +79 -30
- package/src/stories/field-types.story.tsx +86 -4
- package/src/test/filter-sort-and-paginate.js +2 -1
- package/src/test/normalize-fields.ts +87 -11
- package/src/test/use-form-validity.ts +796 -31
- package/src/types/field-api.ts +90 -4
- package/src/types/private.ts +26 -8
- package/src/utils/filter-sort-and-paginate.ts +5 -0
- package/src/utils/operators.tsx +448 -0
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { SortDirection } from '../types';
|
|
5
5
|
import render from './utils/render-default';
|
|
6
|
+
import isValidRequired from './utils/is-valid-required';
|
|
7
|
+
import isValidElements from './utils/is-valid-elements';
|
|
6
8
|
declare const _default: {
|
|
7
9
|
render: typeof render;
|
|
8
10
|
Edit: null;
|
|
9
11
|
sort: (a: any, b: any, direction: SortDirection) => any;
|
|
10
|
-
isValid: {
|
|
11
|
-
elements: true;
|
|
12
|
-
custom: () => null;
|
|
13
|
-
};
|
|
14
12
|
enableSorting: true;
|
|
15
13
|
enableGlobalSearch: false;
|
|
16
14
|
defaultOperators: ("is" | "isNot")[];
|
|
17
15
|
validOperators: import("../types").Operator[];
|
|
18
16
|
getFormat: () => {};
|
|
17
|
+
validate: {
|
|
18
|
+
required: typeof isValidRequired;
|
|
19
|
+
elements: typeof isValidElements;
|
|
20
|
+
};
|
|
19
21
|
};
|
|
20
22
|
export default _default;
|
|
21
23
|
//# sourceMappingURL=no-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-type.d.ts","sourceRoot":"","sources":["../../src/field-types/no-type.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"no-type.d.ts","sourceRoot":"","sources":["../../src/field-types/no-type.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAG5C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,eAAe,MAAM,2BAA2B,CAAC;;;;cAEtC,GAAG,KAAK,GAAG,aAAa,aAAa;;;;;;;;;;;AAQvD,wBAc6B"}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { DataViewRenderFieldProps,
|
|
5
|
-
|
|
4
|
+
import type { DataViewRenderFieldProps, Field, FormatNumber, NormalizedField } from '../types';
|
|
5
|
+
import isValidRequired from './utils/is-valid-required';
|
|
6
|
+
import isValidMin from './utils/is-valid-min';
|
|
7
|
+
import isValidMax from './utils/is-valid-max';
|
|
8
|
+
import isValidElements from './utils/is-valid-elements';
|
|
9
|
+
declare function getFormat<Item>(field: Field<Item>): Required<FormatNumber>;
|
|
10
|
+
export declare function formatNumber(value: number, format: Required<FormatNumber>): string;
|
|
11
|
+
declare function render({ item, field }: DataViewRenderFieldProps<any>): string | import("react").JSX.Element;
|
|
12
|
+
declare function isValidCustom<Item>(item: Item, field: NormalizedField<Item>): import("@wordpress/i18n").TranslatableText<"Value must be a number."> | null;
|
|
6
13
|
declare const _default: {
|
|
7
14
|
type: "number";
|
|
8
15
|
render: typeof render;
|
|
9
16
|
Edit: string;
|
|
10
17
|
sort: (a: any, b: any, direction: import("../types").SortDirection) => number;
|
|
11
|
-
isValid: Rules<any>;
|
|
12
18
|
enableSorting: true;
|
|
13
19
|
enableGlobalSearch: false;
|
|
14
20
|
defaultOperators: ("is" | "isNot" | "lessThan" | "greaterThan" | "lessThanOrEqual" | "greaterThanOrEqual" | "between")[];
|
|
15
21
|
validOperators: ("is" | "isNot" | "isAny" | "isNone" | "isAll" | "isNotAll" | "lessThan" | "greaterThan" | "lessThanOrEqual" | "greaterThanOrEqual" | "between")[];
|
|
16
|
-
getFormat:
|
|
22
|
+
getFormat: typeof getFormat;
|
|
23
|
+
validate: {
|
|
24
|
+
required: typeof isValidRequired;
|
|
25
|
+
min: typeof isValidMin;
|
|
26
|
+
max: typeof isValidMax;
|
|
27
|
+
elements: typeof isValidElements;
|
|
28
|
+
custom: typeof isValidCustom;
|
|
29
|
+
};
|
|
17
30
|
};
|
|
18
31
|
export default _default;
|
|
19
32
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/field-types/number.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/field-types/number.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EACX,wBAAwB,EACxB,KAAK,EACL,YAAY,EACZ,eAAe,EACf,MAAM,UAAU,CAAC;AAiBlB,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,iBAAS,SAAS,CAAE,IAAI,EAAI,KAAK,EAAE,KAAK,CAAE,IAAI,CAAE,GAAI,QAAQ,CAAE,YAAY,CAAE,CAsB3E;AAED,wBAAgB,YAAY,CAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,QAAQ,CAAE,YAAY,CAAE,GAC9B,MAAM,CAaR;AAMD,iBAAS,MAAM,CAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,wBAAwB,CAAE,GAAG,CAAE,wCAuBhE;AAED,iBAAS,aAAa,CAAE,IAAI,EAAI,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,gFAQzE;;;;;;;;;;;;;;;;;;;AAED,wBAuC6B"}
|
|
@@ -2,21 +2,29 @@
|
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { DataViewRenderFieldProps } from '../types';
|
|
5
|
+
import isValidRequired from './utils/is-valid-required';
|
|
6
|
+
import isValidMinLength from './utils/is-valid-min-length';
|
|
7
|
+
import isValidMaxLength from './utils/is-valid-max-length';
|
|
8
|
+
import isValidPattern from './utils/is-valid-pattern';
|
|
9
|
+
import isValidElements from './utils/is-valid-elements';
|
|
5
10
|
declare function render({ item, field }: DataViewRenderFieldProps<any>): import("react").JSX.Element | "••••••••";
|
|
6
11
|
declare const _default: {
|
|
7
12
|
type: "password";
|
|
8
13
|
render: typeof render;
|
|
9
14
|
Edit: string;
|
|
10
15
|
sort: () => number;
|
|
11
|
-
isValid: {
|
|
12
|
-
elements: true;
|
|
13
|
-
custom: () => null;
|
|
14
|
-
};
|
|
15
16
|
enableSorting: false;
|
|
16
17
|
enableGlobalSearch: false;
|
|
17
18
|
defaultOperators: never[];
|
|
18
19
|
validOperators: never[];
|
|
19
20
|
getFormat: () => {};
|
|
21
|
+
validate: {
|
|
22
|
+
required: typeof isValidRequired;
|
|
23
|
+
pattern: typeof isValidPattern;
|
|
24
|
+
minLength: typeof isValidMinLength;
|
|
25
|
+
maxLength: typeof isValidMaxLength;
|
|
26
|
+
elements: typeof isValidElements;
|
|
27
|
+
};
|
|
20
28
|
};
|
|
21
29
|
export default _default;
|
|
22
30
|
//# sourceMappingURL=password.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../src/field-types/password.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../src/field-types/password.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGzD,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,iBAAS,MAAM,CAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,wBAAwB,CAAE,GAAG,CAAE,4CAMhE;;;;;;;;;;;;;;;;;;;AAED,wBAiB6B"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import render from './utils/render-default';
|
|
2
|
+
import isValidRequired from './utils/is-valid-required';
|
|
3
|
+
import isValidMinLength from './utils/is-valid-min-length';
|
|
4
|
+
import isValidMaxLength from './utils/is-valid-max-length';
|
|
5
|
+
import isValidPattern from './utils/is-valid-pattern';
|
|
6
|
+
import isValidElements from './utils/is-valid-elements';
|
|
2
7
|
declare const _default: {
|
|
3
8
|
type: "telephone";
|
|
4
9
|
render: typeof render;
|
|
5
10
|
Edit: string;
|
|
6
11
|
sort: (a: any, b: any, direction: import("..").SortDirection) => any;
|
|
7
|
-
isValid: {
|
|
8
|
-
elements: true;
|
|
9
|
-
custom: () => null;
|
|
10
|
-
};
|
|
11
12
|
enableSorting: true;
|
|
12
13
|
enableGlobalSearch: false;
|
|
13
14
|
defaultOperators: ("isAny" | "isNone")[];
|
|
14
15
|
validOperators: ("is" | "startsWith" | "isNot" | "isAny" | "isNone" | "isAll" | "isNotAll" | "contains" | "notContains")[];
|
|
15
16
|
getFormat: () => {};
|
|
17
|
+
validate: {
|
|
18
|
+
required: typeof isValidRequired;
|
|
19
|
+
pattern: typeof isValidPattern;
|
|
20
|
+
minLength: typeof isValidMinLength;
|
|
21
|
+
maxLength: typeof isValidMaxLength;
|
|
22
|
+
elements: typeof isValidElements;
|
|
23
|
+
};
|
|
16
24
|
};
|
|
17
25
|
export default _default;
|
|
18
26
|
//# sourceMappingURL=telephone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telephone.d.ts","sourceRoot":"","sources":["../../src/field-types/telephone.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"telephone.d.ts","sourceRoot":"","sources":["../../src/field-types/telephone.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,eAAe,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;AAExD,wBA4B6B"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import render from './utils/render-default';
|
|
2
|
+
import isValidRequired from './utils/is-valid-required';
|
|
3
|
+
import isValidMinLength from './utils/is-valid-min-length';
|
|
4
|
+
import isValidMaxLength from './utils/is-valid-max-length';
|
|
5
|
+
import isValidPattern from './utils/is-valid-pattern';
|
|
6
|
+
import isValidElements from './utils/is-valid-elements';
|
|
2
7
|
declare const _default: {
|
|
3
8
|
type: "text";
|
|
4
9
|
render: typeof render;
|
|
5
10
|
Edit: string;
|
|
6
11
|
sort: (a: any, b: any, direction: import("..").SortDirection) => any;
|
|
7
|
-
isValid: {
|
|
8
|
-
elements: true;
|
|
9
|
-
custom: () => null;
|
|
10
|
-
};
|
|
11
12
|
enableSorting: true;
|
|
12
13
|
enableGlobalSearch: false;
|
|
13
14
|
defaultOperators: ("isAny" | "isNone")[];
|
|
14
15
|
validOperators: ("is" | "startsWith" | "isNot" | "isAny" | "isNone" | "isAll" | "isNotAll" | "contains" | "notContains")[];
|
|
15
16
|
getFormat: () => {};
|
|
17
|
+
validate: {
|
|
18
|
+
required: typeof isValidRequired;
|
|
19
|
+
pattern: typeof isValidPattern;
|
|
20
|
+
minLength: typeof isValidMinLength;
|
|
21
|
+
maxLength: typeof isValidMaxLength;
|
|
22
|
+
elements: typeof isValidElements;
|
|
23
|
+
};
|
|
16
24
|
};
|
|
17
25
|
export default _default;
|
|
18
26
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/field-types/text.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/field-types/text.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,eAAe,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;AAExD,wBA6B6B"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import render from './utils/render-default';
|
|
2
|
+
import isValidRequired from './utils/is-valid-required';
|
|
3
|
+
import isValidMinLength from './utils/is-valid-min-length';
|
|
4
|
+
import isValidMaxLength from './utils/is-valid-max-length';
|
|
5
|
+
import isValidPattern from './utils/is-valid-pattern';
|
|
6
|
+
import isValidElements from './utils/is-valid-elements';
|
|
2
7
|
declare const _default: {
|
|
3
8
|
type: "url";
|
|
4
9
|
render: typeof render;
|
|
5
10
|
Edit: string;
|
|
6
11
|
sort: (a: any, b: any, direction: import("..").SortDirection) => any;
|
|
7
|
-
isValid: {
|
|
8
|
-
elements: true;
|
|
9
|
-
custom: () => null;
|
|
10
|
-
};
|
|
11
12
|
enableSorting: true;
|
|
12
13
|
enableGlobalSearch: false;
|
|
13
14
|
defaultOperators: ("isAny" | "isNone")[];
|
|
14
15
|
validOperators: ("is" | "startsWith" | "isNot" | "isAny" | "isNone" | "isAll" | "isNotAll" | "contains" | "notContains")[];
|
|
15
16
|
getFormat: () => {};
|
|
17
|
+
validate: {
|
|
18
|
+
required: typeof isValidRequired;
|
|
19
|
+
pattern: typeof isValidPattern;
|
|
20
|
+
minLength: typeof isValidMinLength;
|
|
21
|
+
maxLength: typeof isValidMaxLength;
|
|
22
|
+
elements: typeof isValidElements;
|
|
23
|
+
};
|
|
16
24
|
};
|
|
17
25
|
export default _default;
|
|
18
26
|
//# sourceMappingURL=url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/field-types/url.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/field-types/url.tsx"],"names":[],"mappings":"AAeA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,eAAe,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;AAExD,wBA4B6B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Field, NormalizedRules } from '../../types';
|
|
5
|
+
import type { FieldType } from '../../types/private';
|
|
6
|
+
export default function getIsValid<Item>(field: Field<Item>, fieldType: FieldType<Item>): NormalizedRules<Item>;
|
|
7
|
+
//# sourceMappingURL=get-is-valid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-is-valid.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/get-is-valid.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EACvC,KAAK,EAAE,KAAK,CAAE,IAAI,CAAE,EACpB,SAAS,EAAE,SAAS,CAAE,IAAI,CAAE,GAC1B,eAAe,CAAE,IAAI,CAAE,CA6FzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-elements.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-elements.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAC5C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAWT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-max-length.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-max-length.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,IAAI,EAC7C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAcT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-max.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-max.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EACvC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAcT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-min-length.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-min-length.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,IAAI,EAC7C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAcT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-min.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-min.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EACvC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAcT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-pattern.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-pattern.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,IAAI,EAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,GAC5B,OAAO,CAoBT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-required-for-array.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-required-for-array.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,IAAI,EACpD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,WAU9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-required-for-bool.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-required-for-bool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAE,IAAI,EACnD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,WAK9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-valid-required.d.ts","sourceRoot":"","sources":["../../../src/field-types/utils/is-valid-required.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAC5C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,eAAe,CAAE,IAAI,CAAE,WAK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-validity.d.ts","sourceRoot":"","sources":["../../src/hooks/use-form-validity.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACX,KAAK,EAEL,IAAI,EACJ,YAAY,EAGZ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"use-form-validity.d.ts","sourceRoot":"","sources":["../../src/hooks/use-form-validity.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACX,KAAK,EAEL,IAAI,EACJ,YAAY,EAGZ,MAAM,UAAU,CAAC;AA0iBlB;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAE,IAAI,EACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE,EAAE,EACvB,IAAI,EAAE,IAAI,GACR;IAAE,QAAQ,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAqF9C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -92,11 +92,12 @@ export declare const LayoutMixed: {
|
|
|
92
92
|
render: () => import("react").JSX.Element;
|
|
93
93
|
};
|
|
94
94
|
export declare const Validation: {
|
|
95
|
-
render: ({ required, elements, custom, pattern, }: {
|
|
95
|
+
render: ({ required, elements, custom, pattern, minMax, }: {
|
|
96
96
|
required: boolean;
|
|
97
97
|
elements: "sync" | "async" | "none";
|
|
98
98
|
custom: "sync" | "async" | "none";
|
|
99
99
|
pattern: boolean;
|
|
100
|
+
minMax: boolean;
|
|
100
101
|
}) => import("react").JSX.Element;
|
|
101
102
|
argTypes: {
|
|
102
103
|
required: {
|
|
@@ -125,12 +126,19 @@ export declare const Validation: {
|
|
|
125
126
|
};
|
|
126
127
|
description: string;
|
|
127
128
|
};
|
|
129
|
+
minMax: {
|
|
130
|
+
control: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
128
135
|
};
|
|
129
136
|
args: {
|
|
130
137
|
required: boolean;
|
|
131
138
|
elements: string;
|
|
132
139
|
custom: string;
|
|
133
140
|
pattern: boolean;
|
|
141
|
+
minMax: boolean;
|
|
134
142
|
};
|
|
135
143
|
};
|
|
136
144
|
export declare const Visibility: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataform.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataform.story.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,OAAO,QAAQ,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dataform.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataform.story.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAkjE9C,QAAA,MAAM,IAAI;;;CAGT,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,UAAU;6CAhqBpB;QACF,UAAU,EAAE,OAAO,CAAC;QACpB,aAAa,EAAE,OAAO,CAAC;KACvB;;;;;;;;;;;;;;;;;;;CA6qBA,CAAC;AAEF,eAAO,MAAM,WAAW;yCA7sDrB;QACF,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;QAC/C,aAAa,EAAE,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;QACnD,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;KACzC;;;;;;;;;;;;;;;;;CAutDA,CAAC;AAEF,eAAO,MAAM,aAAa;iCA70DvB;QACF,aAAa,EAAE,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;KACnD;;;;;;;;;;CAo1DA,CAAC;AAEF,eAAO,MAAM,SAAS;6BA5enB;QACF,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;KACtC;;;;;;;;;;;;;CAsfA,CAAC;AAEF,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAEF,eAAO,MAAM,WAAW;;CAEvB,CAAC;AAEF,eAAO,MAAM,UAAU;+DAhmDpB;QACF,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;QACpC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;QAClC,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+nDA,CAAC;AAEF,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAkOF,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataviews-picker.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataviews-picker.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAY7C;;GAEG;AACH,OAAO,eAAe,MAAM,sCAAsC,CAAC;AAMnE,QAAA,MAAM,IAAI,EAGL,IAAI,CAAE,OAAO,eAAe,CAAE,CAAC;AAEpC,eAAe,IAAI,CAAC;AA2JpB,eAAO,MAAM,OAAO;6EAKjB;QACF,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,SAAS,EAAE,OAAO,CAAC;QACnB,qBAAqB,EAAE,OAAO,CAAC;KAC/B;;;;;;;;;;;;;;;;;;;;;;;;;CAOA,CAAC;AAKF,eAAO,MAAM,SAAS;6EAKnB;QACF,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,SAAS,EAAE,OAAO,CAAC;QACnB,qBAAqB,EAAE,OAAO,CAAC;KAC/B;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"dataviews-picker.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataviews-picker.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAY7C;;GAEG;AACH,OAAO,eAAe,MAAM,sCAAsC,CAAC;AAMnE,QAAA,MAAM,IAAI,EAGL,IAAI,CAAE,OAAO,eAAe,CAAE,CAAC;AAEpC,eAAe,IAAI,CAAC;AA2JpB,eAAO,MAAM,OAAO;6EAKjB;QACF,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,SAAS,EAAE,OAAO,CAAC;QACnB,qBAAqB,EAAE,OAAO,CAAC;KAC/B;;;;;;;;;;;;;;;;;;;;;;;;;CAOA,CAAC;AAKF,eAAO,MAAM,SAAS;6EAKnB;QACF,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,SAAS,EAAE,OAAO,CAAC;QACnB,qBAAqB,EAAE,OAAO,CAAC;KAC/B;;;;;;;;;;;;;;;;;;;;;;;;;CAiFA,CAAC"}
|
|
@@ -34,8 +34,33 @@ export declare const Default: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export declare const Empty:
|
|
38
|
-
|
|
37
|
+
export declare const Empty: {
|
|
38
|
+
render: ({ customEmpty, containerHeight, isLoading, }: {
|
|
39
|
+
customEmpty?: boolean;
|
|
40
|
+
containerHeight?: "auto" | "50vh" | "100vh";
|
|
41
|
+
isLoading?: boolean;
|
|
42
|
+
}) => import("react").JSX.Element;
|
|
43
|
+
args: {
|
|
44
|
+
customEmpty: boolean;
|
|
45
|
+
containerHeight: string;
|
|
46
|
+
isLoading: boolean;
|
|
47
|
+
};
|
|
48
|
+
argTypes: {
|
|
49
|
+
customEmpty: {
|
|
50
|
+
control: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
containerHeight: {
|
|
54
|
+
control: string;
|
|
55
|
+
options: string[];
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
isLoading: {
|
|
59
|
+
control: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
39
64
|
export declare const MinimalUI: {
|
|
40
65
|
render: ({ layout, }: {
|
|
41
66
|
layout: "table" | "list" | "grid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataviews.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataviews.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAyB7C;;GAEG;AACH,OAAO,SAAS,MAAM,+BAA+B,CAAC;AAoBtD,OAAO,uBAAuB,CAAC;AAE/B,QAAA,MAAM,IAAI,EAiBL,IAAI,CAAE,OAAO,SAAS,CAAE,CAAC;AAE9B,eAAe,IAAI,CAAC;AASpB,eAAO,MAAM,OAAO;4DAIjB;QACF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;KACzB;;;;;;;;;;;;;;;;;;;CAoDA,CAAC;
|
|
1
|
+
{"version":3,"file":"dataviews.story.d.ts","sourceRoot":"","sources":["../../src/stories/dataviews.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAyB7C;;GAEG;AACH,OAAO,SAAS,MAAM,+BAA+B,CAAC;AAoBtD,OAAO,uBAAuB,CAAC;AAE/B,QAAA,MAAM,IAAI,EAiBL,IAAI,CAAE,OAAO,SAAS,CAAE,CAAC;AAE9B,eAAe,IAAI,CAAC;AASpB,eAAO,MAAM,OAAO;4DAIjB;QACF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;KACzB;;;;;;;;;;;;;;;;;;;CAoDA,CAAC;AAwFF,eAAO,MAAM,KAAK;2DAlCf;QACF,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;KACpB;;;;;;;;;;;;;;;;;;;;;CAoDA,CAAC;AA+CF,eAAO,MAAM,SAAS;0BA3CnB;QACF,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;KAClC;;;;;;;;CAkDA,CAAC;AA8EF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,mCAiD3B,CAAC;AAEF,eAAO,MAAM,QAAQ,mCA8BpB,CAAC;AAEF,eAAO,MAAM,aAAa,mCA+BzB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAwH1B,CAAC;AAoEF,eAAO,MAAM,QAAQ;uCA/DlB;QACF,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC;KAClB;;;;;;;;;;;;;;;;;;;CAiFA,CAAC"}
|
|
@@ -51,20 +51,57 @@ export declare const TextComponent: {
|
|
|
51
51
|
storyName: string;
|
|
52
52
|
};
|
|
53
53
|
export declare const IntegerComponent: {
|
|
54
|
-
({ type, Edit, asyncElements, }: {
|
|
54
|
+
({ type, Edit, asyncElements, formatSeparatorThousand, }: {
|
|
55
55
|
type: PanelTypes;
|
|
56
56
|
Edit: ControlTypes;
|
|
57
57
|
asyncElements: boolean;
|
|
58
|
+
formatSeparatorThousand?: string;
|
|
58
59
|
}): import("react").JSX.Element;
|
|
59
60
|
storyName: string;
|
|
61
|
+
args: {
|
|
62
|
+
formatSeparatorThousand: string;
|
|
63
|
+
};
|
|
64
|
+
argTypes: {
|
|
65
|
+
formatSeparatorThousand: {
|
|
66
|
+
control: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
60
70
|
};
|
|
61
71
|
export declare const NumberComponent: {
|
|
62
|
-
({ type, Edit, asyncElements, }: {
|
|
72
|
+
({ type, Edit, asyncElements, formatSeparatorThousand, formatSeparatorDecimal, formatDecimals, }: {
|
|
63
73
|
type: PanelTypes;
|
|
64
74
|
Edit: ControlTypes;
|
|
65
75
|
asyncElements: boolean;
|
|
76
|
+
formatSeparatorThousand?: string;
|
|
77
|
+
formatSeparatorDecimal?: string;
|
|
78
|
+
formatDecimals?: number;
|
|
66
79
|
}): import("react").JSX.Element;
|
|
67
80
|
storyName: string;
|
|
81
|
+
args: {
|
|
82
|
+
formatSeparatorThousand: string;
|
|
83
|
+
formatSeparatorDecimal: string;
|
|
84
|
+
formatDecimals: number;
|
|
85
|
+
};
|
|
86
|
+
argTypes: {
|
|
87
|
+
formatSeparatorThousand: {
|
|
88
|
+
control: string;
|
|
89
|
+
description: string;
|
|
90
|
+
};
|
|
91
|
+
formatSeparatorDecimal: {
|
|
92
|
+
control: string;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
formatDecimals: {
|
|
96
|
+
control: {
|
|
97
|
+
type: string;
|
|
98
|
+
min: number;
|
|
99
|
+
max: number;
|
|
100
|
+
step: number;
|
|
101
|
+
};
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
68
105
|
};
|
|
69
106
|
export declare const BooleanComponent: {
|
|
70
107
|
({ type, Edit, asyncElements, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-types.story.d.ts","sourceRoot":"","sources":["../../src/stories/field-types.story.tsx"],"names":[],"mappings":"AAiBA,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AAIpD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CT,CAAC;AACF,eAAe,IAAI,CAAC;AA2cpB,KAAK,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AACtC,KAAK,YAAY,GACd,SAAS,GACT,OAAO,GACP,UAAU,GACV,OAAO,GACP,MAAM,GACN,UAAU,GACV,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,OAAO,GACP,QAAQ,GACR,WAAW,GACX,KAAK,GACL,MAAM,GACN,QAAQ,GACR,aAAa,CAAC;AA6IjB,eAAO,MAAM,YAAY;qCAItB;QACF,IAAI,EAAE,UAAU,CAAC;QACjB,IAAI,EAAE,YAAY,CAAC;QACnB,aAAa,EAAE,OAAO,CAAC;KACvB;;CASA,CAAC;AAGF,eAAO,MAAM,aAAa;qCAIvB;QACF,IAAI,EAAE,UAAU,CAAC;QACjB,IAAI,EAAE,YAAY,CAAC;QACnB,aAAa,EAAE,OAAO,CAAC;KACvB;;CAcA,CAAC;AAGF,eAAO,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"field-types.story.d.ts","sourceRoot":"","sources":["../../src/stories/field-types.story.tsx"],"names":[],"mappings":"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"}
|