@freedom_sky/feige-lib 5.6.0 → 5.8.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.
@@ -107,6 +107,21 @@ declare class Const {
107
107
  CZK: string;
108
108
  MXN: string;
109
109
  HKD: string;
110
+ SEK: string;
111
+ RUB: string;
112
+ BYN: string;
113
+ KZT: string;
114
+ ILS: string;
115
+ IRR: string;
116
+ AFN: string;
117
+ TJS: string;
118
+ EGP: string;
119
+ DZD: string;
120
+ ERN: string;
121
+ ETB: string;
122
+ MNT: string;
123
+ SAR: string;
124
+ BGN: string;
110
125
  };
111
126
  LARGE_CURRENCY: string[];
112
127
  SUFFIX_CURRENCY: string[];
@@ -105,13 +105,28 @@ var Const = /** @class */ (function () {
105
105
  LAK: '₭',
106
106
  MMK: 'K',
107
107
  THB: '฿',
108
- TRY: '₤',
108
+ TRY: '₺',
109
109
  PLN: 'zł',
110
110
  UAH: '₴',
111
111
  BRL: 'R$',
112
112
  CZK: 'Kč',
113
113
  MXN: 'MXN$',
114
- HKD: 'HKD',
114
+ HKD: 'HK$',
115
+ SEK: 'kr',
116
+ RUB: '₽',
117
+ BYN: 'Br',
118
+ KZT: '₸',
119
+ ILS: '₪',
120
+ IRR: '﷼',
121
+ AFN: '؋',
122
+ TJS: 'ЅМ',
123
+ EGP: 'ج.م',
124
+ DZD: 'دج',
125
+ ERN: 'Nfk',
126
+ ETB: 'Br',
127
+ MNT: '₮',
128
+ SAR: 'ر.س',
129
+ BGN: 'лв',
115
130
  };
116
131
  this.LARGE_CURRENCY = ['đ', '¥', 'Kč']; //币值比较大,不需要小数而且需要三位打逗号的货币
117
132
  this.SUFFIX_CURRENCY = ['Kč']; // 货币符号在数字后面的货币
@@ -502,8 +517,160 @@ var Const = /** @class */ (function () {
502
517
  defaultAreaCode: '971',
503
518
  rtl: true,
504
519
  codepage: 'utf-8',
505
- defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG
506
- }
520
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
521
+ },
522
+ {
523
+ name: 'Українська',
524
+ img: '',
525
+ code: 'uk',
526
+ speechCode: 'uk-UA',
527
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
528
+ defaultAreaCode: '380',
529
+ codepage: 'cp1251',
530
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
531
+ },
532
+ {
533
+ name: 'Български',
534
+ img: '',
535
+ code: 'bg',
536
+ speechCode: 'bg-BG',
537
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
538
+ defaultAreaCode: '359',
539
+ codepage: 'cp1251',
540
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
541
+ },
542
+ {
543
+ name: 'Hrvatski',
544
+ img: '',
545
+ code: 'hr',
546
+ speechCode: 'hr-HR',
547
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
548
+ defaultAreaCode: '385',
549
+ codepage: 'cp1250',
550
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
551
+ },
552
+ {
553
+ name: 'Slovenščina',
554
+ img: '',
555
+ code: 'sl',
556
+ speechCode: 'sl-SI',
557
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
558
+ defaultAreaCode: '386',
559
+ codepage: 'cp1250',
560
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
561
+ },
562
+ {
563
+ name: 'Slovenský',
564
+ img: '',
565
+ code: 'sk',
566
+ speechCode: 'sk-SK',
567
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
568
+ defaultAreaCode: '421',
569
+ codepage: 'cp1250',
570
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
571
+ },
572
+ {
573
+ name: 'Lietuvių',
574
+ img: '',
575
+ code: 'lt',
576
+ speechCode: 'lt-LT',
577
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
578
+ defaultAreaCode: '370',
579
+ codepage: 'cp1257',
580
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
581
+ },
582
+ {
583
+ name: 'Türkçe',
584
+ img: '',
585
+ code: 'tr',
586
+ speechCode: 'tr-TR',
587
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
588
+ defaultAreaCode: '90',
589
+ codepage: 'cp1254',
590
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
591
+ },
592
+ {
593
+ name: 'Svenska',
594
+ img: '',
595
+ code: 'sv',
596
+ speechCode: 'sv-SE',
597
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
598
+ defaultAreaCode: '46',
599
+ codepage: 'cp1252',
600
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
601
+ },
602
+ {
603
+ name: 'Русский',
604
+ img: '',
605
+ code: 'ru',
606
+ speechCode: 'ru-RU',
607
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
608
+ defaultAreaCode: '7',
609
+ codepage: 'cp1251',
610
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
611
+ },
612
+ {
613
+ name: 'עברית',
614
+ img: '',
615
+ code: 'he',
616
+ speechCode: 'he-IL',
617
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
618
+ defaultAreaCode: '972',
619
+ codepage: 'cp1255',
620
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
621
+ rtl: true,
622
+ },
623
+ {
624
+ name: 'فارسی',
625
+ img: '',
626
+ code: 'fa',
627
+ speechCode: 'fa-IR',
628
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
629
+ defaultAreaCode: '98',
630
+ codepage: 'cp1256',
631
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
632
+ rtl: true,
633
+ },
634
+ {
635
+ name: 'Latviešu',
636
+ img: '',
637
+ code: 'lv',
638
+ speechCode: 'lv-LV',
639
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
640
+ defaultAreaCode: '371',
641
+ codepage: 'cp1257',
642
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
643
+ },
644
+ {
645
+ name: 'Eesti',
646
+ img: '',
647
+ code: 'et',
648
+ speechCode: 'et-EE',
649
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
650
+ defaultAreaCode: '372',
651
+ codepage: 'cp1257',
652
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
653
+ },
654
+ {
655
+ name: 'ትግርኛ',
656
+ img: '',
657
+ code: 'ti',
658
+ speechCode: 'ti-ER',
659
+ dateFormat: common_enum_1.DateFormat.DAY_MONTH_YEAR,
660
+ defaultAreaCode: '291',
661
+ codepage: 'utf-8',
662
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
663
+ },
664
+ {
665
+ name: 'Монгол',
666
+ img: '',
667
+ code: 'mn',
668
+ speechCode: 'mn-MN',
669
+ dateFormat: common_enum_1.DateFormat.YEAR_MONTH_DAY,
670
+ defaultAreaCode: '976',
671
+ codepage: 'utf-8',
672
+ defaultPrintEncodeType: printer_enum_1.EncodeTypeEnum.IMG,
673
+ },
507
674
  ];
