raise-common-lib 0.0.98 → 0.0.99

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 (47) hide show
  1. package/bundles/raise-common-lib.umd.js +2581 -2083
  2. package/bundles/raise-common-lib.umd.js.map +1 -1
  3. package/bundles/raise-common-lib.umd.min.js +2 -2
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/commentary/constants.js +38 -0
  6. package/esm2015/lib/commentary/index.component.js +252 -0
  7. package/esm2015/lib/common-grid/grid-action/grid-action.component.js +1 -1
  8. package/esm2015/lib/common-grid/index.component.js +2 -2
  9. package/esm2015/lib/constant/index.js +1 -3
  10. package/esm2015/lib/form/drawer-form/drawer-form.component.js +1 -1
  11. package/esm2015/lib/form/encrypted-input/index.component.js +58 -0
  12. package/esm2015/lib/raise-common-lib.module.js +8 -2
  13. package/esm2015/lib/service/common-function.service.js +98 -1
  14. package/esm2015/lib/utils/decorator.js +38 -0
  15. package/esm2015/public-api.js +3 -1
  16. package/esm2015/raise-common-lib.js +6 -5
  17. package/esm5/lib/commentary/constants.js +38 -0
  18. package/esm5/lib/commentary/index.component.js +286 -0
  19. package/esm5/lib/common-grid/grid-action/grid-action.component.js +1 -1
  20. package/esm5/lib/common-grid/index.component.js +2 -2
  21. package/esm5/lib/constant/index.js +1 -3
  22. package/esm5/lib/form/drawer-form/drawer-form.component.js +1 -1
  23. package/esm5/lib/form/encrypted-input/index.component.js +67 -0
  24. package/esm5/lib/raise-common-lib.module.js +8 -2
  25. package/esm5/lib/service/common-function.service.js +105 -1
  26. package/esm5/lib/utils/decorator.js +44 -0
  27. package/esm5/public-api.js +3 -1
  28. package/esm5/raise-common-lib.js +6 -5
  29. package/fesm2015/raise-common-lib.js +2841 -2399
  30. package/fesm2015/raise-common-lib.js.map +1 -1
  31. package/fesm5/raise-common-lib.js +2448 -1953
  32. package/fesm5/raise-common-lib.js.map +1 -1
  33. package/lib/commentary/constants.d.ts +15 -0
  34. package/lib/commentary/index.component.d.ts +32 -0
  35. package/lib/constant/index.d.ts +0 -1
  36. package/lib/form/encrypted-input/index.component.d.ts +11 -0
  37. package/lib/service/common-function.service.d.ts +2 -0
  38. package/lib/utils/decorator.d.ts +1 -0
  39. package/package.json +1 -1
  40. package/public-api.d.ts +2 -0
  41. package/raise-common-lib.d.ts +4 -3
  42. package/raise-common-lib.metadata.json +1 -1
  43. package/src/assets/img/comment-cancel.svg +4 -0
  44. package/src/assets/img/comment-check.svg +5 -0
  45. package/src/assets/img/eye-close.svg +4 -0
  46. package/src/assets/img/eye-open.svg +4 -0
  47. package/src/assets/style/variables.scss +1 -1
