@acorex-platform/framework-client 0.0.60 → 0.0.61

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex-platform/framework-client",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "peerDependencies": {
5
- "@acorex-platform/framework-shared": "0.0.60",
5
+ "@acorex-platform/framework-shared": "0.0.61",
6
6
  "@acorex/cdk": "^21.0.0 || ^22.0.0 || ^22.0.0-next.0 || ^22.1.0-next.0 || ^22.2.0-next.0 || ^22.2.0-next.0",
7
7
  "@acorex/charts": "^21.0.0 || ^22.0.0 || ^22.0.0-next.0 || ^22.1.0-next.0 || ^22.2.0-next.0 || ^22.2.0-next.0",
8
8
  "@acorex/components": "^21.0.0 || ^22.0.0 || ^22.0.0-next.0 || ^22.1.0-next.0 || ^22.2.0-next.0 || ^22.2.0-next.0",
@@ -701,12 +701,24 @@ declare class AXPWidgetRegistryService {
701
701
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPWidgetRegistryService>;
702
702
  }
703
703
 
704
- declare class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent implements OnChanges, AfterContentInit {
704
+ /** Asks the owning data-table column to measure its width again. */
705
+ interface AXPWidgetColumnAutoFitHandle {
706
+ /**
707
+ * Coalesces calls from every cell in the column.
708
+ * `settle` stops further passes after this one, so a later user resize is kept.
709
+ */
710
+ scheduleContentAutoFit(request?: {
711
+ settle?: boolean;
712
+ }): void;
713
+ }
714
+
715
+ declare class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent implements OnChanges, AfterContentInit, AXPWidgetColumnAutoFitHandle {
705
716
  protected widgetRegistery: AXPWidgetRegistryService;
706
717
  private grid;
707
718
  private expressionEvaluator;
708
719
  private readonly translation;
709
720
  private readonly destroyRef;
721
+ private readonly platformId;
710
722
  /** Original band title key; caption becomes resolved text and must not be re-read for i18n. */
711
723
  private bandCaptionI18nKey;
712
724
  private bandLocaleWatchStarted;
@@ -725,6 +737,16 @@ declare class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponen
725
737
  private pendingEvaluations;
726
738
  private changeDetectionScheduled;
727
739
  private readonly MAX_CACHE_SIZE;
740
+ /** Column was configured with `width: 'auto'` and should follow cell content. */
741
+ private autoWidthColumn;
742
+ /** Further content passes are ignored after the directive-rendered cell has been measured. */
743
+ private contentAutoFitSettled;
744
+ private contentAutoFitShouldSettle;
745
+ private contentAutoFitAttempts;
746
+ private contentAutoFitTimer;
747
+ /** Matches the cap `ax-data-table` uses for its own auto-width pass. */
748
+ private readonly contentAutoFitMaxWidth;
749
+ private readonly stopContentAutoFit;
728
750
  footerTemplate: TemplateRef<unknown>;
729
751
  private _contentFooterTemplate;
730
752
  get renderFooterTemplate(): TemplateRef<unknown>;
@@ -798,6 +820,15 @@ declare class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponen
798
820
  * Limit cache size using simple FIFO eviction
799
821
  */
800
822
  private evictCacheIfNeeded;
823
+ /**
824
+ * Re-measures this column after cell widgets exist.
825
+ * The table's own pass runs once, about 100ms after rows arrive, which is before
826
+ * `ngComponentOutlet` / `axp-widget-renderer` have painted.
827
+ */
828
+ scheduleContentAutoFit(request?: {
829
+ settle?: boolean;
830
+ }): void;
831
+ private syncAutoWidthIntent;
801
832
  private requireNode;
802
833
  getInputs(data: any): any;
803
834
  getRowInjector(data: any): Injector;
@@ -878,6 +909,7 @@ declare class AXPWidgetRendererDirective {
878
909
  protected widgetService: AXPWidgetRegistryService;
879
910
  protected expressionEvaluator: AXPExpressionEvaluatorService;
880
911
  private viewContainerRef;
912
+ private readonly columnAutoFit;
881
913
  protected isLoading: WritableSignal<boolean>;
882
914
  protected isVisible: WritableSignal<boolean>;
883
915
  instance: AXPValueWidgetComponent;