@voplus/morpho-csp 10.0.23 → 10.0.25

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 (83) hide show
  1. package/es/data/identity/identity-events/index.d.ts +6 -3
  2. package/es/data/identity/identity-events/index.js +6 -3
  3. package/es/data/identity/identity-events/index.js.map +1 -1
  4. package/es/data/identity/index.d.ts +6 -4
  5. package/es/data/identity/index.js +6 -4
  6. package/es/data/identity/index.js.map +1 -1
  7. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +4 -1
  8. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
  9. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
  10. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
  11. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
  12. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -18
  13. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -86
  14. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  15. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -15
  16. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -75
  17. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
  18. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
  19. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
  20. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
  21. package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
  22. package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
  23. package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
  24. package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
  25. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
  26. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  27. package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
  28. package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
  29. package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
  30. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
  31. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
  32. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
  33. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
  34. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
  35. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
  36. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +4 -1
  37. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
  38. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +4 -1
  39. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
  40. package/package.json +2 -1
  41. package/es/data/identity/IdentityStore.d.ts +0 -35
  42. package/es/data/identity/IdentityStore.js +0 -119
  43. package/es/data/identity/IdentityStore.js.map +0 -1
  44. package/es/data/identity/hooks.d.ts +0 -6
  45. package/es/data/identity/hooks.js +0 -14
  46. package/es/data/identity/hooks.js.map +0 -1
  47. package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
  48. package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
  49. package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
  50. package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
  51. package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
  52. package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
  53. package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
  54. package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
  55. package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
  56. package/es/data/identity/interfaces.d.ts +0 -26
  57. package/es/data/identity/interfaces.js +0 -2
  58. package/es/data/identity/interfaces.js.map +0 -1
  59. package/es/data/identity/types.d.ts +0 -50
  60. package/es/data/identity/types.js +0 -2
  61. package/es/data/identity/types.js.map +0 -1
  62. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
  63. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
  64. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
  65. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
  66. package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
  67. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
  68. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
  69. package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
  70. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
  71. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
  72. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
  73. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
  74. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
  75. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
  76. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
  77. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
  78. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
  79. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
  80. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
  81. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
  82. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
  83. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.css +0 -32
