ngx-histaff-alpha 3.3.2 → 3.3.4

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.
@@ -10,6 +10,7 @@ export declare class CoreOrgParamComponent extends CoreFormControlBaseComponent
10
10
  private seekerService;
11
11
  private layoutService;
12
12
  private organizationService;
13
+ accessorMode: EnumCoreOrgTreeaAccessorMode;
13
14
  value: number[];
14
15
  lang: string;
15
16
  sourceOpen: boolean;
@@ -17,7 +18,6 @@ export declare class CoreOrgParamComponent extends CoreFormControlBaseComponent
17
18
  childComponentHeight: number;
18
19
  sourceSpaceHeight: number;
19
20
  valueToShow: string;
20
- accessorMode: EnumCoreOrgTreeaAccessorMode;
21
21
  pendingIds: number[];
22
22
  showPageHeader: boolean;
23
23
  ids: number[];
@@ -33,5 +33,5 @@ export declare class CoreOrgParamComponent extends CoreFormControlBaseComponent
33
33
  onItemClick(e: any): void;
34
34
  onClickClear(): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreOrgParamComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreOrgParamComponent, "core-org-param", never, {}, {}, never, never, true, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreOrgParamComponent, "core-org-param", never, { "accessorMode": { "alias": "accessorMode"; "required": false; }; }, {}, never, never, true, never>;
37
37
  }
