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