@voplus/morpho-csp 11.2.9 → 11.3.0-dev.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 (210) hide show
  1. package/es/components/LegalContactSelect/index.d.ts +7 -0
  2. package/es/components/LegalContactSelect/index.js +127 -12
  3. package/es/components/LegalContactSelect/index.js.map +1 -1
  4. package/es/data/clda-form/conversion.d.ts +9 -6
  5. package/es/data/clda-form/conversion.js +11 -18
  6. package/es/data/clda-form/conversion.js.map +1 -1
  7. package/es/data/clda-form/identityAdapter.d.ts +60 -0
  8. package/es/data/clda-form/identityAdapter.js +196 -0
  9. package/es/data/clda-form/identityAdapter.js.map +1 -0
  10. package/es/data/clda-form/interfaces.d.ts +20 -1
  11. package/es/data/clda-form/saveFormDraft.d.ts +4 -0
  12. package/es/data/clda-form/saveFormDraft.js +21 -0
  13. package/es/data/clda-form/saveFormDraft.js.map +1 -0
  14. package/es/data/clda-form/types.d.ts +31 -2
  15. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.d.ts +35 -0
  16. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.js +53 -0
  17. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.js.map +1 -0
  18. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js +41 -15
  19. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js.map +1 -1
  20. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.d.ts +59 -1
  21. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.js +244 -15
  22. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.js.map +1 -1
  23. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +5 -0
  24. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +13 -7
  25. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
  26. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.d.ts +2 -2
  27. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js +20 -24
  28. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js.map +1 -1
  29. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.d.ts +2 -2
  30. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.js +38 -11
  31. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.js.map +1 -1
  32. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.d.ts +3 -3
  33. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.js.map +1 -1
  34. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.d.ts +25 -4
  35. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.js +88 -5
  36. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.js.map +1 -1
  37. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.d.ts +13 -0
  38. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.js +20 -0
  39. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.js.map +1 -0
  40. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js +28 -28
  41. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js.map +1 -1
  42. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.js +3 -4
  43. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.js.map +1 -1
  44. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.js +16 -9
  45. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.js.map +1 -1
  46. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.d.ts +2 -2
  47. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js +128 -61
  48. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js.map +1 -1
  49. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.d.ts +2 -2
  50. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.js +119 -24
  51. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.js.map +1 -1
  52. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.d.ts +0 -1
  53. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js +16 -8
  54. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js.map +1 -1
  55. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.d.ts +274 -23
  56. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js +560 -210
  57. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js.map +1 -1
  58. package/es/modules/corporate/components/CorporateSelect/index.d.ts +12 -1
  59. package/es/modules/corporate/components/CorporateSelect/index.js +19 -5
  60. package/es/modules/corporate/components/CorporateSelect/index.js.map +1 -1
  61. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.d.ts +6 -1
  62. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.js +3 -2
  63. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.js.map +1 -1
  64. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.d.ts +6 -1
  65. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.js +3 -2
  66. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.js.map +1 -1
  67. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js +3 -3
  68. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js.map +1 -1
  69. package/es/modules/corporate/legal-generation/components/IssueShares/interface.d.ts +1 -1
  70. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.d.ts +16 -1
  71. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +27 -9
  72. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
  73. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/interface.d.ts +5 -2
  74. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js +1 -1
  75. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js.map +1 -1
  76. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.d.ts +13 -1
  77. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +24 -6
  78. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
  79. package/es/modules/corporate/legal-generation/components/ShareTransfer/interface.d.ts +5 -2
  80. package/es/modules/corporate/legal-generation/components/SubmitButton/index.d.ts +11 -3
  81. package/es/modules/corporate/legal-generation/components/SubmitButton/index.js +9 -3
  82. package/es/modules/corporate/legal-generation/components/SubmitButton/index.js.map +1 -1
  83. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.d.ts +31 -2
  84. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +52 -37
  85. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
  86. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.d.ts +27 -2
  87. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js +78 -21
  88. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js.map +1 -1
  89. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.d.ts +17 -0
  90. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.js +36 -0
  91. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.js.map +1 -0
  92. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.d.ts +11 -0
  93. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.js +25 -0
  94. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.js.map +1 -0
  95. package/es/modules/corporate/legal-generation/fields/state/index.d.ts +7 -0
  96. package/es/modules/corporate/legal-generation/fields/state/index.js +5 -0
  97. package/es/modules/corporate/legal-generation/fields/state/index.js.map +1 -0
  98. package/es/modules/corporate/legal-generation/fields/state/types.d.ts +37 -0
  99. package/es/modules/corporate/legal-generation/fields/state/types.js +27 -0
  100. package/es/modules/corporate/legal-generation/fields/state/types.js.map +1 -0
  101. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.d.ts +28 -0
  102. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.js +45 -0
  103. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.js.map +1 -0
  104. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.d.ts +31 -0
  105. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.js +47 -0
  106. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.js.map +1 -0
  107. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.d.ts +35 -0
  108. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.js +36 -0
  109. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.js.map +1 -0
  110. package/es/modules/corporate/legal-generation/fields/state/useOperateField.d.ts +15 -0
  111. package/es/modules/corporate/legal-generation/fields/state/useOperateField.js +27 -0
  112. package/es/modules/corporate/legal-generation/fields/state/useOperateField.js.map +1 -0
  113. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.d.ts +18 -9
  114. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.js +130 -28
  115. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.js.map +1 -1
  116. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.d.ts +27 -17
  117. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.js +112 -24
  118. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.js.map +1 -1
  119. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.d.ts +637 -0
  120. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.js +840 -0
  121. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.js.map +1 -0
  122. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.d.ts +23 -0
  123. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.js +55 -0
  124. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.js.map +1 -0
  125. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.js +38 -8
  126. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.js.map +1 -1
  127. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +50 -33
  128. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
  129. package/es/modules/self-registration/clda-form/components/ContactFields/index.d.ts +5 -2
  130. package/es/modules/self-registration/clda-form/components/ContactFields/index.js +6 -3
  131. package/es/modules/self-registration/clda-form/components/ContactFields/index.js.map +1 -1
  132. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.d.ts +1 -2
  133. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js +7 -18
  134. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js.map +1 -1
  135. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.d.ts +1 -2
  136. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js +7 -18
  137. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
  138. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.d.ts +1 -2
  139. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js +7 -18
  140. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
  141. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.d.ts +1 -2
  142. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js +7 -18
  143. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
  144. package/es/modules/self-registration/clda-form/components/useContactEditSession.d.ts +35 -0
  145. package/es/modules/self-registration/clda-form/components/useContactEditSession.js +51 -0
  146. package/es/modules/self-registration/clda-form/components/useContactEditSession.js.map +1 -0
  147. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.d.ts +2 -3
  148. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +60 -12
  149. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
  150. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.d.ts +1 -2
  151. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js +3 -5
  152. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js.map +1 -1
  153. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +7 -21
  154. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
  155. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +6 -5
  156. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
  157. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.d.ts +1 -2
  158. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +23 -28
  159. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
  160. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.d.ts +1 -2
  161. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +11 -24
  162. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
  163. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.d.ts +1 -2
  164. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +13 -8
  165. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
  166. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.d.ts +1 -2
  167. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js +11 -24
  168. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -1
  169. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.d.ts +1 -2
  170. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js +18 -9
  171. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js.map +1 -1
  172. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.d.ts +1 -2
  173. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +11 -24
  174. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -1
  175. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +1 -2
  176. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +23 -28
  177. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
  178. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +2 -3
  179. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +81 -14
  180. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
  181. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.d.ts +1 -2
  182. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +11 -15
  183. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -1
  184. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.d.ts +2 -3
  185. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +34 -5
  186. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
  187. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.d.ts +1 -2
  188. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js +4 -5
  189. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js.map +1 -1
  190. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.d.ts +1 -2
  191. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js +5 -4
  192. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js.map +1 -1
  193. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.d.ts +1 -2
  194. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +32 -12
  195. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
  196. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +2 -3
  197. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +80 -13
  198. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
  199. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +1 -2
  200. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +7 -9
  201. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -1
  202. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +3 -0
  203. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +4 -2
  204. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -1
  205. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js +16 -1
  206. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js.map +1 -1
  207. package/es/routes.d.ts +1 -1
  208. package/es/routes.js +4 -2
  209. package/es/routes.js.map +1 -1
  210. package/package.json +4 -4
