@wordpress/fields 0.19.0 → 0.19.1-next.46f643fa0.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/build/fields/featured-image/featured-image-view.js +5 -2
- package/build/fields/featured-image/featured-image-view.js.map +1 -1
- package/build/fields/order/index.js +4 -1
- package/build/fields/order/index.js.map +1 -1
- package/build/fields/password/index.js +2 -0
- package/build/fields/password/index.js.map +1 -1
- package/build-module/fields/featured-image/featured-image-view.js +5 -2
- package/build-module/fields/featured-image/featured-image-view.js.map +1 -1
- package/build-module/fields/order/index.js +4 -1
- package/build-module/fields/order/index.js.map +1 -1
- package/build-module/fields/password/index.js +3 -0
- package/build-module/fields/password/index.js.map +1 -1
- package/build-style/style-rtl.css +20 -3
- package/build-style/style.css +20 -3
- package/build-types/fields/featured-image/featured-image-view.d.ts +1 -1
- package/build-types/fields/featured-image/featured-image-view.d.ts.map +1 -1
- package/build-types/fields/order/index.d.ts.map +1 -1
- package/build-types/fields/password/index.d.ts.map +1 -1
- package/build-types/fields/status/status-elements.d.ts +11 -11
- package/package.json +25 -25
- package/src/fields/featured-image/featured-image-view.tsx +12 -0
- package/src/fields/featured-image/style.scss +18 -2
- package/src/fields/order/index.ts +3 -0
- package/src/fields/password/index.tsx +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -16,7 +16,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
const FeaturedImageView = ({
|
|
19
|
-
item
|
|
19
|
+
item,
|
|
20
|
+
config
|
|
20
21
|
}) => {
|
|
21
22
|
const mediaId = item.featured_media;
|
|
22
23
|
const media = (0, _data.useSelect)(select => {
|
|
@@ -30,7 +31,9 @@ const FeaturedImageView = ({
|
|
|
30
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
31
32
|
className: "fields-controls__featured-image-image",
|
|
32
33
|
src: url,
|
|
33
|
-
alt: ""
|
|
34
|
+
alt: "",
|
|
35
|
+
srcSet: media?.media_details?.sizes ? Object.values(media.media_details.sizes).map(size => `${size.source_url} ${size.width}w`).join(', ') : undefined,
|
|
36
|
+
sizes: config?.sizes || '100vw'
|
|
34
37
|
});
|
|
35
38
|
}
|
|
36
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_data","require","_coreData","_jsxRuntime","FeaturedImageView","item","mediaId","featured_media","media","useSelect","select","getEntityRecord","coreStore","url","source_url","jsx","className","src","alt","exports"],"sources":["@wordpress/fields/src/fields/featured-image/featured-image-view.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataViewRenderFieldProps } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nexport const FeaturedImageView = ( {\n\titem,\n}: DataViewRenderFieldProps< BasePost > ) => {\n\tconst mediaId = item.featured_media;\n\n\tconst media = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord } = select( coreStore );\n\t\t\treturn mediaId ? getEntityRecord( 'root', 'media', mediaId ) : null;\n\t\t},\n\t\t[ mediaId ]\n\t);\n\tconst url = media?.source_url;\n\n\tif ( url ) {\n\t\treturn (\n\t\t\t<img\n\t\t\t\tclassName=\"fields-controls__featured-image-image\"\n\t\t\t\tsrc={ url }\n\t\t\t\talt=\"\"\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <span className=\"fields-controls__featured-image-placeholder\" />;\n};\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAA0D,IAAAE,WAAA,GAAAF,OAAA;AAJ1D;AACA;AACA;;AAKA;AACA;AACA;;AAGO,MAAMG,iBAAiB,GAAGA,CAAE;EAClCC;AACqC,CAAC,KAAM;EAC5C,MAAMC,OAAO,
|
|
1
|
+
{"version":3,"names":["_data","require","_coreData","_jsxRuntime","FeaturedImageView","item","config","mediaId","featured_media","media","useSelect","select","getEntityRecord","coreStore","url","source_url","jsx","className","src","alt","srcSet","media_details","sizes","Object","values","map","size","width","join","undefined","exports"],"sources":["@wordpress/fields/src/fields/featured-image/featured-image-view.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataViewRenderFieldProps } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nexport const FeaturedImageView = ( {\n\titem,\n\tconfig,\n}: DataViewRenderFieldProps< BasePost > ) => {\n\tconst mediaId = item.featured_media;\n\n\tconst media = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord } = select( coreStore );\n\t\t\treturn mediaId ? getEntityRecord( 'root', 'media', mediaId ) : null;\n\t\t},\n\t\t[ mediaId ]\n\t);\n\tconst url = media?.source_url;\n\n\tif ( url ) {\n\t\treturn (\n\t\t\t<img\n\t\t\t\tclassName=\"fields-controls__featured-image-image\"\n\t\t\t\tsrc={ url }\n\t\t\t\talt=\"\"\n\t\t\t\tsrcSet={\n\t\t\t\t\tmedia?.media_details?.sizes\n\t\t\t\t\t\t? Object.values( media.media_details.sizes )\n\t\t\t\t\t\t\t\t.map(\n\t\t\t\t\t\t\t\t\t( size: any ) =>\n\t\t\t\t\t\t\t\t\t\t`${ size.source_url } ${ size.width }w`\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.join( ', ' )\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\tsizes={ config?.sizes || '100vw' }\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <span className=\"fields-controls__featured-image-placeholder\" />;\n};\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAA0D,IAAAE,WAAA,GAAAF,OAAA;AAJ1D;AACA;AACA;;AAKA;AACA;AACA;;AAGO,MAAMG,iBAAiB,GAAGA,CAAE;EAClCC,IAAI;EACJC;AACqC,CAAC,KAAM;EAC5C,MAAMC,OAAO,GAAGF,IAAI,CAACG,cAAc;EAEnC,MAAMC,KAAK,GAAG,IAAAC,eAAS,EACpBC,MAAM,IAAM;IACb,MAAM;MAAEC;IAAgB,CAAC,GAAGD,MAAM,CAAEE,eAAU,CAAC;IAC/C,OAAON,OAAO,GAAGK,eAAe,CAAE,MAAM,EAAE,OAAO,EAAEL,OAAQ,CAAC,GAAG,IAAI;EACpE,CAAC,EACD,CAAEA,OAAO,CACV,CAAC;EACD,MAAMO,GAAG,GAAGL,KAAK,EAAEM,UAAU;EAE7B,IAAKD,GAAG,EAAG;IACV,oBACC,IAAAX,WAAA,CAAAa,GAAA;MACCC,SAAS,EAAC,uCAAuC;MACjDC,GAAG,EAAGJ,GAAK;MACXK,GAAG,EAAC,EAAE;MACNC,MAAM,EACLX,KAAK,EAAEY,aAAa,EAAEC,KAAK,GACxBC,MAAM,CAACC,MAAM,CAAEf,KAAK,CAACY,aAAa,CAACC,KAAM,CAAC,CACzCG,GAAG,CACDC,IAAS,IACV,GAAIA,IAAI,CAACX,UAAU,IAAMW,IAAI,CAACC,KAAK,GACrC,CAAC,CACAC,IAAI,CAAE,IAAK,CAAC,GACbC,SACH;MACDP,KAAK,EAAGhB,MAAM,EAAEgB,KAAK,IAAI;IAAS,CAClC,CAAC;EAEJ;EAEA,oBAAO,IAAAnB,WAAA,CAAAa,GAAA;IAAMC,SAAS,EAAC;EAA6C,CAAE,CAAC;AACxE,CAAC;AAACa,OAAA,CAAA1B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_i18n","require","orderField","id","type","label","__","description","filterBy","_default","exports","default"],"sources":["@wordpress/fields/src/fields/order/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst orderField: Field< BasePost > = {\n\tid: 'menu_order',\n\ttype: 'integer',\n\tlabel: __( 'Order' ),\n\tdescription: __( 'Determines the order of pages.' ),\n\tfilterBy: false,\n};\n\n/**\n * Order field for BasePost.\n */\nexport default orderField;\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;;AAGA,MAAMC,UAA6B,GAAG;EACrCC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,IAAAC,QAAE,EAAE,OAAQ,CAAC;EACpBC,WAAW,EAAE,IAAAD,QAAE,EAAE,gCAAiC,CAAC;EACnDE,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"names":["_i18n","require","orderField","id","type","label","__","description","filterBy","isValid","required","_default","exports","default"],"sources":["@wordpress/fields/src/fields/order/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst orderField: Field< BasePost > = {\n\tid: 'menu_order',\n\ttype: 'integer',\n\tlabel: __( 'Order' ),\n\tdescription: __( 'Determines the order of pages.' ),\n\tfilterBy: false,\n\tisValid: {\n\t\trequired: true,\n\t},\n};\n\n/**\n * Order field for BasePost.\n */\nexport default orderField;\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;;AAGA,MAAMC,UAA6B,GAAG;EACrCC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE,IAAAC,QAAE,EAAE,OAAQ,CAAC;EACpBC,WAAW,EAAE,IAAAD,QAAE,EAAE,gCAAiC,CAAC;EACnDE,QAAQ,EAAE,KAAK;EACfC,OAAO,EAAE;IACRC,QAAQ,EAAE;EACX;AACD,CAAC;;AAED;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGeX,UAAU","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _i18n = require("@wordpress/i18n");
|
|
8
9
|
var _edit = _interopRequireDefault(require("./edit"));
|
|
9
10
|
/**
|
|
10
11
|
* WordPress dependencies
|
|
@@ -17,6 +18,7 @@ var _edit = _interopRequireDefault(require("./edit"));
|
|
|
17
18
|
const passwordField = {
|
|
18
19
|
id: 'password',
|
|
19
20
|
type: 'text',
|
|
21
|
+
label: (0, _i18n.__)('Password'),
|
|
20
22
|
Edit: _edit.default,
|
|
21
23
|
enableSorting: false,
|
|
22
24
|
enableHiding: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_i18n","require","_edit","_interopRequireDefault","passwordField","id","type","label","__","Edit","PasswordEdit","enableSorting","enableHiding","isVisible","item","status","filterBy","_default","exports","default"],"sources":["@wordpress/fields/src/fields/password/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport PasswordEdit from './edit';\n\nconst passwordField: Field< BasePost > = {\n\tid: 'password',\n\ttype: 'text',\n\tlabel: __( 'Password' ),\n\tEdit: PasswordEdit,\n\tenableSorting: false,\n\tenableHiding: false,\n\tisVisible: ( item ) => item.status !== 'private',\n\tfilterBy: false,\n};\n\n/**\n * Password field for BasePost.\n */\nexport default passwordField;\n"],"mappings":";;;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAMA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AAVA;AACA;AACA;;AAIA;AACA;AACA;;AAIA,MAAMG,aAAgC,GAAG;EACxCC,EAAE,EAAE,UAAU;EACdC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAE,IAAAC,QAAE,EAAE,UAAW,CAAC;EACvBC,IAAI,EAAEC,aAAY;EAClBC,aAAa,EAAE,KAAK;EACpBC,YAAY,EAAE,KAAK;EACnBC,SAAS,EAAIC,IAAI,IAAMA,IAAI,CAACC,MAAM,KAAK,SAAS;EAChDC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGef,aAAa","ignoreList":[]}
|
|
@@ -9,7 +9,8 @@ import { store as coreStore } from '@wordpress/core-data';
|
|
|
9
9
|
*/
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export const FeaturedImageView = ({
|
|
12
|
-
item
|
|
12
|
+
item,
|
|
13
|
+
config
|
|
13
14
|
}) => {
|
|
14
15
|
const mediaId = item.featured_media;
|
|
15
16
|
const media = useSelect(select => {
|
|
@@ -23,7 +24,9 @@ export const FeaturedImageView = ({
|
|
|
23
24
|
return /*#__PURE__*/_jsx("img", {
|
|
24
25
|
className: "fields-controls__featured-image-image",
|
|
25
26
|
src: url,
|
|
26
|
-
alt: ""
|
|
27
|
+
alt: "",
|
|
28
|
+
srcSet: media?.media_details?.sizes ? Object.values(media.media_details.sizes).map(size => `${size.source_url} ${size.width}w`).join(', ') : undefined,
|
|
29
|
+
sizes: config?.sizes || '100vw'
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
32
|
return /*#__PURE__*/_jsx("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useSelect","store","coreStore","jsx","_jsx","FeaturedImageView","item","mediaId","featured_media","media","select","getEntityRecord","url","source_url","className","src","alt"],"sources":["@wordpress/fields/src/fields/featured-image/featured-image-view.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataViewRenderFieldProps } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nexport const FeaturedImageView = ( {\n\titem,\n}: DataViewRenderFieldProps< BasePost > ) => {\n\tconst mediaId = item.featured_media;\n\n\tconst media = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord } = select( coreStore );\n\t\t\treturn mediaId ? getEntityRecord( 'root', 'media', mediaId ) : null;\n\t\t},\n\t\t[ mediaId ]\n\t);\n\tconst url = media?.source_url;\n\n\tif ( url ) {\n\t\treturn (\n\t\t\t<img\n\t\t\t\tclassName=\"fields-controls__featured-image-image\"\n\t\t\t\tsrc={ url }\n\t\t\t\talt=\"\"\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <span className=\"fields-controls__featured-image-placeholder\" />;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;;AAGzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA,OAAO,MAAMC,iBAAiB,GAAGA,CAAE;EAClCC;AACqC,CAAC,KAAM;EAC5C,MAAMC,OAAO,
|
|
1
|
+
{"version":3,"names":["useSelect","store","coreStore","jsx","_jsx","FeaturedImageView","item","config","mediaId","featured_media","media","select","getEntityRecord","url","source_url","className","src","alt","srcSet","media_details","sizes","Object","values","map","size","width","join","undefined"],"sources":["@wordpress/fields/src/fields/featured-image/featured-image-view.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { DataViewRenderFieldProps } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nexport const FeaturedImageView = ( {\n\titem,\n\tconfig,\n}: DataViewRenderFieldProps< BasePost > ) => {\n\tconst mediaId = item.featured_media;\n\n\tconst media = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord } = select( coreStore );\n\t\t\treturn mediaId ? getEntityRecord( 'root', 'media', mediaId ) : null;\n\t\t},\n\t\t[ mediaId ]\n\t);\n\tconst url = media?.source_url;\n\n\tif ( url ) {\n\t\treturn (\n\t\t\t<img\n\t\t\t\tclassName=\"fields-controls__featured-image-image\"\n\t\t\t\tsrc={ url }\n\t\t\t\talt=\"\"\n\t\t\t\tsrcSet={\n\t\t\t\t\tmedia?.media_details?.sizes\n\t\t\t\t\t\t? Object.values( media.media_details.sizes )\n\t\t\t\t\t\t\t\t.map(\n\t\t\t\t\t\t\t\t\t( size: any ) =>\n\t\t\t\t\t\t\t\t\t\t`${ size.source_url } ${ size.width }w`\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.join( ', ' )\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\tsizes={ config?.sizes || '100vw' }\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <span className=\"fields-controls__featured-image-placeholder\" />;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;;AAGzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA,OAAO,MAAMC,iBAAiB,GAAGA,CAAE;EAClCC,IAAI;EACJC;AACqC,CAAC,KAAM;EAC5C,MAAMC,OAAO,GAAGF,IAAI,CAACG,cAAc;EAEnC,MAAMC,KAAK,GAAGV,SAAS,CACpBW,MAAM,IAAM;IACb,MAAM;MAAEC;IAAgB,CAAC,GAAGD,MAAM,CAAET,SAAU,CAAC;IAC/C,OAAOM,OAAO,GAAGI,eAAe,CAAE,MAAM,EAAE,OAAO,EAAEJ,OAAQ,CAAC,GAAG,IAAI;EACpE,CAAC,EACD,CAAEA,OAAO,CACV,CAAC;EACD,MAAMK,GAAG,GAAGH,KAAK,EAAEI,UAAU;EAE7B,IAAKD,GAAG,EAAG;IACV,oBACCT,IAAA;MACCW,SAAS,EAAC,uCAAuC;MACjDC,GAAG,EAAGH,GAAK;MACXI,GAAG,EAAC,EAAE;MACNC,MAAM,EACLR,KAAK,EAAES,aAAa,EAAEC,KAAK,GACxBC,MAAM,CAACC,MAAM,CAAEZ,KAAK,CAACS,aAAa,CAACC,KAAM,CAAC,CACzCG,GAAG,CACDC,IAAS,IACV,GAAIA,IAAI,CAACV,UAAU,IAAMU,IAAI,CAACC,KAAK,GACrC,CAAC,CACAC,IAAI,CAAE,IAAK,CAAC,GACbC,SACH;MACDP,KAAK,EAAGb,MAAM,EAAEa,KAAK,IAAI;IAAS,CAClC,CAAC;EAEJ;EAEA,oBAAOhB,IAAA;IAAMW,SAAS,EAAC;EAA6C,CAAE,CAAC;AACxE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","orderField","id","type","label","description","filterBy"],"sources":["@wordpress/fields/src/fields/order/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst orderField: Field< BasePost > = {\n\tid: 'menu_order',\n\ttype: 'integer',\n\tlabel: __( 'Order' ),\n\tdescription: __( 'Determines the order of pages.' ),\n\tfilterBy: false,\n};\n\n/**\n * Order field for BasePost.\n */\nexport default orderField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,UAA6B,GAAG;EACrCC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAEJ,EAAE,CAAE,OAAQ,CAAC;EACpBK,WAAW,EAAEL,EAAE,CAAE,gCAAiC,CAAC;EACnDM,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"names":["__","orderField","id","type","label","description","filterBy","isValid","required"],"sources":["@wordpress/fields/src/fields/order/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\n\nconst orderField: Field< BasePost > = {\n\tid: 'menu_order',\n\ttype: 'integer',\n\tlabel: __( 'Order' ),\n\tdescription: __( 'Determines the order of pages.' ),\n\tfilterBy: false,\n\tisValid: {\n\t\trequired: true,\n\t},\n};\n\n/**\n * Order field for BasePost.\n */\nexport default orderField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,UAA6B,GAAG;EACrCC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAEJ,EAAE,CAAE,OAAQ,CAAC;EACpBK,WAAW,EAAEL,EAAE,CAAE,gCAAiC,CAAC;EACnDM,QAAQ,EAAE,KAAK;EACfC,OAAO,EAAE;IACRC,QAAQ,EAAE;EACX;AACD,CAAC;;AAED;AACA;AACA;AACA,eAAeP,UAAU","ignoreList":[]}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { __ } from '@wordpress/i18n';
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Internal dependencies
|
|
7
9
|
*/
|
|
@@ -10,6 +12,7 @@ import PasswordEdit from './edit';
|
|
|
10
12
|
const passwordField = {
|
|
11
13
|
id: 'password',
|
|
12
14
|
type: 'text',
|
|
15
|
+
label: __('Password'),
|
|
13
16
|
Edit: PasswordEdit,
|
|
14
17
|
enableSorting: false,
|
|
15
18
|
enableHiding: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PasswordEdit","passwordField","id","type","Edit","enableSorting","enableHiding","isVisible","item","status","filterBy"],"sources":["@wordpress/fields/src/fields/password/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport PasswordEdit from './edit';\n\nconst passwordField: Field< BasePost > = {\n\tid: 'password',\n\ttype: 'text',\n\tEdit: PasswordEdit,\n\tenableSorting: false,\n\tenableHiding: false,\n\tisVisible: ( item ) => item.status !== 'private',\n\tfilterBy: false,\n};\n\n/**\n * Password field for BasePost.\n */\nexport default passwordField;\n"],"mappings":"AAAA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["__","PasswordEdit","passwordField","id","type","label","Edit","enableSorting","enableHiding","isVisible","item","status","filterBy"],"sources":["@wordpress/fields/src/fields/password/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport type { BasePost } from '../../types';\nimport PasswordEdit from './edit';\n\nconst passwordField: Field< BasePost > = {\n\tid: 'password',\n\ttype: 'text',\n\tlabel: __( 'Password' ),\n\tEdit: PasswordEdit,\n\tenableSorting: false,\n\tenableHiding: false,\n\tisVisible: ( item ) => item.status !== 'private',\n\tfilterBy: false,\n};\n\n/**\n * Password field for BasePost.\n */\nexport default passwordField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,YAAY,MAAM,QAAQ;AAEjC,MAAMC,aAAgC,GAAG;EACxCC,EAAE,EAAE,UAAU;EACdC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEL,EAAE,CAAE,UAAW,CAAC;EACvBM,IAAI,EAAEL,YAAY;EAClBM,aAAa,EAAE,KAAK;EACpBC,YAAY,EAAE,KAAK;EACnBC,SAAS,EAAIC,IAAI,IAAMA,IAAI,CAACC,MAAM,KAAK,SAAS;EAChDC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeV,aAAa","ignoreList":[]}
|
|
@@ -392,11 +392,28 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
392
392
|
height: 16px;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
.dataviews-view-
|
|
396
|
-
.dataviews-view-
|
|
395
|
+
.dataviews-view-grid__media .fields-controls__featured-image-image,
|
|
396
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
397
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
398
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
399
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,
|
|
400
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 100%;
|
|
403
|
+
display: block;
|
|
404
|
+
border-radius: 4px;
|
|
405
|
+
}
|
|
406
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
407
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
408
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
409
|
+
box-shadow: none;
|
|
410
|
+
background: #f0f0f0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
414
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder {
|
|
397
415
|
width: 32px;
|
|
398
416
|
height: 32px;
|
|
399
|
-
display: block;
|
|
400
417
|
}
|
|
401
418
|
|
|
402
419
|
.fields-controls__template-modal {
|
package/build-style/style.css
CHANGED
|
@@ -392,11 +392,28 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
392
392
|
height: 16px;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
.dataviews-view-
|
|
396
|
-
.dataviews-view-
|
|
395
|
+
.dataviews-view-grid__media .fields-controls__featured-image-image,
|
|
396
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
397
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
398
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
399
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-image,
|
|
400
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 100%;
|
|
403
|
+
display: block;
|
|
404
|
+
border-radius: 4px;
|
|
405
|
+
}
|
|
406
|
+
.dataviews-view-grid__media .fields-controls__featured-image-placeholder,
|
|
407
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder,
|
|
408
|
+
.dataviews-view-list__media-wrapper .fields-controls__featured-image-placeholder {
|
|
409
|
+
box-shadow: none;
|
|
410
|
+
background: #f0f0f0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-image,
|
|
414
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media .fields-controls__featured-image-placeholder {
|
|
397
415
|
width: 32px;
|
|
398
416
|
height: 32px;
|
|
399
|
-
display: block;
|
|
400
417
|
}
|
|
401
418
|
|
|
402
419
|
.fields-controls__template-modal {
|
|
@@ -3,5 +3,5 @@ import type { DataViewRenderFieldProps } from '@wordpress/dataviews';
|
|
|
3
3
|
* Internal dependencies
|
|
4
4
|
*/
|
|
5
5
|
import type { BasePost } from '../../types';
|
|
6
|
-
export declare const FeaturedImageView: ({ item, }: DataViewRenderFieldProps<BasePost>) => import("react").JSX.Element;
|
|
6
|
+
export declare const FeaturedImageView: ({ item, config, }: DataViewRenderFieldProps<BasePost>) => import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=featured-image-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-image-view.d.ts","sourceRoot":"","sources":["../../../src/fields/featured-image/featured-image-view.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"featured-image-view.d.ts","sourceRoot":"","sources":["../../../src/fields/featured-image/featured-image-view.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,iBAAiB,sBAG3B,wBAAwB,CAAE,QAAQ,CAAE,gCAkCtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/order/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/order/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAE,QAAQ,CAShC,CAAC;AAEF;;GAEG;AACH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/password/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/password/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAE,QAAQ,CASnC,CAAC;AAEF;;GAEG;AACH,eAAe,aAAa,CAAC"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
declare const STATUSES: ({
|
|
2
2
|
value: string;
|
|
3
|
-
label: import("@wordpress/i18n
|
|
3
|
+
label: import("@wordpress/i18n").TranslatableText<"Draft">;
|
|
4
4
|
icon: import("react").JSX.Element;
|
|
5
|
-
description: import("@wordpress/i18n
|
|
5
|
+
description: import("@wordpress/i18n").TranslatableText<"Not ready to publish.">;
|
|
6
6
|
} | {
|
|
7
7
|
value: string;
|
|
8
|
-
label: import("@wordpress/i18n
|
|
8
|
+
label: import("@wordpress/i18n").TranslatableText<"Scheduled">;
|
|
9
9
|
icon: import("react").JSX.Element;
|
|
10
|
-
description: import("@wordpress/i18n
|
|
10
|
+
description: import("@wordpress/i18n").TranslatableText<"Publish automatically on a chosen date.">;
|
|
11
11
|
} | {
|
|
12
12
|
value: string;
|
|
13
|
-
label: import("@wordpress/i18n
|
|
13
|
+
label: import("@wordpress/i18n").TranslatableText<"Pending Review">;
|
|
14
14
|
icon: import("react").JSX.Element;
|
|
15
|
-
description: import("@wordpress/i18n
|
|
15
|
+
description: import("@wordpress/i18n").TranslatableText<"Waiting for review before publishing.">;
|
|
16
16
|
} | {
|
|
17
17
|
value: string;
|
|
18
|
-
label: import("@wordpress/i18n
|
|
18
|
+
label: import("@wordpress/i18n").TranslatableText<"Private">;
|
|
19
19
|
icon: import("react").JSX.Element;
|
|
20
|
-
description: import("@wordpress/i18n
|
|
20
|
+
description: import("@wordpress/i18n").TranslatableText<"Only visible to site admins and editors.">;
|
|
21
21
|
} | {
|
|
22
22
|
value: string;
|
|
23
|
-
label: import("@wordpress/i18n
|
|
23
|
+
label: import("@wordpress/i18n").TranslatableText<"Published">;
|
|
24
24
|
icon: import("react").JSX.Element;
|
|
25
|
-
description: import("@wordpress/i18n
|
|
25
|
+
description: import("@wordpress/i18n").TranslatableText<"Visible to everyone.">;
|
|
26
26
|
} | {
|
|
27
27
|
value: string;
|
|
28
|
-
label: import("@wordpress/i18n
|
|
28
|
+
label: import("@wordpress/i18n").TranslatableText<"Trash">;
|
|
29
29
|
icon: import("react").JSX.Element;
|
|
30
30
|
description?: undefined;
|
|
31
31
|
})[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/fields",
|
|
3
|
-
"version": "0.19.0",
|
|
3
|
+
"version": "0.19.1-next.46f643fa0.0",
|
|
4
4
|
"description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,29 +33,29 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "7.25.7",
|
|
36
|
-
"@wordpress/api-fetch": "^7.27.0",
|
|
37
|
-
"@wordpress/blob": "^4.27.0",
|
|
38
|
-
"@wordpress/block-editor": "^15.0.0",
|
|
39
|
-
"@wordpress/blocks": "^15.0.0",
|
|
40
|
-
"@wordpress/components": "^30.
|
|
41
|
-
"@wordpress/compose": "^7.27.0",
|
|
42
|
-
"@wordpress/core-data": "^7.27.0",
|
|
43
|
-
"@wordpress/data": "^10.27.0",
|
|
44
|
-
"@wordpress/dataviews": "^
|
|
45
|
-
"@wordpress/date": "^5.27.0",
|
|
46
|
-
"@wordpress/element": "^6.27.0",
|
|
47
|
-
"@wordpress/hooks": "^4.27.0",
|
|
48
|
-
"@wordpress/html-entities": "^4.27.0",
|
|
49
|
-
"@wordpress/i18n": "^6.0.0",
|
|
50
|
-
"@wordpress/icons": "^10.27.0",
|
|
51
|
-
"@wordpress/media-utils": "^5.27.0",
|
|
52
|
-
"@wordpress/notices": "^5.27.0",
|
|
53
|
-
"@wordpress/patterns": "^2.27.0",
|
|
54
|
-
"@wordpress/primitives": "^4.27.0",
|
|
55
|
-
"@wordpress/private-apis": "^1.27.0",
|
|
56
|
-
"@wordpress/router": "^1.27.0",
|
|
57
|
-
"@wordpress/url": "^4.27.0",
|
|
58
|
-
"@wordpress/warning": "^3.27.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.27.1-next.46f643fa0.0",
|
|
37
|
+
"@wordpress/blob": "^4.27.1-next.46f643fa0.0",
|
|
38
|
+
"@wordpress/block-editor": "^15.0.1-next.46f643fa0.0",
|
|
39
|
+
"@wordpress/blocks": "^15.0.1-next.46f643fa0.0",
|
|
40
|
+
"@wordpress/components": "^30.1.1-next.46f643fa0.0",
|
|
41
|
+
"@wordpress/compose": "^7.27.1-next.46f643fa0.0",
|
|
42
|
+
"@wordpress/core-data": "^7.27.1-next.46f643fa0.0",
|
|
43
|
+
"@wordpress/data": "^10.27.1-next.46f643fa0.0",
|
|
44
|
+
"@wordpress/dataviews": "^6.0.1-next.46f643fa0.0",
|
|
45
|
+
"@wordpress/date": "^5.27.1-next.46f643fa0.0",
|
|
46
|
+
"@wordpress/element": "^6.27.1-next.46f643fa0.0",
|
|
47
|
+
"@wordpress/hooks": "^4.27.1-next.46f643fa0.0",
|
|
48
|
+
"@wordpress/html-entities": "^4.27.1-next.46f643fa0.0",
|
|
49
|
+
"@wordpress/i18n": "^6.0.1-next.46f643fa0.0",
|
|
50
|
+
"@wordpress/icons": "^10.27.2-next.46f643fa0.0",
|
|
51
|
+
"@wordpress/media-utils": "^5.27.1-next.46f643fa0.0",
|
|
52
|
+
"@wordpress/notices": "^5.27.1-next.46f643fa0.0",
|
|
53
|
+
"@wordpress/patterns": "^2.27.1-next.46f643fa0.0",
|
|
54
|
+
"@wordpress/primitives": "^4.27.1-next.46f643fa0.0",
|
|
55
|
+
"@wordpress/private-apis": "^1.27.1-next.46f643fa0.0",
|
|
56
|
+
"@wordpress/router": "^1.27.1-next.46f643fa0.0",
|
|
57
|
+
"@wordpress/url": "^4.27.1-next.46f643fa0.0",
|
|
58
|
+
"@wordpress/warning": "^3.27.1-next.46f643fa0.0",
|
|
59
59
|
"change-case": "4.1.2",
|
|
60
60
|
"client-zip": "^2.4.5",
|
|
61
61
|
"clsx": "2.1.1",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "17e600e091675c5e3d809adfea23ac456bbeae19"
|
|
71
71
|
}
|
|
@@ -12,6 +12,7 @@ import type { BasePost } from '../../types';
|
|
|
12
12
|
|
|
13
13
|
export const FeaturedImageView = ( {
|
|
14
14
|
item,
|
|
15
|
+
config,
|
|
15
16
|
}: DataViewRenderFieldProps< BasePost > ) => {
|
|
16
17
|
const mediaId = item.featured_media;
|
|
17
18
|
|
|
@@ -30,6 +31,17 @@ export const FeaturedImageView = ( {
|
|
|
30
31
|
className="fields-controls__featured-image-image"
|
|
31
32
|
src={ url }
|
|
32
33
|
alt=""
|
|
34
|
+
srcSet={
|
|
35
|
+
media?.media_details?.sizes
|
|
36
|
+
? Object.values( media.media_details.sizes )
|
|
37
|
+
.map(
|
|
38
|
+
( size: any ) =>
|
|
39
|
+
`${ size.source_url } ${ size.width }w`
|
|
40
|
+
)
|
|
41
|
+
.join( ', ' )
|
|
42
|
+
: undefined
|
|
43
|
+
}
|
|
44
|
+
sizes={ config?.sizes || '100vw' }
|
|
33
45
|
/>
|
|
34
46
|
);
|
|
35
47
|
}
|
|
@@ -82,11 +82,27 @@ fieldset.fields-controls__featured-image {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.dataviews-view-
|
|
85
|
+
.dataviews-view-grid__media,
|
|
86
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media,
|
|
87
|
+
.dataviews-view-list__media-wrapper {
|
|
88
|
+
.fields-controls__featured-image-image,
|
|
89
|
+
.fields-controls__featured-image-placeholder {
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
display: block;
|
|
93
|
+
border-radius: $radius-medium;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fields-controls__featured-image-placeholder {
|
|
97
|
+
box-shadow: none;
|
|
98
|
+
background: $gray-100;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.dataviews-view-table__cell-content-wrapper.dataviews-column-primary__media {
|
|
86
103
|
.fields-controls__featured-image-image,
|
|
87
104
|
.fields-controls__featured-image-placeholder {
|
|
88
105
|
width: 32px;
|
|
89
106
|
height: 32px;
|
|
90
|
-
display: block;
|
|
91
107
|
}
|
|
92
108
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Field } from '@wordpress/dataviews';
|
|
5
|
+
import { __ } from '@wordpress/i18n';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Internal dependencies
|
|
@@ -12,6 +13,7 @@ import PasswordEdit from './edit';
|
|
|
12
13
|
const passwordField: Field< BasePost > = {
|
|
13
14
|
id: 'password',
|
|
14
15
|
type: 'text',
|
|
16
|
+
label: __( 'Password' ),
|
|
15
17
|
Edit: PasswordEdit,
|
|
16
18
|
enableSorting: false,
|
|
17
19
|
enableHiding: false,
|