@hitsoft/e-donusum 1.0.9 → 1.0.10

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.
@@ -10696,6 +10696,8 @@ class eDonusumModule {
10696
10696
  constructor(replacementService, localizationService) {
10697
10697
  this.replacementService = replacementService;
10698
10698
  this.localizationService = localizationService;
10699
+ // Stil dosyalarının eklenmesi hakkında bilgilendirme mesajı
10700
+ console.info('HitSoft e-Donusum modülü yüklendi. Stil dosyalarını angular.json dosyanıza eklemeyi unutmayın.');
10699
10701
  loadMessages(trMessages);
10700
10702
  this.localizationService.currentLang$.subscribe(item => {
10701
10703
  locale(item);
@@ -10760,17 +10762,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
10760
10762
  args: [{
10761
10763
  declarations: [eDonusumComponent],
10762
10764
  imports: [CoreModule, ThemeSharedModule, eDonusumRoutingModule],
10763
- exports: [eDonusumComponent],
10765
+ exports: [eDonusumComponent]
10764
10766
  }]
10765
10767
  }], ctorParameters: function () { return [{ type: i1.ReplaceableComponentsService }, { type: i1.LocalizationService }]; } });
10766
10768
 
10769
+ /**
10770
+ * Bu dosya, e-donusum paketi için gerekli stil dosyalarını içerir.
10771
+ *
10772
+ * ÖNEMLİ! KULLANIM KILAVUZU:
10773
+ * Stil sorunlarını çözmek için angular.json dosyasınıza doğrudan stil dosyaları eklemek
10774
+ * yerine, oluşturduğumuz uyumlu styles-import.scss dosyasını kullanın:
10775
+ *
10776
+ * "styles": [
10777
+ * "node_modules/@hitsoft/e-donusum/lib/compatibility/styles-import.scss"
10778
+ * ]
10779
+ *
10780
+ * Bu dosya tüm gerekli değişkenleri içerir ve stil hatalarını önler.
10781
+ *
10782
+ * NOT: Eğer doğrudan dosyaları kullanmak isterseniz, gerekli değişkenleri önceden tanımlamanız gerekecek:
10783
+ *
10784
+ * $prefix: bs-;
10785
+ * $transition-link: all 0.2s ease;
10786
+ * $font-weight-bold: 700;
10787
+ *
10788
+ * Ayrıca CSS dosyalarını yüklerken bootstrap ve diğer kütüphanelere olan bağımlılıklar nedeniyle
10789
+ * stil hesaplama hataları alabilirsiniz. Bu nedenle compatibility/styles-import.scss kullanımı önerilir.
10790
+ */
10791
+ /**
10792
+ * Bu fonksiyon uygulama başlatıldığında çağrılmalı
10793
+ * ve stil dosyalarının doğru şekilde yüklenip yüklenmediğini kontrol eder
10794
+ */
10795
+ function checkStylesLoaded() {
10796
+ // CSS dosyalarını kontrol et
10797
+ const styleSheets = document.styleSheets;
10798
+ let stylesLoaded = false;
10799
+ for (let i = 0; i < styleSheets.length; i++) {
10800
+ try {
10801
+ const href = styleSheets[i].href;
10802
+ if (href && (href.includes('e-donusum') || href.includes('style.rtl.css'))) {
10803
+ stylesLoaded = true;
10804
+ break;
10805
+ }
10806
+ }
10807
+ catch (e) {
10808
+ console.warn('Stil dosyası kontrolünde hata:', e);
10809
+ }
10810
+ }
10811
+ if (!stylesLoaded) {
10812
+ console.warn('HitSoft e-Donusum stil dosyaları yüklenemedi. ' +
10813
+ 'Lütfen angular.json dosyanızda stil dosyalarını kontrol edin.');
10814
+ }
10815
+ return stylesLoaded;
10816
+ }
10817
+
10767
10818
  /*
10768
10819
  * Public API Surface of e-donusum
10769
- */
10820
+ */
10821
+ // Not: styles-import.scss dosyasını angular.json içinde kullanın:
10822
+ // "node_modules/@hitsoft/e-donusum/lib/compatibility/styles-import.scss"
10770
10823
 
10771
10824
  /**
10772
10825
  * Generated bundle index. Do not edit.
10773
10826
  */
10774
10827
 
10775
- export { eDonusumComponent, eDonusumModule, eDonusumService };
10828
+ export { checkStylesLoaded, eDonusumComponent, eDonusumModule, eDonusumService };
10776
10829
  //# sourceMappingURL=hitsoft-e-donusum.mjs.map