@@ -133,7 +133,15 @@ export type FormPeopleOptions = {
133
133
  /** country of issued of the identity */
134
134
  Country: string;
135
135
  /** expiry date of the identity */
136
- ExpiryDate: Date;
136
+ ExpiryDate?: string | Date | null;
137
+ /** Explicit expiry clear intent. */
138
+ ClearExpiryDate?: boolean;
139
+ /** Selected numeric source, independent of deprecated Type. */
140
+ SourceNumber?: number;
141
+ /** Captured alias or explicit clear. */
142
+ Alias?: string | null;
143
+ /** Independent issuing country or explicit clear. */
144
+ IssuingCountry?: string | null;
137
145
  /** type of the identity */
138
146
  Type: IdentityType;
139
147
  /** type of the unit */
@@ -141,7 +149,28 @@ export type FormPeopleOptions = {
141
149
  /** */
142
150
  Identity: string;
143
151
  }>;
144
- IdType?: "NewId" | "ExistingContactId";
152
+ /** Complete frozen sibling shape, separate from the shared identity command DTO. */
153
+ IdentityShape?: {
154
+ /** Stable selected catalogue source. */
155
+ SourceNumber: number;
156
+ /** Frozen document label. */
157
+ Name: string;
158
+ /** Frozen document family. */
159
+ Family: string;
160
+ /** Frozen subject applicability. */
161
+ Subject: string;
162
+ /** Frozen alias policy. */
163
+ AliasPolicy: string;
164
+ /** Frozen issuing-country policy. */
165
+ IssuingCountryPolicy: string;
166
+ /** Frozen expiry policy. */
167
+ ExpiryPolicy: string;
168
+ };
169
+ /** Exact gallery owner selection, if present. */
170
+ SelectedEntityId?: string | null;
171
+ /** Exact gallery identity selection, if present. */
172
+ SelectedIdentityId?: string | null;
173
+ IdType?: string;
145
174
  Type?: string;
146
175
  Representative?: string;
147
176
  RepresentativePassport?: string;
@@ -0,0 +1,35 @@
1
+ import type { IdentityShapeCatalogStatus } from "@voplus/morpho-compliance/es/components/IdentityShapeSelect";
2
+ import type { CapturedShapeFieldValues } from "@voplus/morpho-compliance/es/components/CapturedShapeFields";
3
+ import type { IIdentityShape } from "@voplus/morpho-compliance/es/data/identityShape";
4
+ /** Snapshot and edit channels for the risk-profile identity panel. */
5
+ export interface IdentityShapeFieldsProps {
6
+ /** The identity owner's kind — the catalog is filtered to the shapes that apply to it (spec:3712). */
7
+ subject: "Person" | "Organization";
8
+ /** `true` renders the shape picker and its inputs; `false` renders the frozen captured snapshot. */
9
+ editable: boolean;
10
+ /** The shape being picked while editing, the identity's captured shape when read-only. */
11
+ shape?: IIdentityShape;
12
+ /** The captured values, keyed as the shape policies are. */
13
+ values: CapturedShapeFieldValues;
14
+ /** Update one captured value without changing its snapshot. */
15
+ onChange: (field: keyof CapturedShapeFieldValues, value?: string) => void;
16
+ /** Apply a deliberate catalog pick. */
17
+ onShapeChange: (shape: IIdentityShape) => void;
18
+ /** Report catalog availability to the save gate. */
19
+ onCatalogStatus?: (status: IdentityShapeCatalogStatus) => void;
20
+ /** spec:3713 — the mandatory captured fields a blocked save is missing. */
21
+ fieldErrors?: Partial<Record<keyof CapturedShapeFieldValues, string>>;
22
+ /** spec:3717 — the picker's catalog status; the save gate reads the same value. */
23
+ catalogStatus: IdentityShapeCatalogStatus;
24
+ /** Optional host layout class. */
25
+ className?: string;
26
+ }
27
+ /**
28
+ * The identity-shape block of the properties editor: the shared catalog picker (built-ins plus the
29
+ * tenant's custom shapes for this contact kind) in edit mode, the identity's frozen shape name as a
30
+ * Tag in read mode, and the alias / issuing country / expiry date each active shape captures — driven
31
+ * by that shape's own policies, so a shape hidden, made optional or made mandatory by a later catalog
32
+ * edit still renders exactly what the identity was captured under.
33
+ */
34
+ declare const IdentityShapeFields: (props: IdentityShapeFieldsProps) => JSX.Element;
35
+ export default IdentityShapeFields;
@@ -0,0 +1,53 @@
1
+ import { Tag } from "antd";
2
+ import React from "react";
3
+ import classnames from "classnames";
4
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
5
+ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
6
+ import IdentityShapeSelect from "@voplus/morpho-compliance/es/components/IdentityShapeSelect";
7
+ import { FIELD_LABELS, renderCapturedFieldControl, } from "@voplus/morpho-compliance/es/components/CapturedShapeFields";
8
+ import { CATALOG_UNAVAILABLE_MESSAGE } from "@voplus/morpho-compliance/es/data/identityShape";
9
+ /** A captured value the identity never carried reads as an em dash, as on the other properties surfaces. */
10
+ const EMPTY_VALUE = "—";
11
+ /**
12
+ * The identity-shape block of the properties editor: the shared catalog picker (built-ins plus the
13
+ * tenant's custom shapes for this contact kind) in edit mode, the identity's frozen shape name as a
14
+ * Tag in read mode, and the alias / issuing country / expiry date each active shape captures — driven
15
+ * by that shape's own policies, so a shape hidden, made optional or made mandatory by a later catalog
16
+ * edit still renders exactly what the identity was captured under.
17
+ */
18
+ const IdentityShapeFields = (props) => {
19
+ const { subject, editable, shape, values, onChange, onShapeChange, onCatalogStatus, fieldErrors, catalogStatus, className, } = props;
20
+ /** Which of the capturable fields the active shape actually captures, and whether each is required. */
21
+ const policyFor = (field) => shape?.policies[field];
22
+ /** Render only fields the active snapshot captures. */
23
+ const isVisible = (field) => {
24
+ const policy = policyFor(field);
25
+ return !!policy && policy !== "omitted";
26
+ };
27
+ // spec:1955 — CSP: Identity properties edit form validation
28
+ /**
29
+ * spec:3713 — one captured field as a row of this panel's own `Prop` idiom: the label with the
30
+ * control (edit mode) or the frozen value (read mode) beside it. The control itself comes from
31
+ * the shared `renderCapturedFieldControl`, so which control a field renders — and the shape-source
32
+ * key that remounts `InputCountry` when a hidden country is cleared — stays owned by Compliance;
33
+ * this wrapper only adds the label and the message a blocked save recorded.
34
+ */
35
+ const capturedProp = (field) => (React.createElement(Prop, { key: field, label: FIELD_LABELS[field] }, editable ? (React.createElement(React.Fragment, null,
36
+ renderCapturedFieldControl(field, values[field], (value) => onChange(field, value), shape?.source),
37
+ !!fieldErrors?.[field] && (React.createElement("div", { className: "text-danger text-xs mt-xs" }, fieldErrors[field])))) : field === "expiryDate" && values.expiryDate ? (React.createElement(UTCShortDate, { value: values.expiryDate })) : (values[field] || EMPTY_VALUE)));
38
+ // The captured fields regroup by meaning: the alias is a variant of the identity owner's own
39
+ // name, so it stays the first row right under the identity type it belongs to; issuing country
40
+ // and expiry date are both attributes of the document, so they share one row of two equal
41
+ // columns. A shape that omits one of the pair gives the survivor the full width instead of
42
+ // leaving a ragged half-row, and a shape that omits both renders no row at all.
43
+ const aliasVisible = isVisible("alias");
44
+ const documentFields = ["issuingCountry", "expiryDate"].filter(isVisible);
45
+ return (React.createElement("div", { className: classnames(className) },
46
+ React.createElement(Prop, { label: "Identity Type" }, editable ? (React.createElement(IdentityShapeSelect, { subject: subject, value: shape?.source, capturedShapeName: shape?.name, onChange: onShapeChange, onCatalogStatus: onCatalogStatus })) : shape ? (React.createElement(Tag, null, shape.name)) : (EMPTY_VALUE)),
47
+ editable && catalogStatus !== "ready" && (React.createElement("div", { className: "text-font-grey text-xs mb-md" }, CATALOG_UNAVAILABLE_MESSAGE)),
48
+ aliasVisible && capturedProp("alias"),
49
+ documentFields.length === 1 && capturedProp(documentFields[0]),
50
+ documentFields.length > 1 && (React.createElement("div", { className: "flex gap-md" }, documentFields.map((field) => (React.createElement("div", { key: field, className: "flex-1 min-w-0" }, capturedProp(field))))))));
51
+ };
52
+ export default IdentityShapeFields;
53
+ //# sourceMappingURL=IdentityShapeFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdentityShapeFields.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,mBAAmB,MAAM,6DAA6D,CA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,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9B,6BAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,gBAAgB,IACzC,YAAY,CAAC,KAAK,CAAC,CACf,CACN,CAAC,CACG,CACN,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,14 +1,15 @@
1
1
  import React, { useEffect, useMemo, useState } from "react";
2
- import { Button, Form, Input, Select, Tooltip } from "antd";
3
- import { InlineEdit, InputCountry, observe, useAutorunEffect, UTCDatePicker as DatePicker, } from "@voplus/morpho-ui";
4
- import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
2
+ import { Button, Form, Input, Tooltip } from "antd";
3
+ import { InlineEdit, InputCountry, observe, useAutorunEffect } from "@voplus/morpho-ui";
5
4
  import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
6
5
  import { FontAwesomeIcon as FAIcon, faPenLineRegular, faEyeRegular, faEyeLowVisionRegular, } from "@voplus/morpho-ui/es/faIcons";
7
6
  import { State } from "./state";
8
- import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
9
7
  import { useRiskProfileStore } from "../../../../../../data/risk-profile";
10
8
  import ContactIdentitySelectDialog from "../../../../company/identity/components/ContactIdentitySelectDialog";
11
9
  import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
10
+ import IdentityShapeFields from "./IdentityShapeFields";
11
+ import ShapeChangeConfirm from "@voplus/morpho-compliance/es/components/ShapeChangeConfirm";
12
+ import { hiddenFieldsFor } from "@voplus/morpho-compliance/es/components/CapturedShapeFields";
12
13
  import "./index.css";
13
14
  const IdentityProperties = (props) => {
14
15
  /** 加class name 为了方便做integration tests */
@@ -31,7 +32,9 @@ const IdentityProperties = (props) => {
31
32
  React.createElement(PropertiesSection, { title: title, properties: (labelColWidth) => (React.createElement("div", { className: "risk-identity-properties" },
32
33
  React.createElement("div", { className: "identity-info" },
33
34
  React.createElement("h2", { className: "identity-passport" },
34
- React.createElement("span", null, identity ? `${identity?.country} ${identity?.type}` : ""),
35
+ React.createElement("span", null, identity
36
+ ? `${identity?.country} ${identity?.shape?.name ?? identity?.type ?? ""}`
37
+ : ""),
35
38
  React.createElement(InlineEdit, { showEditIcon: identity?.number ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null, identity?.number ? (React.createElement("span", { className: "identity-number" },
36
39
  !viewIdentity ? identity.number : number,
37
40
  React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionRegular : faEyeRegular, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))),
@@ -47,22 +50,45 @@ const IdentityProperties = (props) => {
47
50
  state.value.FullName = e.target.value;
48
51
  } })) : (React.createElement("span", { className: "properties-value" }, identity?.fullName))),
49
52
  React.createElement(Form.Item, { label: "Country", rules: [{ required: true }], className: classId + "-country" }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.value.Country, onChange: (v) => (state.value.Country = v) })) : (React.createElement("span", { className: "properties-value" }, identity?.country))),
50
- React.createElement(Form.Item, { label: "Identity Type", rules: [{ required: true }], className: classId + "-identityType" }, state.editable ? (React.createElement(Select, { value: state.value.Type, onChange: (v) => {
51
- state.value.Type = v;
52
- }, options: [
53
- { value: "Passport", label: "International Passport" },
54
- { value: "IdentityCard", label: "Identify Card" },
55
- { value: "BusinessRegistration", label: "Business Registration" },
56
- ] })) : (React.createElement("span", { className: "properties-value" }, identity?.type))),
53
+ React.createElement(IdentityShapeFields, { className: classId + "-shape", subject: identity?.unitType === "Organization" ? "Organization" : "Person", editable: state.editable, shape: state.editable ? state.shape : identity?.shape, values: state.editable
54
+ ? state.capturedValues
55
+ : {
56
+ alias: identity?.alias,
57
+ issuingCountry: identity?.issuingCountry,
58
+ expiryDate: identity?.expiryDate,
59
+ }, onChange: onCapturedFieldChange, onShapeChange: onShapeChange, onCatalogStatus: (status) => (state.catalogStatus = status), fieldErrors: state.fieldErrors, catalogStatus: state.catalogStatus }),
57
60
  React.createElement(Form.Item, { label: "Identity #", rules: [{ required: true }], className: classId + "-number" }, state.editable ? (React.createElement(Input, { value: state.value.Number, onChange: (e) => {
58
61
  state.value.Number = e.target.value;
59
- } })) : (React.createElement("span", { className: "properties-value" }, identity?.number))),
60
- React.createElement(Form.Item, { label: "Expiry Date", rules: [{ required: state.value.Type === "Passport" }], className: classId + "-expiryDate" }, state.editable ? (React.createElement(DatePicker, { style: { width: "100%" }, defaultValue: state.value.ExpiryDate ? utcdayjs(state.value.ExpiryDate) : undefined, onChange: (date, dateString) => (state.value.ExpiryDate = dateString) })) : (React.createElement(UTCShortDate, { className: "properties-value", value: identity?.expiryDate }))))))) })),
61
- numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })))));
62
+ } })) : (React.createElement("span", { className: "properties-value" }, identity?.number))))))) })),
63
+ numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
64
+ React.createElement(ShapeChangeConfirm, { pendingShape: state.pendingShape, values: state.capturedValues, onConfirm: state.applyShape, onCancel: () => (state.pendingShape = null) }))));
62
65
  // spec:1957 — CSP: Switch identity via contact selection refreshes risk profile