508
675
  this.DATE_FORMAT = {
509
676
  YEAR_MONTH_DAY: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "5.6.0",
3
+ "version": "5.8.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -103,13 +103,28 @@ class Const {
103
103
  LAK: '₭', //老挝基普
104
104
  MMK: 'K', //缅甸缅元
105
105
  THB: '฿', //泰国泰铢
106
- TRY: '₤', // 土耳其新里拉
106
+ TRY: '₺', // 土耳其新里拉
107
107
  PLN: 'zł', //波兰兹罗提
108
108
  UAH: '₴', //乌克兰格里夫纳
109
109
  BRL: 'R$', //巴西巴西雷亚尔
110
110
  CZK: 'Kč', //捷克克朗
111
111
  MXN: 'MXN$', //墨西哥比索
112
- HKD: 'HKD', //港币
112
+ HKD: 'HK$', //港币
113
+ SEK: 'kr', //瑞典克朗
114
+ RUB: '₽', //俄罗斯卢布
115
+ BYN: 'Br', //白俄罗斯卢布
116
+ KZT: '₸', //哈萨克斯坦坚戈
117
+ ILS: '₪', //以色列新谢克尔
118
+ IRR: '﷼', //伊朗里亚尔
119
+ AFN: '؋', //阿富汗阿富尼
120
+ TJS: 'ЅМ', //塔吉克斯坦索莫尼
121
+ EGP: 'ج.م', //埃及镑
122
+ DZD: 'دج', //阿尔及利亚第纳尔
123
+ ERN: 'Nfk', //厄立特里亚纳克法
124
+ ETB: 'Br', //埃塞俄比亚比尔
125
+ MNT: '₮', //蒙古图格里克
126
+ SAR: 'ر.س', //沙特阿拉伯里亚尔
127
+ BGN: 'лв', //保加利亚列弗
113
128
  };
114
129
  LARGE_CURRENCY = ['đ', '¥', 'Kč']; //币值比较大,不需要小数而且需要三位打逗号的货币
115
130
  SUFFIX_CURRENCY = ['Kč']; // 货币符号在数字后面的货币
