@sparkerp/plugin-sdk 0.1.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 (142) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -0
  3. package/bundle/blocks.json +12229 -0
  4. package/bundle/catalog.json +32475 -0
  5. package/bundle/docs/applications/hcm/employee-profile.md +144 -0
  6. package/bundle/docs/concepts/artifact-types.md +80 -0
  7. package/bundle/docs/concepts/glossary.md +124 -0
  8. package/bundle/docs/concepts/overview.md +88 -0
  9. package/bundle/docs/concepts/page-data-flow.md +84 -0
  10. package/bundle/docs/concepts/plugin-lifecycle.md +81 -0
  11. package/bundle/docs/concepts/sdk-modes.md +71 -0
  12. package/bundle/docs/docs.json +109 -0
  13. package/bundle/docs/guides/add-a-cadence-job.md +134 -0
  14. package/bundle/docs/guides/add-a-compliance-job.md +139 -0
  15. package/bundle/docs/guides/add-a-create-edit-form.md +167 -0
  16. package/bundle/docs/guides/add-a-custom-block.md +225 -0
  17. package/bundle/docs/guides/add-a-data-provider.md +216 -0
  18. package/bundle/docs/guides/add-a-kpi.md +154 -0
  19. package/bundle/docs/guides/add-a-reminder-job.md +181 -0
  20. package/bundle/docs/guides/add-an-aggregation-job.md +153 -0
  21. package/bundle/docs/guides/add-an-approval-workflow.md +222 -0
  22. package/bundle/docs/guides/add-an-entity.md +170 -0
  23. package/bundle/docs/guides/add-business-rules.md +147 -0
  24. package/bundle/docs/guides/add-i18n.md +121 -0
  25. package/bundle/docs/guides/add-menus.md +149 -0
  26. package/bundle/docs/guides/build-a-code-plugin.md +141 -0
  27. package/bundle/docs/guides/build-a-page.md +213 -0
  28. package/bundle/docs/guides/build-a-polyglot-service-plugin.md +201 -0
  29. package/bundle/docs/guides/build-a-tenant-extension-service.md +149 -0
  30. package/bundle/docs/guides/create-a-plugin.md +172 -0
  31. package/bundle/docs/guides/expose-a-plugin-operation-as-an-ai-tool.md +114 -0
  32. package/bundle/docs/guides/index.md +53 -0
  33. package/bundle/docs/guides/publish-and-upgrade.md +152 -0
  34. package/bundle/docs/guides/responsive-plugin.md +117 -0
  35. package/bundle/docs/guides/seed-data-on-install.md +127 -0
  36. package/bundle/docs/guides/set-up-the-sdk.md +120 -0
  37. package/bundle/docs/guides/use-the-mcp-server.md +104 -0
  38. package/bundle/docs/guides/validate-and-test.md +119 -0
  39. package/bundle/docs/guides/wire-a-pages-data.md +153 -0
  40. package/bundle/docs/quickstart/index.md +118 -0
  41. package/bundle/docs/recipes/condition-based-compliance-flag.md +70 -0
  42. package/bundle/docs/recipes/cross-plugin-offboarding-fanout.md +68 -0
  43. package/bundle/docs/recipes/cross-row-aggregation.md +67 -0
  44. package/bundle/docs/recipes/entity-with-approval-workflow.md +72 -0
  45. package/bundle/docs/recipes/index.md +40 -0
  46. package/bundle/docs/recipes/install-lifecycle-data-seeding.md +76 -0
  47. package/bundle/docs/recipes/kpi-dashboard-page.md +92 -0
  48. package/bundle/docs/recipes/master-detail-page.md +84 -0
  49. package/bundle/docs/recipes/n-days-before-reminder.md +72 -0
  50. package/bundle/docs/recipes/per-row-document-generator.md +65 -0
  51. package/bundle/docs/recipes/related-record-lookup-field.md +74 -0
  52. package/bundle/docs/recipes/resolved-reference-grid-column.md +63 -0
  53. package/bundle/docs/recipes/scheduled-record-generation.md +68 -0
  54. package/bundle/docs/reference/action.md +18 -0
  55. package/bundle/docs/reference/block-definition.md +35 -0
  56. package/bundle/docs/reference/block-instance.md +33 -0
  57. package/bundle/docs/reference/composite-pack-manifest.md +33 -0
  58. package/bundle/docs/reference/connector-definition.md +36 -0
  59. package/bundle/docs/reference/data-service-definition.md +22 -0
  60. package/bundle/docs/reference/data-view-definition.md +26 -0
  61. package/bundle/docs/reference/entity-aggregation-config.md +38 -0
  62. package/bundle/docs/reference/entity-cadence-config.md +33 -0
  63. package/bundle/docs/reference/entity-compliance-config.md +37 -0
  64. package/bundle/docs/reference/entity-cross-plugin-action-config.md +37 -0
  65. package/bundle/docs/reference/entity-definition.md +18 -0
  66. package/bundle/docs/reference/entity-document-generator-config.md +35 -0
  67. package/bundle/docs/reference/entity-rule-definition.md +29 -0
  68. package/bundle/docs/reference/entity-status-date-sweep-config.md +27 -0
  69. package/bundle/docs/reference/form.md +35 -0
  70. package/bundle/docs/reference/index.md +37 -0
  71. package/bundle/docs/reference/menu.md +26 -0
  72. package/bundle/docs/reference/mobile-nav.md +22 -0
  73. package/bundle/docs/reference/page-template.md +29 -0
  74. package/bundle/docs/reference/page.md +44 -0
  75. package/bundle/docs/reference/plugin-manifest.md +54 -0
  76. package/bundle/docs/reference/plugin-seed-data.md +21 -0
  77. package/bundle/docs/reference/print-template-definition.md +22 -0
  78. package/bundle/docs/reference/provider-definition.md +22 -0
  79. package/bundle/docs/reference/report-definition.md +22 -0
  80. package/bundle/docs/reference/rule.md +30 -0
  81. package/bundle/docs/reference/workflow-definition.md +28 -0
  82. package/bundle/docs/troubleshooting/grid-shows-zero-rows.md +82 -0
  83. package/bundle/docs/troubleshooting/job-never-runs.md +89 -0
  84. package/bundle/docs/troubleshooting/known-gotchas.md +193 -0
  85. package/bundle/docs/troubleshooting/publishing-errors.md +119 -0
  86. package/bundle/docs/tutorial/01-create-the-plugin.md +157 -0
  87. package/bundle/docs/tutorial/02-category-entity-and-seed.md +94 -0
  88. package/bundle/docs/tutorial/03-equipment-entity.md +121 -0
  89. package/bundle/docs/tutorial/04-equipment-register-page.md +153 -0
  90. package/bundle/docs/tutorial/05-checkout-entity-and-page.md +116 -0
  91. package/bundle/docs/tutorial/06-checkout-approval-workflow.md +139 -0
  92. package/bundle/docs/tutorial/07-return-due-reminder-job.md +129 -0
  93. package/bundle/docs/tutorial/08-menus-i18n-publish.md +123 -0
  94. package/bundle/docs/tutorial/index.md +72 -0
  95. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-aggregation-configs.json +18 -0
  96. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-cadence-configs.json +9 -0
  97. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-compliance-configs.json +74 -0
  98. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-cross-plugin-configs.json +9 -0
  99. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-document-configs.json +9 -0
  100. package/bundle/examples/backend/modules/hcm-assets/spk-assembly/metadata/seed-data/hcm-assets-sweep-configs.json +260 -0
  101. package/bundle/examples/backend/modules/hcm-compensation/spk-assembly/metadata/entities/hcm_salary_planning_entry.json +41 -0
  102. package/bundle/examples/backend/modules/hcm-compensation/spk-assembly/metadata/page/salary-planning.json +1 -0
  103. package/bundle/examples/backend/modules/hcm-employee/spk-assembly/metadata/page/promotions.json +10944 -0
  104. package/bundle/examples/backend/modules/hcm-employee/spk-assembly/metadata/workflow/employee.movement.json +44 -0
  105. package/bundle/examples/backend/modules/hcm-employee/spk-assembly/metadata/workflow/employee.promotion-acknowledge.json +19 -0
  106. package/bundle/examples/backend/modules/hcm-employee/spk-assembly/metadata/workflow/employee.resignation.json +29 -0
  107. package/bundle/examples/example-patterns.mjs +94 -0
  108. package/bundle/manifest.json +14 -0
  109. package/bundle/schemas/action.schema.json +102 -0
  110. package/bundle/schemas/block-definition.schema.json +222 -0
  111. package/bundle/schemas/block-instance.schema.json +139 -0
  112. package/bundle/schemas/composite-pack-manifest.schema.json +160 -0
  113. package/bundle/schemas/connector-definition.schema.json +29 -0
  114. package/bundle/schemas/data-service-definition.schema.json +64 -0
  115. package/bundle/schemas/data-view-definition.schema.json +148 -0
  116. package/bundle/schemas/entity-aggregation-config.schema.json +32 -0
  117. package/bundle/schemas/entity-cadence-config.schema.json +27 -0
  118. package/bundle/schemas/entity-compliance-config.schema.json +31 -0
  119. package/bundle/schemas/entity-cross-plugin-action-config.schema.json +31 -0
  120. package/bundle/schemas/entity-definition.schema.json +126 -0
  121. package/bundle/schemas/entity-document-generator-config.schema.json +29 -0
  122. package/bundle/schemas/entity-rule-definition.schema.json +75 -0
  123. package/bundle/schemas/entity-status-date-sweep-config.schema.json +21 -0
  124. package/bundle/schemas/form.schema.json +281 -0
  125. package/bundle/schemas/menu.schema.json +106 -0
  126. package/bundle/schemas/mobile-nav.schema.json +53 -0
  127. package/bundle/schemas/page-template.schema.json +46 -0
  128. package/bundle/schemas/page.schema.json +292 -0
  129. package/bundle/schemas/plugin-manifest.schema.json +139 -0
  130. package/bundle/schemas/plugin-seed-data.schema.json +24 -0
  131. package/bundle/schemas/print-template-definition.schema.json +90 -0
  132. package/bundle/schemas/provider-definition.schema.json +27 -0
  133. package/bundle/schemas/report-definition.schema.json +96 -0
  134. package/bundle/schemas/rule.schema.json +82 -0
  135. package/bundle/schemas/workflow-definition.schema.json +42 -0
  136. package/bundle/validators/block-engine.mjs +23222 -0
  137. package/bundle/validators/page-engine.mjs +21645 -0
  138. package/erp-cli/authoring-root.mjs +344 -0
  139. package/erp-cli/erp.mjs +4065 -0
  140. package/erp-cli/example-patterns.mjs +94 -0
  141. package/erp-mcp-server/index.mjs +818 -0
  142. package/package.json +27 -0
