codexly-ui 0.11.8 → 0.12.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "codexly-ui",
3
- "version": "0.11.8",
3
+ "version": "0.12.0",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -2026,6 +2026,13 @@ interface ClxTableTheme {
2026
2026
  /** Whether the table wrapper shows its outer border. Falls back to true. */
2027
2027
  bordered?: boolean;
2028
2028
  }
2029
+ interface ClxTabsTheme {
2030
+ /** Active tab's text/icon/badge color — falls back to primaryColor when unset. */
2031
+ activeTextColor?: ClxColorInput;
2032
+ /** Active tab's bottom underline color — independent of activeTextColor, falls back to
2033
+ * primaryColor when unset. */
2034
+ underlineColor?: ClxColorInput;
2035
+ }
2029
2036
  interface ClxPaginationTheme {
2030
2037
  /** Page-number buttons + the "items per page" select accent color — falls back to
2031
2038
  * primaryColor when unset. */
@@ -2116,6 +2123,8 @@ interface ClxThemeConfig {
2116
2123
  formControls?: ClxFormControlsTheme;
2117
2124
  /** ClxTableComponent global style override — see ClxTableTheme for per-field fallbacks */
2118
2125
  table?: ClxTableTheme;
2126
+ /** ClxTabsComponent global style override — see ClxTabsTheme for per-field fallbacks */
2127
+ tabs?: ClxTabsTheme;
2119
2128
  /** ClxPaginationComponent global style override — see ClxPaginationTheme for per-field fallbacks */
2120
2129
  pagination?: ClxPaginationTheme;
2121
2130
  /** ClxNotificationComponent global style override — see ClxNotificationTheme for per-field fallbacks */
@@ -2632,14 +2641,20 @@ type ClxToastType = ClxColor;
2632
2641
  interface ClxToastAction {
2633
2642
  label: string;
2634
2643
  onClick: () => void;
2635
- /** Visual weight for this action button. Defaults to 'link' to match the single-action look. */
2636
- variant?: 'link' | 'solid' | 'outline' | 'ghost';
2644
+ /** Visual weight for this action button. First action in the list defaults to 'primary', the rest to 'ghost'. */
2645
+ variant?: 'primary' | 'ghost';
2637
2646
  }
2638
2647
  interface ClxToastOptions {
2639
2648
  type?: ClxToastType;
2640
2649
  message: string;
2641
2650
  title?: string;
2642
2651
  icon?: string;
2652
+ /** Small uppercase label above the title (e.g. event source: "Inventario") — pairs with `timestamp`. */
2653
+ category?: string;
2654
+ /** Relative time shown next to `category` (e.g. "hace 2 min"). Ignored when `category` is unset. */
2655
+ timestamp?: Date;
2656
+ /** Small pill next to the title (e.g. "Crítico") for toasts that need extra visual weight. */
2657
+ badgeLabel?: string;
2643
2658
  position?: ClxToastPosition;
2644
2659
  duration?: number;
2645
2660
  showProgress?: boolean;
@@ -2652,10 +2667,13 @@ interface ClxToastOptions {
2652
2667
  /** Multiple action buttons (e.g. Approve/Reject). Takes precedence over `action` when both are set. */
2653
2668
  actions?: ClxToastAction[];
2654
2669
  }
2655
- interface ClxToastEntry extends Required<Omit<ClxToastOptions, 'title' | 'action' | 'actions' | 'icon'>> {
2670
+ interface ClxToastEntry extends Required<Omit<ClxToastOptions, 'title' | 'action' | 'actions' | 'icon' | 'category' | 'timestamp' | 'badgeLabel'>> {
2656
2671
  id: string;
2657
2672
  title?: string;
2658
2673
  icon?: string;
2674
+ category?: string;
2675
+ timestamp?: Date;
2676
+ badgeLabel?: string;
2659
2677
  action?: ClxToastAction;
2660
2678
  actions?: ClxToastAction[];
2661
2679
  removing: boolean;
@@ -2674,11 +2692,14 @@ declare class ClxToastComponent implements OnInit, OnDestroy {
2674
2692
  private _elapsed;
2675
2693
  private _destroyed;
2676
2694
  protected readonly _icon: _angular_core.Signal<string>;
2695
+ protected readonly _bgClass: _angular_core.Signal<string>;
2677
2696
  protected readonly _borderClass: _angular_core.Signal<string>;
2697
+ protected readonly _iconBgClass: _angular_core.Signal<string>;
2678
2698
  protected readonly _colorClass: _angular_core.Signal<string>;
2679
2699
  protected readonly _progressColor: _angular_core.Signal<string>;
2680
2700
  protected readonly _buttonColor: _angular_core.Signal<codexly_ui.ClxColorInput>;
2681
2701
  protected readonly _actions: _angular_core.Signal<ClxToastAction[]>;
2702
+ protected readonly _relativeTime: _angular_core.Signal<string>;
2682
2703
  private get _card();
2683
2704
  ngOnInit(): void;
2684
2705
  ngOnDestroy(): void;
@@ -2713,14 +2734,24 @@ declare class ClxTabDirective {
2713
2734
  declare class ClxTabsComponent {
2714
2735
  private readonly _themeSvc;
2715
2736
  readonly tabs: _angular_core.InputSignal<ClxTabItem[]>;
2737
+ /** Legacy single-color override — still the shared fallback for both activeTextColor and
2738
+ * underlineColor when neither of those is set, so existing callers keep working unchanged. */
2716
2739
  readonly clxColor: _angular_core.InputSignal<ClxColorInput | undefined>;
2740
+ /** Active tab's text/icon/badge color — falls back to clxColor, then the theme's
2741
+ * tabs.activeTextColor (then primaryColor), when unset. */
2742
+ readonly activeTextColor: _angular_core.InputSignal<ClxColorInput | undefined>;
2743
+ /** Active tab's bottom underline color — independent of activeTextColor, falls back to
2744
+ * clxColor, then the theme's tabs.underlineColor (then primaryColor), when unset. */
2745
+ readonly underlineColor: _angular_core.InputSignal<ClxColorInput | undefined>;
2717
2746
  readonly activeTab: _angular_core.ModelSignal<string>;
2718
- protected readonly _clxColor: _angular_core.Signal<ClxColorInput>;
2747
+ private readonly _style;
2748
+ protected readonly _activeTextColor: _angular_core.Signal<ClxColorInput>;
2749
+ protected readonly _underlineColorResolved: _angular_core.Signal<ClxColorInput>;
2719
2750
  protected readonly _panels: _angular_core.Signal<readonly ClxTabDirective[]>;
2720
2751
  protected readonly _underlineClass: _angular_core.Signal<string>;
2721
2752
  protected _badgeClass(tabId: string): string;
2722
2753
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxTabsComponent, never>;
2723
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxTabsComponent, "clx-tabs", never, { "tabs": { "alias": "tabs"; "required": true; "isSignal": true; }; "clxColor": { "alias": "clxColor"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["_panels"], never, true, never>;
2754
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxTabsComponent, "clx-tabs", never, { "tabs": { "alias": "tabs"; "required": true; "isSignal": true; }; "clxColor": { "alias": "clxColor"; "required": false; "isSignal": true; }; "activeTextColor": { "alias": "activeTextColor"; "required": false; "isSignal": true; }; "underlineColor": { "alias": "underlineColor"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; }, { "activeTab": "activeTabChange"; }, ["_panels"], never, true, never>;
2724
2755
  }
2725
2756
 
2726
2757
  type ClxTreeSize = 'sm' | 'md' | 'lg';
@@ -3841,6 +3872,10 @@ interface ClxResolvedPaginationStyle {
3841
3872
  shadow: ClxTableShadow;
3842
3873
  bordered: boolean;
3843
3874
  }
3875
+ interface ClxResolvedTabsStyle {
3876
+ activeTextColor: ClxColorInput;
3877
+ underlineColor: ClxColorInput;
3878
+ }
3844
3879
  interface ClxResolvedNotificationStyle {
3845
3880
  severityColors: Required<ClxNotificationSeverityColors>;
3846
3881
  unreadColor: ClxColorInput;
@@ -3895,6 +3930,10 @@ declare class ClxThemeService {
3895
3930
  /** Resolved style for ClxPaginationComponent — falls back to primaryColor / no shadow /
3896
3931
  * bordered. Per-instance `[color]` input still takes precedence over this theme-wide default. */
3897
3932
  readonly paginationStyle: _angular_core.Signal<ClxResolvedPaginationStyle>;
3933
+ /** Resolved style for ClxTabsComponent — activeTextColor and underlineColor each fall back to
3934
+ * primaryColor independently when unset. Per-instance inputs on clx-tabs still take
3935
+ * precedence over this theme-wide default. */
3936
+ readonly tabsStyle: _angular_core.Signal<ClxResolvedTabsStyle>;
3898
3937
  /** Resolved style for ClxNotificationComponent — severity colors fall back to built-in
3899
3938
  * green/amber/sky/red, unreadColor to primaryColor, borderColor to listBorderColor then
3900
3939
  * primaryColor, radius to the app-wide borderRadius. Per-instance inputs on clx-notification
@@ -4029,6 +4068,9 @@ declare class ClxToastService {
4029
4068
  error(message: string, opts?: Partial<ClxToastOptions>): void;
4030
4069
  warning(message: string, opts?: Partial<ClxToastOptions>): void;
4031
4070
  info(message: string, opts?: Partial<ClxToastOptions>): void;
4071
+ /** Shows a toast built straight from a live ClxNotificationItem (e.g. on SSE arrival) — the same
4072
+ * object already driving the notification panel/bell, no manual field mapping at the call site. */
4073
+ fromNotification(item: ClxNotificationItem, opts?: Partial<ClxToastOptions>): void;
4032
4074
  dismissAll(): void;
4033
4075
  private _getOrCreateContainer;
4034
4076
  private _uid;
@@ -4037,4 +4079,4 @@ declare class ClxToastService {
4037
4079
  }
4038
4080
 
4039
4081
  export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderActionsDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxCollapseComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxMenuItemTrailingDirective, ClxModalComponent, ClxModalService, ClxNativeOverlayService, ClxNavGroupComponent, ClxNotificationComponent, ClxNumberComponent, ClxOtpComponent, ClxPageEmptyComponent, ClxPageHeaderComponent, ClxPageHeaderTitleDirective, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProductQuickViewComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSearchComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSocialIconComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableActionsComponent, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
4040
- export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxBrandSize, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardTitleZoneStyle, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxCollapseDivider, ClxCollapseSize, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerPosition, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption, ClxFontWeight, ClxFormControlsTheme, ClxInputSize, ClxInputStatus, ClxInputType, ClxListItem, ClxListItemLabelZoneStyle, ClxListSize, ClxListVariant, ClxModalButtonOptions, ClxModalConfig, ClxModalRef, ClxModalSize, ClxNavZoneStyle, ClxNotificationItem, ClxNotificationSeverity, ClxNotificationSeverityColors, ClxNotificationSize, ClxNotificationTheme, ClxNumberSize, ClxNumberVariant, ClxOtpSize, ClxPageChangeEvent, ClxPageHeaderTextSize, ClxPageHeaderZoneStyle, ClxPageSizeChangeEvent, ClxPaginationSize, ClxPaginationTheme, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductQuickViewData, ClxProductQuickViewResult, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedCardTitleZoneStyle, ClxResolvedListItemLabelZoneStyle, ClxResolvedNavZoneStyle, ClxResolvedNotificationStyle, ClxResolvedPageHeaderZoneStyle, ClxResolvedPaginationStyle, ClxResolvedTableStyle, ClxResolvedTimelineTitleZoneStyle, ClxReview, ClxRippleItem, ClxSelectOption, ClxSelectSize, ClxShade, ClxShape, ClxSize, ClxSkeletonVariant, ClxSliderSize, ClxSocialPlatform, ClxSpecOption, ClxSpecType, ClxSpinnerColor, ClxSpinnerVariant, ClxStatMetric, ClxStepperOrientation, ClxStepperSize, ClxStepperStatus, ClxStepperStep, ClxTabItem, ClxTableColumn, ClxTablePageEvent, ClxTableSelectionEvent, ClxTableShadow, ClxTableSort, ClxTableSortEvent, ClxTableTheme, ClxTagShape, ClxTagSize, ClxTagVariant, ClxTextareaResize, ClxTextareaSize, ClxTextareaStatus, ClxThemeConfig, ClxThemeMode, ClxTimelineLineStyle, ClxTimelineMode, ClxTimelineSize, ClxTimelineTitleZoneStyle, ClxTimepickerSize, ClxTimepickerStatus, ClxToastAction, ClxToastEntry, ClxToastOptions, ClxToastPosition, ClxToastType, ClxTooltipPosition, ClxTooltipSize, ClxTreeExpandEvent, ClxTreeNode, ClxTreeSelectEvent, ClxTreeSize, ClxTreeVariant, ClxTrendDirection, ClxUploadError, ClxUploadItemAction, ClxUploadItemActionResolver, ClxUploadPreviewItem, ClxUploadSize, ClxVariation, ClxWishlistItem, ClxWishlistPageChangeEvent, ClxWizardColor, ClxWizardOrientation, ClxWizardStepStatus, NativeOverlayRef, SparkPoint };
4082
+ export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxBrandSize, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardTitleZoneStyle, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxCollapseDivider, ClxCollapseSize, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerPosition, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption, ClxFontWeight, ClxFormControlsTheme, ClxInputSize, ClxInputStatus, ClxInputType, ClxListItem, ClxListItemLabelZoneStyle, ClxListSize, ClxListVariant, ClxModalButtonOptions, ClxModalConfig, ClxModalRef, ClxModalSize, ClxNavZoneStyle, ClxNotificationItem, ClxNotificationSeverity, ClxNotificationSeverityColors, ClxNotificationSize, ClxNotificationTheme, ClxNumberSize, ClxNumberVariant, ClxOtpSize, ClxPageChangeEvent, ClxPageHeaderTextSize, ClxPageHeaderZoneStyle, ClxPageSizeChangeEvent, ClxPaginationSize, ClxPaginationTheme, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductQuickViewData, ClxProductQuickViewResult, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedCardTitleZoneStyle, ClxResolvedListItemLabelZoneStyle, ClxResolvedNavZoneStyle, ClxResolvedNotificationStyle, ClxResolvedPageHeaderZoneStyle, ClxResolvedPaginationStyle, ClxResolvedTableStyle, ClxResolvedTabsStyle, ClxResolvedTimelineTitleZoneStyle, ClxReview, ClxRippleItem, ClxSelectOption, ClxSelectSize, ClxShade, ClxShape, ClxSize, ClxSkeletonVariant, ClxSliderSize, ClxSocialPlatform, ClxSpecOption, ClxSpecType, ClxSpinnerColor, ClxSpinnerVariant, ClxStatMetric, ClxStepperOrientation, ClxStepperSize, ClxStepperStatus, ClxStepperStep, ClxTabItem, ClxTableColumn, ClxTablePageEvent, ClxTableSelectionEvent, ClxTableShadow, ClxTableSort, ClxTableSortEvent, ClxTableTheme, ClxTabsTheme, ClxTagShape, ClxTagSize, ClxTagVariant, ClxTextareaResize, ClxTextareaSize, ClxTextareaStatus, ClxThemeConfig, ClxThemeMode, ClxTimelineLineStyle, ClxTimelineMode, ClxTimelineSize, ClxTimelineTitleZoneStyle, ClxTimepickerSize, ClxTimepickerStatus, ClxToastAction, ClxToastEntry, ClxToastOptions, ClxToastPosition, ClxToastType, ClxTooltipPosition, ClxTooltipSize, ClxTreeExpandEvent, ClxTreeNode, ClxTreeSelectEvent, ClxTreeSize, ClxTreeVariant, ClxTrendDirection, ClxUploadError, ClxUploadItemAction, ClxUploadItemActionResolver, ClxUploadPreviewItem, ClxUploadSize, ClxVariation, ClxWishlistItem, ClxWishlistPageChangeEvent, ClxWizardColor, ClxWizardOrientation, ClxWizardStepStatus, NativeOverlayRef, SparkPoint };