@shival99/z-ui 1.2.30 → 1.2.33

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.
@@ -20,7 +20,6 @@ import { ZSafeHtmlPipe } from '@shival99/z-ui/pipes';
20
20
  import { ZTranslateService, ZCacheService } from '@shival99/z-ui/services';
21
21
  import { createAngularTable, getFacetedMinMaxValues, getFacetedUniqueValues, getFacetedRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel, getExpandedRowModel, getCoreRowModel, FlexRenderDirective } from '@tanstack/angular-table';
22
22
  import { NgScrollbar } from 'ngx-scrollbar';
23
- import { effectOnceIf } from 'ngxtension/effect-once-if';
24
23
  import { explicitEffect } from 'ngxtension/explicit-effect';
25
24
  import { injectDestroy } from 'ngxtension/inject-destroy';
26
25
  import { ZDropdownMenuComponent } from '@shival99/z-ui/components/z-dropdown-menu';
@@ -3057,13 +3056,10 @@ class ZTableComponent {
3057
3056
  explicitEffect([this._zTranslate.currentLang], () => {
3058
3057
  this._dataForceUpdate.update(v => v + 1);
3059
3058
  });
3060
- effectOnceIf(computed(() => {
3061
- const key = this.zKey();
3062
- const config = this.zConfig();
3063
- return !!key && !!config.columns && config.columns.length > 0 && !this._configCacheLoaded;
3064
- }), () => {
3065
- this._loadConfigCache();
3066
- this._configCacheLoaded = true;
3059
+ explicitEffect([this.zKey, this.zConfig], ([key, config]) => {
3060
+ if (key && config.columns && config.columns.length > 0) {
3061
+ this._loadConfigCache();
3062
+ }
3067
3063
  });
3068
3064
  explicitEffect([this.zConfig], ([cfg]) => {
3069
3065
  const initial = cfg.initialState;
@@ -3117,6 +3113,7 @@ class ZTableComponent {
3117
3113
  if (leftPinned.length > 0 || rightPinned.length > 0) {
3118
3114
  this.columnPinning.set({ left: leftPinned, right: rightPinned });
3119
3115
  }
3116
+ console.log('🚀 ~ this.columnPinning:', this.columnPinning);
3120
3117
  });
3121
3118
  explicitEffect([this.zConfig], ([cfg]) => {
3122
3119
  if (cfg.enableRowPinning && !this.hasBodyRowSpan()) {