ngx-vector-components 6.26.0 → 6.28.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.
- package/CHANGELOG.md +3213 -3200
- package/README.md +35 -35
- package/assets/icons/chevron_down_icon.svg +3 -3
- package/assets/icons/home_menu_icon.svg +3 -3
- package/assets/icons/logout_icon.svg +9 -9
- package/assets/icons/menu_footer_icon.svg +3 -3
- package/assets/icons/menu_hamburguer_icon.svg +3 -3
- package/assets/icons/terms_of_use_icon.svg +9 -9
- package/assets/icons/vector_admin_icon.svg +4 -4
- package/assets/icons/vector_fintech_icon.svg +3 -3
- package/assets/icons/vector_logtech_icon.svg +6 -6
- package/assets/icons/vector_marketplace_icon.svg +3 -3
- package/assets/images/bunge_logo.svg +23 -23
- package/assets/images/cofco_logo.svg +117 -117
- package/assets/images/emote_bad.svg +6 -6
- package/assets/images/emote_cool.svg +5 -5
- package/assets/images/emote_nice.svg +5 -5
- package/assets/images/success_sign.svg +4 -4
- package/assets/images/vector-logo-horizontal-inverse-color.svg +13 -13
- package/assets/images/vector_logo_horizontal.svg +13 -13
- package/assets/images/warn_sign.svg +4 -4
- package/assets/styles/_fonts.scss +114 -114
- package/assets/styles/_mixins.scss +7 -7
- package/assets/styles/_primeng-custom-theme.scss +1869 -1869
- package/assets/styles/_spinner.scss +36 -36
- package/assets/styles/_styles.scss +134 -134
- package/assets/styles/_variables.scss +62 -62
- package/fesm2022/ngx-vector-components.mjs +396 -174
- package/fesm2022/ngx-vector-components.mjs.map +1 -1
- package/lib/components/badge/badge.component.d.ts +1 -1
- package/lib/components/fields/data-table/data-table.component.d.ts +2 -2
- package/lib/components/fields/text-field/text-field.component.d.ts +1 -1
- package/lib/injections/index.d.ts +1 -0
- package/lib/models/profile.model.d.ts +2 -1
- package/lib/services/analytics.service.d.ts +77 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare class BadgeComponent implements OnInit {
|
|
|
9
9
|
tooltip?: string;
|
|
10
10
|
constructor();
|
|
11
11
|
ngOnInit(): void;
|
|
12
|
-
getStatusColor(): "badge-warning" | "badge-success" | "badge-error" | "badge-info" | "badge-notexecuted"
|
|
12
|
+
getStatusColor(): "" | "badge-warning" | "badge-success" | "badge-error" | "badge-info" | "badge-notexecuted";
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
14
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "vector-badge", never, { "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "customColor": { "alias": "customColor"; "required": false; }; "customBackgroundColor": { "alias": "customBackgroundColor"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -39,7 +39,7 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
39
39
|
expandable: boolean;
|
|
40
40
|
dataKey: string;
|
|
41
41
|
expansionTemplate: TemplateRef<any> | null;
|
|
42
|
-
set selectionMode(_selectionMode: "
|
|
42
|
+
set selectionMode(_selectionMode: "multiple" | "single" | null);
|
|
43
43
|
selectionType: 'checkbox' | 'radiobutton' | null;
|
|
44
44
|
set height(_height: string);
|
|
45
45
|
showLimitBalance: boolean;
|
|
@@ -73,7 +73,7 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
73
73
|
get balance(): (itemAccount?: any) => number | string;
|
|
74
74
|
get tabs(): ListItem[];
|
|
75
75
|
get height(): string;
|
|
76
|
-
get selectionMode(): "
|
|
76
|
+
get selectionMode(): "multiple" | "single" | null;
|
|
77
77
|
private _selectionMode;
|
|
78
78
|
private _height;
|
|
79
79
|
private _tabs;
|
|
@@ -38,7 +38,7 @@ export declare class TextFieldComponent implements OnInit, OnDestroy {
|
|
|
38
38
|
isPasswordVisible: boolean;
|
|
39
39
|
validateOnly: boolean;
|
|
40
40
|
get placeholder(): string;
|
|
41
|
-
get keyfilter(): RegExp | "
|
|
41
|
+
get keyfilter(): RegExp | "pint" | "int" | "money" | "alphanum";
|
|
42
42
|
get control(): any;
|
|
43
43
|
get showPasswordIcon(): "fas fa-eye" | "fas fa-eye-slash";
|
|
44
44
|
documentTypes: ListItem[];
|
|
@@ -771,5 +771,6 @@ export declare enum ProfileModuleActionType {
|
|
|
771
771
|
SHOW_TRAINING_REPORT = "Relatorio de treinamento",
|
|
772
772
|
EDIT_TRAINING = "Editar treinamento",
|
|
773
773
|
ACTIVE_TRAINING = "Ativar treinamento",
|
|
774
|
-
CREATE_TRAINING = "Criar treinamento"
|
|
774
|
+
CREATE_TRAINING = "Criar treinamento",
|
|
775
|
+
ENABLED_TO_SUBDISTRIBUTE_QUOTA = "Enabled To Subdistribute Quota"
|
|
775
776
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Environment } from '../injections';
|
|
2
|
+
import { AppName, MenuItem } from '../models';
|
|
3
|
+
import { StorageService } from './storage.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/** Nome dos eventos enviados ao dataLayer. Todo o detalhe vai nos parametros. */
|
|
6
|
+
export type AnalyticsEvent = 'page_view' | 'user_action' | 'app_event';
|
|
7
|
+
/** Identificacao da tela corrente, anexada a todos os eventos. */
|
|
8
|
+
export interface AnalyticsPage {
|
|
9
|
+
page_path: string;
|
|
10
|
+
page_name: string;
|
|
11
|
+
page_module: string;
|
|
12
|
+
}
|
|
13
|
+
/** Identificacao do usuario corrente, anexada a todos os eventos. */
|
|
14
|
+
export interface AnalyticsUser {
|
|
15
|
+
user_id?: number;
|
|
16
|
+
profile_name?: string;
|
|
17
|
+
profile_type_id?: number;
|
|
18
|
+
shipper_id?: number;
|
|
19
|
+
carrier_id?: number;
|
|
20
|
+
is_etcd: boolean;
|
|
21
|
+
}
|
|
22
|
+
type AnalyticsPayload = Record<string, unknown>;
|
|
23
|
+
export declare class AnalyticsService {
|
|
24
|
+
private storageService;
|
|
25
|
+
private appName;
|
|
26
|
+
private menuOptions;
|
|
27
|
+
private environment;
|
|
28
|
+
private static readonly ID_SEGMENT;
|
|
29
|
+
private static readonly MAX_LABEL_LENGTH;
|
|
30
|
+
private currentPage;
|
|
31
|
+
private menuIndex?;
|
|
32
|
+
constructor(storageService: StorageService, appName?: AppName | null, menuOptions?: MenuItem[] | null, environment?: Environment | null);
|
|
33
|
+
/**
|
|
34
|
+
* Registra a troca de tela. Chamado apenas pelo AppComponent, no NavigationEnd.
|
|
35
|
+
* Alem do `page_view`, sincroniza a identificacao do usuario no Clarity --
|
|
36
|
+
* que precisa ser reenviada a cada rota por se tratar de uma SPA.
|
|
37
|
+
*/
|
|
38
|
+
pageView(url: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* INTERATIVO -- o usuario fez algo deliberado: clicou, buscou, exportou, salvou.
|
|
41
|
+
* Chamado a mao pelo componente, no inicio do handler.
|
|
42
|
+
*
|
|
43
|
+
* @param action nome no formato `objeto_verbo`, sem repetir a tela (`page_name` ja vai junto)
|
|
44
|
+
* @param extra `label` para o identificador do alvo, `context` para detalhe livre
|
|
45
|
+
*
|
|
46
|
+
* @example this.analyticsService.userAction('heat_map_search', { context: { uf: 'SP' } });
|
|
47
|
+
*/
|
|
48
|
+
userAction(action: string, extra?: AnalyticsPayload): void;
|
|
49
|
+
/**
|
|
50
|
+
* NAO INTERATIVO -- o sistema respondeu ou exibiu algo: resultado carregado,
|
|
51
|
+
* lista vazia, erro de negocio, modal automatico.
|
|
52
|
+
*
|
|
53
|
+
* @example this.analyticsService.appEvent('heat_map_empty', { context: { points: 0 } });
|
|
54
|
+
*/
|
|
55
|
+
appEvent(action: string, extra?: AnalyticsPayload): void;
|
|
56
|
+
private push;
|
|
57
|
+
private get dataLayer();
|
|
58
|
+
private get isProduction();
|
|
59
|
+
private get env();
|
|
60
|
+
private getUser;
|
|
61
|
+
private realId;
|
|
62
|
+
private get clarity();
|
|
63
|
+
private sendClarityEvent;
|
|
64
|
+
private slug;
|
|
65
|
+
private syncClarity;
|
|
66
|
+
private setClarityTag;
|
|
67
|
+
private resolvePage;
|
|
68
|
+
private normalizePath;
|
|
69
|
+
private findMenu;
|
|
70
|
+
private getMenuIndex;
|
|
71
|
+
/** Achata o menuOptions em `rota -> { nome da tela, modulo }`. */
|
|
72
|
+
private indexMenu;
|
|
73
|
+
private safely;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
75
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
package/lib/services/index.d.ts
CHANGED