@ti-tecnologico-de-monterrey-oficial/ds-ng 1.5.1019-c → 1.5.1019-e
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/assets/svg/neutral_fill.svg +1 -0
- package/assets/svg/primary_fill.svg +1 -0
- package/fesm2022/ti-tecnologico-de-monterrey-oficial-ds-ng.mjs +1429 -1227
- package/fesm2022/ti-tecnologico-de-monterrey-oficial-ds-ng.mjs.map +1 -1
- package/lib/components/bmb-input/bmb-input-validator/bmb-input-validator.component.d.ts +1 -1
- package/lib/components/bmb-modal/bmb-modal.interface.d.ts +16 -0
- package/lib/components/bmb-modal/bmb-native-modal.component.d.ts +33 -0
- package/lib/components/bmb-portal/bmb-portal.component.d.ts +7 -1
- package/lib/components/bmb-simple-header/bmb-simple-header.component.d.ts +2 -1
- package/lib/components/bmb-tables/bmb-tables.component.d.ts +6 -3
- package/lib/components/bmb-tables/bmb-tables.interface.d.ts +3 -0
- package/lib/services/native-modal.service.d.ts +18 -0
- package/lib/services/notification.service.d.ts +7 -2
- package/lib/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
|
@@ -7,7 +7,7 @@ export type IBmbInputValType = 'radio' | 'checkbox' | 'email' | 'phone' | 'switc
|
|
|
7
7
|
export declare class BmbInputValidatorComponent implements OnInit {
|
|
8
8
|
private cdr;
|
|
9
9
|
inputId: import("@angular/core").InputSignal<string>;
|
|
10
|
-
type: import("@angular/core").InputSignal<
|
|
10
|
+
type: import("@angular/core").InputSignal<IBmbInputType | IBmbInputValType>;
|
|
11
11
|
appearance: import("@angular/core").InputSignal<string>;
|
|
12
12
|
label: import("@angular/core").InputSignal<string>;
|
|
13
13
|
labelPosition: import("@angular/core").InputSignal<IBbmSidePosition | null | undefined>;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { IButtonAppearance } from '../../types';
|
|
2
3
|
export type IBmbModalSize = 'small' | 'medium' | 'large';
|
|
3
4
|
export type IBmbModalType = 'informative' | 'action' | 'alert';
|
|
5
|
+
export type IBmbNativeModalSize = IBmbModalSize | 'x-small' | 'x-large';
|
|
4
6
|
export type IBmbModalAlertStyle = 'warning' | 'neutral' | 'primary' | 'event' | 'success' | 'error';
|
|
7
|
+
export interface IBmbActionButton {
|
|
8
|
+
buttonName: string;
|
|
9
|
+
appearance?: IButtonAppearance;
|
|
10
|
+
label: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
action: () => void;
|
|
13
|
+
}
|
|
5
14
|
export interface ModalDataConfig {
|
|
6
15
|
title?: string;
|
|
7
16
|
subtitle?: string;
|
|
@@ -19,3 +28,10 @@ export interface ModalDataConfig {
|
|
|
19
28
|
secondaryAction?: () => void;
|
|
20
29
|
closeAction?: () => void;
|
|
21
30
|
}
|
|
31
|
+
export interface IBmbNativeModal extends Omit<ModalDataConfig, 'primaryAction' | 'secondaryAction' | 'closeAction' | 'extendButtons' | 'alertStyle' | 'size' | 'type'> {
|
|
32
|
+
modalId?: string;
|
|
33
|
+
size?: IBmbNativeModalSize;
|
|
34
|
+
iconStyle?: IBmbModalAlertStyle;
|
|
35
|
+
actions?: IBmbActionButton[];
|
|
36
|
+
closeModalClicked?: (event: unknown) => void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { IBmbModalAlertStyle, IBmbNativeModalSize, IBmbActionButton } from './bmb-modal.interface';
|
|
3
|
+
import { BmbNativeModalService } from '../../services/native-modal.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BmbNativeModalComponent {
|
|
6
|
+
private modalService;
|
|
7
|
+
title: import("@angular/core").InputSignal<string>;
|
|
8
|
+
subtitle: import("@angular/core").InputSignal<string>;
|
|
9
|
+
content: import("@angular/core").InputSignal<string | TemplateRef<any>>;
|
|
10
|
+
actions: import("@angular/core").InputSignal<IBmbActionButton[]>;
|
|
11
|
+
alertIcon: import("@angular/core").InputSignal<IBmbModalAlertStyle | undefined>;
|
|
12
|
+
modalId: import("@angular/core").InputSignal<string>;
|
|
13
|
+
size: import("@angular/core").InputSignal<IBmbNativeModalSize>;
|
|
14
|
+
iconStyle: import("@angular/core").InputSignal<IBmbModalAlertStyle | undefined>;
|
|
15
|
+
actionsClicked: import("@angular/core").OutputEmitterRef<{
|
|
16
|
+
buttonName: string;
|
|
17
|
+
event: MouseEvent;
|
|
18
|
+
}>;
|
|
19
|
+
closeModalClicked: import("@angular/core").OutputEmitterRef<{
|
|
20
|
+
modalId: string;
|
|
21
|
+
event: MouseEvent;
|
|
22
|
+
}>;
|
|
23
|
+
constructor(modalService: BmbNativeModalService);
|
|
24
|
+
svgUrl: string;
|
|
25
|
+
modalIcon: import("@angular/core").Signal<string>;
|
|
26
|
+
getContainerClass(): string;
|
|
27
|
+
isTemplateRef(): boolean;
|
|
28
|
+
getContent(): any;
|
|
29
|
+
handleButtonClick(buttonName: string, event: MouseEvent): void;
|
|
30
|
+
handleCloseModal(event: MouseEvent): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BmbNativeModalComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BmbNativeModalComponent, "bmb-native-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "alertIcon": { "alias": "alertIcon"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconStyle": { "alias": "iconStyle"; "required": false; "isSignal": true; }; }, { "actionsClicked": "actionsClicked"; "closeModalClicked": "closeModalClicked"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { BmbNotificationService } from '../../services/notification.service';
|
|
2
2
|
import { INotification } from '../bmb-push-notification/types';
|
|
3
|
+
import { BmbNativeModalService } from '../../services/native-modal.service';
|
|
4
|
+
import { IBmbNativeModal } from '../bmb-modal/bmb-modal.interface';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class BmbPortalComponent {
|
|
5
7
|
private notificationSignal;
|
|
6
|
-
|
|
8
|
+
private modalService;
|
|
9
|
+
constructor(notificationSignal: BmbNotificationService, modalService: BmbNativeModalService);
|
|
10
|
+
modalSignal: import("@angular/core").Signal<IBmbNativeModal[]>;
|
|
7
11
|
getNotifications(): INotification[];
|
|
8
12
|
closeNotification(notification: INotification): void;
|
|
9
13
|
getNotificationPosition(): import("../../services/notification.service").NotificationPositionX | undefined;
|
|
14
|
+
handleCloseModal(id: string): void;
|
|
15
|
+
handleModalClick(item: IBmbNativeModal, event: unknown): void;
|
|
10
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BmbPortalComponent, never>;
|
|
11
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<BmbPortalComponent, "bmb-portal", never, {}, {}, never, never, true, never>;
|
|
12
18
|
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class BmbSimpleHeaderComponent {
|
|
3
3
|
title: import("@angular/core").InputSignal<string>;
|
|
4
4
|
icon: import("@angular/core").InputSignal<string>;
|
|
5
|
+
iconAlternativeColor: import("@angular/core").InputSignal<boolean>;
|
|
5
6
|
onIconClick: import("@angular/core").OutputEmitterRef<any>;
|
|
6
7
|
handleClick(event: any): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BmbSimpleHeaderComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BmbSimpleHeaderComponent, "bmb-simple-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, { "onIconClick": "onIconClick"; }, never, never, true, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BmbSimpleHeaderComponent, "bmb-simple-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconAlternativeColor": { "alias": "iconAlternativeColor"; "required": false; "isSignal": true; }; }, { "onIconClick": "onIconClick"; }, never, never, true, never>;
|
|
9
10
|
}
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, OnInit, EventEmitter, ElementRef, TemplateRef, Renderer2
|
|
|
2
2
|
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
3
3
|
import { MatTableDataSource } from '@angular/material/table';
|
|
4
4
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
5
|
-
import { TableColum, TableConfig } from './bmb-tables.interface';
|
|
5
|
+
import { IBmbFiltersPosition, TableColum, TableConfig } from './bmb-tables.interface';
|
|
6
6
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
7
7
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -29,7 +29,6 @@ export declare class BmbTablesComponent implements AfterViewInit, OnInit, OnChan
|
|
|
29
29
|
resizableMousemove?: () => void;
|
|
30
30
|
resizableMouseup?: () => void;
|
|
31
31
|
searchControl: FormControl<string | null>;
|
|
32
|
-
filtersVisible: boolean;
|
|
33
32
|
showSearch: import("@angular/core").InputSignal<boolean>;
|
|
34
33
|
showFilters: import("@angular/core").InputSignal<boolean>;
|
|
35
34
|
pageSize: import("@angular/core").InputSignal<number | undefined>;
|
|
@@ -46,6 +45,8 @@ export declare class BmbTablesComponent implements AfterViewInit, OnInit, OnChan
|
|
|
46
45
|
clearSelection: import("@angular/core").ModelSignal<boolean>;
|
|
47
46
|
serverSide: import("@angular/core").InputSignal<boolean>;
|
|
48
47
|
currentPage: import("@angular/core").ModelSignal<number>;
|
|
48
|
+
filtersVisible: import("@angular/core").ModelSignal<boolean>;
|
|
49
|
+
filtersPosition: import("@angular/core").InputSignal<IBmbFiltersPosition>;
|
|
49
50
|
select: EventEmitter<any>;
|
|
50
51
|
clickedRow: EventEmitter<any>;
|
|
51
52
|
searchChange: EventEmitter<string>;
|
|
@@ -60,6 +61,7 @@ export declare class BmbTablesComponent implements AfterViewInit, OnInit, OnChan
|
|
|
60
61
|
headerCellRef: ElementRef;
|
|
61
62
|
cellRef: ElementRef;
|
|
62
63
|
onResize(event: any): void;
|
|
64
|
+
parsedFiltersColumns: import("@angular/core").Signal<TableColum[]>;
|
|
63
65
|
constructor(renderer: Renderer2, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
64
66
|
ngOnChanges(changes: SimpleChanges): void;
|
|
65
67
|
ngOnInit(): void;
|
|
@@ -96,6 +98,7 @@ export declare class BmbTablesComponent implements AfterViewInit, OnInit, OnChan
|
|
|
96
98
|
goToPreviousPage(): void;
|
|
97
99
|
goToNextPage(): void;
|
|
98
100
|
goToLastPage(): void;
|
|
101
|
+
getTableClasses(): string[];
|
|
99
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<BmbTablesComponent, never>;
|
|
100
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BmbTablesComponent, "bmb-table", never, { "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "actionTemplate": { "alias": "actionTemplate"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "detailTemplate": { "alias": "detailTemplate"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "initialTableSelection": { "alias": "initialTableSelection"; "required": false; "isSignal": true; }; "lang": { "alias": "lang"; "required": false; "isSignal": true; }; "clearSelection": { "alias": "clearSelection"; "required": false; "isSignal": true; }; "serverSide": { "alias": "serverSide"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; }, { "clearSelection": "clearSelectionChange"; "currentPage": "currentPageChange"; "select": "select"; "clickedRow": "clickedRow"; "searchChange": "searchChange"; "filtersChange": "filtersChange"; "searchModeChange": "searchModeChange"; "pageChange": "pageChange"; }, never, never, true, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BmbTablesComponent, "bmb-table", never, { "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "actionTemplate": { "alias": "actionTemplate"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "detailTemplate": { "alias": "detailTemplate"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "initialTableSelection": { "alias": "initialTableSelection"; "required": false; "isSignal": true; }; "lang": { "alias": "lang"; "required": false; "isSignal": true; }; "clearSelection": { "alias": "clearSelection"; "required": false; "isSignal": true; }; "serverSide": { "alias": "serverSide"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "filtersVisible": { "alias": "filtersVisible"; "required": false; "isSignal": true; }; "filtersPosition": { "alias": "filtersPosition"; "required": false; "isSignal": true; }; }, { "clearSelection": "clearSelectionChange"; "currentPage": "currentPageChange"; "filtersVisible": "filtersVisibleChange"; "select": "select"; "clickedRow": "clickedRow"; "searchChange": "searchChange"; "filtersChange": "filtersChange"; "searchModeChange": "searchModeChange"; "pageChange": "pageChange"; }, never, never, true, never>;
|
|
101
104
|
}
|
|
@@ -9,6 +9,8 @@ export interface TableColum {
|
|
|
9
9
|
width?: number;
|
|
10
10
|
type?: 'string' | 'number' | 'date';
|
|
11
11
|
icon?: string;
|
|
12
|
+
dateFormat?: string;
|
|
13
|
+
isFilterable?: boolean;
|
|
12
14
|
}
|
|
13
15
|
export interface TableConfig {
|
|
14
16
|
isSelectable?: boolean;
|
|
@@ -16,3 +18,4 @@ export interface TableConfig {
|
|
|
16
18
|
isExpandible?: boolean;
|
|
17
19
|
showActions?: boolean;
|
|
18
20
|
}
|
|
21
|
+
export type IBmbFiltersPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApplicationRef, EnvironmentInjector } from '@angular/core';
|
|
2
|
+
import { IBmbNativeModal } from '../components/bmb-modal/bmb-modal.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BmbNativeModalService {
|
|
5
|
+
private appRef;
|
|
6
|
+
private environmentInjector;
|
|
7
|
+
readonly modalList: import("@angular/core").WritableSignal<IBmbNativeModal[]>;
|
|
8
|
+
private portalComponentRef;
|
|
9
|
+
constructor(appRef: ApplicationRef, environmentInjector: EnvironmentInjector);
|
|
10
|
+
private getOrCreatePortal;
|
|
11
|
+
openModal(newModal: IBmbNativeModal): string;
|
|
12
|
+
closeModal(id: string): void;
|
|
13
|
+
closeAllModals(): void;
|
|
14
|
+
getModalList(): IBmbNativeModal[];
|
|
15
|
+
checkIfModalExists(id: string): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BmbNativeModalService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BmbNativeModalService>;
|
|
18
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import { ApplicationRef, EnvironmentInjector } from '@angular/core';
|
|
1
2
|
import { INotification } from '../components/bmb-push-notification/types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export type NotificationPositionX = 'left' | 'right';
|
|
4
5
|
export type NotificationPositionY = 'top' | 'bottom';
|
|
5
6
|
export declare class BmbNotificationService {
|
|
7
|
+
private appRef;
|
|
8
|
+
private environmentInjector;
|
|
6
9
|
positionX?: NotificationPositionX | undefined;
|
|
7
10
|
positionY?: NotificationPositionY | undefined;
|
|
8
11
|
readonly notificationList: import("@angular/core").WritableSignal<INotification[]>;
|
|
9
|
-
|
|
12
|
+
private portalComponentRef;
|
|
13
|
+
constructor(appRef: ApplicationRef, environmentInjector: EnvironmentInjector, positionX?: NotificationPositionX | undefined, positionY?: NotificationPositionY | undefined);
|
|
14
|
+
private getOrCreatePortal;
|
|
10
15
|
addNotification(notification: INotification): void;
|
|
11
16
|
deleteNotification(id: string): void;
|
|
12
17
|
getNotificationList(): INotification[];
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BmbNotificationService, [{ optional: true; }, { optional: true; }]>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BmbNotificationService, [null, null, { optional: true; }, { optional: true; }]>;
|
|
14
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<BmbNotificationService>;
|
|
15
20
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from '../components/bmb-alert-center/types';
|
|
|
9
9
|
export * from '../components/bmb-chat-bubbles/types';
|
|
10
10
|
export * from '../components/bmb-sidebar/bmb-sidebar.interface';
|
|
11
11
|
export * from '../components/bmb-grades/types';
|
|
12
|
+
export * from '../components/bmb-tables/bmb-tables.interface';
|
|
12
13
|
export type SizeNames = 'xs' | 's' | 'm' | 'l' | 'xl' | 'none' | 'auto';
|
|
13
14
|
export type IButtonAppearance = 'primary' | 'secondary-filled' | 'secondary-outlined' | 'destructive' | 'transparent';
|
|
14
15
|
export type IButtonSize = 'small' | 'large' | 'micro';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ti-tecnologico-de-monterrey-oficial/ds-ng",
|
|
3
|
-
"version": "1.5.1019-
|
|
3
|
+
"version": "1.5.1019-e",
|
|
4
4
|
"description": "Design System oficial del Tecnológico de Monterrey - Descubre cómo nuestro Design System no solo da forma a la estética, sino que también impulsa la consistencia en cada rincón de nuestro diseño, proporcionando una base sólida para construir experiencias memorables y coherentes. Únete a nosotros en este viaje donde la creatividad, coherencia y elegancia se encuentran para dar vida a un mundo visualmente armonioso y funcionalmente fluido.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"module": "fesm2022/ti-tecnologico-de-monterrey-oficial-ds-ng.mjs",
|
|
37
37
|
"typings": "index.d.ts"
|
|
38
|
-
}
|
|
38
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './lib/services/calendar.service';
|
|
|
5
5
|
export * from './lib/services/user/profile.service';
|
|
6
6
|
export * from './lib/components/bmb-login-onboarding/bmb-login-onboarding.service';
|
|
7
7
|
export * from './lib/components/bmb-alert-center/bmb-alert-center.service';
|
|
8
|
+
export * from './lib/services/native-modal.service';
|
|
8
9
|
export * from './lib/ds-ng.component';
|
|
9
10
|
export * from './lib/directives/bmb-button/button.directive';
|
|
10
11
|
export * from './lib/directives/bmb-layout/bmb-layout-item.directive';
|
|
@@ -136,5 +137,6 @@ export * from './lib/components/bmb-title-content/bmb-title-content.component';
|
|
|
136
137
|
export * from './lib/components/bmb-item/bmb-item.component';
|
|
137
138
|
export * from './lib/components/bmb-navigation-bar/bmb-navigation-bar.component';
|
|
138
139
|
export * from './lib/components/bmb-notice-card/bmb-notice-card.component';
|
|
140
|
+
export * from './lib/components/bmb-modal/bmb-native-modal.component';
|
|
139
141
|
export * from './lib/types';
|
|
140
142
|
export * from './lib/components/bmb-modal/bmb-modal.interface';
|