@brilo/base-blocks 0.1.36 → 0.1.38

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 (176) hide show
  1. package/build/.tsbuildinfo +1 -1
  2. package/build/blocks/anchor/anchor-group/factory.d.ts.map +1 -1
  3. package/build/blocks/anchor/anchor-group/factory.js +2 -1
  4. package/build/blocks/anchor/anchor-group/icon.d.ts +2 -0
  5. package/build/blocks/anchor/anchor-group/icon.d.ts.map +1 -0
  6. package/build/blocks/anchor/anchor-group/icon.js +2 -0
  7. package/build/blocks/anchor/anchor-group/index.d.ts.map +1 -1
  8. package/build/blocks/anchor/anchor-group/index.js +1 -0
  9. package/build/blocks/career/career-header/constants.d.ts +2 -0
  10. package/build/blocks/career/career-header/constants.d.ts.map +1 -0
  11. package/build/blocks/career/career-header/constants.js +1 -0
  12. package/build/blocks/career/career-header/edit.d.ts +1 -1
  13. package/build/blocks/career/career-header/edit.d.ts.map +1 -1
  14. package/build/blocks/career/career-header/edit.js +6 -3
  15. package/build/blocks/career/career-header/factory.d.ts.map +1 -1
  16. package/build/blocks/career/career-header/factory.js +3 -1
  17. package/build/blocks/career/career-header/index.d.ts +1 -0
  18. package/build/blocks/career/career-header/index.d.ts.map +1 -1
  19. package/build/blocks/career/career-header/index.js +4 -0
  20. package/build/blocks/career/job-position-group/index.d.ts.map +1 -1
  21. package/build/blocks/career/job-position-group/index.js +1 -0
  22. package/build/blocks/document/documents-grid/index.d.ts +1 -0
  23. package/build/blocks/document/documents-grid/index.d.ts.map +1 -1
  24. package/build/blocks/document/documents-grid/index.js +2 -0
  25. package/build/blocks/event/event-calendar-group/constants.d.ts +2 -0
  26. package/build/blocks/event/event-calendar-group/constants.d.ts.map +1 -0
  27. package/build/blocks/event/event-calendar-group/constants.js +2 -0
  28. package/build/blocks/event/event-calendar-group/edit.d.ts +6 -0
  29. package/build/blocks/event/event-calendar-group/edit.d.ts.map +1 -0
  30. package/build/blocks/event/event-calendar-group/edit.js +18 -0
  31. package/build/blocks/event/event-calendar-group/factory.d.ts +5 -0
  32. package/build/blocks/event/event-calendar-group/factory.d.ts.map +1 -0
  33. package/build/blocks/event/event-calendar-group/factory.js +25 -0
  34. package/build/blocks/event/event-calendar-group/icon.d.ts +2 -0
  35. package/build/blocks/event/event-calendar-group/icon.d.ts.map +1 -0
  36. package/build/blocks/event/event-calendar-group/icon.js +2 -0
  37. package/build/blocks/event/event-calendar-group/index.d.ts +6 -0
  38. package/build/blocks/event/event-calendar-group/index.d.ts.map +1 -0
  39. package/build/blocks/event/event-calendar-group/index.js +6 -0
  40. package/build/blocks/event/event-calendar-group/types.d.ts +12 -0
  41. package/build/blocks/event/event-calendar-group/types.d.ts.map +1 -0
  42. package/build/blocks/event/event-calendar-group/types.js +1 -0
  43. package/build/blocks/event/event-detail-content/constants.d.ts +2 -0
  44. package/build/blocks/event/event-detail-content/constants.d.ts.map +1 -0
  45. package/build/blocks/event/event-detail-content/constants.js +1 -0
  46. package/build/blocks/event/event-detail-content/edit.d.ts +6 -0
  47. package/build/blocks/event/event-detail-content/edit.d.ts.map +1 -0
  48. package/build/blocks/event/event-detail-content/edit.js +9 -0
  49. package/build/blocks/event/event-detail-content/factory.d.ts +5 -0
  50. package/build/blocks/event/event-detail-content/factory.d.ts.map +1 -0
  51. package/build/blocks/event/event-detail-content/factory.js +18 -0
  52. package/build/blocks/event/event-detail-content/icon.d.ts +2 -0
  53. package/build/blocks/event/event-detail-content/icon.d.ts.map +1 -0
  54. package/build/blocks/event/event-detail-content/icon.js +2 -0
  55. package/build/blocks/event/event-detail-content/index.d.ts +5 -0
  56. package/build/blocks/event/event-detail-content/index.d.ts.map +1 -0
  57. package/build/blocks/event/event-detail-content/index.js +5 -0
  58. package/build/blocks/event/event-detail-content/types.d.ts +6 -0
  59. package/build/blocks/event/event-detail-content/types.d.ts.map +1 -0
  60. package/build/blocks/event/event-detail-content/types.js +1 -0
  61. package/build/blocks/event/event-detail-header/constants.d.ts +2 -0
  62. package/build/blocks/event/event-detail-header/constants.d.ts.map +1 -0
  63. package/build/blocks/event/event-detail-header/constants.js +1 -0
  64. package/build/blocks/event/event-detail-header/edit.d.ts +6 -0
  65. package/build/blocks/event/event-detail-header/edit.d.ts.map +1 -0
  66. package/build/blocks/event/event-detail-header/edit.js +11 -0
  67. package/build/blocks/event/event-detail-header/factory.d.ts +5 -0
  68. package/build/blocks/event/event-detail-header/factory.d.ts.map +1 -0
  69. package/build/blocks/event/event-detail-header/factory.js +22 -0
  70. package/build/blocks/event/event-detail-header/icon.d.ts +2 -0
  71. package/build/blocks/event/event-detail-header/icon.d.ts.map +1 -0
  72. package/build/blocks/event/event-detail-header/icon.js +2 -0
  73. package/build/blocks/event/event-detail-header/index.d.ts +5 -0
  74. package/build/blocks/event/event-detail-header/index.d.ts.map +1 -0
  75. package/build/blocks/event/event-detail-header/index.js +5 -0
  76. package/build/blocks/event/event-detail-header/types.d.ts +9 -0
  77. package/build/blocks/event/event-detail-header/types.d.ts.map +1 -0
  78. package/build/blocks/event/event-detail-header/types.js +1 -0
  79. package/build/blocks/event/event-list-group/constants.d.ts +5 -0
  80. package/build/blocks/event/event-list-group/constants.d.ts.map +1 -0
  81. package/build/blocks/event/event-list-group/constants.js +5 -0
  82. package/build/blocks/event/event-list-group/edit.d.ts +6 -0
  83. package/build/blocks/event/event-list-group/edit.d.ts.map +1 -0
  84. package/build/blocks/event/event-list-group/edit.js +23 -0
  85. package/build/blocks/event/event-list-group/factory.d.ts +5 -0
  86. package/build/blocks/event/event-list-group/factory.d.ts.map +1 -0
  87. package/build/blocks/event/event-list-group/factory.js +28 -0
  88. package/build/blocks/event/event-list-group/icon.d.ts +2 -0
  89. package/build/blocks/event/event-list-group/icon.d.ts.map +1 -0
  90. package/build/blocks/event/event-list-group/icon.js +2 -0
  91. package/build/blocks/event/event-list-group/index.d.ts +8 -0
  92. package/build/blocks/event/event-list-group/index.d.ts.map +1 -0
  93. package/build/blocks/event/event-list-group/index.js +8 -0
  94. package/build/blocks/event/event-list-group/types.d.ts +30 -0
  95. package/build/blocks/event/event-list-group/types.d.ts.map +1 -0
  96. package/build/blocks/event/event-list-group/types.js +7 -0
  97. package/build/blocks/post/post-content/index.d.ts.map +1 -1
  98. package/build/blocks/post/post-content/index.js +1 -0
  99. package/build/blocks/sections/base-section/controls.d.ts.map +1 -1
  100. package/build/blocks/sections/base-section/edit.d.ts.map +1 -1
  101. package/build/blocks/sections/base-section/edit.js +3 -1
  102. package/build/blocks/sections/base-section/types.d.ts.map +1 -1
  103. package/build/components/Document/DocumentTermSelectModal.d.ts +8 -0
  104. package/build/components/Document/DocumentTermSelectModal.d.ts.map +1 -0
  105. package/build/components/Document/DocumentTermSelectModal.js +49 -0
  106. package/build/components/Event/EntitySelectModal.d.ts +27 -0
  107. package/build/components/Event/EntitySelectModal.d.ts.map +1 -0
  108. package/build/components/Event/EntitySelectModal.js +100 -0
  109. package/build/components/Event/EventSelectModal.d.ts +7 -0
  110. package/build/components/Event/EventSelectModal.d.ts.map +1 -0
  111. package/build/components/Event/EventSelectModal.js +42 -0
  112. package/build/components/Event/EventTermSelectModal.d.ts +7 -0
  113. package/build/components/Event/EventTermSelectModal.d.ts.map +1 -0
  114. package/build/components/Event/EventTermSelectModal.js +48 -0
  115. package/build/components/Post/PostSelectModal.d.ts +7 -0
  116. package/build/components/Post/PostSelectModal.d.ts.map +1 -0
  117. package/build/components/Post/PostSelectModal.js +42 -0
  118. package/build/components/Post/PostTermSelectModal.d.ts +8 -0
  119. package/build/components/Post/PostTermSelectModal.d.ts.map +1 -0
  120. package/build/components/Post/PostTermSelectModal.js +49 -0
  121. package/build/index.d.ts +11 -1
  122. package/build/index.d.ts.map +1 -1
  123. package/build/index.js +7 -1
  124. package/build/types.d.ts +4 -0
  125. package/build/types.d.ts.map +1 -1
  126. package/package.json +1 -1
  127. package/src/blocks/anchor/anchor-group/editor.scss +1 -1
  128. package/src/blocks/anchor/anchor-group/factory.tsx +2 -1
  129. package/src/blocks/anchor/anchor-group/icon.tsx +23 -0
  130. package/src/blocks/anchor/anchor-group/index.ts +1 -0
  131. package/src/blocks/anchor/anchor-item/editor.scss +1 -1
  132. package/src/blocks/career/career-header/constants.ts +1 -0
  133. package/src/blocks/career/career-header/edit.tsx +5 -2
  134. package/src/blocks/career/career-header/factory.tsx +2 -1
  135. package/src/blocks/career/career-header/index.ts +4 -0
  136. package/src/blocks/career/job-position-group/index.ts +1 -0
  137. package/src/blocks/document/documents-grid/index.ts +2 -0
  138. package/src/blocks/event/event-calendar-group/constants.ts +3 -0
  139. package/src/blocks/event/event-calendar-group/edit.tsx +60 -0
  140. package/src/blocks/event/event-calendar-group/editor.scss +13 -0
  141. package/src/blocks/event/event-calendar-group/factory.tsx +30 -0
  142. package/src/blocks/event/event-calendar-group/icon.tsx +13 -0
  143. package/src/blocks/event/event-calendar-group/index.tsx +10 -0
  144. package/src/blocks/event/event-calendar-group/types.ts +13 -0
  145. package/src/blocks/event/event-detail-content/constants.ts +1 -0
  146. package/src/blocks/event/event-detail-content/edit.tsx +24 -0
  147. package/src/blocks/event/event-detail-content/factory.tsx +22 -0
  148. package/src/blocks/event/event-detail-content/icon.tsx +9 -0
  149. package/src/blocks/event/event-detail-content/index.ts +9 -0
  150. package/src/blocks/event/event-detail-content/types.ts +5 -0
  151. package/src/blocks/event/event-detail-header/constants.ts +2 -0
  152. package/src/blocks/event/event-detail-header/edit.tsx +49 -0
  153. package/src/blocks/event/event-detail-header/factory.tsx +26 -0
  154. package/src/blocks/event/event-detail-header/icon.tsx +8 -0
  155. package/src/blocks/event/event-detail-header/index.ts +9 -0
  156. package/src/blocks/event/event-detail-header/types.ts +9 -0
  157. package/src/blocks/event/event-list-group/constants.ts +6 -0
  158. package/src/blocks/event/event-list-group/edit.tsx +84 -0
  159. package/src/blocks/event/event-list-group/editor.scss +9 -0
  160. package/src/blocks/event/event-list-group/factory.tsx +33 -0
  161. package/src/blocks/event/event-list-group/icon.tsx +27 -0
  162. package/src/blocks/event/event-list-group/index.tsx +12 -0
  163. package/src/blocks/event/event-list-group/types.ts +27 -0
  164. package/src/blocks/post/post-content/index.ts +1 -0
  165. package/src/blocks/sections/base-section/controls.tsx +5 -1
  166. package/src/blocks/sections/base-section/edit.tsx +3 -1
  167. package/src/blocks/sections/base-section/types.ts +9 -3
  168. package/src/components/Document/DocumentTermSelectModal.tsx +60 -0
  169. package/src/components/Event/EntitySelectModal.tsx +249 -0
  170. package/src/components/Event/EventSelectModal.tsx +51 -0
  171. package/src/components/Event/EventTermSelectModal.tsx +58 -0
  172. package/src/components/Post/PostSelectModal.tsx +51 -0
  173. package/src/components/Post/PostTermSelectModal.tsx +60 -0
  174. package/src/editor.scss +2 -0
  175. package/src/index.ts +44 -1
  176. package/src/types.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/anchor/anchor-group/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAEzD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,aAAa,CAAA;AAE7D,OAAO,KAAK,EAAC,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAEtE,YAAY,EAAC,qBAAqB,EAAE,kBAAkB,EAAC,CAAA;AAEvD,wBAAgB,sBAAsB,CACpC,eAAe,SAAS,WAAW,GAAG,OAAO,cAAc,EAC3D,WAAW,SAAS,WAAW,GAAG,OAAO,iBAAiB,EAE1D,OAAO,EAAE,kBAAkB,CAAC,eAAe,EAAE,WAAW,CAAC,GACxD,kBAAkB,CAAC,qBAAqB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CA2B3G"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/anchor/anchor-group/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAEzD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,aAAa,CAAA;AAE7D,OAAO,KAAK,EAAC,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAGtE,YAAY,EAAC,qBAAqB,EAAE,kBAAkB,EAAC,CAAA;AAEvD,wBAAgB,sBAAsB,CACpC,eAAe,SAAS,WAAW,GAAG,OAAO,cAAc,EAC3D,WAAW,SAAS,WAAW,GAAG,OAAO,iBAAiB,EAE1D,OAAO,EAAE,kBAAkB,CAAC,eAAe,EAAE,WAAW,CAAC,GACxD,kBAAkB,CAAC,qBAAqB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CA2B3G"}
