@rulecms/source-components-angular 0.3.0 → 0.4.1
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-source-components-angular.mjs +368 -34
- package/fesm2022/rulecms-source-components-angular.mjs.map +1 -1
- package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map +1 -1
- package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts +1 -0
- package/lib/base-components/display/components/r-accordion/accordion-attributes.d.ts.map +1 -1
- package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts.map +1 -1
- package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts.map +1 -1
- package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts +1 -0
- package/lib/base-components/display/components/r-accordion/r-accordion.component.d.ts.map +1 -1
- package/lib/base-components/display/components/r-list/attribute-edit-mode-configs.d.ts.map +1 -1
- package/lib/base-components/display/components/r-list/default-attribute-values.d.ts.map +1 -1
- package/lib/base-components/display/components/r-list/list-attributes.d.ts +1 -0
- package/lib/base-components/display/components/r-list/list-attributes.d.ts.map +1 -1
- package/lib/base-components/display/components/r-list/r-list.component.d.ts +1 -0
- package/lib/base-components/display/components/r-list/r-list.component.d.ts.map +1 -1
- package/lib/base-components/display/components/r-text/attribute-edit-mode-configs.d.ts.map +1 -1
- package/lib/base-components/display/components/r-text/default-attribute-values.d.ts.map +1 -1
- package/lib/base-components/display/components/r-text/r-text.component.d.ts +5 -0
- package/lib/base-components/display/components/r-text/r-text.component.d.ts.map +1 -1
- package/lib/component-library-module.d.ts.map +1 -1
- package/lib/library-version.d.ts +3 -0
- package/lib/library-version.d.ts.map +1 -0
- package/lib/shared/inline-markup/inline-markup.component.d.ts +7 -1
- package/lib/shared/inline-markup/inline-markup.component.d.ts.map +1 -1
- package/lib/shared/inline-markup/parse-inline-markers.d.ts +9 -3
- package/lib/shared/inline-markup/parse-inline-markers.d.ts.map +1 -1
- package/lib/shared/inline-markup/serialize-inline-markers.d.ts.map +1 -1
- package/lib/shared/span-styles/index.d.ts +8 -0
- package/lib/shared/span-styles/index.d.ts.map +1 -0
- package/lib/shared/span-styles/parse-style-declarations.d.ts +28 -0
- package/lib/shared/span-styles/parse-style-declarations.d.ts.map +1 -0
- package/lib/shared/span-styles/resolve-class-names.d.ts +23 -0
- package/lib/shared/span-styles/resolve-class-names.d.ts.map +1 -0
- package/lib/shared/span-styles/resolve-span-style-attributes.d.ts +26 -0
- package/lib/shared/span-styles/resolve-span-style-attributes.d.ts.map +1 -0
- package/lib/shared/span-styles/span-style-item.d.ts +43 -0
- package/lib/shared/span-styles/span-style-item.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -1
package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-name-to-modify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/component-name-to-modify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,
|
|
1
|
+
{"version":3,"file":"component-name-to-modify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/component-name-to-modify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,8BAgF5C,CAAC"}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
export declare const ACCORDION_SUMMARY_ATTRIBUTE = "accordion-summary-3-resolutions";
|
|
34
34
|
export declare const ACCORDION_DETAIL_ATTRIBUTE = "accordion-detail-3-resolutions";
|
|
35
35
|
export declare const ACCORDION_LINKS_ATTRIBUTE = "accordion-links-3-resolutions";
|
|
36
|
+
export declare const ACCORDION_INLINE_STYLES_ATTRIBUTE = "accordion-inline-styles-3-resolutions";
|
|
36
37
|
export declare const ACCORDION_OPEN_ATTRIBUTE = "accordion-open-3-resolutions";
|
|
37
38
|
export declare const ACCORDION_HEADING_LEVEL_ATTRIBUTE = "accordion-heading-level-3-resolutions";
|
|
38
39
|
/** What a freshly dropped accordion shows before the author types anything. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/accordion-attributes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AACzE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,wBAAwB,6EACuC,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,iDAAkD,CAAC;AACxF,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,EAAE,qBAA8B,CAAC;AAE7E,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,wBAAyB,UAAU,KAAG,MAazE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,wBAAyB,UAAU,KAAG,MAAM,EAY9E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,UAAU,KAAG,OAMtE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,wBAClB,UAAU,KAC9B,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,GAAG,SAM3C,CAAC"}
|
|
1
|
+
{"version":3,"file":"accordion-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/accordion-attributes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AACzE,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AACzF,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,iCAAiC,0CAA0C,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,wBAAwB,6EACuC,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,iDAAkD,CAAC;AACxF,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,EAAE,qBAA8B,CAAC;AAE7E,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,wBAAyB,UAAU,KAAG,MAazE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,wBAAyB,UAAU,KAAG,MAAM,EAY9E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,wBAAyB,UAAU,KAAG,OAMtE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,wBAClB,UAAU,KAC9B,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,GAAG,SAM3C,CAAC"}
|
package/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAWjE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EA2C7D,CAAC"}
|
package/lib/base-components/display/components/r-accordion/default-attribute-values.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAa1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAkCzD,CAAC"}
|
|
@@ -19,6 +19,7 @@ export declare class RAccordionComponent {
|
|
|
19
19
|
get summary(): string;
|
|
20
20
|
get headingLevel(): "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
21
21
|
get links(): any;
|
|
22
|
+
get spanStyles(): any;
|
|
22
23
|
get open(): boolean;
|
|
23
24
|
get detail(): string[];
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<RAccordionComponent, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"r-accordion.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/r-accordion.component.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"r-accordion.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-accordion/r-accordion.component.ts"],"names":[],"mappings":";AAwBA,qBAyBa,mBAAmB;IACrB,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,kBAAkB;;;;MAAwB;IACnD,QAAQ,CAAC,mBAAmB;;;MAAyB;IAErD,IAAI,OAAO,WAEV;IACD,IAAI,YAAY,iDAEf;IACD,IAAI,KAAK,QAER;IACD,IAAI,UAAU,QAEb;IACD,IAAI,IAAI,YAEP;IACD,IAAI,MAAM,aAET;yCAzBU,mBAAmB;2CAAnB,mBAAmB;CA0B/B"}
|
|
@@ -1 +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;
|
|
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;AAYjE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAkD7D,CAAC"}
|
|
@@ -1 +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;
|
|
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;AAa1D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAoCzD,CAAC"}
|
|
@@ -24,6 +24,7 @@ export declare const LIST_MARKER_ATTRIBUTE = "list-marker-3-resolutions";
|
|
|
24
24
|
export declare const LIST_START_ATTRIBUTE = "list-start-3-resolutions";
|
|
25
25
|
export declare const LIST_REVERSED_ATTRIBUTE = "list-reversed-3-resolutions";
|
|
26
26
|
export declare const LIST_LINKS_ATTRIBUTE = "list-links-3-resolutions";
|
|
27
|
+
export declare const LIST_INLINE_STYLES_ATTRIBUTE = "list-inline-styles-3-resolutions";
|
|
27
28
|
/** What a freshly dropped list shows before the author types anything. */
|
|
28
29
|
export declare const DEFAULT_LIST_ITEMS = "First item\nSecond item\nThird item";
|
|
29
30
|
export declare const LIST_KINDS: readonly ["unordered", "ordered"];
|
|
@@ -1 +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;
|
|
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;AAC/D,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAE/E,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"}
|
|
@@ -9,6 +9,7 @@ export declare class RListComponent {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
get marker(): "circle" | "none" | "disc" | "square" | "decimal" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman" | undefined;
|
|
11
11
|
get links(): any;
|
|
12
|
+
get spanStyles(): any;
|
|
12
13
|
get style(): {
|
|
13
14
|
listStyleType?: "circle" | "none" | "disc" | "square" | "decimal" | "lower-alpha" | "upper-alpha" | "lower-roman" | "upper-roman" | undefined;
|
|
14
15
|
};
|
|
@@ -1 +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":";
|
|
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":";AAaA,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,UAAU,QAEb;IACD,IAAI,KAAK;;MAKR;IACD,IAAI,KAAK,aAER;IACD,IAAI,IAAI,4BAEP;IACD,IAAI,KAAK,uBAER;IACD,IAAI,QAAQ,YAEX;yCA/BU,cAAc;2CAAd,cAAc;CAgC1B"}
|
|
@@ -1 +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,
|
|
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,EA0B7D,CAAC"}
|
|
@@ -1 +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,
|
|
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,EAmBzD,CAAC"}
|
|
@@ -9,6 +9,11 @@ export declare class RTextComponent {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
get content(): string;
|
|
11
11
|
get links(): unknown;
|
|
12
|
+
/**
|
|
13
|
+
* The two index markers — `{n|…}` into the link list and `{.n|…}` into the
|
|
14
|
+
* styling list — resolve by 1-based position against separate attributes.
|
|
15
|
+
*/
|
|
16
|
+
get spanStyles(): unknown;
|
|
12
17
|
get tag(): string | undefined;
|
|
13
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RTextComponent, never>;
|
|
14
19
|
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>;
|
|
@@ -1 +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;
|
|
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;;;OAGG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;yCAxBU,cAAc;2CAAd,cAAc;CAyB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-library-module.d.ts","sourceRoot":"","sources":["../../src/lib/component-library-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component-library-module.d.ts","sourceRoot":"","sources":["../../src/lib/component-library-module.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,UAAU,8EAAyC,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,UAAU,QAA4B,CAAC;AAEpD,iFAAiF;AACjF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-version.d.ts","sourceRoot":"","sources":["../../src/lib/library-version.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,eAAO,MAAM,cAAc,UAAU,CAAC"}
|
|
@@ -5,12 +5,18 @@ export declare class InlineMarkupComponent implements OnChanges {
|
|
|
5
5
|
private readonly renderer;
|
|
6
6
|
text: string;
|
|
7
7
|
links: unknown;
|
|
8
|
+
spanStyles: unknown;
|
|
8
9
|
constructor(host: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
9
10
|
ngOnChanges(): void;
|
|
11
|
+
/**
|
|
12
|
+
* The anchor stays innermost and a styling entry becomes the outermost
|
|
13
|
+
* element: the marks say what these words *are*, and the styling says how
|
|
14
|
+
* this run of words looks, which is the container of the other two.
|
|
15
|
+
*/
|
|
10
16
|
private renderSpan;
|
|
11
17
|
private createAnchor;
|
|
12
18
|
private clear;
|
|
13
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<InlineMarkupComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMarkupComponent, "rulecms-inline-markup", never, { "text": { "alias": "text"; "required": false; }; "links": { "alias": "links"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMarkupComponent, "rulecms-inline-markup", never, { "text": { "alias": "text"; "required": false; }; "links": { "alias": "links"; "required": false; }; "spanStyles": { "alias": "spanStyles"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
21
|
}
|
|
16
22
|
//# sourceMappingURL=inline-markup.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-markup.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/inline-markup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACT,SAAS,EACV,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"inline-markup.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/inline-markup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACT,SAAS,EACV,MAAM,eAAe,CAAC;;AAoBvB,qBAMa,qBAAsB,YAAW,SAAS;IAMnD,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IANlB,IAAI,SAAM;IACV,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;gBAGV,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,EAC7B,QAAQ,EAAE,SAAS;IAGtC,WAAW,IAAI,IAAI;IA8CnB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA6BlB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,KAAK;yCAzGF,qBAAqB;2CAArB,qBAAqB;CA+GjC"}
|
|
@@ -20,6 +20,12 @@ export type MarkupSpanRun = {
|
|
|
20
20
|
* (`{1|word}`), so this is optional and the marks are always present.
|
|
21
21
|
*/
|
|
22
22
|
index?: number;
|
|
23
|
+
/**
|
|
24
|
+
* 1-based position in the styling list, when the marker carried a `.index`.
|
|
25
|
+
* Independent of everything else on the span: `{.1|word}` is styled only,
|
|
26
|
+
* `{b2.1|word}` is bold, linked, and styled.
|
|
27
|
+
*/
|
|
28
|
+
styleIndex?: number;
|
|
23
29
|
marks: InlineMarks;
|
|
24
30
|
};
|
|
25
31
|
export type MarkupBreakRun = {
|
|
@@ -32,9 +38,9 @@ export type MarkupRun = MarkupTextRun | MarkupSpanRun | MarkupBreakRun;
|
|
|
32
38
|
* The grammar, and everything it deliberately leaves as literal text, is
|
|
33
39
|
* specified in `rulecms/__docs__/__ARCHITECTURE__/INLINE_MARKUP_ARCHITECTURE.md`.
|
|
34
40
|
* In short: a marker is `{`, then lowercase mark letters, then a link index,
|
|
35
|
-
* then `|`, then its text, then `}`. At least one
|
|
36
|
-
* must be present, and everything that does not match that shape
|
|
37
|
-
* verbatim — `{name}`, `{99}`, a lone `{`, JSON fragments, an unterminated
|
|
41
|
+
* then `.` and a styling index, then `|`, then its text, then `}`. At least one
|
|
42
|
+
* of those three must be present, and everything that does not match that shape
|
|
43
|
+
* stays verbatim — `{name}`, `{99}`, a lone `{`, JSON fragments, an unterminated
|
|
38
44
|
* marker, an unknown mark letter, and empty span text.
|
|
39
45
|
*
|
|
40
46
|
* Indexes are 1-based and normalize through a base-10 parse, so `{01|x}` and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-inline-markers.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/parse-inline-markers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"parse-inline-markers.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/parse-inline-markers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;AAwDvE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CA2C7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize-inline-markers.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/serialize-inline-markers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAiB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"serialize-inline-markers.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/inline-markup/serialize-inline-markers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,SAAS,EAAiB,MAAM,wBAAwB,CAAC;AAkCpF,gCAAgC;AAChC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM,CASzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAEzE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { isSpanStyleItem, isEmptySpanStyleItem, getSpanStyleItemAt } from './span-style-item';
|
|
2
|
+
export type { SpanStyleItem } from './span-style-item';
|
|
3
|
+
export { resolveClassNames } from './resolve-class-names';
|
|
4
|
+
export { parseStyleDeclarations, formatStyleDeclarations } from './parse-style-declarations';
|
|
5
|
+
export type { StyleDeclaration } from './parse-style-declarations';
|
|
6
|
+
export { resolveSpanStyleAttributes } from './resolve-span-style-attributes';
|
|
7
|
+
export type { SpanStyleAttributes } from './resolve-span-style-attributes';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/span-styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC9F,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One CSS declaration, normalized: a property name this module accepted and the
|
|
3
|
+
* value it accepted for it, both trimmed and with nothing dropped in between.
|
|
4
|
+
*/
|
|
5
|
+
export type StyleDeclaration = {
|
|
6
|
+
property: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* An authored CSS declaration list to the declarations that will be applied.
|
|
11
|
+
*
|
|
12
|
+
* The list is a denylist over values and an allowlist over property names,
|
|
13
|
+
* which is the same shape as `text-safety/validate-text-content.ts` in the
|
|
14
|
+
* composer and for the same reason: a person writing `color: #c00` should never
|
|
15
|
+
* have to think about this function, while the handful of constructs that turn
|
|
16
|
+
* a declaration into a request or a script are named and refused.
|
|
17
|
+
*
|
|
18
|
+
* A rejected declaration costs only itself. `color: red; behavior: url(x)`
|
|
19
|
+
* still sets the colour, because dropping the whole entry over one bad
|
|
20
|
+
* declaration would lose work the author can see is fine.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseStyleDeclarations(value: unknown): StyleDeclaration[];
|
|
23
|
+
/**
|
|
24
|
+
* Declarations back to a CSS string, for the places that want a `style`
|
|
25
|
+
* attribute rather than an object — which in this port is every one of them.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatStyleDeclarations(declarations: readonly StyleDeclaration[]): string;
|
|
28
|
+
//# sourceMappingURL=parse-style-declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-style-declarations.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/span-styles/parse-style-declarations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAiGnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,EAAE,CA6BzE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,CAEzF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A class name is a *selector* into CSS the customer already ships. This
|
|
3
|
+
* library cannot see those rules, so it cannot validate a name against
|
|
4
|
+
* anything — the only useful question is whether the token could damage the
|
|
5
|
+
* document it lands in, and the answer is almost always no: every renderer sets
|
|
6
|
+
* `class` through a DOM property or a framework binding, never by pasting into
|
|
7
|
+
* markup.
|
|
8
|
+
*
|
|
9
|
+
* So the filter is deliberately permissive. Utility frameworks make class names
|
|
10
|
+
* that look like code — `md:hover:text-lg`, `w-1/2`, `text-[#c00]`,
|
|
11
|
+
* `[&>svg]:size-4` — and a tidier-looking allowlist would reject those and be
|
|
12
|
+
* read as a bug.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The `class` value for a styling entry, or `undefined` when it has none worth
|
|
16
|
+
* setting.
|
|
17
|
+
*
|
|
18
|
+
* Duplicates collapse and order is the author's. One bad token costs that
|
|
19
|
+
* token: the rest of a mostly-fine list still applies, which is the same
|
|
20
|
+
* per-field tolerance `resolveLinkAttributes` gives a link entry.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveClassNames(value: unknown): string | undefined;
|
|
23
|
+
//# sourceMappingURL=resolve-class-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-class-names.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/span-styles/resolve-class-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAyBH;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAWpE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SpanStyleItem } from './span-style-item';
|
|
2
|
+
/**
|
|
3
|
+
* What a styled run's element carries.
|
|
4
|
+
*
|
|
5
|
+
* `style` is a declaration string rather than an object, because that is what
|
|
6
|
+
* this port binds: a template hands the CSS to the element as written. React
|
|
7
|
+
* needs an object and camel-cased properties, and turning the parsed
|
|
8
|
+
* declarations back into a string here means both platforms apply exactly the
|
|
9
|
+
* declarations that passed the checks and nothing else.
|
|
10
|
+
*/
|
|
11
|
+
export type SpanStyleAttributes = {
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Turns a stored styling entry into element attributes, or `undefined` when the
|
|
17
|
+
* entry cannot produce any — missing, cleared, or holding nothing that survived
|
|
18
|
+
* the checks in `resolveClassNames` and `parseStyleDeclarations`. Callers render
|
|
19
|
+
* the plain text in that case, exactly as they do for a link that resolves to
|
|
20
|
+
* nothing.
|
|
21
|
+
*
|
|
22
|
+
* Knows nothing about text, markers, or any one component: this is the piece
|
|
23
|
+
* every component rendering inline markup shares.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveSpanStyleAttributes(item: SpanStyleItem | undefined): SpanStyleAttributes | undefined;
|
|
26
|
+
//# sourceMappingURL=resolve-span-style-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-span-style-attributes.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/span-styles/resolve-span-style-attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,aAAa,GAAG,SAAS,GAC9B,mBAAmB,GAAG,SAAS,CAgBjC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One styling entry as the composer stores it. Shared by every component that
|
|
3
|
+
* renders inline markup, so nothing here knows about text.
|
|
4
|
+
*
|
|
5
|
+
* Two fields rather than one because they fail differently. Class names are
|
|
6
|
+
* names of rules the customer's own CSS owns, and this library can neither see
|
|
7
|
+
* them nor be sure they exist. Declarations are CSS this library has to
|
|
8
|
+
* understand well enough to be sure of what it applies.
|
|
9
|
+
*/
|
|
10
|
+
export type SpanStyleItem = {
|
|
11
|
+
/** Author-facing name for identifying the entry in the composer. Never rendered. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Whitespace-separated class names, exactly as the author typed them. */
|
|
14
|
+
classNames?: string;
|
|
15
|
+
/** A CSS declaration list — `color: #c00; font-weight: 600` — without braces. */
|
|
16
|
+
declarations?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Runtime guard for entries arriving through componentAttributes (untyped,
|
|
20
|
+
* editor-authored data).
|
|
21
|
+
*
|
|
22
|
+
* Only object shape is checked, for the same reason as `isLinkItem`: one bad
|
|
23
|
+
* field must cost that field rather than the whole entry, so per-field
|
|
24
|
+
* validation belongs to `resolveSpanStyleAttributes` where each value is turned
|
|
25
|
+
* into something an element can carry.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isSpanStyleItem(value: unknown): value is SpanStyleItem;
|
|
28
|
+
/**
|
|
29
|
+
* True for a cleared slot. Clearing an entry stores `{}` rather than removing
|
|
30
|
+
* the array element, because marker indexes are 1-based positions: dropping an
|
|
31
|
+
* element would silently repoint every later marker.
|
|
32
|
+
*
|
|
33
|
+
* A `label` alone is a cleared slot. It is the author's note to themselves
|
|
34
|
+
* about which entry this is, and an entry that only has a name applies nothing.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isEmptySpanStyleItem(item: unknown): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The entry a `{.n|…}` marker points at, by 1-based position. Tolerant of bad
|
|
39
|
+
* data on every axis — a non-array list, a fractional or out-of-range index, a
|
|
40
|
+
* hole in the array — because none of it may throw during a render.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getSpanStyleItemAt(spanStyles: unknown, oneBasedIndex: number): SpanStyleItem | undefined;
|
|
43
|
+
//# sourceMappingURL=span-style-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"span-style-item.d.ts","sourceRoot":"","sources":["../../../../src/lib/shared/span-styles/span-style-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAO3D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,OAAO,EACnB,aAAa,EAAE,MAAM,GACpB,aAAa,GAAG,SAAS,CAS3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecms/source-components-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Angular source components for RuleCMS — the Angular counterpart of @rulecms/source-components-react",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "RuleCMS, LLC",
|
package/public-api.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export { ENCLOSING_TAGS, BLOCK_ENCLOSING_TAGS, INLINE_ENCLOSING_TAGS, isEnclosin
|
|
|
7
7
|
export type { EnclosingTag } from './lib/base-components/display/components/r-text/enclosing-tags';
|
|
8
8
|
export { isSafeHref, REJECTED_HREF_SCHEMES, resolveLinkAttributes, parseInlineLinkMarkers, } from './lib/shared/links';
|
|
9
9
|
export type { LinkItem, AnchorAttributes, InlineRun, InlineTextRun, InlineLinkRun, } from './lib/shared/links';
|
|
10
|
+
export { isSpanStyleItem, isEmptySpanStyleItem, getSpanStyleItemAt, resolveClassNames, parseStyleDeclarations, formatStyleDeclarations, resolveSpanStyleAttributes, } from './lib/shared/span-styles';
|
|
11
|
+
export type { SpanStyleItem, StyleDeclaration, SpanStyleAttributes, } from './lib/shared/span-styles';
|
|
10
12
|
export { parseInlineMarkers, formatInlineMarker, serializeInlineMarkers, InlineMarkupComponent, } from './lib/shared/inline-markup';
|
|
11
13
|
export type { InlineMarks, MarkupRun, MarkupTextRun, MarkupSpanRun, MarkupBreakRun, } from './lib/shared/inline-markup';
|
|
12
14
|
export { BUTTON_VARIANTS, BUTTON_TONES, BUTTON_SIZES, DEFAULT_BUTTON_PRESET, TONE_PALETTES, SIZE_SCALES, isButtonVariant, isButtonTone, isButtonSize, } from './lib/base-components/display/components/r-button/button-presets';
|
package/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE1F,cAAc,aAAa,CAAC;AAE5B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,cAAc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