@@ -0,0 +1,20 @@
1
+ import { AfterViewInit, ElementRef, ChangeDetectorRef, WritableSignal } from '@angular/core';
2
+ import { IAtShift } from '../../interfaces/time-management/IAtShift';
3
+ import { WorkShiftDndService } from '../../services/work-shift-dnd.service';
4
+ import { CoreFormControlBaseComponent } from '../core-form-control-base/core-form-control-base.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CoreShiftCellComponent extends CoreFormControlBaseComponent implements AfterViewInit {
7
+ private cdr;
8
+ private workShiftDndService;
9
+ value: IAtShift[];
10
+ writeValue(obj: IAtShift[]): void;
11
+ $backgroundColor: import("@angular/core").InputSignal<string>;
12
+ $container: import("@angular/core").Signal<ElementRef<any> | undefined>;
13
+ shiftCellId: string;
14
+ private dragElements;
15
+ $shifts: WritableSignal<IAtShift[]>;
16
+ constructor(cdr: ChangeDetectorRef, workShiftDndService: WorkShiftDndService);
17
+ ngAfterViewInit(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreShiftCellComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreShiftCellComponent, "core-shift-cell", never, { "$backgroundColor": { "alias": "$backgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
+ }
@@ -1,26 +1,47 @@
1
- import { OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IAtShift } from '../../interfaces/time-management/IAtShift';
3
3
  import { BaseComponent } from '../base-component/base/base.component';
4
+ import { WorkShiftDndService } from '../../services/work-shift-dnd.service';
4
5
  import * as i0 from "@angular/core";
5
- export declare class CoreShiftStickerComponent extends BaseComponent implements OnInit {
6
- shift: IAtShift;
7
- width: number;
8
- code: string;
9
- name: string;
10
- hoursStart: Date;
11
- hoursStop: Date;
12
- symbolCode: string;
13
- symbolName: string;
14
- isOff: boolean | undefined;
15
- isNight: boolean | undefined;
16
- isHolidayCal: boolean | undefined;
17
- isHaveSal: boolean | undefined;
18
- isInsArising: boolean | undefined;
6
+ export declare class CoreShiftStickerComponent extends BaseComponent implements OnChanges, OnInit, AfterViewInit {
7
+ $container: import("@angular/core").Signal<ElementRef<any> | undefined>;
8
+ $shiftDetails: import("@angular/core").Signal<ElementRef<any> | undefined>;
9
+ $check: import("@angular/core").Signal<ElementRef<any> | undefined>;
10
+ $plus: import("@angular/core").Signal<ElementRef<any> | undefined>;
11
+ $shift: import("@angular/core").InputSignal<IAtShift>;
12
+ $shiftCellId: import("@angular/core").InputSignal<string>;
13
+ cdr: ChangeDetectorRef;
14
+ workShiftDndService: WorkShiftDndService;
15
+ checked: boolean;
16
+ $height: import("@angular/core").InputSignal<number>;
17
+ $width: import("@angular/core").InputSignal<number | undefined>;
18
+ $code: import("@angular/core").Signal<string>;
19
+ $name: import("@angular/core").Signal<string>;
20
+ $hoursStart: import("@angular/core").Signal<Date>;
21
+ $hoursStop: import("@angular/core").Signal<Date>;
22
+ $symbolCode: import("@angular/core").Signal<string>;
23
+ $symbolName: import("@angular/core").Signal<string>;
24
+ $isOff: import("@angular/core").Signal<boolean | undefined>;
25
+ $isHolidayCal: import("@angular/core").Signal<boolean | undefined>;
26
+ $isHaveSal: import("@angular/core").Signal<boolean | undefined>;
27
+ $isInsArising: import("@angular/core").Signal<boolean | undefined>;
28
+ $duration: import("@angular/core").Signal<number>;
19
29
  relativelyIsMorning: boolean | undefined;
20
30
  relativelyIsAfternoon: boolean | undefined;
21
31
  relativelyIsEverning: boolean | undefined;
22
32
  relativelyIsNight: boolean | undefined;
33
+ height: string;
34
+ borderRadius: string;
35
+ fontSize: string;
36
+ lineHeight: number;
37
+ firstLinefontWeight: number;
38
+ cursor: string;
39
+ padding: string;
40
+ color: string;
41
+ backgroundColor: string;
42
+ ngOnChanges(changes: SimpleChanges): void;
23
43
  ngOnInit(): void;
44
+ ngAfterViewInit(): void;
24
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreShiftStickerComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreShiftStickerComponent, "core-shift-sticker", never, { "shift": { "alias": "shift"; "required": true; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreShiftStickerComponent, "core-shift-sticker", never, { "$shift": { "alias": "$shift"; "required": true; "isSignal": true; }; "$shiftCellId": { "alias": "$shiftCellId"; "required": true; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; }; "$height": { "alias": "$height"; "required": false; "isSignal": true; }; "$width": { "alias": "$width"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
47
  }
@@ -0,0 +1,12 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { IAtShift } from '../interfaces/time-management/IAtShift';
3
+ import * as i0 from "@angular/core";
4
+ export declare class WorkShiftDndService {
5
+ draggingData$: BehaviorSubject<string>;
6
+ draggingShift$: BehaviorSubject<IAtShift | undefined>;
7
+ draggingFromCellId$: BehaviorSubject<string>;
8
+ dragoverCellId$: BehaviorSubject<string>;
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<WorkShiftDndService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<WorkShiftDndService>;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-histaff-alpha",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0"
package/public-api.d.ts CHANGED
@@ -94,6 +94,7 @@ export * from './lib/app/services/uploaded-file.service';
94
94
  export * from './lib/app/services/url.service';
95
95
  export * from './lib/app/services/user-activity.service';
96
96
  export * from './lib/app/services/valuate-dialog.service';
97
+ export * from './lib/app/services/work-shift-dnd.service';
97
98
  export * from './lib/app/root/function/function.component';
98
99
  export * from './lib/app/root/function/edit/function-edit.component';
99
100
  export * from './lib/app/root/function-ignore/function-ignore/function-ignore.component';
@@ -236,6 +237,7 @@ export * from './lib/app/libraries/core-scroll/core-scroll/core-scroll.component
236
237
  export * from './lib/app/libraries/core-scroll-lazy/core-scroll-lazy/core-scroll-lazy.component';
237
238
  export * from './lib/app/libraries/core-seen-by/core-seen-by.component';
238
239
  export * from './lib/app/libraries/core-shift-sticker/core-shift-sticker.component';
240
+ export * from './lib/app/libraries/core-shift-cell/core-shift-cell.component';
239
241
  export * from './lib/app/libraries/core-status-sticker/core-status-sticker/IStickerColorSchema';
240
242
  export * from './lib/app/libraries/core-status-sticker/core-status-sticker/STICKER_COLOR_SCHEMA';
241
243
  export * from './lib/app/libraries/core-status-sticker/core-status-sticker/core-status-sticker.component';