@wordpress/fields 0.18.0 → 0.19.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/actions/delete-post.js +1 -1
  3. package/build/actions/delete-post.js.map +1 -1
  4. package/build/actions/permanently-delete-post.js +1 -1
  5. package/build/actions/permanently-delete-post.js.map +1 -1
  6. package/build/actions/reset-post.js +2 -2
  7. package/build/actions/reset-post.js.map +1 -1
  8. package/build/actions/restore-post.js +3 -3
  9. package/build/actions/restore-post.js.map +1 -1
  10. package/build/actions/trash-post.js +3 -3
  11. package/build/actions/trash-post.js.map +1 -1
  12. package/build/actions/view-post-revisions.js +2 -2
  13. package/build/actions/view-post-revisions.js.map +1 -1
  14. package/build/fields/author/index.js +3 -0
  15. package/build/fields/author/index.js.map +1 -1
  16. package/build/fields/comment-status/index.js +1 -3
  17. package/build/fields/comment-status/index.js.map +1 -1
  18. package/build/fields/date/index.js +2 -1
  19. package/build/fields/date/index.js.map +1 -1
  20. package/build/fields/featured-image/index.js +2 -1
  21. package/build/fields/featured-image/index.js.map +1 -1
  22. package/build/fields/order/index.js +2 -1
  23. package/build/fields/order/index.js.map +1 -1
  24. package/build/fields/page-title/index.js +2 -1
  25. package/build/fields/page-title/index.js.map +1 -1
  26. package/build/fields/parent/index.js +2 -1
  27. package/build/fields/parent/index.js.map +1 -1
  28. package/build/fields/password/index.js +2 -1
  29. package/build/fields/password/index.js.map +1 -1
  30. package/build/fields/pattern-title/index.js +2 -1
  31. package/build/fields/pattern-title/index.js.map +1 -1
  32. package/build/fields/slug/index.js +2 -1
  33. package/build/fields/slug/index.js.map +1 -1
  34. package/build/fields/template/index.js +2 -1
  35. package/build/fields/template/index.js.map +1 -1
  36. package/build/fields/template-title/index.js +2 -1
  37. package/build/fields/template-title/index.js.map +1 -1
  38. package/build/fields/title/index.js +2 -1
  39. package/build/fields/title/index.js.map +1 -1
  40. package/build-module/actions/delete-post.js +1 -1
  41. package/build-module/actions/delete-post.js.map +1 -1
  42. package/build-module/actions/permanently-delete-post.js +1 -1
  43. package/build-module/actions/permanently-delete-post.js.map +1 -1
  44. package/build-module/actions/reset-post.js +2 -2
  45. package/build-module/actions/reset-post.js.map +1 -1
  46. package/build-module/actions/restore-post.js +3 -3
  47. package/build-module/actions/restore-post.js.map +1 -1
  48. package/build-module/actions/trash-post.js +3 -3
  49. package/build-module/actions/trash-post.js.map +1 -1
  50. package/build-module/actions/view-post-revisions.js +2 -2
  51. package/build-module/actions/view-post-revisions.js.map +1 -1
  52. package/build-module/fields/author/index.js +3 -0
  53. package/build-module/fields/author/index.js.map +1 -1
  54. package/build-module/fields/comment-status/index.js +1 -3
  55. package/build-module/fields/comment-status/index.js.map +1 -1
  56. package/build-module/fields/date/index.js +2 -1
  57. package/build-module/fields/date/index.js.map +1 -1
  58. package/build-module/fields/featured-image/index.js +2 -1
  59. package/build-module/fields/featured-image/index.js.map +1 -1
  60. package/build-module/fields/order/index.js +2 -1
  61. package/build-module/fields/order/index.js.map +1 -1
  62. package/build-module/fields/page-title/index.js +2 -1
  63. package/build-module/fields/page-title/index.js.map +1 -1
  64. package/build-module/fields/parent/index.js +2 -1
  65. package/build-module/fields/parent/index.js.map +1 -1
  66. package/build-module/fields/password/index.js +2 -1
  67. package/build-module/fields/password/index.js.map +1 -1
  68. package/build-module/fields/pattern-title/index.js +2 -1
  69. package/build-module/fields/pattern-title/index.js.map +1 -1
  70. package/build-module/fields/slug/index.js +2 -1
  71. package/build-module/fields/slug/index.js.map +1 -1
  72. package/build-module/fields/template/index.js +2 -1
  73. package/build-module/fields/template/index.js.map +1 -1
  74. package/build-module/fields/template-title/index.js +2 -1
  75. package/build-module/fields/template-title/index.js.map +1 -1
  76. package/build-module/fields/title/index.js +2 -1
  77. package/build-module/fields/title/index.js.map +1 -1
  78. package/build-types/fields/author/index.d.ts.map +1 -1
  79. package/build-types/fields/comment-status/index.d.ts.map +1 -1
  80. package/build-types/fields/date/index.d.ts.map +1 -1
  81. package/build-types/fields/featured-image/index.d.ts.map +1 -1
  82. package/build-types/fields/order/index.d.ts.map +1 -1
  83. package/build-types/fields/page-title/index.d.ts.map +1 -1
  84. package/build-types/fields/parent/index.d.ts.map +1 -1
  85. package/build-types/fields/password/index.d.ts.map +1 -1
  86. package/build-types/fields/pattern-title/index.d.ts.map +1 -1
  87. package/build-types/fields/slug/index.d.ts.map +1 -1
  88. package/build-types/fields/status/status-elements.d.ts +23 -3
  89. package/build-types/fields/status/status-elements.d.ts.map +1 -1
  90. package/build-types/fields/template/index.d.ts.map +1 -1
  91. package/build-types/fields/template-title/index.d.ts.map +1 -1
  92. package/build-types/fields/title/index.d.ts.map +1 -1
  93. package/package.json +25 -25
  94. package/src/actions/delete-post.tsx +1 -1
  95. package/src/actions/permanently-delete-post.tsx +2 -2
  96. package/src/actions/reset-post.tsx +3 -3
  97. package/src/actions/restore-post.tsx +4 -4
  98. package/src/actions/trash-post.tsx +5 -5
  99. package/src/actions/view-post-revisions.tsx +2 -2
  100. package/src/fields/author/index.tsx +4 -0
  101. package/src/fields/comment-status/index.tsx +1 -3
  102. package/src/fields/date/index.tsx +1 -0
  103. package/src/fields/featured-image/index.ts +1 -0
  104. package/src/fields/order/index.ts +1 -0
  105. package/src/fields/page-title/index.ts +1 -0
  106. package/src/fields/parent/index.ts +1 -0
  107. package/src/fields/password/index.tsx +1 -0
  108. package/src/fields/pattern-title/index.ts +1 -0
  109. package/src/fields/slug/index.ts +1 -0
  110. package/src/fields/template/index.ts +1 -0
  111. package/src/fields/template-title/index.ts +1 -0
  112. package/src/fields/title/index.ts +1 -0
  113. package/tsconfig.tsbuildinfo +1 -1
