@rulecms/widget-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 (165) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +125 -0
  3. package/fesm2022/rulecms-widget-angular.mjs +3465 -0
  4. package/fesm2022/rulecms-widget-angular.mjs.map +1 -0
  5. package/index.d.ts +6 -0
  6. package/lib/fetch/fetch-rule-cms-widget.d.ts +23 -0
  7. package/lib/fetch/fetch-rule-cms-widget.d.ts.map +1 -0
  8. package/lib/fetch/resolve-widget-libraries.d.ts +16 -0
  9. package/lib/fetch/resolve-widget-libraries.d.ts.map +1 -0
  10. package/lib/helpers/background-image-types.d.ts +24 -0
  11. package/lib/helpers/background-image-types.d.ts.map +1 -0
  12. package/lib/helpers/border-types.d.ts +22 -0
  13. package/lib/helpers/border-types.d.ts.map +1 -0
  14. package/lib/helpers/box-shadow-types.d.ts +25 -0
  15. package/lib/helpers/box-shadow-types.d.ts.map +1 -0
  16. package/lib/helpers/box-spacing-style-attribute-entries.d.ts +4 -0
  17. package/lib/helpers/box-spacing-style-attribute-entries.d.ts.map +1 -0
  18. package/lib/helpers/box-spacing-types.d.ts +31 -0
  19. package/lib/helpers/box-spacing-types.d.ts.map +1 -0
  20. package/lib/helpers/cloudinary-image-url.d.ts +20 -0
  21. package/lib/helpers/cloudinary-image-url.d.ts.map +1 -0
  22. package/lib/helpers/collect-component-instance-paths.d.ts +16 -0
  23. package/lib/helpers/collect-component-instance-paths.d.ts.map +1 -0
  24. package/lib/helpers/constants.d.ts +5 -0
  25. package/lib/helpers/constants.d.ts.map +1 -0
  26. package/lib/helpers/css-classes.d.ts +13 -0
  27. package/lib/helpers/css-classes.d.ts.map +1 -0
  28. package/lib/helpers/css-color-types.d.ts +18 -0
  29. package/lib/helpers/css-color-types.d.ts.map +1 -0
  30. package/lib/helpers/css-enum-types.d.ts +41 -0
  31. package/lib/helpers/css-enum-types.d.ts.map +1 -0
  32. package/lib/helpers/css-variable-types.d.ts +33 -0
  33. package/lib/helpers/css-variable-types.d.ts.map +1 -0
  34. package/lib/helpers/derive-display-flex-if-needed.d.ts +13 -0
  35. package/lib/helpers/derive-display-flex-if-needed.d.ts.map +1 -0
  36. package/lib/helpers/format-background-image-styles.d.ts +12 -0
  37. package/lib/helpers/format-background-image-styles.d.ts.map +1 -0
  38. package/lib/helpers/format-border-styles.d.ts +9 -0
  39. package/lib/helpers/format-border-styles.d.ts.map +1 -0
  40. package/lib/helpers/format-box-shadow-styles.d.ts +8 -0
  41. package/lib/helpers/format-box-shadow-styles.d.ts.map +1 -0
  42. package/lib/helpers/format-box-spacing-styles.d.ts +11 -0
  43. package/lib/helpers/format-box-spacing-styles.d.ts.map +1 -0
  44. package/lib/helpers/format-css-color-styles.d.ts +8 -0
  45. package/lib/helpers/format-css-color-styles.d.ts.map +1 -0
  46. package/lib/helpers/format-css-enum-styles.d.ts +7 -0
  47. package/lib/helpers/format-css-enum-styles.d.ts.map +1 -0
  48. package/lib/helpers/format-css-length-styles.d.ts +9 -0
  49. package/lib/helpers/format-css-length-styles.d.ts.map +1 -0
  50. package/lib/helpers/format-line-height-styles.d.ts +8 -0
  51. package/lib/helpers/format-line-height-styles.d.ts.map +1 -0
  52. package/lib/helpers/format-opacity-styles.d.ts +8 -0
  53. package/lib/helpers/format-opacity-styles.d.ts.map +1 -0
  54. package/lib/helpers/format-spacing-side-value.d.ts +4 -0
  55. package/lib/helpers/format-spacing-side-value.d.ts.map +1 -0
  56. package/lib/helpers/get-column-attributes.d.ts +26 -0
  57. package/lib/helpers/get-column-attributes.d.ts.map +1 -0
  58. package/lib/helpers/get-component-attributes-and-styles.d.ts +23 -0
  59. package/lib/helpers/get-component-attributes-and-styles.d.ts.map +1 -0
  60. package/lib/helpers/get-default-dimension-attributes.d.ts +9 -0
  61. package/lib/helpers/get-default-dimension-attributes.d.ts.map +1 -0
  62. package/lib/helpers/get-device-type-based-attributes.d.ts +10 -0
  63. package/lib/helpers/get-device-type-based-attributes.d.ts.map +1 -0
  64. package/lib/helpers/get-merged-attributes.d.ts +11 -0
  65. package/lib/helpers/get-merged-attributes.d.ts.map +1 -0
  66. package/lib/helpers/has-items.d.ts +3 -0
  67. package/lib/helpers/has-items.d.ts.map +1 -0
  68. package/lib/helpers/index.d.ts +40 -0
  69. package/lib/helpers/index.d.ts.map +1 -0
  70. package/lib/helpers/line-height-types.d.ts +12 -0
  71. package/lib/helpers/line-height-types.d.ts.map +1 -0
  72. package/lib/helpers/object-style-attribute-registry.d.ts +44 -0
  73. package/lib/helpers/object-style-attribute-registry.d.ts.map +1 -0
  74. package/lib/helpers/opacity-types.d.ts +9 -0
  75. package/lib/helpers/opacity-types.d.ts.map +1 -0
  76. package/lib/helpers/resolve-row-styles.d.ts +23 -0
  77. package/lib/helpers/resolve-row-styles.d.ts.map +1 -0
  78. package/lib/helpers/resolve-widget-container-styles.d.ts +55 -0
  79. package/lib/helpers/resolve-widget-container-styles.d.ts.map +1 -0
  80. package/lib/helpers/resolve-widget-instance-props.d.ts +18 -0
  81. package/lib/helpers/resolve-widget-instance-props.d.ts.map +1 -0
  82. package/lib/helpers/types.d.ts +131 -0
  83. package/lib/helpers/types.d.ts.map +1 -0
  84. package/lib/helpers/warn-unmatched-component-props.d.ts +30 -0
  85. package/lib/helpers/warn-unmatched-component-props.d.ts.map +1 -0
  86. package/lib/helpers-display/dimension-wrapper-styles.d.ts +7 -0
  87. package/lib/helpers-display/dimension-wrapper-styles.d.ts.map +1 -0
  88. package/lib/helpers-display/resolve-no-container.d.ts +14 -0
  89. package/lib/helpers-display/resolve-no-container.d.ts.map +1 -0
  90. package/lib/helpers-display/resolve-renders-own-element.d.ts +15 -0
  91. package/lib/helpers-display/resolve-renders-own-element.d.ts.map +1 -0
  92. package/lib/id-utils/collection-col-type-prefix.d.ts +2 -0
  93. package/lib/id-utils/collection-col-type-prefix.d.ts.map +1 -0
  94. package/lib/id-utils/dev-client-token.d.ts +33 -0
  95. package/lib/id-utils/dev-client-token.d.ts.map +1 -0
  96. package/lib/id-utils/drag-item-id-helper.d.ts +9 -0
  97. package/lib/id-utils/drag-item-id-helper.d.ts.map +1 -0
  98. package/lib/id-utils/get-collection-id-for-collection-type.d.ts +2 -0
  99. package/lib/id-utils/get-collection-id-for-collection-type.d.ts.map +1 -0
  100. package/lib/id-utils/get-name-and-instance-id-from-widget-key.d.ts +6 -0
  101. package/lib/id-utils/get-name-and-instance-id-from-widget-key.d.ts.map +1 -0
  102. package/lib/id-utils/get-name-for-widget-key.d.ts +5 -0
  103. package/lib/id-utils/get-name-for-widget-key.d.ts.map +1 -0
  104. package/lib/id-utils/get-widget-key-for-collection.d.ts +16 -0
  105. package/lib/id-utils/get-widget-key-for-collection.d.ts.map +1 -0
  106. package/lib/id-utils/index.d.ts +11 -0
  107. package/lib/id-utils/index.d.ts.map +1 -0
  108. package/lib/id-utils/published-key-utilities.d.ts +24 -0
  109. package/lib/id-utils/published-key-utilities.d.ts.map +1 -0
  110. package/lib/id-utils/types.d.ts +25 -0
  111. package/lib/id-utils/types.d.ts.map +1 -0
  112. package/lib/id-utils/version-utilities.d.ts +7 -0
  113. package/lib/id-utils/version-utilities.d.ts.map +1 -0
  114. package/lib/library-registry/ComponentLibraryRegistry.d.ts +17 -0
  115. package/lib/library-registry/ComponentLibraryRegistry.d.ts.map +1 -0
  116. package/lib/library-registry/collect-referenced-library-ids.d.ts +20 -0
  117. package/lib/library-registry/collect-referenced-library-ids.d.ts.map +1 -0
  118. package/lib/library-registry/index.d.ts +5 -0
  119. package/lib/library-registry/index.d.ts.map +1 -0
  120. package/lib/library-registry/resolve-key.d.ts +16 -0
  121. package/lib/library-registry/resolve-key.d.ts.map +1 -0
  122. package/lib/library-registry/types.d.ts +142 -0
  123. package/lib/library-registry/types.d.ts.map +1 -0
  124. package/lib/provider/rule-cms-widget-context.service.d.ts +11 -0
  125. package/lib/provider/rule-cms-widget-context.service.d.ts.map +1 -0
  126. package/lib/provider/rule-cms-widget-provider.component.d.ts +26 -0
  127. package/lib/provider/rule-cms-widget-provider.component.d.ts.map +1 -0
  128. package/lib/render/breakpoint-variant-render.component.d.ts +21 -0
  129. package/lib/render/breakpoint-variant-render.component.d.ts.map +1 -0
  130. package/lib/render/breakpoint-variant-styles.d.ts +2 -0
  131. package/lib/render/breakpoint-variant-styles.d.ts.map +1 -0
  132. package/lib/render/display-component.component.d.ts +27 -0
  133. package/lib/render/display-component.component.d.ts.map +1 -0
  134. package/lib/render/display-device-type.d.ts +5 -0
  135. package/lib/render/display-device-type.d.ts.map +1 -0
  136. package/lib/render/embed-in-row.component.d.ts +21 -0
  137. package/lib/render/embed-in-row.component.d.ts.map +1 -0
  138. package/lib/render/embed-in-vertical-container.component.d.ts +24 -0
  139. package/lib/render/embed-in-vertical-container.component.d.ts.map +1 -0
  140. package/lib/render/get-components-plugin-from-plugins.d.ts +11 -0
  141. package/lib/render/get-components-plugin-from-plugins.d.ts.map +1 -0
  142. package/lib/render/has-device-divergent-values.d.ts +6 -0
  143. package/lib/render/has-device-divergent-values.d.ts.map +1 -0
  144. package/lib/render/render-components-for-device.component.d.ts +20 -0
  145. package/lib/render/render-components-for-device.component.d.ts.map +1 -0
  146. package/lib/render/render-components-inner.component.d.ts +33 -0
  147. package/lib/render/render-components-inner.component.d.ts.map +1 -0
  148. package/lib/render/render-components.component.d.ts +26 -0
  149. package/lib/render/render-components.component.d.ts.map +1 -0
  150. package/lib/render/types.d.ts +43 -0
  151. package/lib/render/types.d.ts.map +1 -0
  152. package/lib/widget/prepare-rule-cms-widget-data.d.ts +4 -0
  153. package/lib/widget/prepare-rule-cms-widget-data.d.ts.map +1 -0
  154. package/lib/widget/resolve-source-components-plugin.d.ts +19 -0
  155. package/lib/widget/resolve-source-components-plugin.d.ts.map +1 -0
  156. package/lib/widget/rule-cms-widget.component.d.ts +66 -0
  157. package/lib/widget/rule-cms-widget.component.d.ts.map +1 -0
  158. package/lib/widget/rule-cms-widget.styles.d.ts +9 -0
  159. package/lib/widget/rule-cms-widget.styles.d.ts.map +1 -0
  160. package/lib/widget/widget-data.types.d.ts +47 -0
  161. package/lib/widget/widget-data.types.d.ts.map +1 -0
  162. package/package.json +43 -0
  163. package/public-api.d.ts +22 -0
  164. package/public-api.d.ts.map +1 -0
  165. package/rulecms-widget-angular.d.ts.map +1 -0
