bpm-core 0.0.1

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 (186) hide show
  1. package/README.md +30 -0
  2. package/esm2022/bpm-core.mjs +5 -0
  3. package/esm2022/lib/classes/form-validation.mjs +80 -0
  4. package/esm2022/lib/classes/index.mjs +2 -0
  5. package/esm2022/lib/components/app-component-sections/activities/activities.component.mjs +51 -0
  6. package/esm2022/lib/components/app-component-sections/comment-section/comment-section.component.mjs +66 -0
  7. package/esm2022/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.mjs +29 -0
  8. package/esm2022/lib/components/app-component-sections/faqs/faqs.component.mjs +32 -0
  9. package/esm2022/lib/components/app-component-sections/faqs/index.mjs +2 -0
  10. package/esm2022/lib/components/app-component-sections/feedback-section/feedback-section.component.mjs +236 -0
  11. package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +270 -0
  12. package/esm2022/lib/components/app-component-sections/index.mjs +9 -0
  13. package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +34 -0
  14. package/esm2022/lib/components/app-component-sections/profile-section/profile-section.component.mjs +45 -0
  15. package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +162 -0
  16. package/esm2022/lib/components/app-component-sections/status/status.component.mjs +38 -0
  17. package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +162 -0
  18. package/esm2022/lib/components/shared-components/confirmation-popup/confirmation-popup.component.mjs +39 -0
  19. package/esm2022/lib/components/shared-components/delete-popup/delete-popup.component.mjs +19 -0
  20. package/esm2022/lib/components/shared-components/dialogs/confirm-dialog/confirm-dialog.component.mjs +30 -0
  21. package/esm2022/lib/components/shared-components/dialogs/delete-dialog/delete-dialog.component.mjs +28 -0
  22. package/esm2022/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.mjs +72 -0
  23. package/esm2022/lib/components/shared-components/doc-uploader/docs-uploader.component.mjs +686 -0
  24. package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +77 -0
  25. package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +181 -0
  26. package/esm2022/lib/components/shared-components/form-field/base-component/base-component.component.mjs +198 -0
  27. package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +69 -0
  28. package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +201 -0
  29. package/esm2022/lib/components/shared-components/form-field/date-picker/date-format.mjs +31 -0
  30. package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +244 -0
  31. package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +26 -0
  32. package/esm2022/lib/components/shared-components/form-field/form-label/form-label.component.mjs +31 -0
  33. package/esm2022/lib/components/shared-components/form-field/index.mjs +25 -0
  34. package/esm2022/lib/components/shared-components/form-field/info-item/info-item.component.mjs +72 -0
  35. package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +155 -0
  36. package/esm2022/lib/components/shared-components/form-field/input-autocomplete/index.mjs +3 -0
  37. package/esm2022/lib/components/shared-components/form-field/input-autocomplete/input-autocomplete.model.mjs +2 -0
  38. package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +157 -0
  39. package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +114 -0
  40. package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +111 -0
  41. package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +153 -0
  42. package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +176 -0
  43. package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +38 -0
  44. package/esm2022/lib/components/shared-components/form-field/repeated-list/repeated-list.component.mjs +32 -0
  45. package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +228 -0
  46. package/esm2022/lib/components/shared-components/form-field/select/select.component.mjs +191 -0
  47. package/esm2022/lib/components/shared-components/form-field/table-list/table-list.component.mjs +116 -0
  48. package/esm2022/lib/components/shared-components/form-field/textarea/special-chars.directive.mjs +39 -0
  49. package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +88 -0
  50. package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +75 -0
  51. package/esm2022/lib/components/shared-components/index.mjs +10 -0
  52. package/esm2022/lib/components/shared-components/terms-conditions/terms-conditions.component.mjs +31 -0
  53. package/esm2022/lib/components/shared-components/title-section/title-section.component.mjs +31 -0
  54. package/esm2022/lib/constants/constants.mjs +144 -0
  55. package/esm2022/lib/constants/index.mjs +2 -0
  56. package/esm2022/lib/environments/environment.local.mjs +27 -0
  57. package/esm2022/lib/functions/data-to-blob.mjs +12 -0
  58. package/esm2022/lib/functions/encode-password.mjs +14 -0
  59. package/esm2022/lib/functions/handel-error-response.mjs +12 -0
  60. package/esm2022/lib/functions/index.mjs +5 -0
  61. package/esm2022/lib/functions/is-valid-data.mjs +42 -0
  62. package/esm2022/lib/hooks/index.mjs +3 -0
  63. package/esm2022/lib/hooks/load-form.mjs +13 -0
  64. package/esm2022/lib/hooks/save-form.mjs +18 -0
  65. package/esm2022/lib/i18n/ar.mjs +183 -0
  66. package/esm2022/lib/i18n/en.mjs +187 -0
  67. package/esm2022/lib/i18n/index.mjs +3 -0
  68. package/esm2022/lib/interfaces/api-response.interface.mjs +2 -0
  69. package/esm2022/lib/interfaces/document-file.interface.mjs +2 -0
  70. package/esm2022/lib/interfaces/form-items.interface.mjs +2 -0
  71. package/esm2022/lib/interfaces/form.interface.mjs +150 -0
  72. package/esm2022/lib/interfaces/igate-user.interface.mjs +2 -0
  73. package/esm2022/lib/interfaces/index.mjs +8 -0
  74. package/esm2022/lib/interfaces/lov-list.interface.mjs +2 -0
  75. package/esm2022/lib/interfaces/lov.interface.mjs +2 -0
  76. package/esm2022/lib/interfaces/shared.interface.mjs +2 -0
  77. package/esm2022/lib/pipes/currency.pipe.mjs +66 -0
  78. package/esm2022/lib/pipes/format-as-password.pipe.mjs +19 -0
  79. package/esm2022/lib/pipes/index.mjs +3 -0
  80. package/esm2022/lib/services/feedBack.service.mjs +80 -0
  81. package/esm2022/lib/services/i18n.service.mjs +36 -0
  82. package/esm2022/lib/services/index.mjs +3 -0
  83. package/esm2022/lib/services/sidenav.service.mjs +69 -0
  84. package/esm2022/lib/validators/ar.directive.mjs +53 -0
  85. package/esm2022/lib/validators/currency.directive.mjs +74 -0
  86. package/esm2022/lib/validators/en.directive.mjs +50 -0
  87. package/esm2022/lib/validators/id.validator.mjs +66 -0
  88. package/esm2022/lib/validators/index.mjs +8 -0
  89. package/esm2022/lib/validators/string-to-boolean.pipe.mjs +16 -0
  90. package/esm2022/lib/validators/text.directive.mjs +50 -0
  91. package/esm2022/lib/validators/timer.pipe.mjs +19 -0
  92. package/esm2022/public-api.mjs +16 -0
  93. package/fesm2022/bpm-core.mjs +6005 -0
  94. package/fesm2022/bpm-core.mjs.map +1 -0
  95. package/index.d.ts +5 -0
  96. package/lib/classes/form-validation.d.ts +19 -0
  97. package/lib/classes/index.d.ts +1 -0
  98. package/lib/components/app-component-sections/activities/activities.component.d.ts +22 -0
  99. package/lib/components/app-component-sections/comment-section/comment-section.component.d.ts +19 -0
  100. package/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.d.ts +13 -0
  101. package/lib/components/app-component-sections/faqs/faqs.component.d.ts +17 -0
  102. package/lib/components/app-component-sections/faqs/index.d.ts +1 -0
  103. package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts +38 -0
  104. package/lib/components/app-component-sections/form-section/form-section.component.d.ts +58 -0
  105. package/lib/components/app-component-sections/index.d.ts +8 -0
  106. package/lib/components/app-component-sections/main-request-details/main-request-details.component.d.ts +13 -0
  107. package/lib/components/app-component-sections/profile-section/profile-section.component.d.ts +17 -0
  108. package/lib/components/app-component-sections/service-header/service-header.component.d.ts +35 -0
  109. package/lib/components/app-component-sections/status/status.component.d.ts +23 -0
  110. package/lib/components/app-component-sections/workflow-section/workflow-section.component.d.ts +29 -0
  111. package/lib/components/shared-components/confirmation-popup/confirmation-popup.component.d.ts +25 -0
  112. package/lib/components/shared-components/delete-popup/delete-popup.component.d.ts +6 -0
  113. package/lib/components/shared-components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +11 -0
  114. package/lib/components/shared-components/dialogs/delete-dialog/delete-dialog.component.d.ts +11 -0
  115. package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +15 -0
  116. package/lib/components/shared-components/doc-uploader/docs-uploader.component.d.ts +144 -0
  117. package/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.d.ts +16 -0
  118. package/lib/components/shared-components/form-field/attachment-section/attachment-section.component.d.ts +30 -0
  119. package/lib/components/shared-components/form-field/base-component/base-component.component.d.ts +63 -0
  120. package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +18 -0
  121. package/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.d.ts +29 -0
  122. package/lib/components/shared-components/form-field/date-picker/date-format.d.ts +17 -0
  123. package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +41 -0
  124. package/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.d.ts +10 -0
  125. package/lib/components/shared-components/form-field/form-label/form-label.component.d.ts +12 -0
  126. package/lib/components/shared-components/form-field/index.d.ts +24 -0
  127. package/lib/components/shared-components/form-field/info-item/info-item.component.d.ts +23 -0
  128. package/lib/components/shared-components/form-field/input/input.component.d.ts +32 -0
  129. package/lib/components/shared-components/form-field/input-autocomplete/index.d.ts +1 -0
  130. package/lib/components/shared-components/form-field/input-autocomplete/input-autocomplete.model.d.ts +6 -0
  131. package/lib/components/shared-components/form-field/input-currency/input-currency.component.d.ts +31 -0
  132. package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +27 -0
  133. package/lib/components/shared-components/form-field/input-mask/input-mask.component.d.ts +27 -0
  134. package/lib/components/shared-components/form-field/input-number/input-number.component.d.ts +30 -0
  135. package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +45 -0
  136. package/lib/components/shared-components/form-field/radio/radio.component.d.ts +10 -0
  137. package/lib/components/shared-components/form-field/repeated-list/repeated-list.component.d.ts +9 -0
  138. package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +44 -0
  139. package/lib/components/shared-components/form-field/select/select.component.d.ts +36 -0
  140. package/lib/components/shared-components/form-field/table-list/table-list.component.d.ts +26 -0
  141. package/lib/components/shared-components/form-field/textarea/special-chars.directive.d.ts +10 -0
  142. package/lib/components/shared-components/form-field/textarea/textarea.component.d.ts +20 -0
  143. package/lib/components/shared-components/form-field/toggle-button/toggle-button.component.d.ts +20 -0
  144. package/lib/components/shared-components/index.d.ts +9 -0
  145. package/lib/components/shared-components/terms-conditions/terms-conditions.component.d.ts +12 -0
  146. package/lib/components/shared-components/title-section/title-section.component.d.ts +13 -0
  147. package/lib/constants/constants.d.ts +122 -0
  148. package/lib/constants/index.d.ts +1 -0
  149. package/lib/environments/environment.local.d.ts +26 -0
  150. package/lib/functions/data-to-blob.d.ts +1 -0
  151. package/lib/functions/encode-password.d.ts +1 -0
  152. package/lib/functions/handel-error-response.d.ts +4 -0
  153. package/lib/functions/index.d.ts +4 -0
  154. package/lib/functions/is-valid-data.d.ts +1 -0
  155. package/lib/hooks/index.d.ts +2 -0
  156. package/lib/hooks/load-form.d.ts +10 -0
  157. package/lib/hooks/save-form.d.ts +15 -0
  158. package/lib/i18n/ar.d.ts +170 -0
  159. package/lib/i18n/en.d.ts +174 -0
  160. package/lib/i18n/index.d.ts +2 -0
  161. package/lib/interfaces/api-response.interface.d.ts +5 -0
  162. package/lib/interfaces/document-file.interface.d.ts +12 -0
  163. package/lib/interfaces/form-items.interface.d.ts +14 -0
  164. package/lib/interfaces/form.interface.d.ts +95 -0
  165. package/lib/interfaces/igate-user.interface.d.ts +16 -0
  166. package/lib/interfaces/index.d.ts +7 -0
  167. package/lib/interfaces/lov-list.interface.d.ts +10 -0
  168. package/lib/interfaces/lov.interface.d.ts +19 -0
  169. package/lib/interfaces/shared.interface.d.ts +21 -0
  170. package/lib/pipes/currency.pipe.d.ts +13 -0
  171. package/lib/pipes/format-as-password.pipe.d.ts +7 -0
  172. package/lib/pipes/index.d.ts +2 -0
  173. package/lib/services/feedBack.service.d.ts +21 -0
  174. package/lib/services/i18n.service.d.ts +10 -0
  175. package/lib/services/index.d.ts +2 -0
  176. package/lib/services/sidenav.service.d.ts +28 -0
  177. package/lib/validators/ar.directive.d.ts +11 -0
  178. package/lib/validators/currency.directive.d.ts +16 -0
  179. package/lib/validators/en.directive.d.ts +11 -0
  180. package/lib/validators/id.validator.d.ts +3 -0
  181. package/lib/validators/index.d.ts +7 -0
  182. package/lib/validators/string-to-boolean.pipe.d.ts +7 -0
  183. package/lib/validators/text.directive.d.ts +12 -0
  184. package/lib/validators/timer.pipe.d.ts +7 -0
  185. package/package.json +26 -0
  186. package/public-api.d.ts +13 -0