@@ -0,0 +1,15 @@
1
+ export interface MessageItem {
2
+ messageId: string;
3
+ messageBody: string;
4
+ ownerName: string;
5
+ lastModifiedOn: any;
6
+ [key: string]: any;
7
+ }
8
+ export interface MessageGroup {
9
+ messageId: string;
10
+ messageBody: string;
11
+ ownerName: string;
12
+ lastModifiedOn: any;
13
+ [key: string]: any;
14
+ commentaries: MessageItem[];
15
+ }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { CommonFunctionService } from "../service/common-function.service";
3
+ import { DialogService } from "../service/dialog.service";
4
+ import { MessageGroup } from "./constants";
5
+ export declare class RsCommentaryComponent implements OnInit {
6
+ cf: CommonFunctionService;
7
+ private dialog;
8
+ constructor(cf: CommonFunctionService, dialog: DialogService);
9
+ displayName: string;
10
+ commentData: MessageGroup[];
11
+ editPermission: boolean;
12
+ deletePermission: boolean;
13
+ isReadOnly: boolean;
14
+ actionComplete: EventEmitter<{
15
+ action: "addComment" | "updateComment" | "deleteComment" | "replyComment";
16
+ data: any;
17
+ callback: (result: any) => void;
18
+ }>;
19
+ commentVal: string;
20
+ replyVal: string;
21
+ editCommentVal: string;
22
+ dateTimePipeFormat: string;
23
+ translation: any;
24
+ ngOnInit(): void;
25
+ getInfo(): void;
26
+ addComment(): void;
27
+ editComment(item: any): void;
28
+ updateComment(item: any): Promise<void>;
29
+ deleteComment(item: any): void;
30
+ addReply(item: any): void;
31
+ adjustTextareaHeight(e: any): void;
32
+ }
@@ -19,7 +19,6 @@ export interface IColumnField {
19
19
  allowSorting?: boolean;
20
20
  allowEditing?: boolean;
21
21
  minWidth?: number | string;
22
- maxWidth?: number | string;
23
22
  editType?: string;
24
23
  dropdownParams?: any;
25
24
  dateComparer?: any;
@@ -0,0 +1,11 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ export declare class EncryptedInputComponent implements OnInit {
3
+ value: any;
4
+ disabled: boolean;
5
+ error: boolean;
6
+ placeholder: string;
7
+ valueChange: EventEmitter<any>;
8
+ encrypted: boolean;
9
+ ngOnInit(): void;
10
+ onInput(event: any): void;
11
+ }
@@ -10,4 +10,6 @@ export declare class CommonFunctionService {
10
10
  getPureUrl(url: string): string;
11
11
  closeTab(tabIndex?: number): void;
12
12
  publish(event: any): void;
13
+ rtn(str: any): string;
14
+ Guid(): string;
13
15
  }
@@ -0,0 +1 @@
1
+ export declare function Debounce(delay?: number): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"
package/public-api.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./lib/common-grid/index.component";
2
2
  export * from "./lib/common-grid/grid-action/grid-action.component";
3
3
  export * from "./lib/common-grid/grid-action/grid-action-item/grid-action-item.component";
4
4
  export * from "./lib/float-box/index.component";
5
+ export * from "./lib/commentary/index.component";
5
6
  export * from "./lib/layout/page-list/index.component";
6
7
  export * from "./lib/layout/page-tab/index.component";
7
8
  export * from "./lib/layout/grid-box/index.component";
@@ -15,6 +16,7 @@ export * from "./lib/form/tag-input/index.component";
15
16
  export * from "./lib/form/radio-group/index.component";
16
17
  export * from "./lib/form/checkbox-group/index.component";
17
18
  export * from "./lib/form/switch-input/index.component";
19
+ export * from "./lib/form/encrypted-input/index.component";
18
20
  export * from "./lib/form/drawer-form/drawer-form.component";
19
21
  export * from "./lib/form/drawer-form/constants";
20
22
  export * from "./lib/form/toolbar-item/index.component";
@@ -2,6 +2,7 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public-api';
5
- export { CommonDeleteComponent as ɵc } from './lib/dialog/common-delete-dialog/index.component';
6
- export { CommonDialogComponent as ɵb } from './lib/dialog/common-dialog/index.component';
7
- export { NewActionNotificationComponent as ɵa } from './lib/dialog/new-action-notification/new-action-notification.component';
5
+ export { CommonDeleteComponent as ɵd } from './lib/dialog/common-delete-dialog/index.component';
6
+ export { CommonDialogComponent as ɵc } from './lib/dialog/common-dialog/index.component';
7
+ export { NewActionNotificationComponent as ɵb } from './lib/dialog/new-action-notification/new-action-notification.component';
8
+ export { Debounce as ɵa } from './lib/utils/decorator';