@@ -19,6 +19,9 @@ const authorField = {
19
19
  const nameA = a._embedded?.author?.[0]?.name || '';
20
20
  const nameB = b._embedded?.author?.[0]?.name || '';
21
21
  return direction === 'asc' ? nameA.localeCompare(nameB) : nameB.localeCompare(nameA);
22
+ },
23
+ filterBy: {
24
+ operators: ['isAny', 'isNone']
22
25
  }
23
26
  };
24
27
 
@@ -1 +1 @@
1
- {"version":3,"names":["__","AuthorView","authorField","label","id","type","elements","render","sort","a","b","direction","nameA","_embedded","author","name","nameB","localeCompare"],"sources":["@wordpress/fields/src/fields/author/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 { BasePostWithEmbeddedAuthor } from '../../types';\nimport AuthorView from './author-view';\n\nconst authorField: Field< BasePostWithEmbeddedAuthor > = {\n\tlabel: __( 'Author' ),\n\tid: 'author',\n\ttype: 'integer',\n\telements: [],\n\trender: AuthorView,\n\tsort: ( a, b, direction ) => {\n\t\tconst nameA = a._embedded?.author?.[ 0 ]?.name || '';\n\t\tconst nameB = b._embedded?.author?.[ 0 ]?.name || '';\n\n\t\treturn direction === 'asc'\n\t\t\t? nameA.localeCompare( nameB )\n\t\t\t: nameB.localeCompare( nameA );\n\t},\n};\n\n/**\n * Author field for BasePost.\n */\nexport default authorField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,UAAU,MAAM,eAAe;AAEtC,MAAMC,WAAgD,GAAG;EACxDC,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;EACrBI,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,EAAE;EACZC,MAAM,EAAEN,UAAU;EAClBO,IAAI,EAAEA,CAAEC,CAAC,EAAEC,CAAC,EAAEC,SAAS,KAAM;IAC5B,MAAMC,KAAK,GAAGH,CAAC,CAACI,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IACpD,MAAMC,KAAK,GAAGN,CAAC,CAACG,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IAEpD,OAAOJ,SAAS,KAAK,KAAK,GACvBC,KAAK,CAACK,aAAa,CAAED,KAAM,CAAC,GAC5BA,KAAK,CAACC,aAAa,CAAEL,KAAM,CAAC;EAChC;AACD,CAAC;;AAED;AACA;AACA;AACA,eAAeV,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["__","AuthorView","authorField","label","id","type","elements","render","sort","a","b","direction","nameA","_embedded","author","name","nameB","localeCompare","filterBy","operators"],"sources":["@wordpress/fields/src/fields/author/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 { BasePostWithEmbeddedAuthor } from '../../types';\nimport AuthorView from './author-view';\n\nconst authorField: Field< BasePostWithEmbeddedAuthor > = {\n\tlabel: __( 'Author' ),\n\tid: 'author',\n\ttype: 'integer',\n\telements: [],\n\trender: AuthorView,\n\tsort: ( a, b, direction ) => {\n\t\tconst nameA = a._embedded?.author?.[ 0 ]?.name || '';\n\t\tconst nameB = b._embedded?.author?.[ 0 ]?.name || '';\n\n\t\treturn direction === 'asc'\n\t\t\t? nameA.localeCompare( nameB )\n\t\t\t: nameB.localeCompare( nameA );\n\t},\n\n\tfilterBy: {\n\t\toperators: [ 'isAny', 'isNone' ],\n\t},\n};\n\n/**\n * Author field for BasePost.\n */\nexport default authorField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,UAAU,MAAM,eAAe;AAEtC,MAAMC,WAAgD,GAAG;EACxDC,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;EACrBI,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,EAAE;EACZC,MAAM,EAAEN,UAAU;EAClBO,IAAI,EAAEA,CAAEC,CAAC,EAAEC,CAAC,EAAEC,SAAS,KAAM;IAC5B,MAAMC,KAAK,GAAGH,CAAC,CAACI,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IACpD,MAAMC,KAAK,GAAGN,CAAC,CAACG,SAAS,EAAEC,MAAM,GAAI,CAAC,CAAE,EAAEC,IAAI,IAAI,EAAE;IAEpD,OAAOJ,SAAS,KAAK,KAAK,GACvBC,KAAK,CAACK,aAAa,CAAED,KAAM,CAAC,GAC5BA,KAAK,CAACC,aAAa,CAAEL,KAAM,CAAC;EAChC,CAAC;EAEDM,QAAQ,EAAE;IACTC,SAAS,EAAE,CAAE,OAAO,EAAE,QAAQ;EAC/B;AACD,CAAC;;AAED;AACA;AACA;AACA,eAAejB,WAAW","ignoreList":[]}
@@ -14,9 +14,7 @@ const commentStatusField = {
14
14
  type: 'text',
15
15
  Edit: 'radio',
16
16
  enableSorting: false,
17
- filterBy: {
18
- operators: []
19
- },
17
+ filterBy: false,
20
18
  elements: [{
21
19
  value: 'open',
22
20
  label: __('Open'),
@@ -1 +1 @@
1
- {"version":3,"names":["__","commentStatusField","id","label","type","Edit","enableSorting","filterBy","operators","elements","value","description"],"sources":["@wordpress/fields/src/fields/comment-status/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';\n\nconst commentStatusField: Field< BasePost > = {\n\tid: 'comment_status',\n\tlabel: __( 'Discussion' ),\n\ttype: 'text',\n\tEdit: 'radio',\n\tenableSorting: false,\n\tfilterBy: {\n\t\toperators: [],\n\t},\n\telements: [\n\t\t{\n\t\t\tvalue: 'open',\n\t\t\tlabel: __( 'Open' ),\n\t\t\tdescription: __( 'Visitors can add new comments and replies.' ),\n\t\t},\n\t\t{\n\t\t\tvalue: 'closed',\n\t\t\tlabel: __( 'Closed' ),\n\t\t\tdescription: __(\n\t\t\t\t'Visitors cannot add new comments or replies. Existing comments remain visible.'\n\t\t\t),\n\t\t},\n\t],\n};\n\n/**\n * Comment status field for BasePost.\n */\nexport default commentStatusField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,kBAAqC,GAAG;EAC7CC,EAAE,EAAE,gBAAgB;EACpBC,KAAK,EAAEH,EAAE,CAAE,YAAa,CAAC;EACzBI,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,OAAO;EACbC,aAAa,EAAE,KAAK;EACpBC,QAAQ,EAAE;IACTC,SAAS,EAAE;EACZ,CAAC;EACDC,QAAQ,EAAE,CACT;IACCC,KAAK,EAAE,MAAM;IACbP,KAAK,EAAEH,EAAE,CAAE,MAAO,CAAC;IACnBW,WAAW,EAAEX,EAAE,CAAE,4CAA6C;EAC/D,CAAC,EACD;IACCU,KAAK,EAAE,QAAQ;IACfP,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;IACrBW,WAAW,EAAEX,EAAE,CACd,gFACD;EACD,CAAC;AAEH,CAAC;;AAED;AACA;AACA;AACA,eAAeC,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["__","commentStatusField","id","label","type","Edit","enableSorting","filterBy","elements","value","description"],"sources":["@wordpress/fields/src/fields/comment-status/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';\n\nconst commentStatusField: Field< BasePost > = {\n\tid: 'comment_status',\n\tlabel: __( 'Discussion' ),\n\ttype: 'text',\n\tEdit: 'radio',\n\tenableSorting: false,\n\tfilterBy: false,\n\telements: [\n\t\t{\n\t\t\tvalue: 'open',\n\t\t\tlabel: __( 'Open' ),\n\t\t\tdescription: __( 'Visitors can add new comments and replies.' ),\n\t\t},\n\t\t{\n\t\t\tvalue: 'closed',\n\t\t\tlabel: __( 'Closed' ),\n\t\t\tdescription: __(\n\t\t\t\t'Visitors cannot add new comments or replies. Existing comments remain visible.'\n\t\t\t),\n\t\t},\n\t],\n};\n\n/**\n * Comment status field for BasePost.\n */\nexport default commentStatusField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAGA,MAAMC,kBAAqC,GAAG;EAC7CC,EAAE,EAAE,gBAAgB;EACpBC,KAAK,EAAEH,EAAE,CAAE,YAAa,CAAC;EACzBI,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,OAAO;EACbC,aAAa,EAAE,KAAK;EACpBC,QAAQ,EAAE,KAAK;EACfC,QAAQ,EAAE,CACT;IACCC,KAAK,EAAE,MAAM;IACbN,KAAK,EAAEH,EAAE,CAAE,MAAO,CAAC;IACnBU,WAAW,EAAEV,EAAE,CAAE,4CAA6C;EAC/D,CAAC,EACD;IACCS,KAAK,EAAE,QAAQ;IACfN,KAAK,EAAEH,EAAE,CAAE,QAAS,CAAC;IACrBU,WAAW,EAAEV,EAAE,CACd,gFACD;EACD,CAAC;AAEH,CAAC;;AAED;AACA;AACA;AACA,eAAeC,kBAAkB","ignoreList":[]}
@@ -13,7 +13,8 @@ const dateField = {
13
13
  id: 'date',
14
14
  type: 'datetime',
15
15
  label: __('Date'),
16
- render: DateView
16
+ render: DateView,
17
+ filterBy: false
17
18
  };
18
19
 
19
20
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","DateView","dateField","id","type","label","render"],"sources":["@wordpress/fields/src/fields/date/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 DateView from './date-view';\n\nconst dateField: Field< BasePost > = {\n\tid: 'date',\n\ttype: 'datetime',\n\tlabel: __( 'Date' ),\n\trender: DateView,\n};\n\n/**\n * Date field for BasePost.\n */\nexport default dateField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,SAA4B,GAAG;EACpCC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAEL,EAAE,CAAE,MAAO,CAAC;EACnBM,MAAM,EAAEL;AACT,CAAC;;AAED;AACA;AACA;AACA,eAAeC,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["__","DateView","dateField","id","type","label","render","filterBy"],"sources":["@wordpress/fields/src/fields/date/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 DateView from './date-view';\n\nconst dateField: Field< BasePost > = {\n\tid: 'date',\n\ttype: 'datetime',\n\tlabel: __( 'Date' ),\n\trender: DateView,\n\tfilterBy: false,\n};\n\n/**\n * Date field for BasePost.\n */\nexport default dateField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,SAA4B,GAAG;EACpCC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAEL,EAAE,CAAE,MAAO,CAAC;EACnBM,MAAM,EAAEL,QAAQ;EAChBM,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeL,SAAS","ignoreList":[]}
@@ -16,7 +16,8 @@ const featuredImageField = {
16
16
  label: __('Featured Image'),
17
17
  Edit: FeaturedImageEdit,
18
18
  render: FeaturedImageView,
19
- enableSorting: false
19
+ enableSorting: false,
20
+ filterBy: false
20
21
  };
21
22
 
22
23
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","FeaturedImageEdit","FeaturedImageView","featuredImageField","id","type","label","Edit","render","enableSorting"],"sources":["@wordpress/fields/src/fields/featured-image/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';\nimport { FeaturedImageEdit } from './featured-image-edit';\nimport { FeaturedImageView } from './featured-image-view';\n\nconst featuredImageField: Field< BasePost > = {\n\tid: 'featured_media',\n\ttype: 'media',\n\tlabel: __( 'Featured Image' ),\n\tEdit: FeaturedImageEdit,\n\trender: FeaturedImageView,\n\tenableSorting: false,\n};\n\n/**\n * Featured Image field for BasePost.\n */\nexport default featuredImageField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,iBAAiB,QAAQ,uBAAuB;AAEzD,MAAMC,kBAAqC,GAAG;EAC7CC,EAAE,EAAE,gBAAgB;EACpBC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAEN,EAAE,CAAE,gBAAiB,CAAC;EAC7BO,IAAI,EAAEN,iBAAiB;EACvBO,MAAM,EAAEN,iBAAiB;EACzBO,aAAa,EAAE;AAChB,CAAC;;AAED;AACA;AACA;AACA,eAAeN,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["__","FeaturedImageEdit","FeaturedImageView","featuredImageField","id","type","label","Edit","render","enableSorting","filterBy"],"sources":["@wordpress/fields/src/fields/featured-image/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';\nimport { FeaturedImageEdit } from './featured-image-edit';\nimport { FeaturedImageView } from './featured-image-view';\n\nconst featuredImageField: Field< BasePost > = {\n\tid: 'featured_media',\n\ttype: 'media',\n\tlabel: __( 'Featured Image' ),\n\tEdit: FeaturedImageEdit,\n\trender: FeaturedImageView,\n\tenableSorting: false,\n\tfilterBy: false,\n};\n\n/**\n * Featured Image field for BasePost.\n */\nexport default featuredImageField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,iBAAiB,QAAQ,uBAAuB;AAEzD,MAAMC,kBAAqC,GAAG;EAC7CC,EAAE,EAAE,gBAAgB;EACpBC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAEN,EAAE,CAAE,gBAAiB,CAAC;EAC7BO,IAAI,EAAEN,iBAAiB;EACvBO,MAAM,EAAEN,iBAAiB;EACzBO,aAAa,EAAE,KAAK;EACpBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeP,kBAAkB","ignoreList":[]}
@@ -12,7 +12,8 @@ const orderField = {
12
12
  id: 'menu_order',
13
13
  type: 'integer',
14
14
  label: __('Order'),
15
- description: __('Determines the order of pages.')
15
+ description: __('Determines the order of pages.'),
16
+ filterBy: false
16
17
  };
17
18
 
18
19
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","orderField","id","type","label","description"],"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};\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;AACnD,CAAC;;AAED;AACA;AACA;AACA,eAAeC,UAAU","ignoreList":[]}
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;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeL,UAAU","ignoreList":[]}
@@ -20,7 +20,8 @@ const pageTitleField = {
20
20
  }) => getItemTitle(item),
21
21
  render: PageTitleView,
22
22
  enableHiding: false,
23
- enableGlobalSearch: true
23
+ enableGlobalSearch: true,
24
+ filterBy: false
24
25
  };
25
26
 
26
27
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","getItemTitle","PageTitleView","pageTitleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch"],"sources":["@wordpress/fields/src/fields/page-title/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';\nimport { getItemTitle } from '../../actions/utils';\nimport PageTitleView from './view';\n\nconst pageTitleField: Field< BasePost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: PageTitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n};\n\n/**\n * Title for the page entity.\n */\nexport default pageTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,aAAa,MAAM,QAAQ;AAElC,MAAMC,cAAiC,GAAG;EACzCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,aAAa;EACrBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE;AACrB,CAAC;;AAED;AACA;AACA;AACA,eAAeT,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["__","getItemTitle","PageTitleView","pageTitleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/page-title/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';\nimport { getItemTitle } from '../../actions/utils';\nimport PageTitleView from './view';\n\nconst pageTitleField: Field< BasePost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: PageTitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the page entity.\n */\nexport default pageTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,aAAa,MAAM,QAAQ;AAElC,MAAMC,cAAiC,GAAG;EACzCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,aAAa;EACrBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeV,cAAc","ignoreList":[]}
@@ -16,7 +16,8 @@ const parentField = {
16
16
  label: __('Parent'),
17
17
  Edit: ParentEdit,
18
18
  render: ParentView,
19
- enableSorting: true
19
+ enableSorting: true,
20
+ filterBy: false
20
21
  };
21
22
 
22
23
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","ParentEdit","ParentView","parentField","id","type","label","Edit","render","enableSorting"],"sources":["@wordpress/fields/src/fields/parent/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';\nimport { ParentEdit } from './parent-edit';\nimport { ParentView } from './parent-view';\n\nconst parentField: Field< BasePost > = {\n\tid: 'parent',\n\ttype: 'text',\n\tlabel: __( 'Parent' ),\n\tEdit: ParentEdit,\n\trender: ParentView,\n\tenableSorting: true,\n};\n\n/**\n * Parent field for BasePost.\n */\nexport default parentField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,UAAU,QAAQ,eAAe;AAE1C,MAAMC,WAA8B,GAAG;EACtCC,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEN,EAAE,CAAE,QAAS,CAAC;EACrBO,IAAI,EAAEN,UAAU;EAChBO,MAAM,EAAEN,UAAU;EAClBO,aAAa,EAAE;AAChB,CAAC;;AAED;AACA;AACA;AACA,eAAeN,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["__","ParentEdit","ParentView","parentField","id","type","label","Edit","render","enableSorting","filterBy"],"sources":["@wordpress/fields/src/fields/parent/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';\nimport { ParentEdit } from './parent-edit';\nimport { ParentView } from './parent-view';\n\nconst parentField: Field< BasePost > = {\n\tid: 'parent',\n\ttype: 'text',\n\tlabel: __( 'Parent' ),\n\tEdit: ParentEdit,\n\trender: ParentView,\n\tenableSorting: true,\n\tfilterBy: false,\n};\n\n/**\n * Parent field for BasePost.\n */\nexport default parentField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,UAAU,QAAQ,eAAe;AAE1C,MAAMC,WAA8B,GAAG;EACtCC,EAAE,EAAE,QAAQ;EACZC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEN,EAAE,CAAE,QAAS,CAAC;EACrBO,IAAI,EAAEN,UAAU;EAChBO,MAAM,EAAEN,UAAU;EAClBO,aAAa,EAAE,IAAI;EACnBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeP,WAAW","ignoreList":[]}
@@ -13,7 +13,8 @@ const passwordField = {
13
13
  Edit: PasswordEdit,
14
14
  enableSorting: false,
15
15
  enableHiding: false,
16
- isVisible: item => item.status !== 'private'
16
+ isVisible: item => item.status !== 'private',
17
+ filterBy: false
17
18
  };
18
19
 
19
20
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["PasswordEdit","passwordField","id","type","Edit","enableSorting","enableHiding","isVisible","item","status"],"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};\n\n/**\n * Password field for BasePost.\n */\nexport default passwordField;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,OAAOA,YAAY,MAAM,QAAQ;AAEjC,MAAMC,aAAgC,GAAG;EACxCC,EAAE,EAAE,UAAU;EACdC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAEJ,YAAY;EAClBK,aAAa,EAAE,KAAK;EACpBC,YAAY,EAAE,KAAK;EACnBC,SAAS,EAAIC,IAAI,IAAMA,IAAI,CAACC,MAAM,KAAK;AACxC,CAAC;;AAED;AACA;AACA;AACA,eAAeR,aAAa","ignoreList":[]}
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;;AAGA;AACA;AACA;;AAEA,OAAOA,YAAY,MAAM,QAAQ;AAEjC,MAAMC,aAAgC,GAAG;EACxCC,EAAE,EAAE,UAAU;EACdC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAEJ,YAAY;EAClBK,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,eAAeT,aAAa","ignoreList":[]}
@@ -20,7 +20,8 @@ const patternTitleField = {
20
20
  }) => getItemTitle(item),
21
21
  render: PatternTitleView,
22
22
  enableHiding: false,
23
- enableGlobalSearch: true
23
+ enableGlobalSearch: true,
24
+ filterBy: false
24
25
  };
25
26
 
26
27
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","getItemTitle","PatternTitleView","patternTitleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch"],"sources":["@wordpress/fields/src/fields/pattern-title/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 { Pattern } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport PatternTitleView from './view';\n\nconst patternTitleField: Field< Pattern > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: PatternTitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n};\n\n/**\n * Title for the pattern entity.\n */\nexport default patternTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,gBAAgB,MAAM,QAAQ;AAErC,MAAMC,iBAAmC,GAAG;EAC3CC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,gBAAgB;EACxBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE;AACrB,CAAC;;AAED;AACA;AACA;AACA,eAAeT,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["__","getItemTitle","PatternTitleView","patternTitleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/pattern-title/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 { Pattern } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport PatternTitleView from './view';\n\nconst patternTitleField: Field< Pattern > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: PatternTitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the pattern entity.\n */\nexport default patternTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,gBAAgB,MAAM,QAAQ;AAErC,MAAMC,iBAAmC,GAAG;EAC3CC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,gBAAgB;EACxBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeV,iBAAiB","ignoreList":[]}
@@ -15,7 +15,8 @@ const slugField = {
15
15
  type: 'text',
16
16
  label: __('Slug'),
17
17
  Edit: SlugEdit,
18
- render: SlugView
18
+ render: SlugView,
19
+ filterBy: false
19
20
  };