@@ -500,8 +515,160 @@ class Const {
500
515
  defaultAreaCode: '971',
501
516
  rtl: true,
502
517
  codepage: 'utf-8',
503
- defaultPrintEncodeType: EncodeTypeEnum.IMG
504
- }
518
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
519
+ },
520
+ {
521
+ name: 'Українська', // Ukrainian
522
+ img: '',
523
+ code: 'uk',
524
+ speechCode: 'uk-UA',
525
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
526
+ defaultAreaCode: '380',
527
+ codepage: 'cp1251',
528
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
529
+ },
530
+ {
531
+ name: 'Български', // Bulgarian
532
+ img: '',
533
+ code: 'bg',
534
+ speechCode: 'bg-BG',
535
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
536
+ defaultAreaCode: '359',
537
+ codepage: 'cp1251',
538
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
539
+ },
540
+ {
541
+ name: 'Hrvatski', // Croatian
542
+ img: '',
543
+ code: 'hr',
544
+ speechCode: 'hr-HR',
545
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
546
+ defaultAreaCode: '385',
547
+ codepage: 'cp1250',
548
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
549
+ },
550
+ {
551
+ name: 'Slovenščina', // Slovenian
552
+ img: '',
553
+ code: 'sl',
554
+ speechCode: 'sl-SI',
555
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
556
+ defaultAreaCode: '386',
557
+ codepage: 'cp1250',
558
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
559
+ },
560
+ {
561
+ name: 'Slovenský', // Slovak
562
+ img: '',
563
+ code: 'sk',
564
+ speechCode: 'sk-SK',
565
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
566
+ defaultAreaCode: '421',
567
+ codepage: 'cp1250',
568
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
569
+ },
570
+ {
571
+ name: 'Lietuvių', // Lithuanian
572
+ img: '',
573
+ code: 'lt',
574
+ speechCode: 'lt-LT',
575
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
576
+ defaultAreaCode: '370',
577
+ codepage: 'cp1257',
578
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
579
+ },
580
+ {
581
+ name: 'Türkçe', // Turkish
582
+ img: '',
583
+ code: 'tr',
584
+ speechCode: 'tr-TR',
585
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
586
+ defaultAreaCode: '90',
587
+ codepage: 'cp1254',
588
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
589
+ },
590
+ {
591
+ name: 'Svenska', // Swedish
592
+ img: '',
593
+ code: 'sv',
594
+ speechCode: 'sv-SE',
595
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
596
+ defaultAreaCode: '46',
597
+ codepage: 'cp1252',
598
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
599
+ },
600
+ {
601
+ name: 'Русский', // Russian
602
+ img: '',
603
+ code: 'ru',
604
+ speechCode: 'ru-RU',
605
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
606
+ defaultAreaCode: '7',
607
+ codepage: 'cp1251',
608
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
609
+ },
610
+ {
611
+ name: 'עברית', // Hebrew
612
+ img: '',
613
+ code: 'he',
614
+ speechCode: 'he-IL',
615
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
616
+ defaultAreaCode: '972',
617
+ codepage: 'cp1255',
618
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
619
+ rtl: true,
620
+ },
621
+ {
622
+ name: 'فارسی', // Persian
623
+ img: '',
624
+ code: 'fa',
625
+ speechCode: 'fa-IR',
626
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
627
+ defaultAreaCode: '98',
628
+ codepage: 'cp1256',
629
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
630
+ rtl: true,
631
+ },
632
+ {
633
+ name: 'Latviešu', // Latvian
634
+ img: '',
635
+ code: 'lv',
636
+ speechCode: 'lv-LV',
637
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
638
+ defaultAreaCode: '371',
639
+ codepage: 'cp1257',
640
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
641
+ },
642
+ {
643
+ name: 'Eesti', // Estonian
644
+ img: '',
645
+ code: 'et',
646
+ speechCode: 'et-EE',
647
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
648
+ defaultAreaCode: '372',
649
+ codepage: 'cp1257',
650
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
651
+ },
652
+ {
653
+ name: 'ትግርኛ', // Tigrinya
654
+ img: '',
655
+ code: 'ti',
656
+ speechCode: 'ti-ER',
657
+ dateFormat: DateFormat.DAY_MONTH_YEAR,
658
+ defaultAreaCode: '291',
659
+ codepage: 'utf-8',
660
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
661
+ },
662
+ {
663
+ name: 'Монгол', // Mongolian
664
+ img: '',
665
+ code: 'mn',
666
+ speechCode: 'mn-MN',
667
+ dateFormat: DateFormat.YEAR_MONTH_DAY,
668
+ defaultAreaCode: '976',
669
+ codepage: 'utf-8',
670
+ defaultPrintEncodeType: EncodeTypeEnum.IMG,
671
+ },
505
672
  ];
506
673
  DATE_FORMAT = {
507
674
  YEAR_MONTH_DAY: {