@goat-bravos/intern-hub-layout 4.0.0 → 4.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goat-bravos/intern-hub-layout",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Angular library for intern hub layout components",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -27,9 +27,6 @@
27
27
  "type": "git",
28
28
  "url": "git+https://github.com/FPT-IS-Intern/Intern-Hub-FE-Layout.git"
29
29
  },
30
- "dependencies": {
31
- "tslib": "^2.3.0"
32
- },
33
30
  "module": "fesm2022/goat-bravos-intern-hub-layout.mjs",
34
31
  "typings": "types/goat-bravos-intern-hub-layout.d.ts",
35
32
  "exports": {
@@ -41,5 +38,8 @@
41
38
  "default": "./fesm2022/goat-bravos-intern-hub-layout.mjs"
42
39
  }
43
40
  },
44
- "sideEffects": false
41
+ "sideEffects": false,
42
+ "dependencies": {
43
+ "tslib": "^2.3.0"
44
+ }
45
45
  }
@@ -50,7 +50,6 @@ interface HeaderData {
50
50
  dropdownIcon?: IconData | string;
51
51
  dropdownIconColor?: string;
52
52
  logo?: string;
53
- minWidth?: string;
54
53
  }
55
54
  declare class HeaderComponent {
56
55
  data: HeaderData;
@@ -67,17 +66,24 @@ interface SidebarItem {
67
66
  content: string;
68
67
  url?: string;
69
68
  colorIconLeft?: string;
69
+ colorIconLeftExpanded?: string;
70
70
  colorIconLeftHover?: string;
71
71
  colorIconRight?: string;
72
+ colorIconRightExpanded?: string;
72
73
  colorIconRightHover?: string;
73
74
  colorContent?: string;
75
+ colorContentExpanded?: string;
74
76
  colorContentHover?: string;
75
77
  backgroundColor?: string;
78
+ backgroundColorExpanded?: string;
76
79
  backgroundColorHover?: string;
80
+ backgroundColorHoverExpanded?: string;
77
81
  borderRadius?: string;
78
82
  borderRadiusHover?: string;
79
83
  width?: string;
80
84
  height?: string;
85
+ children?: SidebarItem[];
86
+ disabled?: boolean;
81
87
  }
82
88
  interface SidebarData {
83
89
  menuItems: SidebarItem[];
@@ -94,6 +100,26 @@ interface SidebarData {
94
100
  toggleButtonHeight?: string;
95
101
  closeButtonMarginRight?: string;
96
102
  closeButtonMarginLeft?: string;
103
+ defaultWidth?: string;
104
+ defaultHeight?: string;
105
+ defaultBorderRadius?: string;
106
+ defaultColorIconLeft?: string;
107
+ defaultColorContent?: string;
108
+ defaultBackgroundColor?: string;
109
+ defaultColorIconLeftHover?: string;
110
+ defaultColorContentHover?: string;
111
+ defaultBackgroundColorHover?: string;
112
+ activeColorIconLeft?: string;
113
+ activeColorContent?: string;
114
+ activeBackgroundColor?: string;
115
+ disabledColorIconLeft?: string;
116
+ disabledColorContent?: string;
117
+ disabledBackgroundColor?: string;
118
+ defaultColorIconLeftExpanded?: string;
119
+ defaultColorIconRightExpanded?: string;
120
+ defaultColorContentExpanded?: string;
121
+ defaultBackgroundColorExpanded?: string;
122
+ defaultBackgroundColorHoverExpanded?: string;
97
123
  }
98
124
  declare class SidebarComponent {
99
125
  data: SidebarData;
@@ -105,7 +131,12 @@ declare class SidebarComponent {
105
131
  sidebarToggled: EventEmitter<boolean>;
106
132
  toggleButtonIconData?: IconData[];
107
133
  closeButtonIconData?: IconData[];
134
+ expandedItems: Set<SidebarItem>;
135
+ activeItem: SidebarItem | null;
108
136
  toggleSidebar(): void;
137
+ toggleSubMenu(item: SidebarItem, event: Event): void;
138
+ isItemExpanded(item: SidebarItem): boolean;
139
+ getRightIcon(item: SidebarItem): string | IconData | undefined;
109
140
  onMenuItemClick(item: SidebarItem, event: Event): void;
110
141
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
111
142
  static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "app-sidebar", never, { "data": { "alias": "data"; "required": false; }; "sidebarWidthCollapse": { "alias": "sidebarWidthCollapse"; "required": false; }; "sidebarWidthExpand": { "alias": "sidebarWidthExpand"; "required": false; }; "isSidebarExpanded": { "alias": "isSidebarExpanded"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "toggleButtonIconData": { "alias": "toggleButtonIconData"; "required": false; }; "closeButtonIconData": { "alias": "closeButtonIconData"; "required": false; }; }, { "sidebarToggled": "sidebarToggled"; }, never, never, true, never>;
@@ -114,6 +145,7 @@ declare class SidebarComponent {
114
145
  declare class FunctionalLabelComponent {
115
146
  iconLeft?: IconData | string;
116
147
  iconRight?: IconData | string;
148
+ rightIconTitle?: string;
117
149
  colorIconLeft?: string;
118
150
  colorIconRight?: string;
119
151
  widthIconLeft?: string;
@@ -125,6 +157,12 @@ declare class FunctionalLabelComponent {
125
157
  colorContentHover?: string;
126
158
  backgroundColorHover?: string;
127
159
  borderRadiusHover?: string;
160
+ isActive: boolean;
161
+ activeBackgroundColor?: string;
162
+ activeColorContent?: string;
163
+ activeColorIconLeft?: string;
164
+ activeColorIconRight?: string;
165
+ expandedHoverBackgroundColor?: string;
128
166
  content?: string;
129
167
  fontSizeContent?: string;
130
168
  colorContent?: string;
@@ -134,19 +172,25 @@ declare class FunctionalLabelComponent {
134
172
  borderRadius?: string;
135
173
  width?: string;
136
174
  height?: string;
175
+ disabled: boolean;
176
+ disabledColorIconLeft?: string;
177
+ disabledColorContent?: string;
178
+ disabledBackgroundColor?: string;
137
179
  routerLink?: string;
138
180
  isSidebarExpanded: boolean;
139
181
  clicked: EventEmitter<Event>;
182
+ rightIconClicked: EventEmitter<Event>;
140
183
  get currentBackgroundColor(): string | undefined;
141
184
  get currentBorderRadius(): string | undefined;
142
- get currentColorContent(): string | undefined;
185
+ get currentColorContent(): string;
143
186
  get hasIconLeft(): boolean;
144
187
  get hasIconRight(): boolean;
145
188
  get iconLeftData(): IconData | undefined;
146
189
  get iconRightData(): IconData | undefined;
147
190
  handleClick(event: Event): void;
191
+ handleRightIconClick(event: Event): void;
148
192
  static ɵfac: i0.ɵɵFactoryDeclaration<FunctionalLabelComponent, never>;
149
- static ɵcmp: i0.ɵɵComponentDeclaration<FunctionalLabelComponent, "app-functional-label", never, { "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "colorIconLeft": { "alias": "colorIconLeft"; "required": false; }; "colorIconRight": { "alias": "colorIconRight"; "required": false; }; "widthIconLeft": { "alias": "widthIconLeft"; "required": false; }; "heightIconLeft": { "alias": "heightIconLeft"; "required": false; }; "widthIconRight": { "alias": "widthIconRight"; "required": false; }; "heightIconRight": { "alias": "heightIconRight"; "required": false; }; "colorIconLeftHover": { "alias": "colorIconLeftHover"; "required": false; }; "colorIconRightHover": { "alias": "colorIconRightHover"; "required": false; }; "colorContentHover": { "alias": "colorContentHover"; "required": false; }; "backgroundColorHover": { "alias": "backgroundColorHover"; "required": false; }; "borderRadiusHover": { "alias": "borderRadiusHover"; "required": false; }; "content": { "alias": "content"; "required": false; }; "fontSizeContent": { "alias": "fontSizeContent"; "required": false; }; "colorContent": { "alias": "colorContent"; "required": false; }; "widthContent": { "alias": "widthContent"; "required": false; }; "heightContent": { "alias": "heightContent"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "isSidebarExpanded": { "alias": "isSidebarExpanded"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
193
+ static ɵcmp: i0.ɵɵComponentDeclaration<FunctionalLabelComponent, "app-functional-label", never, { "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "rightIconTitle": { "alias": "rightIconTitle"; "required": false; }; "colorIconLeft": { "alias": "colorIconLeft"; "required": false; }; "colorIconRight": { "alias": "colorIconRight"; "required": false; }; "widthIconLeft": { "alias": "widthIconLeft"; "required": false; }; "heightIconLeft": { "alias": "heightIconLeft"; "required": false; }; "widthIconRight": { "alias": "widthIconRight"; "required": false; }; "heightIconRight": { "alias": "heightIconRight"; "required": false; }; "colorIconLeftHover": { "alias": "colorIconLeftHover"; "required": false; }; "colorIconRightHover": { "alias": "colorIconRightHover"; "required": false; }; "colorContentHover": { "alias": "colorContentHover"; "required": false; }; "backgroundColorHover": { "alias": "backgroundColorHover"; "required": false; }; "borderRadiusHover": { "alias": "borderRadiusHover"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "activeBackgroundColor": { "alias": "activeBackgroundColor"; "required": false; }; "activeColorContent": { "alias": "activeColorContent"; "required": false; }; "activeColorIconLeft": { "alias": "activeColorIconLeft"; "required": false; }; "activeColorIconRight": { "alias": "activeColorIconRight"; "required": false; }; "expandedHoverBackgroundColor": { "alias": "expandedHoverBackgroundColor"; "required": false; }; "content": { "alias": "content"; "required": false; }; "fontSizeContent": { "alias": "fontSizeContent"; "required": false; }; "colorContent": { "alias": "colorContent"; "required": false; }; "widthContent": { "alias": "widthContent"; "required": false; }; "heightContent": { "alias": "heightContent"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disabledColorIconLeft": { "alias": "disabledColorIconLeft"; "required": false; }; "disabledColorContent": { "alias": "disabledColorContent"; "required": false; }; "disabledBackgroundColor": { "alias": "disabledBackgroundColor"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "isSidebarExpanded": { "alias": "isSidebarExpanded"; "required": false; }; }, { "clicked": "clicked"; "rightIconClicked": "rightIconClicked"; }, never, never, true, never>;
150
194
  }
151
195
 
152
196
  interface ButtonContainerInterface {
@@ -171,35 +215,48 @@ interface ButtonSizeConfig {
171
215
  }
172
216
  declare const BUTTON_SIZE_MAP: Record<ButtonSize, ButtonSizeConfig>;
173
217
 
218
+ interface ButtonContainerData {
219
+ size?: ButtonSize | '';
220
+ content?: string;
221
+ fontSize?: string;
222
+ leftIcon?: string;
223
+ leftIconData?: IconData[];
224
+ rightIcon?: string;
225
+ rightIconData?: IconData[];
226
+ color?: string;
227
+ backgroundColor?: string;
228
+ border?: string;
229
+ borderRadius: '8px';
230
+ width?: string;
231
+ height: '36px';
232
+ padding?: string;
233
+ marginLeft?: string;
234
+ marginRight?: string;
235
+ }
174
236
  declare class ButtonContainerComponent {
237
+ buttonData?: ButtonContainerData;
175
238
  size: ButtonSize | '';
176
- get sizeStyle(): _goat_bravos_intern_hub_layout.ButtonSizeConfig | {
177
- minWidth: string;
178
- minHeight: string;
179
- fontSize: string;
180
- };
181
239
  content?: string;
182
240
  fontSize?: string;
183
241
  leftIcon?: string;
184
242
  leftIconData?: IconData[];
185
243
  rightIcon?: string;
186
244
  rightIconData?: IconData[];
187
- bgDefault: string;
188
- bgHover: string;
189
- bgDisabled: string;
190
- colorDefault: string;
191
- colorHover: string;
192
- colorDisabled: string;
245
+ color?: string;
246
+ backgroundColor?: string;
193
247
  border?: string;
194
248
  borderRadius: string;
195
249
  width?: string;
196
250
  height: string;
197
251
  padding?: string;
198
- disabled: boolean;
199
- buttonClick: EventEmitter<void>;
200
- handleClick(): void;
252
+ marginLeft?: string;
253
+ marginRight?: string;
254
+ borderColor?: string;
255
+ buttonClick: EventEmitter<any>;
256
+ get sizeStyle(): _goat_bravos_intern_hub_layout.ButtonSizeConfig;
257
+ handleClick(): any;
201
258
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonContainerComponent, never>;
202
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonContainerComponent, "app-button-container", never, { "size": { "alias": "size"; "required": false; }; "content": { "alias": "content"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "leftIconData": { "alias": "leftIconData"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "rightIconData": { "alias": "rightIconData"; "required": false; }; "bgDefault": { "alias": "bgDefault"; "required": false; }; "bgHover": { "alias": "bgHover"; "required": false; }; "bgDisabled": { "alias": "bgDisabled"; "required": false; }; "colorDefault": { "alias": "colorDefault"; "required": false; }; "colorHover": { "alias": "colorHover"; "required": false; }; "colorDisabled": { "alias": "colorDisabled"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
259
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonContainerComponent, "app-button-container", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "size": { "alias": "size"; "required": false; }; "content": { "alias": "content"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "leftIconData": { "alias": "leftIconData"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "rightIconData": { "alias": "rightIconData"; "required": false; }; "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
203
260
  }
204
261
 
205
262
  declare class LabelButtonComponent {
@@ -238,6 +295,8 @@ declare class InputTextComponent {
238
295
  fontWeightLabel: string;
239
296
  colorLabel: string;
240
297
  backgroundColor: string;
298
+ borderColor?: string;
299
+ borderColorHover?: string;
241
300
  valueChange: EventEmitter<string>;
242
301
  iconClick: EventEmitter<void>;
243
302
  private _value;
@@ -248,7 +307,7 @@ declare class InputTextComponent {
248
307
  get limit(): string;
249
308
  onInput(event: Event): void;
250
309
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
251
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "app-input-text", never, { "headerInput": { "alias": "headerInput"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showLimit": { "alias": "showLimit"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "widthIcon": { "alias": "widthIcon"; "required": false; }; "heightIcon": { "alias": "heightIcon"; "required": false; }; "typeInput": { "alias": "typeInput"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fontSizeContent": { "alias": "fontSizeContent"; "required": false; }; "fontWeightContent": { "alias": "fontWeightContent"; "required": false; }; "colorContent": { "alias": "colorContent"; "required": false; }; "fontSizeLabel": { "alias": "fontSizeLabel"; "required": false; }; "fontWeightLabel": { "alias": "fontWeightLabel"; "required": false; }; "colorLabel": { "alias": "colorLabel"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "iconClick": "iconClick"; }, never, never, true, never>;
310
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "app-input-text", never, { "headerInput": { "alias": "headerInput"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showLimit": { "alias": "showLimit"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "widthIcon": { "alias": "widthIcon"; "required": false; }; "heightIcon": { "alias": "heightIcon"; "required": false; }; "typeInput": { "alias": "typeInput"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "placeholderColor": { "alias": "placeholderColor"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fontSizeContent": { "alias": "fontSizeContent"; "required": false; }; "fontWeightContent": { "alias": "fontWeightContent"; "required": false; }; "colorContent": { "alias": "colorContent"; "required": false; }; "fontSizeLabel": { "alias": "fontSizeLabel"; "required": false; }; "fontWeightLabel": { "alias": "fontWeightLabel"; "required": false; }; "colorLabel": { "alias": "colorLabel"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderColorHover": { "alias": "borderColorHover"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "iconClick": "iconClick"; }, never, never, true, never>;
252
311
  }
253
312
 
254
313
  declare class InputStepperComponent {
@@ -371,10 +430,11 @@ declare class ModalComponent {
371
430
  minHeight: string;
372
431
  isOpen: boolean;
373
432
  theme: 'default' | 'white';
374
- closeModal: EventEmitter<void>;
433
+ close: EventEmitter<void>;
434
+ onOverlayClick(event: Event): void;
375
435
  onCloseClick(): void;
376
436
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
377
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "closeModal": "closeModal"; }, never, ["[modal-body]", "[modal-footer]"], true, never>;
437
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "app-modal", never, { "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "close": "close"; }, never, ["[modal-body]", "[modal-footer]"], true, never>;
378
438
  }
379
439
 
380
440
  interface AvatarUploadedFile {
@@ -515,4 +575,4 @@ declare class DatePickerComponent implements OnInit, ControlValueAccessor {
515
575
  }
516
576
 
517
577
  export { ApprovalListComponent, ApprovalListItemComponent, AvatarUploadButtonComponent, BUTTON_SIZE_MAP, ButtonContainerComponent, DatePickerComponent, FileUploadDropzoneComponent, FunctionalLabelComponent, HeaderComponent, IconComponent, InputCalendarComponent, InputStepperComponent, InputTextComponent, LabelButtonComponent, ModalComponent, PopUpConfirmComponent, SidebarComponent, TableBodyComponent, TableHeaderComponent };
518
- export type { ApprovalListItemInterface, AvatarUploadedFile, ButtonContainerInterface, ButtonSize, ButtonSizeConfig, ColumnConfig, DatePickerMode, DatePickerValue, HeaderAction, HeaderData, IconData, RangePickerMode, SidebarData, SidebarItem, UploadedFile };
578
+ export type { ApprovalListItemInterface, AvatarUploadedFile, ButtonContainerData, ButtonContainerInterface, ButtonSize, ButtonSizeConfig, ColumnConfig, DatePickerMode, DatePickerValue, HeaderAction, HeaderData, IconData, RangePickerMode, SidebarData, SidebarItem, UploadedFile };