20
21
 
21
22
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","SlugEdit","SlugView","slugField","id","type","label","Edit","render"],"sources":["@wordpress/fields/src/fields/slug/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';\nimport SlugEdit from './slug-edit';\nimport SlugView from './slug-view';\n\nconst slugField: Field< BasePost > = {\n\tid: 'slug',\n\ttype: 'text',\n\tlabel: __( 'Slug' ),\n\tEdit: SlugEdit,\n\trender: SlugView,\n};\n\n/**\n * Slug field for BasePost.\n */\nexport default slugField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,SAA4B,GAAG;EACpCC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEN,EAAE,CAAE,MAAO,CAAC;EACnBO,IAAI,EAAEN,QAAQ;EACdO,MAAM,EAAEN;AACT,CAAC;;AAED;AACA;AACA;AACA,eAAeC,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["__","SlugEdit","SlugView","slugField","id","type","label","Edit","render","filterBy"],"sources":["@wordpress/fields/src/fields/slug/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';\nimport SlugEdit from './slug-edit';\nimport SlugView from './slug-view';\n\nconst slugField: Field< BasePost > = {\n\tid: 'slug',\n\ttype: 'text',\n\tlabel: __( 'Slug' ),\n\tEdit: SlugEdit,\n\trender: SlugView,\n\tfilterBy: false,\n};\n\n/**\n * Slug field for BasePost.\n */\nexport default slugField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,SAA4B,GAAG;EACpCC,EAAE,EAAE,MAAM;EACVC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEN,EAAE,CAAE,MAAO,CAAC;EACnBO,IAAI,EAAEN,QAAQ;EACdO,MAAM,EAAEN,QAAQ;EAChBO,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeN,SAAS","ignoreList":[]}
@@ -12,7 +12,8 @@ const templateField = {
12
12
  type: 'text',
13
13
  label: __('Template'),
14
14
  Edit: TemplateEdit,
15
- enableSorting: false
15
+ enableSorting: false,
16
+ filterBy: false
16
17
  };
