@fuentis/phoenix-ui 0.0.9-alpha.616 → 0.0.9-alpha.618

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.
@@ -77,7 +77,6 @@ import * as i2$3 from 'primeng/selectbutton';
77
77
  import { SelectButtonModule } from 'primeng/selectbutton';
78
78
  import * as XLSX from 'xlsx';
79
79
  import pdfMake from 'pdfmake/build/pdfmake';
80
- import pdfFonts from 'pdfmake/build/vfs_fonts';
81
80
  import * as i1$3 from 'primeng/dynamicdialog';
82
81
  import { DialogService } from 'primeng/dynamicdialog';
83
82
  import * as i2$6 from 'primeng/datepicker';
@@ -2630,16 +2629,6 @@ async function exportRowsToPdf(columns, rows, columnTypeMap, columnTypeEnum, t,
2630
2629
  /* =========================
2631
2630
  FONTS
2632
2631
  ========================= */
2633
- if (pdfFonts && pdfFonts.pdfMake) {
2634
- pdfMake.vfs = pdfFonts.pdfMake.vfs;
2635
- }
2636
- else if (pdfFonts && pdfFonts.vfs) {
2637
- pdfMake.vfs = pdfFonts.vfs;
2638
- }
2639
- else {
2640
- pdfMake.vfs = pdfFonts || {};
2641
- }
2642
- delete pdfMake.fonts?.DejaVuSans;
2643
2632
  try {
2644
2633
  const dejaVuFont = await loadDejaVuSansFont();
2645
2634
  if (dejaVuFont) {
@@ -2650,7 +2639,7 @@ async function exportRowsToPdf(columns, rows, columnTypeMap, columnTypeEnum, t,
2650
2639
  italics: 'DejaVuSans.ttf',
2651
2640
  bolditalics: 'DejaVuSans.ttf',
2652
2641
  };
2653
- pdfMake.vfs['DejaVuSans.ttf'] = dejaVuFont;
2642
+ pdfMake.addVirtualFileSystem({ 'DejaVuSans.ttf': dejaVuFont });
2654
2643
  }
2655
2644
  }
2656
2645
  catch {
@@ -7555,11 +7544,7 @@ class MetaUploadComponentDragDrop extends BaseMetaField {
7555
7544
  <p-button
7556
7545
  (onClick)="choose($event, chooseCallback)"
7557
7546
  icon="pi pi-upload"
7558
- [label]="
7559
- file?.name
7560
- ? ('LABELS.SELECTED_FILE' | translate) + ': ' + file?.name
7561
- : ('LABELS.BROWSE' | translate)
7562
- "
7547
+ [label]="file?.name ? file?.name : ('LABELS.BROWSE' | translate)"
7563
7548
  severity="secondary"
7564
7549
  />
7565
7550
  </div>
@@ -7646,11 +7631,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7646
7631
  <p-button
7647
7632
  (onClick)="choose($event, chooseCallback)"
7648
7633
  icon="pi pi-upload"
7649
- [label]="
7650
- file?.name
7651
- ? ('LABELS.SELECTED_FILE' | translate) + ': ' + file?.name
7652
- : ('LABELS.BROWSE' | translate)
7653
- "
7634
+ [label]="file?.name ? file?.name : ('LABELS.BROWSE' | translate)"
7654
7635
  severity="secondary"
7655
7636
  />
7656
7637
  </div>