@@ -0,0 +1,16 @@
1
+ import { GetWidgetKeyForCollection, WidgetCollectionForKey, PublishedWidgetCollectionForKey } from './types';
2
+ export declare const getWidgetKeyForCollection: (collection: WidgetCollectionForKey) => GetWidgetKeyForCollection;
3
+ export declare const getWidgetKeyForPublishedCollection: (collection: PublishedWidgetCollectionForKey) => GetWidgetKeyForCollection;
4
+ /**
5
+ * Returns a key in the format of collectionId or Collection_collectionName$collectionId@parentId or Collection_collectionName$collectionId
6
+ * @param collection - The collection to get the key for
7
+ * @returns The key in the format of collectionId or collectionId@parentId
8
+ */
9
+ export declare const getWidgetKeyForCollectionWithPrefix: (collection: WidgetCollectionForKey) => string;
10
+ /**
11
+ * Returns a key for published collections in the format of PublishedCollection_collectionName$publishedKey@parentId or PublishedCollection_collectionName$publishedKey
12
+ * @param collection - The published collection to get the key for
13
+ * @returns The key in the format of PublishedCollection_collectionName$publishedKey or PublishedCollection_collectionName$publishedKey@parentId
14
+ */
15
+ export declare const getWidgetKeyForPublishedCollectionWithPrefix: (collection: PublishedWidgetCollectionForKey) => string;
16
+ //# sourceMappingURL=get-widget-key-for-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-widget-key-for-collection.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/get-widget-key-for-collection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,yBAAyB,eACxB,sBAAsB,KACjC,yBAcF,CAAC;AAKF,eAAO,MAAM,kCAAkC,eACjC,+BAA+B,KAC1C,yBAcF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,eAAgB,sBAAsB,KAAG,MAGxF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4CAA4C,eAAgB,+BAA+B,KAAG,MAG1G,CAAC"}
@@ -0,0 +1,11 @@
1
+ export * from './collection-col-type-prefix';
2
+ export * from './dev-client-token';
3
+ export * from './drag-item-id-helper';
4
+ export * from './get-collection-id-for-collection-type';
5
+ export * from './get-name-and-instance-id-from-widget-key';
6
+ export * from './get-name-for-widget-key';
7
+ export * from './get-widget-key-for-collection';
8
+ export * from './published-key-utilities';
9
+ export * from './version-utilities';
10
+ export * from './types';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Character used to join environmentId and resource key when generating published keys
3
+ */
4
+ export declare const PUBLISHED_KEY_SEPARATOR = "---";
5
+ /**
6
+ * Character used to separate embedded published key from its parent
7
+ */
8
+ export declare const EMBEDDED_KEY_SEPARATOR = "___";
9
+ /**
10
+ * Generates a published key using the format: {environmentId}---{originalKey}
11
+ * @param environmentId - The environment ID
12
+ * @param originalKey - The original resource key
13
+ * @returns The generated published key
14
+ */
15
+ export declare function generatePublishedKey(environmentId: string, originalKey: string): string;
16
+ /**
17
+ * Generates a published key for embedded resources using the format: {environmentId}---{originalKey}___{instanceId}
18
+ * @param environmentId - The environment ID
19
+ * @param originalKey - The original resource key
20
+ * @param instanceId - The instance ID of the unpublished collection
21
+ * @returns The generated published key for embedded resource
22
+ */
23
+ export declare function generatePublishedKeyForEmbedded(environmentId: string, originalKey: string, instanceId: string): string;
24
+ //# sourceMappingURL=published-key-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"published-key-utilities.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/published-key-utilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEvF;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,MAAM,CAGR"}
@@ -0,0 +1,25 @@
1
+ export type DragItemIdPrefixes = 'ComposerWidget' | 'Collection' | 'MoveWidgetHandle';
2
+ export declare const DragItemIdPrefixTypes: {
3
+ ComposerComponent: DragItemIdPrefixes;
4
+ Collection: DragItemIdPrefixes;
5
+ MoveComponentHandle: DragItemIdPrefixes;
6
+ };
7
+ export type DragItemAndPrefix = {
8
+ prefix: DragItemIdPrefixes;
9
+ id: string;
10
+ };
11
+ export type GetWidgetKeyForCollection = {
12
+ error?: string;
13
+ data?: string;
14
+ };
15
+ export type WidgetCollectionForKey = {
16
+ id: string;
17
+ name: string;
18
+ parentId?: string | null;
19
+ };
20
+ export type PublishedWidgetCollectionForKey = {
21
+ publishedKey: string;
22
+ name: string;
23
+ parentId?: string | null;
24
+ };
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAEtF,eAAO,MAAM,qBAAqB;uBACO,kBAAkB;gBAC7B,kBAAkB;yBACH,kBAAkB;CAC9D,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Increments a semantic version string by incrementing the patch number
3
+ * @param currentVersion - Current version string (e.g., "1.0.0")
4
+ * @returns Incremented version string (e.g., "1.0.1")
5
+ */
6
+ export declare function incrementVersion(currentVersion: string): string;
7
+ //# sourceMappingURL=version-utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-utilities.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/version-utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAe/D"}
@@ -0,0 +1,17 @@
1
+ import { ComponentLibraryModule, ComponentLibraryRegistry, SourceComponentsPlugin } from './types';
2
+ /**
3
+ * Composes loaded library modules into the single plugin the render pipeline
4
+ * consumes. Default library entries keep bare keys; all other libraries are
5
+ * namespaced "libraryId/type" (see resolve-key.ts).
6
+ */
7
+ export declare function composeSourceComponentsPlugin(modules: Map<string, ComponentLibraryModule>): SourceComponentsPlugin;
8
+ /**
9
+ * Creates a per-provider/per-widget registry instance.
10
+ *
11
+ * Cache semantics: loads are keyed by libraryId for the instance's lifetime —
12
+ * the first successful load wins, so re-renders with structurally identical
13
+ * inline registration maps perform zero new loads (registration thunks are
14
+ * invoked at most once per id per instance).
15
+ */
16
+ export declare function createComponentLibraryRegistry(): ComponentLibraryRegistry;
17
+ //# sourceMappingURL=ComponentLibraryRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentLibraryRegistry.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/ComponentLibraryRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAEtB,wBAAwB,EAGxB,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAuDjB;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,GAC3C,sBAAsB,CASxB;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,IAAI,wBAAwB,CA4HzE"}
@@ -0,0 +1,20 @@
1
+ import { Items, WidgetCollection } from '../helpers/types';
2
+ import { ReferencedLibraries } from './types';
3
+ /**
4
+ * Scans a widget config (display item list + all collections, including
5
+ * embedded ones) and returns the set of library ids it references.
6
+ *
7
+ * CRITICAL scaling property: resolution is config-scoped — only the libraries
8
+ * returned here are ever loaded, never the consumer's whole registration map.
9
+ *
10
+ * Prefixed types (collections / drag items) are not components and never
11
+ * contribute a library reference; a component column with no libraryId (or
12
+ * the reserved "default" id) references the default library.
13
+ */
14
+ export declare function collectReferencedLibraryIds({ displayItemList, widgetCollections, }: {
15
+ displayItemList: Items | undefined;
16
+ widgetCollections: {
17
+ [key: string]: WidgetCollection;
18
+ } | undefined;
19
+ }): ReferencedLibraries;
20
+ //# sourceMappingURL=collect-referenced-library-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collect-referenced-library-ids.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/collect-referenced-library-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAoB,MAAM,kBAAkB,CAAC;AAG7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,eAAe,EACf,iBAAiB,GAClB,EAAE;IACD,eAAe,EAAE,KAAK,GAAG,SAAS,CAAC;IACnC,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC;CACpE,GAAG,mBAAmB,CAsCtB"}
@@ -0,0 +1,5 @@
1
+ export { createComponentLibraryRegistry, composeSourceComponentsPlugin, } from './ComponentLibraryRegistry';
2
+ export { resolveKey, DEFAULT_LIBRARY_ID } from './resolve-key';
3
+ export { collectReferencedLibraryIds } from './collect-referenced-library-ids';
4
+ export type { ComponentLibraryModule, ComponentLibraryManifest, ComponentLibraryEditorSurface, ComponentLibraryRegistry, LibraryComponentEntry, LibraryCardComponent, LibraryCardInputs, LibraryRegistration, LibraryRegistrationMap, SourceComponentsPlugin, ResolveNoContainer, ResolveRendersOwnElement, NoContainerResolverContext, DefaultAttributeValue, DeviceTypeBasedAttributeValues, EditorPreviewEntry, LibraryCard, LibraryCardGroup, ComponentMetadata, ComponentMetadataForEditing, AttributeEditModeConfig, AttributeListForComponentTypes, ComponentNameToModifyAttribute, ConfigLibraryDescriptor, ConfigLibrariesMap, ReferencedLibraries, ResolveLibrariesParams, } from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,YAAY,EACV,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,EAC9B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The reserved id for the default component library. Configs that carry no
3
+ * libraryId on a component resolve to it, preserving backward compatibility.
4
+ */
5
+ export declare const DEFAULT_LIBRARY_ID = "default";
6
+ /**
7
+ * Maps a component's (libraryId, type) pair to its key in the composed
8
+ * components map. The default library keeps bare (unnamespaced) keys so
9
+ * existing configs resolve unchanged; every other library is namespaced as
10
+ * "libraryId/type" so identical local types across tenants never collide.
11
+ *
12
+ * Never apply this to collection types — collections are not components and
13
+ * are not namespaced.
14
+ */
15
+ export declare function resolveKey(libraryId: string | undefined, type: string): string;
16
+ //# sourceMappingURL=resolve-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-key.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/resolve-key.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAK9E"}
@@ -0,0 +1,142 @@
1
+ import type { Type } from '@angular/core';
2
+ import type { PageViewType, WidgetInstanceProps } from '../helpers/types';
3
+ /**
4
+ * Contract types for RuleCMS component libraries.
5
+ *
6
+ * `@rulecms/widget-angular` OWNS this contract; every component library
7
+ * (including `@rulecms/source-components-angular`, the default library)
8
+ * conforms to it — structurally, with no dependency on this package.
9
+ *
10
+ * CRITICAL: widget-angular must never import a concrete component library.
11
+ * Libraries are registered by the consumer application (see
12
+ * `LibraryRegistrationMap`).
13
+ */
14
+ export type DeviceTypeBasedAttributeValues = {
15
+ phone?: any;
16
+ tablet?: any;
17
+ desktop?: any;
18
+ all?: any;
19
+ };
20
+ export type DefaultAttributeValue = {
21
+ name: string;
22
+ defaultValues: DeviceTypeBasedAttributeValues;
23
+ };
24
+ /**
25
+ * Inputs every library card component must accept. The renderer instantiates
26
+ * the Angular class via `NgComponentOutlet` and binds these as inputs.
27
+ */
28
+ export interface LibraryCardInputs {
29
+ componentAttributes?: {
30
+ [key: string]: any;
31
+ };
32
+ pageViewType?: PageViewType;
33
+ styleProps?: {
34
+ [key: string]: any;
35
+ };
36
+ className?: string;
37
+ widgetInstanceProps?: WidgetInstanceProps;
38
+ }
39
+ export type LibraryCardComponent = Type<LibraryCardInputs>;
40
+ export type NoContainerResolverContext = {
41
+ componentAttributes?: {
42
+ [key: string]: any;
43
+ };
44
+ styleProps?: {
45
+ [key: string]: any;
46
+ } | undefined;
47
+ };
48
+ export type ResolveNoContainer = (context: NoContainerResolverContext) => boolean;
49
+ export type ResolveRendersOwnElement = (context: NoContainerResolverContext) => boolean;
50
+ export type LibraryComponentEntry = {
51
+ id: string;
52
+ /** Angular standalone component that renders this type. */
53
+ card: LibraryCardComponent;
54
+ defaultAttributeValues: DefaultAttributeValue[];
55
+ resolveNoContainer?: ResolveNoContainer;
56
+ noContainer?: boolean;
57
+ resolveRendersOwnElement?: ResolveRendersOwnElement;
58
+ };
59
+ export interface SourceComponentsPlugin {
60
+ components: Record<string, LibraryComponentEntry>;
61
+ }
62
+ export interface ComponentLibraryManifest {
63
+ id: string;
64
+ version: string;
65
+ /**
66
+ * The Angular version range the library was built against. Libraries MUST
67
+ * externalize @angular/core and @angular/common (peer dependencies).
68
+ */
69
+ angularPeerRange: string;
70
+ }
71
+ export type AttributeEditModeConfig = {
72
+ name: string;
73
+ heading?: string;
74
+ subHeading?: string;
75
+ defaultValues?: DeviceTypeBasedAttributeValues;
76
+ hiddenToUser?: boolean;
77
+ };
78
+ export type ComponentMetadata = {
79
+ defaultAttributeValues: DefaultAttributeValue[];
80
+ attributeEditModeConfigs: AttributeEditModeConfig[];
81
+ };
82
+ export type AttributeListForComponentTypes = {
83
+ [key: string]: string[];
84
+ };
85
+ export type ComponentNameToModifyAttribute = {
86
+ [key: string]: string;
87
+ };
88
+ export type ComponentMetadataForEditing = {
89
+ attributeListForComponentTypes: AttributeListForComponentTypes;
90
+ componentNameToModifyAttribute: ComponentNameToModifyAttribute;
91
+ componentMetadata: Record<string, ComponentMetadata>;
92
+ };
93
+ export type EditorPreviewEntry = {
94
+ id: string;
95
+ /** Compact glyph for the palette card: an emoji or short text label. */
96
+ icon: string;
97
+ label: string;
98
+ };
99
+ export type LibraryCard = {
100
+ title: string;
101
+ entries: EditorPreviewEntry[];
102
+ };
103
+ export type LibraryCardGroup = {
104
+ title: string;
105
+ cards: LibraryCard[];
106
+ showInitially?: boolean;
107
+ };
108
+ export interface ComponentLibraryEditorSurface {
109
+ previewComponents: Record<string, EditorPreviewEntry>;
110
+ previewCardGroups: LibraryCardGroup[];
111
+ componentMetadata: ComponentMetadataForEditing;
112
+ }
113
+ export interface ComponentLibraryModule {
114
+ manifest: ComponentLibraryManifest;
115
+ components: Record<string, LibraryComponentEntry>;
116
+ editor?: ComponentLibraryEditorSurface;
117
+ }
118
+ export type ComponentLibraryModuleResolvable = ComponentLibraryModule | {
119
+ default: ComponentLibraryModule;
120
+ };
121
+ export type LibraryRegistration = ComponentLibraryModule | (() => Promise<ComponentLibraryModuleResolvable>);
122
+ export type LibraryRegistrationMap = Record<string, LibraryRegistration>;
123
+ export type ConfigLibraryDescriptor = {
124
+ version: string;
125
+ trust?: 'trusted' | 'untrusted';
126
+ url?: string;
127
+ integrity?: string;
128
+ };
129
+ export type ConfigLibrariesMap = Record<string, ConfigLibraryDescriptor>;
130
+ export interface ReferencedLibraries {
131
+ libraryIds: string[];
132
+ usesDefaultLibrary: boolean;
133
+ }
134
+ export interface ResolveLibrariesParams {
135
+ registrations: LibraryRegistrationMap | undefined;
136
+ referenced: ReferencedLibraries;
137
+ }
138
+ export interface ComponentLibraryRegistry {
139
+ resolveSync(params: ResolveLibrariesParams): SourceComponentsPlugin | null;
140
+ resolve(params: ResolveLibrariesParams): Promise<SourceComponentsPlugin>;
141
+ }
142
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import type { ComponentLibraryRegistry, LibraryRegistrationMap } from '../library-registry/types';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RuleCMSWidgetContextService {
4
+ token: string;
5
+ endpoint?: string;
6
+ libraries?: LibraryRegistrationMap;
7
+ readonly libraryRegistry: ComponentLibraryRegistry;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuleCMSWidgetContextService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuleCMSWidgetContextService>;
10
+ }
11
+ //# sourceMappingURL=rule-cms-widget-context.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-cms-widget-context.service.d.ts","sourceRoot":"","sources":["../../../src/lib/provider/rule-cms-widget-context.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;;AAEnC,qBACa,2BAA2B;IACtC,KAAK,SAAM;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAoC;yCAJ3E,2BAA2B;6CAA3B,2BAA2B;CAKvC"}
@@ -0,0 +1,26 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import type { LibraryRegistrationMap } from '../library-registry/types';
3
+ import { RuleCMSWidgetContextService } from './rule-cms-widget-context.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RuleCMSWidgetProviderComponent implements OnChanges {
6
+ private readonly context;
7
+ /**
8
+ * Client token. Staging/production tokens hit widget-cache; `dev.` tokens
9
+ * hit the live draft API.
10
+ */
11
+ token: string;
12
+ /** Optional API origin override. */
13
+ endpoint?: string;
14
+ /**
15
+ * Component library registrations available to widgets under this provider.
16
+ * The consumer registers the default library here, e.g.
17
+ * `{ default: sourceComponentsModule }` or
18
+ * `{ default: () => import('@rulecms/source-components-angular') }`.
19
+ */
20
+ libraries?: LibraryRegistrationMap;
21
+ constructor(context: RuleCMSWidgetContextService);
22
+ ngOnChanges(_changes: SimpleChanges): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuleCMSWidgetProviderComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<RuleCMSWidgetProviderComponent, "rulecms-widget-provider", never, { "token": { "alias": "token"; "required": true; }; "endpoint": { "alias": "endpoint"; "required": false; }; "libraries": { "alias": "libraries"; "required": false; }; }, {}, never, ["*"], true, never>;
25
+ }
26
+ //# sourceMappingURL=rule-cms-widget-provider.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-cms-widget-provider.component.d.ts","sourceRoot":"","sources":["../../../src/lib/provider/rule-cms-widget-provider.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;;AAEhF,qBAOa,8BAA+B,YAAW,SAAS;IAgBlD,OAAO,CAAC,QAAQ,CAAC,OAAO;IAfpC;;;OAGG;IACwB,KAAK,EAAG,MAAM,CAAC;IAC1C,oCAAoC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACM,SAAS,CAAC,EAAE,sBAAsB,CAAC;gBAEf,OAAO,EAAE,2BAA2B;IAEjE,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;yCAlB/B,8BAA8B;2CAA9B,8BAA8B;CAuB1C"}
@@ -0,0 +1,21 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { ComponentPropsMap, Items, WidgetCollection } from '../helpers/types';
3
+ import { RenderComponentPlugins } from './types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BreakpointVariantRenderComponent implements OnChanges {
6
+ displayItemList: Items;
7
+ widgetCollections: {
8
+ [key: string]: WidgetCollection;
9
+ };
10
+ plugins: RenderComponentPlugins;
11
+ componentProps?: ComponentPropsMap;
12
+ scopeIdInput?: string;
13
+ readonly devices: ("Phone" | "Tablet" | "Desktop")[];
14
+ divergent: boolean;
15
+ variantStyles: string;
16
+ resolvedScopeId: string;
17
+ ngOnChanges(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointVariantRenderComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreakpointVariantRenderComponent, "rulecms-breakpoint-variants", never, { "displayItemList": { "alias": "displayItemList"; "required": true; }; "widgetCollections": { "alias": "widgetCollections"; "required": true; }; "plugins": { "alias": "plugins"; "required": true; }; "componentProps": { "alias": "componentProps"; "required": false; }; "scopeIdInput": { "alias": "scopeIdInput"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
21
+ //# sourceMappingURL=breakpoint-variant-render.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoint-variant-render.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/breakpoint-variant-render.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EACL,iBAAiB,EAEjB,KAAK,EACL,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AASjD,qBAsCa,gCAAiC,YAAW,SAAS;IACrC,eAAe,EAAG,KAAK,CAAC;IACxB,iBAAiB,EAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAC;IACxD,OAAO,EAAG,sBAAsB,CAAC;IACnD,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,OAAO,qCAAmB;IACnC,SAAS,UAAS;IAClB,aAAa,SAAM;IACnB,eAAe,SAAmC;IAElD,WAAW,IAAI,IAAI;yCAZR,gCAAgC;2CAAhC,gCAAgC;CAiB5C"}
@@ -0,0 +1,2 @@
1
+ export declare function buildBreakpointVariantStyles(scopeId: string): string;
2
+ //# sourceMappingURL=breakpoint-variant-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoint-variant-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/render/breakpoint-variant-styles.ts"],"names":[],"mappings":"AAQA,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAWpE"}
@@ -0,0 +1,27 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import type { LibraryCardComponent, LibraryComponentEntry } from '../library-registry/types';
3
+ import { WidgetInstanceProps } from '../helpers/types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DisplayComponentComponent implements OnChanges {
6
+ componentType: string;
7
+ libraryId?: string;
8
+ componentAttributes?: {
9
+ [key: string]: any;
10
+ };
11
+ components: Record<string, LibraryComponentEntry>;
12
+ styleProps?: {
13
+ [key: string]: any;
14
+ };
15
+ widgetInstanceProps?: WidgetInstanceProps;
16
+ card: LibraryCardComponent | null;
17
+ cardInputs: Record<string, unknown>;
18
+ needsWrapper: boolean;
19
+ rendersOwnElement: boolean;
20
+ cssClasses?: string;
21
+ wrapperClass?: string;
22
+ wrapperStyle: Record<string, unknown>;
23
+ ngOnChanges(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<DisplayComponentComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<DisplayComponentComponent, "rulecms-display-component", never, { "componentType": { "alias": "componentType"; "required": true; }; "libraryId": { "alias": "libraryId"; "required": false; }; "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "components": { "alias": "components"; "required": true; }; "styleProps": { "alias": "styleProps"; "required": false; }; "widgetInstanceProps": { "alias": "widgetInstanceProps"; "required": false; }; }, {}, never, never, true, never>;
26
+ }
27
+ //# sourceMappingURL=display-component.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-component.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/display-component.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAG7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;;AASvD,qBAqBa,yBAA0B,YAAW,SAAS;IAC9B,aAAa,EAAG,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B,UAAU,EAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACrE,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAEnD,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IACzC,YAAY,UAAS;IACrB,iBAAiB,UAAS;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAE3C,WAAW,IAAI,IAAI;yCAhBR,yBAAyB;2CAAzB,yBAAyB;CAqDrC"}
@@ -0,0 +1,5 @@
1
+ import { DeviceDisplayTypes } from '../helpers/types';
2
+ export declare function resolveDisplayDeviceType(isPhone: boolean, isTablet: boolean, reduxDeviceDisplayType?: string): keyof typeof DeviceDisplayTypes;
3
+ export declare const PHONE_MEDIA_QUERY = "(max-width: 500px)";
4
+ export declare const TABLET_MEDIA_QUERY = "(max-width: 820px)";
5
+ //# sourceMappingURL=display-device-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-device-type.d.ts","sourceRoot":"","sources":["../../../src/lib/render/display-device-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,sBAAsB,CAAC,EAAE,MAAM,GAC9B,MAAM,OAAO,kBAAkB,CAgBjC;AAED,eAAO,MAAM,iBAAiB,uBAAmC,CAAC;AAClE,eAAO,MAAM,kBAAkB,uBAAoC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { DeviceDisplayTypes, DisplayItemRow } from '../helpers/types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EmbedInRowComponent implements OnChanges {
5
+ row: DisplayItemRow;
6
+ isComposeMode: boolean;
7
+ showDropContainers: boolean;
8
+ isWithinCollection: boolean;
9
+ deviceDisplayType: keyof typeof DeviceDisplayTypes;
10
+ private hidden;
11
+ private wrap;
12
+ private style;
13
+ private cssClasses;
14
+ get hiddenAttr(): string | null;
15
+ get hostClass(): string;
16
+ get hostStyle(): Record<string, string | number | undefined>;
17
+ ngOnChanges(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmbedInRowComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmbedInRowComponent, "rulecms-embed-row", never, { "row": { "alias": "row"; "required": true; }; "isComposeMode": { "alias": "isComposeMode"; "required": false; }; "showDropContainers": { "alias": "showDropContainers"; "required": false; }; "isWithinCollection": { "alias": "isWithinCollection"; "required": false; }; "deviceDisplayType": { "alias": "deviceDisplayType"; "required": false; }; }, {}, never, ["*"], true, never>;
20
+ }
21
+ //# sourceMappingURL=embed-in-row.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embed-in-row.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/embed-in-row.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,SAAS,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAStE,qBAKa,mBAAoB,YAAW,SAAS;IACxB,GAAG,EAAG,cAAc,CAAC;IACvC,aAAa,UAAS;IACtB,kBAAkB,UAAS;IAC3B,kBAAkB,UAAS;IAC3B,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAa;IAExE,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAmD;IAChE,OAAO,CAAC,UAAU,CAAM;IAExB,IACI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED,IACI,SAAS,IAAI,MAAM,CAEtB;IAED,IACI,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAQ3D;IAED,WAAW,IAAI,IAAI;yCAjCR,mBAAmB;2CAAnB,mBAAmB;CA0D/B"}
@@ -0,0 +1,24 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { DeviceDisplayTypes, Items } from '../helpers/types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EmbedInVerticalContainerComponent implements OnChanges {
5
+ displayItemList: Items;
6
+ isComposeMode: boolean;
7
+ showDropContainers: boolean;
8
+ isWithinCollection: boolean;
9
+ deviceDisplayType: keyof typeof DeviceDisplayTypes;
10
+ cssString: string;
11
+ scopedCss: string;
12
+ private readonly scopeClass;
13
+ private wrap;
14
+ private hidden;
15
+ private wrapperClass;
16
+ private wrapperStyle;
17
+ get hiddenAttr(): string | null;
18
+ get hostClass(): string;
19
+ get hostStyle(): Record<string, string | number | undefined>;
20
+ ngOnChanges(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmbedInVerticalContainerComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmbedInVerticalContainerComponent, "rulecms-embed-vertical", never, { "displayItemList": { "alias": "displayItemList"; "required": true; }; "isComposeMode": { "alias": "isComposeMode"; "required": false; }; "showDropContainers": { "alias": "showDropContainers"; "required": false; }; "isWithinCollection": { "alias": "isWithinCollection"; "required": false; }; "deviceDisplayType": { "alias": "deviceDisplayType"; "required": false; }; }, {}, never, ["*"], true, never>;
23
+ }
24
+ //# sourceMappingURL=embed-in-vertical-container.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embed-in-vertical-container.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/embed-in-vertical-container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,SAAS,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAEL,kBAAkB,EAElB,KAAK,EACN,MAAM,kBAAkB,CAAC;;AAS1B,qBAUa,iCAAkC,YAAW,SAAS;IACtC,eAAe,EAAG,KAAK,CAAC;IAC1C,aAAa,UAAS;IACtB,kBAAkB,UAAS;IAC3B,kBAAkB,UAAS;IAC3B,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAa;IAExE,SAAS,SAAM;IACf,SAAS,SAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0C;IACrE,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,YAAY,CAAmD;IAEvE,IACI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED,IACI,SAAS,IAAI,MAAM,CAEtB;IAED,IACI,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAQ3D;IAED,WAAW,IAAI,IAAI;yCArCR,iCAAiC;2CAAjC,iCAAiC;CA8E7C"}
@@ -0,0 +1,11 @@
1
+ import { RenderComponentPlugins } from './types';
2
+ import { SourceComponentsPlugin } from '../library-registry/types';
3
+ /**
4
+ * Extracts the (already composed) source components plugin from the plugins
5
+ * object the pipeline receives. Throws if it is missing or malformed.
6
+ *
7
+ * Named to avoid confusion with component-library factories: this does not
8
+ * build a plugin, it validates and returns the one that was injected.
9
+ */
10
+ export declare function getComponentsPluginFromPlugins(plugins: RenderComponentPlugins | undefined): SourceComponentsPlugin;
11
+ //# sourceMappingURL=get-components-plugin-from-plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-components-plugin-from-plugins.d.ts","sourceRoot":"","sources":["../../../src/lib/render/get-components-plugin-from-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,sBAAsB,GAAG,SAAS,GAC1C,sBAAsB,CA8BxB"}
@@ -0,0 +1,6 @@
1
+ import { Items, WidgetCollection } from '../helpers/types';
2
+ /** True when any component attribute varies by phone/tablet/desktop. */
3
+ export declare function hasDeviceDivergentValues(displayItemList: Items, widgetCollections: {
4
+ [key: string]: WidgetCollection;
5
+ }): boolean;
6
+ //# sourceMappingURL=has-device-divergent-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-device-divergent-values.d.ts","sourceRoot":"","sources":["../../../src/lib/render/has-device-divergent-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA4E3D,wEAAwE;AACxE,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,KAAK,EACtB,iBAAiB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAE,GACrD,OAAO,CAYT"}
@@ -0,0 +1,20 @@
1
+ import { ComponentPropsMap, DeviceDisplayTypes, Items, WidgetCollection } from '../helpers/types';
2
+ import { RenderComponentPlugins } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RenderComponentsForDeviceComponent {
5
+ displayItemList: Items;
6
+ isComposeMode: boolean;
7
+ isWithinCollection: boolean;
8
+ widgetCollections: {
9
+ [key: string]: WidgetCollection;
10
+ };
11
+ showDropContainers: boolean;
12
+ reduxDeviceDisplayType?: string;
13
+ deviceDisplayType: keyof typeof DeviceDisplayTypes;
14
+ plugins: RenderComponentPlugins;
15
+ componentProps?: ComponentPropsMap;
16
+ ancestorColumnIds?: string[];
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderComponentsForDeviceComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<RenderComponentsForDeviceComponent, "rulecms-render-for-device", never, { "displayItemList": { "alias": "displayItemList"; "required": true; }; "isComposeMode": { "alias": "isComposeMode"; "required": false; }; "isWithinCollection": { "alias": "isWithinCollection"; "required": false; }; "widgetCollections": { "alias": "widgetCollections"; "required": true; }; "showDropContainers": { "alias": "showDropContainers"; "required": false; }; "reduxDeviceDisplayType": { "alias": "reduxDeviceDisplayType"; "required": false; }; "deviceDisplayType": { "alias": "deviceDisplayType"; "required": true; }; "plugins": { "alias": "plugins"; "required": true; }; "componentProps": { "alias": "componentProps"; "required": false; }; "ancestorColumnIds": { "alias": "ancestorColumnIds"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
20
+ //# sourceMappingURL=render-components-for-device.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-components-for-device.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/render-components-for-device.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AAGjD,qBAsBa,kCAAkC;IAClB,eAAe,EAAG,KAAK,CAAC;IAC1C,aAAa,UAAS;IACtB,kBAAkB,UAAS;IACT,iBAAiB,EAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAC;IAC1E,kBAAkB,UAAS;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAG,MAAM,OAAO,kBAAkB,CAAC;IACpD,OAAO,EAAG,sBAAsB,CAAC;IACnD,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;yCAV3B,kCAAkC;2CAAlC,kCAAkC;CAW9C"}
@@ -0,0 +1,33 @@
1
+ import { ComponentPropsMap, DisplayItemColumn, DeviceDisplayTypes, Items, WidgetCollection } from '../helpers/types';
2
+ import { RenderComponentPlugins } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RenderComponentsInnerComponent {
5
+ displayItemList: Items;
6
+ isComposeMode: boolean;
7
+ isWithinCollection: boolean;
8
+ widgetCollections: {
9
+ [key: string]: WidgetCollection;
10
+ };
11
+ showDropContainers: boolean;
12
+ reduxDeviceDisplayType?: string;
13
+ plugins: RenderComponentPlugins;
14
+ deviceDisplayType: keyof typeof DeviceDisplayTypes;
15
+ componentProps?: ComponentPropsMap;
16
+ ancestorColumnIds?: string[];
17
+ get components(): Record<string, import("@rulecms/widget-angular").LibraryComponentEntry>;
18
+ isRenderableColumn(col: DisplayItemColumn): boolean;
19
+ columnView(col: DisplayItemColumn): {
20
+ componentAttributes?: {
21
+ [key: string]: any;
22
+ };
23
+ styleProps?: {
24
+ [key: string]: any;
25
+ };
26
+ };
27
+ collectionFor(col: DisplayItemColumn): Items | null;
28
+ childAncestorIds(columnId: string): string[];
29
+ instanceProps(columnId: string): import("@rulecms/widget-angular").WidgetInstanceProps | undefined;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderComponentsInnerComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<RenderComponentsInnerComponent, "rulecms-render-inner", never, { "displayItemList": { "alias": "displayItemList"; "required": true; }; "isComposeMode": { "alias": "isComposeMode"; "required": false; }; "isWithinCollection": { "alias": "isWithinCollection"; "required": false; }; "widgetCollections": { "alias": "widgetCollections"; "required": true; }; "showDropContainers": { "alias": "showDropContainers"; "required": false; }; "reduxDeviceDisplayType": { "alias": "reduxDeviceDisplayType"; "required": false; }; "plugins": { "alias": "plugins"; "required": true; }; "deviceDisplayType": { "alias": "deviceDisplayType"; "required": true; }; "componentProps": { "alias": "componentProps"; "required": false; }; "ancestorColumnIds": { "alias": "ancestorColumnIds"; "required": false; }; }, {}, never, never, true, never>;
32
+ }
33
+ //# sourceMappingURL=render-components-inner.component.d.ts.map