17
18
 
18
19
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","TemplateEdit","templateField","id","type","label","Edit","enableSorting"],"sources":["@wordpress/fields/src/fields/template/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport type { BasePost } from '../../types';\nimport { TemplateEdit } from './template-edit';\n\nconst templateField: Field< BasePost > = {\n\tid: 'template',\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tEdit: TemplateEdit,\n\tenableSorting: false,\n};\n\n/**\n * Template field for BasePost.\n */\nexport default templateField;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AAEpC,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,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;AAChB,CAAC;;AAED;AACA;AACA;AACA,eAAeL,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["__","TemplateEdit","templateField","id","type","label","Edit","enableSorting","filterBy"],"sources":["@wordpress/fields/src/fields/template/index.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport type { Field } from '@wordpress/dataviews';\n\n/**\n * Internal dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport type { BasePost } from '../../types';\nimport { TemplateEdit } from './template-edit';\n\nconst templateField: Field< BasePost > = {\n\tid: 'template',\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tEdit: TemplateEdit,\n\tenableSorting: false,\n\tfilterBy: false,\n};\n\n/**\n * Template field for BasePost.\n */\nexport default templateField;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AAEpC,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,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,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeN,aAAa","ignoreList":[]}
@@ -20,7 +20,8 @@ const templateTitleField = {
20
20
  }) => getItemTitle(item),
