ca-components 1.0.71 → 1.0.73

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.
Files changed (28) hide show
  1. package/README.md +1 -1
  2. package/esm2022/lib/components/ca-chart-manager/ca-chart-manager.component.mjs +3 -3
  3. package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +205 -0
  4. package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +2 -1
  5. package/esm2022/lib/components/ca-dropdown-menu/models/dropdown-menu-option-emit.model.mjs +2 -0
  6. package/esm2022/lib/components/ca-dropdown-menu/models/index.mjs +2 -2
  7. package/esm2022/lib/components/ca-modal/ca-modal.component.mjs +9 -3
  8. package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +5 -5
  9. package/esm2022/lib/components/ca-modal-button/enums/modal-button-size.enum.mjs +1 -1
  10. package/esm2022/lib/components/ca-modal-button/enums/modal-button-type.enum.mjs +1 -4
  11. package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +1 -1
  12. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.mjs +1 -1
  13. package/esm2022/lib/utils/helpers/dropdown-menu-content-conditional-items.helper.mjs +1 -1
  14. package/esm2022/lib/utils/helpers/dropdown-menu-content.helper.mjs +3 -1
  15. package/esm2022/public-api.mjs +2 -1
  16. package/fesm2022/ca-components.mjs +215 -12
  17. package/fesm2022/ca-components.mjs.map +1 -1
  18. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.d.ts +44 -0
  19. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.d.ts +2 -2
  20. package/lib/components/ca-dropdown-menu/models/{dropdown-option-emit.model.d.ts → dropdown-menu-option-emit.model.d.ts} +1 -1
  21. package/lib/components/ca-dropdown-menu/models/index.d.ts +1 -1
  22. package/lib/components/ca-modal-button/ca-modal-button.component.d.ts +2 -2
  23. package/lib/components/ca-modal-button/enums/modal-button-type.enum.d.ts +0 -3
  24. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.d.ts +3 -3
  25. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.d.ts +2 -2
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
  28. package/esm2022/lib/components/ca-dropdown-menu/models/dropdown-option-emit.model.mjs +0 -2
@@ -0,0 +1,44 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { AfterViewInit, OnChanges } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CaCustomScrollbarComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
5
+ private ngZone;
6
+ private elRef;
7
+ private chng;
8
+ private bar;
9
+ scrollEvent: EventEmitter<any>;
10
+ scrollBarOptions: any;
11
+ horizontalScrollHeight: number;
12
+ scrollTop: number;
13
+ showScrollbar: boolean;
14
+ scrollHeight: number;
15
+ scrollRatio: number;
16
+ scrollRatioFull: number;
17
+ isMouseDown: boolean;
18
+ barClickPosition: number;
19
+ barClickRestHeight: number;
20
+ private destroy$;
21
+ calculateSizeHeightTimer: any;
22
+ tableNotPinedContainer: any;
23
+ tableNotPinedBoundingRect: any;
24
+ tableBarClickPosition: number;
25
+ tableBarClickRestWidth: number;
26
+ tableScrollRatio: number;
27
+ tableScrollRatioFull: number;
28
+ tableScrollWidth: number;
29
+ constructor(ngZone: NgZone, elRef: ElementRef, chng: ChangeDetectorRef);
30
+ ngOnInit(): void;
31
+ ngOnChanges(changes: SimpleChanges): void;
32
+ ngAfterViewInit(): void;
33
+ setScrollEvent: (e: any) => void;
34
+ setDraggingStart(e: MouseEvent): void;
35
+ calculateBarSizeAndPosition(elem: any, pageHeight?: number): void;
36
+ onMouseUpHandler: () => void;
37
+ resizeHandlerCount: any;
38
+ onResizeHandler: () => void;
39
+ onMouseMoveHandler: (e: any) => void;
40
+ ngOnDestroy(): void;
41
+ projectContentChanged(e: any): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomScrollbarComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomScrollbarComponent, "app-ca-custom-scrollbar", never, { "scrollBarOptions": { "alias": "scrollBarOptions"; "required": false; }; "horizontalScrollHeight": { "alias": "horizontalScrollHeight"; "required": false; }; }, { "scrollEvent": "scrollEvent"; }, never, ["*"], true, never>;
44
+ }
@@ -3,7 +3,7 @@ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
3
3
  import { DropdownMenuStringEnum } from './enums';
4
4
  import { DropdownMenuSvgRoutes } from './utils/svg-routes';
5
5
  import { DropdownMenuType } from './types';
