PctIconNametype| 'calendar' | 'check' | 'chevron-down' | 'clock' | 'close' | 'danger' | 'indeterminate' | 'info' | 'success' | 'user' | 'warning' | The icons the library draws, by the ROLE they play rather than by what they look like (req-api-icons). chevron-down and not arrow-down-16: a consumer swapping it is answering "what does the select's trigger show", not "which of my 16-pixel arrows". |
PctIconSetOrSourcetypeunreleasedType<unknown> | PctIconSource | What providePctIcons takes, any number of times: a set component, or a source. |
PCT_ICONStoken | ONE set component, as 0028 wrote it — kept in that shape so that whoever read or provided it keeps compiling and running. A set standing here is read first, before everything PCT_ICON_SOURCES carries. |
PCT_ICON_SOURCEStokenunreleased | The consumer's icons, in order of precedence: set components and sources alike — what providePctIcons(…) provides (0083). A source holds no markup at all, which is why it can be a plain object. |
providePctIconsfunction | Registers the application's icons, for the whole application or for one subtree (req-api-icons). Every argument is a set component or a source, asked in this order: the first that answers draws. A role no argument answers keeps the drawing the component ships with, the same partial override as providePctTexts. |
PctIconTemplatedirectiveng-template[pctIcon] | One icon of a set: an <ng-template> under the name it replaces (req-api-icons). |
PctIconcomponentpct-icon | An icon: a drawing in a box the text around it sizes and colours (req-api-icons). |
PctIconIdsinterface | |
PctIconIdtypeunreleased[keyof PctIconIds] extends [never] ? string : keyof PctIconIds & string | What icon takes: every key of PctIconIds, or any string while that interface is empty. |
PctIconTemplateRenderinginterfaceunreleased | A drawing a set component registered under a role: the template renders in the box. |
PctIconFontRenderinginterfaceunreleased | A glyph of an icon font: a <span> wearing the font's classes, holding the ligature text when the font reads one (Material), with font-variation-settings or whatever else the font takes as inline style. |
PctIconComponentRenderinginterfaceunreleased | A component created in the box with the inputs given — the way every drawing that is not a template and not a font arrives, including the library's own SVG renderer. |
PctIconRenderingtypeunreleasedPctIconTemplateRendering | PctIconFontRendering | PctIconComponentRendering | What a source answers for an id: a template, a font glyph or a component — data, never markup. A string of SVG has no place here on purpose: Angular's sanitizer deletes an <svg> from [innerHTML] outright, and the only way around it is the library trusting markup a consumer wrote, which is the shape 0028 refused. |
PctIconSourceinterfaceunreleased | A source of icons: answers an id with a rendering, or with null so that the next source is asked. providePctIcons(…) takes any number of them, in order of precedence. |
PctSvgNodetypeunreleasedreadonly [ tag: string, attributes: Readonly<Record<string, string | number | undefined>>, ] | One element of an SVG drawing given as data: the tag and its attributes. |
PctSvgIconDatainterfaceunreleased | An SVG drawing as data: the box it is drawn in, the attributes of the root and the elements inside it. |
PctSvgIconDefinitioninterfaceunreleased | An icon as FontAwesome's SVG packages export it: faHouse from @fortawesome/free-solid-svg-icons. Only the icon tuple is read — the width, the height and the path data, one path or two. |
PctSvgIconInputtypeunreleasedPctSvgIconData | readonly PctSvgNode[] | PctSvgIconDefinition | What svgIcons() takes under an id: a drawing as data, the nodes alone (Tabler and the packages built like it — drawn on the 24-grid with their stroke conventions), or a FontAwesome definition. |
PctIconRolestypeunreleasedReadonly< Partial<Record<PctIconName, string | undefined>> > | The library's roles in a font's vocabulary — what an adapter carries so that one line dresses every component, and what a consumer overrides when their version spells one differently (times became xmark between FontAwesome 5 and 6). |
PctIconRoleSelectiontypeunreleasedPctIconRoles | readonly PctIconName[] | Which of the library's roles a font dresses, said one of two ways. A map corrects an adapter's own — { close: 'times' } for a version that spells one differently, undefined to keep the library's drawing for that one role — and the rest of the map stands; a font of your own has no map of its own, and takes the map as it is. A list names the roles to dress and nothing else, each in the adapter's spelling: ['chevron-down'] dresses the select's arrow and leaves every other component as it ships, [] dresses none — the font draws your ids, and the library draws its own. |
PctIconFontRolesinterfaceunreleased | What every font adapter takes besides its own knobs. |
PctIconFontOptionsinterfaceunreleased | How an icon font keys its glyphs, for a font this entrypoint has no adapter of its own for — or for the application's own. |
iconFontfunctionunreleased | An icon font as a source: every id is a glyph of it (req-api-icons). |
PctFontAwesomeOptionsinterfaceunreleased | What FontAwesome's stylesheet is told, besides the roles. |
fontAwesomefunctionunreleased | FontAwesome, as classes: <pct-icon icon="house"> is <i class="fa-solid fa-house">. |
primeIconsfunctionunreleased | PrimeIcons, as classes: <pct-icon icon="bell"> is <i class="pi pi-bell">. |
bootstrapIconsfunctionunreleased | Bootstrap Icons, as classes: <pct-icon icon="bell"> is <i class="bi bi-bell">. |
PctMaterialIconsVarianttypeunreleased'filled' | 'outlined' | 'round' | 'sharp' | 'two-tone' | Which of the Material Icons fonts is loaded. |
PctMaterialIconsOptionsinterfaceunreleased | What the Material Icons font is told, besides the roles. |
materialIconsfunctionunreleased | Material Icons, the ligature font: <pct-icon icon="home"> is <span class="material-icons">home</span>. |
PctMaterialSymbolsVarianttypeunreleased'outlined' | 'rounded' | 'sharp' | Which of the Material Symbols fonts is loaded. |
PctMaterialSymbolsOptionsinterfaceunreleased | What the Material Symbols font is told, besides the roles: the axes of a variable font. An axis left out is left to the stylesheet. |
materialSymbolsfunctionunreleased | Material Symbols, the variable ligature font: <pct-icon icon="home"> is <span class="material-symbols-outlined">home</span>, with font-variation-settings for the axes given. |