@rulecms/source-components-angular 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +117 -0
  3. package/THIRD_PARTY_NOTICES +50 -0
  4. package/fesm2022/rulecms-source-components-angular-icon-registry.mjs +144 -0
  5. package/fesm2022/rulecms-source-components-angular-icon-registry.mjs.map +1 -0
  6. package/fesm2022/rulecms-source-components-angular.mjs +3979 -0
  7. package/fesm2022/rulecms-source-components-angular.mjs.map +1 -0
  8. package/icon-registry/icon-aliases.d.ts +10 -0
  9. package/icon-registry/icon-aliases.d.ts.map +1 -0
  10. package/icon-registry/index.d.ts +6 -0
  11. package/icon-registry/index.d.ts.map +1 -0
  12. package/icon-registry/resolve-icon-name.d.ts +6 -0
  13. package/icon-registry/resolve-icon-name.d.ts.map +1 -0
  14. package/icon-registry/resolve-icon-node.d.ts +25 -0
  15. package/icon-registry/resolve-icon-node.d.ts.map +1 -0
  16. package/icon-registry/rulecms-source-components-angular-icon-registry.d.ts.map +1 -0
  17. package/icon-registry/search-icon-names.d.ts +11 -0
  18. package/icon-registry/search-icon-names.d.ts.map +1 -0
  19. package/index.d.ts +6 -0
  20. package/lib/base-components/display/card-entries/card-entries.d.ts +3 -0
  21. package/lib/base-components/display/card-entries/card-entries.d.ts.map +1 -0
  22. package/lib/base-components/display/card-groups.d.ts +3 -0
  23. package/lib/base-components/display/card-groups.d.ts.map +1 -0
  24. package/lib/base-components/display/component-attributes/attribute-list-for-component-types.d.ts +20 -0
  25. package/lib/base-components/display/component-attributes/attribute-list-for-component-types.d.ts.map +1 -0
  26. package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts +12 -0
  27. package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map +1 -0
  28. package/lib/base-components/display/components/cloudinary-advanced-image/attribute-edit-mode-configs.d.ts +3 -0
  29. package/lib/base-components/display/components/cloudinary-advanced-image/attribute-edit-mode-configs.d.ts.map +1 -0
  30. package/lib/base-components/display/components/cloudinary-advanced-image/build-cloudinary-image-urls.d.ts +7 -0
  31. package/lib/base-components/display/components/cloudinary-advanced-image/build-cloudinary-image-urls.d.ts.map +1 -0
  32. package/lib/base-components/display/components/cloudinary-advanced-image/cloudinary-advanced-image.component.d.ts +28 -0
  33. package/lib/base-components/display/components/cloudinary-advanced-image/cloudinary-advanced-image.component.d.ts.map +1 -0
  34. package/lib/base-components/display/components/cloudinary-advanced-image/default-attribute-values.d.ts +3 -0
  35. package/lib/base-components/display/components/cloudinary-advanced-image/default-attribute-values.d.ts.map +1 -0
  36. package/lib/base-components/display/components/cloudinary-advanced-image/display-card-entry.d.ts +3 -0
  37. package/lib/base-components/display/components/cloudinary-advanced-image/display-card-entry.d.ts.map +1 -0
  38. package/lib/base-components/display/components/cloudinary-advanced-image/resolve-no-container.d.ts +8 -0
  39. package/lib/base-components/display/components/cloudinary-advanced-image/resolve-no-container.d.ts.map +1 -0
  40. package/lib/base-components/display/components/cloudinary-advanced-image/resolve-renders-own-element.d.ts +6 -0
  41. package/lib/base-components/display/components/cloudinary-advanced-image/resolve-renders-own-element.d.ts.map +1 -0
  42. package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts +109 -0
  43. package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts.map +1 -0
  44. package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts +16 -0
  45. package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts.map +1 -0
  46. package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts +3 -0
  47. package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts.map +1 -0
  48. package/lib/base-components/display/components/r-accordion/display-card-entry.d.ts +3 -0
  49. package/lib/base-components/display/components/r-accordion/display-card-entry.d.ts.map +1 -0
  50. package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts +27 -0
  51. package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts.map +1 -0
  52. package/lib/base-components/display/components/r-accordion/resolve-no-container.d.ts +8 -0
  53. package/lib/base-components/display/components/r-accordion/resolve-no-container.d.ts.map +1 -0
  54. package/lib/base-components/display/components/r-accordion/resolve-renders-own-element.d.ts +6 -0
  55. package/lib/base-components/display/components/r-accordion/resolve-renders-own-element.d.ts.map +1 -0
  56. package/lib/base-components/display/components/r-button/attribute-edit-mode-configs.d.ts +12 -0
  57. package/lib/base-components/display/components/r-button/attribute-edit-mode-configs.d.ts.map +1 -0
  58. package/lib/base-components/display/components/r-button/button-attributes.d.ts +51 -0
  59. package/lib/base-components/display/components/r-button/button-attributes.d.ts.map +1 -0
  60. package/lib/base-components/display/components/r-button/button-css-variables.d.ts +28 -0
  61. package/lib/base-components/display/components/r-button/button-css-variables.d.ts.map +1 -0
  62. package/lib/base-components/display/components/r-button/button-instance-props.d.ts +23 -0
  63. package/lib/base-components/display/components/r-button/button-instance-props.d.ts.map +1 -0
  64. package/lib/base-components/display/components/r-button/button-preset-styles.d.ts +13 -0
  65. package/lib/base-components/display/components/r-button/button-preset-styles.d.ts.map +1 -0
  66. package/lib/base-components/display/components/r-button/button-presets.d.ts +76 -0
  67. package/lib/base-components/display/components/r-button/button-presets.d.ts.map +1 -0
  68. package/lib/base-components/display/components/r-button/default-attribute-values.d.ts +14 -0
  69. package/lib/base-components/display/components/r-button/default-attribute-values.d.ts.map +1 -0
  70. package/lib/base-components/display/components/r-button/display-card-entry.d.ts +3 -0
  71. package/lib/base-components/display/components/r-button/display-card-entry.d.ts.map +1 -0
  72. package/lib/base-components/display/components/r-button/r-button.component.d.ts +26 -0
  73. package/lib/base-components/display/components/r-button/r-button.component.d.ts.map +1 -0
  74. package/lib/base-components/display/components/r-button/resolve-button-preset.d.ts +11 -0
  75. package/lib/base-components/display/components/r-button/resolve-button-preset.d.ts.map +1 -0
  76. package/lib/base-components/display/components/r-button/resolve-no-container.d.ts +8 -0
  77. package/lib/base-components/display/components/r-button/resolve-no-container.d.ts.map +1 -0
  78. package/lib/base-components/display/components/r-button/resolve-renders-own-element.d.ts +6 -0
  79. package/lib/base-components/display/components/r-button/resolve-renders-own-element.d.ts.map +1 -0
  80. package/lib/base-components/display/components/r-divider/attribute-edit-mode-configs.d.ts +10 -0
  81. package/lib/base-components/display/components/r-divider/attribute-edit-mode-configs.d.ts.map +1 -0
  82. package/lib/base-components/display/components/r-divider/default-attribute-values.d.ts +11 -0
  83. package/lib/base-components/display/components/r-divider/default-attribute-values.d.ts.map +1 -0
  84. package/lib/base-components/display/components/r-divider/display-card-entry.d.ts +3 -0
  85. package/lib/base-components/display/components/r-divider/display-card-entry.d.ts.map +1 -0
  86. package/lib/base-components/display/components/r-divider/divider-attributes.d.ts +41 -0
  87. package/lib/base-components/display/components/r-divider/divider-attributes.d.ts.map +1 -0
  88. package/lib/base-components/display/components/r-divider/divider-styles.d.ts +14 -0
  89. package/lib/base-components/display/components/r-divider/divider-styles.d.ts.map +1 -0
  90. package/lib/base-components/display/components/r-divider/r-divider.component.d.ts +16 -0
  91. package/lib/base-components/display/components/r-divider/r-divider.component.d.ts.map +1 -0
  92. package/lib/base-components/display/components/r-divider/resolve-no-container.d.ts +7 -0
  93. package/lib/base-components/display/components/r-divider/resolve-no-container.d.ts.map +1 -0
  94. package/lib/base-components/display/components/r-divider/resolve-renders-own-element.d.ts +6 -0
  95. package/lib/base-components/display/components/r-divider/resolve-renders-own-element.d.ts.map +1 -0
  96. package/lib/base-components/display/components/r-embed/attribute-edit-mode-configs.d.ts +8 -0
  97. package/lib/base-components/display/components/r-embed/attribute-edit-mode-configs.d.ts.map +1 -0
  98. package/lib/base-components/display/components/r-embed/default-attribute-values.d.ts +14 -0
  99. package/lib/base-components/display/components/r-embed/default-attribute-values.d.ts.map +1 -0
  100. package/lib/base-components/display/components/r-embed/display-card-entry.d.ts +3 -0
  101. package/lib/base-components/display/components/r-embed/display-card-entry.d.ts.map +1 -0
  102. package/lib/base-components/display/components/r-embed/embed-attributes.d.ts +71 -0
  103. package/lib/base-components/display/components/r-embed/embed-attributes.d.ts.map +1 -0
  104. package/lib/base-components/display/components/r-embed/embed-providers.d.ts +78 -0
  105. package/lib/base-components/display/components/r-embed/embed-providers.d.ts.map +1 -0
  106. package/lib/base-components/display/components/r-embed/r-embed.component.d.ts +21 -0
  107. package/lib/base-components/display/components/r-embed/r-embed.component.d.ts.map +1 -0
  108. package/lib/base-components/display/components/r-embed/resolve-embed.d.ts +41 -0
  109. package/lib/base-components/display/components/r-embed/resolve-embed.d.ts.map +1 -0
  110. package/lib/base-components/display/components/r-embed/resolve-no-container.d.ts +13 -0
  111. package/lib/base-components/display/components/r-embed/resolve-no-container.d.ts.map +1 -0
  112. package/lib/base-components/display/components/r-embed/resolve-renders-own-element.d.ts +9 -0
  113. package/lib/base-components/display/components/r-embed/resolve-renders-own-element.d.ts.map +1 -0
  114. package/lib/base-components/display/components/r-icon/attribute-edit-mode-configs.d.ts +3 -0
  115. package/lib/base-components/display/components/r-icon/attribute-edit-mode-configs.d.ts.map +1 -0
  116. package/lib/base-components/display/components/r-icon/default-attribute-values.d.ts +3 -0
  117. package/lib/base-components/display/components/r-icon/default-attribute-values.d.ts.map +1 -0
  118. package/lib/base-components/display/components/r-icon/display-card-entry.d.ts +3 -0
  119. package/lib/base-components/display/components/r-icon/display-card-entry.d.ts.map +1 -0
  120. package/lib/base-components/display/components/r-icon/icon-attribute-value.d.ts +26 -0
  121. package/lib/base-components/display/components/r-icon/icon-attribute-value.d.ts.map +1 -0
  122. package/lib/base-components/display/components/r-icon/r-icon.component.d.ts +16 -0
  123. package/lib/base-components/display/components/r-icon/r-icon.component.d.ts.map +1 -0
  124. package/lib/base-components/display/components/r-icon/resolve-no-container.d.ts +7 -0
  125. package/lib/base-components/display/components/r-icon/resolve-no-container.d.ts.map +1 -0
  126. package/lib/base-components/display/components/r-icon/resolve-renders-own-element.d.ts +7 -0
  127. package/lib/base-components/display/components/r-icon/resolve-renders-own-element.d.ts.map +1 -0
  128. package/lib/base-components/display/components/r-list/attribute-edit-mode-configs.d.ts +10 -0
  129. package/lib/base-components/display/components/r-list/attribute-edit-mode-configs.d.ts.map +1 -0
  130. package/lib/base-components/display/components/r-list/default-attribute-values.d.ts +3 -0
  131. package/lib/base-components/display/components/r-list/default-attribute-values.d.ts.map +1 -0
  132. package/lib/base-components/display/components/r-list/display-card-entry.d.ts +3 -0
  133. package/lib/base-components/display/components/r-list/display-card-entry.d.ts.map +1 -0
  134. package/lib/base-components/display/components/r-list/list-attributes.d.ts +72 -0
  135. package/lib/base-components/display/components/r-list/list-attributes.d.ts.map +1 -0
  136. package/lib/base-components/display/components/r-list/r-list.component.d.ts +22 -0
  137. package/lib/base-components/display/components/r-list/r-list.component.d.ts.map +1 -0
  138. package/lib/base-components/display/components/r-list/resolve-no-container.d.ts +8 -0
  139. package/lib/base-components/display/components/r-list/resolve-no-container.d.ts.map +1 -0
  140. package/lib/base-components/display/components/r-list/resolve-renders-own-element.d.ts +7 -0
  141. package/lib/base-components/display/components/r-list/resolve-renders-own-element.d.ts.map +1 -0
  142. package/lib/base-components/display/components/r-text/attribute-edit-mode-configs.d.ts +3 -0
  143. package/lib/base-components/display/components/r-text/attribute-edit-mode-configs.d.ts.map +1 -0
  144. package/lib/base-components/display/components/r-text/default-attribute-values.d.ts +4 -0
  145. package/lib/base-components/display/components/r-text/default-attribute-values.d.ts.map +1 -0
  146. package/lib/base-components/display/components/r-text/display-card-entry.d.ts +3 -0
  147. package/lib/base-components/display/components/r-text/display-card-entry.d.ts.map +1 -0
  148. package/lib/base-components/display/components/r-text/enclosing-tags.d.ts +48 -0
  149. package/lib/base-components/display/components/r-text/enclosing-tags.d.ts.map +1 -0
  150. package/lib/base-components/display/components/r-text/r-text.component.d.ts +16 -0
  151. package/lib/base-components/display/components/r-text/r-text.component.d.ts.map +1 -0
  152. package/lib/base-components/display/components/r-text/resolve-enclosing-tag.d.ts +18 -0
  153. package/lib/base-components/display/components/r-text/resolve-enclosing-tag.d.ts.map +1 -0
  154. package/lib/base-components/display/components/r-text/resolve-no-container.d.ts +13 -0
  155. package/lib/base-components/display/components/r-text/resolve-no-container.d.ts.map +1 -0
  156. package/lib/base-components/display/components/r-text/resolve-renders-own-element.d.ts +11 -0
  157. package/lib/base-components/display/components/r-text/resolve-renders-own-element.d.ts.map +1 -0
  158. package/lib/base-components/display/components/r-video/attribute-edit-mode-configs.d.ts +3 -0
  159. package/lib/base-components/display/components/r-video/attribute-edit-mode-configs.d.ts.map +1 -0
  160. package/lib/base-components/display/components/r-video/build-video-delivery-urls.d.ts +7 -0
  161. package/lib/base-components/display/components/r-video/build-video-delivery-urls.d.ts.map +1 -0
  162. package/lib/base-components/display/components/r-video/default-attribute-values.d.ts +3 -0
  163. package/lib/base-components/display/components/r-video/default-attribute-values.d.ts.map +1 -0
  164. package/lib/base-components/display/components/r-video/display-card-entry.d.ts +3 -0
  165. package/lib/base-components/display/components/r-video/display-card-entry.d.ts.map +1 -0
  166. package/lib/base-components/display/components/r-video/r-video.component.d.ts +26 -0
  167. package/lib/base-components/display/components/r-video/r-video.component.d.ts.map +1 -0
  168. package/lib/base-components/display/components/r-video/resolve-no-container.d.ts +8 -0
  169. package/lib/base-components/display/components/r-video/resolve-no-container.d.ts.map +1 -0
  170. package/lib/base-components/display/components/r-video/resolve-renders-own-element.d.ts +6 -0
  171. package/lib/base-components/display/components/r-video/resolve-renders-own-element.d.ts.map +1 -0
  172. package/lib/base-components/editor-preview/card-entries/card-entries.d.ts +3 -0
  173. package/lib/base-components/editor-preview/card-entries/card-entries.d.ts.map +1 -0
  174. package/lib/base-components/editor-preview/card-groups.d.ts +3 -0
  175. package/lib/base-components/editor-preview/card-groups.d.ts.map +1 -0
  176. package/lib/component-identifiers.d.ts +4 -0
  177. package/lib/component-identifiers.d.ts.map +1 -0
  178. package/lib/component-library-module.d.ts +25 -0
  179. package/lib/component-library-module.d.ts.map +1 -0
  180. package/lib/get-component-metadata-for-editing.d.ts +3 -0
  181. package/lib/get-component-metadata-for-editing.d.ts.map +1 -0
  182. package/lib/get-preview-components.d.ts +12 -0
  183. package/lib/get-preview-components.d.ts.map +1 -0
  184. package/lib/get-source-components-plugin.d.ts +9 -0
  185. package/lib/get-source-components-plugin.d.ts.map +1 -0
  186. package/lib/shared/html-tag.component.d.ts +22 -0
  187. package/lib/shared/html-tag.component.d.ts.map +1 -0
  188. package/lib/shared/icons/append-icon-children.d.ts +5 -0
  189. package/lib/shared/icons/append-icon-children.d.ts.map +1 -0
  190. package/lib/shared/icons/svg-icon.component.d.ts +21 -0
  191. package/lib/shared/icons/svg-icon.component.d.ts.map +1 -0
  192. package/lib/shared/inline-markup/index.d.ts +5 -0
  193. package/lib/shared/inline-markup/index.d.ts.map +1 -0
  194. package/lib/shared/inline-markup/inline-markup.component.d.ts +16 -0
  195. package/lib/shared/inline-markup/inline-markup.component.d.ts.map +1 -0
  196. package/lib/shared/inline-markup/parse-inline-markers.d.ts +45 -0
  197. package/lib/shared/inline-markup/parse-inline-markers.d.ts.map +1 -0
  198. package/lib/shared/inline-markup/serialize-inline-markers.d.ts +14 -0
  199. package/lib/shared/inline-markup/serialize-inline-markers.d.ts.map +1 -0
  200. package/lib/shared/links/index.d.ts +8 -0
  201. package/lib/shared/links/index.d.ts.map +1 -0
  202. package/lib/shared/links/is-safe-href.d.ts +20 -0
  203. package/lib/shared/links/is-safe-href.d.ts.map +1 -0
  204. package/lib/shared/links/link-item.d.ts +39 -0
  205. package/lib/shared/links/link-item.d.ts.map +1 -0
  206. package/lib/shared/links/parse-inline-link-markers.d.ts +25 -0
  207. package/lib/shared/links/parse-inline-link-markers.d.ts.map +1 -0
  208. package/lib/shared/links/resolve-link-attributes.d.ts +13 -0
  209. package/lib/shared/links/resolve-link-attributes.d.ts.map +1 -0
  210. package/lib/types.d.ts +113 -0
  211. package/lib/types.d.ts.map +1 -0
  212. package/package.json +56 -0
  213. package/public-api.d.ts +30 -0
  214. package/public-api.d.ts.map +1 -0
  215. package/rulecms-source-components-angular.d.ts.map +1 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * RuleCMS-owned name aliases. A name that has ever been persisted is never
