@jablonowski/dsb-components 1.0.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.
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AccordionItemComponent {
4
+ title: string;
5
+ open: boolean;
6
+ disabled: boolean;
7
+ /** Internal event used by AccordionComponent to coordinate exclusive mode */
8
+ readonly toggled: EventEmitter<void>;
9
+ toggle(): void;
10
+ close(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "dsb-accordion-item", never, { "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { AfterContentInit, QueryList } from '@angular/core';
2
+ import { AccordionItemComponent } from './accordion-item.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AccordionComponent implements AfterContentInit {
5
+ /** When true only one item can be open at a time */
6
+ exclusive: boolean;
7
+ items: QueryList<AccordionItemComponent>;
8
+ ngAfterContentInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "dsb-accordion", never, { "exclusive": { "alias": "exclusive"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type AvatarVariant = 'circle' | 'rounded';
4
+ export declare class AvatarComponent {
5
+ src: string;
6
+ alt: string;
7
+ name: string;
8
+ size: AvatarSize;
9
+ shape: AvatarVariant;
10
+ get initials(): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "dsb-avatar", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; }, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface BreadcrumbItem {
3
+ label: string;
4
+ href?: string;
5
+ }
6
+ export declare class BreadcrumbsComponent {
7
+ items: BreadcrumbItem[];
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "dsb-breadcrumbs", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
4
+ export type ButtonSize = 'sm' | 'md' | 'lg';
5
+ export declare class ButtonComponent {
6
+ variant: ButtonVariant;
7
+ size: ButtonSize;
8
+ disabled: boolean;
9
+ loading: boolean;
10
+ fullWidth: boolean;
11
+ type: 'button' | 'submit' | 'reset';
12
+ onClick: EventEmitter<MouseEvent>;
13
+ get classes(): Record<string, boolean>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "dsb-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
16
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CheckboxComponent implements ControlValueAccessor {
5
+ private static idCounter;
6
+ label: string;
7
+ checked: boolean;
8
+ disabled: boolean;
9
+ hasError: boolean;
10
+ errorMessage: string;
11
+ hint: string;
12
+ checkboxId: string;
13
+ checkedChange: EventEmitter<boolean>;
14
+ onTouched: () => void;
15
+ private onChange;
16
+ onToggle(event: Event): void;
17
+ writeValue(val: boolean): void;
18
+ registerOnChange(fn: (v: boolean) => void): void;
19
+ registerOnTouched(fn: () => void): void;
20
+ setDisabledState(disabled: boolean): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "dsb-checkbox", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "checkboxId": { "alias": "checkboxId"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
23
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export interface DropdownOption {
5
+ value: string;
6
+ label: string;
7
+ disabled?: boolean;
8
+ }
9
+ export type DropdownSize = 'sm' | 'md' | 'lg';
10
+ export declare class DropdownComponent implements ControlValueAccessor {
11
+ private elRef;
12
+ private static idCounter;
13
+ options: DropdownOption[];
14
+ label: string;
15
+ placeholder: string;
16
+ size: DropdownSize;
17
+ disabled: boolean;
18
+ hasError: boolean;
19
+ errorMessage: string;
20
+ hint: string;
21
+ dropdownId: string;
22
+ valueChange: EventEmitter<string>;
23
+ value: string;
24
+ open: boolean;
25
+ onTouched: () => void;
26
+ private onChange;
27
+ constructor(elRef: ElementRef);
28
+ get selectedLabel(): string;
29
+ toggle(): void;
30
+ select(option: DropdownOption): void;
31
+ onDocumentClick(event: Event): void;
32
+ onEscape(): void;
33
+ writeValue(val: string): void;
34
+ registerOnChange(fn: (v: string) => void): void;
35
+ registerOnTouched(fn: () => void): void;
36
+ setDisabledState(disabled: boolean): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "dsb-dropdown", never, { "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "dropdownId": { "alias": "dropdownId"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
39
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface FooterLink {
3
+ label: string;
4
+ href: string;
5
+ }
6
+ export interface FooterColumn {
7
+ heading: string;
8
+ links: FooterLink[];
9
+ }
10
+ export declare class FooterComponent {
11
+ brandName: string;
12
+ logoSrc: string;
13
+ logoHref: string;
14
+ tagline: string;
15
+ columns: FooterColumn[];
16
+ copyright: string;
17
+ legalLinks: FooterLink[];
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "dsb-footer", never, { "brandName": { "alias": "brandName"; "required": false; }; "logoSrc": { "alias": "logoSrc"; "required": false; }; "logoHref": { "alias": "logoHref"; "required": false; }; "tagline": { "alias": "tagline"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "copyright": { "alias": "copyright"; "required": false; }; "legalLinks": { "alias": "legalLinks"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface NavItem {
3
+ label: string;
4
+ href: string;
5
+ active?: boolean;
6
+ }
7
+ export declare class HeaderComponent {
8
+ brandName: string;
9
+ logoSrc: string;
10
+ logoAlt: string;
11
+ logoHref: string;
12
+ navItems: NavItem[];
13
+ ctaLabel: string;
14
+ ctaHref: string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "dsb-header", never, { "brandName": { "alias": "brandName"; "required": false; }; "logoSrc": { "alias": "logoSrc"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; "logoHref": { "alias": "logoHref"; "required": false; }; "navItems": { "alias": "navItems"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "ctaHref": { "alias": "ctaHref"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export type InputSize = 'sm' | 'md' | 'lg';
5
+ export type InputType = 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url';
6
+ export declare class InputComponent implements ControlValueAccessor {
7
+ private static idCounter;
8
+ label: string;
9
+ type: InputType;
10
+ placeholder: string;
11
+ size: InputSize;
12
+ hasError: boolean;
13
+ errorMessage: string;
14
+ hint: string;
15
+ disabled: boolean;
16
+ inputId: string;
17
+ valueChange: EventEmitter<string>;
18
+ value: string;
19
+ onTouched: () => void;
20
+ private onChange;
21
+ onInput(event: Event): void;
22
+ writeValue(val: string): void;
23
+ registerOnChange(fn: (v: string) => void): void;
24
+ registerOnTouched(fn: () => void): void;
25
+ setDisabledState(disabled: boolean): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "dsb-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
28
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export type ListItemVariant = 'default' | 'info' | 'success' | 'warning' | 'error';
3
+ export declare class ListItemComponent {
4
+ label: string;
5
+ description: string;
6
+ meta: string;
7
+ variant: ListItemVariant;
8
+ indicator: boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListItemComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListItemComponent, "dsb-list-item", never, { "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "meta": { "alias": "meta"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; }, {}, never, ["[list-leading]", "*", "[list-trailing]"], true, never>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ListComponent {
3
+ divided: boolean;
4
+ bordered: boolean;
5
+ compact: boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "dsb-list", never, { "divided": { "alias": "divided"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
4
+ export declare class ModalComponent implements OnChanges {
5
+ open: boolean;
6
+ title: string;
7
+ size: ModalSize;
8
+ closeOnBackdrop: boolean;
9
+ openChange: EventEmitter<boolean>;
10
+ closed: EventEmitter<void>;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ close(): void;
13
+ onBackdropClick(event: MouseEvent): void;
14
+ onEscape(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "dsb-modal", never, { "open": { "alias": "open"; "required": false; }; "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; }; }, { "openChange": "openChange"; "closed": "closed"; }, never, ["[modal-title]", "*", "[modal-footer]"], true, never>;
17
+ }
@@ -0,0 +1,30 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export interface RadioOption {
5
+ value: string;
6
+ label: string;
7
+ hint?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export declare class RadioGroupComponent implements ControlValueAccessor {
11
+ private static idCounter;
12
+ options: RadioOption[];
13
+ legend: string;
14
+ disabled: boolean;
15
+ hasError: boolean;
16
+ errorMessage: string;
17
+ inline: boolean;
18
+ groupName: string;
19
+ valueChange: EventEmitter<string>;
20
+ value: string;
21
+ onTouched: () => void;
22
+ private onChange;
23
+ onSelect(val: string): void;
24
+ writeValue(val: string): void;
25
+ registerOnChange(fn: (v: string) => void): void;
26
+ registerOnTouched(fn: () => void): void;
27
+ setDisabledState(disabled: boolean): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "dsb-radio-group", never, { "options": { "alias": "options"; "required": false; }; "legend": { "alias": "legend"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
30
+ }
@@ -0,0 +1,17 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface CellContext {
4
+ $implicit: unknown;
5
+ row: Record<string, unknown>;
6
+ index: number;
7
+ }
8
+ export declare class ColumnDefDirective {
9
+ key: string;
10
+ header: string;
11
+ width: string;
12
+ align: 'left' | 'center' | 'right';
13
+ cellTemplate?: TemplateRef<CellContext>;
14
+ headerTemplate?: TemplateRef<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnDefDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnDefDirective, "dsb-column", never, { "key": { "alias": "key"; "required": true; }; "header": { "alias": "header"; "required": false; }; "width": { "alias": "width"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, ["cellTemplate", "headerTemplate"], never, true, never>;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
2
+ import { ColumnDefDirective } from './column-def.directive';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableComponent implements AfterContentInit {
5
+ rows: Record<string, unknown>[];
6
+ striped: boolean;
7
+ hoverable: boolean;
8
+ loading: boolean;
9
+ rowClickable: boolean;
10
+ emptyMessage: string;
11
+ rowClick: EventEmitter<Record<string, unknown>>;
12
+ columnDefs: QueryList<ColumnDefDirective>;
13
+ columns: ColumnDefDirective[];
14
+ ngAfterContentInit(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "dsb-table", never, { "rows": { "alias": "rows"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "hoverable": { "alias": "hoverable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "rowClickable": { "alias": "rowClickable"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "rowClick": "rowClick"; }, ["columnDefs"], never, true, never>;
17
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export type TagVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
3
+ export type TagSize = 'sm' | 'md';
4
+ export declare class TagComponent {
5
+ variant: TagVariant;
6
+ size: TagSize;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "dsb-tag", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }