@rulecms/widget-angular 0.8.0 → 0.8.2
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/README.md +1 -1
- package/fesm2022/rulecms-widget-angular.mjs +217 -44
- package/fesm2022/rulecms-widget-angular.mjs.map +1 -1
- package/lib/helpers/prepare-style-element-css.d.ts +11 -0
- package/lib/helpers/prepare-style-element-css.d.ts.map +1 -0
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts +13 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts.map +1 -1
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-properties/format-project-css-properties-stylesheet.d.ts.map +1 -1
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-variables/project-css-variables-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts.map +1 -1
- package/lib/render/breakpoint-variant-render.component.d.ts +4 -0
- package/lib/render/breakpoint-variant-render.component.d.ts.map +1 -1
- package/lib/render/embed-in-vertical-container.component.d.ts +1 -1
- package/lib/render/embed-in-vertical-container.component.d.ts.map +1 -1
- package/lib/render/library-stylesheets.component.d.ts.map +1 -1
- package/lib/render/scope-id-from-content.d.ts +8 -0
- package/lib/render/scope-id-from-content.d.ts.map +1 -0
- package/lib/render/style-element.directive.d.ts +24 -0
- package/lib/render/style-element.directive.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prepares CSS for the text of a `<style>` element.
|
|
3
|
+
*
|
|
4
|
+
* Angular's server renderer writes `<style>` text raw, as browsers expect, so
|
|
5
|
+
* this is the security boundary: the only way out of a `<style>` element is a
|
|
6
|
+
* `</style` sequence, and its `s` becomes the CSS escape `\73 ` / `\53 `, as
|
|
7
|
+
* React 19 and the other RuleCMS SDKs do. The CSS means the same; nothing else
|
|
8
|
+
* is changed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function prepareStyleElementCss(css: string): string;
|
|
11
|
+
//# sourceMappingURL=prepare-style-element-css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-style-element-css.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/prepare-style-element-css.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM1D"}
|
|
@@ -12,11 +12,23 @@ export declare const wrapProjectCssClassesStylesheetInLayer: (css: string | null
|
|
|
12
12
|
* `[data-rulecms-published-key="…"]`. `CSS.escape` is not assumed (SSR / Node).
|
|
13
13
|
*/
|
|
14
14
|
export declare const escapeCssAttributeValue: (value: string) => string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Escape a class name for use after `.` in a selector. `/` becomes `\/` so
|
|
17
|
+
* `ring-parity-accent/30` emits as `.ring-parity-accent\/30`.
|
|
18
|
+
*
|
|
19
|
+
* A CSS identifier may not *start* with a digit, or with a hyphen followed by a
|
|
20
|
+
* digit, so a leading digit needs the numeric escape form instead of a
|
|
21
|
+
* backslash: `2xl:flex` has to emit `.\32 xl\:flex`, because `.2xl\:flex` is a
|
|
22
|
+
* parse error and the browser drops the whole rule. Tailwind breakpoint
|
|
23
|
+
* prefixes (`2xl:`) and grid utilities kept in class names hit this.
|
|
24
|
+
*/
|
|
16
25
|
export declare const escapeCssClassName: (name: string) => string;
|
|
17
26
|
/**
|
|
18
27
|
* Descendant class rules under this widget’s published-key span.
|
|
19
28
|
* Empty / flag-off / unsanitary catalogs return null so the caller omits `<style>`.
|
|
29
|
+
*
|
|
30
|
+
* Rules are emitted in catalog order. Two utilities that set the same property
|
|
31
|
+
* are resolved by source order, so re-sorting here would change which one wins.
|
|
20
32
|
*/
|
|
21
33
|
export declare const formatProjectCssClassesStylesheet: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, includeClassDefinitions?: boolean | null, classLayer?: ProjectCssClassLayer | null) => string | null;
|
|
22
34
|
export declare const formatProjectCssClassesStylesheetInLayer: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, classLayer: ProjectCssClassLayer | null | undefined, includeClassDefinitions?: boolean | null) => string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-project-css-classes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/format-project-css-classes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,sCAAuC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI7E,eAAO,MAAM,sBAAsB,UAAW,OAAO,KAAG,KAAK,IAAI,oBACR,CAAC;AAQ1D;;;GAGG;AACH,eAAO,MAAM,sCAAsC,QAC5C,MAAM,GAAG,IAAI,eACL,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAQX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"format-project-css-classes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/format-project-css-classes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,sCAAuC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI7E,eAAO,MAAM,sBAAsB,UAAW,OAAO,KAAG,KAAK,IAAI,oBACR,CAAC;AAQ1D;;;GAGG;AACH,eAAO,MAAM,sCAAsC,QAC5C,MAAM,GAAG,IAAI,eACL,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAQX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,MASjD,CAAC;AAuEF;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,WACX,0BAA0B,GAAG,IAAI,GAAG,SAAS,4BAC5B,OAAO,GAAG,IAAI,eAC3B,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAoBX,CAAC;AAEF,eAAO,MAAM,wCAAwC,iBACrC,MAAM,WACX,0BAA0B,GAAG,IAAI,GAAG,SAAS,cAC1C,oBAAoB,GAAG,IAAI,GAAG,SAAS,4BACzB,OAAO,GAAG,IAAI,KACvC,MAAM,GAAG,IACmF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-classes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/project-css-classes-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-classes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/project-css-classes-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;;AAEjD;;;GAGG;AACH,qBAaa,oCAAoC;IACpB,YAAY,EAAG,MAAM,CAAC;IACxC,OAAO,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAElD,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAOvB;yCAZU,oCAAoC;2CAApC,oCAAoC;CAahD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-fonts-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/project-css-fonts-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-fonts-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/project-css-fonts-stylesheet.component.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;;AAG7E;;;GAGG;AACH,qBAaa,kCAAkC;IAClB,YAAY,EAAG,MAAM,CAAC;IACxC,KAAK,CAAC,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3C,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAKxB;IAED,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAMvB;yCAlBU,kCAAkC;2CAAlC,kCAAkC;CAmB9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-keyframes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-keyframes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;;AAE/F;;;GAGG;AACH,qBAUa,sCAAsC;IACtB,YAAY,EAAG,MAAM,CAAC;IACxC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAE1D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,sCAAsC;2CAAtC,sCAAsC;CAOlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-position-try-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/project-css-position-try-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-position-try-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/project-css-position-try-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;;AAErG;;;GAGG;AACH,qBAaa,wCAAwC;IACxB,YAAY,EAAG,MAAM,CAAC;IACxC,WAAW,CAAC,EAAE,gCAAgC,GAAG,IAAI,CAAC;IAE/D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,wCAAwC;2CAAxC,wCAAwC;CAOpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-project-css-properties-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/format-project-css-properties-stylesheet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kCAAkC,wKAYrC,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3F,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"format-project-css-properties-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/format-project-css-properties-stylesheet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kCAAkC,wKAYrC,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3F,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AA4BF,eAAO,MAAM,4BAA4B,kBACxB,SAAS,4BAA4B,EAAE,GAAG,IAAI,GAAG,SAAS,KACxE,4BAA4B,EAoC9B,CAAC;AAeF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,iBACjC,MAAM,iBACL,SAAS,4BAA4B,EAAE,GAAG,IAAI,GAAG,SAAS,yBAClD,OAAO,GAAG,IAAI,KACpC,MAAM,GAAG,IAaX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-properties-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/project-css-properties-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-properties-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/project-css-properties-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;;AAE/F;;;GAGG;AACH,qBAaa,uCAAuC;IACvB,YAAY,EAAG,MAAM,CAAC;IACxC,aAAa,CAAC,EAAE,SAAS,4BAA4B,EAAE,GAAG,IAAI,CAAC;IAExE,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,uCAAuC;2CAAvC,uCAAuC;CAOnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-themes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/project-css-themes-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-themes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/project-css-themes-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;;AAErF;;;GAGG;AACH,qBAUa,mCAAmC;IACnB,YAAY,EAAG,MAAM,CAAC;IACxC,MAAM,CAAC,EAAE,SAAS,sBAAsB,EAAE,GAAG,IAAI,CAAC;IAE3D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,mCAAmC;2CAAnC,mCAAmC;CAO/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-variables-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/project-css-variables-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-variables-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/project-css-variables-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;;AAE/F;;;GAGG;AACH,qBAaa,sCAAsC;IACtB,YAAY,EAAG,MAAM,CAAC;IACxC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAE1D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,sCAAsC;2CAAtC,sCAAsC;CAOlD"}
|
package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-widget-chrome-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-css-widget-chrome-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;;AAEzF;;;GAGG;AACH,qBAaa,yCAAyC;IACzB,YAAY,EAAG,MAAM,CAAC;IACxC,YAAY,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEnD,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,yCAAyC;2CAAzC,yCAAyC;CAOrD"}
|
|
@@ -16,7 +16,11 @@ export declare class BreakpointVariantRenderComponent implements OnChanges {
|
|
|
16
16
|
divergent: boolean;
|
|
17
17
|
variantStyles: string;
|
|
18
18
|
resolvedScopeId: string;
|
|
19
|
+
private hashedItemList?;
|
|
20
|
+
private itemListScopeId;
|
|
19
21
|
ngOnChanges(): void;
|
|
22
|
+
/** Hashes once per item list: `rulecms-widget` passes a new `plugins` object on every check. */
|
|
23
|
+
private scopeIdForItemList;
|
|
20
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointVariantRenderComponent, never>;
|
|
21
25
|
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; }; "mounts": { "alias": "mounts"; "required": false; }; "placeholderValues": { "alias": "placeholderValues"; "required": false; }; "scopeIdInput": { "alias": "scopeIdInput"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
26
|
}
|
|
@@ -1 +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,EACjB,SAAS,EAET,KAAK,EACL,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AAUjD,qBA2Ca,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,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,OAAO,qCAAmB;IACnC,SAAS,UAAS;IAClB,aAAa,SAAM;IACnB,eAAe,
|
|
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,EACjB,SAAS,EAET,KAAK,EACL,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AAUjD,qBA2Ca,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,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,OAAO,qCAAmB;IACnC,SAAS,UAAS;IAClB,aAAa,SAAM;IACnB,eAAe,SAAM;IAErB,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B,OAAO,CAAC,eAAe,CAAM;IAE7B,WAAW,IAAI,IAAI;IAMnB,gGAAgG;IAChG,OAAO,CAAC,kBAAkB;yCAxBf,gCAAgC;2CAAhC,gCAAgC;CA+B5C"}
|
|
@@ -9,7 +9,7 @@ export declare class EmbedInVerticalContainerComponent implements OnChanges {
|
|
|
9
9
|
deviceDisplayType: keyof typeof DeviceDisplayTypes;
|
|
10
10
|
cssString: string;
|
|
11
11
|
scopedCss: string;
|
|
12
|
-
private
|
|
12
|
+
private scopeClass;
|
|
13
13
|
private wrap;
|
|
14
14
|
private hidden;
|
|
15
15
|
private wrapperClass;
|
|
@@ -1 +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;;AAU1B,
|
|
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;;AAU1B,qBAWa,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,UAAU,CAAM;IACxB,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;CAkF7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library-stylesheets.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/library-stylesheets.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"library-stylesheets.component.d.ts","sourceRoot":"","sources":["../../../src/lib/render/library-stylesheets.component.ts"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,qBAca,2BAA2B;IAC7B,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;yCAD9B,2BAA2B;2CAA3B,2BAA2B;CAEvC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class-name-safe scope id computed from what the scope styles, so a server
|
|
3
|
+
* render, every later render in that process, and the browser hydrating it
|
|
4
|
+
* all agree without a framework id API. Equal content shares an id, which is
|
|
5
|
+
* harmless because its scoped rules are equal too.
|
|
6
|
+
*/
|
|
7
|
+
export declare const scopeIdFromContent: (prefix: string, content: string) => string;
|
|
8
|
+
//# sourceMappingURL=scope-id-from-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope-id-from-content.d.ts","sourceRoot":"","sources":["../../../src/lib/render/scope-id-from-content.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,MAAM,WAAW,MAAM,KAAG,MACxB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Puts a `<style>` holding `rulecmsStyleElement` where this `<ng-container>` is.
|
|
5
|
+
*
|
|
6
|
+
* Angular's template compiler removes every `<style>` element from a template,
|
|
7
|
+
* and a bound one leaves nothing behind. A component created through
|
|
8
|
+
* `ViewContainerRef` takes its host element from its selector instead, so this
|
|
9
|
+
* `<style>` never reaches the template compiler, yet it is a node Angular owns:
|
|
10
|
+
* the server render writes it, hydration adopts the server's element rather
|
|
11
|
+
* than adding a second one, and destroying the surrounding view removes it.
|
|
12
|
+
*/
|
|
13
|
+
export declare class StyleElementDirective implements OnChanges {
|
|
14
|
+
rulecmsStyleElement: string;
|
|
15
|
+
/** Attribute that marks the element, such as `data-rulecms-project-fonts`. */
|
|
16
|
+
rulecmsStyleElementMarker?: string;
|
|
17
|
+
private readonly viewContainer;
|
|
18
|
+
private readonly renderer;
|
|
19
|
+
private styleRef?;
|
|
20
|
+
ngOnChanges(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleElementDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StyleElementDirective, "ng-container[rulecmsStyleElement]", never, { "rulecmsStyleElement": { "alias": "rulecmsStyleElement"; "required": true; }; "rulecmsStyleElementMarker": { "alias": "rulecmsStyleElementMarker"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=style-element.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-element.directive.d.ts","sourceRoot":"","sources":["../../../src/lib/render/style-element.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,SAAS,EAKV,MAAM,eAAe,CAAC;;AAYvB;;;;;;;;;GASG;AACH,qBAIa,qBAAsB,YAAW,SAAS;IAC1B,mBAAmB,EAAG,MAAM,CAAC;IACxD,8EAA8E;IACrE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAE5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA4B;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,CAA0C;IAE3D,WAAW,IAAI,IAAI;yCATR,qBAAqB;2CAArB,qBAAqB;CA4BjC"}
|
package/package.json
CHANGED