21
21
  render: TitleView,
22
22
  enableHiding: false,
23
- enableGlobalSearch: true
23
+ enableGlobalSearch: true,
24
+ filterBy: false
24
25
  };
25
26
 
26
27
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","getItemTitle","TitleView","templateTitleField","type","label","placeholder","id","getValue","item","render","enableHiding","enableGlobalSearch"],"sources":["@wordpress/fields/src/fields/template-title/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 { Template } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from '../title/view';\n\nconst templateTitleField: Field< Template > = {\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tplaceholder: __( 'No title' ),\n\tid: 'title',\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n};\n\n/**\n * Title for the template entity.\n */\nexport default templateTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,eAAe;AAErC,MAAMC,kBAAqC,GAAG;EAC7CC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEL,EAAE,CAAE,UAAW,CAAC;EACvBM,WAAW,EAAEN,EAAE,CAAE,UAAW,CAAC;EAC7BO,EAAE,EAAE,OAAO;EACXC,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE;AACrB,CAAC;;AAED;AACA;AACA;AACA,eAAeT,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["__","getItemTitle","TitleView","templateTitleField","type","label","placeholder","id","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/template-title/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 { Template } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from '../title/view';\n\nconst templateTitleField: Field< Template > = {\n\ttype: 'text',\n\tlabel: __( 'Template' ),\n\tplaceholder: __( 'No title' ),\n\tid: 'title',\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the template entity.\n */\nexport default templateTitleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,eAAe;AAErC,MAAMC,kBAAqC,GAAG;EAC7CC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAEL,EAAE,CAAE,UAAW,CAAC;EACvBM,WAAW,EAAEN,EAAE,CAAE,UAAW,CAAC;EAC7BO,EAAE,EAAE,OAAO;EACXC,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,eAAeV,kBAAkB","ignoreList":[]}
@@ -20,7 +20,8 @@ const titleField = {
20
20
  }) => getItemTitle(item),