6
- import { DropdownMenuItem, DropdownOptionEmit } from './models';
6
+ import { DropdownMenuItem, DropdownMenuOptionEmit } from './models';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class CaDropdownMenuComponent {
9
9
  type: DropdownMenuType;
@@ -12,7 +12,7 @@ export declare class CaDropdownMenuComponent {
12
12
  isDarkBackground?: boolean;
13
13
  isLeftSideIconPosition?: boolean;
14
14
  isPositionTranslateUnset?: boolean;
15
- dropdownOptionEmitter: EventEmitter<DropdownOptionEmit>;
15
+ dropdownOptionEmitter: EventEmitter<DropdownMenuOptionEmit>;
16
16
  dropdownMenuSvgRoutes: typeof DropdownMenuSvgRoutes;
17
17
  dropdownMenuStringEnum: typeof DropdownMenuStringEnum;
18
18
  dropdownPopover: NgbPopover | null;
@@ -1,4 +1,4 @@
1
- export interface DropdownOptionEmit {
1
+ export interface DropdownMenuOptionEmit {
2
2
  id?: number;
3
3
  type?: string;
4
4
  isActive?: boolean;
@@ -1,2 +1,2 @@
1
1
  export * from './dropdown-menu-item.model';
2
- export * from './dropdown-option-emit.model';
2
+ export * from './dropdown-menu-option-emit.model';
@@ -5,9 +5,9 @@ export declare class CaModalButtonComponent {
5
5
  size: ModalButtonSize;
6
6
  text: string;
7
7
  isValid: boolean;
8
- showSpinner: boolean;
8
+ isSpinnerShown: boolean;
9
9
  ModalButtonType: typeof ModalButtonType;
10
10
  ModalButtonSize: typeof ModalButtonSize;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CaModalButtonComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<CaModalButtonComponent, "app-ca-modal-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaModalButtonComponent, "app-ca-modal-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "isSpinnerShown": { "alias": "isSpinnerShown"; "required": false; }; }, {}, never, never, true, never>;
13
13
  }
@@ -1,7 +1,4 @@
1
1
  export declare enum ModalButtonType {
2
- CONVERT_TEMPLATE = "Convert Template",
3
- SAVE_ADD_NEW = "Save and Add New",
4
- SAVE = "Save",
5
2
  PRIMARY_POSITIVE = "Primary Positive",
6
3
  PRIMARY_NEUTRAL = "Primary Neutral",
7
4
  PRIMARY_NEGATIVE = "Primary Negative",
@@ -3,7 +3,7 @@ import { PeriodContentSvgRoutes } from '../../utils/svg-routes';
3
3
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
4
4
  import { CaDropdownMenuComponent } from '../../../ca-dropdown-menu/ca-dropdown-menu.component';
5
5
  import { PayrollReportTableResponse } from '../../models/payroll-report-tables.type';
6
- import { DropdownMenuItem, DropdownOptionEmit } from '../../../ca-dropdown-menu/models';
6
+ import { DropdownMenuItem, DropdownMenuOptionEmit } from '../../../ca-dropdown-menu/models';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class CaPeriodContentPaymentComponent implements OnInit {
9
9
  private cdr;
@@ -21,7 +21,7 @@ export declare class CaPeriodContentPaymentComponent implements OnInit {
21
21
  hideTotal: boolean;
22
22
  openAddNewModalEmiter: EventEmitter<string>;
23
23
  openEditEntryItem: EventEmitter<{
24
- $event: DropdownOptionEmit;
24
+ $event: DropdownMenuOptionEmit;
25
25
  data: any;
26
26
  title: string;
27
27
  }>;
@@ -41,7 +41,7 @@ export declare class CaPeriodContentPaymentComponent implements OnInit {
41
41
  identity(index: number): number;
42
42
  openAddNewModal(): void;
43
43
  handleMenuOpen(event: {
44
- $event: DropdownOptionEmit;
44
+ $event: DropdownMenuOptionEmit;
45
45
  data: PayrollReportTableResponse;
46
46
  title: string;
47
47
  }): void;
@@ -1,7 +1,7 @@
1
1
  import { PickupDeliverySvgRoutes } from '../../../../utils/svg-routes';
2
2
  import { FormatCurrencyPipe } from '../../../../../../pipes/format-currency.pipe';
3
3
  import { LoadShortResponse, StatusTypeEnum } from '../../../../models';
4
- import { DropdownMenuItem, DropdownOptionEmit } from '../../../../../ca-dropdown-menu/models';
4
+ import { DropdownMenuItem, DropdownMenuOptionEmit } from '../../../../../ca-dropdown-menu/models';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ActiveLoadComponent {
7
7
  formatCurrencyPipe: FormatCurrencyPipe;
@@ -12,7 +12,7 @@ export declare class ActiveLoadComponent {
12
12
  ngOnInit(): void;
13
13
  private setDropdownOptions;
14
14
  getSvgPath(propertyName: keyof typeof PickupDeliverySvgRoutes): string;
15
- handleMenuOpen(event: DropdownOptionEmit): void;
15
+ handleMenuOpen(event: DropdownMenuOptionEmit): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ActiveLoadComponent, never>;
17
17
  static ɵcmp: i0.ɵɵComponentDeclaration<ActiveLoadComponent, "app-ca-load-single", never, { "activeLoad": { "alias": "activeLoad"; "required": false; }; "status": { "alias": "status"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",
package/public-api.d.ts CHANGED
@@ -50,3 +50,4 @@ export * from './lib/components/ca-sort-dropdown/enums';
50
50
  export * from './lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component';
51
51
  export * from './lib/components/ca-modal-button/ca-modal-button.component';
52
52
  export * from './lib/components/ca-chart-manager/ca-chart-manager.component';
53
+ export * from './lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tb3B0aW9uLWVtaXQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1kcm9wZG93bi1tZW51L21vZGVscy9kcm9wZG93bi1vcHRpb24tZW1pdC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBEcm9wZG93bk9wdGlvbkVtaXQge1xuICAgIGlkPzogbnVtYmVyO1xuICAgIHR5cGU/OiBzdHJpbmc7XG4gICAgaXNBY3RpdmU/OiBib29sZWFuO1xufVxuIl19