@dnd-mapp/shared-ui 0.1.0 → 1.1.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.
@@ -1,8 +1,154 @@
1
1
  import * as i0 from '@angular/core';
2
+ import { TemplateRef, OnInit, Signal } from '@angular/core';
3
+ import * as _dnd_mapp_shared_ui from '@dnd-mapp/shared-ui';
4
+ import { ConnectedPosition } from '@angular/cdk/overlay';
5
+ import { ControlValueAccessor } from '@angular/forms';
2
6
 
3
- declare class SharedUi {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedUi, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<SharedUi, "dma-shared-ui", never, {}, {}, never, never, true, never>;
7
+ type AttributeInput<T> = T | '';
8
+
9
+ declare const ButtonColors: {
10
+ readonly PRIMARY: "primary";
11
+ readonly BASE: "base";
12
+ readonly DANGER: "danger";
13
+ };
14
+ type ButtonColor = (typeof ButtonColors)[keyof typeof ButtonColors];
15
+ declare const DEFAULT_BUTTON_COLOR: ButtonColor;
16
+ declare function buttonColorAttribute(value: AttributeInput<ButtonColor>): ButtonColor;
17
+
18
+ declare class ButtonComponent {
19
+ readonly color: i0.InputSignalWithTransform<_dnd_mapp_shared_ui.ButtonColor, AttributeInput<_dnd_mapp_shared_ui.ButtonColor>>;
20
+ protected readonly isBase: i0.Signal<boolean>;
21
+ protected readonly isPrimary: i0.Signal<boolean>;
22
+ protected readonly isDanger: i0.Signal<boolean>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[dma-button]", never, { "color": { "alias": "dma-button"; "required": false; "isSignal": true; }; }, {}, never, ["dma-leading-icon", "*"], true, never>;
25
+ }
26
+
27
+ declare class DropdownAnchorDirective {
28
+ private readonly overlay;
29
+ private readonly elementRef;
30
+ private readonly viewContainerRef;
31
+ private readonly destroyRef;
32
+ readonly dropdownContainerTemplateRef: i0.InputSignal<TemplateRef<unknown>>;
33
+ readonly positions: i0.InputSignal<ConnectedPosition[]>;
34
+ readonly toggleOnHover: i0.InputSignalWithTransform<boolean, unknown>;
35
+ readonly dropdownToggle: i0.OutputEmitterRef<boolean>;
36
+ private readonly hideScheduler;
37
+ private overlayRef;
38
+ constructor();
39
+ show(): void;
40
+ scheduleHide(shouldHide: boolean): void;
41
+ protected onClick(): void;
42
+ protected onMouseenter(): void;
43
+ protected onMouseleave(): void;
44
+ private toggle;
45
+ private hide;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownAnchorDirective, never>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownAnchorDirective, "[dmaDropdownAnchor]", ["dmaDropdownAnchor"], { "dropdownContainerTemplateRef": { "alias": "dmaDropdownAnchor"; "required": true; "isSignal": true; }; "positions": { "alias": "positions"; "required": false; "isSignal": true; }; "toggleOnHover": { "alias": "toggleOnHover"; "required": false; "isSignal": true; }; }, { "dropdownToggle": "dropdownToggle"; }, never, never, true, never>;
48
+ }
49
+
50
+ declare class DropdownContainerComponent {
51
+ readonly hover: i0.OutputEmitterRef<boolean>;
52
+ protected onMouseenter(): void;
53
+ protected onMouseleave(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContainerComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownContainerComponent, "dma-dropdown-container", never, {}, { "hover": "hover"; }, never, ["*"], true, never>;
56
+ }
57
+
58
+ declare const DEFAULT_DROPDOWN_POSITIONS: ConnectedPosition[];
59
+
60
+ type NgOnChange<T> = (value: T) => void;
61
+ type NgOnTouched = () => void;
62
+
63
+ declare class InputComponent implements ControlValueAccessor {
64
+ readonly inputId: i0.InputSignal<string>;
65
+ readonly label: i0.InputSignal<string>;
66
+ readonly placeholder: i0.InputSignal<string>;
67
+ readonly readonly: i0.InputSignalWithTransform<boolean, unknown>;
68
+ readonly value: i0.ModelSignal<string>;
69
+ readonly disabled: i0.ModelSignal<boolean>;
70
+ private readonly inputSubject;
71
+ private ngOnTouched;
72
+ private ngOnChange;
73
+ constructor();
74
+ writeValue(value: string): void;
75
+ registerOnChange(fn: NgOnChange<string>): void;
76
+ registerOnTouched(fn: NgOnTouched): void;
77
+ setDisabledState(isDisabled: boolean): void;
78
+ protected onInput(value: string): void;
79
+ protected onFocus(): void;
80
+ private onChange;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "dma-input", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; }, never, never, true, never>;
83
+ }
84
+
85
+ declare class CircleUserIcon {
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<CircleUserIcon, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<CircleUserIcon, "dma-icon[dma-circle-user-icon]", never, {}, {}, never, never, true, never>;
88
+ }
89
+
90
+ declare class ActiveMarkerComponent {
91
+ readonly label: i0.InputSignal<string>;
92
+ readonly active: i0.InputSignalWithTransform<boolean, unknown>;
93
+ protected readonly inactive: i0.Signal<boolean>;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveMarkerComponent, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActiveMarkerComponent, "dma-active-marker", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
96
+ }
97
+
98
+ declare class AppTopBarSectionComponent {
99
+ readonly position: i0.InputSignalWithTransform<_dnd_mapp_shared_ui.SectionPosition, AttributeInput<_dnd_mapp_shared_ui.SectionPosition>>;
100
+ protected readonly positionedAtStart: i0.Signal<boolean>;
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTopBarSectionComponent, never>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTopBarSectionComponent, "dma-app-top-bar-section", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
103
+ }
104
+
105
+ declare class AppTopBarComponent {
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTopBarComponent, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppTopBarComponent, "dma-app-top-bar", never, {}, {}, never, ["dma-app-top-bar-section"], true, never>;
108
+ }
109
+
110
+ declare const SectionPositions: {
111
+ readonly START: "start";
112
+ readonly END: "end";
113
+ };
114
+ type SectionPosition = (typeof SectionPositions)[keyof typeof SectionPositions];
115
+ declare const DEFAULT_SECTION_POSITION: SectionPosition;
116
+ declare function sectionPositionAttribute(value: AttributeInput<SectionPosition>): SectionPosition;
117
+
118
+ declare class NavbarBrandComponent {
119
+ readonly imgSrc: i0.InputSignal<string>;
120
+ readonly brandName: i0.InputSignal<string>;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavbarBrandComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarBrandComponent, "dma-navbar-brand", never, { "imgSrc": { "alias": "imgSrc"; "required": true; "isSignal": true; }; "brandName": { "alias": "brandName"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
123
+ }
124
+
125
+ declare class NavbarLinkComponent implements OnInit {
126
+ private readonly router;
127
+ private readonly destroyRef;
128
+ readonly label: i0.InputSignal<string>;
129
+ readonly route: i0.InputSignal<string>;
130
+ protected isActive: Signal<boolean>;
131
+ ngOnInit(): void;
132
+ protected onClick(): void;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavbarLinkComponent, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarLinkComponent, "dma-navbar-link", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "route": { "alias": "route"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
135
+ }
136
+
137
+ declare class NavbarMenuComponent {
138
+ readonly toggleOnHover: i0.InputSignalWithTransform<boolean, unknown>;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavbarMenuComponent, never>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarMenuComponent, "dma-navbar-menu", never, { "toggleOnHover": { "alias": "toggleOnHover"; "required": false; "isSignal": true; }; }, {}, never, ["dropdown-trigger", "dropdown-menu"], true, never>;
141
+ }
142
+
143
+ declare class NavbarComponent {
144
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavbarComponent, never>;
145
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarComponent, "nav[dma-navbar]", never, {}, {}, never, ["*"], true, never>;
146
+ }
147
+
148
+ declare class VerticalRuleComponent {
149
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerticalRuleComponent, never>;
150
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerticalRuleComponent, "dma-vr", never, {}, {}, never, never, true, never>;
6
151
  }
7
152
 
8
- export { SharedUi };
153
+ export { ActiveMarkerComponent, AppTopBarComponent, AppTopBarSectionComponent, ButtonColors, ButtonComponent, CircleUserIcon, DEFAULT_BUTTON_COLOR, DEFAULT_DROPDOWN_POSITIONS, DEFAULT_SECTION_POSITION, DropdownAnchorDirective, DropdownContainerComponent, InputComponent, NavbarBrandComponent, NavbarComponent, NavbarLinkComponent, NavbarMenuComponent, SectionPositions, VerticalRuleComponent, buttonColorAttribute, sectionPositionAttribute };
154
+ export type { ButtonColor, SectionPosition };