ng-zenduit 1.0.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.
Files changed (117) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/breadcrumbs/zendu-breadcrumbs.component.mjs +37 -0
  3. package/esm2020/lib/card-block/zendu-card-block.component.mjs +21 -0
  4. package/esm2020/lib/checkbox/zendu-checkbox.component.mjs +44 -0
  5. package/esm2020/lib/colorpicker/zendu-colorpicker.component.mjs +106 -0
  6. package/esm2020/lib/column-configuration/columnState.mjs +2 -0
  7. package/esm2020/lib/column-configuration/zendu-column-configuration.component.mjs +118 -0
  8. package/esm2020/lib/datepicker/date-picker-day.mjs +2 -0
  9. package/esm2020/lib/datepicker/date-picker-hint.mjs +2 -0
  10. package/esm2020/lib/datepicker/datepicker.mjs +9 -0
  11. package/esm2020/lib/datepicker/zendu-datepicker.component.mjs +434 -0
  12. package/esm2020/lib/doc-scanner/zendu-doc-scanner.component.mjs +628 -0
  13. package/esm2020/lib/file-upload/zendu-file-upload.component.mjs +107 -0
  14. package/esm2020/lib/filter/dateRange.mjs +2 -0
  15. package/esm2020/lib/filter/filtersConfig.mjs +2 -0
  16. package/esm2020/lib/filter/numberRange.mjs +2 -0
  17. package/esm2020/lib/filter/zendu-filter.component.mjs +461 -0
  18. package/esm2020/lib/icon/zendu-icon.component.mjs +24 -0
  19. package/esm2020/lib/local.lock.mjs +33 -0
  20. package/esm2020/lib/location-search/location.address.mjs +2 -0
  21. package/esm2020/lib/location-search/zendu-location-search.component.mjs +129 -0
  22. package/esm2020/lib/map/map.types.mjs +2 -0
  23. package/esm2020/lib/map/zendu-map.component.mjs +129 -0
  24. package/esm2020/lib/map-preview/zendu-map-preview.component.mjs +30 -0
  25. package/esm2020/lib/ng-zenduit.module.mjs +158 -0
  26. package/esm2020/lib/pagination-bar/pageItem.mjs +2 -0
  27. package/esm2020/lib/pagination-bar/zendu-pagination-bar.component.mjs +71 -0
  28. package/esm2020/lib/phone-input/zendu-phone-input.component.mjs +141 -0
  29. package/esm2020/lib/progress/zendu-progress.component.mjs +29 -0
  30. package/esm2020/lib/radio-button/radio-button.component.mjs +48 -0
  31. package/esm2020/lib/search-box/zendu-search-box.component.mjs +124 -0
  32. package/esm2020/lib/select/templates/zendu-select-option.directive.mjs +16 -0
  33. package/esm2020/lib/select/templates/zendu-select-value.directive.mjs +16 -0
  34. package/esm2020/lib/select/zendu-select.component.mjs +303 -0
  35. package/esm2020/lib/services/geoconding.service.mjs +61 -0
  36. package/esm2020/lib/services/map.service.mjs +181 -0
  37. package/esm2020/lib/services/opencv.service.mjs +109 -0
  38. package/esm2020/lib/services/zendu-notify.service.mjs +92 -0
  39. package/esm2020/lib/sort-header/zendu-sort-header.component.mjs +36 -0
  40. package/esm2020/lib/spinner/zendu-spinner.component.mjs +11 -0
  41. package/esm2020/lib/toggle/zendu-toggle.component.mjs +32 -0
  42. package/esm2020/lib/toggle-slide/zendu-toggle-slide.component.mjs +27 -0
  43. package/esm2020/lib/util.mjs +93 -0
  44. package/esm2020/ng-zenduit.mjs +5 -0
  45. package/esm2020/public-api.mjs +42 -0
  46. package/fesm2015/ng-zenduit.mjs +3768 -0
  47. package/fesm2015/ng-zenduit.mjs.map +1 -0
  48. package/fesm2020/ng-zenduit.mjs +3735 -0
  49. package/fesm2020/ng-zenduit.mjs.map +1 -0
  50. package/icons/arrow-down-small.svg +3 -0
  51. package/icons/arrow-up-small.svg +3 -0
  52. package/icons/calendar.svg +6 -0
  53. package/icons/cross.svg +3 -0
  54. package/icons/date.svg +3 -0
  55. package/icons/expand.svg +3 -0
  56. package/icons/filter.svg +3 -0
  57. package/icons/play.svg +10 -0
  58. package/icons/redo.svg +3 -0
  59. package/icons/rotate.svg +3 -0
  60. package/icons/time.svg +4 -0
  61. package/icons/undo.svg +3 -0
  62. package/index.d.ts +5 -0
  63. package/lib/breadcrumbs/zendu-breadcrumbs.component.d.ts +22 -0
  64. package/lib/card-block/zendu-card-block.component.d.ts +9 -0
  65. package/lib/checkbox/zendu-checkbox.component.d.ts +17 -0
  66. package/lib/colorpicker/zendu-colorpicker.component.d.ts +28 -0
  67. package/lib/column-configuration/columnState.d.ts +7 -0
  68. package/lib/column-configuration/zendu-column-configuration.component.d.ts +43 -0
  69. package/lib/datepicker/date-picker-day.d.ts +8 -0
  70. package/lib/datepicker/date-picker-hint.d.ts +5 -0
  71. package/lib/datepicker/datepicker.d.ts +7 -0
  72. package/lib/datepicker/zendu-datepicker.component.d.ts +94 -0
  73. package/lib/doc-scanner/zendu-doc-scanner.component.d.ts +82 -0
  74. package/lib/file-upload/zendu-file-upload.component.d.ts +28 -0
  75. package/lib/filter/dateRange.d.ts +4 -0
  76. package/lib/filter/filtersConfig.d.ts +88 -0
  77. package/lib/filter/numberRange.d.ts +4 -0
  78. package/lib/filter/zendu-filter.component.d.ts +59 -0
  79. package/lib/icon/zendu-icon.component.d.ts +10 -0
  80. package/lib/local.lock.d.ts +8 -0
  81. package/lib/location-search/location.address.d.ts +12 -0
  82. package/lib/location-search/zendu-location-search.component.d.ts +32 -0
  83. package/lib/map/map.types.d.ts +33 -0
  84. package/lib/map/zendu-map.component.d.ts +23 -0
  85. package/lib/map-preview/zendu-map-preview.component.d.ts +11 -0
  86. package/lib/ng-zenduit.module.d.ts +34 -0
  87. package/lib/pagination-bar/pageItem.d.ts +4 -0
  88. package/lib/pagination-bar/zendu-pagination-bar.component.d.ts +25 -0
  89. package/lib/phone-input/zendu-phone-input.component.d.ts +39 -0
  90. package/lib/progress/zendu-progress.component.d.ts +14 -0
  91. package/lib/radio-button/radio-button.component.d.ts +18 -0
  92. package/lib/search-box/zendu-search-box.component.d.ts +26 -0
  93. package/lib/select/templates/zendu-select-option.directive.d.ts +8 -0
  94. package/lib/select/templates/zendu-select-value.directive.d.ts +8 -0
  95. package/lib/select/zendu-select.component.d.ts +107 -0
  96. package/lib/services/geoconding.service.d.ts +23 -0
  97. package/lib/services/map.service.d.ts +22 -0
  98. package/lib/services/opencv.service.d.ts +46 -0
  99. package/lib/services/zendu-notify.service.d.ts +10 -0
  100. package/lib/sort-header/zendu-sort-header.component.d.ts +10 -0
  101. package/lib/spinner/zendu-spinner.component.d.ts +5 -0
  102. package/lib/toggle/zendu-toggle.component.d.ts +14 -0
  103. package/lib/toggle-slide/zendu-toggle-slide.component.d.ts +13 -0
  104. package/lib/util.d.ts +11 -0
  105. package/package.json +36 -0
  106. package/public-api.d.ts +38 -0
  107. package/styles/action-menu.scss +127 -0
  108. package/styles/all.scss +11 -0
  109. package/styles/button.scss +188 -0
  110. package/styles/colors.scss +125 -0
  111. package/styles/common-form.scss +159 -0
  112. package/styles/extenal.scss +2 -0
  113. package/styles/ghost.scss +38 -0
  114. package/styles/global-restyle.scss +25 -0
  115. package/styles/page-layout.scss +82 -0
  116. package/styles/snackbar.scss +91 -0
  117. package/styles/table.scss +107 -0
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { GeocodingService } from '../services/geoconding.service';
3
+ import { LocationAddress } from './location.address';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ZenduLocationSearch {
6
+ private _geocoding;
7
+ private _cdRef;
8
+ /**
9
+ * HERE MAPS API Key
10
+ */
11
+ set apiKey(apiKey: string);
12
+ address: string;
13
+ displaySearchIcon: boolean;
14
+ addressChange: EventEmitter<string>;
15
+ materialStyle: boolean;
16
+ placeholder: string;
17
+ disabled: boolean;
18
+ onSelect: EventEmitter<LocationAddress>;
19
+ customStyles: any;
20
+ private addressSearchChanged;
21
+ isSearching: boolean;
22
+ ignoreFirstLoad: boolean;
23
+ addressList: LocationAddress[];
24
+ private _cancelation;
25
+ constructor(_geocoding: GeocodingService, _cdRef: ChangeDetectorRef);
26
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
27
+ addressChanged(text: string): void;
28
+ private makeSearch;
29
+ selectAddress(address: LocationAddress): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduLocationSearch, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduLocationSearch, "zen-location-search", never, { "apiKey": "apiKey"; "address": "address"; "displaySearchIcon": "displaySearchIcon"; "materialStyle": "materialStyle"; "placeholder": "placeholder"; "disabled": "disabled"; "customStyles": "customStyles"; }, { "addressChange": "addressChange"; "onSelect": "onSelect"; }, never, never, false>;
32
+ }
@@ -0,0 +1,33 @@
1
+ export interface ZenLogRecord {
2
+ /**
3
+ * The date and time the log was recorded.
4
+ */
5
+ dateTime?: string;
6
+ /**
7
+ * The latitude of the log record.
8
+ */
9
+ latitude: number;
10
+ /**
11
+ * The longitude of the log record.
12
+ */
13
+ longitude: number;
14
+ /**
15
+ * Speed
16
+ */
17
+ speed?: number;
18
+ }
19
+ export interface ZenTrip {
20
+ logs: ZenLogRecord[];
21
+ }
22
+ export interface ZenDevice {
23
+ /**
24
+ * the custom device icon
25
+ */
26
+ icon?: string;
27
+ name: string;
28
+ bearing?: number;
29
+ isDriving?: boolean;
30
+ latitude: number;
31
+ longitude: number;
32
+ }
33
+ export declare type ZenMapTheme = "black" | "default";
@@ -0,0 +1,23 @@
1
+ import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ZenDevice, ZenMapTheme, ZenTrip } from './map.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ZenduMapComponent implements OnChanges {
5
+ _mapElement: ElementRef<HTMLDivElement>;
6
+ apiKey: string;
7
+ trips: ZenTrip[];
8
+ devices: ZenDevice[];
9
+ theme: ZenMapTheme;
10
+ private _platform;
11
+ private _map;
12
+ private _objects;
13
+ private _mapService;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ private init;
16
+ private initMap;
17
+ private updateEntities;
18
+ private createTrips;
19
+ private createDevices;
20
+ private clearEntities;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduMapComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduMapComponent, "zen-map", never, { "apiKey": "apiKey"; "trips": "trips"; "devices": "devices"; "theme": "theme"; }, {}, never, never, false>;
23
+ }
@@ -0,0 +1,11 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduMapPreviewComponent implements OnChanges {
4
+ lat: number;
5
+ lng: number;
6
+ apiKey: string;
7
+ source: string;
8
+ ngOnChanges(changes: SimpleChanges): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduMapPreviewComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduMapPreviewComponent, "zen-map-preview", never, { "lat": "lat"; "lng": "lng"; "apiKey": "apiKey"; }, {}, never, never, false>;
11
+ }
@@ -0,0 +1,34 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./checkbox/zendu-checkbox.component";
3
+ import * as i2 from "./toggle/zendu-toggle.component";
4
+ import * as i3 from "./toggle-slide/zendu-toggle-slide.component";
5
+ import * as i4 from "./search-box/zendu-search-box.component";
6
+ import * as i5 from "./select/zendu-select.component";
7
+ import * as i6 from "./select/templates/zendu-select-option.directive";
8
+ import * as i7 from "./select/templates/zendu-select-value.directive";
9
+ import * as i8 from "./datepicker/zendu-datepicker.component";
10
+ import * as i9 from "./filter/zendu-filter.component";
11
+ import * as i10 from "./pagination-bar/zendu-pagination-bar.component";
12
+ import * as i11 from "./column-configuration/zendu-column-configuration.component";
13
+ import * as i12 from "./sort-header/zendu-sort-header.component";
14
+ import * as i13 from "./phone-input/zendu-phone-input.component";
15
+ import * as i14 from "./colorpicker/zendu-colorpicker.component";
16
+ import * as i15 from "./radio-button/radio-button.component";
17
+ import * as i16 from "./icon/zendu-icon.component";
18
+ import * as i17 from "./card-block/zendu-card-block.component";
19
+ import * as i18 from "./map-preview/zendu-map-preview.component";
20
+ import * as i19 from "./spinner/zendu-spinner.component";
21
+ import * as i20 from "./doc-scanner/zendu-doc-scanner.component";
22
+ import * as i21 from "./breadcrumbs/zendu-breadcrumbs.component";
23
+ import * as i22 from "./map/zendu-map.component";
24
+ import * as i23 from "./file-upload/zendu-file-upload.component";
25
+ import * as i24 from "./progress/zendu-progress.component";
26
+ import * as i25 from "./location-search/zendu-location-search.component";
27
+ import * as i26 from "@angular/common";
28
+ import * as i27 from "@angular/forms";
29
+ import * as i28 from "@angular/cdk/drag-drop";
30
+ export declare class NgZenduitModule {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgZenduitModule, never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgZenduitModule, [typeof i1.ZenduCheckboxComponent, typeof i2.ZenduToggleComponent, typeof i3.ZenduToggleSlideComponent, typeof i4.ZenduSearchBoxComponent, typeof i5.ZenduSelectComponent, typeof i6.ZenduSelectOptionDirective, typeof i7.ZenduSelectValueDirective, typeof i8.ZenduDatepickerComponent, typeof i9.ZenduFilterComponent, typeof i10.ZenduPaginationBarComponent, typeof i11.ZenduColumnConfigurationComponent, typeof i12.ZenduSortHeaderComponent, typeof i13.ZenduPhoneInputComponent, typeof i14.ZenduColorPickerComponent, typeof i15.ZenduRadioButtonComponent, typeof i16.ZenduIconComponent, typeof i17.ZenduCardBlockComponent, typeof i18.ZenduMapPreviewComponent, typeof i19.ZenduSpinner, typeof i20.ZenduDocScanner, typeof i21.ZenduBreadcrumbs, typeof i22.ZenduMapComponent, typeof i23.ZenduFileUpload, typeof i24.ZenduProgress, typeof i25.ZenduLocationSearch], [typeof i26.CommonModule, typeof i27.FormsModule, typeof i28.DragDropModule], [typeof i1.ZenduCheckboxComponent, typeof i2.ZenduToggleComponent, typeof i3.ZenduToggleSlideComponent, typeof i4.ZenduSearchBoxComponent, typeof i5.ZenduSelectComponent, typeof i6.ZenduSelectOptionDirective, typeof i7.ZenduSelectValueDirective, typeof i8.ZenduDatepickerComponent, typeof i9.ZenduFilterComponent, typeof i10.ZenduPaginationBarComponent, typeof i11.ZenduColumnConfigurationComponent, typeof i12.ZenduSortHeaderComponent, typeof i13.ZenduPhoneInputComponent, typeof i14.ZenduColorPickerComponent, typeof i15.ZenduRadioButtonComponent, typeof i16.ZenduIconComponent, typeof i17.ZenduCardBlockComponent, typeof i18.ZenduMapPreviewComponent, typeof i19.ZenduSpinner, typeof i20.ZenduDocScanner, typeof i21.ZenduBreadcrumbs, typeof i22.ZenduMapComponent, typeof i23.ZenduFileUpload, typeof i24.ZenduProgress, typeof i25.ZenduLocationSearch]>;
33
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgZenduitModule>;
34
+ }
@@ -0,0 +1,4 @@
1
+ export interface PageItem {
2
+ Page: number;
3
+ IsCurrent: boolean;
4
+ }
@@ -0,0 +1,25 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { PageItem } from './pageItem';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ZenduPaginationBarComponent implements OnChanges {
5
+ page: number;
6
+ perPage: number;
7
+ count: number;
8
+ pageChange: EventEmitter<number>;
9
+ perPageChange: EventEmitter<number>;
10
+ CurrentPageItemsCount: number;
11
+ pagesCount: number;
12
+ pages: PageItem[];
13
+ pagesInGroup: number;
14
+ availablePagesSize: number[];
15
+ totalPages: number;
16
+ constructor();
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ nextPage(): void;
19
+ prevPage(): void;
20
+ updatePageSize(): void;
21
+ endRowSize(): number;
22
+ reCalculatePageCount(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduPaginationBarComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduPaginationBarComponent, "zen-pagination-bar", never, { "page": "page"; "perPage": "perPage"; "count": "count"; }, { "pageChange": "pageChange"; "perPageChange": "perPageChange"; }, never, never, false>;
25
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduPhoneInputComponent implements OnInit, OnChanges {
4
+ phone: string;
5
+ maxLength: number;
6
+ phoneChange: EventEmitter<string>;
7
+ validChange: EventEmitter<boolean>;
8
+ disabled: boolean;
9
+ phoneText: string;
10
+ countryList: {
11
+ countryCode: string;
12
+ countryName: string;
13
+ countryCallingCode: string;
14
+ flag: string;
15
+ }[];
16
+ customCountry: {
17
+ countryCode: string;
18
+ countryName: string;
19
+ countryCallingCode: string;
20
+ flag: string;
21
+ };
22
+ selectedCountry: {
23
+ countryCode: string;
24
+ countryName: string;
25
+ countryCallingCode: string;
26
+ flag: string;
27
+ };
28
+ isExpanded: boolean;
29
+ constructor();
30
+ ngOnInit(): void;
31
+ ngOnChanges(changes: SimpleChanges): void;
32
+ parseNumber(): void;
33
+ countryChanged(country: any): void;
34
+ phoneChanged(input?: HTMLInputElement): void;
35
+ hideDropDown(): void;
36
+ toggle(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduPhoneInputComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduPhoneInputComponent, "zen-phone-input", never, { "phone": "phone"; "maxLength": "maxLength"; "disabled": "disabled"; }, { "phoneChange": "phoneChange"; "validChange": "validChange"; }, never, never, false>;
39
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ZenduProgress {
3
+ type: "bar" | "circle" | "half-circle";
4
+ /**
5
+ * progress value [0, 100]
6
+ */
7
+ value: number;
8
+ /**
9
+ * progress text
10
+ */
11
+ text: string;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduProgress, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduProgress, "zen-progress", never, { "type": "type"; "value": "value"; "text": "text"; }, {}, never, never, false>;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduRadioButtonComponent implements OnInit {
4
+ selected: boolean;
5
+ radioChange: EventEmitter<string>;
6
+ label: string;
7
+ value: string;
8
+ name: string;
9
+ disabled: boolean;
10
+ imageUrl: string;
11
+ selectedRadio: string;
12
+ constructor();
13
+ ngOnInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ emitChange(event: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduRadioButtonComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduRadioButtonComponent, "zen-radio", never, { "selected": "selected"; "label": "label"; "value": "value"; "name": "name"; "disabled": "disabled"; "imageUrl": "imageUrl"; }, { "radioChange": "radioChange"; }, never, never, false>;
18
+ }
@@ -0,0 +1,26 @@
1
+ import { ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduSearchBoxComponent implements OnInit {
4
+ private _element;
5
+ private _ngZone;
6
+ text: string;
7
+ textChange: EventEmitter<string>;
8
+ set delay(val: number);
9
+ autoFocus: boolean;
10
+ placeholder: string;
11
+ searchInput: ElementRef;
12
+ private _debouncedInvoke;
13
+ private _focusAttempts;
14
+ constructor(_element: ElementRef, _ngZone: NgZone);
15
+ ngOnInit(): void;
16
+ onChange(): void;
17
+ clearFromParent(): void;
18
+ clear(): void;
19
+ private invokeChange;
20
+ private setDelay;
21
+ activateSearchBox(): void;
22
+ doFocus(): void;
23
+ private getInput;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSearchBoxComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduSearchBoxComponent, "zen-search-box", never, { "text": "text"; "delay": "delay"; "autoFocus": "autoFocus"; "placeholder": "placeholder"; }, { "textChange": "textChange"; }, never, never, false>;
26
+ }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduSelectOptionDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSelectOptionDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ZenduSelectOptionDirective, "[zen-select-option]", never, {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduSelectValueDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSelectValueDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ZenduSelectValueDirective, "[zen-select-value]", never, {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1,107 @@
1
+ import { ElementRef, EventEmitter, OnChanges } from '@angular/core';
2
+ import { ZenduSelectOptionDirective } from './templates/zendu-select-option.directive';
3
+ import { ZenduSelectValueDirective } from './templates/zendu-select-value.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ZenduSelectComponent implements OnChanges {
6
+ private _element;
7
+ /**
8
+ * 2-Way component property for selected items.
9
+ * Don't initialize property on constructor to prevent change source parameter
10
+ */
11
+ selectModel: any | any[];
12
+ /**
13
+ * callback to emit changes for parent component
14
+ */
15
+ selectModelChange: EventEmitter<any>;
16
+ /**
17
+ * List of options for select
18
+ */
19
+ options: any[];
20
+ /**
21
+ * Property to set custom placeholder value
22
+ */
23
+ placeholder: string;
24
+ /**
25
+ * This is a key value to get display name from option object
26
+ */
27
+ displayProp: string;
28
+ /**
29
+ * This is a key value to get id from option object
30
+ */
31
+ idProp: string;
32
+ /**
33
+ * Component property to enable search
34
+ */
35
+ hasSearch: boolean;
36
+ /**
37
+ * Component property to return whole option object
38
+ * By default only id value is returned
39
+ */
40
+ returnOption: boolean;
41
+ /**
42
+ * Component property to enable multiselect
43
+ */
44
+ isMultiselect: boolean;
45
+ /**
46
+ * Component property to disable component
47
+ */
48
+ disabled: boolean;
49
+ /**
50
+ * Show the custom icon for toggle
51
+ */
52
+ customIcon: string;
53
+ /**
54
+ * Color for custom icon
55
+ */
56
+ customIconColor: string;
57
+ /**
58
+ * Truncate text with "..." at the end
59
+ */
60
+ isTruncate: boolean;
61
+ /**
62
+ * Filtered items visible on dropdown
63
+ */
64
+ filteredOptions: any[];
65
+ /**
66
+ * Is dropdown expanded
67
+ */
68
+ isExpanded: boolean;
69
+ searchText: string;
70
+ labelText: string;
71
+ isTopMenuDirection: boolean;
72
+ constructor(_element: ElementRef);
73
+ /**
74
+ * Select Option Template for custom HTML
75
+ */
76
+ optionTemplate: ZenduSelectOptionDirective;
77
+ /**
78
+ * Select Value Template for custom HTML
79
+ */
80
+ valueTemplate: ZenduSelectValueDirective;
81
+ outsideHandling(event: any): void;
82
+ scroll(): void;
83
+ ngOnChanges(changeObj: any): void;
84
+ isModelEmpty(): boolean;
85
+ handleOptionClick(option: string | object): void;
86
+ private singleSelect;
87
+ toggleExpand(): void;
88
+ private toggleOption;
89
+ private getElementIndex;
90
+ toggleAll(): void;
91
+ onSearchChange(): void;
92
+ private filterOptions;
93
+ isSelected(option: string | object): boolean;
94
+ updateLabel(): void;
95
+ getNameFromValue(val: string | object): string;
96
+ getName(option: string | object): string;
97
+ private getId;
98
+ private GetRecursiveProperty;
99
+ hideDropDown(): Promise<void>;
100
+ private emitChange;
101
+ private updatePlacement;
102
+ private getMenuDirection;
103
+ private getMaxMenuHeight;
104
+ private getContainerElement;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSelectComponent, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduSelectComponent, "zen-select", never, { "selectModel": "selectModel"; "options": "options"; "placeholder": "placeholder"; "displayProp": "displayProp"; "idProp": "idProp"; "hasSearch": "hasSearch"; "returnOption": "returnOption"; "isMultiselect": "isMultiselect"; "disabled": "disabled"; "customIcon": "customIcon"; "customIconColor": "customIconColor"; "isTruncate": "isTruncate"; }, { "selectModelChange": "selectModelChange"; }, ["optionTemplate", "valueTemplate"], never, false>;
107
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ interface IGeocodingRes {
3
+ name: string;
4
+ city: string;
5
+ country: string;
6
+ postalCode: string;
7
+ street: string;
8
+ state: string;
9
+ bounds: {
10
+ xmin: number;
11
+ ymin: number;
12
+ xmax: number;
13
+ ymax: number;
14
+ };
15
+ }
16
+ export declare class GeocodingService {
17
+ private _platform;
18
+ setAPIKey(apiKey: string): void;
19
+ geocode(searchText: string): Promise<Array<IGeocodingRes>>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeocodingService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeocodingService>;
22
+ }
23
+ export {};
@@ -0,0 +1,22 @@
1
+ /// <reference types="heremaps" />
2
+ import { ZenDevice, ZenLogRecord, ZenMapTheme, ZenTrip } from '../map/map.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapService {
5
+ createDeviceMarker(device: ZenDevice, minZoom?: number): H.map.DomMarker;
6
+ private getDeviceContent;
7
+ zoomToBounds(map: H.Map, bounds: H.geo.Rect): void;
8
+ private zoomToLatLngs;
9
+ /**
10
+ * Create polylines for given trip and date range.
11
+ * Method create separte polylines for logs outside the date range.
12
+ */
13
+ createTripPolyline(trip: ZenTrip, map: H.Map, theme: ZenMapTheme): {
14
+ polyline: H.map.Polyline;
15
+ arrows: H.map.Polyline;
16
+ };
17
+ private createPl;
18
+ private createArrow;
19
+ createStopMarker(map: H.Map, log: ZenLogRecord, stopIdx: number, tag: any, theme: ZenMapTheme): H.map.DomMarker;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<MapService>;
22
+ }
@@ -0,0 +1,46 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface ScanifyCorners {
3
+ topLeftCorner: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ topRightCorner: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ bottomLeftCorner: {
12
+ x: number;
13
+ y: number;
14
+ };
15
+ bottomRightCorner: {
16
+ x: number;
17
+ y: number;
18
+ };
19
+ }
20
+ export declare class OpenCVService {
21
+ private static _isOpenCVLoaded;
22
+ private static _lock;
23
+ /**
24
+ * extract paper from the image
25
+ * @returns
26
+ */
27
+ extractPaper(options: {
28
+ src: string;
29
+ height: number;
30
+ width: number;
31
+ corners: ScanifyCorners;
32
+ }): Promise<HTMLCanvasElement>;
33
+ /**
34
+ * Get the paper corners from the specific image
35
+ * @param src
36
+ * @returns
37
+ */
38
+ getPaperCorners(src: string, height: number, width: number): Promise<ScanifyCorners>;
39
+ private loadImage;
40
+ private loadOpenCv;
41
+ private loadScript;
42
+ private waitInitalization;
43
+ private getCVInternal;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenCVService, never>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenCVService>;
46
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ZenNotifyService {
3
+ info(msg: string, duration?: number, hasDismiss?: boolean): void;
4
+ success(msg: string, duration?: number, hasDismiss?: boolean): void;
5
+ warn(msg: string, duration?: number, hasDismiss?: boolean): void;
6
+ error(err: unknown, duration?: number, hasDismiss?: boolean): void;
7
+ private getErrorMessage;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenNotifyService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ZenNotifyService>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduSortHeaderComponent {
4
+ sort: 'asc' | 'desc' | '';
5
+ sortChange: EventEmitter<"desc" | "asc">;
6
+ active: boolean;
7
+ toggleSort(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSortHeaderComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduSortHeaderComponent, "zen-sort", never, { "sort": "sort"; "active": "active"; }, { "sortChange": "sortChange"; }, never, never, false>;
10
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ZenduSpinner {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduSpinner, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduSpinner, "zen-spinner", never, {}, {}, never, never, false>;
5
+ }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduToggleComponent {
4
+ enabled: boolean;
5
+ enabledChange: EventEmitter<boolean>;
6
+ onLabel: string;
7
+ offLabel: string;
8
+ /**
9
+ * Toggle state
10
+ */
11
+ toggle(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduToggleComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduToggleComponent, "zen-toggle", never, { "enabled": "enabled"; "onLabel": "onLabel"; "offLabel": "offLabel"; }, { "enabledChange": "enabledChange"; }, never, never, false>;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ZenduToggleSlideComponent {
4
+ enabled: boolean;
5
+ enabledChange: EventEmitter<boolean>;
6
+ disabled: boolean;
7
+ /**
8
+ * Toggle state
9
+ */
10
+ toggle(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZenduToggleSlideComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZenduToggleSlideComponent, "zen-toggle-slide", never, { "enabled": "enabled"; "disabled": "disabled"; }, { "enabledChange": "enabledChange"; }, never, never, false>;
13
+ }
package/lib/util.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare class Util {
2
+ static debounce(func: any, wait: number, immediate?: boolean): () => void;
3
+ static clone<T>(source: T): T;
4
+ /**
5
+ * Remove internal angularjs properties
6
+ * @param obj
7
+ */
8
+ private static updateClone;
9
+ static copyProperties(source: any, dest: any): void;
10
+ static sleep(ms: number): Promise<void>;
11
+ }
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "ng-zenduit",
3
+ "version": "1.0.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^14.1.0",
6
+ "@angular/core": "^14.1.0",
7
+ "google-libphonenumber": "^3.2.27",
8
+ "lodash.uniqby": "^4.7.0",
9
+ "moment": "^2.29.1"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0",
13
+ "node-snackbar": "^0.1.16",
14
+ "fabric": "^5.3.0"
15
+ },
16
+ "module": "fesm2015/ng-zenduit.mjs",
17
+ "es2020": "fesm2020/ng-zenduit.mjs",
18
+ "esm2020": "esm2020/ng-zenduit.mjs",
19
+ "fesm2020": "fesm2020/ng-zenduit.mjs",
20
+ "fesm2015": "fesm2015/ng-zenduit.mjs",
21
+ "typings": "index.d.ts",
22
+ "exports": {
23
+ "./package.json": {
24
+ "default": "./package.json"
25
+ },
26
+ ".": {
27
+ "types": "./index.d.ts",
28
+ "esm2020": "./esm2020/ng-zenduit.mjs",
29
+ "es2020": "./fesm2020/ng-zenduit.mjs",
30
+ "es2015": "./fesm2015/ng-zenduit.mjs",
31
+ "node": "./fesm2015/ng-zenduit.mjs",
32
+ "default": "./fesm2020/ng-zenduit.mjs"
33
+ }
34
+ },
35
+ "sideEffects": false
36
+ }
@@ -0,0 +1,38 @@
1
+ export * from "./lib/services/zendu-notify.service";
2
+ export * from './lib/ng-zenduit.module';
3
+ /**
4
+ * Types
5
+ */
6
+ export * from './lib/filter/filtersConfig';
7
+ export * from './lib/column-configuration/columnState';
8
+ export * from './lib/map/map.types';
9
+ export * from './lib/location-search/location.address';
10
+ export * from './lib/datepicker/datepicker';
11
+ /**
12
+ * Components
13
+ */
14
+ export * from "./lib/checkbox/zendu-checkbox.component";
15
+ export * from "./lib/colorpicker/zendu-colorpicker.component";
16
+ export * from "./lib/column-configuration/zendu-column-configuration.component";
17
+ export * from "./lib/datepicker/zendu-datepicker.component";
18
+ export * from "./lib/filter/zendu-filter.component";
19
+ export * from "./lib/pagination-bar/zendu-pagination-bar.component";
20
+ export * from "./lib/phone-input/zendu-phone-input.component";
21
+ export * from "./lib/radio-button/radio-button.component";
22
+ export * from "./lib/search-box/zendu-search-box.component";
23
+ export * from "./lib/select/zendu-select.component";
24
+ export * from "./lib/select/templates/zendu-select-value.directive";
25
+ export * from "./lib/select/templates/zendu-select-option.directive";
26
+ export * from "./lib/sort-header/zendu-sort-header.component";
27
+ export * from "./lib/toggle/zendu-toggle.component";
28
+ export * from "./lib/toggle-slide/zendu-toggle-slide.component";
29
+ export * from "./lib/icon/zendu-icon.component";
30
+ export * from "./lib/card-block/zendu-card-block.component";
31
+ export * from "./lib/map-preview/zendu-map-preview.component";
32
+ export * from "./lib/spinner/zendu-spinner.component";
33
+ export * from "./lib/doc-scanner/zendu-doc-scanner.component";
34
+ export * from "./lib/breadcrumbs/zendu-breadcrumbs.component";
35
+ export * from "./lib/map/zendu-map.component";
36
+ export * from "./lib/file-upload/zendu-file-upload.component";
37
+ export * from "./lib/progress/zendu-progress.component";
38
+ export * from "./lib/location-search/zendu-location-search.component";