ngx-vector-components 6.27.0 → 6.29.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 +3219 -3206
- 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 +408 -174
- package/fesm2022/ngx-vector-components.mjs.map +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 +15 -2
- package/lib/services/analytics.service.d.ts +77 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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: "single" | "multiple" | 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(): "single" | "multiple" | 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 | "int" | "pint" | "alphanum" | "money";
|
|
42
42
|
get control(): any;
|
|
43
43
|
get showPasswordIcon(): "fas fa-eye" | "fas fa-eye-slash";
|
|
44
44
|
documentTypes: ListItem[];
|
|
@@ -149,7 +149,8 @@ export declare enum ProfileModuleType {
|
|
|
149
149
|
TAX_INCOMING = "ImpostoDeRenda",
|
|
150
150
|
CHATBOT = "Chatbot",
|
|
151
151
|
BLOCK_CARRIER = "Block Carrier",
|
|
152
|
-
TRAINING_NEW = "Treinamento"
|
|
152
|
+
TRAINING_NEW = "Treinamento",
|
|
153
|
+
CTE_COMPLEMENT = "Cte Complementar"
|
|
153
154
|
}
|
|
154
155
|
export declare enum ProfileModuleActionType {
|
|
155
156
|
ADD_VEHICLE = "Add Vehicle",
|
|
@@ -772,5 +773,17 @@ export declare enum ProfileModuleActionType {
|
|
|
772
773
|
EDIT_TRAINING = "Editar treinamento",
|
|
773
774
|
ACTIVE_TRAINING = "Ativar treinamento",
|
|
774
775
|
CREATE_TRAINING = "Criar treinamento",
|
|
775
|
-
ENABLED_TO_SUBDISTRIBUTE_QUOTA = "Enabled To Subdistribute Quota"
|
|
776
|
+
ENABLED_TO_SUBDISTRIBUTE_QUOTA = "Enabled To Subdistribute Quota",
|
|
777
|
+
CONFIG_PARAM_CTE_COMPLEMENT = "Pode Configurar Parametros Cte Complementar",
|
|
778
|
+
CAN_REQUEST_CTE_COMPLEMENT = "Pode Solicitar Complemento",
|
|
779
|
+
CAN_EXPORT_APPROVALS_EXCEL = "Pode Exportar Excel Aprovacoes",
|
|
780
|
+
CAN_VIEW_CTE_COMPLEMENT_HISTORY = "Pode Ver Historico Cte Complementar",
|
|
781
|
+
CAN_VIEW_CTE_COMPLEMENT_CONFIG = "Pode Visualizar Configuracoes Cte Complementar",
|
|
782
|
+
CAN_EDIT_CTE_COMPLEMENT_TYPES = "Pode Editar Tipos",
|
|
783
|
+
CAN_ADD_CTE_COMPLEMENT_APPROVERS = "Pode Adicionar Aprovadores",
|
|
784
|
+
CAN_EDIT_CTE_COMPLEMENT_APPROVERS = "Pode Editar Aprovadores",
|
|
785
|
+
CAN_ADD_CTE_COMPLEMENT_MOTIVES = "Pode Adicionar Motivos De Solicitacao",
|
|
786
|
+
CAN_EDIT_CTE_COMPLEMENT_MOTIVES = "Pode Editar Motivos De Solicitacao",
|
|
787
|
+
CAN_EDIT_CTE_COMPLEMENT_SUBSIDIARIES = "Pode Editar Filiais Cte Complementar",
|
|
788
|
+
CAN_ADD_CTE_COMPLEMENT_EXCEL_INFOS = "Pode Adicionar Excel Infos Cte Complementar"
|
|
776
789
|
}
|
|
@@ -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