ngx-vector-components 6.17.1 → 6.19.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +3159 -3146
  2. package/README.md +35 -35
  3. package/assets/icons/chevron_down_icon.svg +3 -3
  4. package/assets/icons/home_menu_icon.svg +3 -3
  5. package/assets/icons/logout_icon.svg +9 -9
  6. package/assets/icons/menu_footer_icon.svg +3 -3
  7. package/assets/icons/menu_hamburguer_icon.svg +3 -3
  8. package/assets/icons/terms_of_use_icon.svg +9 -9
  9. package/assets/icons/vector_admin_icon.svg +4 -4
  10. package/assets/icons/vector_fintech_icon.svg +3 -3
  11. package/assets/icons/vector_logtech_icon.svg +6 -6
  12. package/assets/icons/vector_marketplace_icon.svg +3 -3
  13. package/assets/images/bunge_logo.svg +23 -23
  14. package/assets/images/cofco_logo.svg +117 -117
  15. package/assets/images/emote_bad.svg +6 -6
  16. package/assets/images/emote_cool.svg +5 -5
  17. package/assets/images/emote_nice.svg +5 -5
  18. package/assets/images/success_sign.svg +4 -4
  19. package/assets/images/vector-logo-horizontal-inverse-color.svg +13 -13
  20. package/assets/images/vector_logo_horizontal.svg +13 -13
  21. package/assets/images/warn_sign.svg +4 -4
  22. package/assets/styles/_fonts.scss +114 -114
  23. package/assets/styles/_mixins.scss +7 -7
  24. package/assets/styles/_primeng-custom-theme.scss +1869 -1869
  25. package/assets/styles/_spinner.scss +36 -36
  26. package/assets/styles/_styles.scss +134 -134
  27. package/assets/styles/_variables.scss +62 -62
  28. package/fesm2022/ngx-vector-components.mjs +135 -74
  29. package/fesm2022/ngx-vector-components.mjs.map +1 -1
  30. package/lib/components/fields/data-table/data-table.component.d.ts +2 -2
  31. package/lib/components/fields/input-file/input-file.component.d.ts +16 -2
  32. package/lib/components/fields/text-field/text-field.component.d.ts +1 -1
  33. package/lib/models/profile.model.d.ts +2 -1
  34. 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: "multiple" | "single" | null);
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(): "multiple" | "single" | null;
76
+ get selectionMode(): "single" | "multiple" | null;
77
77
  private _selectionMode;
78
78
  private _height;
79
79
  private _tabs;
@@ -10,7 +10,8 @@ export type InputFileButtonConfig = {
10
10
  leftIcon?: string;
11
11
  rightIcon?: string;
12
12
  };
13
- export type InputFileAcceptExtension = 'PDF' | 'DOC' | 'DOCX' | 'XLS' | 'XLSX' | 'PPT' | 'PPTX' | 'TXT' | 'CSV' | 'RTF' | 'JPG' | 'JPEG' | 'PNG' | 'GIF' | 'BMP' | 'WEBP' | 'SVG' | 'MP4' | 'MP3' | 'WAV' | 'ZIP' | 'RAR' | 'JSON' | 'XML';
13
+ export declare const INPUT_FILE_ACCEPT_EXTENSIONS: readonly ["PDF", "DOC", "DOCX", "XLS", "XLSX", "PPT", "PPTX", "TXT", "CSV", "RTF", "JPG", "JPEG", "PNG", "GIF", "BMP", "WEBP", "SVG", "ZIP", "RAR", "JSON", "XML"];
14
+ export type InputFileAcceptExtension = (typeof INPUT_FILE_ACCEPT_EXTENSIONS)[number];
14
15
  export type UploadSingleFormValue = {
15
16
  originalFileName: string;
16
17
  friendlyFileName: string;
@@ -48,7 +49,11 @@ export declare class InputFileComponent {
48
49
  uploadFormat: 'formData' | 'base64';
49
50
  /** Criação de formulário: Single → `UploadSingleFormGroup` (use `createUploadSingleForm()`) · Multiple → `UploadMultipleFormArray` (use `createUploadMultipleForm()`). Se omitido, usa form interno. */
50
51
  control?: UploadSingleFormGroup | UploadMultipleFormArray;
51
- /** Extensões aceitas, ex: `['PDF', 'JPG']` (vira `accept=".pdf,.jpg"`). Array vazio = aceita qualquer tipo. */
52
+ /**
53
+ * Extensões aceitas, ex: `['PDF', 'JPG']` (vira `accept=".pdf,.jpg"`). Arquivos com outra extensão
54
+ * são bloqueados na seleção, com toast de aviso. Array vazio = aceita qualquer extensão
55
+ * de {@link INPUT_FILE_ACCEPT_EXTENSIONS}.
56
+ */
52
57
  acceptExtensions: InputFileAcceptExtension[];
53
58
  /** Tamanho máximo por arquivo em **MB** (ex: `5` = 5MB). `null` = sem limite. Convertido internamente pra bytes. */
54
59
  maxFileSize: number | null;
@@ -113,6 +118,11 @@ export declare class InputFileComponent {
113
118
  /** Bytes → MB. Usa 2 casas abaixo de 0.1MB para arquivos pequenos não virarem `0.0MB`. */
114
119
  private formatFileSizeMb;
115
120
  get acceptString(): string;
121
+ /**
122
+ * Extensões efetivamente aceitas: as configuradas em `acceptExtensions` ou, quando nada
123
+ * foi configurado, todas as que o componente suporta.
124
+ */
125
+ get allowedExtensions(): readonly InputFileAcceptExtension[];
116
126
  get maxFileSizeBytes(): number;
117
127
  /** Passado para o p-fileUpload — 1 em modo single, o input em modo multiple. */
118
128
  get effectiveFileLimit(): number;
@@ -137,6 +147,10 @@ export declare class InputFileComponent {
137
147
  get previewUrl(): string;
138
148
  get safePreviewUrl(): SafeResourceUrl;
139
149
  private triggerAttach;
150
+ private rejectDisallowedExtensions;
151
+ private notifyDisallowedExtensions;
152
+ private fileNameList;
153
+ private normalizedExtension;
140
154
  /** Descarta os arquivos que excedem `maxFileSize` e notifica o usuário. */
141
155
  private rejectOversizedFiles;
142
156
  private notifyOversizedFiles;
@@ -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 | "pint" | "int" | "money" | "alphanum";
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[];
@@ -748,5 +748,6 @@ export declare enum ProfileModuleActionType {
748
748
  SCHEDULING_SUBJECT_TO_LOADING_ORDER = "Scheduling Subject To Loading Order",
749
749
  CAN_UPDATE_VALUES_VALIDATION = "Pode Atualizar Valores Validacao",
750
750
  CAN_RESET_VALIDATION = "Pode Resetar Validacao",
751
- VIEW_RESTRICTION_COMMUNICATION_LOG = "Restri\u00E7\u00E3o de Visualiza\u00E7\u00E3o em Communication Logs"
751
+ VIEW_RESTRICTION_COMMUNICATION_LOG = "Restri\u00E7\u00E3o de Visualiza\u00E7\u00E3o em Communication Logs",
752
+ EDIT_TRAINING = "Editar treinamento"
752
753
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "6.17.1",
3
+ "version": "6.19.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.2.0",
6
6
  "@angular/cdk": "^19.2.0",