@rulecms/widget-angular 0.6.0 → 0.7.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/fesm2022/rulecms-widget-angular.mjs +1300 -167
- package/fesm2022/rulecms-widget-angular.mjs.map +1 -1
- package/lib/helpers/get-component-attributes-and-styles.d.ts.map +1 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts +10 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts.map +1 -1
- package/lib/project-css-classes/include-project-css-layers-on-published-widget.d.ts +6 -0
- package/lib/project-css-classes/include-project-css-layers-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts +3 -2
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-fonts/format-project-css-fonts-stylesheet.d.ts +34 -0
- package/lib/project-css-fonts/format-project-css-fonts-stylesheet.d.ts.map +1 -0
- package/lib/project-css-fonts/include-project-css-fonts-on-published-widget.d.ts +6 -0
- package/lib/project-css-fonts/include-project-css-fonts-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts +16 -0
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.d.ts +11 -0
- package/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.d.ts.map +1 -0
- package/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.d.ts +6 -0
- package/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts +14 -0
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-position-try/format-project-css-position-try-stylesheet.d.ts +11 -0
- package/lib/project-css-position-try/format-project-css-position-try-stylesheet.d.ts.map +1 -0
- package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts +6 -0
- package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts +14 -0
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-properties/format-project-css-properties-stylesheet.d.ts +15 -0
- package/lib/project-css-properties/format-project-css-properties-stylesheet.d.ts.map +1 -0
- package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts +6 -0
- package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts +14 -0
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-themes/format-project-css-themes-stylesheet.d.ts +24 -0
- package/lib/project-css-themes/format-project-css-themes-stylesheet.d.ts.map +1 -0
- package/lib/project-css-themes/include-project-css-themes-on-published-widget.d.ts +6 -0
- package/lib/project-css-themes/include-project-css-themes-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts +14 -0
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-variables/format-project-css-variables-stylesheet.d.ts +1 -1
- package/lib/project-css-variables/format-project-css-variables-stylesheet.d.ts.map +1 -1
- package/lib/project-css-variables/include-project-css-variables-on-published-widget.d.ts +4 -9
- package/lib/project-css-variables/include-project-css-variables-on-published-widget.d.ts.map +1 -1
- package/lib/project-css-widget-chrome/format-project-css-widget-chrome-stylesheet.d.ts +19 -0
- package/lib/project-css-widget-chrome/format-project-css-widget-chrome-stylesheet.d.ts.map +1 -0
- package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts +6 -0
- package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts +14 -0
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts.map +1 -0
- package/lib/widget/prepare-rule-cms-widget-data.d.ts.map +1 -1
- package/lib/widget/rule-cms-widget.component.d.ts.map +1 -1
- package/lib/widget/widget-data.types.d.ts +98 -16
- package/lib/widget/widget-data.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component-attributes-and-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/get-component-attributes-and-styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,UAAU,qCAAqC;IAC7C,GAAG,EAAE;QAEH,mBAAmB,CAAC,EAAE,GAAG,CAAC;QAC1B,2FAA2F;QAC3F,gBAAgB,CAAC,EAAE,GAAG,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAC;IACnD,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD;AAED,UAAU,qCAAqC;IAC7C,gCAAgC,EAAE,GAAG,CAAC;IACtC,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACzC;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,GAAG,EACH,iBAAiB,EACjB,aAAa,EACb,sBAAsB,GACvB,EAAE,qCAAqC,GAAG,qCAAqC,
|
|
1
|
+
{"version":3,"file":"get-component-attributes-and-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/get-component-attributes-and-styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,UAAU,qCAAqC;IAC7C,GAAG,EAAE;QAEH,mBAAmB,CAAC,EAAE,GAAG,CAAC;QAC1B,2FAA2F;QAC3F,gBAAgB,CAAC,EAAE,GAAG,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAC;IACnD,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD;AAED,UAAU,qCAAqC;IAC7C,gCAAgC,EAAE,GAAG,CAAC;IACtC,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACzC;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,GAAG,EACH,iBAAiB,EACjB,aAAa,EACb,sBAAsB,GACvB,EAAE,qCAAqC,GAAG,qCAAqC,CA2E/E"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export type ProjectCssClassDefinitions = Record<string, string>;
|
|
2
|
+
export declare const PROJECT_CSS_CLASS_LAYERS: readonly ["utilities", "components"];
|
|
3
|
+
export type ProjectCssClassLayer = (typeof PROJECT_CSS_CLASS_LAYERS)[number];
|
|
4
|
+
export declare const isProjectCssClassLayer: (value: unknown) => value is ProjectCssClassLayer;
|
|
5
|
+
/**
|
|
6
|
+
* Wrap an already-formatted class stylesheet. Null in stays null. Unknown or
|
|
7
|
+
* omitted layer names leave the stylesheet unlayered.
|
|
8
|
+
*/
|
|
9
|
+
export declare const wrapProjectCssClassesStylesheetInLayer: (css: string | null, classLayer?: ProjectCssClassLayer | null) => string | null;
|
|
2
10
|
/**
|
|
3
11
|
* Attribute-selector escape so a published key cannot break out of
|
|
4
12
|
* `[data-rulecms-published-key="…"]`. `CSS.escape` is not assumed (SSR / Node).
|
|
@@ -10,5 +18,6 @@ export declare const escapeCssClassName: (name: string) => string;
|
|
|
10
18
|
* Descendant class rules under this widget’s published-key span.
|
|
11
19
|
* Empty / flag-off / unsanitary catalogs return null so the caller omits `<style>`.
|
|
12
20
|
*/
|
|
13
|
-
export declare const formatProjectCssClassesStylesheet: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, includeClassDefinitions?: boolean | null) => string | null;
|
|
21
|
+
export declare const formatProjectCssClassesStylesheet: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, includeClassDefinitions?: boolean | null, classLayer?: ProjectCssClassLayer | null) => string | null;
|
|
22
|
+
export declare const formatProjectCssClassesStylesheetInLayer: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, classLayer: ProjectCssClassLayer | null | undefined, includeClassDefinitions?: boolean | null) => string | null;
|
|
14
23
|
//# sourceMappingURL=format-project-css-classes-stylesheet.d.ts.map
|
|
@@ -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;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAEpD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,
|
|
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,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,MACI,CAAC;AAuEvD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,WACX,0BAA0B,GAAG,IAAI,GAAG,SAAS,4BAC5B,OAAO,GAAG,IAAI,eAC3B,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAqBX,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means wrap when `classLayer` is
|
|
3
|
+
* set. Only an explicit `false` keeps class emit unlayered.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeClassLayerOnPublishedWidget(includeClassLayer?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-layers-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-layers-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/include-project-css-layers-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,wCAAwC,CACtD,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,GACjC,OAAO,CAET"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectCssClassDefinitions } from './format-project-css-classes-stylesheet';
|
|
1
|
+
import type { ProjectCssClassDefinitions, ProjectCssClassLayer } from './format-project-css-classes-stylesheet';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Emits one scoped `<style data-rulecms-project-class-definitions>` from the
|
|
@@ -7,8 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class ProjectCssClassesStylesheetComponent {
|
|
8
8
|
publishedKey: string;
|
|
9
9
|
classes?: ProjectCssClassDefinitions | null;
|
|
10
|
+
classLayer?: ProjectCssClassLayer | null;
|
|
10
11
|
get css(): string | null;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssClassesStylesheetComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssClassesStylesheetComponent, "rulecms-project-css-classes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "classes": { "alias": "classes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssClassesStylesheetComponent, "rulecms-project-css-classes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "classes": { "alias": "classes"; "required": false; }; "classLayer": { "alias": "classLayer"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=project-css-classes-stylesheet.component.d.ts.map
|
|
@@ -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":"AAEA,OAAO,KAAK,
|
|
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":"AAEA,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;;AAEjD;;;GAGG;AACH,qBASa,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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ProjectFontSource = {
|
|
2
|
+
kind: 'stack-only';
|
|
3
|
+
} | {
|
|
4
|
+
kind: 'google';
|
|
5
|
+
weights: number[];
|
|
6
|
+
subsets?: string[];
|
|
7
|
+
};
|
|
8
|
+
export type ProjectFontPalette = {
|
|
9
|
+
name: string;
|
|
10
|
+
overrideColors?: Array<{
|
|
11
|
+
index: number;
|
|
12
|
+
color: string;
|
|
13
|
+
}>;
|
|
14
|
+
applyToWidget?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ProjectFontFace = {
|
|
17
|
+
family: string;
|
|
18
|
+
cssVariable?: string;
|
|
19
|
+
fallbacks?: string[];
|
|
20
|
+
applyToWidget?: boolean;
|
|
21
|
+
source: ProjectFontSource;
|
|
22
|
+
palettes?: ProjectFontPalette[];
|
|
23
|
+
};
|
|
24
|
+
export declare const escapeCssAttributeValue: (value: string) => string;
|
|
25
|
+
export declare const sanitizeProjectFontFaces: (fonts: readonly ProjectFontFace[] | null | undefined) => ProjectFontFace[];
|
|
26
|
+
export declare const buildGoogleFontsCssHref: (fonts: readonly ProjectFontFace[]) => string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Palette at-rules plus the token / optional `font-family` / optional
|
|
29
|
+
* `font-palette` on the widget’s first boxed children. Google faces are a
|
|
30
|
+
* separate `<link>`. Returns null when there is nothing to declare or
|
|
31
|
+
* inclusion is off — palettes ride with `includeFontFaces`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const formatProjectCssFontsStylesheet: (publishedKey: string, fonts: readonly ProjectFontFace[] | null | undefined, includeFontFaces?: boolean | null) => string | null;
|
|
34
|
+
//# sourceMappingURL=format-project-css-fonts-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-fonts-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/format-project-css-fonts-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GACtB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAgHpD,eAAO,MAAM,wBAAwB,UAC5B,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS,KACnD,eAAe,EA8DjB,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAC3B,SAAS,eAAe,EAAE,KAChC,MAAM,GAAG,IAaX,CAAC;AAiCF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,iBAC5B,MAAM,SACb,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS,qBACjC,OAAO,GAAG,IAAI,KAChC,MAAM,GAAG,IAsCX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `fontFaces` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeFontFacesOnPublishedWidget(includeFontFaces?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-fonts-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-fonts-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/include-project-css-fonts-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,uCAAuC,CACrD,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,GAChC,OAAO,CAET"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProjectFontFace } from './format-project-css-fonts-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits a Google Fonts `<link>` and/or one `<style data-rulecms-project-fonts>`
|
|
5
|
+
* from the project catalog, or nothing when inclusion is off / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssFontsStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
fonts?: readonly ProjectFontFace[] | null;
|
|
10
|
+
includeFontFaces?: boolean | null;
|
|
11
|
+
get href(): string | null;
|
|
12
|
+
get css(): string | null;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssFontsStylesheetComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssFontsStylesheetComponent, "rulecms-project-css-fonts-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "fonts": { "alias": "fonts"; "required": false; }; "includeFontFaces": { "alias": "includeFontFaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=project-css-fonts-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;;AAG7E;;;GAGG;AACH,qBAYa,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ProjectCssKeyframeDefinitions = Record<string, string>;
|
|
2
|
+
export declare const KEYFRAME_NAME_MAX_LENGTH = 80;
|
|
3
|
+
export declare const KEYFRAME_BODY_MAX_LENGTH = 4000;
|
|
4
|
+
export declare const MAX_PROJECT_KEYFRAMES = 32;
|
|
5
|
+
export declare const sanitizeProjectCssKeyframes: (keyframes: ProjectCssKeyframeDefinitions | null | undefined) => ProjectCssKeyframeDefinitions;
|
|
6
|
+
/**
|
|
7
|
+
* Unscoped `@keyframes` blocks. `publishedKey` is unused (document-global
|
|
8
|
+
* at-rule) and kept so the signature matches fonts/classes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatProjectCssKeyframesStylesheet: (publishedKey: string, keyframes: ProjectCssKeyframeDefinitions | null | undefined, includeKeyframes?: boolean | null) => string | null;
|
|
11
|
+
//# sourceMappingURL=format-project-css-keyframes-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-keyframes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAyHxC,eAAO,MAAM,2BAA2B,cAC3B,6BAA6B,GAAG,IAAI,GAAG,SAAS,KAC1D,6BAuBF,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,qBACxC,OAAO,GAAG,IAAI,KAChC,MAAM,GAAG,IAgBX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `keyframes` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeKeyframesOnPublishedWidget(includeKeyframes?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-keyframes-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-keyframes-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,uCAAuC,CACrD,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,GAChC,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssKeyframeDefinitions } from './format-project-css-keyframes-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-keyframes>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssKeyframesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
keyframes?: ProjectCssKeyframeDefinitions | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssKeyframesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssKeyframesStylesheetComponent, "rulecms-project-css-keyframes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "keyframes": { "alias": "keyframes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-keyframes-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;;AAE/F;;;GAGG;AACH,qBASa,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ProjectCssPositionTryDefinitions = Record<string, string>;
|
|
2
|
+
export declare const POSITION_TRY_NAME_MAX_LENGTH = 80;
|
|
3
|
+
export declare const POSITION_TRY_BODY_MAX_LENGTH = 2000;
|
|
4
|
+
export declare const MAX_PROJECT_POSITION_TRY = 16;
|
|
5
|
+
export declare const sanitizeProjectCssPositionTry: (positionTry: ProjectCssPositionTryDefinitions | null | undefined) => ProjectCssPositionTryDefinitions;
|
|
6
|
+
/**
|
|
7
|
+
* Unscoped `@position-try` blocks. `publishedKey` is unused (document-global
|
|
8
|
+
* at-rule) and kept so the signature matches fonts/keyframes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatProjectCssPositionTryStylesheet: (publishedKey: string, positionTry: ProjectCssPositionTryDefinitions | null | undefined, includePositionTry?: boolean | null) => string | null;
|
|
11
|
+
//# sourceMappingURL=format-project-css-position-try-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-position-try-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/format-project-css-position-try-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AACjD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AA2C3C,eAAO,MAAM,6BAA6B,gBAC3B,gCAAgC,GAAG,IAAI,GAAG,SAAS,KAC/D,gCAuBF,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,iBAClC,MAAM,eACP,gCAAgC,GAAG,IAAI,GAAG,SAAS,uBAC3C,OAAO,GAAG,IAAI,KAClC,MAAM,GAAG,IAgBX,CAAC"}
|
package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing / undefined means include (legacy payloads).
|
|
3
|
+
* `false` turns emission off, even if `positionTry` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare const shouldIncludePositionTryOnPublishedWidget: (includePositionTry?: boolean | null) => boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-position-try-on-published-widget.d.ts.map
|
package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-position-try-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/include-project-css-position-try-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yCAAyC,wBAC/B,OAAO,GAAG,IAAI,KAClC,OAEF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssPositionTryDefinitions } from './format-project-css-position-try-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-position-try>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssPositionTryStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
positionTry?: ProjectCssPositionTryDefinitions | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssPositionTryStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssPositionTryStylesheetComponent, "rulecms-project-css-position-try-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "positionTry": { "alias": "positionTry"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-position-try-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;;AAErG;;;GAGG;AACH,qBASa,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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const PROJECT_CSS_PROPERTY_SYNTAX_VALUES: readonly ["*", "<number>", "<integer>", "<length>", "<percentage>", "<length-percentage>", "<color>", "<angle>", "<time>", "<transform-function>", "<transform-list>"];
|
|
2
|
+
export type ProjectCssPropertySyntax = (typeof PROJECT_CSS_PROPERTY_SYNTAX_VALUES)[number];
|
|
3
|
+
export type ProjectCssPropertyDefinition = {
|
|
4
|
+
name: string;
|
|
5
|
+
syntax: ProjectCssPropertySyntax;
|
|
6
|
+
inherits: boolean;
|
|
7
|
+
initialValue: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const sanitizeProjectCssProperties: (cssProperties: readonly ProjectCssPropertyDefinition[] | null | undefined) => ProjectCssPropertyDefinition[];
|
|
10
|
+
/**
|
|
11
|
+
* Unscoped `@property` blocks. `publishedKey` is unused (document-global
|
|
12
|
+
* at-rule) and kept so the signature matches fonts/keyframes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatProjectCssPropertiesStylesheet: (publishedKey: string, cssProperties: readonly ProjectCssPropertyDefinition[] | null | undefined, includeCssProperties?: boolean | null) => string | null;
|
|
15
|
+
//# sourceMappingURL=format-project-css-properties-stylesheet.d.ts.map
|
|
@@ -0,0 +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;AA0BF,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `cssProperties` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeCssPropertiesOnPublishedWidget(includeCssProperties?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-properties-on-published-widget.d.ts.map
|
package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-properties-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/include-project-css-properties-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,2CAA2C,CACzD,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,GACpC,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssPropertyDefinition } from './format-project-css-properties-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-css-properties>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssPropertiesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
cssProperties?: readonly ProjectCssPropertyDefinition[] | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssPropertiesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssPropertiesStylesheetComponent, "rulecms-project-css-properties-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "cssProperties": { "alias": "cssProperties"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-properties-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;;AAE/F;;;GAGG;AACH,qBASa,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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const MAX_PROJECT_THEMES = 5;
|
|
2
|
+
export declare const MAX_THEME_VARIABLES = 200;
|
|
3
|
+
export type ProjectThemeHostCondition = {
|
|
4
|
+
kind: 'prefers-color-scheme';
|
|
5
|
+
value: 'dark' | 'light';
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'html-class';
|
|
8
|
+
value: 'dark';
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'data-theme';
|
|
11
|
+
value: 'dark' | 'light';
|
|
12
|
+
};
|
|
13
|
+
export type ProjectThemeDefinition = {
|
|
14
|
+
condition: ProjectThemeHostCondition;
|
|
15
|
+
variables: Record<string, string>;
|
|
16
|
+
};
|
|
17
|
+
export declare const sanitizeProjectCssThemes: (themes: readonly ProjectThemeDefinition[] | null | undefined) => ProjectThemeDefinition[];
|
|
18
|
+
/**
|
|
19
|
+
* Host-condition token overrides on boxed children of this widget’s published-key
|
|
20
|
+
* span. Never styles `html` / `:root` / `body`. Empty / flag-off / unsanitary
|
|
21
|
+
* catalogs return null so the caller omits the `<style>` tag.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatProjectCssThemesStylesheet: (publishedKey: string, themes: readonly ProjectThemeDefinition[] | null | undefined, includeThemes?: boolean | null) => string | null;
|
|
24
|
+
//# sourceMappingURL=format-project-css-themes-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-themes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/format-project-css-themes-stylesheet.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GACjC;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,yBAAyB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AA0CF,eAAO,MAAM,wBAAwB,WAC3B,SAAS,sBAAsB,EAAE,GAAG,IAAI,GAAG,SAAS,KAC3D,sBAAsB,EA+BxB,CAAC;AA4BF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,UACZ,SAAS,sBAAsB,EAAE,GAAG,IAAI,GAAG,SAAS,kBAC5C,OAAO,GAAG,IAAI,KAC7B,MAAM,GAAG,IAYX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `themes` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeThemesOnPublishedWidget(includeThemes?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-themes-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-themes-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/include-project-css-themes-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,GAC7B,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectThemeDefinition } from './format-project-css-themes-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one `<style data-rulecms-project-themes>` from the project catalog,
|
|
5
|
+
* or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssThemesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
themes?: readonly ProjectThemeDefinition[] | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssThemesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssThemesStylesheetComponent, "rulecms-project-css-themes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "themes": { "alias": "themes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-themes-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;;AAErF;;;GAGG;AACH,qBASa,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"}
|
|
@@ -9,5 +9,5 @@ export declare const escapeCssAttributeValue: (value: string) => string;
|
|
|
9
9
|
* published-key span. Empty / flag-off / unsanitary catalogs return null so
|
|
10
10
|
* the caller omits the `<style>` tag.
|
|
11
11
|
*/
|
|
12
|
-
export declare const formatProjectCssVariablesStylesheet: (publishedKey: string, variables: ProjectCssVariableDefinitions | null | undefined) => string | null;
|
|
12
|
+
export declare const formatProjectCssVariablesStylesheet: (publishedKey: string, variables: ProjectCssVariableDefinitions | null | undefined, includeCssVariables?: boolean | null) => string | null;
|
|
13
13
|
//# sourceMappingURL=format-project-css-variables-stylesheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-project-css-variables-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/format-project-css-variables-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAyBpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"format-project-css-variables-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/format-project-css-variables-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAyBpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,wBACrC,OAAO,GAAG,IAAI,KACnC,MAAM,GAAG,IAkBX,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* TODO: project setting — the customer turns this off if the host stylesheet
|
|
6
|
-
* already defines these tokens. Hardcoded on for this iteration.
|
|
7
|
-
*
|
|
8
|
-
* Class definitions (`classDefinitions` / `includeClassDefinitions` on the
|
|
9
|
-
* same GET) are a separate catalog; see `project-css-classes/`.
|
|
2
|
+
* Missing/undefined on a widget GET payload means include — the default, and
|
|
3
|
+
* the shape older clients already understand. Only an explicit `false` turns
|
|
4
|
+
* emission off, even if `cssVariables` is still present on the payload.
|
|
10
5
|
*/
|
|
11
|
-
export declare
|
|
6
|
+
export declare function shouldIncludeCssVariablesOnPublishedWidget(includeCssVariables?: boolean | null): boolean;
|
|
12
7
|
//# sourceMappingURL=include-project-css-variables-on-published-widget.d.ts.map
|
package/lib/project-css-variables/include-project-css-variables-on-published-widget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include-project-css-variables-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/include-project-css-variables-on-published-widget.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"include-project-css-variables-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/include-project-css-variables-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,0CAA0C,CACxD,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,GACnC,OAAO,CAET"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PROJECT_WIDGET_CHROME_COLOR_SCHEME_VALUES: readonly ["light", "dark", "light dark"];
|
|
2
|
+
export declare const PROJECT_WIDGET_CHROME_SCROLLBAR_WIDTH_VALUES: readonly ["auto", "thin", "none"];
|
|
3
|
+
export type ProjectWidgetChromeColorScheme = (typeof PROJECT_WIDGET_CHROME_COLOR_SCHEME_VALUES)[number];
|
|
4
|
+
export type ProjectWidgetChromeScrollbarWidth = (typeof PROJECT_WIDGET_CHROME_SCROLLBAR_WIDTH_VALUES)[number];
|
|
5
|
+
export type ProjectWidgetChrome = {
|
|
6
|
+
colorScheme?: ProjectWidgetChromeColorScheme;
|
|
7
|
+
selectionBackground?: string;
|
|
8
|
+
selectionColor?: string;
|
|
9
|
+
caretColor?: string;
|
|
10
|
+
scrollbarColor?: string;
|
|
11
|
+
scrollbarWidth?: ProjectWidgetChromeScrollbarWidth;
|
|
12
|
+
};
|
|
13
|
+
export declare const sanitizeProjectWidgetChrome: (widgetChrome: ProjectWidgetChrome | null | undefined) => ProjectWidgetChrome | null;
|
|
14
|
+
/**
|
|
15
|
+
* Color-scheme, caret, and scrollbars on boxed children of the published-key
|
|
16
|
+
* wrapper; selection on that subtree. Never `:root` / `html` / `body`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatProjectCssWidgetChromeStylesheet: (publishedKey: string, widgetChrome: ProjectWidgetChrome | null | undefined, includeWidgetChrome?: boolean | null) => string | null;
|
|
19
|
+
//# sourceMappingURL=format-project-css-widget-chrome-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-widget-chrome-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-widget-chrome/format-project-css-widget-chrome-stylesheet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yCAAyC,0CAI5C,CAAC;AACX,eAAO,MAAM,4CAA4C,mCAAoC,CAAC;AAE9F,MAAM,MAAM,8BAA8B,GACxC,CAAC,OAAO,yCAAyC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,iCAAiC,GAC3C,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,8BAA8B,CAAC;IAC7C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,iCAAiC,CAAC;CACpD,CAAC;AAeF,eAAO,MAAM,2BAA2B,iBACxB,mBAAmB,GAAG,IAAI,GAAG,SAAS,KACnD,mBAAmB,GAAG,IAyBxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,iBACnC,MAAM,gBACN,mBAAmB,GAAG,IAAI,GAAG,SAAS,wBAC9B,OAAO,GAAG,IAAI,KACnC,MAAM,GAAG,IA0CX,CAAC"}
|
package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `widgetChrome` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeWidgetChromeOnPublishedWidget(includeWidgetChrome?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-widget-chrome-on-published-widget.d.ts.map
|
package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-widget-chrome-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,0CAA0C,CACxD,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,GACnC,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectWidgetChrome } from './format-project-css-widget-chrome-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one `<style data-rulecms-project-widget-chrome>` from the project
|
|
5
|
+
* catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssWidgetChromeStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
widgetChrome?: ProjectWidgetChrome | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssWidgetChromeStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssWidgetChromeStylesheetComponent, "rulecms-project-css-widget-chrome-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "widgetChrome": { "alias": "widgetChrome"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-widget-chrome-stylesheet.component.d.ts.map
|
|
@@ -0,0 +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":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;;AAEzF;;;GAGG;AACH,qBASa,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-rule-cms-widget-data.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/prepare-rule-cms-widget-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-rule-cms-widget-data.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/prepare-rule-cms-widget-data.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAGrB,MAAM,qBAAqB,CAAC;AAoC7B,qFAAqF;AACrF,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,oBAAoB,GACxB,iBAAiB,CAiDnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-cms-widget.component.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/rule-cms-widget.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAGZ,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-cms-widget.component.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/rule-cms-widget.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAGZ,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAcxE,OAAO,KAAK,EAA4B,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;;AAYvF,qBA8Fa,sBAAuB,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAqD3D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACF,OAAO,CAAC,QAAQ,CAAC,YAAY;IArDjE;;;OAGG;IACwB,YAAY,EAAG,MAAM,CAAC;IACjD,0DAA0D;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,oCAAoC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACM,IAAI,EAAE,cAAc,GAAG,aAAa,CAAkB;IAC/D,+CAA+C;IACtC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IACzC;;;OAGG;IACM,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAC5C;;;OAGG;IACM,cAAc,CAAC,EAAE,iBAAiB,CAAC;IAC5C;;;;OAIG;IACM,MAAM,CAAC,EAAE,SAAS,CAAC;IAE5B,QAAQ,CAAC,qBAAqB,gCAAmC;IACjE,QAAQ,CAAC,qBAAqB,yBAAyB;IACvD,QAAQ,CAAC,qBAAqB,yBAAyB;IACvD,QAAQ,CAAC,YAAY,yBAAgB;IACrC,QAAQ,CAAC,mBAAmB,yBAAuB;IACnD,QAAQ,CAAC,eAAe,yBAAmB;IAC3C,QAAQ,CAAC,iBAAiB,yBAAqB;IAE/C,OAAO,UAAS;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,YAAY,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAC9C,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAQ;IAC7D,qBAAqB,UAAS;IAE9B,OAAO,CAAC,eAAe,CAAgC;IACvD,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,cAAc,CAAS;gBAGA,OAAO,EAAE,2BAA2B,GAAG,IAAI,EACrB,YAAY,EAAE,YAAY,GAAG,IAAI;IAGtF,IAAI,OAAO,IAAI,sBAAsB,CAEpC;IAED,QAAQ,IAAI,IAAI;IAIhB,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAI1C,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,gBAAgB;IAgCxB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,WAAW;IAkEnB,OAAO,CAAC,mBAAmB;yCAvMhB,sBAAsB;2CAAtB,sBAAsB;CAoNlC"}
|