@pecb-ui/components 1.1.6 → 1.1.7
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/pecb-ui-components.mjs +3472 -62
- package/fesm2022/pecb-ui-components.mjs.map +1 -1
- package/index.d.ts +75 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ type ButtonSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
11
11
|
type ButtonIconStyle = 'none' | 'leading' | 'trailing' | 'icon-only';
|
|
12
12
|
declare class ButtonComponent {
|
|
13
13
|
private readonly sanitizer;
|
|
14
|
+
private readonly registry;
|
|
14
15
|
id: _angular_core.InputSignal<string>;
|
|
15
16
|
/**
|
|
16
17
|
* The visual style variant of the button
|
|
@@ -25,7 +26,14 @@ declare class ButtonComponent {
|
|
|
25
26
|
*/
|
|
26
27
|
iconStyle: _angular_core.InputSignal<ButtonIconStyle>;
|
|
27
28
|
/**
|
|
28
|
-
* Icon to display (used with iconStyle)
|
|
29
|
+
* Icon to display (used with `iconStyle`).
|
|
30
|
+
*
|
|
31
|
+
* Accepts either:
|
|
32
|
+
* - a **registered icon name** (e.g. `"refresh-01"`), resolved from the
|
|
33
|
+
* {@link IconRegistry} — the built-in PECB icon set is available by default; or
|
|
34
|
+
* - a **raw inline SVG string** (anything starting with `<`).
|
|
35
|
+
*
|
|
36
|
+
* An unrecognised value renders nothing (no icon).
|
|
29
37
|
*/
|
|
30
38
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
31
39
|
/**
|
|
@@ -88,7 +96,12 @@ declare class ButtonComponent {
|
|
|
88
96
|
get showTrailingIcon(): boolean;
|
|
89
97
|
get isIconOnly(): boolean;
|
|
90
98
|
get loadingText(): string;
|
|
91
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Resolve the `icon` input to an SVG string. A value starting with `<` is
|
|
101
|
+
* treated as a raw inline SVG and passed through; otherwise it is looked up
|
|
102
|
+
* as a registered icon name. Returns `''` when unset or unresolved.
|
|
103
|
+
*/
|
|
104
|
+
get resolvedIconSvg(): string;
|
|
92
105
|
get safeIconHtml(): SafeHtml;
|
|
93
106
|
onClick(event: MouseEvent): void;
|
|
94
107
|
onKeyDown(event: KeyboardEvent): void;
|
|
@@ -6310,5 +6323,63 @@ declare class IconComponent {
|
|
|
6310
6323
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "pecb-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "svgIcon": { "alias": "svgIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6311
6324
|
}
|
|
6312
6325
|
|
|
6313
|
-
|
|
6314
|
-
|
|
6326
|
+
/**
|
|
6327
|
+
* Global registry for SVG icons.
|
|
6328
|
+
*
|
|
6329
|
+
* Icons are registered as inline SVG strings keyed by their `IconName`.
|
|
6330
|
+
* The `IconComponent` queries this registry when a `[name]` input is used.
|
|
6331
|
+
*
|
|
6332
|
+
* The full PECB icon set (`PECB_ICONS`) and custom icon set
|
|
6333
|
+
* (`PECB_CUSTOM_ICONS`) are **pre-registered automatically** in the
|
|
6334
|
+
* constructor, so `<pecb-icon name="...">` works out of the box with no
|
|
6335
|
+
* consumer setup. Use {@link register} / {@link registerAll} only to add your
|
|
6336
|
+
* own custom icons (or to override a built-in one).
|
|
6337
|
+
*
|
|
6338
|
+
* @example
|
|
6339
|
+
* ```ts
|
|
6340
|
+
* import { IconRegistry } from '@pecb-ui/components';
|
|
6341
|
+
*
|
|
6342
|
+
* // Built-in icons need no registration. To add a custom icon:
|
|
6343
|
+
* constructor(private reg: IconRegistry) {
|
|
6344
|
+
* reg.register('my-logo', '<svg ...>...</svg>');
|
|
6345
|
+
* }
|
|
6346
|
+
* ```
|
|
6347
|
+
*/
|
|
6348
|
+
declare class IconRegistry {
|
|
6349
|
+
private readonly icons;
|
|
6350
|
+
constructor();
|
|
6351
|
+
/** Register a single icon by name. */
|
|
6352
|
+
register(name: IconName | string, svg: string): void;
|
|
6353
|
+
/** Register many icons at once. */
|
|
6354
|
+
registerAll(icons: Record<string, string>): void;
|
|
6355
|
+
/** Retrieve an icon SVG string by name. Returns `undefined` if not found. */
|
|
6356
|
+
get(name: string): string | undefined;
|
|
6357
|
+
/** Check whether an icon is registered. */
|
|
6358
|
+
has(name: string): boolean;
|
|
6359
|
+
/** Return all registered icon names. */
|
|
6360
|
+
names(): string[];
|
|
6361
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconRegistry, never>;
|
|
6362
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<IconRegistry>;
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6365
|
+
/**
|
|
6366
|
+
* Map of every PECB icon name to its inline SVG string.
|
|
6367
|
+
*
|
|
6368
|
+
* These are **pre-registered automatically** by `IconRegistry`, so
|
|
6369
|
+
* `<pecb-icon name="...">` works out of the box — you do not need to register
|
|
6370
|
+
* them yourself. Exported (from `@pecb-ui/components`) only for advanced use
|
|
6371
|
+
* cases such as inspecting the available SVGs.
|
|
6372
|
+
*/
|
|
6373
|
+
declare const PECB_ICONS: Record<string, string>;
|
|
6374
|
+
|
|
6375
|
+
/**
|
|
6376
|
+
* Map of every PECB custom icon variant to its inline SVG string.
|
|
6377
|
+
*
|
|
6378
|
+
* These are **pre-registered automatically** by `IconRegistry` (alongside
|
|
6379
|
+
* `PECB_ICONS`), so custom icons resolve by name out of the box with no app
|
|
6380
|
+
* setup. Exported (from `@pecb-ui/components`) only for advanced use cases.
|
|
6381
|
+
*/
|
|
6382
|
+
declare const PECB_CUSTOM_ICONS: Record<string, string>;
|
|
6383
|
+
|
|
6384
|
+
export { AccordionItemComponent, AccordionSmallComponent, AddButtonComponent, AdminHeaderComponent, AdminHeaderFieldTemplateDirective, AffixComponent, AlertComponent, AnchorComponent, ApplicationStatusBarComponent, AuditorStatusComponent, AuthorDateTimeComponent, BackToTopComponent, BadgeComponent, BlurDirective, BottomSheetComponent, BreadcrumbsComponent, ButtonComponent, ButtonGroupComponent, ButtonGroupItemComponent, CancelUpdateButtonsComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CertificateUploadBarComponent, CheckDeleteIconComponent, CheckboxComponent, CheckboxDisplayComponent, CodeInputComponent, CodeSnippetComponent, ColorPaletteComponent, ConfirmationComponent, ContentTypeTagComponent, DEFAULT_LANGUAGES, DashboardGridComponent, DatepickerComponent, DividerComponent, DropdownComponent, EMPTY_STATE_MAX_BUTTONS, EditButtonComponent, EditCoverPhotoComponent, EmptyStateComponent, ExpandableRowTableComponent, FileUploadComponent, FilterColumnsComponent, FloatButtonComponent, FloatButtonItemComponent, FullscreenModalComponent, FullscreenModalContentDirective, FullscreenModalFooterDirective, FullscreenModalHeaderDirective, GeneralComponent, GridComponent, GridItemComponent, HeaderActionsComponent, HeaderComponent, HeaderDividerComponent, HeaderLanguageComponent, HeaderSearchComponent, HeaderUserComponent, HierarchicalTableComponent, HorizontalStepsComponent, IconComponent, IconRegistry, IconTagComponent, InformationBoxComponent, InputComponent, LanguageDropdownComponent, LinkButtonComponent, LoadingService, MediaComponent, MessageBubbleComponent, MessageItemComponent, MetricsCardComponent, MiniIconButtonComponent, NoResultsComponent, NoteSidebarItemComponent, NotesPanelComponent, NotificationService, NotificationStatusLinkComponent, PECB_COLOR_PALETTE, PECB_CUSTOM_ICONS, PECB_FONT_STYLES, PECB_ICONS, PECB_TYPE_SCALE, PaginationComponent, PecbComponentsModule, PriceMethodComponent, ProfileComponent, ProfileElementsCardComponent, ProfileGroupComponent, ProgressBarComponent, ProgressCircleComponent, ProjectLayoutComponent, QuantitySelectorComponent, QuestionTypeTagComponent, RadioComponent, RadioDisplayComponent, RatingNumberComponent, ReasonForReturnComponent, RequestSentByComponent, RequestStatusBarComponent, ResultPageComponent, RightModalComponent, RightModalContentDirective, RightModalFooterDirective, RightModalHeaderDirective, ShadowDirective, SidebarComponent, SkeletonComponent, SlidePointsComponent, SpacerComponent, SpinnerComponent, StandardsPdfCardComponent, StatisticsCardComponent, StatusComponent, StepperComponent, TabComponent, TableComponent, TagComponent, TestimonialComponent, TextFormFieldComponent, ThemeService, ToggleComponent, ToolbarBarComponent, TooltipComponent, TooltipDirective, TourComponent, TranscriptLineComponent, TypographyComponent, UserWithEmailComponent, VerifyChecklistComponent, VideoUploadBarComponent, VirtualTableComponent, addClass, announceToScreenReader, capitalize, closestElement, copyToClipboard, createAuthError, createAuthorizationError, createConfigError, createError, createNetworkError, createValidationError, disableBodyScroll, escapeHtml, formatCount, formatErrorForLog, formatErrorMessage, generateLinkedIds, generateUniqueId, getAriaCurrent, getButtonAriaAttributes, getComputedStyleValue, getDialogAriaAttributes, getFocusableElements, getInitials, getInputAriaAttributes, getOptionAriaAttributes, getProgressAriaAttributes, getScrollParent, getTabAriaAttributes, getVisuallyHiddenStyles, handleError, hasClass, isBlank, isBrowser, isElementVisible, isNotBlank, isPecbError, isRecoverableError, matchesSelector, pluralize, prefersHighContrast, prefersReducedMotion, registerErrorHandler, removeClass, scrollIntoView, slugify, stripHtml, toCamelCase, toKebabCase, toPascalCase, toSnakeCase, toggleClass, trapFocus, truncate, tryAsync, trySync, wrapError };
|
|
6385
|
+
export type { AccordionVariant, AddButtonVariant, AdminHeaderAction, AdminHeaderActionType, AdminHeaderBadgeVariant, AdminHeaderField, AdminHeaderFieldType, AdminHeaderMetadata, AdminHeaderMetadataType, AdminHeaderProfile, AffixPosition, AlertType, AlertVariant, Alignment, AnchorDirection, AnchorItem, AnchorLevel, AnimationTiming, AppStatusColor, AriaAttributes, AriaLive, AriaRole, AuditorStatusType, BadgeSize, BadgeStatus, BadgeVariant, BlurSize, BreadcrumbItem, BreadcrumbSeparator, Breakpoint, ButtonGroupIconMode, ButtonGroupItemPosition, ButtonIconStyle, ButtonSize, ButtonVariant, CalendarDay, Callback, CardElevation, CardRadius, CardRole, CheckDeleteType, CheckboxDisplayState, CheckboxLabelPosition, ClosableWithHooks, CodeInputDirection, CodeInputState, CodeSnippetTheme, CodeSnippetVariant, ColorPaletteGroup, ColorPaletteItem, ColorVariant, Colorable, ColumnOption, ComponentSize, ConfirmationIconType, ContentStyle, ContentTagDisplay, ContentTagType, CustomIconName, DashboardGridGap, DashboardGridLayout, DatepickerSize, Direction, Disableable, DividerType, DropdownOption, DropdownSize, EditButtonVariant, ElevationLevel, EmptyStateButton, EmptyStateIconTheme, ErrorCategory, ErrorHandler, ErrorOptions, ErrorSeverity, EventHandler, ExpandableRowColumn, ExpandableRowPageEvent, ExpandableRowProgressConfig, ExtendedColorVariant, FieldItem, FieldStyle, FileUploadEvent, FileUploadState, FileUploadVariant, FilterColumnsActiveTab, FilterColumnsApplyEvent, FilterField, FilterFieldType, FilterState, FloatButtonAction, FloatButtonPosition, Focusable, FormControlBase, GridAlign, GridColumns, GridGap, GridItemSpan, GridPadding, GridVerticalAlign, HeaderActionButton, HeaderLanguageOption, HeaderSearchCategory, HeaderSearchType, HierarchicalTableAction, HierarchicalTableColumn, HierarchicalTablePageEvent, IconColor, IconName, IconShape, IconSize, IconTagType, InformationBoxVariant, InputSize, InputType, LanguageDisplayMode, LanguageOption, LinkButtonType, Loadable, LoadingState, MediaGroup, MediaItem, MediaSize, MediaType, MenuItem, MessageBubbleType, MessageDirection, MessageItemStatus, MetricsCardBadgeStatus, MetricsCardIconBg, MetricsCardOrientation, MetricsCardType, MetricsCardVariation, MiniIconAction, NonNullableProps, NoteGroup, NoteItem, NoteSidebarPosition, NoteSidebarState, Notification, NotificationConfig, NotificationPosition, NotificationStatusType, NotificationType, OptionalProps, Orientation, OverlayComponent, PageChangeEvent, PaginationSize, PaginationState, PaginationVariant, PdfCardVariant, PecbError, PecbTableColumn, PecbTableColumnComponent, PecbTableColumnType, Position, ProfileBadge, ProfileGroupItem, ProfileGroupSize, ProfileIndicator, ProfileSize, ProfileType, ProgressBarSize, ProgressCircleSize, ProgressType, QuestionTagDisplay, QuestionTagType, QuizType, RadioDisplayState, RadioLabelPosition, RadioVariant, RadiusScale, RatingStyle, RequestStatusIconType, RequireProps, ResultPageAction, ResultPageIcon, RibbonColor, RightModalSize, SearchMode, SelectableItem, ShadowHardSize, ShadowSize, ShadowSoftSize, ShadowType, SidebarMenuItem, SidebarSection, Size, Sizeable, SkeletonShape, SkeletonSize, SkeletonType, SortState, SpacerSize, SpacingScale, StateVariant, StatisticsIconColor, StatusColor, StatusSize, StatusType, StatusVariant, StepItem, StepOrder, StepState, StepperDirection, StepperSize, StepperTailStyle, StepperType, TabItem, TabSize, TabStyle, TableAction, TableColumn, TableRowActionEvent, TableSelectionEvent, TableSize, TableSortEvent, TableStatusConfig, TableUserConfig, TableVariant, TagAction, TagStyle, Templatable, TestimonialData, TestimonialVariant, TextFormFieldType, ThemeConfig, ThemeMode, ThemeVariables, ToggleLabelPosition, ToggleSize, ToolbarButton, ToolbarTab, ToolbarVariant, TooltipPointerPosition, TooltipTheme, TourIndicatorType, TourPlacement, TourStep, TourType, TranscriptLineState, TreeNode, TypographyScaleEntry, TypographyStyleEntry, UploadedFile, Validatable, ValidationError, ValidationState, VerifyChecklistItem, VerifyItemStatus, VirtualTableColumn, VirtualTablePageEvent, VirtualTableProgressConfig };
|