codexly-ui 0.10.104 → 0.10.106

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.10.104",
3
+ "version": "0.10.106",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -164,6 +164,12 @@ declare class ClxButtonComponent {
164
164
  protected readonly _inactive: _angular_core.Signal<boolean>;
165
165
  protected readonly _badgeClass: _angular_core.Signal<string>;
166
166
  protected readonly _colorClass: _angular_core.Signal<string>;
167
+ /** Auto-applies primaryButtonTextColor/secondaryButtonTextColor from the theme when this
168
+ * button's own resolved color IS the theme's primaryColor/secondaryColor and no explicit
169
+ * [textColor] was passed — lets "Nuevo tema"-style solid buttons get a themed text color
170
+ * without every call site having to pass [textColor] by hand. Any other color (danger,
171
+ * success, a one-off [color]) is left to resolveColor()'s automatic contrast pick. */
172
+ private readonly _themeButtonTextColor;
167
173
  protected readonly _rippleColor: _angular_core.Signal<string>;
168
174
  protected readonly _spinnerColor: _angular_core.Signal<"white" | "inherit">;
169
175
  protected readonly _iconSize: _angular_core.Signal<ClxSize>;
@@ -2015,11 +2021,28 @@ interface ClxTableTheme {
2015
2021
  /** Whether the table wrapper shows its outer border. Falls back to true. */
2016
2022
  bordered?: boolean;
2017
2023
  }
2024
+ interface ClxPaginationTheme {
2025
+ /** Page-number buttons + the "items per page" select accent color — falls back to
2026
+ * primaryColor when unset. */
2027
+ color?: ClxColorInput;
2028
+ /** Wrapper border color — falls back to `color` when unset. */
2029
+ borderColor?: ClxColorInput;
2030
+ /** Drop shadow under the pagination wrapper. Falls back to 'none'. */
2031
+ shadow?: ClxTableShadow;
2032
+ /** Whether the pagination wrapper shows its outer border. Falls back to true. */
2033
+ bordered?: boolean;
2034
+ }
2018
2035
  interface ClxThemeConfig {
2019
2036
  /** Default accent color for all components (buttons, inputs, checkboxes…) */
2020
2037
  primaryColor: ClxColorInput;
2021
2038
  /** Color used for secondary actions (cancel, close buttons) */
2022
2039
  secondaryColor: ClxColorInput;
2040
+ /** Text color for solid buttons using primaryColor — falls back to the auto-resolved
2041
+ * white/dark-800 contrast color (see resolveColor) when unset. */
2042
+ primaryButtonTextColor?: ClxColorInput;
2043
+ /** Text color for solid buttons using secondaryColor — falls back to the auto-resolved
2044
+ * white/dark-800 contrast color (see resolveColor) when unset. */
2045
+ secondaryButtonTextColor?: ClxColorInput;
2023
2046
  /** Color used for destructive actions and error states */
2024
2047
  dangerColor: ClxColorInput;
2025
2048
  /** Color used for success confirmations */
@@ -2050,6 +2073,8 @@ interface ClxThemeConfig {
2050
2073
  formControls?: ClxFormControlsTheme;
2051
2074
  /** ClxTableComponent global style override — see ClxTableTheme for per-field fallbacks */
2052
2075
  table?: ClxTableTheme;
2076
+ /** ClxPaginationComponent global style override — see ClxPaginationTheme for per-field fallbacks */
2077
+ pagination?: ClxPaginationTheme;
2053
2078
  /** Default border-radius style applied to all components */
2054
2079
  borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
2055
2080
  /** Default size for all form/interactive components */
@@ -2622,7 +2647,11 @@ declare class ClxPaginationComponent {
2622
2647
  private readonly _themeSvc;
2623
2648
  readonly totalItems: _angular_core.InputSignal<number>;
2624
2649
  readonly color: _angular_core.InputSignal<ClxColorInput | undefined>;
2650
+ readonly shadow: _angular_core.InputSignal<ClxTableShadow | undefined>;
2651
+ readonly bordered: _angular_core.InputSignal<boolean | undefined>;
2625
2652
  protected readonly _color: _angular_core.Signal<ClxColorInput>;
2653
+ protected readonly _shadow: _angular_core.Signal<ClxTableShadow>;
2654
+ protected readonly _bordered: _angular_core.Signal<boolean>;
2626
2655
  readonly size: _angular_core.InputSignal<ClxPaginationSize | undefined>;
2627
2656
  readonly showPageSize: _angular_core.InputSignal<boolean>;
2628
2657
  /** Opciones manuales. Si está vacío (default) se calculan automáticamente desde totalItems. */
@@ -2652,12 +2681,13 @@ declare class ClxPaginationComponent {
2652
2681
  protected readonly _infoText: _angular_core.Signal<string>;
2653
2682
  protected readonly _pageSizeOptions: _angular_core.Signal<ClxSelectOption[]>;
2654
2683
  protected readonly _pageItems: _angular_core.Signal<PageItem[]>;
2684
+ private static readonly _SHADOW_CLASS;
2655
2685
  protected readonly _wrapClass: _angular_core.Signal<string>;
2656
2686
  protected readonly _infoClass: _angular_core.Signal<string>;
2657
2687
  protected readonly _ellipsisClass: _angular_core.Signal<string>;
2658
2688
  protected _goTo(page: number): void;
2659
2689
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxPaginationComponent, never>;
2660
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxPaginationComponent, "clx-pagination", never, { "totalItems": { "alias": "totalItems"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "currentPage": "currentPageChange"; "pageSize": "pageSizeChange"; "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
2690
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxPaginationComponent, "clx-pagination", never, { "totalItems": { "alias": "totalItems"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "currentPage": "currentPageChange"; "pageSize": "pageSizeChange"; "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
2661
2691
  }
2662
2692
 
2663
2693
  type ClxFilterFieldType = 'checkbox' | 'radio' | 'range' | 'select' | 'date-range';
@@ -3636,6 +3666,12 @@ interface ClxResolvedTableStyle {
3636
3666
  shadow: ClxTableShadow;
3637
3667
  bordered: boolean;
3638
3668
  }
3669
+ interface ClxResolvedPaginationStyle {
3670
+ color: ClxColorInput;
3671
+ borderColor: ClxColorInput;
3672
+ shadow: ClxTableShadow;
3673
+ bordered: boolean;
3674
+ }
3639
3675
  type ClxThemeMode = 'light' | 'dark' | 'system';
3640
3676
  declare class ClxThemeService {
3641
3677
  private readonly _isBrowser;
@@ -3675,6 +3711,12 @@ declare class ClxThemeService {
3675
3711
  * no shadow / bordered. Per-instance `[headerColor]`/`[shadow]`/`[bordered]` inputs on
3676
3712
  * clx-table itself still take precedence over this theme-wide default. */
3677
3713
  readonly tableStyle: _angular_core.Signal<ClxResolvedTableStyle>;
3714
+ /** Resolved style for ClxPaginationComponent — falls back to primaryColor / no shadow /
3715
+ * bordered. Per-instance `[color]` input still takes precedence over this theme-wide default. */
3716
+ readonly paginationStyle: _angular_core.Signal<ClxResolvedPaginationStyle>;
3717
+ /** Resolved text color for solid primary/secondary buttons — undefined means "let
3718
+ * resolveColor() auto-pick white/dark-800 based on shade", same as today. */
3719
+ buttonTextColor(role: 'primary' | 'secondary'): ClxColorInput | undefined;
3678
3720
  constructor();
3679
3721
  setMode(mode: ClxThemeMode): void;
3680
3722
  setConfig(patch: Partial<ClxThemeConfig>): void;
@@ -3803,4 +3845,4 @@ declare class ClxToastService {
3803
3845
  }
3804
3846
 
3805
3847
  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, 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, 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 };
3806
- 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, ClxNumberSize, ClxNumberVariant, ClxOtpSize, ClxPageChangeEvent, ClxPageHeaderTextSize, ClxPageHeaderZoneStyle, ClxPageSizeChangeEvent, ClxPaginationSize, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductQuickViewData, ClxProductQuickViewResult, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedCardTitleZoneStyle, ClxResolvedListItemLabelZoneStyle, ClxResolvedNavZoneStyle, ClxResolvedPageHeaderZoneStyle, 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 };
3848
+ 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, ClxNumberSize, ClxNumberVariant, ClxOtpSize, ClxPageChangeEvent, ClxPageHeaderTextSize, ClxPageHeaderZoneStyle, ClxPageSizeChangeEvent, ClxPaginationSize, ClxPaginationTheme, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductQuickViewData, ClxProductQuickViewResult, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedCardTitleZoneStyle, ClxResolvedListItemLabelZoneStyle, ClxResolvedNavZoneStyle, 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 };