@@ -0,0 +1,95 @@
1
+ export declare class Form {
2
+ header: Header;
3
+ profileInfoDrop: ProfileInfoDrop;
4
+ commentsDrop: CommentsDrop[];
5
+ inboxItem: InboxItem;
6
+ sections: Section[];
7
+ lovs: any;
8
+ messages: Messages | null;
9
+ confidentialComments?: CommentsDrop[];
10
+ constructor(header: Header, profileInfoDrop: ProfileInfoDrop, commentsDrop: CommentsDrop[], inboxItem: InboxItem, sections: Section[], lovs: any, messages: Messages | null, // Added null as a type
11
+ confidentialComments?: CommentsDrop[]);
12
+ }
13
+ export declare class Header {
14
+ requesterName: string;
15
+ requesterPhoto: string;
16
+ formId?: string;
17
+ creationDate?: string;
18
+ status?: {
19
+ [key: string]: string;
20
+ };
21
+ details?: any;
22
+ constructor(requesterName: string, requesterPhoto: string, formId?: string, creationDate?: string, status?: {
23
+ [key: string]: string;
24
+ }, details?: any);
25
+ }
26
+ export declare class ProfileInfoDrop {
27
+ onBehalfAuthorized?: boolean;
28
+ employeeNumber?: string;
29
+ employeeEmail?: string;
30
+ fullName?: string;
31
+ generalDepartmentName?: string;
32
+ jobPosition?: string;
33
+ sectorName?: string;
34
+ departmentName?: string;
35
+ generalDepartmentCode?: string;
36
+ humanResourcesLocation?: string;
37
+ nationality?: string;
38
+ businessPhone?: string;
39
+ directManagerName?: string;
40
+ seniorSectorName?: string;
41
+ constructor(onBehalfAuthorized?: boolean, employeeNumber?: string, employeeEmail?: string, fullName?: string, generalDepartmentName?: string, jobPosition?: string, sectorName?: string, departmentName?: string, generalDepartmentCode?: string, humanResourcesLocation?: string, nationality?: string, businessPhone?: string, directManagerName?: string, seniorSectorName?: string);
42
+ }
43
+ export declare class CommentsDrop {
44
+ profilePicture?: string;
45
+ employeeName?: string;
46
+ commentBody?: string;
47
+ commentDate?: string;
48
+ attachment?: string;
49
+ jobPosition?: string;
50
+ constructor(profilePicture?: string, employeeName?: string, commentBody?: string, commentDate?: string, attachment?: string, jobPosition?: string);
51
+ }
52
+ export declare class Section<T = any> {
53
+ id?: string;
54
+ header?: SectionHeader;
55
+ body?: T;
56
+ constructor(id?: string, header?: SectionHeader, body?: T);
57
+ }
58
+ export declare class SectionHeader {
59
+ processedBy?: string;
60
+ processingDate?: string;
61
+ personTo?: string;
62
+ personToThumbnail?: string;
63
+ delegatedTo?: string;
64
+ delegatedToThumbnail?: string;
65
+ status?: string;
66
+ hasComments?: boolean;
67
+ readOnly?: boolean;
68
+ constructor(processedBy?: string, processingDate?: string, personTo?: string, personToThumbnail?: string, delegatedTo?: string, delegatedToThumbnail?: string, status?: string, hasComments?: boolean, readOnly?: boolean);
69
+ }
70
+ export declare class Messages {
71
+ errorFields?: any;
72
+ info?: string[];
73
+ warning?: string[];
74
+ error?: string[];
75
+ originalMsgs?: Array<{
76
+ code: string;
77
+ message: string;
78
+ type: string;
79
+ }>;
80
+ constructor(errorFields?: any, info?: string[], warning?: string[], error?: string[], originalMsgs?: Array<{
81
+ code: string;
82
+ message: string;
83
+ type: string;
84
+ }>);
85
+ }
86
+ export declare class InboxItem {
87
+ flagPriority?: string;
88
+ isFlagged?: string;
89
+ canRequestFeedback?: string;
90
+ hasFeedback?: string;
91
+ isPending?: string;
92
+ isRequested?: string;
93
+ isResponded?: string;
94
+ constructor(flagPriority?: string, isFlagged?: string, canRequestFeedback?: string, hasFeedback?: string, isPending?: string, isRequested?: string, isResponded?: string);
95
+ }
@@ -0,0 +1,16 @@
1
+ export interface IGateUser {
2
+ id?: string;
3
+ contact?: {
4
+ mobile: number;
5
+ };
6
+ name?: string;
7
+ nameEn?: string;
8
+ nameAr?: string;
9
+ email?: string;
10
+ avatarUrl?: string;
11
+ title?: string;
12
+ location?: string;
13
+ address?: string;
14
+ phone?: number;
15
+ personId?: string;
16
+ }
@@ -0,0 +1,7 @@
1
+ export * from './api-response.interface';
2
+ export * from './document-file.interface';
3
+ export * from './form-items.interface';
4
+ export * from './form.interface';
5
+ export * from './lov-list.interface';
6
+ export * from './lov.interface';
7
+ export * from './igate-user.interface';
@@ -0,0 +1,10 @@
1
+ export interface LovList<LovType = 'combo'> {
2
+ type: LovType;
3
+ options: Array<{
4
+ description: string;
5
+ value: string;
6
+ }>;
7
+ }
8
+ export type Lov<Name extends string> = {
9
+ [key in Name]: LovList;
10
+ };
@@ -0,0 +1,19 @@
1
+ export interface LovItem {
2
+ id?: number;
3
+ backendCode?: string;
4
+ children?: [];
5
+ isActive?: boolean;
6
+ lovGroup?: number;
7
+ parentId?: number;
8
+ valueAR?: string;
9
+ valueEN?: string;
10
+ extraData?: string;
11
+ code?: string;
12
+ }
13
+ export interface LovApiResponse {
14
+ payload: {
15
+ content?: LovItem[];
16
+ children?: LovItem[];
17
+ total?: number;
18
+ };
19
+ }
@@ -0,0 +1,21 @@
1
+ export interface MyLibConfig {
2
+ production: boolean;
3
+ proxyPort: string;
4
+ proxyServiceBaseUrl: string;
5
+ proxyFullAddress: string;
6
+ proxyServiceForms: string;
7
+ proxyServiceAuthorization: string;
8
+ proxyServiceExecute: string;
9
+ proxyServiceAttachment: string;
10
+ proxyServiceLanguageURLPart: string;
11
+ formConfigNew: string;
12
+ formConfigNewAr: string;
13
+ formConfigApproval: string;
14
+ formConfigPerGov: string;
15
+ formConfigPerGovAr: string;
16
+ formConfigExecute: string;
17
+ formConfigPayroll: string;
18
+ formName: string;
19
+ formId: string;
20
+ authToken: string;
21
+ }
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MycurrencyPipe implements PipeTransform {
4
+ private prefix;
5
+ private decimal_separator;
6
+ private thousands_separator;
7
+ private suffix;
8
+ constructor();
9
+ transform(value: string, allowNegative?: boolean, decimalPrecision?: number): string;
10
+ parse(value: string, allowNegative?: boolean): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MycurrencyPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<MycurrencyPipe, "mycurrency", false>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormatAsPasswordPipe implements PipeTransform {
4
+ transform(value: string | number): unknown;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatAsPasswordPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatAsPasswordPipe, "formatAsPassword", false>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './format-as-password.pipe';
2
+ export * from './currency.pipe';
@@ -0,0 +1,21 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import type { MyLibConfig } from "../interfaces/shared.interface";
3
+ import * as i0 from "@angular/core";
4
+ export declare class FeedBackService {
5
+ private http;
6
+ private config;
7
+ apiUrl: string;
8
+ constructor(http: HttpClient, config: MyLibConfig);
9
+ feedbackForm: boolean;
10
+ feedBackSent: boolean;
11
+ pendingForm: boolean;
12
+ responderForm: boolean;
13
+ feedbackResponse: any;
14
+ private createRequestBody;
15
+ private performPostRequest;
16
+ getFeedback(email: string): import("rxjs").Observable<any>;
17
+ submitFeedback(data: any): import("rxjs").Observable<any>;
18
+ addResponse(data: any): import("rxjs").Observable<any>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeedBackService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeedBackService>;
21
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CoreI18nService {
3
+ private coreLocales;
4
+ language: string;
5
+ constructor();
6
+ translate(key: any): any;
7
+ getLanguage(): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreI18nService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<CoreI18nService>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './i18n.service';
2
+ export * from './sidenav.service';
@@ -0,0 +1,28 @@
1
+ import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SidenavService {
4
+ subject: Subject<{}>;
5
+ subjectNav: Subject<{}>;
6
+ sideNavServiceCode: Subject<{}>;
7
+ subjectNavEditTable: ReplaySubject<{}>;
8
+ subjectNavAfterEditTable: ReplaySubject<{}>;
9
+ subjectTabledata: ReplaySubject<{}>;
10
+ subjectNavWeekDuration: BehaviorSubject<{}>;
11
+ sideNavOpened: BehaviorSubject<boolean>;
12
+ data: any;
13
+ field: any;
14
+ mode: any;
15
+ index: any;
16
+ value: any;
17
+ discountTable: Subject<{}>;
18
+ resolveMode: boolean;
19
+ confirmMode: boolean;
20
+ formGroup: any;
21
+ unsubscribeSubject: any;
22
+ contentData: any;
23
+ afterClosed: ReplaySubject<any>;
24
+ publish(eventName: string, componentName: any, position?: any, mode?: any, content?: any): void;
25
+ closeSidenav(data?: any): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidenavService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<SidenavService>;
28
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ArOnlyDirective {
3
+ private specialKeys;
4
+ constructor();
5
+ regex: RegExp;
6
+ onKeyDown(event: any): void;
7
+ onPaste(event: any): void;
8
+ onDrop(event: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArOnlyDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ArOnlyDirective, "[arOnly]", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { MycurrencyPipe } from "../pipes";
3
+ import * as i0 from "@angular/core";
4
+ export declare class MycurrencyDirective implements OnInit {
5
+ private elementRef;
6
+ private formatcurrencypipe;
7
+ private el;
8
+ decimals: number;
9
+ constructor(elementRef: ElementRef, formatcurrencypipe: MycurrencyPipe);
10
+ ngOnInit(): void;
11
+ onFocus(value: any, event: any): any;
12
+ onBlur(value: any): void;
13
+ onKeyDown(event: any): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<MycurrencyDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MycurrencyDirective, "[appMycurrency]", never, { "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, false, never>;
16
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class EnOnlyDirective {
3
+ private specialKeys;
4
+ constructor();
5
+ regex: RegExp;
6
+ onKeyDown(event: any): void;
7
+ onPaste(event: any): void;
8
+ onDrop(event: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnOnlyDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EnOnlyDirective, "[enOnly]", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,3 @@
1
+ export declare function validateSAID(this: any): false | {
2
+ idInvalid: boolean;
3
+ };
@@ -0,0 +1,7 @@
1
+ export * from './ar.directive';
2
+ export * from './en.directive';
3
+ export * from './id.validator';
4
+ export * from './text.directive';
5
+ export * from './string-to-boolean.pipe';
6
+ export * from './timer.pipe';
7
+ export * from './currency.directive';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class stringToBooleanPipe implements PipeTransform {
4
+ transform(value: string): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<stringToBooleanPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<stringToBooleanPipe, "stringToBoolean", false>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import { ElementRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TextDirective {
4
+ private el;
5
+ decimals: number;
6
+ constructor(el: ElementRef);
7
+ private check;
8
+ onKeyDown(event: KeyboardEvent): void;
9
+ onPaste(event: ClipboardEvent): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[textOnly]", never, { "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormatTimePipe implements PipeTransform {
4
+ transform(value: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatTimePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatTimePipe, "formatTime", false>;
7
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "bpm-core",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^18.2.0",
6
+ "@angular/core": "^18.2.0",
7
+ "@angular/material": "^18.2.0"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/bpm-core.mjs",
14
+ "typings": "index.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./index.d.ts",
21
+ "esm2022": "./esm2022/bpm-core.mjs",
22
+ "esm": "./esm2022/bpm-core.mjs",
23
+ "default": "./fesm2022/bpm-core.mjs"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,13 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { MyLibConfig } from "./lib/interfaces/shared.interface";
3
+ export * from './lib/components/shared-components';
4
+ export * from './lib/components/app-component-sections';
5
+ export * from './lib/pipes';
6
+ export * from './lib/i18n';
7
+ export * from './lib/constants';
8
+ export * from './lib/interfaces';
9
+ export * from './lib/classes';
10
+ export * from './lib/hooks';
11
+ export * from './lib/functions';
12
+ export * from './lib/validators';
13
+ export declare const MY_LIB_CONFIG_TOKEN: InjectionToken<MyLibConfig>;