@@ -3,6 +3,7 @@ import { InnerBlocks } from '@wordpress/block-editor';
3
3
  import { __ } from '@wordpress/i18n';
4
4
  import { ANCHOR_ALIGNMENTS, ANCHOR_COLUMNS } from './constants';
5
5
  import { createAnchorGroupEdit } from './edit';
6
+ import { icon as defaultIcon } from './icon';
6
7
  export function createAnchorGroupBlock(options) {
7
8
  var _a, _b, _c, _d, _e;
8
9
  const columnsOptions = (_a = options.columnsOptions) !== null && _a !== void 0 ? _a : ANCHOR_COLUMNS;
@@ -13,7 +14,7 @@ export function createAnchorGroupBlock(options) {
13
14
  description: options.description,
14
15
  category: (_d = options.category) !== null && _d !== void 0 ? _d : 'layout',
15
16
  ...(options.parent && { parent: options.parent }),
16
- icon: (_e = options.icon) !== null && _e !== void 0 ? _e : 'anchor',
17
+ icon: (_e = options.icon) !== null && _e !== void 0 ? _e : { src: defaultIcon },
17
18
  supports: { html: false, customClassName: false },
18
19
  attributes: {
19
20
  columns: {
@@ -0,0 +1,2 @@
1
+ export declare const icon: import("react").JSX.Element;
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/anchor/anchor-group/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAsBhB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M4 4H9V5H4V4Z", fill: "black" }), _jsx("path", { d: "M10 4H16V5H10V4Z", fill: "black" }), _jsx("path", { d: "M12 2C12 1.44772 12.4477 1 13 1H14C14.5523 1 15 1.44772 15 2C15 2.55228 14.5523 3 14 3H13C12.4477 3 12 2.55228 12 2Z", fill: "black" }), _jsx("path", { d: "M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2C11 2.55228 10.5523 3 10 3H6C5.44772 3 5 2.55228 5 2Z", fill: "black" }), _jsx("rect", { x: "11.5", y: "7.5", width: "8", height: "4", stroke: "black", fill: "none" }), _jsx("path", { d: "M16 9H18V10H16V9Z", fill: "#357AB5" }), _jsx("path", { d: "M13 9H14V10H13V9Z", fill: "black" }), _jsx("rect", { x: "0.5", y: "7.5", width: "8", height: "4", stroke: "black", fill: "none" }), _jsx("path", { d: "M5 9H7V10H5V9Z", fill: "#357AB5" }), _jsx("path", { d: "M2 9H3V10H2V9Z", fill: "black" }), _jsx("rect", { x: "11.5", y: "14.5", width: "8", height: "4", stroke: "black", fill: "none" }), _jsx("path", { d: "M16 16H18V17H16V16Z", fill: "#357AB5" }), _jsx("path", { d: "M13 16H14V17H13V16Z", fill: "black" }), _jsx("rect", { x: "0.5", y: "14.5", width: "8", height: "4", stroke: "black", fill: "none" }), _jsx("path", { d: "M5 16H7V17H5V16Z", fill: "#357AB5" }), _jsx("path", { d: "M2 16H3V17H2V16Z", fill: "black" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/anchor/anchor-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AACtG,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AAChD,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,aAAa,CAAA;AAE7D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,mBAAmB,EAAE,kBAIjC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/anchor/anchor-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AACtG,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AAChD,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,aAAa,CAAA;AAE7D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,mBAAmB,EAAE,kBAKjC,CAAA"}
@@ -4,4 +4,5 @@ export const anchorGroupDefaults = {
4
4
  name: 'brilo/anchor-group',
5
5
  allowedBlocks: ['brilo/anchor-item'],
6
6
  template: [['brilo/anchor-item', {}]],
7
+ parent: ['brilo/base-section'],
7
8
  };
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_ALLOWED_BLOCKS: string[];
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAA2B,CAAA"}
@@ -0,0 +1 @@
1
+ export const DEFAULT_ALLOWED_BLOCKS = ['brilo/button-group'];
@@ -1,5 +1,5 @@
1
1
  import type { CareerHeaderAttributes, CareerHeaderOptions } from './types';
2
- export declare function createCareerHeaderEdit(_options: CareerHeaderOptions): ({ attributes, setAttributes, }: {
2
+ export declare function createCareerHeaderEdit(options: CareerHeaderOptions): ({ attributes, setAttributes, }: {
3
3
  attributes: CareerHeaderAttributes;
4
4
  setAttributes: (a: Partial<CareerHeaderAttributes>) => void;
5
5
  }) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/edit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAExE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,mBAAmB,oCAI/D;IACD,UAAU,EAAE,sBAAsB,CAAA;IAClC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAA;CAC5D,iCAgDF"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/edit.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAExE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,oCAI9D;IACD,UAAU,EAAE,sBAAsB,CAAA;IAClC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAA;CAC5D,iCAkDF"}
@@ -1,11 +1,14 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
2
+ import { InspectorControls, useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
3
3
  import { PanelBody, ToggleControl } from '@wordpress/components';
4
4
  import { __ } from '@wordpress/i18n';
5
- export function createCareerHeaderEdit(_options) {
5
+ import { DEFAULT_ALLOWED_BLOCKS } from './constants';
6
+ export function createCareerHeaderEdit(options) {
6
7
  return function Edit({ attributes, setAttributes, }) {
8
+ var _a;
7
9
  const { showExcerpt, showLocation, showSalary, showBenefits, showEmploymentType } = attributes;
8
10
  const blockProps = useBlockProps({ className: 'wp-block-section' });
9
- return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsxs(PanelBody, { title: __('Zobrazené údaje', 'brilo-blocks'), initialOpen: true, children: [_jsx(ToggleControl, { label: __('Zobrazit perex', 'brilo-blocks'), checked: showExcerpt, onChange: (value) => setAttributes({ showExcerpt: value }) }), _jsx(ToggleControl, { label: __('Zobrazit lokalitu', 'brilo-blocks'), checked: showLocation, onChange: (value) => setAttributes({ showLocation: value }) }), _jsx(ToggleControl, { label: __('Zobrazit plat', 'brilo-blocks'), checked: showSalary, onChange: (value) => setAttributes({ showSalary: value }) }), _jsx(ToggleControl, { label: __('Zobrazit benefity', 'brilo-blocks'), checked: showBenefits, onChange: (value) => setAttributes({ showBenefits: value }) }), _jsx(ToggleControl, { label: __('Zobrazit typ úvazku', 'brilo-blocks'), checked: showEmploymentType, onChange: (value) => setAttributes({ showEmploymentType: value }) })] }) }), _jsx("div", { ...blockProps, children: _jsxs("div", { className: "components-placeholder", children: [_jsx("div", { className: "components-placeholder__label", children: __('Hlavička kariéry', 'brilo-blocks') }), _jsx("div", { className: "components-placeholder__instructions", children: __('Zobrazí data aktuální pozice — název, perex, lokalitu, plat, benefity a typ úvazku.', 'brilo-blocks') })] }) })] }));
11
+ const innerBlocksProps = useInnerBlocksProps({}, { allowedBlocks: (_a = options.allowedBlocks) !== null && _a !== void 0 ? _a : DEFAULT_ALLOWED_BLOCKS });
12
+ return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsxs(PanelBody, { title: __('Zobrazené údaje', 'brilo-blocks'), initialOpen: true, children: [_jsx(ToggleControl, { label: __('Zobrazit perex', 'brilo-blocks'), checked: showExcerpt, onChange: (value) => setAttributes({ showExcerpt: value }) }), _jsx(ToggleControl, { label: __('Zobrazit lokalitu', 'brilo-blocks'), checked: showLocation, onChange: (value) => setAttributes({ showLocation: value }) }), _jsx(ToggleControl, { label: __('Zobrazit plat', 'brilo-blocks'), checked: showSalary, onChange: (value) => setAttributes({ showSalary: value }) }), _jsx(ToggleControl, { label: __('Zobrazit benefity', 'brilo-blocks'), checked: showBenefits, onChange: (value) => setAttributes({ showBenefits: value }) }), _jsx(ToggleControl, { label: __('Zobrazit typ úvazku', 'brilo-blocks'), checked: showEmploymentType, onChange: (value) => setAttributes({ showEmploymentType: value }) })] }) }), _jsxs("div", { ...blockProps, children: [_jsxs("div", { className: "components-placeholder", children: [_jsx("div", { className: "components-placeholder__label", children: __('Hlavička kariéry', 'brilo-blocks') }), _jsx("div", { className: "components-placeholder__instructions", children: __('Zobrazí data aktuální pozice — název, perex, lokalitu, plat, benefity a typ úvazku.', 'brilo-blocks') })] }), _jsx("div", { ...innerBlocksProps })] })] }));
10
13
  };