@@ -0,0 +1,260 @@
1
+ {
2
+ "entity": "entity_status_date_sweep_config",
3
+ "keyFields": [
4
+ "entity_name",
5
+ "date_field",
6
+ "set_field",
7
+ "set_status_to",
8
+ "day_offset"
9
+ ],
10
+ "source": "hcm-assets",
11
+ "rows": [
12
+ {
13
+ "entity_name": "hcm_asset",
14
+ "status_field": "status",
15
+ "when_status_in": "AVAILABLE,ASSIGNED,IN_USE",
16
+ "date_field": "warranty_expiry_date",
17
+ "compare_op": "lte",
18
+ "set_field": "warranty_alert",
19
+ "set_status_to": "true",
20
+ "active": true,
21
+ "seeded_by": "hcm-assets"
22
+ },
23
+ {
24
+ "entity_name": "hcm_asset_allocation",
25
+ "status_field": "status",
26
+ "when_status_in": "ALLOCATED,ACKNOWLEDGED,IN_USE,PENDING_ACKNOWLEDGEMENT",
27
+ "date_field": "expected_return_date",
28
+ "compare_op": "lte",
29
+ "set_field": "return_overdue",
30
+ "set_status_to": "true",
31
+ "active": true,
32
+ "seeded_by": "hcm-assets"
33
+ },
34
+ {
35
+ "entity_name": "hcm_asset_audit",
36
+ "status_field": "status",
37
+ "when_status_in": "DRAFT,PLANNED",
38
+ "date_field": "start_date",
39
+ "compare_op": "lte",
40
+ "set_field": "reminder_sent",
41
+ "set_status_to": "true",
42
+ "active": true,
43
+ "seeded_by": "hcm-assets"
44
+ },
45
+ {
46
+ "entity_name": "hcm_software_license",
47
+ "status_field": "status",
48
+ "when_status_in": "ACTIVE",
49
+ "date_field": "expiry_date",
50
+ "compare_op": "lte",
51
+ "set_status_to": "EXPIRING",
52
+ "active": true,
53
+ "seeded_by": "hcm-assets"
54
+ },
55
+ {
56
+ "entity_name": "hcm_asset_allocation",
57
+ "status_field": "status",
58
+ "when_status_in": "PENDING_ACKNOWLEDGEMENT",
59
+ "date_field": "allocation_date",
60
+ "compare_op": "lte",
61
+ "set_field": "acknowledgement_overdue",
62
+ "set_status_to": "true",
63
+ "active": true,
64
+ "seeded_by": "hcm-assets"
65
+ },
66
+ {
67
+ "entity_name": "hcm_asset_maintenance",
68
+ "status_field": "status",
69
+ "when_status_in": "SCHEDULED,IN_PROGRESS,WAITING_FOR_PARTS",
70
+ "date_field": "scheduled_end",
71
+ "compare_op": "lt",
72
+ "set_field": "maintenance_overdue",
73
+ "set_status_to": "true",
74
+ "active": true,
75
+ "seeded_by": "hcm-assets"
76
+ },
77
+ {
78
+ "entity_name": "hcm_software_license",
79
+ "status_field": "status",
80
+ "when_status_in": "ACTIVE,EXPIRING",
81
+ "date_field": "expiry_date",
82
+ "compare_op": "lte",
83
+ "set_field": "renewal_reminder_sent",
84
+ "set_status_to": "true",
85
+ "active": true,
86
+ "seeded_by": "hcm-assets"
87
+ },
88
+ {
89
+ "entity_name": "hcm_asset_audit",
90
+ "status_field": "status",
91
+ "when_status_in": "OPEN,IN_PROGRESS,PENDING_REVIEW,PLANNED",
92
+ "date_field": "end_date",
93
+ "compare_op": "lt",
94
+ "set_field": "audit_overdue",
95
+ "set_status_to": "true",
96
+ "active": true,
97
+ "seeded_by": "hcm-assets"
98
+ },
99
+ {
100
+ "entity_name": "hcm_asset_return",
101
+ "status_field": "status",
102
+ "when_status_in": "REQUESTED,SCHEDULED",
103
+ "date_field": "scheduled_date",
104
+ "compare_op": "lt",
105
+ "set_field": "return_process_overdue",
106
+ "set_status_to": "true",
107
+ "active": true,
108
+ "seeded_by": "hcm-assets"
109
+ },
110
+ {
111
+ "entity_name": "hcm_software_license_assignment",
112
+ "status_field": "status",
113
+ "when_status_in": "ASSIGNED,ACTIVE",
114
+ "date_field": "end_date",
115
+ "compare_op": "lt",
116
+ "set_field": "assignment_expired",
117
+ "set_status_to": "true",
118
+ "active": true,
119
+ "seeded_by": "hcm-assets"
120
+ },
121
+ {
122
+ "entity_name": "hcm_software_license_renewal",
123
+ "status_field": "status",
124
+ "when_status_in": "PENDING",
125
+ "date_field": "renewal_date",
126
+ "compare_op": "lte",
127
+ "set_field": "renewal_due",
128
+ "set_status_to": "true",
129
+ "active": true,
130
+ "seeded_by": "hcm-assets"
131
+ },
132
+ {
133
+ "entity_name": "hcm_asset_audit_item",
134
+ "status_field": "status",
135
+ "when_status_in": "PENDING",
136
+ "date_field": "verification_due_date",
137
+ "compare_op": "lt",
138
+ "set_field": "verification_reminder_sent",
139
+ "set_status_to": "true",
140
+ "active": true,
141
+ "seeded_by": "hcm-assets"
142
+ },
143
+ {
144
+ "entity_name": "hcm_asset_return_exception",
145
+ "status_field": "status",
146
+ "when_status_in": "OPEN,IN_PROGRESS",
147
+ "date_field": "resolution_due_date",
148
+ "compare_op": "lt",
149
+ "set_field": "resolution_reminder_sent",
150
+ "set_status_to": "true",
151
+ "active": true,
152
+ "seeded_by": "hcm-assets"
153
+ },
154
+ {
155
+ "entity_name": "hcm_asset_maintenance",
156
+ "status_field": "status",
157
+ "when_status_in": "APPROVED,SCHEDULED,WAITING_FOR_PARTS",
158
+ "date_field": "vendor_response_due_date",
159
+ "compare_op": "lt",
160
+ "set_field": "vendor_reminder_sent",
161
+ "set_status_to": "true",
162
+ "active": true,
163
+ "seeded_by": "hcm-assets"
164
+ },
165
+ {
166
+ "entity_name": "hcm_asset_maintenance",
167
+ "status_field": "status",
168
+ "when_status_in": "IN_PROGRESS,WAITING_FOR_PARTS",
169
+ "date_field": "inspection_due_date",
170
+ "compare_op": "lt",
171
+ "set_field": "inspection_reminder_sent",
172
+ "set_status_to": "true",
173
+ "active": true,
174
+ "seeded_by": "hcm-assets"
175
+ },
176
+ {
177
+ "entity_name": "hcm_asset_maintenance",
178
+ "status_field": "status",
179
+ "when_status_in": "REQUESTED,PENDING_APPROVAL,APPROVED,SCHEDULED,IN_PROGRESS,WAITING_FOR_PARTS",
180
+ "date_field": "sla_due_date",
181
+ "compare_op": "lt",
182
+ "set_field": "sla_breach_alert",
183
+ "set_status_to": "true",
184
+ "active": true,
185
+ "seeded_by": "hcm-assets"
186
+ },
187
+ {
188
+ "entity_name": "hcm_asset",
189
+ "status_field": "status",
190
+ "when_status_in": "AVAILABLE,ASSIGNED,IN_USE",
191
+ "date_field": "warranty_expiry_date",
192
+ "compare_op": "lte",
193
+ "day_offset": 30,
194
+ "set_field": "warranty_alert_30d",
195
+ "set_status_to": "true",
196
+ "active": true,
197
+ "seeded_by": "hcm-assets"
198
+ },
199
+ {
200
+ "entity_name": "hcm_asset",
201
+ "status_field": "status",
202
+ "when_status_in": "AVAILABLE,ASSIGNED,IN_USE",
203
+ "date_field": "warranty_expiry_date",
204
+ "compare_op": "lte",
205
+ "day_offset": 14,
206
+ "set_field": "warranty_alert_14d",
207
+ "set_status_to": "true",
208
+ "active": true,
209
+ "seeded_by": "hcm-assets"
210
+ },
211
+ {
212
+ "entity_name": "hcm_asset",
213
+ "status_field": "status",
214
+ "when_status_in": "AVAILABLE,ASSIGNED,IN_USE",
215
+ "date_field": "warranty_expiry_date",
216
+ "compare_op": "lte",
217
+ "day_offset": 7,
218
+ "set_field": "warranty_alert_7d",
219
+ "set_status_to": "true",
220
+ "active": true,
221
+ "seeded_by": "hcm-assets"
222
+ },
223
+ {
224
+ "entity_name": "hcm_software_license",
225
+ "status_field": "status",
226
+ "when_status_in": "ACTIVE,EXPIRING",
227
+ "date_field": "expiry_date",
228
+ "compare_op": "lte",
229
+ "day_offset": 30,
230
+ "set_field": "renewal_alert_30d",
231
+ "set_status_to": "true",
232
+ "active": true,
233
+ "seeded_by": "hcm-assets"
234
+ },
235
+ {
236
+ "entity_name": "hcm_software_license",
237
+ "status_field": "status",
238
+ "when_status_in": "ACTIVE,EXPIRING",
239
+ "date_field": "expiry_date",
240
+ "compare_op": "lte",
241
+ "day_offset": 14,
242
+ "set_field": "renewal_alert_14d",
243
+ "set_status_to": "true",
244
+ "active": true,
245
+ "seeded_by": "hcm-assets"
246
+ },
247
+ {
248
+ "entity_name": "hcm_asset_audit",
249
+ "status_field": "status",
250
+ "when_status_in": "DRAFT,PLANNED",
251
+ "date_field": "start_date",
252
+ "compare_op": "lte",
253
+ "day_offset": 7,
254
+ "set_field": "audit_reminder_7d",
255
+ "set_status_to": "true",
256
+ "active": true,
257
+ "seeded_by": "hcm-assets"
258
+ }
259
+ ]
260
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "entity": {
3
+ "name": "hcm_salary_planning_entry",
4
+ "tableName": "hcm_salary_planning_entry",
5
+ "label": "{\"en\":\"Salary Planning Entry\"}",
6
+ "description": "Batch 1 of hcm-compensation (see low-code-docs 'HCM – Compensation – Salary Planning' spec, DB §39 hcm_salary_planning_entry). One employee's planning row within an active Compensation Cycle (cycle_id FK to hcm_compensation_cycle, this batch's own entity — the spec's own Design Principle #3 'Salary Planning must always operate against an active Compensation Cycle'). Salary range min/max are captured on the row itself (looked up from hcm-organization's real job_classification_definition.min_salary/max_salary via the new hcm-compensation-job-classification-search Data View/lookup rather than duplicated as a new master — disclosed reuse decision, see ai/domains/hcm-compensation.md) because a planning workspace must freeze the range actually used for that decision, matching the spec's own DB schema (§39 stores salary_range_min/mid/max as plain row columns, not a live join). new_salary/new_compa_ratio are SERVER-COMPUTED (spec §14-15 'must recalculate automatically') via a real declarative Rule Engine BEFORE_CREATE/BEFORE_UPDATE calculation using the new percentAdd/ratio SET_VALUE expression ops (built this batch — see EntityActionEngineService.applyExpression), never client-side math. v1 scope trim, disclosed: Scenario/Budget-pool child tables (§40-42) deferred; the spec's own dual PERCENTAGE/AMOUNT input mode (§16) is v1-simplified to percentage-only entry.",
7
+ "category": "hcm-compensation",
8
+ "icon": "trending_up",
9
+ "color": "#0369A1",
10
+ "cacheable": false,
11
+ "fullTextSearch": false,
12
+ "softDeleteEnabled": true,
13
+ "pkStrategy": "identity"
14
+ },
15
+ "fields": [
16
+ { "fieldName": "cycle_id", "label": "\"Compensation Cycle\"", "dataType": "long", "nullable": false, "required": true, "isIndexed": true, "displayOrder": 1,
17
+ "description": "FK to hcm_compensation_cycle.id. core.lookup, hcm-compensation-cycle-search." },
18
+ { "fieldName": "employee_id", "label": "\"Employee\"", "dataType": "long", "nullable": false, "required": true, "isIndexed": true, "displayOrder": 2,
19
+ "flags": "{\"reference\":{\"entityType\":\"Employee\"}}",
20
+ "description": "FK to hcm_employee.id (Employee). core.lookup, hcm-employee-employee-search. flags.reference marks this for automatic employee_id_label resolution on grid/detail reads (ReferenceResolutionService, see ai/patterns/reference-resolution.md)." },
21
+ { "fieldName": "current_salary", "label": "\"Current Salary\"", "dataType": "decimal", "nullable": false, "required": true, "typeParams": "{\"precision\": 18, \"scale\": 2}", "displayOrder": 3 },
22
+ { "fieldName": "currency", "label": "\"Currency\"", "dataType": "text", "nullable": false, "required": true, "defaultValue": "INR", "displayOrder": 4 },
23
+ { "fieldName": "salary_range_min", "label": "\"Salary Range Min\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 18, \"scale\": 2}", "displayOrder": 5 },
24
+ { "fieldName": "salary_range_mid", "label": "\"Salary Range Mid\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 18, \"scale\": 2}", "displayOrder": 6 },
25
+ { "fieldName": "salary_range_max", "label": "\"Salary Range Max\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 18, \"scale\": 2}", "displayOrder": 7 },
26
+ { "fieldName": "manager_increase_percent", "label": "\"Manager Increase %\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 8, \"scale\": 4}", "displayOrder": 8 },
27
+ { "fieldName": "final_increase_percent", "label": "\"Final Increase %\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 8, \"scale\": 4}", "displayOrder": 9 },
28
+ { "fieldName": "new_salary", "label": "\"New Salary\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 18, \"scale\": 2}", "displayOrder": 10,
29
+ "description": "Server-computed: current_salary * (1 + final_increase_percent/100). Never client-set." },
30
+ { "fieldName": "new_compa_ratio", "label": "\"New Compa-Ratio\"", "dataType": "decimal", "nullable": true, "typeParams": "{\"precision\": 8, \"scale\": 4}", "displayOrder": 11,
31
+ "description": "Server-computed: new_salary / salary_range_mid * 100. Never client-set." },
32
+ { "fieldName": "increase_type", "label": "\"Increase Type\"", "dataType": "enum", "nullable": false, "required": true, "defaultValue": "MERIT",
33
+ "typeParams": "{\"enumValues\": [\"MERIT\", \"PROMOTION\", \"MARKET_ADJUSTMENT\", \"EQUITY_ADJUSTMENT\", \"COST_OF_LIVING\", \"RETENTION\", \"SKILL_ADJUSTMENT\", \"SALARY_CORRECTION\", \"OTHER\"]}",
34
+ "displayOrder": 12 },
35
+ { "fieldName": "effective_date", "label": "\"Effective Date\"", "dataType": "date", "nullable": true, "displayOrder": 13 },
36
+ { "fieldName": "manager_comment", "label": "\"Manager Comment\"", "dataType": "text", "nullable": true, "displayOrder": 14 },
37
+ { "fieldName": "status", "label": "\"Status\"", "dataType": "enum", "nullable": false, "required": true, "defaultValue": "DRAFT",
38
+ "typeParams": "{\"enumValues\": [\"DRAFT\", \"SUBMITTED\", \"APPROVED\", \"FINALIZED\", \"REJECTED\"]}",
39
+ "isIndexed": true, "displayOrder": 15 }
40
+ ]
41
+ }
@@ -0,0 +1 @@
1
+ {"name":"hcm-compensation-salary-planning","description":"Batch 1 of hcm-compensation — Salary Planning list+detail screen over the real Entity-Engine hcm_salary_planning_entry master, server-computed new_salary/new_compa_ratio (percentAdd/ratio Rule Engine ops), real 2-stage engine-workflow approval + single-stage finalization. See ai/domains/hcm-compensation.md.","definition":{"contractVersion":1,"id":"hcm-compensation.salary-planning","version":"0.1.0","publisher":"hcm-compensation","title":"hcm-compensation.salary-planning.title","usesAppShell":true,"route":{"pattern":"/hcm-compensation/salary-planning","params":[]},"designer":{"displayNameKey":"hcm-compensation.salary-planning.displayName","descriptionKey":"hcm-compensation.salary-planning.description","icon":"trending_up","category":"list","preview":{"kind":"page"}},"rows":[{"id":"row-1","columns":[{"id":"col-1","items":[{"id":"item-0","kind":"block","block":{"contractVersion":1,"instanceId":"loader-1","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"},"hidden":{"source":"static","value":true}},"style":{},"events":{"mounted":{"source":"action-chain","actions":[{"id":"a0","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/data-services/hcm-compensation-planning-summary/execute","httpMethod":"POST","params":{}},"output":"summary"},{"id":"a1","name":"a1","order":1,"type":"setValue","config":{"field":"page.kpiTotal","value":"${summary.results.total.value}"}},{"id":"a2","name":"a2","order":2,"type":"setValue","config":{"field":"page.kpiDraft","value":"${summary.results.draft.value}"}},{"id":"a3","name":"a3","order":3,"type":"setValue","config":{"field":"page.kpiApproved","value":"${summary.results.approved.value}"}},{"id":"a4","name":"a4","order":4,"type":"setValue","config":{"field":"page.kpiFinalized","value":"${summary.results.finalized.value}"}},{"id":"a5","name":"a5","order":5,"type":"setValue","config":{"field":"page.gridRefreshTick","value":0}},{"id":"a6","name":"a6","order":6,"type":"setValue","config":{"field":"page.formDialogOpen","value":false}},{"id":"a7","name":"a7","order":7,"type":"setValue","config":{"field":"page.detailDialogOpen","value":false}}]}}}},{"id":"item-1","kind":"block","block":{"contractVersion":1,"instanceId":"header-outer","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","justifyContent":"space-between","alignItems":"center","marginBottom":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"header-text","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{},"children":{"children":[{"contractVersion":1,"instanceId":"header-title","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.title"}},"style":{"fontSize":"1.4rem","fontWeight":700}},{"contractVersion":1,"instanceId":"header-subtitle","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.subtitle"}},"style":{"fontSize":"0.85rem","opacity":0.7}}]}},{"contractVersion":1,"instanceId":"header-actions","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","gap":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"new-btn","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.newBtn"},"variant":{"source":"static","value":"contained"}},"style":{},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a0","name":"a0","order":0,"type":"setValue","config":{"field":"page.formCycle_id","value":null}},{"id":"a1","name":"a1","order":1,"type":"setValue","config":{"field":"page.formEmployee_id","value":null}},{"id":"a2","name":"a2","order":2,"type":"setValue","config":{"field":"page.formCurrent_salary","value":null}},{"id":"a3","name":"a3","order":3,"type":"setValue","config":{"field":"page.formCurrency","value":"INR"}},{"id":"a4","name":"a4","order":4,"type":"setValue","config":{"field":"page.formSalary_range_min","value":null}},{"id":"a5","name":"a5","order":5,"type":"setValue","config":{"field":"page.formSalary_range_mid","value":null}},{"id":"a6","name":"a6","order":6,"type":"setValue","config":{"field":"page.formSalary_range_max","value":null}},{"id":"a7","name":"a7","order":7,"type":"setValue","config":{"field":"page.formManager_increase_percent","value":null}},{"id":"a8","name":"a8","order":8,"type":"setValue","config":{"field":"page.formFinal_increase_percent","value":null}},{"id":"a9","name":"a9","order":9,"type":"setValue","config":{"field":"page.formIncrease_type","value":"MERIT"}},{"id":"a10","name":"a10","order":10,"type":"setValue","config":{"field":"page.formEffective_date","value":null}},{"id":"a11","name":"a11","order":11,"type":"setValue","config":{"field":"page.formDialogOpen","value":true}}]}}}]}}]}}},{"id":"item-2","kind":"block","block":{"contractVersion":1,"instanceId":"kpi-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","gap":"0.75rem","flexWrap":"wrap","padding":"1rem 0.5rem","borderRadius":"1.25rem"},"children":{"children":[{"contractVersion":1,"instanceId":"kpi-total","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiTotal"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.total"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"primary"},"icon":{"source":"static","value":"trending_up"}},"style":{}},{"contractVersion":1,"instanceId":"kpi-draft","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiDraft"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.draft"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"secondary"},"icon":{"source":"static","value":"edit_note"}},"style":{}},{"contractVersion":1,"instanceId":"kpi-approved","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiApproved"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.approved"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"success"},"icon":{"source":"static","value":"check_circle"}},"style":{}},{"contractVersion":1,"instanceId":"kpi-finalized","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiFinalized"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.finalized"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"success"},"icon":{"source":"static","value":"lock"}},"style":{}}]}}},{"id":"item-3","kind":"block","block":{"contractVersion":1,"instanceId":"filter-bar","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","gap":"0.5rem","flexWrap":"wrap","alignItems":"center","margin":"0.75rem 0","padding":"1rem","borderRadius":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"filter-search-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"flex":"1 1 220px"},"children":{"children":[{"contractVersion":1,"instanceId":"filter-search","blockType":"core.text-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"gridExternalFilter.search"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a12","name":"a0","order":0,"type":"setValue","config":{"field":"page.gridExternalFilter.search","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"filter-status-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"minWidth":"180px"},"children":{"children":[{"contractVersion":1,"instanceId":"filter-status","blockType":"core.select","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"gridExternalFilter.status"}},"options":{"source":"static","value":[{"value":"DRAFT","labelKey":"hcm-compensation.salary-planning.status.DRAFT"},{"value":"SUBMITTED","labelKey":"hcm-compensation.salary-planning.status.SUBMITTED"},{"value":"APPROVED","labelKey":"hcm-compensation.salary-planning.status.APPROVED"},{"value":"FINALIZED","labelKey":"hcm-compensation.salary-planning.status.FINALIZED"},{"value":"REJECTED","labelKey":"hcm-compensation.salary-planning.status.REJECTED"}]}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a13","name":"a0","order":0,"type":"setValue","config":{"field":"page.gridExternalFilter.status","value":"${event.new}"}}]}}}]}}]}}},{"id":"item-4","kind":"block","block":{"contractVersion":1,"instanceId":"salary-planning-grid","blockType":"core.grid","blockVersion":"1.0.0","properties":{"columns":{"source":"static","value":[{"name":"employee_id_label","type":"string","headerKey":"hcm-compensation.salary-planning.column.employee_id"},{"name":"current_salary","type":"number","headerKey":"hcm-compensation.salary-planning.column.current_salary","renderAs":"currency","currencyCode":"INR"},{"name":"final_increase_percent","type":"number","headerKey":"hcm-compensation.salary-planning.column.final_increase_percent"},{"name":"new_salary","type":"number","headerKey":"hcm-compensation.salary-planning.column.new_salary","renderAs":"currency","currencyCode":"INR"},{"name":"new_compa_ratio","type":"number","headerKey":"hcm-compensation.salary-planning.column.new_compa_ratio"},{"name":"status","type":"string","headerKey":"hcm-compensation.salary-planning.column.status","renderAs":"chip","colorMap":{"DRAFT":"default","SUBMITTED":"info","APPROVED":"success","FINALIZED":"success","REJECTED":"error"}},{"name":"actions","type":"string","headerKey":"hcm-compensation.salary-planning.column.actions","renderAs":"actions","actions":[{"key":"view","icon":"visibility","labelKey":"hcm-compensation.salary-planning.action.view"}]}]},"pageSize":{"source":"static","value":25},"externalFilter":{"source":"binding","binding":{"scope":"page","key":"gridExternalFilter"}},"refreshTrigger":{"source":"binding","binding":{"scope":"page","key":"gridRefreshTick"}}},"style":{},"events":{"rowClicked":{"source":"action-chain","actions":[{"id":"a14","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${event.id}","httpMethod":"GET","params":{}},"output":"detail"},{"id":"a15","name":"a1","order":1,"type":"setValue","config":{"field":"page.detailRecord","value":"${detail}"}},{"id":"a16","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailDialogOpen","value":true}}]},"rowAction":{"source":"action-chain","actions":[{"id":"a17","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${event.id}","httpMethod":"GET","params":{}},"output":"detail"},{"id":"a18","name":"a1","order":1,"type":"setValue","config":{"field":"page.detailRecord","value":"${detail}"}},{"id":"a19","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailDialogOpen","value":true}}]}}}},{"id":"item-5","kind":"block","block":{"contractVersion":1,"instanceId":"create-dialog","blockType":"core.dialog","blockVersion":"1.0.0","properties":{"open":{"source":"binding","binding":{"scope":"page","key":"formDialogOpen"}},"titleKey":{"source":"static","value":"hcm-compensation.salary-planning.form.title"},"overlayKind":{"source":"static","value":"modal"},"dismissible":{"source":"static","value":true}},"style":{},"children":{"content":[{"contractVersion":1,"instanceId":"create-content","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.6rem","minWidth":"480px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-basic","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","flexDirection":"column","padding":"1rem","gap":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-basic-hdr","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","alignItems":"center","gap":"0.5rem","marginBottom":"0.6rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-basic-hdr-icon","blockType":"core.icon","blockVersion":"1.0.0","properties":{"icon":{"source":"static","value":"info"}},"style":{}},{"contractVersion":1,"instanceId":"cf-basic-hdr-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.create.basicHeading"}},"style":{"fontWeight":700,"fontSize":"1rem"}}]}},{"contractVersion":1,"instanceId":"cf-row0","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-cycle_id","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-cycle_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.cycle_id"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-cycle_id-input","blockType":"core.lookup","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formCycle_id"}},"recordType":{"source":"static","value":"CompensationCycle"},"optionsSourceKey":{"source":"static","value":"hcm-compensation-cycle-search"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a20","name":"a0","order":0,"type":"setValue","config":{"field":"page.formCycle_id","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"cf-employee_id","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-employee_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.employee_id"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-employee_id-input","blockType":"core.lookup","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formEmployee_id"}},"recordType":{"source":"static","value":"Employee"},"optionsSourceKey":{"source":"static","value":"hcm-employee-employee-search"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a21","name":"a0","order":0,"type":"setValue","config":{"field":"page.formEmployee_id","value":"${event.new}"}}]}}}]}}]}},{"contractVersion":1,"instanceId":"cf-row1","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-current_salary","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-current_salary-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.current_salary"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-current_salary-input","blockType":"core.currency-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formCurrent_salary"}},"currencyCode":{"source":"static","value":"INR"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a22","name":"a0","order":0,"type":"setValue","config":{"field":"page.formCurrent_salary","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"cf-currency","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-currency-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.currency"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-currency-input","blockType":"core.text-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formCurrency"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a23","name":"a0","order":0,"type":"setValue","config":{"field":"page.formCurrency","value":"${event.new}"}}]}}}]}}]}},{"contractVersion":1,"instanceId":"cf-row2","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-salary_range_min","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-salary_range_min-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.salary_range_min"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-salary_range_min-input","blockType":"core.currency-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formSalary_range_min"}},"currencyCode":{"source":"static","value":"INR"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a24","name":"a0","order":0,"type":"setValue","config":{"field":"page.formSalary_range_min","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"cf-salary_range_mid","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-salary_range_mid-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.salary_range_mid"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-salary_range_mid-input","blockType":"core.currency-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formSalary_range_mid"}},"currencyCode":{"source":"static","value":"INR"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a25","name":"a0","order":0,"type":"setValue","config":{"field":"page.formSalary_range_mid","value":"${event.new}"}}]}}}]}}]}},{"contractVersion":1,"instanceId":"cf-row3","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-salary_range_max","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-salary_range_max-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.salary_range_max"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-salary_range_max-input","blockType":"core.currency-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formSalary_range_max"}},"currencyCode":{"source":"static","value":"INR"}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a26","name":"a0","order":0,"type":"setValue","config":{"field":"page.formSalary_range_max","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"cf-manager_increase_percent","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-manager_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.manager_increase_percent"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-manager_increase_percent-input","blockType":"core.number-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formManager_increase_percent"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a27","name":"a0","order":0,"type":"setValue","config":{"field":"page.formManager_increase_percent","value":"${event.new}"}}]}}}]}}]}},{"contractVersion":1,"instanceId":"cf-row4","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-final_increase_percent","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-final_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.final_increase_percent"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-final_increase_percent-input","blockType":"core.number-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formFinal_increase_percent"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a28","name":"a0","order":0,"type":"setValue","config":{"field":"page.formFinal_increase_percent","value":"${event.new}"}}]}}}]}},{"contractVersion":1,"instanceId":"cf-increase_type","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-increase_type-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.increase_type"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-increase_type-input","blockType":"core.select","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formIncrease_type"}},"options":{"source":"static","value":[{"value":"MERIT","labelKey":"hcm-compensation.salary-planning.increase_type.MERIT"},{"value":"PROMOTION","labelKey":"hcm-compensation.salary-planning.increase_type.PROMOTION"},{"value":"MARKET_ADJUSTMENT","labelKey":"hcm-compensation.salary-planning.increase_type.MARKET_ADJUSTMENT"},{"value":"EQUITY_ADJUSTMENT","labelKey":"hcm-compensation.salary-planning.increase_type.EQUITY_ADJUSTMENT"},{"value":"COST_OF_LIVING","labelKey":"hcm-compensation.salary-planning.increase_type.COST_OF_LIVING"},{"value":"RETENTION","labelKey":"hcm-compensation.salary-planning.increase_type.RETENTION"},{"value":"SKILL_ADJUSTMENT","labelKey":"hcm-compensation.salary-planning.increase_type.SKILL_ADJUSTMENT"},{"value":"SALARY_CORRECTION","labelKey":"hcm-compensation.salary-planning.increase_type.SALARY_CORRECTION"},{"value":"OTHER","labelKey":"hcm-compensation.salary-planning.increase_type.OTHER"}]}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a29","name":"a0","order":0,"type":"setValue","config":{"field":"page.formIncrease_type","value":"${event.new}"}}]}}}]}}]}},{"contractVersion":1,"instanceId":"cf-row5","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-effective_date","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.15rem","flex":"1 1 220px","minWidth":"200px"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-effective_date-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.form.effective_date"}},"style":{"fontSize":"0.8rem","fontWeight":600,"marginBottom":"0.2rem"}},{"contractVersion":1,"instanceId":"cf-effective_date-input","blockType":"core.date-picker","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"formEffective_date"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a30","name":"a0","order":0,"type":"setValue","config":{"field":"page.formEffective_date","value":"${event.new}"}}]}}}]}}]}}]}},{"contractVersion":1,"instanceId":"cf-footer","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","justifyContent":"flex-end","gap":"0.5rem","marginTop":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"cf-cancel","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.form.cancelBtn"},"variant":{"source":"static","value":"outlined"}},"style":{},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a31","name":"a0","order":0,"type":"setValue","config":{"field":"page.formDialogOpen","value":false}}]}}},{"contractVersion":1,"instanceId":"cf-save","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.form.saveBtn"},"variant":{"source":"static","value":"contained"}},"style":{},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a32","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records","httpMethod":"POST","params":{"cycle_id":"${page.formCycle_id}","employee_id":"${page.formEmployee_id}","current_salary":"${page.formCurrent_salary}","currency":"${page.formCurrency}","salary_range_min":"${page.formSalary_range_min}","salary_range_mid":"${page.formSalary_range_mid}","salary_range_max":"${page.formSalary_range_max}","manager_increase_percent":"${page.formManager_increase_percent}","final_increase_percent":"${page.formFinal_increase_percent}","increase_type":"${page.formIncrease_type}","effective_date":"${page.formEffective_date}"}},"output":"createResult"},{"id":"a33","name":"a1","order":1,"type":"setValue","config":{"field":"page.formDialogOpen","value":false}},{"id":"a34","name":"a2","order":2,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}},{"id":"a35","name":"a3","order":3,"type":"showToast","config":{"message":"hcm-compensation.salary-planning.form.savedToast"}}]}}}]}}]}}]}}},{"id":"item-6","kind":"block","block":{"contractVersion":1,"instanceId":"detail-dialog","blockType":"core.dialog","blockVersion":"1.0.0","properties":{"open":{"source":"binding","binding":{"scope":"page","key":"detailDialogOpen"}},"titleKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.title"},"overlayKind":{"source":"static","value":"modal"},"dismissible":{"source":"static","value":true}},"style":{},"children":{"content":[{"contractVersion":1,"instanceId":"detail-content","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.75rem","minWidth":"560px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","flexDirection":"column","padding":"1rem","gap":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview-hdr","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","alignItems":"center","gap":"0.5rem","marginBottom":"0.6rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview-hdr-icon","blockType":"core.icon","blockVersion":"1.0.0","properties":{"icon":{"source":"static","value":"info"}},"style":{}},{"contractVersion":1,"instanceId":"do-overview-hdr-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.overviewHeading"}},"style":{"fontWeight":700,"fontSize":"1rem"}}]}},{"contractVersion":1,"instanceId":"do-row0","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-employee_id-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-employee_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.employee_id"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-employee_id-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.employee_id_label"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-cycle_id-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-cycle_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.cycle_id"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-cycle_id-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.cycle_id"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-status-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-status-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.status"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-status-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.status"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row1","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-current_salary-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-current_salary-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.current_salary"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-current_salary-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.current_salary"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-salary_range_min-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_min-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_min"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_min-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_min"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-salary_range_mid-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_mid-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_mid"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_mid-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_mid"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row2","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_max-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_max-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_max"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_max-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_max"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-manager_increase_percent-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-manager_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.manager_increase_percent"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-manager_increase_percent-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.manager_increase_percent"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-final_increase_percent-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-final_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.final_increase_percent"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-final_increase_percent-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.final_increase_percent"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row3","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_salary-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_salary-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.new_salary"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-new_salary-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.new_salary"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-new_compa_ratio-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_compa_ratio-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.new_compa_ratio"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-new_compa_ratio-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.new_compa_ratio"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-increase_type-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-increase_type-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.increase_type"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-increase_type-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.increase_type"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row4","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-effective_date-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-effective_date-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.effective_date"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-effective_date-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.effective_date"}}},"style":{}}]}}]}}]}},{"contractVersion":1,"instanceId":"do-footer","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","justifyContent":"flex-end","gap":"0.5rem","marginTop":"0.75rem","flexWrap":"wrap"},"children":{"children":[{"contractVersion":1,"instanceId":"do-submit","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.submitBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a36","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"SUBMITTED"}},"output":"updateResult"},{"id":"a37","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a38","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a39","name":"a3","order":3,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-approve","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.approveBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a40","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances","httpMethod":"POST","params":{"workflowName":"hcm-compensation.salary-planning-approval","correlationId":"salary-planning-approval-${page.detailRecord.id}","context":{"id":"${page.detailRecord.id}"}}},"output":"startResult"},{"id":"a41","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList1"},{"id":"a42","name":"a2","order":2,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList1[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decide1"},{"id":"a43","name":"a3","order":3,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList2"},{"id":"a44","name":"a4","order":4,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList2[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decide2"},{"id":"a45","name":"a5","order":5,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"APPROVED"}},"output":"updateResult"},{"id":"a46","name":"a6","order":6,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a47","name":"a7","order":7,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a48","name":"a8","order":8,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-finalize","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.finalizeBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a49","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances","httpMethod":"POST","params":{"workflowName":"hcm-compensation.salary-planning-finalization","correlationId":"salary-planning-finalization-${page.detailRecord.id}","context":{"id":"${page.detailRecord.id}"}}},"output":"startResult"},{"id":"a50","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList"},{"id":"a51","name":"a2","order":2,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decideResult"},{"id":"a52","name":"a3","order":3,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"FINALIZED"}},"output":"updateResult"},{"id":"a53","name":"a4","order":4,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a54","name":"a5","order":5,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a55","name":"a6","order":6,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-close","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.closeBtn"},"variant":{"source":"static","value":"outlined"}},"style":{},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a56","name":"a0","order":0,"type":"setValue","config":{"field":"page.detailDialogOpen","value":false}}]}}}]}}]}}]}}}]}]}],"variants":[{"id":"salary-planning-mobile","rule":{"deviceClass":"mobile"},"rows":[{"id":"row-1","columns":[{"id":"col-1","items":[{"id":"item-0","kind":"block","block":{"contractVersion":1,"instanceId":"loader-1","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"},"hidden":{"source":"static","value":true}},"style":{},"events":{"mounted":{"source":"action-chain","actions":[{"id":"a0","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/data-services/hcm-compensation-planning-summary/execute","httpMethod":"POST","params":{}},"output":"summary"},{"id":"a1","name":"a1","order":1,"type":"setValue","config":{"field":"page.kpiTotal","value":"${summary.results.total.value}"}},{"id":"a2","name":"a2","order":2,"type":"setValue","config":{"field":"page.kpiDraft","value":"${summary.results.draft.value}"}},{"id":"a3","name":"a3","order":3,"type":"setValue","config":{"field":"page.kpiApproved","value":"${summary.results.approved.value}"}},{"id":"a4","name":"a4","order":4,"type":"setValue","config":{"field":"page.kpiFinalized","value":"${summary.results.finalized.value}"}},{"id":"a5","name":"a5","order":5,"type":"setValue","config":{"field":"page.gridRefreshTick","value":0}},{"id":"a6","name":"a6","order":6,"type":"setValue","config":{"field":"page.formDialogOpen","value":false}},{"id":"a7","name":"a7","order":7,"type":"setValue","config":{"field":"page.detailDialogOpen","value":false}}]}}}},{"id":"item-1","kind":"block","block":{"contractVersion":1,"instanceId":"header-outer-m","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","justifyContent":"space-between","alignItems":"center","marginBottom":"0.4rem"},"children":{"children":[{"contractVersion":1,"instanceId":"header-title-m","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.title"}},"style":{"fontSize":"1.15rem","fontWeight":700}}]}}},{"id":"item-2","kind":"block","block":{"contractVersion":1,"instanceId":"kpi-wrap-m","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","gap":"0.5rem","flexWrap":"wrap","padding":"1rem 0.5rem","borderRadius":"1.25rem"},"children":{"children":[{"contractVersion":1,"instanceId":"kpi-m-total","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiTotal"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.total"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"primary"},"icon":{"source":"static","value":"trending_up"}},"style":{}},{"contractVersion":1,"instanceId":"kpi-m-draft","blockType":"core.kpi-card","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"kpiDraft"}},"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.kpi.draft"},"format":{"source":"static","value":"number"},"colorToken":{"source":"static","value":"secondary"},"icon":{"source":"static","value":"edit_note"}},"style":{}}]}}},{"id":"item-3","kind":"block","block":{"contractVersion":1,"instanceId":"filter-bar-m","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"margin":"0.5rem 0","padding":"1rem","borderRadius":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"filter-search-m","blockType":"core.text-input","blockVersion":"1.0.0","properties":{"value":{"source":"binding","binding":{"scope":"page","key":"gridExternalFilter.search"}}},"style":{},"events":{"committed":{"source":"action-chain","actions":[{"id":"a57","name":"a0","order":0,"type":"setValue","config":{"field":"page.gridExternalFilter.search","value":"${event.new}"}}]}}}]}}},{"id":"item-4","kind":"block","block":{"contractVersion":1,"instanceId":"salary-planning-grid-m","blockType":"core.grid","blockVersion":"1.0.0","properties":{"columns":{"source":"static","value":[{"name":"employee_id_label","type":"string","headerKey":"hcm-compensation.salary-planning.column.employee_id"},{"name":"current_salary","type":"number","headerKey":"hcm-compensation.salary-planning.column.current_salary","renderAs":"currency"},{"name":"final_increase_percent","type":"number","headerKey":"hcm-compensation.salary-planning.column.final_increase_percent"},{"name":"status","type":"string","headerKey":"hcm-compensation.salary-planning.column.status","renderAs":"chip","colorMap":{"DRAFT":"default","SUBMITTED":"info","APPROVED":"success","FINALIZED":"success","REJECTED":"error"}},{"name":"actions","type":"string","headerKey":"hcm-compensation.salary-planning.column.actions","renderAs":"actions","actions":[{"key":"view","icon":"visibility","labelKey":"hcm-compensation.salary-planning.action.view"}]}]},"pageSize":{"source":"static","value":20},"externalFilter":{"source":"binding","binding":{"scope":"page","key":"gridExternalFilter"}},"refreshTrigger":{"source":"binding","binding":{"scope":"page","key":"gridRefreshTick"}}},"style":{},"events":{"rowClicked":{"source":"action-chain","actions":[{"id":"a58","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${event.id}","httpMethod":"GET","params":{}},"output":"detail"},{"id":"a59","name":"a1","order":1,"type":"setValue","config":{"field":"page.detailRecord","value":"${detail}"}},{"id":"a60","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailDialogOpen","value":true}}]},"rowAction":{"source":"action-chain","actions":[{"id":"a61","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${event.id}","httpMethod":"GET","params":{}},"output":"detail"},{"id":"a62","name":"a1","order":1,"type":"setValue","config":{"field":"page.detailRecord","value":"${detail}"}},{"id":"a63","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailDialogOpen","value":true}}]}}}},{"id":"item-5","kind":"block","block":{"contractVersion":1,"instanceId":"detail-dialog","blockType":"core.dialog","blockVersion":"1.0.0","properties":{"open":{"source":"binding","binding":{"scope":"page","key":"detailDialogOpen"}},"titleKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.title"},"overlayKind":{"source":"static","value":"modal"},"dismissible":{"source":"static","value":true}},"style":{},"children":{"content":[{"contractVersion":1,"instanceId":"detail-content","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.75rem","minWidth":"560px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"card"}},"style":{"display":"flex","flexDirection":"column","padding":"1rem","gap":"0.5rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview-hdr","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","alignItems":"center","gap":"0.5rem","marginBottom":"0.6rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-overview-hdr-icon","blockType":"core.icon","blockVersion":"1.0.0","properties":{"icon":{"source":"static","value":"info"}},"style":{}},{"contractVersion":1,"instanceId":"do-overview-hdr-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.overviewHeading"}},"style":{"fontWeight":700,"fontSize":"1rem"}}]}},{"contractVersion":1,"instanceId":"do-row0","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-employee_id-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-employee_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.employee_id"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-employee_id-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.employee_id_label"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-cycle_id-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-cycle_id-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.cycle_id"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-cycle_id-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.cycle_id"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-status-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-status-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.status"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-status-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.status"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row1","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-current_salary-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-current_salary-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.current_salary"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-current_salary-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.current_salary"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-salary_range_min-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_min-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_min"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_min-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_min"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-salary_range_mid-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_mid-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_mid"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_mid-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_mid"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row2","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_max-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-salary_range_max-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.salary_range_max"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-salary_range_max-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.salary_range_max"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-manager_increase_percent-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-manager_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.manager_increase_percent"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-manager_increase_percent-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.manager_increase_percent"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-final_increase_percent-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-final_increase_percent-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.final_increase_percent"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-final_increase_percent-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.final_increase_percent"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row3","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_salary-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_salary-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.new_salary"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-new_salary-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.new_salary"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-new_compa_ratio-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-new_compa_ratio-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.new_compa_ratio"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-new_compa_ratio-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.new_compa_ratio"}}},"style":{}}]}},{"contractVersion":1,"instanceId":"do-increase_type-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-increase_type-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.increase_type"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-increase_type-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.increase_type"}}},"style":{}}]}}]}},{"contractVersion":1,"instanceId":"do-row4","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexWrap":"wrap","gap":"0.75rem"},"children":{"children":[{"contractVersion":1,"instanceId":"do-effective_date-wrap","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","flexDirection":"column","gap":"0.1rem","flex":"1 1 160px","minWidth":"140px"},"children":{"children":[{"contractVersion":1,"instanceId":"do-effective_date-label","blockType":"core.label","blockVersion":"1.0.0","properties":{"textKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.effective_date"}},"style":{"fontSize":"0.75rem","fontWeight":600,"opacity":0.65}},{"contractVersion":1,"instanceId":"do-effective_date-value","blockType":"core.label","blockVersion":"1.0.0","properties":{"text":{"source":"binding","binding":{"scope":"page","key":"detailRecord.effective_date"}}},"style":{}}]}}]}}]}},{"contractVersion":1,"instanceId":"do-footer","blockType":"core.container","blockVersion":"1.0.0","properties":{"variant":{"source":"static","value":"plain"}},"style":{"display":"flex","justifyContent":"flex-end","gap":"0.5rem","marginTop":"0.75rem","flexWrap":"wrap"},"children":{"children":[{"contractVersion":1,"instanceId":"do-submit","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.submitBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a0","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"SUBMITTED"}},"output":"updateResult"},{"id":"a1","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a2","name":"a2","order":2,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a3","name":"a3","order":3,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-approve","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.approveBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a4","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances","httpMethod":"POST","params":{"workflowName":"hcm-compensation.salary-planning-approval","correlationId":"salary-planning-approval-${page.detailRecord.id}","context":{"id":"${page.detailRecord.id}"}}},"output":"startResult"},{"id":"a5","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList1"},{"id":"a6","name":"a2","order":2,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList1[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decide1"},{"id":"a7","name":"a3","order":3,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList2"},{"id":"a8","name":"a4","order":4,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList2[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decide2"},{"id":"a9","name":"a5","order":5,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"APPROVED"}},"output":"updateResult"},{"id":"a10","name":"a6","order":6,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a11","name":"a7","order":7,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a12","name":"a8","order":8,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-finalize","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.finalizeBtn"},"variant":{"source":"static","value":"contained"}},"style":{"marginRight":"0.4rem"},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a13","name":"a0","order":0,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances","httpMethod":"POST","params":{"workflowName":"hcm-compensation.salary-planning-finalization","correlationId":"salary-planning-finalization-${page.detailRecord.id}","context":{"id":"${page.detailRecord.id}"}}},"output":"startResult"},{"id":"a14","name":"a1","order":1,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/instances/${startResult.id}/human-tasks","httpMethod":"GET","params":{}},"output":"taskList"},{"id":"a15","name":"a2","order":2,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/workflow-bridge/human-tasks/${taskList[0].id}/decide","httpMethod":"POST","params":{"approved":true}},"output":"decideResult"},{"id":"a16","name":"a3","order":3,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"PUT","params":{"status":"FINALIZED"}},"output":"updateResult"},{"id":"a17","name":"a4","order":4,"type":"callApi","config":{"connectionRef":"self","path":"/api/v1/entities/hcm_salary_planning_entry/records/${page.detailRecord.id}","httpMethod":"GET","params":{}},"output":"refreshed"},{"id":"a18","name":"a5","order":5,"type":"setValue","config":{"field":"page.detailRecord","value":"${refreshed}"}},{"id":"a19","name":"a6","order":6,"type":"setValue","config":{"field":"page.gridRefreshTick","value":"${!page.gridRefreshTick}"}}]}}},{"contractVersion":1,"instanceId":"do-close","blockType":"core.button","blockVersion":"1.0.0","properties":{"labelKey":{"source":"static","value":"hcm-compensation.salary-planning.detail.closeBtn"},"variant":{"source":"static","value":"outlined"}},"style":{},"events":{"clicked":{"source":"action-chain","actions":[{"id":"a20","name":"a0","order":0,"type":"setValue","config":{"field":"page.detailDialogOpen","value":false}}]}}}]}}]}}]}}}]}]}]}]},"metadata":{"dataSource":"hcm-compensation-salary-planning-entry-provider"},"modules":["hcm-foundation-home"]}