63
66
  function onSelect(ids) {
64
67
  riskProfileStore.refresh(id, {}).then(() => setNumberEdit(false));
65
68
  }
69
+ /** Write one captured value back into the edit buffer and clear the message it just satisfied. */
70
+ function onCapturedFieldChange(field, value) {
71
+ if (field === "alias")
72
+ state.value.Alias = value;
73
+ else if (field === "issuingCountry")
74
+ state.value.IssuingCountry = value;
75
+ else
76
+ state.value.ExpiryDate = value;
77
+ if (state.fieldErrors[field]) {
78
+ const next = { ...state.fieldErrors };
79
+ delete next[field];
80
+ state.fieldErrors = next;
81
+ }
82
+ }
83
+ // spec:3715 — COMPLIANCE: Changing shape warns before incompatible identity values are cleared
84
+ /** Adopt the picked shape, confirming first when it would clear a value the user can see. */
85
+ function onShapeChange(shape) {
86
+ shape = state.resolveShape(shape);
87
+ if (hiddenFieldsFor(shape, state.capturedValues).length > 0)
88
+ state.pendingShape = shape;
89
+ else
90
+ state.applyShape(shape);
91
+ }
66
92
  /** hover edit IdentityInformation */
67
93
  async function onEdit() {
68
94
  if (!state.value.Number) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EACN,UAAU,EACV,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,aAAa,IAAI,UAAU,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACN,eAAe,IAAI,MAAM,EACzB,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAAG,CAAC,KAa3B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,qBAAqB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C,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,sCAAsC;IACtC,KAAK,UAAU,MAAM;QACpB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnD,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;YACjC,CAAC,CAAC,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,iDAAiD;IACjD,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACN,eAAe,IAAI,MAAM,EACzB,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,GACrB,MAAM,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C;YACjC,CAAC,CAAC,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,iDAAiD;IACjD,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,12 @@
1
1
  import { IIdentity, IdentityEditDataOptions, IdentityStore } from "../../../../../../data/identity";
2
+ import type { IIdentityShape } from "@voplus/morpho-compliance/es/data/identityShape";
3
+ import type { IdentityShapeCatalogStatus } from "@voplus/morpho-compliance/es/components/IdentityShapeSelect";
4
+ import type { CapturedShapeFieldValues } from "@voplus/morpho-compliance/es/components/CapturedShapeFields";
5
+ /**
6
+ * The subset of the edit buffer a shape can hide, and which therefore has to be clearable: their
7
+ * values are dropped from the buffer when a replacement shape does not capture them.
8
+ */
9
+ type ClearableValues = Pick<IdentityEditDataOptions, "Alias" | "IssuingCountry" | "ExpiryDate">;
2
10
  export declare class State {
3
11
  private id;
4
12
  private identityStore;
@@ -8,7 +16,57 @@ export declare class State {
8
16
  accessor value: Partial<IdentityEditDataOptions>;
9
17
  /** loading of save */
10
18
  accessor loading: boolean;
19
+ /**
20
+ * the shape the editor is working with: the identity's captured shape on `reset`, and the
21
+ * replacement the user picks mid-edit — never re-derived from the live catalog, so a shape
22
+ * edited or deleted after capture still reads as what the identity actually carries.
23
+ */
24
+ accessor shape: IIdentityShape | undefined;
25
+ /** spec:3717 — the picker's catalog status; the save stays blocked until it reports "ready". */
26
+ accessor catalogStatus: IdentityShapeCatalogStatus;
27
+ /** spec:3715 — a replacement shape that would clear populated fields, awaiting confirmation. */
28
+ accessor pendingShape: IIdentityShape | null;
29
+ /**
30
+ * spec:3713 — the captured fields a blocked save rejected, each with the reason it was
31
+ * rejected: a field the frozen snapshot still needs, or one carrying a value that snapshot
32
+ * does not permit.
33
+ */
34
+ accessor fieldErrors: Partial<Record<keyof CapturedShapeFieldValues, string>>;
35
+ /**
36
+ * The clearable values as the identity carried them when editing opened. A value present here
37
+ * but empty in `value` is one the form is showing as cleared, so the save has to say so
38
+ * explicitly: an omitted key means "leave unchanged" to the server, which would let the old
39
+ * value survive a save whose shape selection never changed.
40
+ */
41
+ accessor initial: ClearableValues;
42
+ /** The last server-confirmed snapshot remains independent of the active selection. */
43
+ accessor baselineShape: IIdentityShape | undefined;
11
44
  constructor(id: string, identityStore: IdentityStore);
12
45
  reset: (identity: IIdentity) => void;
13
- onOk: () => Promise<boolean>;
46
+ /** Resolve an original source before confirmation and destructive field clearing. */
47
+ resolveShape: (candidate: IIdentityShape) => IIdentityShape;
48
+ /** The edit buffer projected onto the captured-field keys the shape policies are keyed by. */
49
+ get capturedValues(): CapturedShapeFieldValues;
50
+ applyShape: (shape: IIdentityShape) => void;
51
+ /**
52
+ * The edit buffer as the wire payload (spec:1955). `applyShape` clears a value the replacement
53
+ * shape does not capture by assigning `undefined`, and the user can empty a control directly;
54
+ * either way `JSON.stringify` drops the key, and to the server an absent key means "leave the
55
+ * captured value unchanged". A value the form is showing as cleared therefore has to become an
56
+ * EXPLICIT clear here, or it survives the save (spec:3848) — most visibly after a shape change,
57
+ * where the omitted field is not rendered any more and no control is left to clear it.
58
+ *
59
+ * The two kinds of field clear differently, exactly as the shared write contract
60
+ * (`IdentityEditDataOptions`) and the sibling Compliance editor do: `Alias` / `IssuingCountry`
61
+ * are nullable strings, so an empty string IS the clear signal, while `ExpiryDate` is applied
62
+ * only when non-null and is removed with the `ClearExpiryDate` flag. The flag and a date
63
+ * together are rejected with a 400, so exactly one of them is ever sent.
64
+ *
65
+ * A field that was already empty when editing opened is omitted rather than cleared: it has
66
+ * nothing to remove, and a redundant "" would write a value and log a spurious property change
67
+ * on every unrelated save.
68
+ */
69
+ get payload(): Partial<IdentityEditDataOptions>;
70
+ onOk: () => Promise<void>;
14
71
  }
72
+ export {};