@pumpkin-tech/pumpkin-tech-ng 0.2.64 → 0.2.66

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/index.d.ts CHANGED
@@ -27,6 +27,8 @@ import * as i14 from '@angular/material/sort';
27
27
  import { Sort } from '@angular/material/sort';
28
28
  import * as i27 from '@angular/material/autocomplete';
29
29
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
30
+ import * as i29 from '@angular/material/tabs';
31
+ import { MatTabNav } from '@angular/material/tabs';
30
32
  import * as i1 from '@angular/common';
31
33
  import * as i3 from '@angular/material/toolbar';
32
34
  import * as i5 from '@angular/material/list';
@@ -46,7 +48,6 @@ import * as i23 from '@angular/material/radio';
46
48
  import * as i24 from '@angular/material/checkbox';
47
49
  import * as i25 from '@angular/material/progress-spinner';
48
50
  import * as i26 from '@angular/material/expansion';
49
- import * as i29 from '@angular/material/tabs';
50
51
 
51
52
  declare class PtechGridDirective implements OnDestroy, OnChanges {
52
53
  private bp;
@@ -516,9 +517,13 @@ interface BreadcrumbRoute {
516
517
  declare class BreadcrumbComponent {
517
518
  routes: BreadcrumbRoute[];
518
519
  hasStartIcon: boolean;
519
- isLast(route: BreadcrumbRoute): boolean;
520
+ /** Optional per-segment character limit. Null preserves the historic unbounded label. */
521
+ maxLabelCharacters: number | null;
522
+ isLastIndex(index: number): boolean;
523
+ displayDescription(route: BreadcrumbRoute): string;
524
+ isTruncated(route: BreadcrumbRoute): boolean;
520
525
  static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
521
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ptech-breadcrumb", never, { "routes": { "alias": "routes"; "required": false; }; "hasStartIcon": { "alias": "hasStartIcon"; "required": false; }; }, {}, never, ["[start-icon]", "[end-content]"], true, never>;
526
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ptech-breadcrumb", never, { "routes": { "alias": "routes"; "required": false; }; "hasStartIcon": { "alias": "hasStartIcon"; "required": false; }; "maxLabelCharacters": { "alias": "maxLabelCharacters"; "required": false; }; }, {}, never, ["[start-icon]", "[end-content]"], true, never>;
522
527
  }
523
528
 
524
529
  interface HeaderData {
@@ -597,8 +602,9 @@ declare class NavComponent implements AfterViewInit, OnDestroy {
597
602
 
598
603
  declare class FooterComponent {
599
604
  version: string;
605
+ versionLabel: string;
600
606
  static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
601
- static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "ptech-footer", never, { "version": { "alias": "version"; "required": false; }; }, {}, never, ["*"], true, never>;
607
+ static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "ptech-footer", never, { "version": { "alias": "version"; "required": false; }; "versionLabel": { "alias": "versionLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
602
608
  }
603
609
 
604
610
  declare class LoadingService {
@@ -1725,14 +1731,27 @@ interface PtechTabConfig<T = any> {
1725
1731
  }
1726
1732
  declare class PtechTabsComponent implements AfterContentInit {
1727
1733
  tabs?: QueryList<PtechTabComponent>;
1734
+ tabsNav?: ElementRef<HTMLElement>;
1735
+ tabsNavComponent?: MatTabNav;
1728
1736
  scrollable: boolean;
1729
1737
  selectedTabChange: EventEmitter<PtechTabComponent<any>>;
1730
1738
  dynamicTabs: PtechTabComponent[];
1739
+ private pointerId;
1740
+ private pointerStartX;
1741
+ private pointerStartY;
1742
+ private pointerStartScrollDistance;
1743
+ private dragging;
1744
+ private suppressClick;
1745
+ private readonly dragThreshold;
1731
1746
  get projectedTabs(): PtechTabComponent[];
1732
1747
  ngAfterContentInit(): void;
1733
1748
  openTab(label: string, template: TemplateRef<any>, data: any, closeable?: boolean, disabled?: boolean, action?: (obj: any) => void): void;
1734
1749
  openTabs(tabs: PtechTabConfig[]): void;
1735
1750
  selectTab(tab: PtechTabComponent): void;
1751
+ onTabClick(event: MouseEvent, tab: PtechTabComponent): void;
1752
+ onPointerDown(event: PointerEvent): void;
1753
+ onPointerMove(event: PointerEvent): void;
1754
+ onPointerEnd(event: PointerEvent): void;
1736
1755
  closeTab(tab: PtechTabComponent): void;
1737
1756
  closeActiveTab(): void;
1738
1757
  closeAllTabs(): void;
@@ -1804,6 +1823,7 @@ interface PtechCarouselItem {
1804
1823
  actionLabel?: string;
1805
1824
  actionUrl?: string;
1806
1825
  alt?: string;
1826
+ data?: unknown;
1807
1827
  }
1808
1828
  declare class PtechCarouselComponent implements OnChanges, OnDestroy {
1809
1829
  private cdr;
@@ -1815,6 +1835,11 @@ declare class PtechCarouselComponent implements OnChanges, OnDestroy {
1815
1835
  showIndicators: boolean;
1816
1836
  showNavigation: boolean;
1817
1837
  ariaLabel: string;
1838
+ slideTemplate?: TemplateRef<{
1839
+ $implicit: PtechCarouselItem;
1840
+ index: number;
1841
+ active: boolean;
1842
+ }>;
1818
1843
  itemClick: EventEmitter<PtechCarouselItem>;
1819
1844
  activeIndexChange: EventEmitter<number>;
1820
1845
  activeIndex: number;
@@ -1838,7 +1863,7 @@ declare class PtechCarouselComponent implements OnChanges, OnDestroy {
1838
1863
  private restartAutoPlay;
1839
1864
  private stopAutoPlay;
1840
1865
  static ɵfac: i0.ɵɵFactoryDeclaration<PtechCarouselComponent, never>;
1841
- static ɵcmp: i0.ɵɵComponentDeclaration<PtechCarouselComponent, "ptech-carousel", never, { "items": { "alias": "items"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "pauseOnHover": { "alias": "pauseOnHover"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "itemClick": "itemClick"; "activeIndexChange": "activeIndexChange"; }, never, never, true, never>;
1866
+ static ɵcmp: i0.ɵɵComponentDeclaration<PtechCarouselComponent, "ptech-carousel", never, { "items": { "alias": "items"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "pauseOnHover": { "alias": "pauseOnHover"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "slideTemplate": { "alias": "slideTemplate"; "required": false; }; }, { "itemClick": "itemClick"; "activeIndexChange": "activeIndexChange"; }, never, never, true, never>;
1842
1867
  }
1843
1868
 
1844
1869
  type PtechTimelineStatus = 'success' | 'error' | 'warning' | 'info' | 'neutral';
@@ -1878,16 +1903,22 @@ declare class PtechTimelineComponent {
1878
1903
  static ɵcmp: i0.ɵɵComponentDeclaration<PtechTimelineComponent, "ptech-timeline", never, { "items": { "alias": "items"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "clickable": { "alias": "clickable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
1879
1904
  }
1880
1905
 
1906
+ /** One process-wide clock tick shared by every breadcrumb/footer clock. */
1907
+ declare class PtechClockService {
1908
+ readonly now$: Observable<Date>;
1909
+ static ɵfac: i0.ɵɵFactoryDeclaration<PtechClockService, never>;
1910
+ static ɵprov: i0.ɵɵInjectableDeclaration<PtechClockService>;
1911
+ }
1881
1912
  /**
1882
1913
  * Renders a local clock for a given IANA zone id - purely presentational, no business rule.
1883
1914
  * It does not know what a "user" or a "preference" is: the consuming app is responsible for
1884
1915
  * resolving zoneId (from wherever its own domain keeps it) and passing it in as a plain input.
1885
- * Ticks its own internal timer (1s if seconds are shown, 30s otherwise) so it works standalone
1886
- * with zero external services - OnPush requires an explicit markForCheck() on each tick since
1887
- * the update originates outside any zone-triggered template event.
1916
+ * Subscribes to the library's process-wide clock so clocks rendered in different shell regions
1917
+ * receive the same Date instance. OnPush requires an explicit markForCheck() on each tick.
1888
1918
  */
1889
1919
  declare class PtechTimezoneClockComponent implements OnInit, OnChanges, OnDestroy {
1890
1920
  private cdr;
1921
+ private clock;
1891
1922
  zoneId: string | null;
1892
1923
  compact: boolean;
1893
1924
  showTimezone: boolean;
@@ -1895,7 +1926,7 @@ declare class PtechTimezoneClockComponent implements OnInit, OnChanges, OnDestro
1895
1926
  time: string;
1896
1927
  effectiveZoneId: string;
1897
1928
  private tickSubscription?;
1898
- constructor(cdr: ChangeDetectorRef);
1929
+ constructor(cdr: ChangeDetectorRef, clock: PtechClockService);
1899
1930
  ngOnInit(): void;
1900
1931
  ngOnChanges(changes: SimpleChanges): void;
1901
1932
  ngOnDestroy(): void;
@@ -2414,5 +2445,5 @@ declare class FakeDataService {
2414
2445
  static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
2415
2446
  }
2416
2447
 
2417
- export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, EmailUtil, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechAutocompleteComponent, PtechCarouselComponent, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechCurrencyPipe, PtechDualListboxComponent, PtechGridDirective, PtechHelpButtonComponent, PtechInputFileComponent, PtechLogsComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
2448
+ export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, EmailUtil, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechAutocompleteComponent, PtechCarouselComponent, PtechClockService, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechCurrencyPipe, PtechDualListboxComponent, PtechGridDirective, PtechHelpButtonComponent, PtechInputFileComponent, PtechLogsComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
2418
2449
  export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, CardVariant, CurrencyCode, DialogModel, FakeUser, FooterItem, HeaderData, IMessageService, NavLink, PasswordOptions, ProfileMenuItem, PtechAutocompleteDataSource, PtechCarouselItem, PtechConfirmationOptions, PtechCurrencyConfig, PtechFileItem, PtechLogModel, PtechPopoverAlign, PtechPopoverPosition, PtechPopoverTrigger, PtechTabConfig, PtechTableAction, PtechTableActionsDisplay, PtechTableColumn, PtechTablePageEvent, PtechTableReorderEvent, PtechTableSelectionChangeEvent, PtechTableSortDirection, PtechTableSortEvent, PtechTableToggleChangeEvent, PtechTimelineItem, PtechTimelineStatus, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn, TableReorderEvent, TableSelectionChangeEvent, TableToggleChangeEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpkin-tech/pumpkin-tech-ng",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "description": "Biblioteca Angular com utilitários e componentes Pumpkin Tech",
5
5
  "license": "MIT",
6
6
  "keywords": [