@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.
- package/LICENSE +9 -0
- package/README.md +117 -0
- package/THIRD_PARTY_NOTICES +50 -0
- package/fesm2022/rulecms-source-components-angular-icon-registry.mjs +144 -0
- package/fesm2022/rulecms-source-components-angular-icon-registry.mjs.map +1 -0
- package/fesm2022/rulecms-source-components-angular.mjs +3979 -0
- package/fesm2022/rulecms-source-components-angular.mjs.map +1 -0
- package/icon-registry/icon-aliases.d.ts +10 -0
- package/icon-registry/icon-aliases.d.ts.map +1 -0
- package/icon-registry/index.d.ts +6 -0
- package/icon-registry/index.d.ts.map +1 -0
- package/icon-registry/resolve-icon-name.d.ts +6 -0
- package/icon-registry/resolve-icon-name.d.ts.map +1 -0
- package/icon-registry/resolve-icon-node.d.ts +25 -0
- package/icon-registry/resolve-icon-node.d.ts.map +1 -0
- package/icon-registry/rulecms-source-components-angular-icon-registry.d.ts.map +1 -0
- package/icon-registry/search-icon-names.d.ts +11 -0
- package/icon-registry/search-icon-names.d.ts.map +1 -0
- package/index.d.ts +6 -0
- package/lib/base-components/display/card-entries/card-entries.d.ts +3 -0
- package/lib/base-components/display/card-entries/card-entries.d.ts.map +1 -0
- package/lib/base-components/display/card-groups.d.ts +3 -0
- package/lib/base-components/display/card-groups.d.ts.map +1 -0
- package/lib/base-components/display/component-attributes/attribute-list-for-component-types.d.ts +20 -0
- package/lib/base-components/display/component-attributes/attribute-list-for-component-types.d.ts.map +1 -0
- package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts +12 -0
- package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/attribute-edit-mode-configs.d.ts +3 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/build-cloudinary-image-urls.d.ts +7 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/build-cloudinary-image-urls.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/cloudinary-advanced-image.component.d.ts +28 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/cloudinary-advanced-image.component.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/default-attribute-values.d.ts +3 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/resolve-no-container.d.ts +8 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/cloudinary-advanced-image/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts +109 -0
- package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts +16 -0
- package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts +3 -0
- package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-accordion/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts +27 -0
- package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/resolve-no-container.d.ts +8 -0
- package/lib/base-components/display/components/r-accordion/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-accordion/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/r-accordion/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/attribute-edit-mode-configs.d.ts +12 -0
- package/lib/base-components/display/components/r-button/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/button-attributes.d.ts +51 -0
- package/lib/base-components/display/components/r-button/button-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/button-css-variables.d.ts +28 -0
- package/lib/base-components/display/components/r-button/button-css-variables.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/button-instance-props.d.ts +23 -0
- package/lib/base-components/display/components/r-button/button-instance-props.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/button-preset-styles.d.ts +13 -0
- package/lib/base-components/display/components/r-button/button-preset-styles.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/button-presets.d.ts +76 -0
- package/lib/base-components/display/components/r-button/button-presets.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/default-attribute-values.d.ts +14 -0
- package/lib/base-components/display/components/r-button/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-button/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/r-button.component.d.ts +26 -0
- package/lib/base-components/display/components/r-button/r-button.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/resolve-button-preset.d.ts +11 -0
- package/lib/base-components/display/components/r-button/resolve-button-preset.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/resolve-no-container.d.ts +8 -0
- package/lib/base-components/display/components/r-button/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-button/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/r-button/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/attribute-edit-mode-configs.d.ts +10 -0
- package/lib/base-components/display/components/r-divider/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/default-attribute-values.d.ts +11 -0
- package/lib/base-components/display/components/r-divider/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-divider/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/divider-attributes.d.ts +41 -0
- package/lib/base-components/display/components/r-divider/divider-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/divider-styles.d.ts +14 -0
- package/lib/base-components/display/components/r-divider/divider-styles.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/r-divider.component.d.ts +16 -0
- package/lib/base-components/display/components/r-divider/r-divider.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/resolve-no-container.d.ts +7 -0
- package/lib/base-components/display/components/r-divider/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-divider/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/r-divider/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/attribute-edit-mode-configs.d.ts +8 -0
- package/lib/base-components/display/components/r-embed/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/default-attribute-values.d.ts +14 -0
- package/lib/base-components/display/components/r-embed/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-embed/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/embed-attributes.d.ts +71 -0
- package/lib/base-components/display/components/r-embed/embed-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/embed-providers.d.ts +78 -0
- package/lib/base-components/display/components/r-embed/embed-providers.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/r-embed.component.d.ts +21 -0
- package/lib/base-components/display/components/r-embed/r-embed.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/resolve-embed.d.ts +41 -0
- package/lib/base-components/display/components/r-embed/resolve-embed.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/resolve-no-container.d.ts +13 -0
- package/lib/base-components/display/components/r-embed/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-embed/resolve-renders-own-element.d.ts +9 -0
- package/lib/base-components/display/components/r-embed/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/attribute-edit-mode-configs.d.ts +3 -0
- package/lib/base-components/display/components/r-icon/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/default-attribute-values.d.ts +3 -0
- package/lib/base-components/display/components/r-icon/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-icon/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/icon-attribute-value.d.ts +26 -0
- package/lib/base-components/display/components/r-icon/icon-attribute-value.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/r-icon.component.d.ts +16 -0
- package/lib/base-components/display/components/r-icon/r-icon.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/resolve-no-container.d.ts +7 -0
- package/lib/base-components/display/components/r-icon/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-icon/resolve-renders-own-element.d.ts +7 -0
- package/lib/base-components/display/components/r-icon/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/attribute-edit-mode-configs.d.ts +10 -0
- package/lib/base-components/display/components/r-list/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/default-attribute-values.d.ts +3 -0
- package/lib/base-components/display/components/r-list/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-list/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/list-attributes.d.ts +72 -0
- package/lib/base-components/display/components/r-list/list-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/r-list.component.d.ts +22 -0
- package/lib/base-components/display/components/r-list/r-list.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/resolve-no-container.d.ts +8 -0
- package/lib/base-components/display/components/r-list/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-list/resolve-renders-own-element.d.ts +7 -0
- package/lib/base-components/display/components/r-list/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/attribute-edit-mode-configs.d.ts +3 -0
- package/lib/base-components/display/components/r-text/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/default-attribute-values.d.ts +4 -0
- package/lib/base-components/display/components/r-text/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-text/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/enclosing-tags.d.ts +48 -0
- package/lib/base-components/display/components/r-text/enclosing-tags.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/r-text.component.d.ts +16 -0
- package/lib/base-components/display/components/r-text/r-text.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/resolve-enclosing-tag.d.ts +18 -0
- package/lib/base-components/display/components/r-text/resolve-enclosing-tag.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/resolve-no-container.d.ts +13 -0
- package/lib/base-components/display/components/r-text/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-text/resolve-renders-own-element.d.ts +11 -0
- package/lib/base-components/display/components/r-text/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/attribute-edit-mode-configs.d.ts +3 -0
- package/lib/base-components/display/components/r-video/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/build-video-delivery-urls.d.ts +7 -0
- package/lib/base-components/display/components/r-video/build-video-delivery-urls.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/default-attribute-values.d.ts +3 -0
- package/lib/base-components/display/components/r-video/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-video/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/r-video.component.d.ts +26 -0
- package/lib/base-components/display/components/r-video/r-video.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/resolve-no-container.d.ts +8 -0
- package/lib/base-components/display/components/r-video/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-video/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/r-video/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/editor-preview/card-entries/card-entries.d.ts +3 -0
- package/lib/base-components/editor-preview/card-entries/card-entries.d.ts.map +1 -0
- package/lib/base-components/editor-preview/card-groups.d.ts +3 -0
- package/lib/base-components/editor-preview/card-groups.d.ts.map +1 -0
- package/lib/component-identifiers.d.ts +4 -0
- package/lib/component-identifiers.d.ts.map +1 -0
- package/lib/component-library-module.d.ts +25 -0
- package/lib/component-library-module.d.ts.map +1 -0
- package/lib/get-component-metadata-for-editing.d.ts +3 -0
- package/lib/get-component-metadata-for-editing.d.ts.map +1 -0
- package/lib/get-preview-components.d.ts +12 -0
- package/lib/get-preview-components.d.ts.map +1 -0
- package/lib/get-source-components-plugin.d.ts +9 -0
- package/lib/get-source-components-plugin.d.ts.map +1 -0
- package/lib/shared/html-tag.component.d.ts +22 -0
- package/lib/shared/html-tag.component.d.ts.map +1 -0
- package/lib/shared/icons/append-icon-children.d.ts +5 -0
- package/lib/shared/icons/append-icon-children.d.ts.map +1 -0
- package/lib/shared/icons/svg-icon.component.d.ts +21 -0
- package/lib/shared/icons/svg-icon.component.d.ts.map +1 -0
- package/lib/shared/inline-markup/index.d.ts +5 -0
- package/lib/shared/inline-markup/index.d.ts.map +1 -0
- package/lib/shared/inline-markup/inline-markup.component.d.ts +16 -0
- package/lib/shared/inline-markup/inline-markup.component.d.ts.map +1 -0
- package/lib/shared/inline-markup/parse-inline-markers.d.ts +45 -0
- package/lib/shared/inline-markup/parse-inline-markers.d.ts.map +1 -0
- package/lib/shared/inline-markup/serialize-inline-markers.d.ts +14 -0
- package/lib/shared/inline-markup/serialize-inline-markers.d.ts.map +1 -0
- package/lib/shared/links/index.d.ts +8 -0
- package/lib/shared/links/index.d.ts.map +1 -0
- package/lib/shared/links/is-safe-href.d.ts +20 -0
- package/lib/shared/links/is-safe-href.d.ts.map +1 -0
- package/lib/shared/links/link-item.d.ts +39 -0
- package/lib/shared/links/link-item.d.ts.map +1 -0
- package/lib/shared/links/parse-inline-link-markers.d.ts +25 -0
- package/lib/shared/links/parse-inline-link-markers.d.ts.map +1 -0
- package/lib/shared/links/resolve-link-attributes.d.ts +13 -0
- package/lib/shared/links/resolve-link-attributes.d.ts.map +1 -0
- package/lib/types.d.ts +113 -0
- package/lib/types.d.ts.map +1 -0
- package/package.json +56 -0
- package/public-api.d.ts +30 -0
- package/public-api.d.ts.map +1 -0
- package/rulecms-source-components-angular.d.ts.map +1 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { CssStyleMap as CSSProperties } from '../../../../types';
|
|
2
|
+
import type { EmbedAspectRatio, EmbedLoading } from './embed-attributes';
|
|
3
|
+
import type { EmbedProvider } from './embed-providers';
|
|
4
|
+
/**
|
|
5
|
+
* One render's worth of embed: everything `REmbed` needs, and nothing that
|
|
6
|
+
* needs deciding twice.
|
|
7
|
+
*/
|
|
8
|
+
export type ResolvedEmbed = {
|
|
9
|
+
provider: EmbedProvider;
|
|
10
|
+
/** The rebuilt provider URL — see `embed-providers.ts`. */
|
|
11
|
+
src: string;
|
|
12
|
+
title: string;
|
|
13
|
+
aspectRatio: EmbedAspectRatio;
|
|
14
|
+
loading: EmbedLoading;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The single resolution path, shared by `REmbed` and by both container
|
|
18
|
+
* resolvers, in the way `r-text` shares `resolveEnclosingTag`.
|
|
19
|
+
*
|
|
20
|
+
* Sharing it is not tidiness. `resolveNoContainer` and
|
|
21
|
+
* `resolveRendersOwnElement` both answer questions about an element that only
|
|
22
|
+
* exists when a URL passed the allowlist, so if they decided that
|
|
23
|
+
* independently of the component, a rejected URL would have the renderer
|
|
24
|
+
* either handing column styles to an element that was never rendered or
|
|
25
|
+
* wrapping nothing in a styled div. Neither would look wrong in the drawer, in
|
|
26
|
+
* Redux, or in the stored JSON.
|
|
27
|
+
*
|
|
28
|
+
* `null` means nothing will be rendered: no URL, or one the allowlist refused.
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveEmbed(componentAttributes?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}): ResolvedEmbed | null;
|
|
33
|
+
/**
|
|
34
|
+
* The frame's own appearance, before column styles are laid over it.
|
|
35
|
+
*
|
|
36
|
+
* `display: block` removes the descender gap an inline replaced element leaves
|
|
37
|
+
* under itself, and the zero border removes the 2px inset ridge every browser
|
|
38
|
+
* still draws around an iframe by default.
|
|
39
|
+
*/
|
|
40
|
+
export declare const buildEmbedStyles: (aspectRatio: EmbedAspectRatio) => CSSProperties;
|
|
41
|
+
//# sourceMappingURL=resolve-embed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-embed.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-embed/resolve-embed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAStE,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,mBAAmB,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,aAAa,GAAG,IAAI,CAkB/F;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,gBAAgB,KAAG,aAO/D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NoContainerResolverContext } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* `false` whenever an iframe is rendered: it is a replaced element that holds
|
|
4
|
+
* margin, padding, width and height on itself, so a wrapper div would only add
|
|
5
|
+
* an element that does nothing.
|
|
6
|
+
*
|
|
7
|
+
* `true` when the URL is missing or the allowlist refused it, because then
|
|
8
|
+
* there is no element at all — the same answer `r-text` gives for bare text.
|
|
9
|
+
* Deciding this from `resolveEmbed`, rather than from the fact that this
|
|
10
|
+
* component "is an iframe component", is what keeps the two in step.
|
|
11
|
+
*/
|
|
12
|
+
export declare const resolveNoContainer: ({ componentAttributes }: NoContainerResolverContext) => boolean;
|
|
13
|
+
//# 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-embed/resolve-no-container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAGpE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,4BAA6B,0BAA0B,KAAG,OAC7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NoContainerResolverContext } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The iframe carries the className — when there is one. A rejected or unset
|
|
4
|
+
* URL renders nothing, and a class handed to a component that renders nothing
|
|
5
|
+
* disappears without trace, so this answers from the same resolution the
|
|
6
|
+
* component uses.
|
|
7
|
+
*/
|
|
8
|
+
export declare const resolveRendersOwnElement: ({ componentAttributes, }: NoContainerResolverContext) => boolean;
|
|
9
|
+
//# 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-embed/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAGpE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,6BAElC,0BAA0B,KAAG,OAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-icon/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAGjE,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAU7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-icon/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG/D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAUzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-icon/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,26 @@
|
|
|
1
|
+
import type { IconAttributeValue, IconNode } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* The placeholder a freshly dropped icon shows before the author picks one:
|
|
4
|
+
* Lucide's `shapes`, inlined as a literal.
|
|
5
|
+
*
|
|
6
|
+
* It is a literal rather than a registry lookup on purpose. Nothing on the
|
|
7
|
+
* render path may import `lucide-static` — the default library is registered
|
|
8
|
+
* eagerly by every consumer, so its bundle reaches every customer page.
|
|
9
|
+
* `__tests__/default-attribute-values.test.ts` checks this literal still
|
|
10
|
+
* matches the registry, so a drift shows up as a test failure rather than a
|
|
11
|
+
* placeholder that quietly stops matching the real icon.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PLACEHOLDER_ICON_NAME = "shapes";
|
|
14
|
+
export declare const PLACEHOLDER_ICON_NODE: IconNode;
|
|
15
|
+
export declare const PLACEHOLDER_ICON: IconAttributeValue;
|
|
16
|
+
/**
|
|
17
|
+
* Read geometry out of a persisted icon attribute.
|
|
18
|
+
*
|
|
19
|
+
* The composer writes `{ name, iconNode }` when the author picks an icon, so
|
|
20
|
+
* every surface renders from the value alone and never needs the registry.
|
|
21
|
+
* Anything else — a bare name string from a hand-edited config, a half-written
|
|
22
|
+
* value — yields null and renders nothing, which is the specified behaviour
|
|
23
|
+
* for an unresolvable icon on a published page.
|
|
24
|
+
*/
|
|
25
|
+
export declare const resolveIconAttributeValue: (value: unknown) => IconNode | null;
|
|
26
|
+
//# sourceMappingURL=icon-attribute-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-attribute-value.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-icon/icon-attribute-value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,qBAAqB,EAAE,QAOnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC;AAeF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,UAAW,OAAO,KAAG,QAAQ,GAAG,IAOrE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RIconComponent {
|
|
3
|
+
componentAttributes?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
styleProps?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
className?: string;
|
|
10
|
+
get iconNode(): import("@rulecms/source-components-angular").IconNode | null;
|
|
11
|
+
get a11yProps(): Record<string, string>;
|
|
12
|
+
get hasA11yProp(): boolean;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RIconComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RIconComponent, "rulecms-r-icon", never, { "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=r-icon.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-icon.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-icon/r-icon.component.ts"],"names":[],"mappings":";AAYA,qBAiBa,cAAc;IAChB,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,QAAQ,iEAGX;IAED,IAAI,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUtC;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;yCAxBU,cAAc;2CAAd,cAAc;CAyB1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Always renders an `<svg>`, a replaced element that honours sizing, margin
|
|
3
|
+
* and colour (via currentColor) directly, so a wrapper div would only add a
|
|
4
|
+
* redundant element. No configuration changes that.
|
|
5
|
+
*/
|
|
6
|
+
export declare const resolveNoContainer: () => boolean;
|
|
7
|
+
//# 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-icon/resolve-no-container.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `<svg>` carries the className. An unresolvable attribute renders no
|
|
3
|
+
* element at all, but that is a data error rather than a different root type,
|
|
4
|
+
* so the configured happy path is what this answers for.
|
|
5
|
+
*/
|
|
6
|
+
export declare const resolveRendersOwnElement: () => boolean;
|
|
7
|
+
//# 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-icon/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AttributeEditModeConfig } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Every setting the list offers, in the order the Modify drawer shows them.
|
|
4
|
+
*
|
|
5
|
+
* Order is not cosmetic. The drawer renders these top to bottom and the
|
|
6
|
+
* documentation registry asserts its pages match that sequence, so moving an
|
|
7
|
+
* entry here moves it in both places at once.
|
|
8
|
+
*/
|
|
9
|
+
export declare const attributeEditModeConfigs: AttributeEditModeConfig[];
|
|
10
|
+
//# 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-list/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAWjE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EA2C7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-list/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAY1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAgCzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-list/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,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The attribute names `r-list` reads.
|
|
3
|
+
*
|
|
4
|
+
* Every one is list-specific, including the links, which are conceptually the
|
|
5
|
+
* same numbered list `r-text` already offers. Sharing that attribute name
|
|
6
|
+
* would have saved one line of editor wiring and cost the documentation
|
|
7
|
+
* contract: RuleCMS publishes one page per component-scope attribute and
|
|
8
|
+
* requires exactly one owning component, so a shared name has no single page
|
|
9
|
+
* to link to from the drawer. Reuse happens a level down instead — the
|
|
10
|
+
* composer resolves an attribute to an *editor* by name, and `list-links`
|
|
11
|
+
* points at the editor `links-3-resolutions` already resolves to.
|
|
12
|
+
*
|
|
13
|
+
* Nothing here duplicates a column style attribute. Spacing, colour and
|
|
14
|
+
* typography come from Column Styles on the root element and inherit into
|
|
15
|
+
* the items; the attributes below are only what is specific to a list —
|
|
16
|
+
* which element it is, what the markers look like, and where numbering
|
|
17
|
+
* starts. Kind and marker are closed sets rather than free text, which is
|
|
18
|
+
* what lets them go through the composer's shared select and lets the render
|
|
19
|
+
* path treat anything unrecognised as unset.
|
|
20
|
+
*/
|
|
21
|
+
export declare const LIST_ITEMS_ATTRIBUTE = "list-items-3-resolutions";
|
|
22
|
+
export declare const LIST_KIND_ATTRIBUTE = "list-kind-3-resolutions";
|
|
23
|
+
export declare const LIST_MARKER_ATTRIBUTE = "list-marker-3-resolutions";
|
|
24
|
+
export declare const LIST_START_ATTRIBUTE = "list-start-3-resolutions";
|
|
25
|
+
export declare const LIST_REVERSED_ATTRIBUTE = "list-reversed-3-resolutions";
|
|
26
|
+
export declare const LIST_LINKS_ATTRIBUTE = "list-links-3-resolutions";
|
|
27
|
+
/** What a freshly dropped list shows before the author types anything. */
|
|
28
|
+
export declare const DEFAULT_LIST_ITEMS = "First item\nSecond item\nThird item";
|
|
29
|
+
export declare const LIST_KINDS: readonly ["unordered", "ordered"];
|
|
30
|
+
export type ListKind = (typeof LIST_KINDS)[number];
|
|
31
|
+
export declare const DEFAULT_LIST_KIND: ListKind;
|
|
32
|
+
/**
|
|
33
|
+
* `list-style-type` values worth offering. Every entry is valid CSS on both
|
|
34
|
+
* `<ul>` and `<ol>`, so the marker survives the author switching kind rather
|
|
35
|
+
* than resetting. Unset means the browser default — disc for unordered,
|
|
36
|
+
* decimal for ordered — which is why there is no default constant here: not
|
|
37
|
+
* setting the property at all is the default.
|
|
38
|
+
*/
|
|
39
|
+
export declare const LIST_MARKERS: readonly ["disc", "circle", "square", "decimal", "lower-alpha", "upper-alpha", "lower-roman", "upper-roman", "none"];
|
|
40
|
+
export type ListMarker = (typeof LIST_MARKERS)[number];
|
|
41
|
+
type Attributes = {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
} | undefined;
|
|
44
|
+
export declare const resolveListKind: (componentAttributes: Attributes) => ListKind;
|
|
45
|
+
/**
|
|
46
|
+
* A stored value reaches a CSS property here, so the allowlist is the
|
|
47
|
+
* boundary that keeps it from being whatever a request happened to write.
|
|
48
|
+
* Unrecognised values mean "unset" and the browser default applies.
|
|
49
|
+
*/
|
|
50
|
+
export declare const resolveListMarker: (componentAttributes: Attributes) => ListMarker | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* One item per line of the authored text, blank lines dropped. An unset
|
|
53
|
+
* attribute falls back to the placeholder items, but text the author
|
|
54
|
+
* deliberately cleared stays cleared — an empty list element still carries
|
|
55
|
+
* the column's styles and stays selectable in the composer.
|
|
56
|
+
*/
|
|
57
|
+
export declare const resolveListItems: (componentAttributes: Attributes) => string[];
|
|
58
|
+
/**
|
|
59
|
+
* HTML's `start` takes any integer, including negative ones. The editor
|
|
60
|
+
* stores a number, but a hand-written or migrated config may carry a numeric
|
|
61
|
+
* string; both mean the same thing here. Anything else is unset, and only an
|
|
62
|
+
* ordered list ever reads it.
|
|
63
|
+
*/
|
|
64
|
+
export declare const resolveListStart: (componentAttributes: Attributes) => number | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Select editors in the composer store `'true'` / `'false'` as strings, while
|
|
67
|
+
* a hand-written or migrated config may carry a real boolean. Both mean the
|
|
68
|
+
* same thing here. Only an ordered list ever reads it.
|
|
69
|
+
*/
|
|
70
|
+
export declare const resolveListReversed: (componentAttributes: Attributes) => boolean;
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=list-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-list/list-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAC/D,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAC7D,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AACjE,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAC/D,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AACrE,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,wCAAwC,CAAC;AAExE,eAAO,MAAM,UAAU,mCAAoC,CAAC;AAC5D,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,eAAO,MAAM,iBAAiB,EAAE,QAAsB,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,sHAUf,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AAErD,eAAO,MAAM,eAAe,wBAAyB,UAAU,KAAG,QAGjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,wBAAyB,UAAU,KAAG,UAAU,GAAG,SAGhF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,wBAAyB,UAAU,KAAG,MAAM,EAYxE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,wBAAyB,UAAU,KAAG,MAAM,GAAG,SAY3E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAyB,UAAU,KAAG,OAMrE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RListComponent {
|
|
3
|
+
componentAttributes?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
styleProps?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
className?: string;
|
|
10
|
+
get marker(): "circle" | "none" | "disc" | "square" | "decimal" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman" | undefined;
|
|
11
|
+
get links(): any;
|
|
12
|
+
get style(): {
|
|
13
|
+
listStyleType?: "circle" | "none" | "disc" | "square" | "decimal" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman" | undefined;
|
|
14
|
+
};
|
|
15
|
+
get items(): string[];
|
|
16
|
+
get kind(): "unordered" | "ordered";
|
|
17
|
+
get start(): number | undefined;
|
|
18
|
+
get reversed(): boolean;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RListComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RListComponent, "rulecms-r-list", never, { "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=r-list.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-list/r-list.component.ts"],"names":[],"mappings":";AAYA,qBAyBa,cAAc;IAChB,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,MAAM,kIAET;IACD,IAAI,KAAK,QAER;IACD,IAAI,KAAK;;MAKR;IACD,IAAI,KAAK,aAER;IACD,IAAI,IAAI,4BAEP;IACD,IAAI,KAAK,uBAER;IACD,IAAI,QAAQ,YAEX;yCA5BU,cAAc;2CAAd,cAAc;CA6B1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RList always renders a `<ul>` or `<ol>` — both block-level elements that
|
|
3
|
+
* hold margin, padding, width and border as authored — and puts styleProps on
|
|
4
|
+
* that element itself. No configuration changes the answer, so no wrapper
|
|
5
|
+
* div, 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-list/resolve-no-container.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RList's root is always a real element — `<ul>` or `<ol>` — so it can always
|
|
3
|
+
* carry the column's className, and the component applies the one it
|
|
4
|
+
* receives.
|
|
5
|
+
*/
|
|
6
|
+
export declare const resolveRendersOwnElement: () => boolean;
|
|
7
|
+
//# 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-list/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-text/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAmB7D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefaultAttributeValue } from '../../../../types';
|
|
2
|
+
export declare const DEFAULT_CONTENT_TEXT = "This is a text block. Click to edit and add your own content.";
|
|
3
|
+
export declare const defaultAttributeValues: DefaultAttributeValue[];
|
|
4
|
+
//# 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-text/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,oBAAoB,kEACgC,CAAC;AAElE,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAezD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-text/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,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTML tags the RText component is allowed to enclose its text content in,
|
|
3
|
+
* ordered from most common to least common.
|
|
4
|
+
*
|
|
5
|
+
* Every entry is a standard HTML element that can directly contain text
|
|
6
|
+
* without changing how that text behaves. Deliberately excluded:
|
|
7
|
+
* - Interactive / behavior-changing tags: a, button, label, summary, option,
|
|
8
|
+
* textarea, select, details, dialog
|
|
9
|
+
* - Void elements that cannot enclose text: br, wbr, hr, img, input
|
|
10
|
+
* - Tags only valid inside a specific parent: li, dt, dd, td, th, caption,
|
|
11
|
+
* legend, figcaption, rt, rp, optgroup
|
|
12
|
+
* - Raw-text / metadata tags: script, style, title, template
|
|
13
|
+
* - Live-region / form-output tags that alter assistive-technology behavior:
|
|
14
|
+
* output
|
|
15
|
+
*/
|
|
16
|
+
export declare const ENCLOSING_TAGS: readonly ["p", "div", "span", "h1", "h2", "h3", "h4", "h5", "h6", "strong", "em", "b", "i", "u", "small", "mark", "pre", "code", "blockquote", "q", "sub", "sup", "s", "del", "ins", "cite", "abbr", "dfn", "kbd", "samp", "var", "time", "data", "address", "bdi", "bdo", "figure", "article", "section", "aside", "header", "footer", "main", "nav"];
|
|
17
|
+
export type EnclosingTag = (typeof ENCLOSING_TAGS)[number];
|
|
18
|
+
/**
|
|
19
|
+
* The tags above whose default CSS display is block-level.
|
|
20
|
+
*
|
|
21
|
+
* Box styles — margin, padding, width, border — behave as authored on these
|
|
22
|
+
* elements, so RText can carry the column's styles on the tag itself and
|
|
23
|
+
* needs no wrapper div (see `resolve-no-container.ts`).
|
|
24
|
+
*/
|
|
25
|
+
export declare const BLOCK_ENCLOSING_TAGS: readonly EnclosingTag[];
|
|
26
|
+
/**
|
|
27
|
+
* The tags above that default to `display: inline`, where vertical
|
|
28
|
+
* margin/padding and width/height are ignored by the layout engine. Column
|
|
29
|
+
* box styles must go on a wrapper element instead of on the tag.
|
|
30
|
+
*
|
|
31
|
+
* Kept as an explicit list rather than derived from BLOCK_ENCLOSING_TAGS so
|
|
32
|
+
* adding a tag to ENCLOSING_TAGS forces a deliberate block-or-inline call;
|
|
33
|
+
* the coverage test in `__tests__/enclosing-tags.test.ts` fails otherwise.
|
|
34
|
+
*/
|
|
35
|
+
export declare const INLINE_ENCLOSING_TAGS: readonly EnclosingTag[];
|
|
36
|
+
/**
|
|
37
|
+
* Runtime guard for values arriving through componentAttributes (untyped
|
|
38
|
+
* editor-authored data). Unknown values are rejected so a bad persisted value
|
|
39
|
+
* can never render an unexpected element.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isEnclosingTag(value: unknown): value is EnclosingTag;
|
|
42
|
+
/**
|
|
43
|
+
* True when the tag renders as a block-level box. Unknown values count as
|
|
44
|
+
* non-block: the safe answer, because it routes box styles to a wrapper
|
|
45
|
+
* element where they are guaranteed to apply.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isBlockEnclosingTag(value: unknown): boolean;
|
|
48
|
+
//# sourceMappingURL=enclosing-tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enclosing-tags.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-text/enclosing-tags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,wVA4DjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,YAAY,EAoBvD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,YAAY,EA0BxD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAKpE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK3D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RTextComponent {
|
|
3
|
+
componentAttributes?: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
styleProps?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
className?: string;
|
|
10
|
+
get content(): string;
|
|
11
|
+
get links(): unknown;
|
|
12
|
+
get tag(): string | undefined;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RTextComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RTextComponent, "rulecms-r-text", never, { "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=r-text.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-text.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-text/r-text.component.ts"],"names":[],"mappings":";AAMA,qBAea,cAAc;IAChB,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,OAAO,IAAI,MAAM,CAGpB;IAED,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;yCAhBU,cAAc;2CAAd,cAAc;CAiB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EnclosingTag } from './enclosing-tags';
|
|
2
|
+
/** Editor-authored attribute holding the tag, flattened per device resolution. */
|
|
3
|
+
export declare const ENCLOSING_TAG_ATTRIBUTE = "enclosing-tag-3-resolutions";
|
|
4
|
+
/**
|
|
5
|
+
* The single source of truth for which tag RText will render.
|
|
6
|
+
*
|
|
7
|
+
* Both the component and `resolveNoContainer` go through here: if they
|
|
8
|
+
* disagreed, widget-react would wrap a block element in a redundant div or
|
|
9
|
+
* hand box styles to an inline element that ignores them.
|
|
10
|
+
*
|
|
11
|
+
* The editor-authored attribute wins over the caller's prop. Attribute values
|
|
12
|
+
* are untyped, so an unrecognised value falls back to the prop, then to no
|
|
13
|
+
* enclosing tag at all.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveEnclosingTag(componentAttributes?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}, fallback?: EnclosingTag): EnclosingTag | undefined;
|
|
18
|
+
//# sourceMappingURL=resolve-enclosing-tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-enclosing-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-text/resolve-enclosing-tag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,mBAAmB,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC5C,QAAQ,CAAC,EAAE,YAAY,GACtB,YAAY,GAAG,SAAS,CAG1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NoContainerResolverContext } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* RText needs a wrapper div for the column's box styles unless it is about to
|
|
4
|
+
* render a block-level element that can hold those styles itself.
|
|
5
|
+
*
|
|
6
|
+
* - No enclosing tag: bare text with no element to style → wrapper needed.
|
|
7
|
+
* - Inline tag (`span`, `em`, `code`, …): vertical margin/padding and width
|
|
8
|
+
* are ignored on inline boxes → wrapper needed.
|
|
9
|
+
* - Block tag (`p`, `div`, `h1`, `section`, …): RText puts styleProps on the
|
|
10
|
+
* tag itself → no wrapper, one less element in the DOM.
|
|
11
|
+
*/
|
|
12
|
+
export declare const resolveNoContainer: ({ componentAttributes, }: NoContainerResolverContext) => boolean;
|
|
13
|
+
//# 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-text/resolve-no-container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAIpE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,6BAE5B,0BAA0B,KAAG,OACgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NoContainerResolverContext } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* True when RText is about to render an element that can carry a className —
|
|
4
|
+
* any enclosing tag, block or inline. Bare text has no element, so false.
|
|
5
|
+
*
|
|
6
|
+
* Shares `resolveEnclosingTag` with RText and `resolveNoContainer`: if this
|
|
7
|
+
* disagreed with what the component renders, a class would either land on
|
|
8
|
+
* nothing or force a redundant wrapper.
|
|
9
|
+
*/
|
|
10
|
+
export declare const resolveRendersOwnElement: ({ componentAttributes, }: NoContainerResolverContext) => boolean;
|
|
11
|
+
//# 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-text/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAGpE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,6BAElC,0BAA0B,KAAG,OAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-video/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAmF7D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type VideoTransformations = {
|
|
2
|
+
[key: string]: string | number;
|
|
3
|
+
};
|
|
4
|
+
export declare function buildVideoSrc(cloudName: string, publicId: string, transformations?: VideoTransformations | string): string;
|
|
5
|
+
export declare function buildVideoPosterSrc(cloudName: string, publicId: string): string;
|
|
6
|
+
export declare function buildCustomPosterSrc(cloudName: string, posterPublicId: string): string;
|
|
7
|
+
//# sourceMappingURL=build-video-delivery-urls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-video-delivery-urls.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-video/build-video-delivery-urls.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAiEtE,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,oBAAoB,GAAG,MAAM,GAC9C,MAAM,CAOR;AAGD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAI/E;AAGD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAItF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-video/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAuDzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-video/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,26 @@
|
|
|
1
|
+
import type { VideoTransformations } from './build-video-delivery-urls';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RVideoComponent {
|
|
4
|
+
cloudName: string;
|
|
5
|
+
publicId: string;
|
|
6
|
+
transformations?: VideoTransformations | string;
|
|
7
|
+
componentAttributes?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
styleProps?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
className?: string;
|
|
14
|
+
get finalCloudName(): any;
|
|
15
|
+
get finalPublicId(): any;
|
|
16
|
+
get finalTransformations(): any;
|
|
17
|
+
get src(): string;
|
|
18
|
+
get videoAttributes(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
get mergedClassName(): string | undefined;
|
|
22
|
+
get mergedStyles(): any;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RVideoComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RVideoComponent, "rulecms-r-video", never, { "cloudName": { "alias": "cloudName"; "required": false; }; "publicId": { "alias": "publicId"; "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>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=r-video.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-video.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-video/r-video.component.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAKxE,qBAsBa,eAAe;IACjB,SAAS,SAAa;IACtB,QAAQ,SAAuB;IAC/B,eAAe,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;IAChD,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;IAED,IAAI,eAAe,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAyC5C;IAED,IAAI,eAAe,IAAI,MAAM,GAAG,SAAS,CAGxC;IAED,IAAI,YAAY,QAEf;yCA3EU,eAAe;2CAAf,eAAe;CA4E3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The component spreads styleProps onto its `<video>`, 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
|