11
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAExE,YAAY,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,CAAA;AAEzD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAmBhH"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAExE,YAAY,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,CAAA;AAEzD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAmBhH"}
@@ -1,3 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { InnerBlocks } from '@wordpress/block-editor';
1
3
  import { __ } from '@wordpress/i18n';
2
4
  import { createCareerHeaderEdit } from './edit';
3
5
  import { icon as defaultIcon } from './icon';
@@ -19,6 +21,6 @@ export function createCareerHeaderBlock(options) {
19
21
  showEmploymentType: { type: 'boolean', default: true },
20
22
  },
21
23
  edit: createCareerHeaderEdit(options),
22
- save: () => null,
24
+ save: () => _jsx(InnerBlocks.Content, {}),
23
25
  };
24
26
  }
@@ -1,5 +1,6 @@
1
1
  export type { CareerHeaderAttributes, CareerHeaderOptions } from './types';
2
2
  export { createCareerHeaderBlock } from './factory';
3
+ export { DEFAULT_ALLOWED_BLOCKS } from './constants';
3
4
  import type { CareerHeaderOptions } from './types';
4
5
  export declare const careerHeaderDefaults: CareerHeaderOptions;
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,WAAW,CAAA;AAEjD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,oBAAoB,EAAE,mBAElC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/career-header/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,sBAAsB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAA;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,WAAW,CAAA;AACjD,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAA;AAGlD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,oBAAoB,EAAE,mBAIlC,CAAA"}
@@ -1,4 +1,8 @@
1
1
  export { createCareerHeaderBlock } from './factory';
