@acorex-platform/module-application-management-client 0.0.53 → 0.0.56
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.
- package/fesm2022/{acorex-platform-module-application-management-client-assign-features.command-CEuIYheD.mjs → acorex-platform-module-application-management-client-assign-features.command-CBdVp3GA.mjs} +5 -2
- package/fesm2022/acorex-platform-module-application-management-client-assign-features.command-CBdVp3GA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-application-management-client-contracts-entities-app-version.mjs +4 -4
- package/fesm2022/acorex-platform-module-application-management-client-contracts-entities-app-version.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-acorex-platform-module-application-management-client-contracts-entity-catalog-311tpDhr.mjs → acorex-platform-module-application-management-client-contracts-entity-catalog-acorex-platform-module-application-management-client-contracts-entity-catalog-Dr8fjXcZ.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-acorex-platform-module-application-management-client-contracts-entity-catalog-311tpDhr.mjs.map → acorex-platform-module-application-management-client-contracts-entity-catalog-acorex-platform-module-application-management-client-contracts-entity-catalog-Dr8fjXcZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-app-term.entity-DDvm1sOg.mjs → acorex-platform-module-application-management-client-contracts-entity-catalog-app-term.entity-FefcoNUr.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-app-term.entity-DDvm1sOg.mjs.map → acorex-platform-module-application-management-client-contracts-entity-catalog-app-term.entity-FefcoNUr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-app-version.entity-DjOMTlcp.mjs → acorex-platform-module-application-management-client-contracts-entity-catalog-app-version.entity-oor4LP3T.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-app-version.entity-DjOMTlcp.mjs.map → acorex-platform-module-application-management-client-contracts-entity-catalog-app-version.entity-oor4LP3T.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-application.entity-BWOz1V1N.mjs → acorex-platform-module-application-management-client-contracts-entity-catalog-application.entity-BLE_zikL.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-application.entity-BWOz1V1N.mjs.map → acorex-platform-module-application-management-client-contracts-entity-catalog-application.entity-BLE_zikL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-edition.entity-VjrQsh0t.mjs → acorex-platform-module-application-management-client-contracts-entity-catalog-edition.entity-Dl7Qhadj.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-application-management-client-contracts-entity-catalog-edition.entity-VjrQsh0t.mjs.map → acorex-platform-module-application-management-client-contracts-entity-catalog-edition.entity-Dl7Qhadj.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-application-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-application-management-client.mjs +8 -8
- package/fesm2022/acorex-platform-module-application-management-client.mjs.map +1 -1
- package/i18n/en-AU/application-management.json +370 -0
- package/i18n/en-US/application-management.json +370 -0
- package/i18n/fa-IR/application-management.json +370 -0
- package/package.json +1 -1
- package/fesm2022/acorex-platform-module-application-management-client-assign-features.command-CEuIYheD.mjs.map +0 -1
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": {
|
|
3
|
+
"title": "مدیریت برنامهها",
|
|
4
|
+
"description": "مدیریت برنامهها و نسخهها",
|
|
5
|
+
"menus": {
|
|
6
|
+
"root": {
|
|
7
|
+
"title": "مدیریت برنامهها",
|
|
8
|
+
"description": "مدیریت برنامهها و اجزای آنها"
|
|
9
|
+
},
|
|
10
|
+
"terms-page": {
|
|
11
|
+
"title": "شرایط و ضوابط",
|
|
12
|
+
"description": "مرور شرایط و ضوابط"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"permissions": {
|
|
17
|
+
"manage": {
|
|
18
|
+
"title": "مدیریت برنامهها",
|
|
19
|
+
"description": "مدیریت برنامهها و نسخهها"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"features": {
|
|
23
|
+
"application-management": {
|
|
24
|
+
"title": "مدیریت برنامهها",
|
|
25
|
+
"description": "فعالسازی قابلیت مدیریت برنامهها"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"applications": {
|
|
29
|
+
"terms": {
|
|
30
|
+
"application": "برنامه",
|
|
31
|
+
"applications": "برنامهها"
|
|
32
|
+
},
|
|
33
|
+
"permissions": {
|
|
34
|
+
"manage": {
|
|
35
|
+
"title": "مدیریت برنامهها",
|
|
36
|
+
"description": "مدیریت برنامهها، نسخهها و ورژنها"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"entities": {
|
|
40
|
+
"application": {
|
|
41
|
+
"title": "برنامه",
|
|
42
|
+
"plural": "برنامهها",
|
|
43
|
+
"fields": {
|
|
44
|
+
"code": {
|
|
45
|
+
"title": "کد",
|
|
46
|
+
"description": "کد شناسه یکتا برای برنامه",
|
|
47
|
+
"placeholder": "کد برنامه را وارد کنید (مثال: SM)"
|
|
48
|
+
},
|
|
49
|
+
"title": {
|
|
50
|
+
"title": "عنوان",
|
|
51
|
+
"description": "عنوان برنامه",
|
|
52
|
+
"placeholder": "عنوان برنامه را وارد کنید"
|
|
53
|
+
},
|
|
54
|
+
"description": {
|
|
55
|
+
"title": "توضیحات",
|
|
56
|
+
"description": "توضیحات برنامه",
|
|
57
|
+
"placeholder": "توضیحات برنامه را وارد کنید"
|
|
58
|
+
},
|
|
59
|
+
"version": {
|
|
60
|
+
"title": "نسخه",
|
|
61
|
+
"description": "شماره نسخه برنامه",
|
|
62
|
+
"placeholder": "نسخه را وارد کنید (مثال: 1.0.0)"
|
|
63
|
+
},
|
|
64
|
+
"category": {
|
|
65
|
+
"title": "دستهبندی",
|
|
66
|
+
"description": "دستهبندی یا نوع برنامه",
|
|
67
|
+
"placeholder": "دستهبندی را وارد کنید"
|
|
68
|
+
},
|
|
69
|
+
"tags": {
|
|
70
|
+
"title": "برچسبها",
|
|
71
|
+
"description": "برچسبها برای دستهبندی و جستجو",
|
|
72
|
+
"placeholder": "برچسبها را وارد کنید"
|
|
73
|
+
},
|
|
74
|
+
"icon": {
|
|
75
|
+
"title": "آیکون",
|
|
76
|
+
"description": "شناسه یا کلاس آیکون برنامه",
|
|
77
|
+
"placeholder": "کلاس آیکون را وارد کنید (مثال: fa-cube)"
|
|
78
|
+
},
|
|
79
|
+
"logo": {
|
|
80
|
+
"title": "لوگو",
|
|
81
|
+
"description": "تصویر لوگوی برنامه",
|
|
82
|
+
"placeholder": "لوگوی برنامه را آپلود کنید"
|
|
83
|
+
},
|
|
84
|
+
"color": {
|
|
85
|
+
"title": "رنگ",
|
|
86
|
+
"description": "رنگ اصلی برنامه",
|
|
87
|
+
"placeholder": "رنگ را انتخاب کنید"
|
|
88
|
+
},
|
|
89
|
+
"url": {
|
|
90
|
+
"title": "آدرس",
|
|
91
|
+
"description": "آدرس یا لینک برنامه",
|
|
92
|
+
"placeholder": "آدرس برنامه را وارد کنید"
|
|
93
|
+
},
|
|
94
|
+
"documentation-url": {
|
|
95
|
+
"title": "آدرس مستندات",
|
|
96
|
+
"description": "لینک به مستندات برنامه",
|
|
97
|
+
"placeholder": "آدرس مستندات را وارد کنید"
|
|
98
|
+
},
|
|
99
|
+
"support-email": {
|
|
100
|
+
"title": "ایمیل پشتیبانی",
|
|
101
|
+
"description": "آدرس ایمیل تماس پشتیبانی",
|
|
102
|
+
"placeholder": "ایمیل پشتیبانی را وارد کنید"
|
|
103
|
+
},
|
|
104
|
+
"release-date": {
|
|
105
|
+
"title": "تاریخ انتشار",
|
|
106
|
+
"description": "تاریخ انتشار برنامه",
|
|
107
|
+
"placeholder": "تاریخ انتشار را انتخاب کنید"
|
|
108
|
+
},
|
|
109
|
+
"is-public": {
|
|
110
|
+
"title": "عمومی",
|
|
111
|
+
"description": "آیا برنامه به صورت عمومی در دسترس است",
|
|
112
|
+
"placeholder": "دسترسی عمومی را انتخاب کنید"
|
|
113
|
+
},
|
|
114
|
+
"edition": {
|
|
115
|
+
"title": "نسخه",
|
|
116
|
+
"description": "نسخه برنامه",
|
|
117
|
+
"placeholder": "نسخه را انتخاب کنید"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"groups": {
|
|
121
|
+
"basic-info": "اطلاعات پایه",
|
|
122
|
+
"branding": "برندینگ",
|
|
123
|
+
"links": "لینکها و تماس",
|
|
124
|
+
"metadata": "متادیتا",
|
|
125
|
+
"editions": "نسخهها"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"states": {
|
|
130
|
+
"active": "فعال",
|
|
131
|
+
"inactive": "غیرفعال",
|
|
132
|
+
"suspended": "معلق",
|
|
133
|
+
"pending": "در انتظار"
|
|
134
|
+
},
|
|
135
|
+
"transitions": {
|
|
136
|
+
"activate": "فعالسازی",
|
|
137
|
+
"deactivate": "غیرفعالسازی",
|
|
138
|
+
"suspend": "تعلیق",
|
|
139
|
+
"resume": "از سرگیری"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"editions": {
|
|
143
|
+
"terms": {
|
|
144
|
+
"edition": "نسخه",
|
|
145
|
+
"editions": "نسخهها"
|
|
146
|
+
},
|
|
147
|
+
"entities": {
|
|
148
|
+
"edition": {
|
|
149
|
+
"title": "نسخه",
|
|
150
|
+
"plural": "نسخهها",
|
|
151
|
+
"fields": {
|
|
152
|
+
"title": {
|
|
153
|
+
"title": "عنوان",
|
|
154
|
+
"description": "عنوان نسخه",
|
|
155
|
+
"placeholder": "عنوان نسخه را وارد کنید"
|
|
156
|
+
},
|
|
157
|
+
"description": {
|
|
158
|
+
"title": "توضیحات",
|
|
159
|
+
"description": "توضیحات نسخه",
|
|
160
|
+
"placeholder": "توضیحات نسخه را وارد کنید"
|
|
161
|
+
},
|
|
162
|
+
"modules-and-features": {
|
|
163
|
+
"title": "ماژولها و ویژگیها",
|
|
164
|
+
"description": "انتخاب ماژولها و پیکربندی ویژگیهای آنها",
|
|
165
|
+
"placeholder": "ماژولها و ویژگیها را انتخاب کنید"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"groups": {
|
|
169
|
+
"basic-info": "اطلاعات پایه",
|
|
170
|
+
"modules": "ماژولها و ویژگیها"
|
|
171
|
+
},
|
|
172
|
+
"related-entities": {
|
|
173
|
+
"subscriptions": {
|
|
174
|
+
"title": "اشتراکها"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"modules-editor": {
|
|
180
|
+
"search-placeholder": "جستجوی ماژولها و ویژگیها",
|
|
181
|
+
"view-mode": {
|
|
182
|
+
"type": "بر اساس نوع",
|
|
183
|
+
"domain": "بر اساس دامنه"
|
|
184
|
+
},
|
|
185
|
+
"always-available": "همیشه در دسترس",
|
|
186
|
+
"loading": "در حال بارگذاری ماژولها...",
|
|
187
|
+
"empty": "ماژولی با این جستجو یافت نشد",
|
|
188
|
+
"badges": {
|
|
189
|
+
"required": "الزامی",
|
|
190
|
+
"dependency": "وابستگی",
|
|
191
|
+
"dependency-required": "وابستگی الزامی",
|
|
192
|
+
"dependency-of": "وابستگی الزامی برای: {{modules}}"
|
|
193
|
+
},
|
|
194
|
+
"types": {
|
|
195
|
+
"platform": "پلتفرم",
|
|
196
|
+
"domain": "ماژولهای دامنه",
|
|
197
|
+
"integration": "یکپارچهسازیها"
|
|
198
|
+
},
|
|
199
|
+
"domains": {
|
|
200
|
+
"platform": "پلتفرم",
|
|
201
|
+
"human-capital": "سرمایه انسانی",
|
|
202
|
+
"project-management": "مدیریت پروژه",
|
|
203
|
+
"asset-maintenance": "دارایی و نگهداری",
|
|
204
|
+
"workplace-safety": "ایمنی محیط کار",
|
|
205
|
+
"assessment-learning": "ارزیابی و یادگیری",
|
|
206
|
+
"finance-commerce": "مالی و بازرگانی",
|
|
207
|
+
"customer-supplier": "مشتری و تأمینکننده",
|
|
208
|
+
"communication": "ارتباطات",
|
|
209
|
+
"ai": "هوش مصنوعی",
|
|
210
|
+
"content-documents": "محتوا و اسناد",
|
|
211
|
+
"data": "داده",
|
|
212
|
+
"operations": "عملیات",
|
|
213
|
+
"weather": "آبوهوا",
|
|
214
|
+
"source-control": "کنترل نسخه",
|
|
215
|
+
"general": "عمومی"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"features-widget": {
|
|
220
|
+
"terms": {
|
|
221
|
+
"features": "قابلیتها"
|
|
222
|
+
},
|
|
223
|
+
"commands": {
|
|
224
|
+
"assign-features": {
|
|
225
|
+
"errors": {
|
|
226
|
+
"edition-required": "داده نسخه با شناسه الزامی است."
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"components": {
|
|
231
|
+
"features-editor": {
|
|
232
|
+
"empty-states": {
|
|
233
|
+
"no-features": {
|
|
234
|
+
"title": "بدون قابلیت",
|
|
235
|
+
"description": "برای این نسخه قابلیتی پیکربندی نشده است."
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"versionNumber": "شماره نسخه",
|
|
242
|
+
"changeLogs": "گزارش تغییرات",
|
|
243
|
+
"publishDate": "تاریخ انتشار",
|
|
244
|
+
"notifyUser": "اطلاعرسانی به کاربر",
|
|
245
|
+
"app-versions": {
|
|
246
|
+
"entities": {
|
|
247
|
+
"app-version": {
|
|
248
|
+
"title": "نسخه برنامه",
|
|
249
|
+
"plural": "نسخههای برنامه"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"release-notes": {
|
|
254
|
+
"terms": {
|
|
255
|
+
"release-note": "یادداشت انتشار",
|
|
256
|
+
"release-notes": "یادداشتهای انتشار"
|
|
257
|
+
},
|
|
258
|
+
"menus": {
|
|
259
|
+
"release-notes": {
|
|
260
|
+
"title": "یادداشتهای انتشار",
|
|
261
|
+
"description": "مدیریت یادداشتهای انتشار منتشر شده"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"permissions": {
|
|
265
|
+
"manage": {
|
|
266
|
+
"title": "مدیریت یادداشتهای انتشار",
|
|
267
|
+
"description": "دسترسی کامل به مدیریت یادداشتهای انتشار"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"help": {
|
|
272
|
+
"menus": {
|
|
273
|
+
"help": {
|
|
274
|
+
"title": "راهنما",
|
|
275
|
+
"description": "راهنما و پشتیبانی برنامه"
|
|
276
|
+
},
|
|
277
|
+
"release-notes": {
|
|
278
|
+
"title": "یادداشتهای انتشار",
|
|
279
|
+
"description": "مشاهده بهروزرسانیهای اخیر پلتفرم و اطلاعات انتشار"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"app-terms": {
|
|
284
|
+
"terms": {
|
|
285
|
+
"app-term": "شرایط و ضوابط",
|
|
286
|
+
"app-terms": "شرایط و ضوابط"
|
|
287
|
+
},
|
|
288
|
+
"entities": {
|
|
289
|
+
"app-term": {
|
|
290
|
+
"title": "شرایط و ضوابط",
|
|
291
|
+
"plural": "شرایط و ضوابط",
|
|
292
|
+
"fields": {
|
|
293
|
+
"content": {
|
|
294
|
+
"title": "محتوا",
|
|
295
|
+
"description": "محتوای شرایط و ضوابط",
|
|
296
|
+
"placeholder": "محتوای شرایط و ضوابط را وارد کنید"
|
|
297
|
+
},
|
|
298
|
+
"version": {
|
|
299
|
+
"title": "نسخه",
|
|
300
|
+
"description": "شماره نسخه",
|
|
301
|
+
"placeholder": "شماره نسخه را وارد کنید"
|
|
302
|
+
},
|
|
303
|
+
"effective-date": {
|
|
304
|
+
"title": "تاریخ اعتبار",
|
|
305
|
+
"description": "تاریخی که شرایط معتبر میشود",
|
|
306
|
+
"placeholder": "تاریخ اعتبار را انتخاب کنید"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"pages": {
|
|
312
|
+
"terms-page": {
|
|
313
|
+
"title": "شرایط و ضوابط",
|
|
314
|
+
"description": "لطفاً شرایط و ضوابط را با دقت مطالعه کنید."
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"permissions": {
|
|
318
|
+
"manage": {
|
|
319
|
+
"title": "مدیریت شرایط و ضوابط",
|
|
320
|
+
"description": "دسترسی کامل به شرایط و ضوابط"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"agreeTerm": "با شرایط و ضوابط موافقم",
|
|
325
|
+
"application-info": {
|
|
326
|
+
"commands": {
|
|
327
|
+
"new-term": {
|
|
328
|
+
"dialog-title": "شرایط و ضوابط جدید"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"notify-app-version": {
|
|
332
|
+
"dont-show-again": "دیگر نمایش داده نشود"
|
|
333
|
+
},
|
|
334
|
+
"settings": {
|
|
335
|
+
"display-pattern": {
|
|
336
|
+
"title": "الگوی نمایش اطلاعات برنامه",
|
|
337
|
+
"description": "سفارشیسازی نحوه نمایش اطلاعات برنامه در پاورقی. از متغیرهای زیر استفاده کنید: {appTitle}, {version}",
|
|
338
|
+
"placeholder": "{appTitle} v{version}"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"menus": {
|
|
342
|
+
"release-notes": {
|
|
343
|
+
"title": "یادداشتهای انتشار",
|
|
344
|
+
"description": "مشاهده بهروزرسانیهای اخیر پلتفرم و اطلاعات انتشار"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"release-notes": {
|
|
348
|
+
"version-label": "نسخه {{version}}",
|
|
349
|
+
"latest-badge": "جدیدترین",
|
|
350
|
+
"published-label": "تاریخ انتشار",
|
|
351
|
+
"loading": "در حال بارگذاری یادداشتهای انتشار…",
|
|
352
|
+
"empty": "هنوز یادداشت انتشاری موجود نیست.",
|
|
353
|
+
"load-failed": "بارگذاری یادداشتهای انتشار ممکن نشد. لطفاً دوباره تلاش کنید."
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"app-startup": {
|
|
357
|
+
"checking-terms": "در حال بررسی شرایط و ضوابط..."
|
|
358
|
+
},
|
|
359
|
+
"client-commands": {
|
|
360
|
+
"show-release-notes": {
|
|
361
|
+
"title": "نمایش یادداشتهای انتشار"
|
|
362
|
+
},
|
|
363
|
+
"new-term": {
|
|
364
|
+
"title": "تأیید شرایط و ضوابط جدید",
|
|
365
|
+
"inputs": {
|
|
366
|
+
"terms": { "title": "شرایط" }
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-application-management-client-assign-features.command-CEuIYheD.mjs","sources":["../../../../libs/modules/application-management/client/src/lib/features/features-widget/features-editor-popup.component.ts","../../../../libs/modules/application-management/client/src/lib/features/features-widget/commands/assign-features.command.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { Component, input, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { AXPFeaturesEditorComponent } from './features-editor.component';\n\n@Component({\n template: `\n <div class=\"flex flex-col h-full\">\n <ax-content class=\"flex-1 overflow-auto p-4\">\n <axm-features-editor\n [initialValue]=\"initialValue()\"\n [readOnly]=\"false\"\n (valueChanged)=\"onValueChanged($event)\"\n />\n </ax-content>\n <ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"close()\"></ax-button>\n <ax-button color=\"primary\" text=\"Save\" (onClick)=\"save()\"></ax-button>\n </ax-suffix>\n </ax-footer>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [AXDecoratorModule, AXButtonModule, AXPFeaturesEditorComponent],\n})\nexport class AXPFeaturesEditorPopupComponent extends AXBasePageComponent {\n initialValue = input<{ modules?: string[]; features?: Record<string, unknown> }>({});\n\n private latestValue = signal<{ modules: string[]; features: Record<string, unknown> }>({\n modules: [],\n features: {},\n });\n\n override ngOnInit(): void {\n super.ngOnInit();\n const initial = this.initialValue();\n this.latestValue.set({\n modules: initial.modules ?? [],\n features: initial.features ?? {},\n });\n }\n\n protected onValueChanged(value: { modules: string[]; features: Record<string, unknown> }): void {\n this.latestValue.set(value);\n }\n\n protected save(): void {\n this.close(this.latestValue());\n }\n}\n","//#region ---- Imports ----\n\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPCommonSettings,\n AXPSettingsService,\n} from '@acorex-platform/framework-client/common';\nimport { AXPEntityDefinitionRegistryService, dispatchEntityModifiedSideEffects } from '@acorex-platform/framework-client/layout/entity';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { RootConfig } from '@acorex-platform/module-application-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPFeaturesEditorPopupComponent } from '../features-editor-popup.component';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMAssignFeaturesCommandInput {\n data?: Record<string, unknown>;\n}\n\n//#endregion\n\n//#region ---- Assign features command ----\n\n@Injectable({ providedIn: 'root' })\nexport class AXMAssignFeaturesCommand implements AXPCommand<AXMAssignFeaturesCommandInput> {\n private readonly popupService = inject(AXPopupService);\n private readonly translationService = inject(AXTranslationService);\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly toastService = inject(AXToastService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly entityEvents = inject(AXPEntityBroadcastService);\n\n async execute(input: AXMAssignFeaturesCommandInput = {}): AXPCommandExecuteResultPromise {\n const row = input.data;\n const id = row?.['id'];\n if (!id) {\n return { success: false, message: { text: 'Edition data with id is required.' } };\n }\n\n const title = await this.translationService.translateAsync(\n '@application-management:features-widget.terms.features',\n );\n const entityTitle = row['title'] ?? row['name'] ?? id;\n\n const modulesAndFeatures = (row['modulesAndFeatures'] as {\n modules?: string[];\n features?: Record<string, unknown>;\n }) ?? { modules: [], features: {} };\n\n const popupResult = await this.popupService.open(AXPFeaturesEditorPopupComponent, {\n title: `${title} - ${entityTitle}`,\n size: 'lg',\n data: {\n initialValue: modulesAndFeatures,\n },\n });\n\n const nextValue = popupResult?.data as { modules?: string[]; features?: Record<string, unknown> } | undefined;\n if (!nextValue) {\n return { success: true, kind: 'object', data: null };\n }\n\n const entityKey = `${RootConfig.module.name}.${RootConfig.entities.edition.name}`;\n const [moduleName, entityName] = entityKey.split('.');\n const entityRef = await this.entityRegistry.resolve(moduleName, entityName);\n const updatePayload = {\n ...row,\n modulesAndFeatures: nextValue,\n };\n\n const updated = await (entityRef.commands?.update?.execute as (\n data: Record<string, unknown>,\n ) => Promise<Record<string, unknown>>)(updatePayload);\n\n await this.showSuccessToast();\n dispatchEntityModifiedSideEffects(this.entityEvents, entityKey, updated);\n\n return { success: true, kind: 'object', data: nextValue };\n }\n\n private async showSuccessToast(): Promise<void> {\n const enableOperationToasts = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enableOperationToasts) {\n return;\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync('@general:workflow.entity-modified-title'),\n content: await this.translationService.translateAsync('@general:workflow.entity-modified-body'),\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n }\n}\n\n//#endregion\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;AA4BM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AArBxE,IAAA,WAAA,GAAA;;QAsBE,IAAA,CAAA,YAAY,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