cats-ui-lib 2.0.5 → 2.0.6

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
@@ -1062,7 +1062,6 @@ interface TabItem {
1062
1062
  leadingIcon?: string;
1063
1063
  tralingIocn?: string;
1064
1064
  count?: number | string;
1065
- closable?: boolean;
1066
1065
  isDisable?: boolean;
1067
1066
  isHome?: boolean;
1068
1067
  }
@@ -1118,6 +1117,8 @@ declare class TimestampFilterComponent {
1118
1117
  activePicker: TimeFilterOption | null;
1119
1118
  lastValue: number;
1120
1119
  lastUnit: 'Hours' | 'Days';
1120
+ get normalOptions(): TimeFilterOption[];
1121
+ get customOptions(): TimeFilterOption[];
1121
1122
  ngOnInit(): void;
1122
1123
  getPickerConfig(option: TimeFilterOption): DatePickerConfig;
1123
1124
  selectOption(option: TimeFilterOption): void;
@@ -1135,5 +1136,57 @@ declare class TimestampFilterComponent {
1135
1136
  static ɵcmp: i0.ɵɵComponentDeclaration<TimestampFilterComponent, "cats-ui-timestamp-filter", never, { "config": { "alias": "config"; "required": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
1136
1137
  }
1137
1138
 
1138
- export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, DateTimePickerComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabComponent, TabContentComponent, TabContentDirective, TabHeadingDirective, TabItemComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent };
1139
+ declare class WizardService {
1140
+ private wizards;
1141
+ activeStep: i0.WritableSignal<any>;
1142
+ stepConfig: i0.WritableSignal<any>;
1143
+ open(wizardId: string, config: any): void;
1144
+ close(wizardId: string): void;
1145
+ nextStep(wizardId: string): void;
1146
+ previousStep(wizardId: string): void;
1147
+ gotoStep(step: number, wizardId: string): void;
1148
+ isOpen(wizardId: string): i0.Signal<any>;
1149
+ getConfig(wizardId: string): i0.Signal<any>;
1150
+ getCurrentStepIndex(wizardId: string): i0.Signal<any>;
1151
+ getCurrentStep(wizardId: string): i0.Signal<any>;
1152
+ getProgress(wizardId: string): i0.Signal<number>;
1153
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardService, never>;
1154
+ static ɵprov: i0.ɵɵInjectableDeclaration<WizardService>;
1155
+ }
1156
+
1157
+ declare class WizardStepDirective {
1158
+ templateRef: TemplateRef<any>;
1159
+ constructor(templateRef: TemplateRef<any>);
1160
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepDirective, never>;
1161
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WizardStepDirective, "[wizardStep]", never, {}, {}, never, never, true, never>;
1162
+ }
1163
+
1164
+ declare class WizardComponent {
1165
+ private commonService;
1166
+ wizardId: string;
1167
+ title: string;
1168
+ closed: EventEmitter<void>;
1169
+ stepTemplates: QueryList<WizardStepDirective>;
1170
+ showProgressBar: boolean;
1171
+ showStepBadge: boolean;
1172
+ expandable: boolean;
1173
+ isExpanded: boolean;
1174
+ toggleExpand(): void;
1175
+ steps: any;
1176
+ activeStep: any;
1177
+ templates: WizardStepDirective[];
1178
+ constructor(commonService: WizardService);
1179
+ ngAfterContentInit(): void;
1180
+ get currentStepIndex(): number;
1181
+ get wizardSteps(): any[];
1182
+ get currentTemplate(): i0.TemplateRef<any>;
1183
+ get currentStepLabel(): string;
1184
+ get currentStepNumber(): number;
1185
+ goToStep(step: number): void;
1186
+ closeModal(): void;
1187
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
1188
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "cats-ui-wizard", never, { "wizardId": { "alias": "wizardId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showStepBadge": { "alias": "showStepBadge"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; }, { "closed": "closed"; }, ["stepTemplates"], never, true, never>;
1189
+ }
1190
+
1191
+ export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, DateTimePickerComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabComponent, TabContentComponent, TabContentDirective, TabHeadingDirective, TabItemComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent, WizardComponent, WizardService, WizardStepDirective };
1139
1192
  export type { CalenderView, DateConfig, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, FilterType, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cats-ui-lib",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=18 <22",
6
6
  "@angular/common": ">=18 <22"
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  // ------------------Button Styles--------------------
20
- button {
20
+ button.button {
21
21
  border: rem(1px) solid transparent;
22
22
  padding: 0 rem(28px);
23
23
  height: rem(56px);
@@ -230,7 +230,6 @@ button {
230
230
  font-weight: 600;
231
231
  }
232
232
 
233
-
234
233
  /* Padding Classes (sp prefix) */
235
234
  .sp-0 {
236
235
  padding: rem(0px);
@@ -801,6 +800,79 @@ button {
801
800
  border-radius: rem(36px);
802
801
  }
803
802
 
804
- .br-200{
803
+ .br-200 {
805
804
  border-radius: rem(200px);
806
- }
805
+ }
806
+
807
+ // ------------------Checkbox Styles--------------------
808
+ .checkbox-container {
809
+ @include flex(flex-start, center, rem(8px));
810
+ @include fontStyle(var(--fs-16), rem(20px), 400);
811
+ margin-bottom: rem(8px);
812
+ color: var(--text-heading-primary);
813
+
814
+ input[type="checkbox"] {
815
+ appearance: none;
816
+ -webkit-appearance: none;
817
+ @include box(rem(16px), rem(16px));
818
+ min-width: rem(16px);
819
+ @include border();
820
+ cursor: pointer;
821
+ background-color: var(--surface-background-canvas);
822
+ position: relative;
823
+ transition: all 0.2s ease;
824
+
825
+ // --- Default (unchecked) ---
826
+ &::after {
827
+ content: "";
828
+ display: none;
829
+ position: absolute;
830
+ @include position(rem(-1px), rem(-1px));
831
+ @include box(rem(16px), rem(16px));
832
+ background-size: auto;
833
+ background-repeat: no-repeat;
834
+ background-position: center;
835
+ }
836
+ // --- Checked State ---
837
+ &:checked {
838
+ border-color: var(--border-interaction-focus);
839
+ background-color: var(--surface-action-default);
840
+ &::after {
841
+ display: block;
842
+ background-image: url("/images/check-white.svg");
843
+ background-size: rem(8px) rem(6px);
844
+ }
845
+ }
846
+ // --- Indeterminate (minus) state ---
847
+ &:indeterminate {
848
+ border-color: var(--border-interaction-focus);
849
+ background-color: var(--surface-background-canvas);
850
+ &::after {
851
+ display: block;
852
+ top: 0;
853
+ background-image: url("/images/minus-blue.svg");
854
+ background-size: rem(7px) rem(1px);
855
+ }
856
+ }
857
+ // Disabled (unchecked)
858
+ &:disabled {
859
+ cursor: default;
860
+ background-color: var(--surface-background-default);
861
+ border-color: var(--border-core-muted);
862
+ & + span {
863
+ color: var(--text-body-muted);
864
+ }
865
+ }
866
+
867
+ // Disabled + Checked (IMPORTANT)
868
+ &:checked:disabled {
869
+ background-color: var(--surface-background-default);
870
+ border-color: var(--border-core-muted);
871
+
872
+ &::after {
873
+ display: block;
874
+ background-image: url("/images/check-disabled.svg");
875
+ }
876
+ }
877
+ }
878
+ }