2
+ export { DEFAULT_ALLOWED_BLOCKS } from './constants';
3
+ import { DEFAULT_ALLOWED_BLOCKS } from './constants';
2
4
  export const careerHeaderDefaults = {
3
5
  name: 'brilo/career-header',
6
+ parent: ['brilo/base-section'],
7
+ allowedBlocks: DEFAULT_ALLOWED_BLOCKS,
4
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/job-position-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,SAAS,CAAA;AAChB,OAAO,EAAC,2BAA2B,EAAC,MAAM,WAAW,CAAA;AACrD,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,wBAAwB,EAAE,uBAEtC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/career/job-position-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,SAAS,CAAA;AAChB,OAAO,EAAC,2BAA2B,EAAC,MAAM,WAAW,CAAA;AACrD,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,wBAAwB,EAAE,uBAGtC,CAAA"}
@@ -2,4 +2,5 @@ export { createJobPositionGroupBlock } from './factory';
2
2
  export { JobPositionsSelectModal } from './JobPositionsSelectModal';
3
3
  export const jobPositionGroupDefaults = {
4
4
  name: 'brilo/job-position-group',
5
+ parent: ['brilo/base-section'],
5
6
  };
@@ -1,6 +1,7 @@
1
1
  export type { DocumentsGridAttributes, DocumentsGridOptions, DocumentsGridListingStyle, DocumentsGridMode, DocumentsGridSortBy, } from './types';
2
2
  export { createDocumentsGridBlock } from './factory';
3
3
  export { DocumentsSelectModal } from './DocumentsSelectModal';
4
+ export { DocumentTermSelectModal } from '../../../components/Document/DocumentTermSelectModal';
4
5
  import type { DocumentsGridOptions } from './types';
5
6
  export declare const documentsGridDefaults: DocumentsGridOptions;
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/document/documents-grid/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAA;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAE3D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,qBAAqB,EAAE,oBAEnC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/document/documents-grid/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAC,wBAAwB,EAAC,MAAM,WAAW,CAAA;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAA;AAErF,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,qBAAqB,EAAE,oBAGnC,CAAA"}
@@ -1,5 +1,7 @@
1
1
  export { createDocumentsGridBlock } from './factory';
2
2
  export { DocumentsSelectModal } from './DocumentsSelectModal';
3
+ export { DocumentTermSelectModal } from '../../../components/Document/DocumentTermSelectModal';
3
4
  export const documentsGridDefaults = {
4
5
  name: 'brilo/documents-grid',
6
+ parent: ['brilo/base-section'],
5
7
  };
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_EMPTY_MESSAGE: import("@wordpress/i18n").TransformedText<"Nebyly nalezeny žádné události.">;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,8EAAwD,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ export const DEFAULT_EMPTY_MESSAGE = __('Nebyly nalezeny žádné události.', 'brilo-blocks');
@@ -0,0 +1,6 @@
1
+ import type { EventCalendarGroupAttributes, EventCalendarGroupOptions } from './types';
2
+ export declare function createEventCalendarGroupEdit(options: EventCalendarGroupOptions): ({ attributes, setAttributes, }: {
3
+ attributes: EventCalendarGroupAttributes;
4
+ setAttributes: (a: Partial<EventCalendarGroupAttributes>) => void;
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/edit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAGpF,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,yBAAyB,oCAI1E;IACD,UAAU,EAAE,4BAA4B,CAAA;IACxC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAA;CAClE,iCA8CF"}
@@ -0,0 +1,18 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
3
+ import { PanelBody, ToggleControl, TextControl, __experimentalInputControl as InputControl } from '@wordpress/components';
4
+ import { __ } from '@wordpress/i18n';
5
+ import { Icon, calendar } from '@wordpress/icons';
6
+ export function createEventCalendarGroupEdit(options) {
7
+ return function Edit({ attributes, setAttributes, }) {
8
+ var _a;
9
+ const { showNow, month, selectedCategories, emptyMessage } = attributes;
10
+ const blockProps = useBlockProps({ className: 'g-event-calendar wp-block-section' });
11
+ return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsxs(PanelBody, { title: __('Nastavení kalendáře', 'brilo-blocks'), initialOpen: true, children: [_jsx(ToggleControl, { label: __('Zobrazit aktuální měsíc', 'brilo-blocks'), checked: showNow, onChange: (value) => setAttributes({ showNow: value }) }), !showNow && (_jsx(InputControl, { label: 'Výběr měsíce a roku', type: 'month', value: month, onChange: (value) => setAttributes({ month: value }) })), _jsx(TextControl, { label: __('Zpráva při prázdném výsledku', 'brilo-blocks'), value: emptyMessage, onChange: (value) => setAttributes({ emptyMessage: value }) })] }) }), _jsxs("div", { ...blockProps, children: [_jsx(Icon, { icon: calendar }), _jsx("div", { className: "g-event-calendar__label", children: __('Kalendář událostí', 'brilo-blocks') }), _jsx("div", { className: "g-event-calendar__instructions", children: showNow
12
+ ? __('Zobrazuje události pro aktuální měsíc.', 'brilo-blocks')
13
+ : `${__('Zobrazuje události pro', 'brilo-blocks')} ${month}` }), (_a = options.renderCategoryControl) === null || _a === void 0 ? void 0 : _a.call(options, {
14
+ selectedItems: selectedCategories,
15
+ onChange: (ids) => setAttributes({ selectedCategories: ids }),
16
+ })] })] }));
17
+ };
18
+ }
@@ -0,0 +1,5 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { EventCalendarGroupAttributes, EventCalendarGroupOptions } from './types';
3
+ export type { EventCalendarGroupAttributes, EventCalendarGroupOptions };
4
+ export declare function createEventCalendarGroupBlock(options: EventCalendarGroupOptions): BlockConfiguration<EventCalendarGroupAttributes>;
5
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAEpF,YAAY,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,CAAA;AAErE,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CAAC,4BAA4B,CAAC,CAoBlI"}
@@ -0,0 +1,25 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ import { DEFAULT_EMPTY_MESSAGE } from './constants';
3
+ import { createEventCalendarGroupEdit } from './edit';
4
+ import { icon as defaultIcon } from './icon';
5
+ export function createEventCalendarGroupBlock(options) {
6
+ var _a, _b, _c, _d;
7
+ const emptyMessage = (_a = options.emptyMessage) !== null && _a !== void 0 ? _a : DEFAULT_EMPTY_MESSAGE;
8
+ return {
9
+ name: options.name,
10
+ title: (_b = options.title) !== null && _b !== void 0 ? _b : __('Kalendář událostí', 'brilo-blocks'),
11
+ description: options.description,
12
+ category: (_c = options.category) !== null && _c !== void 0 ? _c : 'layout',
13
+ icon: (_d = options.icon) !== null && _d !== void 0 ? _d : { src: defaultIcon },
14
+ ...(options.parent && { parent: options.parent }),
15
+ supports: { html: false, customClassName: false },
16
+ attributes: {
17
+ showNow: { type: 'boolean', default: true },
18
+ month: { type: 'string', default: '' },
19
+ selectedCategories: { type: 'array', default: [] },
20
+ emptyMessage: { type: 'string', default: emptyMessage },
21
+ },
22
+ edit: createEventCalendarGroupEdit(options),
23
+ save: () => null,
24
+ };
25
+ }
@@ -0,0 +1,2 @@
1
+ export declare const icon: import("react").JSX.Element;
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAYhB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const icon = (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: _jsx("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z" }) }));
@@ -0,0 +1,6 @@
1
+ export type { EventCalendarGroupAttributes, EventCalendarGroupOptions } from './types';
2
+ export { createEventCalendarGroupBlock } from './factory';
3
+ export { EventTermSelectModal } from '../../../components/Event/EventTermSelectModal';
4
+ import type { EventCalendarGroupOptions } from './types';
5
+ export declare const eventCalendarGroupDefaults: EventCalendarGroupOptions;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AACpF,OAAO,EAAC,6BAA6B,EAAC,MAAM,WAAW,CAAA;AACvD,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAA;AAE5E,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAEtD,eAAO,MAAM,0BAA0B,EAAE,yBAGxC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { createEventCalendarGroupBlock } from './factory';
2
+ export { EventTermSelectModal } from '../../../components/Event/EventTermSelectModal';
3
+ export const eventCalendarGroupDefaults = {
4
+ name: 'brilo/event-calendar-group',
5
+ parent: ['brilo/base-section'],
6
+ };
@@ -0,0 +1,12 @@
1
+ import type { BriloBlockType, SelectControlProps } from '../../../types';
2
+ export interface EventCalendarGroupAttributes extends Record<string, unknown> {
3
+ showNow: boolean;
4
+ month: string;
5
+ selectedCategories: number[];
6
+ emptyMessage: string;
7
+ }
8
+ export interface EventCalendarGroupOptions extends BriloBlockType {
9
+ emptyMessage?: string;
10
+ renderCategoryControl?: (props: SelectControlProps) => JSX.Element;
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-calendar-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/D,MAAM,WAAW,4BAA6B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG,CAAC,OAAO,CAAA;CACnE"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { EventDetailContentAttributes, EventDetailContentOptions } from './types';
2
+ export declare function createEventDetailContentEdit(_options: EventDetailContentOptions): ({ attributes: _attributes, setAttributes: _setAttributes, }: {
3
+ attributes: EventDetailContentAttributes;
4
+ setAttributes: (a: Partial<EventDetailContentAttributes>) => void;
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/edit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAEpF,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,yBAAyB,iEAI3E;IACD,UAAU,EAAE,4BAA4B,CAAA;IACxC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAA;CAClE,iCAYF"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useBlockProps } from '@wordpress/block-editor';
3
+ import { __ } from '@wordpress/i18n';
4
+ export function createEventDetailContentEdit(_options) {
5
+ return function Edit({ attributes: _attributes, setAttributes: _setAttributes, }) {
6
+ const blockProps = useBlockProps({ className: 'event-detail-content wp-block-section' });
7
+ return (_jsx("div", { ...blockProps, children: _jsxs("div", { className: "event-detail-content", children: [_jsx("div", { className: "event-detail-content__label", children: __('Obsah detailu události', 'brilo-blocks') }), _jsx("div", { className: "event-detail-content__instructions", children: __('Zástupný blok pro obsah události.', 'brilo-blocks') })] }) }));
8
+ };
9
+ }
@@ -0,0 +1,5 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { EventDetailContentAttributes, EventDetailContentOptions } from './types';
3
+ export type { EventDetailContentAttributes, EventDetailContentOptions };
4
+ export declare function createEventDetailContentBlock(options: EventDetailContentOptions): BlockConfiguration<EventDetailContentAttributes>;
5
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAEpF,YAAY,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,CAAA;AAErE,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CAAC,4BAA4B,CAAC,CAalI"}
@@ -0,0 +1,18 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ import { createEventDetailContentEdit } from './edit';
3
+ import { icon as defaultIcon } from './icon';
4
+ export function createEventDetailContentBlock(options) {
5
+ var _a, _b, _c;
6
+ return {
7
+ name: options.name,
8
+ title: (_a = options.title) !== null && _a !== void 0 ? _a : __('Obsah detailu události', 'brilo-blocks'),
9
+ description: options.description,
10
+ category: (_b = options.category) !== null && _b !== void 0 ? _b : 'layout',
11
+ icon: (_c = options.icon) !== null && _c !== void 0 ? _c : { src: defaultIcon },
12
+ ...(options.parent && { parent: options.parent }),
13
+ supports: { html: false, customClassName: false },
14
+ attributes: {},
15
+ edit: createEventDetailContentEdit(options),
16
+ save: () => null,
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ export declare const icon: import("react").JSX.Element;
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAQhB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "3", y: "2", width: "14", height: "16", rx: "1", stroke: "black", fill: "none" }), _jsx("line", { x1: "6", y1: "6", x2: "14", y2: "6", stroke: "black" }), _jsx("line", { x1: "6", y1: "9", x2: "14", y2: "9", stroke: "black" }), _jsx("line", { x1: "6", y1: "12", x2: "14", y2: "12", stroke: "black" }), _jsx("line", { x1: "6", y1: "15", x2: "10", y2: "15", stroke: "black" })] }));
@@ -0,0 +1,5 @@
1
+ export type { EventDetailContentAttributes, EventDetailContentOptions } from './types';
2
+ export { createEventDetailContentBlock } from './factory';
3
+ import type { EventDetailContentOptions } from './types';
4
+ export declare const eventDetailContentDefaults: EventDetailContentOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,4BAA4B,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAA;AACpF,OAAO,EAAC,6BAA6B,EAAC,MAAM,WAAW,CAAA;AAEvD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAA;AAEtD,eAAO,MAAM,0BAA0B,EAAE,yBAGxC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { createEventDetailContentBlock } from './factory';
2
+ export const eventDetailContentDefaults = {
3
+ name: 'brilo/event-detail-content',
4
+ parent: ['brilo/base-section'],
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { BriloBlockType } from '../../../types';
2
+ export interface EventDetailContentAttributes extends Record<string, unknown> {
3
+ }
4
+ export interface EventDetailContentOptions extends BriloBlockType {
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,4BAA6B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAEhF,MAAM,WAAW,yBAA0B,SAAQ,cAAc;CAAG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { EventDetailHeaderAttributes, EventDetailHeaderOptions } from './types';
2
+ export declare function createEventDetailHeaderEdit(_options: EventDetailHeaderOptions): ({ attributes, setAttributes, }: {
3
+ attributes: EventDetailHeaderAttributes;
4
+ setAttributes: (a: Partial<EventDetailHeaderAttributes>) => void;
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/edit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAElF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,wBAAwB,oCAIzE;IACD,UAAU,EAAE,2BAA2B,CAAA;IACvC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,CAAA;CACjE,iCAoCF"}
@@ -0,0 +1,11 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
3
+ import { PanelBody, ToggleControl } from '@wordpress/components';
4
+ import { __ } from '@wordpress/i18n';
5
+ export function createEventDetailHeaderEdit(_options) {
6
+ return function Edit({ attributes, setAttributes, }) {
7
+ const { showDate, showPlace, showPrice } = attributes;
8
+ const blockProps = useBlockProps({ className: 'event-detail-header wp-block-section' });
9
+ return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsxs(PanelBody, { title: __('Nastavení hlavičky', 'brilo-blocks'), initialOpen: true, children: [_jsx(ToggleControl, { label: __('Zobrazit datum', 'brilo-blocks'), checked: showDate, onChange: (value) => setAttributes({ showDate: value }) }), _jsx(ToggleControl, { label: __('Zobrazit místo', 'brilo-blocks'), checked: showPlace, onChange: (value) => setAttributes({ showPlace: value }) }), _jsx(ToggleControl, { label: __('Zobrazit cenu', 'brilo-blocks'), checked: showPrice, onChange: (value) => setAttributes({ showPrice: value }) })] }) }), _jsx("div", { ...blockProps, children: _jsxs("div", { className: "event-detail-header", children: [_jsx("div", { className: "event-detail-header__label", children: __('Hlavička detailu události', 'brilo-blocks') }), _jsx("div", { className: "event-detail-header__instructions", children: __('Zástupný blok pro hlavičku události.', 'brilo-blocks') })] }) })] }));
10
+ };
11
+ }
@@ -0,0 +1,5 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { EventDetailHeaderAttributes, EventDetailHeaderOptions } from './types';
3
+ export type { EventDetailHeaderAttributes, EventDetailHeaderOptions };
4
+ export declare function createEventDetailHeaderBlock(options: EventDetailHeaderOptions): BlockConfiguration<EventDetailHeaderAttributes>;
5
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAElF,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,CAAA;AAEnE,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,wBAAwB,GAAG,kBAAkB,CAAC,2BAA2B,CAAC,CAiB/H"}
@@ -0,0 +1,22 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ import { createEventDetailHeaderEdit } from './edit';
3
+ import { icon as defaultIcon } from './icon';
4
+ export function createEventDetailHeaderBlock(options) {
5
+ var _a, _b, _c;
6
+ return {
7
+ name: options.name,
8
+ title: (_a = options.title) !== null && _a !== void 0 ? _a : __('Hlavička detailu události', 'brilo-blocks'),
9
+ description: options.description,
10
+ category: (_b = options.category) !== null && _b !== void 0 ? _b : 'layout',
11
+ icon: (_c = options.icon) !== null && _c !== void 0 ? _c : { src: defaultIcon },
12
+ ...(options.parent && { parent: options.parent }),
13
+ supports: { html: false, customClassName: false },
14
+ attributes: {
15
+ showDate: { type: 'boolean', default: true },
16
+ showPlace: { type: 'boolean', default: true },
17
+ showPrice: { type: 'boolean', default: true },
18
+ },
19
+ edit: createEventDetailHeaderEdit(options),
20
+ save: () => null,
21
+ };
22
+ }
@@ -0,0 +1,2 @@
1
+ export declare const icon: import("react").JSX.Element;
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAOhB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "2", y: "3", width: "16", height: "4", rx: "1", stroke: "black", fill: "none" }), _jsx("line", { x1: "2", y1: "10", x2: "14", y2: "10", stroke: "black" }), _jsx("line", { x1: "2", y1: "13", x2: "18", y2: "13", stroke: "black" }), _jsx("line", { x1: "2", y1: "16", x2: "10", y2: "16", stroke: "black" })] }));
@@ -0,0 +1,5 @@
1
+ export type { EventDetailHeaderAttributes, EventDetailHeaderOptions } from './types';
2
+ export { createEventDetailHeaderBlock } from './factory';
3
+ import type { EventDetailHeaderOptions } from './types';
4
+ export declare const eventDetailHeaderDefaults: EventDetailHeaderOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAClF,OAAO,EAAC,4BAA4B,EAAC,MAAM,WAAW,CAAA;AAEtD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,yBAAyB,EAAE,wBAGvC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { createEventDetailHeaderBlock } from './factory';
2
+ export const eventDetailHeaderDefaults = {
3
+ name: 'brilo/event-detail-header',
4
+ parent: ['brilo/base-section'],
5
+ };
@@ -0,0 +1,9 @@
1
+ import type { BriloBlockType } from '../../../types';
2
+ export interface EventDetailHeaderAttributes extends Record<string, unknown> {
3
+ showDate: boolean;
4
+ showPlace: boolean;
5
+ showPrice: boolean;
6
+ }
7
+ export interface EventDetailHeaderOptions extends BriloBlockType {
8
+ }
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-detail-header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1E,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc;CAAG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const DEFAULT_EMPTY_MESSAGE: import("@wordpress/i18n").TransformedText<"Nebyly nalezeny žádné události.">;
2
+ export declare const EVENTS_PER_PAGE_MIN = 1;
3
+ export declare const EVENTS_PER_PAGE_MAX = 18;
4
+ export declare const EVENTS_PER_PAGE_DEFAULT = 6;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/event/event-list-group/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,8EAAwD,CAAA;AAC1F,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,eAAO,MAAM,uBAAuB,IAAI,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { __ } from '@wordpress/i18n';
2
+ export const DEFAULT_EMPTY_MESSAGE = __('Nebyly nalezeny žádné události.', 'brilo-blocks');
3
+ export const EVENTS_PER_PAGE_MIN = 1;
4
+ export const EVENTS_PER_PAGE_MAX = 18;
5
+ export const EVENTS_PER_PAGE_DEFAULT = 6;