cps-ui-kit 20.0.0 → 20.2.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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnChanges, OnDestroy, OnInit, AfterViewInit, ElementRef, EventEmitter, ChangeDetectorRef, Renderer2, NgZone, SimpleChanges, PipeTransform, InjectionToken, AfterViewChecked, TemplateRef, ComponentRef, ViewContainerRef, QueryList, AfterContentInit, Type, ApplicationRef, EnvironmentInjector, Injector } from '@angular/core';
3
- import { ControlValueAccessor, NgControl, FormGroup, FormBuilder } from '@angular/forms';
3
+ import { ControlValueAccessor, NgControl, FormGroup } from '@angular/forms';
4
4
  import { AnimationEvent, AnimationBuilder } from '@angular/animations';
5
5
  import { OverlayService, TreeNode, SortEvent, FilterMetadata, SelectItem } from 'primeng/api';
6
6
  import { ConnectedOverlayScrollHandler } from 'primeng/dom';
@@ -2366,14 +2366,14 @@ declare class CpsSortIconComponent implements OnInit, OnDestroy {
2366
2366
  declare class CpsTableColumnSortableDirective extends SortableColumn implements OnInit, OnDestroy {
2367
2367
  private elementRef;
2368
2368
  private viewContainerRef;
2369
- dt: Table;
2369
+ dataTable: Table;
2370
2370
  /**
2371
2371
  * Name of the column to be sorted.
2372
2372
  * @group Props
2373
2373
  */
2374
2374
  field: string;
2375
2375
  sortIconRef: ComponentRef<CpsSortIconComponent>;
2376
- constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, dt: Table);
2376
+ constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, dataTable: Table);
2377
2377
  ngOnInit(): void;
2378
2378
  ngOnDestroy(): void;
2379
2379
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTableColumnSortableDirective, never>;
@@ -4784,8 +4784,6 @@ declare class CpsFileUploadComponent implements OnInit, OnChanges {
4784
4784
  * @group Components
4785
4785
  */
4786
4786
  declare class CpsSchedulerComponent implements OnInit, OnChanges {
4787
- private _fb;
4788
- private _cdr;
4789
4787
  /**
4790
4788
  * Label of the component.
4791
4789
  * @group Props
@@ -4854,6 +4852,9 @@ declare class CpsSchedulerComponent implements OnInit, OnChanges {
4854
4852
  */
4855
4853
  timeZoneChange: EventEmitter<string>;
4856
4854
  scheduleTypes: CpsButtonToggleOption[];
4855
+ private readonly _fb;
4856
+ private readonly _cdr;
4857
+ private readonly _cronValidationService;
4857
4858
  activeScheduleType: string;
4858
4859
  selectOptions: {
4859
4860
  monthsNumeric: {
@@ -4901,7 +4902,6 @@ declare class CpsSchedulerComponent implements OnInit, OnChanges {
4901
4902
  form: FormGroup;
4902
4903
  private _isDirty;
4903
4904
  private _minutesDefault;
4904
- constructor(_fb: FormBuilder, _cdr: ChangeDetectorRef);
4905
4905
  ngOnInit(): void;
4906
4906
  ngOnChanges(changes: SimpleChanges): void;
4907
4907
  setActiveScheduleType(value: string): void;
@@ -4910,12 +4910,36 @@ declare class CpsSchedulerComponent implements OnInit, OnChanges {
4910
4910
  onTimeChanged(value: CpsTime, target: any): void;
4911
4911
  formatTimeValue(value: any): CpsTime;
4912
4912
  private _updateCron;
4913
+ /**
4914
+ * Basic structural validation for pattern recognition.
4915
+ * More permissive than _isValidCron to allow unrecognized patterns
4916
+ * to reach Advanced mode (preserving original behavior).
4917
+ *
4918
+ * @param cron - The cron expression to validate structurally
4919
+ * @returns boolean - True if the structure is valid for pattern parsing
4920
+ */
4921
+ private _isValidCronStructure;
4922
+ /**
4923
+ * Validates a cron expression using the CronValidationService.
4924
+ *
4925
+ * @param cron - The cron expression to validate
4926
+ * @returns boolean - True if the cron expression is valid
4927
+ */
4913
4928
  private _isValidCron;
4914
4929
  private _validateAdvancedExpr;
4915
4930
  private _getAmPmHour;
4916
4931
  private _getHourType;
4917
4932
  private _hourToCron;
4918
4933
  private _handleModelChange;
4934
+ private _isMinutesPattern;
4935
+ private _isHourlyPattern;
4936
+ private _isDailyEveryDaysPattern;
4937
+ private _isDailyWeekdayPattern;
4938
+ private _isWeeklyPattern;
4939
+ private _isMonthlySpecificDayPattern;
4940
+ private _isMonthlySpecificWeekDayPattern;
4941
+ private _isYearlySpecificMonthDayPattern;
4942
+ private _isYearlySpecificMonthWeekPattern;
4919
4943
  private _getDefaultState;
4920
4944
  private _getRange;
4921
4945
  private _getSelectOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "20.0.0",
3
+ "version": "20.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.2.1",
6
6
  "@angular/core": "^20.2.1",