3
+ * deleted — only aliased here to the current Lucide kebab name.
4
+ *
5
+ * Seeded from Lucide's own rename shims (shape-first convention). Extend on
6
+ * every upstream lucide-static sync; the sync job should fail when an upstream
7
+ * icon disappears without an alias.
8
+ */
9
+ export declare const ICON_NAME_ALIASES: Record<string, string>;
10
+ //# sourceMappingURL=icon-aliases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-aliases.d.ts","sourceRoot":"","sources":["../../icon-registry/icon-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBpD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ICON_NAME_ALIASES } from './icon-aliases';
2
+ export { resolveIconName } from './resolve-icon-name';
3
+ export { resolveIconNode, buildIconAttributeValue, isKnownIconName, listIconNames, } from './resolve-icon-node';
4
+ export { searchIconNames, getIconTags } from './search-icon-names';
5
+ export type { IconNode, IconAttributeValue } from './resolve-icon-node';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../icon-registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Normalize a persisted RuleCMS icon name to the current Lucide kebab key.
3
+ * Empty / non-string input yields null.
4
+ */
5
+ export declare const resolveIconName: (name: unknown) => string | null;
6
+ //# sourceMappingURL=resolve-icon-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-icon-name.d.ts","sourceRoot":"","sources":["../../icon-registry/resolve-icon-name.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,MAAM,GAAG,IAYxD,CAAC"}
@@ -0,0 +1,25 @@
1
+ export type IconNode = [string, Record<string, string>][];
2
+ export type IconAttributeValue = {
3
+ name: string;
4
+ iconNode: IconNode;
5
+ };
6
+ /**
7
+ * Geometry lookup for a persisted icon name.
8
+ *
9
+ * Registry-side only: the render path never calls this. Published payloads
10
+ * carry geometry inline on the attribute (see `buildIconAttributeValue`), so
11
+ * customer pages never load this module or the ~722 KB of JSON behind it.
12
+ */
13
+ export declare const resolveIconNode: (name: unknown) => IconNode | null;
14
+ /**
15
+ * Build the value the composer persists when an author picks an icon.
16
+ *
17
+ * Geometry is stamped at selection rather than at publish so that every
18
+ * surface — composer canvas, dev-environment host apps, staging and
19
+ * production — renders from the same attribute with no registry present.
20
+ * `name` travels alongside so a later sync can re-resolve stale geometry.
21
+ */
22
+ export declare const buildIconAttributeValue: (name: unknown) => IconAttributeValue | null;
23
+ export declare const isKnownIconName: (name: unknown) => boolean;
24
+ export declare const listIconNames: () => string[];
25
+ //# sourceMappingURL=resolve-icon-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-icon-node.d.ts","sourceRoot":"","sources":["../../icon-registry/resolve-icon-node.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAItE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,QAAQ,GAAG,IAI1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,SAAU,OAAO,KAAG,kBAAkB,GAAG,IAQ5E,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAG/C,CAAC;AAEF,eAAO,MAAM,aAAa,QAAO,MAAM,EAA2B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rulecms-source-components-angular-icon-registry.d.ts","sourceRoot":"","sources":["../../icon-registry/rulecms-source-components-angular-icon-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Search icons by name and by Lucide's published tag index.
3
+ *
4
+ * Tag search is why the picker is worth changing: today's name-only list
5
+ * cannot answer "launch" with `rocket`. An empty query returns every name so
6
+ * the picker can show a browsable default.
7
+ */
8
+ export declare const searchIconNames: (query: unknown, limit?: number) => string[];
9
+ /** The tags Lucide publishes for an icon; empty when the name is unknown. */
10
+ export declare const getIconTags: (name: string) => string[];
11
+ //# sourceMappingURL=search-icon-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-icon-names.d.ts","sourceRoot":"","sources":["../../icon-registry/search-icon-names.ts"],"names":[],"mappings":"AA2BA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,UAAW,OAAO,UAAU,MAAM,KAAG,MAAM,EAetE,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAAM,EAA4B,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@rulecms/source-components-angular" />
5
+ export * from './public-api';
6
+ //# sourceMappingURL=rulecms-source-components-angular.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { DisplayCardEntry } from '../../../types';
2
+ export declare const cardEntries: DisplayCardEntry[];
3
+ //# sourceMappingURL=card-entries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-entries.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/card-entries/card-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAWvD,eAAO,MAAM,WAAW,EAAE,gBAAgB,EAUzC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CardGroup } from '../../types';
2
+ export declare const cardGroups: CardGroup[];
3
+ //# sourceMappingURL=card-groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-groups.d.ts","sourceRoot":"","sources":["../../../../src/lib/base-components/display/card-groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,eAAO,MAAM,UAAU,EAAE,SAAS,EAEjC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { AttributeListForComponentTypes } from '../../../types';
2
+ /**
3
+ * Mapping of component IDs to their supported modifiable attributes.
4
+ *
5
+ * Each component type can have a specific list of attributes that users are allowed to modify
6
+ * in the editor. This mapping defines which attributes are available for each component type.
7
+ *
8
+ * Note: This defines which attributes each component supports, while component-name-to-modify-attribute.ts
9
+ * defines which editor component should be used to modify each attribute type.
10
+ * todo: this is a little confusing and might require a deeper look into how RuleCMS uses this.
11
+ */
12
+ /**
13
+ * Empty on purpose. Every component this library ships declares its editable
14
+ * attributes through its own `attribute-edit-mode-configs.ts`, which is the
15
+ * path the composer's Modify drawer reads. Listing an attribute here as well
16
+ * shows it twice — once through the legacy shared-attribute editor, which has
17
+ * no entry for modern `-3-resolutions` names and renders an empty section.
18
+ */
19
+ export declare const attributeListForComponentTypes: AttributeListForComponentTypes;
20
+ //# sourceMappingURL=attribute-list-for-component-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-list-for-component-types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/attribute-list-for-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;;GASG;AACH;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,EAAE,8BAAmC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ComponentNameToModifyAttribute } from '../../../types';
2
+ /**
3
+ * Mapping of attribute names to their corresponding editor components.
4
+ *
5
+ * The RuleCMS editor dynamically loads the appropriate editor component for each attribute
6
+ * that users can edit. This mapping ensures that the correct component is loaded when
7
+ * editing a given attribute.
8
+ *
9
+ * The attributes defined here are shared across all source components available for user modification.
10
+ */
11
+ export declare const componentNameToModifyAttribute: ComponentNameToModifyAttribute;
12
+ //# sourceMappingURL=component-name-to-modify-attribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-name-to-modify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/component-name-to-modify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,8BAwE5C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AttributeEditModeConfig } from '../../../../types';
2
+ export declare const attributeEditModeConfigs: AttributeEditModeConfig[];
3
+ //# sourceMappingURL=attribute-edit-mode-configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAiE7D,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type CloudinaryTransformations = {
2
+ [key: string]: string | number;
3
+ };
4
+ export declare const cloudinarySrcSetWidths: number[];
5
+ export declare function buildCloudinarySrc(cloudName: string, publicId: string, transformations?: CloudinaryTransformations | string): string;
6
+ export declare function buildCloudinarySrcSet(cloudName: string, publicId: string, transformations?: CloudinaryTransformations | string): string;
7
+ //# sourceMappingURL=build-cloudinary-image-urls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-cloudinary-image-urls.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/build-cloudinary-image-urls.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,yBAAyB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAI3E,eAAO,MAAM,sBAAsB,UAA+B,CAAC;AAgEnE,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,yBAAyB,GAAG,MAAM,GACnD,MAAM,CAER;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,yBAAyB,GAAG,MAAM,GACnD,MAAM,CAIR"}
@@ -0,0 +1,28 @@
1
+ import type { CloudinaryTransformations } from './build-cloudinary-image-urls';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CloudinaryAdvancedImageComponent {
4
+ cloudName: string;
5
+ publicId: string;
6
+ alt: string;
7
+ transformations?: CloudinaryTransformations | string;
8
+ componentAttributes?: {
9
+ [key: string]: any;
10
+ };
11
+ styleProps?: {
12
+ [key: string]: any;
13
+ };
14
+ className?: string;
15
+ get finalCloudName(): any;
16
+ get finalPublicId(): any;
17
+ get finalTransformations(): any;
18
+ get src(): string;
19
+ get srcSet(): string;
20
+ get imageAttributes(): {
21
+ [key: string]: any;
22
+ };
23
+ get mergedClassName(): string | undefined;
24
+ get mergedStyles(): any;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<CloudinaryAdvancedImageComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<CloudinaryAdvancedImageComponent, "rulecms-cloudinary-image", never, { "cloudName": { "alias": "cloudName"; "required": false; }; "publicId": { "alias": "publicId"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "transformations": { "alias": "transformations"; "required": false; }; "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
27
+ }
28
+ //# sourceMappingURL=cloudinary-advanced-image.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudinary-advanced-image.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/cloudinary-advanced-image.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;;AAE/E,qBAqBa,gCAAgC;IAClC,SAAS,SAAa;IACtB,QAAQ,SAAiB;IACzB,GAAG,SAAuB;IAC1B,eAAe,CAAC,EAAE,yBAAyB,GAAG,MAAM,CAAC;IACrD,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,IAAI,cAAc,QAEjB;IACD,IAAI,aAAa,QAMhB;IACD,IAAI,oBAAoB,QAEvB;IACD,IAAI,GAAG,WAEN;IACD,IAAI,MAAM,WAET;IAED,IAAI,eAAe,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAyB5C;IAED,IAAI,eAAe,IAAI,MAAM,GAAG,SAAS,CAGxC;IAED,IAAI,YAAY,QAEf;yCA/DU,gCAAgC;2CAAhC,gCAAgC;CAgE5C"}
@@ -0,0 +1,3 @@
1
+ import { DefaultAttributeValue } from '../../../../types';
2
+ export declare const defaultAttributeValues: DefaultAttributeValue[];
3
+ //# sourceMappingURL=default-attribute-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA2CzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DisplayCardEntry } from '../../../../types';
2
+ export declare const displayCardEntry: DisplayCardEntry;
3
+ //# sourceMappingURL=display-card-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/display-card-entry.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,eAAO,MAAM,gBAAgB,EAAE,gBAO9B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The component spreads styleProps onto its `<img>`, a replaced element that
3
+ * honors min/max sizing, margin and padding directly — a wrapper div would
4
+ * only add a redundant element. There is no configuration that changes this,
5
+ * so the answer is the same for every render.
6
+ */
7
+ export declare const resolveNoContainer: () => boolean;
8
+ //# sourceMappingURL=resolve-no-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-no-container.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/resolve-no-container.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAgB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Always renders an `<img>`, which can carry a className. There is no
3
+ * configuration that changes this.
4
+ */
5
+ export declare const resolveRendersOwnElement: () => boolean;
6
+ //# sourceMappingURL=resolve-renders-own-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-renders-own-element.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/cloudinary-advanced-image/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAAe,CAAC"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * The attribute names `r-accordion` reads.
3
+ *
4
+ * The component is a disclosure and nothing more specific than that: a summary
5
+ * a reader clicks and the detail it expands to. An FAQ is one thing to build
6
+ * out of it, a shipping policy or a "show more" under a truncated bio are
7
+ * others, and the settings are named after the two halves of the element —
8
+ * `<summary>` and the detail inside `<details>` — rather than after any one of
9
+ * those uses.
10
+ *
11
+ * One accordion is one disclosure, rather than a component holding N
12
+ * collapsible sections. A repeating-group attribute would need an editor this
13
+ * library does not have, and several sections in one component leave the
14
+ * nested-content slot with no single detail to belong to (see
15
+ * `rulecms/__docs__/__ARCHITECTURE__/ACCORDION_COMPONENT_ARCHITECTURE.md`).
16
+ * Several of these in a column is the multi-section case, which is also how an
17
+ * author reorders one.
18
+ *
19
+ * Every name is accordion-specific, including the links, which are the same
20
+ * numbered list `r-text` already offers. Sharing that attribute name would
21
+ * have saved a line of editor wiring and cost the documentation contract:
22
+ * RuleCMS publishes one page per component-scope attribute and requires
23
+ * exactly one owning component. Reuse happens a level down, where the composer
24
+ * resolves an attribute to an *editor* by name — the same arrangement `r-list`
25
+ * uses.
26
+ *
27
+ * Nothing here duplicates a column style attribute. Spacing, colour and
28
+ * typography come from Column Styles on the `<details>` element and inherit
29
+ * into the summary and the detail; the attributes below are only what is
30
+ * specific to a disclosure — what it says closed, what it says open, whether
31
+ * it starts open, and whether the summary also belongs in the page outline.
32
+ */
33
+ export declare const ACCORDION_SUMMARY_ATTRIBUTE = "accordion-summary-3-resolutions";
34
+ export declare const ACCORDION_DETAIL_ATTRIBUTE = "accordion-detail-3-resolutions";
35
+ export declare const ACCORDION_LINKS_ATTRIBUTE = "accordion-links-3-resolutions";
36
+ export declare const ACCORDION_OPEN_ATTRIBUTE = "accordion-open-3-resolutions";
37
+ export declare const ACCORDION_HEADING_LEVEL_ATTRIBUTE = "accordion-heading-level-3-resolutions";
38
+ /** What a freshly dropped accordion shows before the author types anything. */
39
+ export declare const DEFAULT_ACCORDION_SUMMARY = "Summary";
40
+ export declare const DEFAULT_ACCORDION_DETAIL = "The detail this summary expands to. Each line becomes its own paragraph.";
41
+ /**
42
+ * Heading levels the summary can be given, plus `none` for the common case.
43
+ *
44
+ * `h1` is deliberately absent: the page already has one, and ten disclosures
45
+ * down the page would otherwise offer ten ways to compete with it. Levels
46
+ * start at `h2` because a summary sits under whatever heading introduces the
47
+ * section it is in.
48
+ *
49
+ * `none` is a real option rather than an unset value so the picker always has
50
+ * a definite selection — there is no way to clear a select back to nothing —
51
+ * and it is the default because a disclosure is not automatically part of the
52
+ * document outline.
53
+ */
54
+ export declare const ACCORDION_HEADING_LEVELS: readonly ["none", "h2", "h3", "h4", "h5", "h6"];
55
+ export type AccordionHeadingLevel = (typeof ACCORDION_HEADING_LEVELS)[number];
56
+ export declare const DEFAULT_ACCORDION_HEADING_LEVEL: AccordionHeadingLevel;
57
+ type Attributes = {
58
+ [key: string]: any;
59
+ } | undefined;
60
+ /**
61
+ * The summary, on one line. An unset attribute falls back to the placeholder,
62
+ * but text the author deliberately cleared stays cleared: an empty `<summary>`
63
+ * still draws its marker and still toggles, and the composer needs the element
64
+ * to stay selectable on the canvas. Same distinction `r-list` draws for its
65
+ * items and `r-button` for its label.
66
+ *
67
+ * Authored newlines collapse to single spaces. The editor behind this
68
+ * attribute is the shared multi-line text field, and `<summary>` is a single
69
+ * line of prose — HTML would collapse the whitespace anyway, so the resolved
70
+ * value says so rather than leaving it to the browser.
71
+ *
72
+ * `{n|…}` markers contribute their inner text and nothing else. The summary
73
+ * takes no links — inside a `<summary>` a click both follows the anchor and
74
+ * toggles the disclosure — but the editor behind it is the same field that
75
+ * offers the marker grammar for the detail, so an author will type one here.
76
+ * Degrading it to prose is what the rest of the library does with a marker it
77
+ * cannot resolve; leaving the braces on screen is the one outcome nobody wants.
78
+ */
79
+ export declare const resolveAccordionSummary: (componentAttributes: Attributes) => string;
80
+ /**
81
+ * The detail, as one paragraph per authored line with blank lines dropped —
82
+ * the same grammar `r-list` uses for its items, so an author who has met one
83
+ * has met both. An unset attribute falls back to the placeholder; text the
84
+ * author deliberately cleared stays cleared and the disclosure opens onto
85
+ * whatever else is in it, or onto nothing.
86
+ */
87
+ export declare const resolveAccordionDetail: (componentAttributes: Attributes) => string[];
88
+ /**
89
+ * Whether the disclosure renders already open. Select editors in the composer
90
+ * store `'true'` / `'false'` as strings, while a hand-written or migrated
91
+ * config may carry a real boolean; both mean the same thing here.
92
+ *
93
+ * This is an attribute rather than runtime state on purpose: `open` has to be
94
+ * right in the server's HTML, because a disclosure a search engine or a
95
+ * no-JavaScript reader should see expanded cannot wait for hydration.
96
+ */
97
+ export declare const resolveAccordionOpen: (componentAttributes: Attributes) => boolean;
98
+ /**
99
+ * The heading tag to wrap the summary in, or `undefined` for no heading.
100
+ *
101
+ * A stored value reaches an element name here, so the allowlist is the
102
+ * boundary that keeps it from being whatever a request happened to write.
103
+ * `none` and anything unrecognised both mean "no heading", which is also the
104
+ * safe answer: a plain `<summary>` is a valid disclosure, while an invented
105
+ * tag inside one is not.
106
+ */
107
+ export declare const resolveAccordionHeadingLevel: (componentAttributes: Attributes) => Exclude<AccordionHeadingLevel, "none"> | undefined;
108
+ export {};
109
+ //# sourceMappingURL=accordion-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/accordion-attributes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AACzE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,wBAAwB,6EACuC,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,iDAAkD,CAAC;AACxF,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,EAAE,qBAA8B,CAAC;AAE7E,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,wBAAyB,UAAU,KAAG,MAazE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,wBAAyB,UAAU,KAAG,MAAM,EAY9E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,UAAU,KAAG,OAMtE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,wBAClB,UAAU,KAC9B,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,GAAG,SAM3C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { AttributeEditModeConfig } from '../../../../types';
2
+ /**
3
+ * Every setting the accordion offers, in the order the Modify drawer shows
4
+ * them.
5
+ *
6
+ * Headings name the two halves of the element — Summary and Detail — not one
7
+ * use of it. An author building an FAQ reads "Summary" as the question without
8
+ * being told to; an author building a "show more" would have had to translate
9
+ * "Question" into something it is not.
10
+ *
11
+ * Order is not cosmetic. The drawer renders these top to bottom and the
12
+ * documentation registry asserts its pages match that sequence, so moving an
13
+ * entry here moves it in both places at once.
14
+ */
15
+ export declare const attributeEditModeConfigs: AttributeEditModeConfig[];
16
+ //# sourceMappingURL=attribute-edit-mode-configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAUjE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAoC7D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefaultAttributeValue } from '../../../../types';
2
+ export declare const defaultAttributeValues: DefaultAttributeValue[];
3
+ //# sourceMappingURL=default-attribute-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAY1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8BzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DisplayCardEntry } from '../../../../types';
2
+ export declare const displayCardEntry: DisplayCardEntry;
3
+ //# sourceMappingURL=display-card-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/display-card-entry.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,eAAO,MAAM,gBAAgB,EAAE,gBAO9B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class RAccordionComponent {
3
+ componentAttributes?: {
4
+ [key: string]: any;
5
+ };
6
+ styleProps?: {
7
+ [key: string]: any;
8
+ };
9
+ className?: string;
10
+ readonly summaryLayoutStyle: {
11
+ display: string;
12
+ width: string;
13
+ boxSizing: string;
14
+ };
15
+ readonly summaryHeadingStyle: {
16
+ display: string;
17
+ margin: number;
18
+ };
19
+ get summary(): string;
20
+ get headingLevel(): "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
21
+ get links(): any;
22
+ get open(): boolean;
23
+ get detail(): string[];
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<RAccordionComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<RAccordionComponent, "rulecms-r-accordion", never, { "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
26
+ }
27
+ //# sourceMappingURL=r-accordion.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"r-accordion.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/r-accordion.component.ts"],"names":[],"mappings":";AAuBA,qBAyBa,mBAAmB;IACrB,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,kBAAkB;;;;MAAwB;IACnD,QAAQ,CAAC,mBAAmB;;;MAAyB;IAErD,IAAI,OAAO,WAEV;IACD,IAAI,YAAY,iDAEf;IACD,IAAI,KAAK,QAER;IACD,IAAI,IAAI,YAEP;IACD,IAAI,MAAM,aAET;yCAtBU,mBAAmB;2CAAnB,mBAAmB;CAuB/B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * RAccordion always renders a `<details>` — a block-level element that holds
3
+ * margin, padding, width and border as authored — and puts styleProps on that
4
+ * element itself. No configuration changes the answer, so no wrapper div,
5
+ * ever.
6
+ */
7
+ export declare const resolveNoContainer: () => boolean;
8
+ //# sourceMappingURL=resolve-no-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-no-container.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/resolve-no-container.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAgB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * RAccordion's root is always a real element — `<details>` — so it can always
3
+ * carry the column's className, and the component applies the one it receives.
4
+ */
5
+ export declare const resolveRendersOwnElement: () => boolean;
6
+ //# sourceMappingURL=resolve-renders-own-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-renders-own-element.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { AttributeEditModeConfig } from '../../../../types';
2
+ /**
3
+ * Every setting the button offers, in the order the Modify drawer shows them:
4
+ * how it looks, what it says, where it goes, then the two refinements most
5
+ * buttons never need.
6
+ *
7
+ * Order is not cosmetic. The drawer renders these top to bottom and the
8
+ * documentation registry asserts its pages match that sequence, so moving an
9
+ * entry here moves it in both places at once.
10
+ */
11
+ export declare const attributeEditModeConfigs: AttributeEditModeConfig[];
12
+ //# sourceMappingURL=attribute-edit-mode-configs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-button/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAYjE;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAwC7D,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The attribute names `r-button` reads.
3
+ *
4
+ * Every one is button-specific, including the label and the icon, which are
5
+ * conceptually the same thing `r-text` and `r-icon` already offer. Sharing
6
+ * their attribute names would have saved two lines of editor wiring and cost
7
+ * the documentation contract: RuleCMS publishes one page per component-scope
8
+ * attribute and requires exactly one owning component, so a shared name has
9
+ * no single page to link to from the drawer.
10
+ *
11
+ * Reuse happens a level down instead. The composer resolves an attribute to
12
+ * an *editor* by name, and several names already share one editor, so these
13
+ * point at the existing text field and the existing Lucide picker without
14
+ * either component having to give up ownership of its own settings.
15
+ *
16
+ * Nothing here duplicates a column style attribute. Colour, border, radius,
17
+ * spacing and width already have editors that write into the same bag, and a
18
+ * second way to set the same CSS property would only create a question about
19
+ * which one wins.
20
+ */
21
+ export declare const BUTTON_PRESET_ATTRIBUTE = "button-preset-3-resolutions";
22
+ export declare const BUTTON_LABEL_ATTRIBUTE = "button-label-3-resolutions";
23
+ export declare const BUTTON_LINK_ATTRIBUTE = "button-link-3-resolutions";
24
+ export declare const BUTTON_DISABLED_ATTRIBUTE = "button-disabled-3-resolutions";
25
+ export declare const BUTTON_ICON_ATTRIBUTE = "button-icon-3-resolutions";
26
+ export declare const BUTTON_ICON_POSITION_ATTRIBUTE = "button-icon-position-3-resolutions";
27
+ export declare const BUTTON_ARIA_LABEL_ATTRIBUTE = "aria-label";
28
+ /** What a freshly dropped button says before the author types anything. */
29
+ export declare const DEFAULT_BUTTON_LABEL = "Button";
30
+ export declare const ICON_POSITIONS: readonly ["leading", "trailing"];
31
+ export type IconPosition = (typeof ICON_POSITIONS)[number];
32
+ export declare const DEFAULT_ICON_POSITION: IconPosition;
33
+ type Attributes = {
34
+ [key: string]: any;
35
+ } | undefined;
36
+ /**
37
+ * An unset label falls back to the placeholder, but a label the author
38
+ * deliberately cleared stays cleared — that is how an icon-only button is
39
+ * made, so an empty string cannot be treated as "nothing set".
40
+ */
41
+ export declare const resolveButtonLabel: (componentAttributes: Attributes) => string;
42
+ /**
43
+ * Select editors in the composer store `'true'` / `'false'` as strings, while
44
+ * a hand-written or migrated config may carry a real boolean. Both mean the
45
+ * same thing here.
46
+ */
47
+ export declare const resolveButtonDisabled: (componentAttributes: Attributes) => boolean;
48
+ export declare const resolveIconPosition: (componentAttributes: Attributes) => IconPosition;
49
+ export declare const resolveButtonAriaLabel: (componentAttributes: Attributes) => string | undefined;
50
+ export {};
51
+ //# sourceMappingURL=button-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-button/button-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AACrE,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AACjE,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AACzE,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AACjE,eAAO,MAAM,8BAA8B,uCAAuC,CAAC;AACnF,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,eAAO,MAAM,cAAc,kCAAmC,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,eAAO,MAAM,qBAAqB,EAAE,YAAwB,CAAC;AAE7D,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAMpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,wBAAyB,UAAU,KAAG,OAMvE,CAAC;AAEF,eAAO,MAAM,mBAAmB,wBAAyB,UAAU,KAAG,YAGrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,wBAAyB,UAAU,KAAG,MAAM,GAAG,SAOjF,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { ButtonTone } from './button-presets';
2
+ /**
3
+ * Every colour a preset emits goes out as `var(--rulecms-button-…, default)`.
4
+ *
5
+ * This is the whole white-label story for buttons. A customer who sets
6
+ *
7
+ * :root { --rulecms-button-brand: #c8102e; }
8
+ *
9
+ * once in their own stylesheet rebrands every RuleCMS button on the site,
10
+ * without touching a widget, without composer access, and without us shipping
11
+ * a theme provider or a design system to their page. Authors who want one
12
+ * button to differ still override it per column, as before.
13
+ */
14
+ export declare const BUTTON_CSS_VARIABLE_PREFIX = "--rulecms-button";
15
+ /**
16
+ * The suffixes on a tone's custom properties. `''` is the tone's main colour,
17
+ * e.g. `--rulecms-button-brand`.
18
+ */
19
+ export type ToneVariableSlot = '' | 'hover' | 'active' | 'contrast' | 'border' | 'soft' | 'soft-hover' | 'soft-contrast';
20
+ export declare const toneCssVariable: (tone: ButtonTone, slot?: ToneVariableSlot) => string;
21
+ /**
22
+ * A `var()` reference carrying our default as the fallback, so the button is
23
+ * fully styled whether or not the host defines anything.
24
+ */
25
+ export declare const cssVarWithFallback: (variableName: string, fallback: string) => string;
26
+ /** Shorthand for the common case: one tone slot with its palette default. */
27
+ export declare const toneColor: (tone: ButtonTone, slot: ToneVariableSlot, fallback: string) => string;
28
+ //# sourceMappingURL=button-css-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-css-variables.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-button/button-css-variables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,EAAE,GACF,OAAO,GACP,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,eAAe,CAAC;AAEpB,eAAO,MAAM,eAAe,SAAU,UAAU,SAAQ,gBAAgB,KAAQ,MAG3B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MACvC,CAAC;AAEtC,6EAA6E;AAC7E,eAAO,MAAM,SAAS,SACd,UAAU,QACV,gBAAgB,YACZ,MAAM,KACf,MAAmE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { WidgetInstanceProps } from '../../../../types';
2
+ /** The only key `r-button` reads out of the host's per-instance props. */
3
+ export declare const BUTTON_CLICK_HANDLER_PROP = "onClick";
4
+ export type ButtonClickHandler = (event: Event) => void;
5
+ /**
6
+ * The host's click handler for this instance, or `undefined` when there is
7
+ * nothing to attach.
8
+ *
9
+ * Two reasons to answer `undefined` even when the host supplied something:
10
+ *
11
+ * - **Disabled wins.** A disabled plain `<button>` is inert natively, but a
12
+ * disabled *linked* button renders `<a role="link" aria-disabled="true">`,
13
+ * which has no native inertness at all — a handler left on it would fire on
14
+ * every click and make "disabled" a lie.
15
+ * - **The bag is untyped.** It crosses a package boundary as
16
+ * `{ [key: string]: any }`, so a host that passes a string here should get a
17
+ * button that does nothing rather than a React crash on the customer's page.
18
+ */
19
+ export declare const resolveButtonClickHandler: ({ widgetInstanceProps, disabled, }: {
20
+ widgetInstanceProps?: WidgetInstanceProps;
21
+ disabled: boolean;
22
+ }) => ButtonClickHandler | undefined;
23
+ //# sourceMappingURL=button-instance-props.d.ts.map