@@ -1,16 +0,0 @@
1
- import { useIdentityStore } from "../IdentityStore";
2
- import { useEffect } from "react";
3
- /** React hook to call action when a delete Identity has been created. */
4
- export const useOnDeleteIdentity = (action) => {
5
- const store = useIdentityStore();
6
- const onDeleteIdentity = (store, doc) => {
7
- action(store, doc);
8
- };
9
- useEffect(() => {
10
- store.IdentityDeletedEvent.subscribe(onDeleteIdentity);
11
- return () => {
12
- store.IdentityDeletedEvent.unsubscribe(onDeleteIdentity);
13
- };
14
- });
15
- };
16
- //# sourceMappingURL=useOnDeleteIdentity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOnDeleteIdentity.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/useOnDeleteIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,yEAAyE;AACzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAsD,EAAE,EAAE;IAC7F,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,gBAAgB,GAAG,CAAC,KAAoB,EAAE,GAAc,EAAE,EAAE;QACjE,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACvD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAC1D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { IdentityStore } from "../IdentityStore";
2
- import { IIdentity } from "../interfaces";
3
- /** React hook to call action when a new Identity has been created. */
4
- export declare const useOnNewIdentity: (action: (store: IdentityStore, doc: IIdentity) => void) => void;
@@ -1,16 +0,0 @@
1
- import { useIdentityStore } from "../IdentityStore";
2
- import { useEffect } from "react";
3
- /** React hook to call action when a new Identity has been created. */
4
- export const useOnNewIdentity = (action) => {
5
- const store = useIdentityStore();
6
- const onNewIdentity = (store, doc) => {
7
- action(store, doc);
8
- };
9
- useEffect(() => {
10
- store.IdentityCreatedEvent.subscribe(onNewIdentity);
11
- return () => {
12
- store.IdentityCreatedEvent.unsubscribe(onNewIdentity);
13
- };
14
- });
15
- };
16
- //# sourceMappingURL=useOnNewIdentity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOnNewIdentity.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/useOnNewIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,sEAAsE;AACtE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAsD,EAAE,EAAE;IAC1F,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,CAAC,KAAoB,EAAE,GAAc,EAAE,EAAE;QAC9D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACpD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { ILoadable } from "@voplus/morpho-data";
2
- import { INode } from "@voplus/morpho-document-core";
3
- export type IdentityType = "IdentityCard" | "Passport" | "BusinessRegistration";
4
- export interface IIdentity extends ILoadable, INode {
5
- /** id of identity */
6
- id: string;
7
- /** id of the unit */
8
- unitId: string;
9
- /** full name of the identity */
10
- fullName: string;
11
- /** number of the identity */
12
- number?: string;
13
- /** Indicate if the number of the identity is revealed */
14
- revealed?: boolean;
15
- /** country of issued of the identity */
16
- country: string;
17
- issuingCountry?: string;
18
- /** expiry date of the identity */
19
- expiryDate: string;
20
- /** type of the identity */
21
- type: IdentityType;
22
- /** type of the unit */
23
- unitType?: "Person" | "Organization";
24
- /** */
25
- identity: string;
26
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/identity/interfaces.ts"],"names":[],"mappings":""}
@@ -1,50 +0,0 @@
1
- import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
2
- import { IAddress } from "@voplus/morpho-ui/es/data";
3
- import { IIdentity } from ".";
4
- /** Custom load identity options type */
5
- export type LoadIdentityOptions = {
6
- /** Comma separated include options e.g. path */
7
- includes?: string;
8
- } & LoadOptions<IIdentity>;
9
- export type IdentityCreateDataOptions = {
10
- /** id of the unit */
11
- UnitId?: string;
12
- /** full name of the identity */
13
- FullName?: string;
14
- /** number of the identity */
15
- Number?: string;
16
- /** country of issued of the identity */
17
- Country?: string;
18
- /** 只有在 idneity type = IdentityCard 时显示, 用来解决 新加坡 PR 卡需求 (卡片时新加坡发出的,但国籍不是) */
19
- IssuingCountry?: string;
20
- /** expiry date of the identity */
21
- ExpiryDate?: string;
22
- /** type of the identity */
23
- Type?: string;
24
- /** type of the unit */
25
- UnitType?: "Person" | "Organization";
26
- /** Address of the unit */
27
- Address?: IAddress;
28
- };
29
- export type IdentityEditDataOptions = {
30
- /** full name of the identity */
31
- FullName?: string;
32
- /** alias of the identity */
33
- Alias?: string;
34
- /** type of the identity */
35
- Type?: string;
36
- /** number of the identity */
37
- Number?: string;
38
- /** country of issued of the identity */
39
- Country?: string;
40
- /** 只有在 idneity type = IdentityCard 时显示, 用来解决 新加坡 PR 卡需求 (卡片时新加坡发出的,但国籍不是) */
41
- IssuingCountry?: string;
42
- /** expiry date of the identity */
43
- ExpiryDate?: string;
44
- };
45
- export type IdentityCreateOptions = {
46
- data: IdentityCreateDataOptions;
47
- } & StoreActionOptions;
48
- export type IdentityEditOptions = {
49
- data: IdentityEditDataOptions;
50
- } & StoreActionOptions;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/identity/types.ts"],"names":[],"mappings":""}
@@ -1,89 +0,0 @@
1
- .contact-identity-select-dialog {
2
- position: relative;
3
-
4
- .ant-modal-container {
5
- .ant-modal-body {
6
- display: flex;
7
- height: calc(100vh - 200px);
8
- padding: 0 !important;
9
-
10
- .ant-modal-close {
11
- height: 22px;
12
-
13
- .ant-modal-close-x {
14
- color: #000;
15
- }
16
- }
17
-
18
- .identity-close {
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- }
23
-
24
- .identity-title {
25
- height: 56px;
26
- line-height: 56px;
27
- padding: 0 20px;
28
- margin-bottom: 0;
29
- border-bottom: 1px solid #f0f0f0;
30
- }
31
- }
32
-
33
- .contact-identity-list {
34
- width: 33vw;
35
- height: 100%;
36
- position: relative;
37
- display: flex;
38
- flex-direction: column;
39
-
40
- .identity-list {
41
- flex: 1;
42
- }
43
- }
44
-
45
- .contact-identity-detail {
46
- position: absolute;
47
- width: 33vw;
48
- height: 100%;
49
- right: 0;
50
- display: flex;
51
- flex-direction: column;
52
- box-shadow: -2px 0 8px -2px rgba(0, 0, 0, 0.15);
53
- transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1),
54
- -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
55
-
56
- .ant-modal-close {
57
- .ant-modal-close-x {
58
- color: #000;
59
- }
60
- }
61
-
62
- &.aside-none {
63
- width: 0;
64
- height: 100%;
65
- padding: 0;
66
- display: none;
67
-
68
- .ant-modal-close {
69
- display: none;
70
- }
71
- }
72
-
73
- .identity-detail {
74
- flex: 1;
75
- /* // padding: 0 20px; */
76
-
77
- .identity-content {
78
- .ant-tabs {
79
- height: 100%;
80
-
81
- & > .ant-tabs-nav {
82
- padding: 0 20px;
83
- }
84
- }
85
- }
86
- }
87
- }
88
- }
89
- }
@@ -1,76 +0,0 @@
1
- .identity-detail {
2
- height: 100%;
3
-
4
- .operate-record {
5
- padding-top: 5px;
6
- }
7
-
8
- .document-icon-view_list {
9
- margin: 0;
10
- }
11
-
12
- .identity-info {
13
- padding: 15px 20px 0 20px;
14
-
15
- .identity-passport {
16
- display: flex;
17
- line-height: 24px;
18
-
19
- > span {
20
- margin-right: 15px;
21
- }
22
-
23
- .edit-icon {
24
- margin-left: 8px;
25
- }
26
-
27
- .add-identity {
28
- text-decoration: underline;
29
- font-size: 16px;
30
- cursor: pointer;
31
- }
32
-
33
- .identity-number {
34
- svg {
35
- font-size: 14px;
36
- color: var(--disabled-color);
37
- cursor: pointer;
38
- margin-left: 5px;
39
- }
40
- }
41
- }
42
- }
43
-
44
- .identity-content {
45
- height: 100%;
46
- display: flex;
47
- flex-direction: column;
48
-
49
- .member-tabs {
50
- .identity-information {
51
- padding: 0 20px;
52
- height: 100%;
53
-
54
- .identity-information-content {
55
- height: 100%;
56
-
57
- .identity-information-title {
58
- display: flex;
59
- align-items: center;
60
- justify-content: space-between;
61
- margin-bottom: 22px;
62
-
63
- .hover-edit-btn {
64
- display: none;
65
- height: auto;
66
- }
67
- }
68
-
69
- .identity-information-info {
70
- padding-bottom: 20px;
71
- }
72
- }
73
- }
74
- }
75
- }
76
- }
@@ -1,67 +0,0 @@
1
- .identity-properties {
2
- .identity-info {
3
- .identity-passport {
4
- line-height: 24px;
5
-
6
- > span {
7
- }
8
-
9
- .edit-icon {
10
- margin-left: 8px;
11
- }
12
-
13
- .content > div {
14
- display: flex;
15
- align-items: center;
16
- }
17
-
18
- .add-identity {
19
- text-decoration: underline;
20
- cursor: pointer;
21
- margin-left: 8px;
22
- }
23
-
24
- .identity-number {
25
- margin-left: 10px;
26
- svg {
27
- font-size: 14px;
28
- color: var(--disabled-color);
29
- cursor: pointer;
30
- margin-left: 4px;
31
- }
32
- .number {
33
- overflow: hidden;
34
- white-space: nowrap;
35
- text-overflow: ellipsis;
36
- }
37
- }
38
- .identity_country {
39
- display: inline-block;
40
- font-size: 12px;
41
- font-weight: 600;
42
- line-height: 25px;
43
- height: 25px;
44
- color: #868686;
45
- background: #f9f9f9;
46
- border-radius: 15px;
47
- padding: 0 14px;
48
- }
49
- }
50
- }
51
- .properties-section-icon {
52
- font-size: 14px;
53
- color: #868686 !important;
54
- }
55
- .prperties-content {
56
- .prperties-content {
57
- padding: 0;
58
- }
59
- }
60
- .identity-verification {
61
- > div {
62
- padding: 0;
63
- margin: 0;
64
- border: none;
65
- }
66
- }
67
- }
@@ -1,44 +0,0 @@
1
- .identify-quickView-dialog-content {
2
- height: 100%;
3
-
4
- .identity-information {
5
- height: 100%;
6
- padding: 0 20px;
7
-
8
- .identity-information-content {
9
- height: 100%;
10
-
11
- .identity-information-title {
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
- margin-bottom: 22px;
16
-
17
- > h3 {
18
- font-size: 16px;
19
- font-weight: 500;
20
- }
21
-
22
- .hover-edit-btn {
23
- display: none;
24
- height: auto;
25
- }
26
- }
27
- }
28
- }
29
- }
30
-
31
- .identify-quickView-dialog-header {
32
- display: flex;
33
- align-items: center;
34
- justify-content: space-between;
35
- padding: 20px;
36
-
37
- .identify-quickView-title {
38
- font-size: 16px;
39
- }
40
-
41
- .tools-bar {
42
- align-self: flex-start !important;
43
- }
44
- }
@@ -1,14 +0,0 @@
1
- import { IIdentity, IdentityEditDataOptions, IdentityStore } from "../../../../../../data/identity";
2
- export declare class State {
3
- private id;
4
- private identityStore;
5
- /** hover on edit */
6
- editable: boolean;
7
- /** */
8
- value: Partial<IdentityEditDataOptions>;
9
- /** loading of save */
10
- loading: boolean;
11
- constructor(id: string, identityStore: IdentityStore);
12
- reset: (identity: IIdentity) => void;
13
- onOk: () => Promise<boolean>;
14
- }
@@ -1,94 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { action, makeAutoObservable, observable, toJS } from "mobx";
3
- import { message } from "antd";
4
- export class State {
5
- constructor(id, identityStore) {
6
- Object.defineProperty(this, "id", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: id
11
- });
12
- Object.defineProperty(this, "identityStore", {
13
- enumerable: true,
14
- configurable: true,
15
- writable: true,
16
- value: identityStore
17
- });
18
- /** hover on edit */
19
- Object.defineProperty(this, "editable", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: false
24
- });
25
- /** */
26
- Object.defineProperty(this, "value", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: {}
31
- });
32
- /** loading of save */
33
- Object.defineProperty(this, "loading", {
34
- enumerable: true,
35
- configurable: true,
36
- writable: true,
37
- value: false
38
- });
39
- Object.defineProperty(this, "reset", {
40
- enumerable: true,
41
- configurable: true,
42
- writable: true,
43
- value: (identity) => {
44
- this.editable = false;
45
- this.value = toJS({
46
- Number: undefined,
47
- Type: identity.type,
48
- Country: identity.country,
49
- ExpiryDate: identity.expiryDate,
50
- FullName: identity.fullName,
51
- });
52
- }
53
- });
54
- Object.defineProperty(this, "onOk", {
55
- enumerable: true,
56
- configurable: true,
57
- writable: true,
58
- value: async () => {
59
- var _a, _b;
60
- if (!((_a = this.value) === null || _a === void 0 ? void 0 : _a.Number) ||
61
- !((_b = this.value) === null || _b === void 0 ? void 0 : _b.Country) ||
62
- (this.value.Type === "Passport" && !this.value.ExpiryDate))
63
- return message.warning("Identity information required");
64
- this.loading = true;
65
- await this.identityStore.edit(this.id, {
66
- data: toJS(this.value),
67
- error: "message",
68
- });
69
- this.loading = false;
70
- return (this.editable = false);
71
- }
72
- });
73
- makeAutoObservable(this);
74
- }
75
- }
76
- __decorate([
77
- observable
78
- ], State.prototype, "editable", void 0);
79
- __decorate([
80
- observable
81
- ], State.prototype, "value", void 0);
82
- __decorate([
83
- observable
84
- ], State.prototype, "loading", void 0);
85
- __decorate([
86
- action
87
- /** */
88
- ], State.prototype, "reset", void 0);
89
- __decorate([
90
- action
91
- /** save Identity information */
92
- // spec:1802 — CSP: Identity save validates required Number, Country, and Passport expiry
93
- ], State.prototype, "onOk", void 0);
94
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityInformation/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,OAAO,KAAK;IASjB,YAA2B,EAAU,EAAU,aAA4B;QAAxD;;;;mBAAQ,EAAE;WAAQ;QAAE;;;;mBAAQ,aAAa;WAAe;QAR3E,oBAAoB;QACD;;;;mBAAW,KAAK;WAAC;QACpC,MAAM;QACa;;;;mBAA0C,EAAE;WAAC;QAEhE,sBAAsB;QACH;;;;mBAAU,KAAK;WAAC;QAQ5B;;;;mBAAQ,CAAC,QAAmB,EAAE,EAAE;gBACtC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;oBACjB,MAAM,EAAE,SAAS;oBACjB,IAAI,EAAE,QAAQ,CAAC,IAAI;oBACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;oBACzB,UAAU,EAAE,QAAQ,CAAC,UAAU;oBAC/B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;iBAC3B,CAAC,CAAC;YACJ,CAAC;WAAC;QAKK;;;;mBAAO,KAAK,IAAI,EAAE;;gBACxB,IACC,CAAC,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,CAAA;oBACnB,CAAC,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,OAAO,CAAA;oBACpB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;oBAE1D,OAAO,OAAO,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;gBAEzD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;gBACpB,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;oBACtC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;oBACtB,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;gBACH,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;gBACrB,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;YAChC,CAAC;WAAC;QAlCD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAkCD;AA3CmB;IAAlB,UAAU;uCAAyB;AAEjB;IAAlB,UAAU;oCAAqD;AAG7C;IAAlB,UAAU;sCAAwB;AAQ5B;IAFN,MAAM;IACP,MAAM;oCAUJ;AAKK;IAHN,MAAM;IACP,gCAAgC;IAChC,yFAAyF;mCAgBvF"}
@@ -1,45 +0,0 @@
1
- .identity-item {
2
- position: relative;
3
- padding: 5px 20px;
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
-
8
- &::after {
9
- position: absolute;
10
- content: "";
11
- left: 20px;
12
- bottom: 0;
13
- right: 20px;
14
- border-bottom: 1px solid var(--border-bottom-color);
15
- }
16
-
17
- &.active {
18
- background: var(--item-hover-bg-color);
19
- }
20
-
21
- .identity-info {
22
- flex: 1;
23
-
24
- .identity-name {
25
- font-weight: 500;
26
- margin-bottom: 7px;
27
- }
28
-
29
- .identity-data {
30
- color: rgba(0, 0, 0, 0.45);
31
-
32
- .svg-inline--fa {
33
- margin-right: 5px;
34
- }
35
- }
36
- }
37
-
38
- .hover-operate-icon {
39
- display: none;
40
-
41
- &.show {
42
- display: block;
43
- }
44
- }
45
- }
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- declare const Step1: (props: {
3
- unitId: string;
4
- type: string;
5
- }) => React.JSX.Element;
6
- export default Step1;
@@ -1,40 +0,0 @@
1
- import React from "react";
2
- import { Button, Divider, Form, Input, Radio } from "antd";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { runInAction } from "mobx";
5
- import { useLegalContext } from "./state";
6
- const Step1 = (props) => {
7
- const legal = useLegalContext();
8
- runInAction(() => {
9
- legal.unitType = props.type;
10
- legal.unitId = props.unitId;
11
- });
12
- return observe(() => (React.createElement(React.Fragment, null,
13
- React.createElement("div", { className: "select-legal-contact_title" }, "Input Name"),
14
- React.createElement("div", { className: "select-legal-contact_content" }, legal.unitType === "Organization" ? (React.createElement(React.Fragment, null,
15
- React.createElement("h4", { style: { marginBottom: "10px" } }, "Name of the Organization"),
16
- React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) }))) : (React.createElement(React.Fragment, null,
17
- React.createElement("h4", null, "Please choose correct name order and input name of the Identify"),
18
- React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
19
- React.createElement("div", null, "Full Name Order"),
20
- React.createElement(Radio.Group, { value: legal.orderName, onChange: (e) => runInAction(() => (legal.orderName = e.target.value)) },
21
- React.createElement(Radio, { value: "Western", style: { padding: "10px 0" } }, "Fist Middle Last ( Western )"),
22
- React.createElement(Radio, { value: "Eastern", style: { padding: "10px 0" } }, "Last First ( Eastern )")),
23
- React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
24
- React.createElement("div", null, "Displayed Full Name"),
25
- React.createElement("div", { className: "full-name-displayed" }, legal.fullName),
26
- React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", colon: false, className: "padding-top-15" },
27
- React.createElement(Form.Item, { label: "First Name", name: "fistName", rules: [{ required: true, message: "Please input your First Name!" }] },
28
- React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) })),
29
- React.createElement(Form.Item, { label: "Last Name", name: "lastName", rules: [{ required: true, message: "Please input your Last Name!" }] },
30
- React.createElement(Input, { value: legal.lastName, onChange: (e) => runInAction(() => (legal.lastName = e.target.value)) })),
31
- React.createElement(Form.Item, { label: React.createElement("div", { style: { lineHeight: "15px" } },
32
- "Middle Name",
33
- React.createElement("span", { style: { display: "block" } }, "(Optional)")) },
34
- React.createElement(Input, { value: legal.middleName, onChange: (e) => runInAction(() => (legal.middleName = e.target.value)) })))))),
35
- React.createElement("div", { className: "select-legal-contact_footer" },
36
- React.createElement(Button, { size: "middle", onClick: () => { var _a, _b; return (_b = (_a = legal.props).updateVisible) === null || _b === void 0 ? void 0 : _b.call(_a); } }, "Cancel"),
37
- React.createElement(Button, { size: "middle", type: "primary", onClick: () => runInAction(() => (legal.step += 1)) }, "Next")))));
38
- };
39
- export default Step1;
40
- //# sourceMappingURL=Step1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Step1.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewIdentityDialog/Step1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,CAAC,KAAuC,EAAE,EAAE;IACzD,MAAM,KAAK,GAAG,eAAe,E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