limitng 0.23.1 → 0.23.4
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/fesm2022/limitng-alt-buyuk-kart.mjs +37 -191
- package/fesm2022/limitng-alt-buyuk-kart.mjs.map +1 -1
- package/fesm2022/limitng-alt-kucuk-kart.mjs +32 -157
- package/fesm2022/limitng-alt-kucuk-kart.mjs.map +1 -1
- package/fesm2022/limitng-api-models-bildirimler.mjs +45 -41
- package/fesm2022/limitng-api-models-bildirimler.mjs.map +1 -1
- package/fesm2022/limitng-api-models-enums.mjs +350 -345
- package/fesm2022/limitng-api-models-enums.mjs.map +1 -1
- package/fesm2022/limitng-api-models-fourDConstants.mjs +88 -84
- package/fesm2022/limitng-api-models-fourDConstants.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izindetaylari.mjs +30 -25
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izindetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinfiltre.mjs +22 -17
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinfiltre.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinguncelle.mjs +4 -0
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinguncelle.mjs.map +1 -0
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinliste.mjs +32 -28
- package/fesm2022/limitng-api-models-kisisel-izinislemleri-izinliste.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-izinislemleri.mjs +5 -1
- package/fesm2022/limitng-api-models-kisisel-izinislemleri.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafdetaylari.mjs +66 -61
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafdetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masraffiltre.mjs +23 -18
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masraffiltre.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafguncelle.mjs +4 -0
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafguncelle.mjs.map +1 -0
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafliste.mjs +51 -47
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri-masrafliste.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri.mjs +5 -1
- package/fesm2022/limitng-api-models-kisisel-masrafislemleri.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onaydetaylari.mjs +51 -47
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onaydetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayfiltre.mjs +42 -37
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayfiltre.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayguncelle.mjs +15 -11
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayguncelle.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayliste.mjs +41 -37
- package/fesm2022/limitng-api-models-kisisel-onayislemleri-onayliste.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri.mjs +5 -1
- package/fesm2022/limitng-api-models-kisisel-onayislemleri.mjs.map +1 -1
- package/fesm2022/limitng-api-models-kisisel.mjs +5 -1
- package/fesm2022/limitng-api-models-kisisel.mjs.map +1 -1
- package/fesm2022/limitng-api-models-logbook.mjs +135 -130
- package/fesm2022/limitng-api-models-logbook.mjs.map +1 -1
- package/fesm2022/limitng-api-models-login.mjs +79 -61
- package/fesm2022/limitng-api-models-login.mjs.map +1 -1
- package/fesm2022/limitng-api-models-onay-onayagonderdetaylari.mjs +61 -57
- package/fesm2022/limitng-api-models-onay-onayagonderdetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-onay-onaybilgi.mjs +4 -0
- package/fesm2022/limitng-api-models-onay-onaybilgi.mjs.map +1 -0
- package/fesm2022/limitng-api-models-onay.mjs +5 -1
- package/fesm2022/limitng-api-models-onay.mjs.map +1 -1
- package/fesm2022/limitng-api-models-ortak.mjs +178 -169
- package/fesm2022/limitng-api-models-ortak.mjs.map +1 -1
- package/fesm2022/limitng-api-models-ozet-ozetdata.mjs +4 -0
- package/fesm2022/limitng-api-models-ozet-ozetdata.mjs.map +1 -0
- package/fesm2022/limitng-api-models-ozet-ozetkartalan.mjs +4 -0
- package/fesm2022/limitng-api-models-ozet-ozetkartalan.mjs.map +1 -0
- package/fesm2022/limitng-api-models-ozet.mjs +5 -1
- package/fesm2022/limitng-api-models-ozet.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-izinraporu-izinrapordetaylari.mjs +13 -9
- package/fesm2022/limitng-api-models-raporlar-izinraporu-izinrapordetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-izinraporu-izinraporliste.mjs +26 -21
- package/fesm2022/limitng-api-models-raporlar-izinraporu-izinraporliste.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-izinraporu.mjs +5 -1
- package/fesm2022/limitng-api-models-raporlar-izinraporu.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-listedensec.mjs +30 -32
- package/fesm2022/limitng-api-models-raporlar-listedensec.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-rapordetaylari.mjs +79 -75
- package/fesm2022/limitng-api-models-raporlar-rapordetaylari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-raporzamanlama.mjs +47 -43
- package/fesm2022/limitng-api-models-raporlar-raporzamanlama.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar-tablodansec.mjs +26 -22
- package/fesm2022/limitng-api-models-raporlar-tablodansec.mjs.map +1 -1
- package/fesm2022/limitng-api-models-raporlar.mjs +5 -1
- package/fesm2022/limitng-api-models-raporlar.mjs.map +1 -1
- package/fesm2022/limitng-api-models-sistemozet.mjs +196 -192
- package/fesm2022/limitng-api-models-sistemozet.mjs.map +1 -1
- package/fesm2022/limitng-api-models-sistemraporlari.mjs +14 -9
- package/fesm2022/limitng-api-models-sistemraporlari.mjs.map +1 -1
- package/fesm2022/limitng-api-models-timeSheet-timeSheetGirisListeler.mjs +320 -315
- package/fesm2022/limitng-api-models-timeSheet-timeSheetGirisListeler.mjs.map +1 -1
- package/fesm2022/limitng-api-models-timeSheet-timeSheetLog.mjs +19 -15
- package/fesm2022/limitng-api-models-timeSheet-timeSheetLog.mjs.map +1 -1
- package/fesm2022/limitng-api-models-timeSheet-timeSheetOzetListe.mjs +29 -24
- package/fesm2022/limitng-api-models-timeSheet-timeSheetOzetListe.mjs.map +1 -1
- package/fesm2022/limitng-api-models-timeSheet-timeSheetSecenekler.mjs +36 -32
- package/fesm2022/limitng-api-models-timeSheet-timeSheetSecenekler.mjs.map +1 -1
- package/fesm2022/limitng-api-models-timeSheet.mjs +5 -1
- package/fesm2022/limitng-api-models-timeSheet.mjs.map +1 -1
- package/fesm2022/limitng-api-models-xl-xlConfig.mjs +420 -376
- package/fesm2022/limitng-api-models-xl-xlConfig.mjs.map +1 -1
- package/fesm2022/limitng-api-models-xl-xlConstants.mjs +64 -60
- package/fesm2022/limitng-api-models-xl-xlConstants.mjs.map +1 -1
- package/fesm2022/limitng-api-models-xl-xlOptions.mjs +39 -35
- package/fesm2022/limitng-api-models-xl-xlOptions.mjs.map +1 -1
- package/fesm2022/limitng-api-models-xl-xlTools.mjs +8 -3
- package/fesm2022/limitng-api-models-xl-xlTools.mjs.map +1 -1
- package/fesm2022/limitng-api-models-xl.mjs +5 -1
- package/fesm2022/limitng-api-models-xl.mjs.map +1 -1
- package/fesm2022/limitng-api-models.mjs +5 -1
- package/fesm2022/limitng-api-models.mjs.map +1 -1
- package/fesm2022/limitng-api.mjs +846 -719
- package/fesm2022/limitng-api.mjs.map +1 -1
- package/fesm2022/limitng-blob-response-handler.mjs +1275 -1003
- package/fesm2022/limitng-blob-response-handler.mjs.map +1 -1
- package/fesm2022/limitng-dikey-baslikli-panel-sol.mjs +27 -121
- package/fesm2022/limitng-dikey-baslikli-panel-sol.mjs.map +1 -1
- package/fesm2022/limitng-dikey-baslikli-panel.mjs +27 -121
- package/fesm2022/limitng-dikey-baslikli-panel.mjs.map +1 -1
- package/fesm2022/limitng-directives-adAlani.directive.mjs +83 -100
- package/fesm2022/limitng-directives-adAlani.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-adresAlani.directive.mjs +84 -101
- package/fesm2022/limitng-directives-adresAlani.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-buyukHarf.directive.mjs +69 -83
- package/fesm2022/limitng-directives-buyukHarf.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-ciftBoslukTek.directive.mjs +69 -83
- package/fesm2022/limitng-directives-ciftBoslukTek.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-dirty.directive.mjs +34 -70
- package/fesm2022/limitng-directives-dirty.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-disable.directive.mjs +155 -289
- package/fesm2022/limitng-directives-disable.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-flexBasis.directive.mjs +63 -187
- package/fesm2022/limitng-directives-flexBasis.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-ilkHarfBuyuk.directive.mjs +69 -83
- package/fesm2022/limitng-directives-ilkHarfBuyuk.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-imleciBasaAl.directive.mjs +45 -56
- package/fesm2022/limitng-directives-imleciBasaAl.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-kodAlani.directive.mjs +93 -106
- package/fesm2022/limitng-directives-kodAlani.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-maksimumUzunluk.directive.mjs +71 -106
- package/fesm2022/limitng-directives-maksimumUzunluk.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-okTuslariylaIcerdeGezin.directive.mjs +28 -44
- package/fesm2022/limitng-directives-okTuslariylaIcerdeGezin.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-sagSolBoslukSil.directive.mjs +68 -82
- package/fesm2022/limitng-directives-sagSolBoslukSil.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-standartAlan.directive.mjs +83 -100
- package/fesm2022/limitng-directives-standartAlan.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-sutunGenisligi.directive.mjs +96 -255
- package/fesm2022/limitng-directives-sutunGenisligi.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-translate-key.directive.ts.mjs +37 -52
- package/fesm2022/limitng-directives-translate-key.directive.ts.mjs.map +1 -1
- package/fesm2022/limitng-directives-tumBoslukSil.directive.mjs +69 -83
- package/fesm2022/limitng-directives-tumBoslukSil.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives-tumIlkHarfBuyuk.directive.mjs +70 -93
- package/fesm2022/limitng-directives-tumIlkHarfBuyuk.directive.mjs.map +1 -1
- package/fesm2022/limitng-directives.mjs +1046 -1747
- package/fesm2022/limitng-directives.mjs.map +1 -1
- package/fesm2022/limitng-filtre-bar.mjs +90 -241
- package/fesm2022/limitng-filtre-bar.mjs.map +1 -1
- package/fesm2022/limitng-geri-ileri-detay.mjs +229 -331
- package/fesm2022/limitng-geri-ileri-detay.mjs.map +1 -1
- package/fesm2022/limitng-geri-ileri-liste.mjs +281 -378
- package/fesm2022/limitng-geri-ileri-liste.mjs.map +1 -1
- package/fesm2022/limitng-pipes-ayAdiPipe.mjs +40 -54
- package/fesm2022/limitng-pipes-ayAdiPipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-boolToPlus.pipe.mjs +23 -42
- package/fesm2022/limitng-pipes-boolToPlus.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-boolToPlusMinus.pipe.mjs +23 -42
- package/fesm2022/limitng-pipes-boolToPlusMinus.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-dateToText.pipe.mjs +24 -43
- package/fesm2022/limitng-pipes-dateToText.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-evetHayir.pipe.mjs +33 -50
- package/fesm2022/limitng-pipes-evetHayir.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-global-filter-formatter.pipe.mjs +36 -51
- package/fesm2022/limitng-pipes-global-filter-formatter.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-mecraTuru.pipe.mjs +24 -43
- package/fesm2022/limitng-pipes-mecraTuru.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-safe.pipe.mjs +34 -53
- package/fesm2022/limitng-pipes-safe.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-toSeverity.pipe.mjs +30 -50
- package/fesm2022/limitng-pipes-toSeverity.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes-tooltip-formatter.pipe.mjs +47 -56
- package/fesm2022/limitng-pipes-tooltip-formatter.pipe.mjs.map +1 -1
- package/fesm2022/limitng-pipes.mjs +5 -1
- package/fesm2022/limitng-pipes.mjs.map +1 -1
- package/fesm2022/limitng-rapor-kart-models.mjs +23 -18
- package/fesm2022/limitng-rapor-kart-models.mjs.map +1 -1
- package/fesm2022/limitng-rapor-kart.mjs +58 -215
- package/fesm2022/limitng-rapor-kart.mjs.map +1 -1
- package/fesm2022/limitng-sol-buyuk-kart.mjs +37 -184
- package/fesm2022/limitng-sol-buyuk-kart.mjs.map +1 -1
- package/fesm2022/limitng-sol-kucuk-kart.mjs +32 -150
- package/fesm2022/limitng-sol-kucuk-kart.mjs.map +1 -1
- package/fesm2022/limitng-yatay-baslikli-panel.mjs +49 -231
- package/fesm2022/limitng-yatay-baslikli-panel.mjs.map +1 -1
- package/fesm2022/limitng.mjs +11 -6
- package/fesm2022/limitng.mjs.map +1 -0
- package/package.json +1 -1
- package/types/limitng-alt-buyuk-kart.d.ts +20 -48
- package/types/limitng-alt-buyuk-kart.d.ts.map +1 -1
- package/types/limitng-alt-kucuk-kart.d.ts +15 -43
- package/types/limitng-alt-kucuk-kart.d.ts.map +1 -1
- package/types/limitng-api-models-bildirimler.d.ts +32 -29
- package/types/limitng-api-models-bildirimler.d.ts.map +1 -1
- package/types/limitng-api-models-enums.d.ts +391 -389
- package/types/limitng-api-models-enums.d.ts.map +1 -1
- package/types/limitng-api-models-fourDConstants.d.ts +85 -83
- package/types/limitng-api-models-fourDConstants.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-izinislemleri-izindetaylari.d.ts +27 -23
- package/types/limitng-api-models-kisisel-izinislemleri-izindetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-izinislemleri-izinfiltre.d.ts +13 -10
- package/types/limitng-api-models-kisisel-izinislemleri-izinfiltre.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-izinislemleri-izinguncelle.d.ts +8 -5
- package/types/limitng-api-models-kisisel-izinislemleri-izinguncelle.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-izinislemleri-izinliste.d.ts +27 -24
- package/types/limitng-api-models-kisisel-izinislemleri-izinliste.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-izinislemleri.d.ts +3 -3
- package/types/limitng-api-models-kisisel-izinislemleri.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafdetaylari.d.ts +61 -57
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafdetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-masrafislemleri-masraffiltre.d.ts +14 -11
- package/types/limitng-api-models-kisisel-masrafislemleri-masraffiltre.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafguncelle.d.ts +9 -6
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafguncelle.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafliste.d.ts +74 -70
- package/types/limitng-api-models-kisisel-masrafislemleri-masrafliste.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-masrafislemleri.d.ts +3 -3
- package/types/limitng-api-models-kisisel-masrafislemleri.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-onayislemleri-onaydetaylari.d.ts +74 -71
- package/types/limitng-api-models-kisisel-onayislemleri-onaydetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-onayislemleri-onayfiltre.d.ts +33 -30
- package/types/limitng-api-models-kisisel-onayislemleri-onayfiltre.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-onayislemleri-onayguncelle.d.ts +9 -7
- package/types/limitng-api-models-kisisel-onayislemleri-onayguncelle.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-onayislemleri-onayliste.d.ts +32 -30
- package/types/limitng-api-models-kisisel-onayislemleri-onayliste.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel-onayislemleri.d.ts +3 -3
- package/types/limitng-api-models-kisisel-onayislemleri.d.ts.map +1 -1
- package/types/limitng-api-models-kisisel.d.ts +3 -3
- package/types/limitng-api-models-kisisel.d.ts.map +1 -1
- package/types/limitng-api-models-logbook.d.ts +103 -100
- package/types/limitng-api-models-logbook.d.ts.map +1 -1
- package/types/limitng-api-models-login.d.ts +55 -52
- package/types/limitng-api-models-login.d.ts.map +1 -1
- package/types/limitng-api-models-onay-onayagonderdetaylari.d.ts +65 -61
- package/types/limitng-api-models-onay-onayagonderdetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-onay-onaybilgi.d.ts +5 -3
- package/types/limitng-api-models-onay-onaybilgi.d.ts.map +1 -1
- package/types/limitng-api-models-onay.d.ts +3 -3
- package/types/limitng-api-models-onay.d.ts.map +1 -1
- package/types/limitng-api-models-ortak.d.ts +244 -240
- package/types/limitng-api-models-ortak.d.ts.map +1 -1
- package/types/limitng-api-models-ozet-ozetdata.d.ts +19 -16
- package/types/limitng-api-models-ozet-ozetdata.d.ts.map +1 -1
- package/types/limitng-api-models-ozet-ozetkartalan.d.ts +13 -11
- package/types/limitng-api-models-ozet-ozetkartalan.d.ts.map +1 -1
- package/types/limitng-api-models-ozet.d.ts +3 -3
- package/types/limitng-api-models-ozet.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-izinraporu-izinrapordetaylari.d.ts +16 -13
- package/types/limitng-api-models-raporlar-izinraporu-izinrapordetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-izinraporu-izinraporliste.d.ts +17 -14
- package/types/limitng-api-models-raporlar-izinraporu-izinraporliste.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-izinraporu.d.ts +3 -3
- package/types/limitng-api-models-raporlar-izinraporu.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-listedensec.d.ts +24 -21
- package/types/limitng-api-models-raporlar-listedensec.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-rapordetaylari.d.ts +55 -53
- package/types/limitng-api-models-raporlar-rapordetaylari.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-raporzamanlama.d.ts +44 -41
- package/types/limitng-api-models-raporlar-raporzamanlama.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar-tablodansec.d.ts +26 -23
- package/types/limitng-api-models-raporlar-tablodansec.d.ts.map +1 -1
- package/types/limitng-api-models-raporlar.d.ts +3 -3
- package/types/limitng-api-models-raporlar.d.ts.map +1 -1
- package/types/limitng-api-models-sistemozet.d.ts +173 -169
- package/types/limitng-api-models-sistemozet.d.ts.map +1 -1
- package/types/limitng-api-models-sistemraporlari.d.ts +13 -9
- package/types/limitng-api-models-sistemraporlari.d.ts.map +1 -1
- package/types/limitng-api-models-timeSheet-timeSheetGirisListeler.d.ts +299 -295
- package/types/limitng-api-models-timeSheet-timeSheetGirisListeler.d.ts.map +1 -1
- package/types/limitng-api-models-timeSheet-timeSheetLog.d.ts +15 -12
- package/types/limitng-api-models-timeSheet-timeSheetLog.d.ts.map +1 -1
- package/types/limitng-api-models-timeSheet-timeSheetOzetListe.d.ts +20 -17
- package/types/limitng-api-models-timeSheet-timeSheetOzetListe.d.ts.map +1 -1
- package/types/limitng-api-models-timeSheet-timeSheetSecenekler.d.ts +30 -28
- package/types/limitng-api-models-timeSheet-timeSheetSecenekler.d.ts.map +1 -1
- package/types/limitng-api-models-timeSheet.d.ts +3 -3
- package/types/limitng-api-models-timeSheet.d.ts.map +1 -1
- package/types/limitng-api-models-xl-xlConfig.d.ts +199 -196
- package/types/limitng-api-models-xl-xlConfig.d.ts.map +1 -1
- package/types/limitng-api-models-xl-xlConstants.d.ts +61 -59
- package/types/limitng-api-models-xl-xlConstants.d.ts.map +1 -1
- package/types/limitng-api-models-xl-xlOptions.d.ts +26 -23
- package/types/limitng-api-models-xl-xlOptions.d.ts.map +1 -1
- package/types/limitng-api-models-xl-xlTools.d.ts +5 -2
- package/types/limitng-api-models-xl-xlTools.d.ts.map +1 -1
- package/types/limitng-api-models-xl.d.ts +3 -3
- package/types/limitng-api-models-xl.d.ts.map +1 -1
- package/types/limitng-api-models.d.ts +3 -3
- package/types/limitng-api-models.d.ts.map +1 -1
- package/types/limitng-api.d.ts +68 -65
- package/types/limitng-api.d.ts.map +1 -1
- package/types/limitng-blob-response-handler.d.ts +298 -285
- package/types/limitng-blob-response-handler.d.ts.map +1 -1
- package/types/limitng-dikey-baslikli-panel-sol.d.ts +12 -30
- package/types/limitng-dikey-baslikli-panel-sol.d.ts.map +1 -1
- package/types/limitng-dikey-baslikli-panel.d.ts +12 -30
- package/types/limitng-dikey-baslikli-panel.d.ts.map +1 -1
- package/types/limitng-directives-adAlani.directive.d.ts +27 -26
- package/types/limitng-directives-adAlani.directive.d.ts.map +1 -1
- package/types/limitng-directives-adresAlani.directive.d.ts +27 -26
- package/types/limitng-directives-adresAlani.directive.d.ts.map +1 -1
- package/types/limitng-directives-buyukHarf.directive.d.ts +25 -24
- package/types/limitng-directives-buyukHarf.directive.d.ts.map +1 -1
- package/types/limitng-directives-ciftBoslukTek.directive.d.ts +25 -24
- package/types/limitng-directives-ciftBoslukTek.directive.d.ts.map +1 -1
- package/types/limitng-directives-dirty.directive.d.ts +12 -15
- package/types/limitng-directives-dirty.directive.d.ts.map +1 -1
- package/types/limitng-directives-disable.directive.d.ts +38 -40
- package/types/limitng-directives-disable.directive.d.ts.map +1 -1
- package/types/limitng-directives-flexBasis.directive.d.ts +24 -39
- package/types/limitng-directives-flexBasis.directive.d.ts.map +1 -1
- package/types/limitng-directives-ilkHarfBuyuk.directive.d.ts +25 -24
- package/types/limitng-directives-ilkHarfBuyuk.directive.d.ts.map +1 -1
- package/types/limitng-directives-imleciBasaAl.directive.d.ts +14 -11
- package/types/limitng-directives-imleciBasaAl.directive.d.ts.map +1 -1
- package/types/limitng-directives-kodAlani.directive.d.ts +29 -26
- package/types/limitng-directives-kodAlani.directive.d.ts.map +1 -1
- package/types/limitng-directives-maksimumUzunluk.directive.d.ts +26 -31
- package/types/limitng-directives-maksimumUzunluk.directive.d.ts.map +1 -1
- package/types/limitng-directives-okTuslariylaIcerdeGezin.directive.d.ts +9 -6
- package/types/limitng-directives-okTuslariylaIcerdeGezin.directive.d.ts.map +1 -1
- package/types/limitng-directives-sagSolBoslukSil.directive.d.ts +25 -24
- package/types/limitng-directives-sagSolBoslukSil.directive.d.ts.map +1 -1
- package/types/limitng-directives-standartAlan.directive.d.ts +27 -26
- package/types/limitng-directives-standartAlan.directive.d.ts.map +1 -1
- package/types/limitng-directives-sutunGenisligi.directive.d.ts +32 -53
- package/types/limitng-directives-sutunGenisligi.directive.d.ts.map +1 -1
- package/types/limitng-directives-translate-key.directive.ts.d.ts +12 -9
- package/types/limitng-directives-translate-key.directive.ts.d.ts.map +1 -1
- package/types/limitng-directives-tumBoslukSil.directive.d.ts +25 -24
- package/types/limitng-directives-tumBoslukSil.directive.d.ts.map +1 -1
- package/types/limitng-directives-tumIlkHarfBuyuk.directive.d.ts +26 -26
- package/types/limitng-directives-tumIlkHarfBuyuk.directive.d.ts.map +1 -1
- package/types/limitng-directives.d.ts +323 -386
- package/types/limitng-directives.d.ts.map +1 -1
- package/types/limitng-filtre-bar.d.ts +30 -55
- package/types/limitng-filtre-bar.d.ts.map +1 -1
- package/types/limitng-geri-ileri-detay.d.ts +57 -59
- package/types/limitng-geri-ileri-detay.d.ts.map +1 -1
- package/types/limitng-geri-ileri-liste.d.ts +64 -66
- package/types/limitng-geri-ileri-liste.d.ts.map +1 -1
- package/types/limitng-pipes-ayAdiPipe.d.ts +11 -8
- package/types/limitng-pipes-ayAdiPipe.d.ts.map +1 -1
- package/types/limitng-pipes-boolToPlus.pipe.d.ts +10 -7
- package/types/limitng-pipes-boolToPlus.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-boolToPlusMinus.pipe.d.ts +10 -7
- package/types/limitng-pipes-boolToPlusMinus.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-dateToText.pipe.d.ts +10 -7
- package/types/limitng-pipes-dateToText.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-evetHayir.pipe.d.ts +12 -9
- package/types/limitng-pipes-evetHayir.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-global-filter-formatter.pipe.d.ts +11 -8
- package/types/limitng-pipes-global-filter-formatter.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-mecraTuru.pipe.d.ts +10 -7
- package/types/limitng-pipes-mecraTuru.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-safe.pipe.d.ts +12 -9
- package/types/limitng-pipes-safe.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-toSeverity.pipe.d.ts +12 -8
- package/types/limitng-pipes-toSeverity.pipe.d.ts.map +1 -1
- package/types/limitng-pipes-tooltip-formatter.pipe.d.ts +11 -8
- package/types/limitng-pipes-tooltip-formatter.pipe.d.ts.map +1 -1
- package/types/limitng-pipes.d.ts +3 -3
- package/types/limitng-pipes.d.ts.map +1 -1
- package/types/limitng-rapor-kart-models.d.ts +17 -14
- package/types/limitng-rapor-kart-models.d.ts.map +1 -1
- package/types/limitng-rapor-kart.d.ts +24 -36
- package/types/limitng-rapor-kart.d.ts.map +1 -1
- package/types/limitng-sol-buyuk-kart.d.ts +19 -47
- package/types/limitng-sol-buyuk-kart.d.ts.map +1 -1
- package/types/limitng-sol-kucuk-kart.d.ts +14 -42
- package/types/limitng-sol-kucuk-kart.d.ts.map +1 -1
- package/types/limitng-yatay-baslikli-panel.d.ts +22 -66
- package/types/limitng-yatay-baslikli-panel.d.ts.map +1 -1
- package/types/limitng.d.ts +7 -6
- package/types/limitng.d.ts.map +1 -0
|
@@ -1,1006 +1,1278 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import saveAs from
|
|
4
|
-
import { TranslateService } from
|
|
5
|
-
import { GlobalFunctions } from
|
|
6
|
-
import ExcelJS from
|
|
7
|
-
import {
|
|
8
|
-
import { XLHAlign, XLVAlign } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import saveAs from 'file-saver';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { GlobalFunctions } from 'limitng/api';
|
|
6
|
+
import ExcelJS from 'exceljs';
|
|
7
|
+
import { VariableType, NumberFormatlar, FontStyle } from 'limitng/api/models/fourDConstants';
|
|
8
|
+
import { XLHAlign, XLVAlign } from 'limitng/api/models/xl/xlConstants';
|
|
9
|
+
|
|
10
|
+
class ExcelRaporuSonuc {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.book = {
|
|
13
|
+
author: 'MedPlan',
|
|
14
|
+
activeSheetNo: 1
|
|
15
|
+
};
|
|
16
|
+
this.defaultFont = {
|
|
17
|
+
name: 'Calibri',
|
|
18
|
+
size: 11
|
|
19
|
+
};
|
|
20
|
+
this.currentTableStyle = '';
|
|
21
|
+
this.sifirlariBasmaSayi = false;
|
|
22
|
+
this.sifirlariBasmaTarih = false;
|
|
23
|
+
// Yeni format: her sheet kendi tablolarını, üst bilgilerini ve notlarını taşır
|
|
24
|
+
this.sheets = [];
|
|
25
|
+
this.window = {
|
|
26
|
+
displayGridLines: false
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class JsonToExcelTableBuilder {
|
|
32
|
+
constructor(table) {
|
|
33
|
+
this.table = table;
|
|
34
|
+
}
|
|
35
|
+
addColumn(column) {
|
|
36
|
+
this.table.columns.push({
|
|
37
|
+
arrayType: VariableType.text,
|
|
38
|
+
...column
|
|
39
|
+
});
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
setRows(rows) {
|
|
43
|
+
this.table.collection = rows;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
setStartColumn(sol) {
|
|
47
|
+
this.table.sol = sol;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
setStartRow(ust) {
|
|
51
|
+
this.table.ust = ust;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
getColumnSayisi() {
|
|
55
|
+
return this.table.columns.length;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class JsonToExcelSheetBuilder {
|
|
59
|
+
constructor(sheet) {
|
|
60
|
+
this.sheet = sheet;
|
|
61
|
+
}
|
|
62
|
+
addTable(rows, options = {}) {
|
|
63
|
+
const table = {
|
|
64
|
+
collection: rows,
|
|
65
|
+
columns: [],
|
|
66
|
+
...(options.autoFit !== undefined && { autoFit: options.autoFit }),
|
|
67
|
+
...(options.data && { data: options.data }),
|
|
68
|
+
...(options.footer && { footer: options.footer }),
|
|
69
|
+
...(options.header && { header: options.header }),
|
|
70
|
+
...(options.sol !== undefined && { sol: options.sol }),
|
|
71
|
+
...(options.toplamEtiketi !== undefined && { toplamEtiketi: options.toplamEtiketi }),
|
|
72
|
+
...(options.toplamSatiri !== undefined && { toplamSatiri: options.toplamSatiri }),
|
|
73
|
+
...(options.ust !== undefined && { ust: options.ust })
|
|
74
|
+
};
|
|
75
|
+
this.sheet.tables ??= [];
|
|
76
|
+
this.sheet.tables.push(table);
|
|
77
|
+
return new JsonToExcelTableBuilder(table);
|
|
78
|
+
}
|
|
79
|
+
addUstBilgi(ustBilgi, font) {
|
|
80
|
+
this.sheet.ustBilgiler ??= [];
|
|
81
|
+
this.sheet.ustBilgiler.push(JsonToExcelParser.ustBilgiEkle(ustBilgi, font));
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
getUstBilgiSayisi() {
|
|
85
|
+
return this.sheet.ustBilgiler?.length ?? 0;
|
|
86
|
+
}
|
|
87
|
+
getSheetNo() {
|
|
88
|
+
return this.sheet.sheetNo;
|
|
89
|
+
}
|
|
90
|
+
setSheetName(sheetName) {
|
|
91
|
+
this.sheet.sheetName = sheetName;
|
|
92
|
+
return this;
|
|
93
|
+
}
|
|
94
|
+
setZoom(zoom) {
|
|
95
|
+
this.sheet.zoom = zoom;
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
class JsonToExcelReportBuilder {
|
|
100
|
+
constructor() {
|
|
101
|
+
this.sonuc = new ExcelRaporuSonuc();
|
|
102
|
+
}
|
|
103
|
+
addSheet(sheetName, options = {}) {
|
|
104
|
+
const sheet = {
|
|
105
|
+
sheetName,
|
|
106
|
+
sheetNo: this.sonuc.sheets.length + 1,
|
|
107
|
+
...(options.pageSetup && { pageSetup: options.pageSetup }),
|
|
108
|
+
...(options.zoom !== undefined && { zoom: options.zoom })
|
|
109
|
+
};
|
|
110
|
+
this.sonuc.sheets.push(sheet);
|
|
111
|
+
return new JsonToExcelSheetBuilder(sheet);
|
|
112
|
+
}
|
|
113
|
+
build() {
|
|
114
|
+
return this.sonuc;
|
|
115
|
+
}
|
|
116
|
+
setAuthor(author) {
|
|
117
|
+
this.sonuc.book.author = author;
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
setCurrentTableStyle(currentTableStyle) {
|
|
121
|
+
this.sonuc.currentTableStyle = currentTableStyle;
|
|
122
|
+
return this;
|
|
123
|
+
}
|
|
124
|
+
setSubject(subject) {
|
|
125
|
+
this.sonuc.book.subject = subject;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
class JsonToExcelParser {
|
|
130
|
+
static async indir(sonuc, dosyaAdi) {
|
|
131
|
+
const blob = await this.blobOlustur(sonuc);
|
|
132
|
+
const normalizeDosyaAdi = this.dosyaAdiDuzenle(dosyaAdi);
|
|
133
|
+
saveAs(blob, `${normalizeDosyaAdi}.xlsx`);
|
|
134
|
+
}
|
|
135
|
+
static async blobOlustur(sonuc) {
|
|
136
|
+
const workbook = this.workbookOlustur(sonuc);
|
|
137
|
+
const buffer = await workbook.xlsx.writeBuffer();
|
|
138
|
+
return new Blob([buffer], {
|
|
139
|
+
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
static standartPageSetupOlustur() {
|
|
143
|
+
return {
|
|
144
|
+
bottomMargin: 1,
|
|
145
|
+
centerHorizontally: true,
|
|
146
|
+
centerVertically: true,
|
|
147
|
+
fitToPagesTall: 1,
|
|
148
|
+
fitToPagesWide: 1,
|
|
149
|
+
leftMargin: 1,
|
|
150
|
+
orientation: 2,
|
|
151
|
+
rightMargin: 1,
|
|
152
|
+
topMargin: 1
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
static ustBilgiEkle(ustBilgi, font) {
|
|
156
|
+
return font ? { font, ustBilgi } : { ustBilgi };
|
|
157
|
+
}
|
|
158
|
+
static raporOlustur() {
|
|
159
|
+
return new JsonToExcelReportBuilder();
|
|
160
|
+
}
|
|
161
|
+
static workbookOlustur(sonuc) {
|
|
162
|
+
const workbook = new ExcelJS.Workbook();
|
|
163
|
+
workbook.created = new Date();
|
|
164
|
+
workbook.calcProperties.fullCalcOnLoad = true;
|
|
165
|
+
const gridLinesGorunur = sonuc.window.displayGridLines;
|
|
166
|
+
if (this.yeniYapiMi(sonuc)) {
|
|
167
|
+
workbook.creator = sonuc.book.author || 'MedPlan';
|
|
168
|
+
workbook.subject = '';
|
|
169
|
+
workbook.description = '';
|
|
170
|
+
this.yeniFormatSheetsYaz(workbook, sonuc, gridLinesGorunur);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
workbook.creator = sonuc.book.author || 'MedPlan';
|
|
174
|
+
workbook.subject = this.konuVer(sonuc.book, sonuc.ustBilgiler?.[0]?.ustBilgi);
|
|
175
|
+
workbook.description = sonuc.book.comments || '';
|
|
176
|
+
this.eskiFormatSheetsYaz(workbook, sonuc, gridLinesGorunur);
|
|
177
|
+
}
|
|
178
|
+
this.aktifSayfayiAyarla(workbook, sonuc.book.activeSheetNo, workbook.worksheets.length);
|
|
179
|
+
return workbook;
|
|
180
|
+
}
|
|
181
|
+
static yeniYapiMi(sonuc) {
|
|
182
|
+
const ilkSheet = sonuc.sheets[0];
|
|
183
|
+
if (Array.isArray(ilkSheet?.tables)) {
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
const runtimeSonuc = sonuc;
|
|
187
|
+
return !Array.isArray(runtimeSonuc.tables);
|
|
188
|
+
}
|
|
189
|
+
static yeniFormatSheetsYaz(workbook, sonuc, gridLinesGorunur) {
|
|
190
|
+
for (let index = 0; index < sonuc.sheets.length; index++) {
|
|
191
|
+
const sheet = sonuc.sheets[index];
|
|
192
|
+
const sheetAdi = this.sayfaAdiDuzenle(sheet.sheetName || 'Rapor', index + 1);
|
|
193
|
+
const worksheet = workbook.addWorksheet(sheetAdi);
|
|
194
|
+
const zoomScale = sheet.zoom && sheet.zoom > 0 ? sheet.zoom : undefined;
|
|
195
|
+
worksheet.views = [{ showGridLines: gridLinesGorunur, ...(zoomScale !== undefined && { zoomScale }) }];
|
|
196
|
+
this.sayfaDuzeniniBelirle(worksheet, sheet);
|
|
197
|
+
const ustBilgiler = sheet.ustBilgiler ?? [];
|
|
198
|
+
this.yeniFormatUstBilgileriYaz(worksheet, ustBilgiler, sonuc.defaultFont);
|
|
199
|
+
let sonSatir = ustBilgiler.length + 1;
|
|
200
|
+
for (const table of sheet.tables ?? []) {
|
|
201
|
+
sonSatir = Math.max(sonSatir, this.tabloyuYaz(worksheet, sonuc, table));
|
|
202
|
+
}
|
|
203
|
+
if (sheet.notlar?.length) {
|
|
204
|
+
this.notlariYazList(worksheet, sheet.notlar, sheet.not?.font, sonSatir + 2, sonuc.defaultFont);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (sonuc.sheets.length === 0) {
|
|
208
|
+
const worksheet = workbook.addWorksheet('Rapor');
|
|
209
|
+
worksheet.views = [{ showGridLines: gridLinesGorunur }];
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
static eskiFormatSheetsYaz(workbook, sonuc, gridLinesGorunur) {
|
|
213
|
+
const tablesBySheet = this.sheetBazliTablolar(sonuc);
|
|
214
|
+
const ustBilgiler = sonuc.ustBilgiler ?? [];
|
|
215
|
+
const notlar = sonuc.notlar ?? [];
|
|
216
|
+
for (const sheetGrup of tablesBySheet) {
|
|
217
|
+
const worksheet = workbook.addWorksheet(sheetGrup.sheetName);
|
|
218
|
+
worksheet.views = [{ showGridLines: gridLinesGorunur }];
|
|
219
|
+
this.ustBilgileriYaz(worksheet, ustBilgiler, sonuc.defaultFont);
|
|
220
|
+
let sonSatir = 1;
|
|
221
|
+
for (const table of sheetGrup.tables) {
|
|
222
|
+
sonSatir = Math.max(sonSatir, this.tabloyuYaz(worksheet, sonuc, table));
|
|
223
|
+
}
|
|
224
|
+
this.notlariYazList(worksheet, notlar, sonuc.not?.font, sonSatir + 2, sonuc.defaultFont);
|
|
225
|
+
}
|
|
226
|
+
if (tablesBySheet.length === 0) {
|
|
227
|
+
const worksheet = workbook.addWorksheet(this.bosRaporSheetAdiniVer(sonuc));
|
|
228
|
+
worksheet.views = [{ showGridLines: gridLinesGorunur }];
|
|
229
|
+
this.ustBilgileriYaz(worksheet, ustBilgiler, sonuc.defaultFont);
|
|
230
|
+
this.notlariYazList(worksheet, notlar, sonuc.not?.font, ustBilgiler.length + 2, sonuc.defaultFont);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
static sheetBazliTablolar(sonuc) {
|
|
234
|
+
const grouped = new Map();
|
|
235
|
+
for (const table of sonuc.tables ?? []) {
|
|
236
|
+
const sheetNo = this.tableSheetNoVer(table);
|
|
237
|
+
const sheetKey = this.sheetKeyVer(table, sheetNo, grouped.size + 1);
|
|
238
|
+
const existing = grouped.get(sheetKey);
|
|
239
|
+
if (existing) {
|
|
240
|
+
existing.tables.push(table);
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
grouped.set(sheetKey, {
|
|
244
|
+
sheetName: this.sheetAdiniBelirle(sonuc, table, grouped.size + 1, sheetNo),
|
|
245
|
+
...(sheetNo !== undefined && { sheetNo }),
|
|
246
|
+
tables: [table]
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return Array.from(grouped.values()).sort((a, b) => this.sheetGrupSirasiVer(a) - this.sheetGrupSirasiVer(b));
|
|
250
|
+
}
|
|
251
|
+
static tableSheetNoVer(table) {
|
|
252
|
+
const runtimeTable = table;
|
|
253
|
+
return runtimeTable.sheetNo;
|
|
254
|
+
}
|
|
255
|
+
static sheetKeyVer(table, sheetNo, index) {
|
|
256
|
+
if (sheetNo !== undefined) {
|
|
257
|
+
return `sheet-no-${sheetNo}`;
|
|
258
|
+
}
|
|
259
|
+
const eskiSheetName = table.sheetName?.trim();
|
|
260
|
+
if (eskiSheetName) {
|
|
261
|
+
return `sheet-name-${eskiSheetName}`;
|
|
262
|
+
}
|
|
263
|
+
return `sheet-index-${index}`;
|
|
264
|
+
}
|
|
265
|
+
static sheetAdiniBelirle(sonuc, table, index, sheetNo) {
|
|
266
|
+
const jsonSheet = this.jsonSheetBul(sonuc.sheets, sheetNo, index);
|
|
267
|
+
if (jsonSheet?.sheetName?.trim()) {
|
|
268
|
+
return this.sayfaAdiDuzenle(jsonSheet.sheetName, index);
|
|
269
|
+
}
|
|
270
|
+
return this.sayfaAdiDuzenle(table.sheetName || 'Rapor', index);
|
|
271
|
+
}
|
|
272
|
+
static jsonSheetBul(sheets, sheetNo, index) {
|
|
273
|
+
if (sheetNo !== undefined) {
|
|
274
|
+
return sheets.find(sheet => sheet.sheetNo === sheetNo);
|
|
275
|
+
}
|
|
276
|
+
return sheets.find(sheet => sheet.sheetNo === index) ?? sheets[index - 1];
|
|
277
|
+
}
|
|
278
|
+
static konuVer(book, ilkUstBilgi) {
|
|
279
|
+
return book.subject || ilkUstBilgi || 'Rapor';
|
|
280
|
+
}
|
|
281
|
+
static bosRaporSheetAdiniVer(sonuc) {
|
|
282
|
+
const ilkSheetAdi = sonuc.sheets[0]?.sheetName;
|
|
283
|
+
return this.sayfaAdiDuzenle(ilkSheetAdi || 'Rapor', 1);
|
|
284
|
+
}
|
|
285
|
+
static aktifSayfayiAyarla(workbook, activeSheetNo, toplamSheetSayisi) {
|
|
286
|
+
const aktifTab = this.aktifTabNoVer(activeSheetNo, toplamSheetSayisi);
|
|
287
|
+
if (aktifTab === undefined) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
workbook.views = [{
|
|
291
|
+
activeTab: aktifTab,
|
|
292
|
+
firstSheet: aktifTab,
|
|
293
|
+
height: 20000,
|
|
294
|
+
visibility: 'visible',
|
|
295
|
+
width: 20000,
|
|
296
|
+
x: 0,
|
|
297
|
+
y: 0
|
|
298
|
+
}];
|
|
299
|
+
}
|
|
300
|
+
static aktifTabNoVer(activeSheetNo, toplamSheetSayisi) {
|
|
301
|
+
if (toplamSheetSayisi <= 0) {
|
|
302
|
+
return undefined;
|
|
303
|
+
}
|
|
304
|
+
const aktifSheetNo = Number.isFinite(activeSheetNo) && activeSheetNo > 0 ? activeSheetNo : 1;
|
|
305
|
+
return Math.min(aktifSheetNo - 1, toplamSheetSayisi - 1);
|
|
306
|
+
}
|
|
307
|
+
static sheetGrupSirasiVer(sheetGrup) {
|
|
308
|
+
return sheetGrup.sheetNo ?? Number.MAX_SAFE_INTEGER;
|
|
309
|
+
}
|
|
310
|
+
static yeniFormatUstBilgileriYaz(worksheet, ustBilgiler, defaultFont) {
|
|
311
|
+
for (let index = 0; index < ustBilgiler.length; index++) {
|
|
312
|
+
const ustBilgi = ustBilgiler[index];
|
|
313
|
+
const hucre = worksheet.getCell(index + 1, 1);
|
|
314
|
+
hucre.value = ustBilgi.ustBilgi;
|
|
315
|
+
this.hucreFontunuUygula(hucre, ustBilgi.font, defaultFont);
|
|
316
|
+
hucre.alignment = { horizontal: 'left', vertical: 'middle', wrapText: false };
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
static ustBilgileriYaz(worksheet, ustBilgiler, defaultFont) {
|
|
320
|
+
for (const ustBilgi of ustBilgiler) {
|
|
321
|
+
const hucre = worksheet.getCell(ustBilgi.rowNo ?? 1, 1);
|
|
322
|
+
hucre.value = ustBilgi.ustBilgi;
|
|
323
|
+
this.hucreFontunuUygula(hucre, ustBilgi.font, defaultFont);
|
|
324
|
+
hucre.alignment = { horizontal: 'left', vertical: 'middle', wrapText: false };
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
static notlariYazList(worksheet, notlar, notFont, baslangicSatiri, defaultFont) {
|
|
328
|
+
let satirNo = baslangicSatiri;
|
|
329
|
+
for (const not of notlar) {
|
|
330
|
+
const cell = worksheet.getCell(satirNo, 1);
|
|
331
|
+
cell.value = not;
|
|
332
|
+
this.hucreFontunuUygula(cell, notFont, defaultFont);
|
|
333
|
+
cell.alignment = { vertical: 'middle', wrapText: true };
|
|
334
|
+
satirNo++;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
static sayfaDuzeniniBelirle(worksheet, sheet) {
|
|
338
|
+
const { pageSetup } = sheet;
|
|
339
|
+
if (!pageSetup) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (pageSetup.orientation === 2) {
|
|
343
|
+
worksheet.pageSetup.orientation = 'landscape';
|
|
344
|
+
}
|
|
345
|
+
else if (pageSetup.orientation === 1) {
|
|
346
|
+
worksheet.pageSetup.orientation = 'portrait';
|
|
347
|
+
}
|
|
348
|
+
const hasMargin = pageSetup.leftMargin !== undefined ||
|
|
349
|
+
pageSetup.rightMargin !== undefined ||
|
|
350
|
+
pageSetup.topMargin !== undefined ||
|
|
351
|
+
pageSetup.bottomMargin !== undefined ||
|
|
352
|
+
pageSetup.headerMargin !== undefined ||
|
|
353
|
+
pageSetup.footerMargin !== undefined;
|
|
354
|
+
if (hasMargin) {
|
|
355
|
+
worksheet.pageSetup.margins = {
|
|
356
|
+
left: pageSetup.leftMargin ?? 0.7,
|
|
357
|
+
right: pageSetup.rightMargin ?? 0.7,
|
|
358
|
+
top: pageSetup.topMargin ?? 0.75,
|
|
359
|
+
bottom: pageSetup.bottomMargin ?? 0.75,
|
|
360
|
+
header: pageSetup.headerMargin ?? 0.3,
|
|
361
|
+
footer: pageSetup.footerMargin ?? 0.3
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
if (pageSetup.centerHorizontally !== undefined) {
|
|
365
|
+
worksheet.pageSetup.horizontalCentered = pageSetup.centerHorizontally;
|
|
366
|
+
}
|
|
367
|
+
if (pageSetup.centerVertically !== undefined) {
|
|
368
|
+
worksheet.pageSetup.verticalCentered = pageSetup.centerVertically;
|
|
369
|
+
}
|
|
370
|
+
const fitTall = pageSetup.fitToPagesTall;
|
|
371
|
+
const fitWide = pageSetup.fitToPagesWide;
|
|
372
|
+
if (fitTall !== undefined || fitWide !== undefined || pageSetup.fitToPagesTAut || pageSetup.fitToPagesWAut) {
|
|
373
|
+
worksheet.pageSetup.fitToPage = true;
|
|
374
|
+
worksheet.pageSetup.fitToHeight = pageSetup.fitToPagesTAut ? 0 : (fitTall ?? 1);
|
|
375
|
+
worksheet.pageSetup.fitToWidth = pageSetup.fitToPagesWAut ? 0 : (fitWide ?? 1);
|
|
376
|
+
}
|
|
377
|
+
if (typeof pageSetup.zoom === 'number' && pageSetup.zoom > 0) {
|
|
378
|
+
worksheet.pageSetup.scale = pageSetup.zoom;
|
|
379
|
+
}
|
|
380
|
+
if (pageSetup.printArea) {
|
|
381
|
+
worksheet.pageSetup.printArea = pageSetup.printArea;
|
|
382
|
+
}
|
|
383
|
+
const pageHeader = this.baslikAltbilgiMetniOlustur(pageSetup.leftHeader, pageSetup.centerHeader, pageSetup.rightHeader);
|
|
384
|
+
const pageFooter = this.baslikAltbilgiMetniOlustur(pageSetup.leftFooter, pageSetup.centerFooter, pageSetup.rightFooter);
|
|
385
|
+
if (pageHeader) {
|
|
386
|
+
worksheet.headerFooter.oddHeader = pageHeader;
|
|
387
|
+
}
|
|
388
|
+
if (pageFooter) {
|
|
389
|
+
worksheet.headerFooter.oddFooter = pageFooter;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
static baslikAltbilgiMetniOlustur(sol, orta, sag) {
|
|
393
|
+
const parcalar = [];
|
|
394
|
+
if (sol) {
|
|
395
|
+
parcalar.push(`&L${sol}`);
|
|
396
|
+
}
|
|
397
|
+
if (orta) {
|
|
398
|
+
parcalar.push(`&C${orta}`);
|
|
399
|
+
}
|
|
400
|
+
if (sag) {
|
|
401
|
+
parcalar.push(`&R${sag}`);
|
|
402
|
+
}
|
|
403
|
+
return parcalar.length ? parcalar.join('') : undefined;
|
|
404
|
+
}
|
|
405
|
+
static tabloyuYaz(worksheet, sonuc, kaynakTable) {
|
|
406
|
+
const table = kaynakTable;
|
|
407
|
+
const toplamSatiriVar = table.toplamSatiri === true && table.collection.length > 0 && table.columns.length > 0;
|
|
408
|
+
if (!table.columns.length) {
|
|
409
|
+
return table.ust ?? 1;
|
|
410
|
+
}
|
|
411
|
+
const startRow = Math.max(1, table.ust ?? 1);
|
|
412
|
+
const startCol = Math.max(1, table.sol ?? 1);
|
|
413
|
+
const gecerliTableStyle = this.gecerliTableStyleVer(sonuc.currentTableStyle);
|
|
414
|
+
const headerTitlelari = table.columns.map(column => this.baslikMetniniHazirla(column.header.title || ''));
|
|
415
|
+
const gorunenBaslikMetinleri = headerTitlelari.map(title => title.replaceAll('\n', ' '));
|
|
416
|
+
const tabloKolonAdlari = this.benzersizKolonAdlariOlustur(gorunenBaslikMetinleri);
|
|
417
|
+
const headerFont = table.header?.font;
|
|
418
|
+
const uygulanacakHeaderFont = headerFont?.color ? headerFont : {
|
|
419
|
+
...headerFont,
|
|
420
|
+
color: 'FFFFFFFF'
|
|
421
|
+
};
|
|
422
|
+
const dataFont = table.data?.font;
|
|
423
|
+
const hiddenRowSet = new Set(table.hiddenRows ?? []);
|
|
424
|
+
const formulCeller = [];
|
|
425
|
+
const hucreFontRenkleri = [];
|
|
426
|
+
const satirlar = table.collection.map((rowData, rowIndex) => table.columns.map((column, colIndex) => {
|
|
427
|
+
const hazirHucre = this.hucreDegeriniHazirla(rowData, column, sonuc.sifirlariBasmaSayi);
|
|
428
|
+
hucreFontRenkleri[rowIndex] ??= [];
|
|
429
|
+
hucreFontRenkleri[rowIndex][colIndex] = hazirHucre.fontColorArgb;
|
|
430
|
+
if (hazirHucre.deger !== null && typeof hazirHucre.deger === 'object' && 'formula' in hazirHucre.deger) {
|
|
431
|
+
formulCeller.push({ rowIndex, colIndex, column, formula: hazirHucre.deger });
|
|
432
|
+
return '';
|
|
433
|
+
}
|
|
434
|
+
return hazirHucre.deger;
|
|
435
|
+
}));
|
|
436
|
+
const toplamHucreleri = toplamSatiriVar ? this.toplamHucreleriniHazirla(table) : [];
|
|
437
|
+
this.kolonGrubuYaz(worksheet, startRow, startCol, table);
|
|
438
|
+
const headerRow = worksheet.getRow(startRow);
|
|
439
|
+
const tableStyle = this.tableStyleDonustur(gecerliTableStyle);
|
|
440
|
+
const bosSatirEklendi = satirlar.length === 0;
|
|
441
|
+
const tabloSatirlari = bosSatirEklendi ? [table.columns.map(() => '')] : satirlar;
|
|
442
|
+
worksheet.addTable({
|
|
443
|
+
name: this.tabloAdiOlustur(worksheet.name, startRow, startCol),
|
|
444
|
+
ref: worksheet.getCell(startRow, startCol).address,
|
|
445
|
+
headerRow: true,
|
|
446
|
+
totalsRow: toplamSatiriVar,
|
|
447
|
+
...(tableStyle && { style: tableStyle }),
|
|
448
|
+
columns: tabloKolonAdlari.map((ad, index) => ({
|
|
449
|
+
name: ad,
|
|
450
|
+
filterButton: true,
|
|
451
|
+
...this.toplamSatiriEtiketiVer(toplamHucreleri[index]?.deger, index, this.sayisalKolonMu(table.columns[index]?.arrayType))
|
|
452
|
+
})),
|
|
453
|
+
rows: tabloSatirlari
|
|
454
|
+
});
|
|
455
|
+
if (bosSatirEklendi) {
|
|
456
|
+
worksheet.getRow(startRow + 1).hidden = true;
|
|
457
|
+
}
|
|
458
|
+
const genislikSatirlari = toplamHucreleri.length
|
|
459
|
+
? [...satirlar, toplamHucreleri.map(hucre => hucre.deger)]
|
|
460
|
+
: satirlar;
|
|
461
|
+
this.kolonGenislikleriniUygula(worksheet, startCol, table.columns, genislikSatirlari, table.autoFit);
|
|
462
|
+
for (let colIndex = 0; colIndex < table.columns.length; colIndex++) {
|
|
463
|
+
const column = table.columns[colIndex];
|
|
464
|
+
const cell = headerRow.getCell(startCol + colIndex);
|
|
465
|
+
cell.alignment = {
|
|
466
|
+
horizontal: this.yatayHizaDonustur(column.header.horizontalAlignment),
|
|
467
|
+
vertical: 'bottom',
|
|
468
|
+
wrapText: false
|
|
469
|
+
};
|
|
470
|
+
this.hucreFontunuUygula(cell, uygulanacakHeaderFont, sonuc.defaultFont);
|
|
471
|
+
}
|
|
472
|
+
for (let rowIndex = 0; rowIndex < table.collection.length; rowIndex++) {
|
|
473
|
+
const wsRow = worksheet.getRow(startRow + 1 + rowIndex);
|
|
474
|
+
const satir1Bazli = rowIndex + 1;
|
|
475
|
+
if (hiddenRowSet.has(satir1Bazli)) {
|
|
476
|
+
wsRow.hidden = true;
|
|
477
|
+
}
|
|
478
|
+
const rowHeight = table.rowHeights?.find(rh => rh.rowNo === satir1Bazli);
|
|
479
|
+
if (rowHeight?.height) {
|
|
480
|
+
wsRow.height = rowHeight.height;
|
|
481
|
+
}
|
|
482
|
+
for (let colIndex = 0; colIndex < table.columns.length; colIndex++) {
|
|
483
|
+
const column = table.columns[colIndex];
|
|
484
|
+
const cell = wsRow.getCell(startCol + colIndex);
|
|
485
|
+
const hucreDegeri = satirlar[rowIndex][colIndex];
|
|
486
|
+
cell.value = hucreDegeri;
|
|
487
|
+
this.hucreFontunuUygula(cell, dataFont, sonuc.defaultFont);
|
|
488
|
+
const hucreFontRengi = hucreFontRenkleri[rowIndex]?.[colIndex];
|
|
489
|
+
if (hucreFontRengi) {
|
|
490
|
+
cell.font = { ...(cell.font ?? {}), color: { argb: hucreFontRengi } };
|
|
491
|
+
}
|
|
492
|
+
const numFmt = this.numberFormatDonustur(this.kolonFormatiniBelirle(column));
|
|
493
|
+
if (numFmt) {
|
|
494
|
+
cell.numFmt = numFmt;
|
|
495
|
+
}
|
|
496
|
+
else if (hucreDegeri instanceof Date) {
|
|
497
|
+
cell.numFmt = this.varsayilanTarihFormatiniVer();
|
|
498
|
+
}
|
|
499
|
+
const hucreHizasi = this.hucreYatayHizasiniBelirle(column);
|
|
500
|
+
cell.alignment = {
|
|
501
|
+
...(hucreHizasi !== undefined && { horizontal: hucreHizasi }),
|
|
502
|
+
vertical: this.dikeyHizaDonustur(column.verticalAlignment),
|
|
503
|
+
wrapText: false
|
|
504
|
+
};
|
|
505
|
+
// Sütun rengi
|
|
506
|
+
const colFontColor = table.columnFontColors?.[colIndex];
|
|
507
|
+
if (colFontColor) {
|
|
508
|
+
const argb = this.argbDonustur(colFontColor);
|
|
509
|
+
if (argb) {
|
|
510
|
+
cell.font = { ...(cell.font ?? {}), color: { argb } };
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
const colIntColor = this.kolonRenginiBul(table.columnInteriorColors, colIndex);
|
|
514
|
+
if (colIntColor) {
|
|
515
|
+
const argb = this.argbDonustur(colIntColor);
|
|
516
|
+
if (argb) {
|
|
517
|
+
cell.fill = { type: 'pattern', pattern: 'solid', fgColor: { argb } };
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
// Satır rengi (sütun rengini ezer)
|
|
521
|
+
const rowFontColor = table.rowFontColors?.find(rc => rc.rowNo === satir1Bazli);
|
|
522
|
+
if (rowFontColor) {
|
|
523
|
+
const argb = this.argbDonustur(rowFontColor.color);
|
|
524
|
+
if (argb) {
|
|
525
|
+
cell.font = { ...(cell.font ?? {}), color: { argb } };
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const rowIntColor = table.rowInteriorColors?.find(rc => rc.rowNo === satir1Bazli);
|
|
529
|
+
if (rowIntColor) {
|
|
530
|
+
const argb = this.argbDonustur(rowIntColor.color);
|
|
531
|
+
if (argb) {
|
|
532
|
+
cell.fill = { type: 'pattern', pattern: 'solid', fgColor: { argb } };
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
for (const { rowIndex, colIndex, column, formula } of formulCeller) {
|
|
538
|
+
const cell = worksheet.getRow(startRow + 1 + rowIndex).getCell(startCol + colIndex);
|
|
539
|
+
cell.value = formula;
|
|
540
|
+
const formulHizasi = this.hucreYatayHizasiniBelirle(column);
|
|
541
|
+
cell.alignment = {
|
|
542
|
+
...(cell.alignment ?? {}),
|
|
543
|
+
...(formulHizasi !== undefined && { horizontal: formulHizasi })
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
let sonSatir = startRow + table.collection.length;
|
|
547
|
+
if (toplamSatiriVar) {
|
|
548
|
+
sonSatir++;
|
|
549
|
+
this.toplamSatiriniYaz(worksheet, sonuc, table, toplamHucreleri, sonSatir, startCol);
|
|
550
|
+
}
|
|
551
|
+
// Footer satırları
|
|
552
|
+
const footer = table.footer;
|
|
553
|
+
if (footer?.basilacak) {
|
|
554
|
+
const ustBosluk = footer.ustBosluk ?? 0;
|
|
555
|
+
const satirSayisi = footer.satirSayisi ?? 1;
|
|
556
|
+
const footerBasSatir = sonSatir + 1 + ustBosluk;
|
|
557
|
+
for (let fi = 0; fi < satirSayisi; fi++) {
|
|
558
|
+
const footerRow = worksheet.getRow(footerBasSatir + fi);
|
|
559
|
+
for (let colIndex = 0; colIndex < table.columns.length; colIndex++) {
|
|
560
|
+
const column = table.columns[colIndex];
|
|
561
|
+
const cell = footerRow.getCell(startCol + colIndex);
|
|
562
|
+
this.hucreFontunuUygula(cell, footer.font, sonuc.defaultFont);
|
|
563
|
+
const colFooter = column.footer;
|
|
564
|
+
if (colFooter?.isFunction) {
|
|
565
|
+
const footerFormula = this.footerFormulunuOlustur(column, colIndex, startRow, startCol, table.collection.length);
|
|
566
|
+
if (footerFormula) {
|
|
567
|
+
cell.value = { formula: footerFormula };
|
|
568
|
+
const numFmt = this.numberFormatDonustur(this.kolonFormatiniBelirle(column));
|
|
569
|
+
if (numFmt) {
|
|
570
|
+
cell.numFmt = numFmt;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
else if (colFooter?.title) {
|
|
575
|
+
cell.value = colFooter.title;
|
|
576
|
+
}
|
|
577
|
+
const footerHizasi = colFooter?.isFunction
|
|
578
|
+
? this.hucreYatayHizasiniBelirle(column)
|
|
579
|
+
: this.yatayHizaDonustur(colFooter?.horizontalAlignment);
|
|
580
|
+
cell.alignment = {
|
|
581
|
+
...(footerHizasi !== undefined && { horizontal: footerHizasi }),
|
|
582
|
+
vertical: 'middle',
|
|
583
|
+
wrapText: false
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
sonSatir = footerBasSatir + satirSayisi - 1;
|
|
588
|
+
}
|
|
589
|
+
return sonSatir;
|
|
590
|
+
}
|
|
591
|
+
static toplamHucreleriniHazirla(table) {
|
|
592
|
+
return table.columns.map((column, colIndex) => {
|
|
593
|
+
if (colIndex === 0) {
|
|
594
|
+
return { deger: table.toplamEtiketi ?? 'Toplam' };
|
|
595
|
+
}
|
|
596
|
+
if (!this.sayisalKolonMu(column.arrayType)) {
|
|
597
|
+
return { deger: null };
|
|
598
|
+
}
|
|
599
|
+
let toplam = 0;
|
|
600
|
+
for (const row of table.collection) {
|
|
601
|
+
const sayi = Number(row[column.property]);
|
|
602
|
+
if (Number.isFinite(sayi)) {
|
|
603
|
+
toplam += sayi;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return { deger: toplam };
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
static toplamSatiriEtiketiVer(deger, kolonIndex, sayisal) {
|
|
610
|
+
if (kolonIndex === 0) {
|
|
611
|
+
const etiket = typeof deger === 'string' || typeof deger === 'number' ? String(deger) : '';
|
|
612
|
+
return { totalsRowLabel: etiket };
|
|
613
|
+
}
|
|
614
|
+
if (sayisal || typeof deger === 'number') {
|
|
615
|
+
return { totalsRowFunction: 'sum' };
|
|
616
|
+
}
|
|
617
|
+
if (typeof deger === 'string' && deger !== '') {
|
|
618
|
+
return { totalsRowLabel: deger };
|
|
619
|
+
}
|
|
620
|
+
return undefined;
|
|
621
|
+
}
|
|
622
|
+
static toplamSatiriniYaz(worksheet, sonuc, table, toplamHucreleri, satirNo, startCol) {
|
|
623
|
+
const wsRow = worksheet.getRow(satirNo);
|
|
624
|
+
for (let colIndex = 0; colIndex < table.columns.length; colIndex++) {
|
|
625
|
+
const column = table.columns[colIndex];
|
|
626
|
+
const cell = wsRow.getCell(startCol + colIndex);
|
|
627
|
+
const deger = toplamHucreleri[colIndex]?.deger;
|
|
628
|
+
if (colIndex > 0 && typeof deger === 'number' && typeof cell.value === 'object' && cell.value !== null && 'formula' in cell.value) {
|
|
629
|
+
cell.value = { ...cell.value, result: deger };
|
|
630
|
+
}
|
|
631
|
+
this.hucreFontunuUygula(cell, table.data?.font, sonuc.defaultFont);
|
|
632
|
+
cell.font = { ...(cell.font ?? {}), bold: true };
|
|
633
|
+
const numFmt = this.numberFormatDonustur(this.kolonFormatiniBelirle(column));
|
|
634
|
+
if (numFmt) {
|
|
635
|
+
cell.numFmt = numFmt;
|
|
636
|
+
}
|
|
637
|
+
const hucreHizasi = this.hucreYatayHizasiniBelirle(column);
|
|
638
|
+
cell.alignment = {
|
|
639
|
+
...(hucreHizasi !== undefined && { horizontal: hucreHizasi }),
|
|
640
|
+
vertical: this.dikeyHizaDonustur(column.verticalAlignment),
|
|
641
|
+
wrapText: false
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
static kolonGenislikleriniUygula(worksheet, startCol, columns, satirlar, autoFit) {
|
|
646
|
+
const filtreButonuBoslukPayi = 1.25;
|
|
647
|
+
const veriSagBoslukPayi = 1;
|
|
648
|
+
const autoFitAktif = autoFit !== false;
|
|
649
|
+
for (let index = 0; index < columns.length; index++) {
|
|
650
|
+
const worksheetColumn = worksheet.getColumn(startCol + index);
|
|
651
|
+
const tasarimGenisligi = (columns[index].width ?? 0) > 0 ? Math.round(columns[index].width / 7) : 0;
|
|
652
|
+
if (!autoFitAktif) {
|
|
653
|
+
worksheetColumn.width = tasarimGenisligi > 0 ? tasarimGenisligi : 10;
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
const baslikUzunlugu = this.metinUzunlugu(this.baslikMetniniHazirla(columns[index].header.title));
|
|
657
|
+
const veriUzunlugu = satirlar.reduce((max, satir) => Math.max(max, this.hucreMetinUzunlugu(satir[index])), 0);
|
|
658
|
+
worksheetColumn.width = Math.max(10, tasarimGenisligi, baslikUzunlugu + 2 + filtreButonuBoslukPayi, veriUzunlugu + 2 + veriSagBoslukPayi);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
static baslikMetniniHazirla(metin) {
|
|
662
|
+
return metin
|
|
663
|
+
.replaceAll('\r\n', ' ')
|
|
664
|
+
.replaceAll('\r', ' ')
|
|
665
|
+
.replaceAll('\n', ' ')
|
|
666
|
+
.trim();
|
|
667
|
+
}
|
|
668
|
+
static hucreMetinUzunlugu(deger) {
|
|
669
|
+
if (deger === null || deger === undefined) {
|
|
670
|
+
return 0;
|
|
671
|
+
}
|
|
672
|
+
if (typeof deger === 'string') {
|
|
673
|
+
return this.metinUzunlugu(deger);
|
|
674
|
+
}
|
|
675
|
+
if (typeof deger === 'number' || typeof deger === 'boolean') {
|
|
676
|
+
return String(deger).length;
|
|
677
|
+
}
|
|
678
|
+
if (deger instanceof Date) {
|
|
679
|
+
return '14.05.2026 09:13:29'.length;
|
|
680
|
+
}
|
|
681
|
+
if (typeof deger === 'object' && 'formula' in deger) {
|
|
682
|
+
return this.metinUzunlugu(String(deger.formula));
|
|
683
|
+
}
|
|
684
|
+
return this.metinUzunlugu(String(deger));
|
|
685
|
+
}
|
|
686
|
+
static hucreYatayHizasiniBelirle(column) {
|
|
687
|
+
if (this.sayisalKolonMu(column.arrayType)) {
|
|
688
|
+
return 'right';
|
|
689
|
+
}
|
|
690
|
+
if (this.booleanKolonMu(column.arrayType)) {
|
|
691
|
+
return 'center';
|
|
692
|
+
}
|
|
693
|
+
if (column.horizontalAlignment === undefined) {
|
|
694
|
+
return undefined;
|
|
695
|
+
}
|
|
696
|
+
return this.yatayHizaDonustur(column.horizontalAlignment);
|
|
697
|
+
}
|
|
698
|
+
static kolonFormatiniBelirle(column) {
|
|
699
|
+
if (column.format !== undefined && column.format !== NumberFormatlar.belirsiz) {
|
|
700
|
+
return column.format;
|
|
701
|
+
}
|
|
702
|
+
switch (column.arrayType) {
|
|
703
|
+
case VariableType.integer:
|
|
704
|
+
case VariableType.longint:
|
|
705
|
+
return NumberFormatlar.long;
|
|
706
|
+
case VariableType.real:
|
|
707
|
+
return NumberFormatlar.real;
|
|
708
|
+
case VariableType.date:
|
|
709
|
+
return NumberFormatlar.tarih;
|
|
710
|
+
default:
|
|
711
|
+
return column.format;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
static sayisalKolonMu(arrayType) {
|
|
715
|
+
switch (arrayType) {
|
|
716
|
+
case VariableType.integer:
|
|
717
|
+
case VariableType.longint:
|
|
718
|
+
case VariableType.real:
|
|
719
|
+
return true;
|
|
720
|
+
default:
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
static booleanKolonMu(arrayType) {
|
|
725
|
+
return arrayType === VariableType.boolean;
|
|
726
|
+
}
|
|
727
|
+
static metinUzunlugu(metin) {
|
|
728
|
+
return metin
|
|
729
|
+
.replaceAll('\r', '')
|
|
730
|
+
.split('\n')
|
|
731
|
+
.reduce((max, parca) => Math.max(max, parca.trim().length), 0);
|
|
732
|
+
}
|
|
733
|
+
static kolonGrubuYaz(worksheet, startRow, startCol, table) {
|
|
734
|
+
const columnGroups = table.columnGroup;
|
|
735
|
+
if (!columnGroups?.length || startRow <= 1) {
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
const grupSatiri = startRow - 1;
|
|
739
|
+
for (const columnGroup of columnGroups) {
|
|
740
|
+
const baslangicIndex = table.columns.findIndex(column => column.property === columnGroup.groupStart);
|
|
741
|
+
const bitisIndex = table.columns.findIndex(column => column.property === columnGroup.groupEnd);
|
|
742
|
+
const baslangicKolonu = baslangicIndex >= 0 ? startCol + baslangicIndex : undefined;
|
|
743
|
+
const bitisKolonu = bitisIndex >= 0 ? startCol + bitisIndex : undefined;
|
|
744
|
+
if (!baslangicKolonu || !bitisKolonu || bitisKolonu < baslangicKolonu) {
|
|
745
|
+
continue;
|
|
746
|
+
}
|
|
747
|
+
worksheet.mergeCells(grupSatiri, baslangicKolonu, grupSatiri, bitisKolonu);
|
|
748
|
+
const grupHucre = worksheet.getCell(grupSatiri, baslangicKolonu);
|
|
749
|
+
grupHucre.value = columnGroup.groupName;
|
|
750
|
+
grupHucre.alignment = { horizontal: 'center', vertical: 'middle' };
|
|
751
|
+
grupHucre.font = { bold: true, size: 11, color: { argb: 'FFF79646' } };
|
|
752
|
+
grupHucre.fill = {
|
|
753
|
+
type: 'pattern',
|
|
754
|
+
pattern: 'solid',
|
|
755
|
+
fgColor: { argb: 'FFFFFFFF' }
|
|
756
|
+
};
|
|
757
|
+
for (let col = baslangicKolonu; col <= bitisKolonu; col++) {
|
|
758
|
+
const hucre = worksheet.getCell(grupSatiri, col);
|
|
759
|
+
hucre.border = {
|
|
760
|
+
...hucre.border,
|
|
761
|
+
top: { style: 'medium', color: { argb: 'FFF79646' } },
|
|
762
|
+
...(col === baslangicKolonu ? { left: { style: 'medium', color: { argb: 'FFF79646' } } } : (hucre.border?.left ? { left: hucre.border.left } : {})),
|
|
763
|
+
...(col === bitisKolonu ? { right: { style: 'medium', color: { argb: 'FFF79646' } } } : (hucre.border?.right ? { right: hucre.border.right } : {}))
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
static hucreDegeriniHazirla(row, column, sifirlariBasmaSayi) {
|
|
769
|
+
const value = row[column.property];
|
|
770
|
+
if ((typeof value === 'string') && value.startsWith('=')) {
|
|
771
|
+
return { deger: { formula: this.excelFormuluneDonustur(value) } };
|
|
772
|
+
}
|
|
773
|
+
const sifirDegerMi = (typeof value === 'number' && value === 0) ||
|
|
774
|
+
(typeof value === 'string' && this.sayisalKolonMu(column.arrayType) && value.trim() !== '' && Number(value) === 0);
|
|
775
|
+
if (sifirDegerMi && sifirlariBasmaSayi) {
|
|
776
|
+
return { deger: null };
|
|
777
|
+
}
|
|
778
|
+
if (value === null || value === undefined) {
|
|
779
|
+
return { deger: '' };
|
|
780
|
+
}
|
|
781
|
+
const htmlHucre = (column.htmlKoduGelebilir === true) && typeof value === 'string' ? this.htmlHucreIceriginiHazirla(value) : undefined;
|
|
782
|
+
const normallesenDeger = htmlHucre?.deger ?? value;
|
|
783
|
+
if ((typeof normallesenDeger === 'string') && normallesenDeger.startsWith('=')) {
|
|
784
|
+
return this.hazirHucreDegeriOlustur({ formula: this.excelFormuluneDonustur(normallesenDeger) }, htmlHucre?.fontColorArgb);
|
|
785
|
+
}
|
|
786
|
+
if ((typeof value === 'string') && (typeof normallesenDeger === 'string')) {
|
|
787
|
+
const tarihMetni = this.tarihStringiniExcelMetnineDonustur(normallesenDeger, column);
|
|
788
|
+
if (tarihMetni) {
|
|
789
|
+
return this.hazirHucreDegeriOlustur(tarihMetni, htmlHucre?.fontColorArgb);
|
|
790
|
+
}
|
|
791
|
+
const tarihDegeri = this.tarihStringiniDateeDonustur(normallesenDeger);
|
|
792
|
+
if (tarihDegeri) {
|
|
793
|
+
return this.hazirHucreDegeriOlustur(tarihDegeri, htmlHucre?.fontColorArgb);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
if (normallesenDeger instanceof Date) {
|
|
797
|
+
return this.hazirHucreDegeriOlustur(this.excelIcinTarihiNormalizeEt(normallesenDeger), htmlHucre?.fontColorArgb);
|
|
798
|
+
}
|
|
799
|
+
if (this.booleanKolonMu(column.arrayType)) {
|
|
800
|
+
return this.hazirHucreDegeriOlustur(normallesenDeger === true ? '+' : '', htmlHucre?.fontColorArgb);
|
|
801
|
+
}
|
|
802
|
+
if ((typeof normallesenDeger === 'number') || (typeof normallesenDeger === 'string')) {
|
|
803
|
+
return this.hazirHucreDegeriOlustur(normallesenDeger, htmlHucre?.fontColorArgb);
|
|
804
|
+
}
|
|
805
|
+
return this.hazirHucreDegeriOlustur(String(normallesenDeger), htmlHucre?.fontColorArgb);
|
|
806
|
+
}
|
|
807
|
+
static hazirHucreDegeriOlustur(deger, fontColorArgb) {
|
|
808
|
+
return {
|
|
809
|
+
deger,
|
|
810
|
+
...(fontColorArgb ? { fontColorArgb } : {})
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
static htmlHucreIceriginiHazirla(value) {
|
|
814
|
+
if (!/[<>]/.test(value)) {
|
|
815
|
+
return undefined;
|
|
816
|
+
}
|
|
817
|
+
const deger = value
|
|
818
|
+
.replaceAll(/<br\s*\/?>/gi, '\n')
|
|
819
|
+
.replaceAll(/<\/p\s*>/gi, '\n')
|
|
820
|
+
.replaceAll(/<p\b[^>]*>/gi, '')
|
|
821
|
+
.replaceAll(/<\/div\s*>/gi, '\n')
|
|
822
|
+
.replaceAll(/<div\b[^>]*>/gi, '')
|
|
823
|
+
.replaceAll(/<[^>]+>/g, '')
|
|
824
|
+
.replaceAll(/ /gi, ' ')
|
|
825
|
+
.trim();
|
|
826
|
+
const colorValue = this.htmlFontRenginiBul(value);
|
|
827
|
+
const fontColorArgb = this.argbDonustur(colorValue);
|
|
828
|
+
if ((deger === value) && !fontColorArgb) {
|
|
829
|
+
return undefined;
|
|
830
|
+
}
|
|
831
|
+
return { deger, ...(fontColorArgb && { fontColorArgb }) };
|
|
832
|
+
}
|
|
833
|
+
static htmlFontRenginiBul(value) {
|
|
834
|
+
const fontColorMatch = /<font\b[^>]*\bcolor\s*=\s*["']?([^"' >]+)["']?[^>]*>/i.exec(value);
|
|
835
|
+
if (fontColorMatch?.[1]) {
|
|
836
|
+
return fontColorMatch[1].trim();
|
|
837
|
+
}
|
|
838
|
+
const styleColorMatch = /<(?:font|span)\b[^>]*\bstyle\s*=\s*["'][^"']*\bcolor\s*:\s*([^;"']+)/i.exec(value);
|
|
839
|
+
if (styleColorMatch?.[1]) {
|
|
840
|
+
return styleColorMatch[1].trim();
|
|
841
|
+
}
|
|
842
|
+
return undefined;
|
|
843
|
+
}
|
|
844
|
+
static tarihStringiniDateeDonustur(value) {
|
|
845
|
+
const trimmedValue = value.trim();
|
|
846
|
+
const isoDateMatch = /^(\d{4})-(\d{2})-(\d{2})(?:$|[T\s])/.exec(trimmedValue);
|
|
847
|
+
if (!isoDateMatch) {
|
|
848
|
+
return undefined;
|
|
849
|
+
}
|
|
850
|
+
const year = Number(isoDateMatch[1]);
|
|
851
|
+
const month = Number(isoDateMatch[2]);
|
|
852
|
+
const day = Number(isoDateMatch[3]);
|
|
853
|
+
if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day)) {
|
|
854
|
+
return undefined;
|
|
855
|
+
}
|
|
856
|
+
const date = new Date(year, month - 1, day);
|
|
857
|
+
if (date.getFullYear() !== year || date.getMonth() !== (month - 1) || date.getDate() !== day) {
|
|
858
|
+
return undefined;
|
|
859
|
+
}
|
|
860
|
+
return new Date(Date.UTC(year, month - 1, day, 12, 0, 0, 0));
|
|
861
|
+
}
|
|
862
|
+
static tarihStringiniExcelMetnineDonustur(value, column) {
|
|
863
|
+
if (!this.sadeceTarihKolonuMu(column)) {
|
|
864
|
+
return undefined;
|
|
865
|
+
}
|
|
866
|
+
const trimmedValue = value.trim();
|
|
867
|
+
const isoDateMatch = /^(\d{4})-(\d{2})-(\d{2})$/.exec(trimmedValue);
|
|
868
|
+
if (!isoDateMatch) {
|
|
869
|
+
return undefined;
|
|
870
|
+
}
|
|
871
|
+
const year = Number(isoDateMatch[1]);
|
|
872
|
+
const month = Number(isoDateMatch[2]);
|
|
873
|
+
const day = Number(isoDateMatch[3]);
|
|
874
|
+
if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day)) {
|
|
875
|
+
return undefined;
|
|
876
|
+
}
|
|
877
|
+
const date = new Date(year, month - 1, day);
|
|
878
|
+
if (date.getFullYear() !== year || date.getMonth() !== (month - 1) || date.getDate() !== day) {
|
|
879
|
+
return undefined;
|
|
880
|
+
}
|
|
881
|
+
return `${String(day).padStart(2, '0')}.${String(month).padStart(2, '0')}.${year}`;
|
|
882
|
+
}
|
|
883
|
+
static excelIcinTarihiNormalizeEt(value) {
|
|
884
|
+
if (value.getHours() !== 0 || value.getMinutes() !== 0 || value.getSeconds() !== 0 || value.getMilliseconds() !== 0) {
|
|
885
|
+
return value;
|
|
886
|
+
}
|
|
887
|
+
return new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate(), 12, 0, 0, 0));
|
|
888
|
+
}
|
|
889
|
+
static varsayilanTarihFormatiniVer() {
|
|
890
|
+
return 'dd.mm.yyyy';
|
|
891
|
+
}
|
|
892
|
+
static sadeceTarihKolonuMu(column) {
|
|
893
|
+
return this.kolonFormatiniBelirle(column) === NumberFormatlar.tarih;
|
|
894
|
+
}
|
|
895
|
+
static benzersizKolonAdlariOlustur(adlar) {
|
|
896
|
+
const sayaclar = new Map();
|
|
897
|
+
return adlar.map(ad => {
|
|
898
|
+
const temelAd = ad || ' ';
|
|
899
|
+
const sayi = sayaclar.get(temelAd) ?? 0;
|
|
900
|
+
sayaclar.set(temelAd, sayi + 1);
|
|
901
|
+
return sayi === 0 ? temelAd : `${temelAd}_${sayi}`;
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
static hucreFontunuUygula(cell, font, defaultFont) {
|
|
905
|
+
const style = font?.style ?? 0;
|
|
906
|
+
const excelFont = {};
|
|
907
|
+
const fontName = font?.name || defaultFont?.name;
|
|
908
|
+
if (fontName) {
|
|
909
|
+
excelFont.name = fontName;
|
|
910
|
+
}
|
|
911
|
+
const fontSize = (font?.size && font.size > 0) ? font.size : defaultFont?.size;
|
|
912
|
+
if (fontSize && fontSize > 0) {
|
|
913
|
+
excelFont.size = fontSize;
|
|
914
|
+
}
|
|
915
|
+
if (font?.color) {
|
|
916
|
+
const color = this.argbDonustur(font.color);
|
|
917
|
+
if (color) {
|
|
918
|
+
excelFont.color = { argb: color };
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
excelFont.bold = Boolean(style & FontStyle.bold);
|
|
922
|
+
excelFont.italic = Boolean(style & FontStyle.italic);
|
|
923
|
+
excelFont.underline = Boolean(style & FontStyle.underline);
|
|
924
|
+
cell.font = excelFont;
|
|
925
|
+
}
|
|
926
|
+
static gecerliTableStyleVer(tableStyle) {
|
|
927
|
+
if (!tableStyle) {
|
|
928
|
+
return undefined;
|
|
929
|
+
}
|
|
930
|
+
const style = tableStyle.trim();
|
|
931
|
+
if (/^TableStyleLight([1-9]|1\d|2[0-1])$/.test(style)) {
|
|
932
|
+
return style;
|
|
933
|
+
}
|
|
934
|
+
if (/^TableStyleMedium([1-9]|1\d|2[0-1])$/.test(style)) {
|
|
935
|
+
return style;
|
|
936
|
+
}
|
|
937
|
+
if (/^TableStyleDark([1-9]|10|11)$/.test(style)) {
|
|
938
|
+
return style;
|
|
939
|
+
}
|
|
940
|
+
return undefined;
|
|
941
|
+
}
|
|
942
|
+
static tableStyleDonustur(theme) {
|
|
943
|
+
if (!theme) {
|
|
944
|
+
return undefined;
|
|
945
|
+
}
|
|
946
|
+
return {
|
|
947
|
+
theme: theme,
|
|
948
|
+
showRowStripes: true
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
static tabloAdiOlustur(sheetName, startRow, startCol) {
|
|
952
|
+
const temizSheetName = sheetName.replaceAll(/[^A-Za-z0-9]/g, '_');
|
|
953
|
+
return `T_${temizSheetName}_R${startRow}C${startCol}`;
|
|
954
|
+
}
|
|
955
|
+
static yatayHizaDonustur(value) {
|
|
956
|
+
switch (value) {
|
|
957
|
+
case XLHAlign.xlHAlignCenter: return 'center';
|
|
958
|
+
case XLHAlign.xlHAlignCenterAcrossSelection: return 'centerContinuous';
|
|
959
|
+
case XLHAlign.xlHAlignDistributed: return 'distributed';
|
|
960
|
+
case XLHAlign.xlHAlignFill: return 'fill';
|
|
961
|
+
case XLHAlign.xlHAlignGeneral: return 'left';
|
|
962
|
+
case XLHAlign.xlHAlignJustify: return 'justify';
|
|
963
|
+
case XLHAlign.xlHAlignLeft: return 'left';
|
|
964
|
+
case XLHAlign.xlHAlignRight: return 'right';
|
|
965
|
+
default: return 'left';
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
static dikeyHizaDonustur(value) {
|
|
969
|
+
switch (value) {
|
|
970
|
+
case XLVAlign.xlVAlignTop: return 'top';
|
|
971
|
+
case XLVAlign.xlVAlignBottom: return 'bottom';
|
|
972
|
+
case XLVAlign.xlVAlignDistributed: return 'distributed';
|
|
973
|
+
case XLVAlign.xlVAlignJustify: return 'justify';
|
|
974
|
+
default: return 'middle';
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
static argbDonustur(color) {
|
|
978
|
+
if (!color) {
|
|
979
|
+
return undefined;
|
|
980
|
+
}
|
|
981
|
+
const cssColor = color.trim().toLowerCase();
|
|
982
|
+
const rgbMatch = cssColor.match(/^rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i);
|
|
983
|
+
if (rgbMatch) {
|
|
984
|
+
const rgbDegerleri = rgbMatch.slice(1).map(value => Number(value));
|
|
985
|
+
if (rgbDegerleri.every(value => Number.isInteger(value) && value >= 0 && value <= 255)) {
|
|
986
|
+
return `FF${rgbDegerleri.map(value => value.toString(16).padStart(2, '0')).join('').toUpperCase()}`;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
const namedColors = {
|
|
990
|
+
black: 'FF000000',
|
|
991
|
+
blue: 'FF0000FF',
|
|
992
|
+
cyan: 'FF00FFFF',
|
|
993
|
+
gray: 'FF808080',
|
|
994
|
+
green: 'FF008000',
|
|
995
|
+
grey: 'FF808080',
|
|
996
|
+
magenta: 'FFFF00FF',
|
|
997
|
+
orange: 'FFFFA500',
|
|
998
|
+
purple: 'FF800080',
|
|
999
|
+
red: 'FFFF0000',
|
|
1000
|
+
white: 'FFFFFFFF',
|
|
1001
|
+
yellow: 'FFFFFF00'
|
|
1002
|
+
};
|
|
1003
|
+
if (namedColors[cssColor]) {
|
|
1004
|
+
return namedColors[cssColor];
|
|
1005
|
+
}
|
|
1006
|
+
const hexColor = cssColor.replace('#', '');
|
|
1007
|
+
if (/^[0-9a-f]{6}$/i.test(hexColor)) {
|
|
1008
|
+
return `FF${hexColor.toUpperCase()}`;
|
|
1009
|
+
}
|
|
1010
|
+
if (/^[0-9A-Fa-f]{8}$/.test(color)) {
|
|
1011
|
+
return color.toUpperCase();
|
|
1012
|
+
}
|
|
1013
|
+
const numericColor = Number(color);
|
|
1014
|
+
if (!Number.isFinite(numericColor)) {
|
|
1015
|
+
return undefined;
|
|
1016
|
+
}
|
|
1017
|
+
const r = numericColor & 255;
|
|
1018
|
+
const g = (numericColor >> 8) & 255;
|
|
1019
|
+
const b = (numericColor >> 16) & 255;
|
|
1020
|
+
return `FF${[r, g, b].map(value => value.toString(16).padStart(2, '0')).join('').toUpperCase()}`;
|
|
1021
|
+
}
|
|
1022
|
+
static kolonRenginiBul(kolonRenkleri, colIndex) {
|
|
1023
|
+
const kolonRengi = kolonRenkleri?.[colIndex];
|
|
1024
|
+
if (typeof kolonRengi === 'string') {
|
|
1025
|
+
return kolonRengi;
|
|
1026
|
+
}
|
|
1027
|
+
const kolonNo = colIndex + 1;
|
|
1028
|
+
for (const kolon of kolonRenkleri ?? []) {
|
|
1029
|
+
if (typeof kolon === 'object' && kolon.columnNo === kolonNo) {
|
|
1030
|
+
return kolon.color;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
return undefined;
|
|
1034
|
+
}
|
|
1035
|
+
static excelFormuluneDonustur(formul) {
|
|
1036
|
+
const ceviriler = {
|
|
1037
|
+
'TOPLA': 'SUM',
|
|
1038
|
+
'EĞER': 'IF',
|
|
1039
|
+
'VE': 'AND',
|
|
1040
|
+
'VEYA': 'OR',
|
|
1041
|
+
'YUVARLA': 'ROUND',
|
|
1042
|
+
'EĞERSAY': 'COUNTIF',
|
|
1043
|
+
'ETOPLA': 'SUMIF',
|
|
1044
|
+
'ORTALAMA': 'AVERAGE',
|
|
1045
|
+
'MİN': 'MIN',
|
|
1046
|
+
'MAK': 'MAX'
|
|
1047
|
+
};
|
|
1048
|
+
let sonuc = formul.slice(1).replaceAll(';', ',');
|
|
1049
|
+
for (const [kaynak, hedef] of Object.entries(ceviriler)) {
|
|
1050
|
+
const pattern = new RegExp(`\\b${kaynak}\\b`, 'g');
|
|
1051
|
+
sonuc = sonuc.replace(pattern, hedef);
|
|
1052
|
+
}
|
|
1053
|
+
return sonuc;
|
|
1054
|
+
}
|
|
1055
|
+
static footerFormulunuOlustur(column, colIndex, startRow, startCol, veriSatirSayisi) {
|
|
1056
|
+
if (!veriSatirSayisi) {
|
|
1057
|
+
return undefined;
|
|
1058
|
+
}
|
|
1059
|
+
const fonksiyon = String(column.footer?.function ?? '').trim().toUpperCase();
|
|
1060
|
+
if (!fonksiyon) {
|
|
1061
|
+
return undefined;
|
|
1062
|
+
}
|
|
1063
|
+
const kolonHarf = worksheetColumnName(startCol + colIndex);
|
|
1064
|
+
const ilkVeriSatiri = startRow + 1;
|
|
1065
|
+
const sonVeriSatiri = startRow + veriSatirSayisi;
|
|
1066
|
+
const aralik = `${kolonHarf}${ilkVeriSatiri}:${kolonHarf}${sonVeriSatiri}`;
|
|
1067
|
+
if (fonksiyon === 'SUBTOTAL') {
|
|
1068
|
+
return `SUBTOTAL(9,${aralik})`;
|
|
1069
|
+
}
|
|
1070
|
+
const desteklenenFonksiyonlar = ['SUM', 'AVERAGE', 'COUNT', 'COUNTA', 'MAX', 'MIN'];
|
|
1071
|
+
if (desteklenenFonksiyonlar.includes(fonksiyon)) {
|
|
1072
|
+
return `${fonksiyon}(${aralik})`;
|
|
1073
|
+
}
|
|
1074
|
+
return undefined;
|
|
1075
|
+
}
|
|
1076
|
+
static sayfaAdiDuzenle(sheetName, index) {
|
|
1077
|
+
const temizAd = sheetName
|
|
1078
|
+
.replaceAll(/[\\/*?:[\]]/g, ' ')
|
|
1079
|
+
.trim()
|
|
1080
|
+
.slice(0, 31);
|
|
1081
|
+
if (temizAd) {
|
|
1082
|
+
return temizAd;
|
|
1083
|
+
}
|
|
1084
|
+
return `Sheet${index}`;
|
|
1085
|
+
}
|
|
1086
|
+
static dosyaAdiDuzenle(dosyaAdi) {
|
|
1087
|
+
const temizAd = dosyaAdi
|
|
1088
|
+
.replaceAll(/[<>:"/\\|?*]/g, ' ')
|
|
1089
|
+
.trim()
|
|
1090
|
+
.replaceAll(/\s+/g, ' ');
|
|
1091
|
+
if (temizAd) {
|
|
1092
|
+
return temizAd;
|
|
1093
|
+
}
|
|
1094
|
+
return 'Rapor';
|
|
1095
|
+
}
|
|
1096
|
+
static numberFormatDonustur(format) {
|
|
1097
|
+
switch (format) {
|
|
1098
|
+
case NumberFormatlar.long:
|
|
1099
|
+
case 2:
|
|
1100
|
+
case 5:
|
|
1101
|
+
case 11:
|
|
1102
|
+
return '#,##0';
|
|
1103
|
+
case NumberFormatlar.real:
|
|
1104
|
+
case 7:
|
|
1105
|
+
case 12:
|
|
1106
|
+
return '#,##0.00';
|
|
1107
|
+
case 8:
|
|
1108
|
+
return 'hh:mm';
|
|
1109
|
+
case NumberFormatlar.tarih:
|
|
1110
|
+
return 'dd.mm.yyyy';
|
|
1111
|
+
case NumberFormatlar.tarih_yyyymmdd_tireli:
|
|
1112
|
+
return 'yyyy-mm-dd';
|
|
1113
|
+
case NumberFormatlar.tarih_AAAAYYYY:
|
|
1114
|
+
return 'mmmm yyyy';
|
|
1115
|
+
case NumberFormatlar.tarih_GGAAAAYYYY:
|
|
1116
|
+
return 'dd mmmm yyyy';
|
|
1117
|
+
case NumberFormatlar.tarih_YYYYMMDD:
|
|
1118
|
+
return 'yyyy/mm/dd';
|
|
1119
|
+
case NumberFormatlar.tarih_LongDate:
|
|
1120
|
+
return 'dd mmmm yyyy dddd';
|
|
1121
|
+
case NumberFormatlar.tarih_ga:
|
|
1122
|
+
return 'd.m;@';
|
|
1123
|
+
case NumberFormatlar.tarih_ggaa:
|
|
1124
|
+
return 'dd.mm';
|
|
1125
|
+
case NumberFormatlar.tarih_gaaaa:
|
|
1126
|
+
return 'd.mmmm';
|
|
1127
|
+
case NumberFormatlar.tarih_ggaaa:
|
|
1128
|
+
return 'dd.mmm';
|
|
1129
|
+
case NumberFormatlar.tarih_ggaaaa:
|
|
1130
|
+
return 'dd.mmmm';
|
|
1131
|
+
case NumberFormatlar.yuzde_BirHane:
|
|
1132
|
+
return '0.0%';
|
|
1133
|
+
case NumberFormatlar.genel:
|
|
1134
|
+
return 'General';
|
|
1135
|
+
case NumberFormatlar.metin:
|
|
1136
|
+
return '@';
|
|
1137
|
+
case NumberFormatlar.imp:
|
|
1138
|
+
return '#,##0 "imp"';
|
|
1139
|
+
case NumberFormatlar.clicks:
|
|
1140
|
+
return '#,##0 "Clicks"';
|
|
1141
|
+
case NumberFormatlar.gun:
|
|
1142
|
+
return '#,##0 "Gün"';
|
|
1143
|
+
case NumberFormatlar.view:
|
|
1144
|
+
return '#,##0 "View"';
|
|
1145
|
+
case NumberFormatlar.session:
|
|
1146
|
+
return '#,##0 "Session"';
|
|
1147
|
+
case NumberFormatlar.kisi:
|
|
1148
|
+
return '#,##0 "Kişi"';
|
|
1149
|
+
case NumberFormatlar.okunma:
|
|
1150
|
+
return '#,##0 "Okunma"';
|
|
1151
|
+
case NumberFormatlar.dinlenme:
|
|
1152
|
+
return '#,##0 "Dinlenme"';
|
|
1153
|
+
case NumberFormatlar.lead:
|
|
1154
|
+
return '#,##0 "Lead"';
|
|
1155
|
+
case NumberFormatlar.gizli:
|
|
1156
|
+
return ';;;';
|
|
1157
|
+
case 28:
|
|
1158
|
+
return '#,##0.00 "₺"';
|
|
1159
|
+
default:
|
|
1160
|
+
return undefined;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
891
1164
|
function worksheetColumnName(columnNumber) {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1165
|
+
let kalan = columnNumber;
|
|
1166
|
+
let sonuc = '';
|
|
1167
|
+
while (kalan > 0) {
|
|
1168
|
+
const mod = (kalan - 1) % 26;
|
|
1169
|
+
sonuc = String.fromCharCode(65 + mod) + sonuc;
|
|
1170
|
+
kalan = Math.floor((kalan - 1) / 26);
|
|
1171
|
+
}
|
|
1172
|
+
return sonuc;
|
|
900
1173
|
}
|
|
901
|
-
var BlobResponseHandlerService = class BlobResponseHandlerService {
|
|
902
|
-
constructor() {
|
|
903
|
-
this.translateService = inject(TranslateService);
|
|
904
|
-
}
|
|
905
|
-
handleReportResponse(response, successDetailKey, htmlTitle = "Rapor Sonucu") {
|
|
906
|
-
const body = response.body;
|
|
907
|
-
if (!body) return null;
|
|
908
|
-
const contentDisposition = response.headers.get("content-disposition");
|
|
909
|
-
const contentType = response.headers.get("Content-Type") ?? body.type;
|
|
910
|
-
if (contentDisposition) return this.handleDownload(body, contentDisposition, contentType, successDetailKey);
|
|
911
|
-
this.handleViewHtml(body, htmlTitle);
|
|
912
|
-
return null;
|
|
913
|
-
}
|
|
914
|
-
downloadResponse(response) {
|
|
915
|
-
const body = response.body;
|
|
916
|
-
if (!body) return false;
|
|
917
|
-
const contentDisposition = response.headers.get("content-disposition");
|
|
918
|
-
if (!contentDisposition) return false;
|
|
919
|
-
const contentType = response.headers.get("Content-Type") ?? (body instanceof Blob ? body.type : "application/octet-stream");
|
|
920
|
-
this.downloadBlob(body, contentDisposition, contentType);
|
|
921
|
-
return true;
|
|
922
|
-
}
|
|
923
|
-
viewHtmlBody(body, htmlTitle = "Rapor Sonucu") {
|
|
924
|
-
if (!body) return;
|
|
925
|
-
this.handleViewHtml(body, htmlTitle);
|
|
926
|
-
}
|
|
927
|
-
async handleJsonExcelResponse(body, options) {
|
|
928
|
-
if (!body) return null;
|
|
929
|
-
try {
|
|
930
|
-
const jsonStr = await body.text();
|
|
931
|
-
const result = Object.assign(options.createResult(), JSON.parse(jsonStr));
|
|
932
|
-
const fileName = options.getFileName?.(result) ?? options.fileName;
|
|
933
|
-
if (!fileName) return null;
|
|
934
|
-
await JsonToExcelParser.indir(result, fileName);
|
|
935
|
-
return {
|
|
936
|
-
severity: "success",
|
|
937
|
-
summary: this.translateService.instant("genel.bilgi"),
|
|
938
|
-
detail: options.successDetail ?? this.translateService.instant(options.successDetailKey ?? "")
|
|
939
|
-
};
|
|
940
|
-
} catch (error) {
|
|
941
|
-
console.error(options.errorLogMessage, error);
|
|
942
|
-
return null;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
handleDownload(body, contentDisposition, contentType, successDetailKey) {
|
|
946
|
-
this.downloadBlob(body, contentDisposition, contentType);
|
|
947
|
-
return {
|
|
948
|
-
severity: "success",
|
|
949
|
-
summary: this.translateService.instant("genel.bilgi"),
|
|
950
|
-
detail: this.translateService.instant(successDetailKey)
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
downloadBlob(body, contentDisposition, contentType) {
|
|
954
|
-
const decodedContentDisposition = contentDisposition.replaceAll(/\\u([0-9A-Fa-f]{4})/g, (_, code) => String.fromCodePoint(Number.parseInt(code, 16)));
|
|
955
|
-
const filename = GlobalFunctions.getFilenameFromContentDisposition(decodedContentDisposition);
|
|
956
|
-
const blob = new Blob([body], { type: contentType });
|
|
957
|
-
saveAs(blob, filename);
|
|
958
|
-
}
|
|
959
|
-
handleViewHtml(body, htmlTitle) {
|
|
960
|
-
body.text().then((html) => {
|
|
961
|
-
const wnd = window.open("", "_blank");
|
|
962
|
-
if (!wnd) return;
|
|
963
|
-
wnd.document.title = htmlTitle;
|
|
964
|
-
const iframe = wnd.document.createElement("iframe");
|
|
965
|
-
iframe.style.width = "100%";
|
|
966
|
-
iframe.style.height = "100%";
|
|
967
|
-
iframe.style.border = "none";
|
|
968
|
-
iframe.setAttribute("srcdoc", html);
|
|
969
|
-
wnd.document.body.style.margin = "0";
|
|
970
|
-
wnd.document.body.style.padding = "0";
|
|
971
|
-
wnd.document.body.appendChild(iframe);
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
static {
|
|
975
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
976
|
-
minVersion: "12.0.0",
|
|
977
|
-
version: "22.2.1",
|
|
978
|
-
ngImport: i0,
|
|
979
|
-
type: BlobResponseHandlerService,
|
|
980
|
-
deps: [],
|
|
981
|
-
target: i0.ɵɵFactoryTarget.Injectable
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
static {
|
|
985
|
-
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
986
|
-
minVersion: "12.0.0",
|
|
987
|
-
version: "22.2.1",
|
|
988
|
-
ngImport: i0,
|
|
989
|
-
type: BlobResponseHandlerService,
|
|
990
|
-
providedIn: "root"
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
995
|
-
minVersion: "12.0.0",
|
|
996
|
-
version: "22.2.1",
|
|
997
|
-
ngImport: i0,
|
|
998
|
-
type: BlobResponseHandlerService,
|
|
999
|
-
decorators: [{
|
|
1000
|
-
type: Injectable,
|
|
1001
|
-
args: [{ providedIn: "root" }]
|
|
1002
|
-
}]
|
|
1003
|
-
});
|
|
1004
|
-
export { BlobResponseHandlerService, ExcelRaporuSonuc, JsonToExcelParser, JsonToExcelReportBuilder, JsonToExcelSheetBuilder, JsonToExcelTableBuilder };
|
|
1005
1174
|
|
|
1006
|
-
|
|
1175
|
+
class BlobResponseHandlerService {
|
|
1176
|
+
constructor() {
|
|
1177
|
+
this.translateService = inject(TranslateService);
|
|
1178
|
+
}
|
|
1179
|
+
handleReportResponse(response, successDetailKey, htmlTitle = 'Rapor Sonucu') {
|
|
1180
|
+
const body = response.body;
|
|
1181
|
+
if (!body) {
|
|
1182
|
+
return null;
|
|
1183
|
+
}
|
|
1184
|
+
const contentDisposition = response.headers.get('content-disposition');
|
|
1185
|
+
const contentType = response.headers.get('Content-Type') ?? body.type;
|
|
1186
|
+
if (contentDisposition) {
|
|
1187
|
+
return this.handleDownload(body, contentDisposition, contentType, successDetailKey);
|
|
1188
|
+
}
|
|
1189
|
+
this.handleViewHtml(body, htmlTitle);
|
|
1190
|
+
return null;
|
|
1191
|
+
}
|
|
1192
|
+
downloadResponse(response) {
|
|
1193
|
+
const body = response.body;
|
|
1194
|
+
if (!body) {
|
|
1195
|
+
return false;
|
|
1196
|
+
}
|
|
1197
|
+
const contentDisposition = response.headers.get('content-disposition');
|
|
1198
|
+
if (!contentDisposition) {
|
|
1199
|
+
return false;
|
|
1200
|
+
}
|
|
1201
|
+
const contentType = response.headers.get('Content-Type') ?? (body instanceof Blob ? body.type : 'application/octet-stream');
|
|
1202
|
+
this.downloadBlob(body, contentDisposition, contentType);
|
|
1203
|
+
return true;
|
|
1204
|
+
}
|
|
1205
|
+
viewHtmlBody(body, htmlTitle = 'Rapor Sonucu') {
|
|
1206
|
+
if (!body) {
|
|
1207
|
+
return;
|
|
1208
|
+
}
|
|
1209
|
+
this.handleViewHtml(body, htmlTitle);
|
|
1210
|
+
}
|
|
1211
|
+
async handleJsonExcelResponse(body, options) {
|
|
1212
|
+
if (!body) {
|
|
1213
|
+
return null;
|
|
1214
|
+
}
|
|
1215
|
+
try {
|
|
1216
|
+
const jsonStr = await body.text();
|
|
1217
|
+
const result = Object.assign(options.createResult(), JSON.parse(jsonStr));
|
|
1218
|
+
const fileName = options.getFileName?.(result) ?? options.fileName;
|
|
1219
|
+
if (!fileName) {
|
|
1220
|
+
return null;
|
|
1221
|
+
}
|
|
1222
|
+
await JsonToExcelParser.indir(result, fileName);
|
|
1223
|
+
return {
|
|
1224
|
+
severity: 'success',
|
|
1225
|
+
summary: this.translateService.instant('genel.bilgi'),
|
|
1226
|
+
detail: options.successDetail ?? this.translateService.instant(options.successDetailKey ?? '')
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
catch (error) {
|
|
1230
|
+
console.error(options.errorLogMessage, error);
|
|
1231
|
+
return null;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
handleDownload(body, contentDisposition, contentType, successDetailKey) {
|
|
1235
|
+
this.downloadBlob(body, contentDisposition, contentType);
|
|
1236
|
+
return {
|
|
1237
|
+
severity: 'success',
|
|
1238
|
+
summary: this.translateService.instant('genel.bilgi'),
|
|
1239
|
+
detail: this.translateService.instant(successDetailKey)
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
downloadBlob(body, contentDisposition, contentType) {
|
|
1243
|
+
const decodedContentDisposition = contentDisposition.replaceAll(/\\u([0-9A-Fa-f]{4})/g, (_, code) => String.fromCodePoint(Number.parseInt(code, 16)));
|
|
1244
|
+
const filename = GlobalFunctions.getFilenameFromContentDisposition(decodedContentDisposition);
|
|
1245
|
+
const blob = new Blob([body], { type: contentType });
|
|
1246
|
+
saveAs(blob, filename);
|
|
1247
|
+
}
|
|
1248
|
+
handleViewHtml(body, htmlTitle) {
|
|
1249
|
+
body.text().then((html) => {
|
|
1250
|
+
const wnd = window.open('', '_blank');
|
|
1251
|
+
if (!wnd) {
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
wnd.document.title = htmlTitle;
|
|
1255
|
+
const iframe = wnd.document.createElement('iframe');
|
|
1256
|
+
iframe.style.width = '100%';
|
|
1257
|
+
iframe.style.height = '100%';
|
|
1258
|
+
iframe.style.border = 'none';
|
|
1259
|
+
iframe.setAttribute('srcdoc', html);
|
|
1260
|
+
wnd.document.body.style.margin = '0';
|
|
1261
|
+
wnd.document.body.style.padding = '0';
|
|
1262
|
+
wnd.document.body.appendChild(iframe);
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: BlobResponseHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1266
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: BlobResponseHandlerService, providedIn: 'root' }); }
|
|
1267
|
+
}
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: BlobResponseHandlerService, decorators: [{
|
|
1269
|
+
type: Injectable,
|
|
1270
|
+
args: [{ providedIn: 'root' }]
|
|
1271
|
+
}] });
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Generated bundle index. Do not edit.
|
|
1275
|
+
*/
|
|
1276
|
+
|
|
1277
|
+
export { BlobResponseHandlerService, ExcelRaporuSonuc, JsonToExcelParser, JsonToExcelReportBuilder, JsonToExcelSheetBuilder, JsonToExcelTableBuilder };
|
|
1278
|
+
//# sourceMappingURL=limitng-blob-response-handler.mjs.map
|