21
21
  render: TitleView,
22
22
  enableHiding: false,
23
- enableGlobalSearch: true
23
+ enableGlobalSearch: true,
24
+ filterBy: false
24
25
  };
25
26
 
26
27
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["__","getItemTitle","TitleView","titleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch"],"sources":["@wordpress/fields/src/fields/title/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 { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,QAAQ;AAE9B,MAAMC,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE;AACrB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,eAAeT,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["__","getItemTitle","TitleView","titleField","type","id","label","placeholder","getValue","item","render","enableHiding","enableGlobalSearch","filterBy"],"sources":["@wordpress/fields/src/fields/title/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 { CommonPost } from '../../types';\nimport { getItemTitle } from '../../actions/utils';\nimport TitleView from './view';\n\nconst titleField: Field< CommonPost > = {\n\ttype: 'text',\n\tid: 'title',\n\tlabel: __( 'Title' ),\n\tplaceholder: __( 'No title' ),\n\tgetValue: ( { item } ) => getItemTitle( item ),\n\trender: TitleView,\n\tenableHiding: false,\n\tenableGlobalSearch: true,\n\tfilterBy: false,\n};\n\n/**\n * Title for the any entity with a `title` property.\n * For patterns, pages or templates you should use the respective field\n * because there are some differences in the rendering, labels, etc.\n */\nexport default titleField;\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;;AAEA,SAASC,YAAY,QAAQ,qBAAqB;AAClD,OAAOC,SAAS,MAAM,QAAQ;AAE9B,MAAMC,UAA+B,GAAG;EACvCC,IAAI,EAAE,MAAM;EACZC,EAAE,EAAE,OAAO;EACXC,KAAK,EAAEN,EAAE,CAAE,OAAQ,CAAC;EACpBO,WAAW,EAAEP,EAAE,CAAE,UAAW,CAAC;EAC7BQ,QAAQ,EAAEA,CAAE;IAAEC;EAAK,CAAC,KAAMR,YAAY,CAAEQ,IAAK,CAAC;EAC9CC,MAAM,EAAER,SAAS;EACjBS,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,QAAQ,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,eAAeV,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/author/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAE,0BAA0B,CAcnD,CAAC;AAEF;;GAEG;AACH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/author/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAE,0BAA0B,CAkBnD,CAAC;AAEF;;GAEG;AACH,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/comment-status/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;AAE5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CAuBxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/comment-status/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;AAE5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CAqBxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/date/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,SAAS,EAAE,KAAK,CAAE,QAAQ,CAK/B,CAAC;AAEF;;GAEG;AACH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/date/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,SAAS,EAAE,KAAK,CAAE,QAAQ,CAM/B,CAAC;AAEF;;GAEG;AACH,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/featured-image/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;AAI5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CAOxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/featured-image/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;AAI5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CAQxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,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,CAKhC,CAAC;AAEF;;GAEG;AACH,eAAe,UAAU,CAAC"}
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,CAMhC,CAAC;AAEF;;GAEG;AACH,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/page-title/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;AAI5C,QAAA,MAAM,cAAc,EAAE,KAAK,CAAE,QAAQ,CASpC,CAAC;AAEF;;GAEG;AACH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/page-title/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;AAI5C,QAAA,MAAM,cAAc,EAAE,KAAK,CAAE,QAAQ,CAUpC,CAAC;AAEF;;GAEG;AACH,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/parent/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;AAI5C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAE,QAAQ,CAOjC,CAAC;AAEF;;GAEG;AACH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/parent/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;AAI5C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAE,QAAQ,CAQjC,CAAC;AAEF;;GAEG;AACH,eAAe,WAAW,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;AAElD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAE,QAAQ,CAOnC,CAAC;AAEF;;GAEG;AACH,eAAe,aAAa,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;AAElD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAE,QAAQ,CAQnC,CAAC;AAEF;;GAEG;AACH,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/pattern-title/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAE,OAAO,CAStC,CAAC;AAEF;;GAEG;AACH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/pattern-title/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAE,OAAO,CAUtC,CAAC;AAEF;;GAEG;AACH,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/slug/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;AAI5C,QAAA,MAAM,SAAS,EAAE,KAAK,CAAE,QAAQ,CAM/B,CAAC;AAEF;;GAEG;AACH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/slug/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;AAI5C,QAAA,MAAM,SAAS,EAAE,KAAK,CAAE,QAAQ,CAO/B,CAAC;AAEF;;GAEG;AACH,eAAe,SAAS,CAAC"}
@@ -1,11 +1,31 @@
1
1
  declare const STATUSES: ({
2
2
  value: string;
3
- label: string;
3
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Draft">;
4
4
  icon: import("react").JSX.Element;
5
- description: string;
5
+ description: import("@wordpress/i18n/build-types/types").TranslatableText<"Not ready to publish.">;
6
6
  } | {
7
7
  value: string;
8
- label: string;
8
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Scheduled">;
9
+ icon: import("react").JSX.Element;
10
+ description: import("@wordpress/i18n/build-types/types").TranslatableText<"Publish automatically on a chosen date.">;
11
+ } | {
12
+ value: string;
13
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Pending Review">;
14
+ icon: import("react").JSX.Element;
15
+ description: import("@wordpress/i18n/build-types/types").TranslatableText<"Waiting for review before publishing.">;
16
+ } | {
17
+ value: string;
18
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Private">;
19
+ icon: import("react").JSX.Element;
20
+ description: import("@wordpress/i18n/build-types/types").TranslatableText<"Only visible to site admins and editors.">;
21
+ } | {
22
+ value: string;
23
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Published">;
24
+ icon: import("react").JSX.Element;
25
+ description: import("@wordpress/i18n/build-types/types").TranslatableText<"Visible to everyone.">;
26
+ } | {
27
+ value: string;
28
+ label: import("@wordpress/i18n/build-types/types").TranslatableText<"Trash">;
9
29
  icon: import("react").JSX.Element;
10
30
  description?: undefined;
11
31
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"status-elements.d.ts","sourceRoot":"","sources":["../../../src/fields/status/status-elements.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ;;;;;;;;;;IAgCb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"status-elements.d.ts","sourceRoot":"","sources":["../../../src/fields/status/status-elements.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/template/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAE,QAAQ,CAMnC,CAAC;AAEF;;GAEG;AACH,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/template/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAE,QAAQ,CAOnC,CAAC;AAEF;;GAEG;AACH,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/template-title/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;AAI5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CASxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/template-title/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;AAI5C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAE,QAAQ,CAUxC,CAAC;AAEF;;GAEG;AACH,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/title/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAE,UAAU,CASlC,CAAC;AAEF;;;;GAIG;AACH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/title/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAE,UAAU,CAUlC,CAAC;AAEF;;;;GAIG;AACH,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/fields",
3
- "version": "0.18.0",
3
+ "version": "0.19.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.26.0",
37
- "@wordpress/blob": "^4.26.0",
38
- "@wordpress/block-editor": "^14.21.0",
39
- "@wordpress/blocks": "^14.15.0",
40
- "@wordpress/components": "^29.12.0",
41
- "@wordpress/compose": "^7.26.0",
42
- "@wordpress/core-data": "^7.26.0",
43
- "@wordpress/data": "^10.26.0",
44
- "@wordpress/dataviews": "^4.22.0",
45
- "@wordpress/date": "^5.26.0",
46
- "@wordpress/element": "^6.26.0",
47
- "@wordpress/hooks": "^4.26.0",
48
- "@wordpress/html-entities": "^4.26.0",
49
- "@wordpress/i18n": "^5.26.0",
50
- "@wordpress/icons": "^10.26.0",
51
- "@wordpress/media-utils": "^5.26.0",
52
- "@wordpress/notices": "^5.26.0",
53
- "@wordpress/patterns": "^2.26.0",
54
- "@wordpress/primitives": "^4.26.0",
55
- "@wordpress/private-apis": "^1.26.0",
56
- "@wordpress/router": "^1.26.0",
57
- "@wordpress/url": "^4.26.0",
58
- "@wordpress/warning": "^3.26.0",
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.0.0",
41
+ "@wordpress/compose": "^7.27.0",
42
+ "@wordpress/core-data": "^7.27.0",
43
+ "@wordpress/data": "^10.27.0",
44
+ "@wordpress/dataviews": "^5.0.0",
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",
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": "35e26942820d8237771af0c58e45b4303f0497f1"
70
+ "gitHead": "abe06a6f2aef8d03c30ea9d5b3e133f041e523b1"
71
71
  }
@@ -94,7 +94,7 @@ const deletePostAction: Action< Template | TemplatePart | Pattern > = {
94
94
  getMessage: ( item ) => {
95
95
  return isResetting
96
96
  ? sprintf(
97
- /* translators: The template/part's name. */
97
+ /* translators: %s: The template/part's name. */
98
98
  __( '"%s" reset.' ),
99
99
  decodeEntities(
100
100
  getItemTitle( item )
@@ -98,7 +98,7 @@ const permanentlyDeletePost: Action< PostWithPermissions > = {
98
98
  let successMessage;
99
99
  if ( promiseResult.length === 1 ) {
100
100
  successMessage = sprintf(
101
- /* translators: The posts's title. */
101
+ /* translators: %s: The posts's title. */
102
102
  __( '"%s" permanently deleted.' ),
103
103
  getItemTitle( items[ 0 ] )
104
104
  );
@@ -130,7 +130,7 @@ const permanentlyDeletePost: Action< PostWithPermissions > = {
130
130
  }
131
131
  // If we were trying to permanently delete multiple posts
132
132
  } else {
133
- const errorMessages = new Set();
133
+ const errorMessages = new Set< string >();
134
134
  const failedPromises = promiseResult.filter(
135
135
  ( { status } ) => status === 'rejected'
136
136
  );
@@ -211,12 +211,12 @@ const resetPostAction: Action< Template | TemplatePart > = {
211
211
  createSuccessNotice(
212
212
  items.length > 1
213
213
  ? sprintf(
214
- /* translators: The number of items. */
215
- __( '%s items reset.' ),
214
+ /* translators: %d: The number of items. */
215
+ __( '%d items reset.' ),
216
216
  items.length
217
217
  )
218
218
  : sprintf(
219
- /* translators: The template/part's name. */
219
+ /* translators: %s: The template/part's name. */
220
220
  __( '"%s" reset.' ),
221
221
  getItemTitle( items[ 0 ] )
222
222
  ),
@@ -51,19 +51,19 @@ const restorePost: Action< PostWithPermissions > = {
51
51
  let successMessage;
52
52
  if ( posts.length === 1 ) {
53
53
  successMessage = sprintf(
54
- /* translators: The number of posts. */
54
+ /* translators: %s: The number of posts. */
55
55
  __( '"%s" has been restored.' ),
56
56
  getItemTitle( posts[ 0 ] )
57
57
  );
58
58
  } else if ( posts[ 0 ].type === 'page' ) {
59
59
  successMessage = sprintf(
60
- /* translators: The number of posts. */
60
+ /* translators: %d: The number of posts. */
61
61
  __( '%d pages have been restored.' ),
62
62
  posts.length
63
63
  );
64
64
  } else {
65
65
  successMessage = sprintf(
66
- /* translators: The number of posts. */
66
+ /* translators: %d: The number of posts. */
67
67
  __( '%d posts have been restored.' ),
68
68
  posts.length
69
69
  );
@@ -92,7 +92,7 @@ const restorePost: Action< PostWithPermissions > = {
92
92
  }
93
93
  // If we were trying to move multiple posts to the trash
94
94
  } else {
95
- const errorMessages = new Set();
95
+ const errorMessages = new Set< string >();
96
96
  const failedPromises = promiseResult.filter(
97
97
  ( { status } ) => status === 'rejected'
98
98
  );
@@ -101,16 +101,16 @@ const trashPost: Action< PostWithPermissions > = {
101
101
  let successMessage;
102
102
  if ( promiseResult.length === 1 ) {
103
103
  successMessage = sprintf(
104
- /* translators: The item's title. */
104
+ /* translators: %s: The item's title. */
105
105
  __( '"%s" moved to the trash.' ),
106
106
  getItemTitle( items[ 0 ] )
107
107
  );
108
108
  } else {
109
109
  successMessage = sprintf(
110
- /* translators: The number of items. */
110
+ /* translators: %d: The number of items. */
111
111
  _n(
112
- '%s item moved to the trash.',
113
- '%s items moved to the trash.',
112
+ '%d item moved to the trash.',
113
+ '%d items moved to the trash.',
114
114
  items.length
115
115
  ),
116
116
  items.length
@@ -138,7 +138,7 @@ const trashPost: Action< PostWithPermissions > = {
138
138
  }
139
139
  // If we were trying to delete multiple items.
140
140
  } else {
141
- const errorMessages = new Set();
141
+ const errorMessages = new Set< string >();
142
142
  const failedPromises = promiseResult.filter(
143
143
  ( { status } ) => status === 'rejected'
144
144
  );
@@ -17,8 +17,8 @@ const viewPostRevisions: Action< Post > = {
17
17
  const revisionsCount =
18
18
  items[ 0 ]._links?.[ 'version-history' ]?.[ 0 ]?.count ?? 0;
19
19
  return sprintf(
20
- /* translators: %s: number of revisions. */
21
- __( 'View revisions (%s)' ),
20
+ /* translators: %d: number of revisions. */
21
+ __( 'View revisions (%d)' ),
22
22
  revisionsCount
23
23
  );
24
24
  },
@@ -24,6 +24,10 @@ const authorField: Field< BasePostWithEmbeddedAuthor > = {
24
24
  ? nameA.localeCompare( nameB )
25
25
  : nameB.localeCompare( nameA );
26
26
  },
27
+
28
+ filterBy: {
29
+ operators: [ 'isAny', 'isNone' ],
30
+ },
27
31
  };
28
32
 
29
33
  /**