@dflat-core/web 1.0.40 → 1.0.42
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/core-services/index.d.ts +2 -0
- package/core-services/lib/services/application-menu.service.d.ts +22 -0
- package/core-services/lib/services/module-menu-services.token.d.ts +8 -0
- package/fesm2022/dflat-core-web-core-services.mjs +56 -2
- package/fesm2022/dflat-core-web-core-services.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-root.mjs +255 -108
- package/fesm2022/dflat-core-web-system-root.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-ux.mjs +4279 -2376
- package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -1
- package/package.json +12 -12
- package/system-root/index.d.ts +4 -1
- package/system-root/lib/generated/system-entity-keys.generated.d.ts +63 -0
- package/system-root/lib/generated/system-menu-item-provider.generated.d.ts +67 -0
- package/system-root/lib/generated/system-menu-service.generated.d.ts +26 -0
- package/system-root/lib/system-entity-keys.d.ts +6 -31
- package/system-root/lib/system-menu-item-provider.d.ts +6 -23
- package/system-root/lib/system-menu-service.d.ts +8 -9
- package/system-ux/index.d.ts +136 -44
- package/system-ux/lib/data-components/address.component.d.ts +7 -0
- package/system-ux/lib/{company → data-components}/company.component.d.ts +3 -7
- package/system-ux/lib/data-components/country.component.d.ts +6 -0
- package/system-ux/lib/data-components/currency.component.d.ts +6 -0
- package/system-ux/lib/{custom-field/custom-field.component.d.ts → data-components/customfield.component.d.ts} +3 -7
- package/system-ux/lib/{custom-field-group/custom-field-group.component.d.ts → data-components/customfieldgroup.component.d.ts} +4 -6
- package/system-ux/lib/{custom-field-group/custom-field-group-entity/custom-field-group-entity.component.d.ts → data-components/customfieldgroupentity.component.d.ts} +4 -7
- package/system-ux/lib/{custom-field-group/custom-field-group-item/custom-field-group-item.component.d.ts → data-components/customfieldgroupitem.component.d.ts} +5 -7
- package/system-ux/lib/{custom-field-options/custom-field-options.component.d.ts → data-components/customfieldoptions.component.d.ts} +3 -6
- package/system-ux/lib/data-components/customfieldvalue.component.d.ts +10 -0
- package/system-ux/lib/data-components/dayinfo.component.d.ts +10 -0
- package/system-ux/lib/data-components/errorcategory.component.d.ts +10 -0
- package/system-ux/lib/{exchange-rate/exchange-rate.component.d.ts → data-components/exchangerate.component.d.ts} +3 -10
- package/system-ux/lib/data-components/files.component.d.ts +10 -0
- package/system-ux/lib/data-components/generated/address.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/company.component.generated.d.ts +18 -0
- package/system-ux/lib/{country/country.component.d.ts → data-components/generated/country.component.generated.d.ts} +8 -4
- package/system-ux/lib/data-components/generated/currency.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfield.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfieldgroup.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfieldgroupentity.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfieldgroupitem.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfieldoptions.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/customfieldvalue.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/dayinfo.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/entityfiles.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/errorcategory.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/exchangerate.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/files.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/keyword.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentity.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityfield.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityform.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityformfield.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityformsection.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentitykeyword.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityrelation.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityrelationdefinition.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentitytranslation.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/metaentityviewfield.component.generated.d.ts +18 -0
- package/system-ux/lib/{news/news-component.d.ts → data-components/generated/news.component.generated.d.ts} +8 -6
- package/system-ux/lib/data-components/generated/parameter.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/parametersection.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/parametervalue.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/permission.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/presentationprofile.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/presentationprofileitem.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/rating.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/ratingsummary.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/request.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/requestentity.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/requestresult.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/resourcekey.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/resourcelanguage.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/resourcetranslation.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/role.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/rolepermission.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/subcompany.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/supplier.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/suppliercompany.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/synchronizedcompany.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/system-components.generated.d.ts +63 -0
- package/system-ux/lib/data-components/generated/tvarate.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/useraccount.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/useraccountcompany.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/useraccountnews.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/useraccountrole.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/useraccounttoken.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/userfavorite.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/usergroup.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/usergroupdefinition.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/userhistory.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/userpermissionview.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/usersession.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/generated/version.component.generated.d.ts +18 -0
- package/system-ux/lib/data-components/keyword.component.d.ts +10 -0
- package/system-ux/lib/{meta-entity/meta-entity.component.d.ts → data-components/metaentity.component.d.ts} +3 -9
- package/system-ux/lib/{meta-entity-field/meta-entity-field.component.d.ts → data-components/metaentityfield.component.d.ts} +3 -6
- package/system-ux/lib/data-components/metaentityform.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentityformfield.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentityformsection.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentitykeyword.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentityrelation.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentityrelationdefinition.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentitytranslation.component.d.ts +10 -0
- package/system-ux/lib/data-components/metaentityviewfield.component.d.ts +10 -0
- package/system-ux/lib/data-components/news.component.d.ts +8 -0
- package/system-ux/lib/data-components/parameter.component.d.ts +10 -0
- package/system-ux/lib/data-components/parametersection.component.d.ts +10 -0
- package/system-ux/lib/data-components/parametervalue.component.d.ts +15 -0
- package/system-ux/lib/data-components/permission.component.d.ts +8 -0
- package/system-ux/lib/data-components/presentationprofileitem.component.d.ts +10 -0
- package/system-ux/lib/data-components/rating.component.d.ts +10 -0
- package/system-ux/lib/data-components/ratingsummary.component.d.ts +10 -0
- package/system-ux/lib/{request → data-components}/request.component.d.ts +3 -7
- package/system-ux/lib/data-components/requestentity.component.d.ts +10 -0
- package/system-ux/lib/data-components/requestresult.component.d.ts +10 -0
- package/system-ux/lib/data-components/resourcekey.component.d.ts +11 -0
- package/system-ux/lib/data-components/resourcelanguage.component.d.ts +9 -0
- package/system-ux/lib/data-components/resourcetranslation.component.d.ts +10 -0
- package/system-ux/lib/{role/role-component.d.ts → data-components/role.component.d.ts} +3 -7
- package/system-ux/lib/data-components/rolepermission.component.d.ts +10 -0
- package/system-ux/lib/data-components/subcompany.component.d.ts +11 -0
- package/system-ux/lib/data-components/supplier.component.d.ts +8 -0
- package/system-ux/lib/data-components/suppliercompany.component.d.ts +10 -0
- package/system-ux/lib/data-components/synchronizedcompany.component.d.ts +15 -0
- package/system-ux/lib/{tva-rate/tva-rate.component.d.ts → data-components/tvarate.component.d.ts} +4 -7
- package/system-ux/lib/data-components/useraccount.component.d.ts +11 -0
- package/system-ux/lib/data-components/useraccountcompany.component.d.ts +10 -0
- package/system-ux/lib/data-components/useraccountnews.component.d.ts +10 -0
- package/system-ux/lib/data-components/useraccountrole.component.d.ts +10 -0
- package/system-ux/lib/data-components/useraccounttoken.component.d.ts +10 -0
- package/system-ux/lib/{user-company/user-company-component.d.ts → data-components/usercompany.component.d.ts} +4 -6
- package/system-ux/lib/data-components/userfavorite.component.d.ts +10 -0
- package/system-ux/lib/data-components/usergroup.component.d.ts +8 -0
- package/system-ux/lib/{user-group/user-group-definition.component.d.ts → data-components/usergroupdefinition.component.d.ts} +3 -6
- package/system-ux/lib/data-components/userhistory.component.d.ts +10 -0
- package/system-ux/lib/{user-permission/user-permission-component.d.ts → data-components/userpermission.component.d.ts} +3 -6
- package/system-ux/lib/data-components/userpermissionview.component.d.ts +10 -0
- package/system-ux/lib/{user-role/user-role-component.d.ts → data-components/userrole.component.d.ts} +3 -6
- package/system-ux/lib/data-components/usersession.component.d.ts +10 -0
- package/system-ux/lib/data-components/version.component.d.ts +10 -0
- package/system-ux/lib/system-ux.module.d.ts +123 -92
- package/system-ux/lib/address/address.component.d.ts +0 -15
- package/system-ux/lib/currency/currency.component.d.ts +0 -14
- package/system-ux/lib/global-parameter/global-parameter.component.d.ts +0 -15
- package/system-ux/lib/permission/permission-component.d.ts +0 -16
- package/system-ux/lib/resource-key/resource-key.component.d.ts +0 -18
- package/system-ux/lib/resource-language/resource-language.component.d.ts +0 -16
- package/system-ux/lib/resource-translation/resource-translation.component.d.ts +0 -16
- package/system-ux/lib/sub-company/sub-company.component.d.ts +0 -15
- package/system-ux/lib/supplier/supplier.component.d.ts +0 -16
- package/system-ux/lib/synchronised-company/synchronised-company.component.d.ts +0 -16
- package/system-ux/lib/user-account/user-account-component.d.ts +0 -18
- package/system-ux/lib/user-group/user-group.component.d.ts +0 -16
- /package/system-root/lib/{system-permissions.generated.d.ts → generated/system-permissions.generated.d.ts} +0 -0
- /package/system-ux/lib/{company → editor-components}/company-editor.component.d.ts +0 -0
- /package/system-ux/lib/{country → editor-components}/country-editor.component.d.ts +0 -0
- /package/system-ux/lib/{currency → editor-components}/currency-editor.component.d.ts +0 -0
- /package/system-ux/lib/{custom-field-group → editor-components}/custom-field-group-editor.component.d.ts +0 -0
- /package/system-ux/lib/{custom-field-group/custom-field-group-entity → editor-components}/custom-field-group-entity-editor.component.d.ts +0 -0
- /package/system-ux/lib/{custom-field-group/custom-field-group-item → editor-components}/custom-field-group-item-editor.component.d.ts +0 -0
- /package/system-ux/lib/{news → editor-components}/news-editor.component.d.ts +0 -0
- /package/system-ux/lib/{permission → editor-components}/permission-editor.component.d.ts +0 -0
- /package/system-ux/lib/{request → editor-components}/request-editor.component.d.ts +0 -0
- /package/system-ux/lib/{resource-translation → editor-components}/resource-translation-editor.component.d.ts +0 -0
- /package/system-ux/lib/{role → editor-components}/role-editor.component.d.ts +0 -0
- /package/system-ux/lib/{user-account → editor-components}/user-account-editor.component.d.ts +0 -0
- /package/system-ux/lib/{user-account-profile → editor-components}/user-account-profile.component.d.ts +0 -0
- /package/system-ux/lib/{user-group → editor-components}/user-group-editor.component.d.ts +0 -0
|
@@ -2,43 +2,88 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@dflat-core/web/core-services';
|
|
5
|
-
import { MenuService, MenuItem } from '@dflat-core/web/core-services';
|
|
5
|
+
import { MenuService, MenuItem, MODULE_MENU_SERVICES } from '@dflat-core/web/core-services';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
static { this.
|
|
16
|
-
static { this.
|
|
17
|
-
static { this.
|
|
18
|
-
static { this.
|
|
19
|
-
static { this.
|
|
20
|
-
static { this.
|
|
7
|
+
//------------------------------------------------------------------------------
|
|
8
|
+
// <auto-generated>
|
|
9
|
+
// Généré par codegenerator (dflat -g ts, module System).
|
|
10
|
+
// Ne pas modifier : les clés propres au module s'écrivent dans SystemEntityKeys.
|
|
11
|
+
// </auto-generated>
|
|
12
|
+
//------------------------------------------------------------------------------
|
|
13
|
+
/** Clés des entités du module System (route de leur contrôleur, en minuscule). */
|
|
14
|
+
class BaseSystemEntityKeys {
|
|
15
|
+
static { this.Address = 'address'; }
|
|
16
|
+
static { this.Company = 'company'; }
|
|
17
|
+
static { this.Country = 'country'; }
|
|
18
|
+
static { this.Currency = 'currency'; }
|
|
19
|
+
static { this.CustomField = 'customfield'; }
|
|
20
|
+
static { this.CustomFieldGroup = 'customfieldgroup'; }
|
|
21
|
+
static { this.CustomFieldGroupEntity = 'customfieldgroupentity'; }
|
|
22
|
+
static { this.CustomFieldGroupItem = 'customfieldgroupitem'; }
|
|
23
|
+
static { this.CustomFieldOptions = 'customfieldoptions'; }
|
|
24
|
+
static { this.CustomFieldValue = 'customfieldvalue'; }
|
|
25
|
+
static { this.DayInfo = 'dayinfo'; }
|
|
26
|
+
static { this.EntityFiles = 'entityfiles'; }
|
|
27
|
+
static { this.ErrorCategory = 'errorcategory'; }
|
|
28
|
+
static { this.ExchangeRate = 'exchangerate'; }
|
|
29
|
+
static { this.Files = 'files'; }
|
|
30
|
+
static { this.Keyword = 'keyword'; }
|
|
31
|
+
static { this.MetaEntity = 'metaentity'; }
|
|
32
|
+
static { this.MetaEntityField = 'metaentityfield'; }
|
|
33
|
+
static { this.MetaEntityForm = 'metaentityform'; }
|
|
34
|
+
static { this.MetaEntityFormField = 'metaentityformfield'; }
|
|
35
|
+
static { this.MetaEntityFormSection = 'metaentityformsection'; }
|
|
36
|
+
static { this.MetaEntityKeyword = 'metaentitykeyword'; }
|
|
37
|
+
static { this.MetaEntityRelation = 'metaentityrelation'; }
|
|
38
|
+
static { this.MetaEntityRelationDefinition = 'metaentityrelationdefinition'; }
|
|
39
|
+
static { this.MetaEntityTranslation = 'metaentitytranslation'; }
|
|
40
|
+
static { this.MetaEntityViewField = 'metaentityviewfield'; }
|
|
41
|
+
static { this.News = 'news'; }
|
|
42
|
+
static { this.Parameter = 'parameter'; }
|
|
43
|
+
static { this.ParameterSection = 'parametersection'; }
|
|
44
|
+
static { this.ParameterValue = 'parametervalue'; }
|
|
45
|
+
static { this.Permission = 'permission'; }
|
|
46
|
+
static { this.PresentationProfile = 'presentationprofile'; }
|
|
47
|
+
static { this.PresentationProfileItem = 'presentationprofileitem'; }
|
|
48
|
+
static { this.Rating = 'rating'; }
|
|
49
|
+
static { this.RatingSummary = 'ratingsummary'; }
|
|
50
|
+
static { this.Request = 'request'; }
|
|
51
|
+
static { this.RequestEntity = 'requestentity'; }
|
|
52
|
+
static { this.RequestResult = 'requestresult'; }
|
|
53
|
+
static { this.ResourceKey = 'resourcekey'; }
|
|
54
|
+
static { this.ResourceLanguage = 'resourcelanguage'; }
|
|
55
|
+
static { this.ResourceTranslation = 'resourcetranslation'; }
|
|
56
|
+
static { this.Role = 'role'; }
|
|
57
|
+
static { this.RolePermission = 'rolepermission'; }
|
|
58
|
+
static { this.Subcompany = 'subcompany'; }
|
|
59
|
+
static { this.Supplier = 'supplier'; }
|
|
60
|
+
static { this.SupplierCompany = 'suppliercompany'; }
|
|
61
|
+
static { this.SynchronizedCompany = 'synchronizedcompany'; }
|
|
62
|
+
static { this.TvaRate = 'tvarate'; }
|
|
63
|
+
static { this.UserAccount = 'useraccount'; }
|
|
64
|
+
static { this.UserAccountCompany = 'useraccountcompany'; }
|
|
65
|
+
static { this.UserAccountNews = 'useraccountnews'; }
|
|
66
|
+
static { this.UserAccountRole = 'useraccountrole'; }
|
|
67
|
+
static { this.UserAccountToken = 'useraccounttoken'; }
|
|
68
|
+
static { this.UserFavorite = 'userfavorite'; }
|
|
69
|
+
static { this.UserGroup = 'usergroup'; }
|
|
70
|
+
static { this.UserGroupDefinition = 'usergroupdefinition'; }
|
|
71
|
+
static { this.UserHistory = 'userhistory'; }
|
|
72
|
+
static { this.UserPermissionView = 'userpermissionview'; }
|
|
73
|
+
static { this.UserSession = 'usersession'; }
|
|
74
|
+
static { this.Version = 'version'; }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Clés des entités du module System : clés propres au module (les clés des entités servies par un
|
|
79
|
+
* contrôleur sont générées dans BaseSystemEntityKeys).
|
|
80
|
+
*/
|
|
81
|
+
class SystemEntityKeys extends BaseSystemEntityKeys {
|
|
21
82
|
static { this.Config = "config"; }
|
|
22
|
-
static { this.CustomField = "customfield"; }
|
|
23
|
-
static { this.CustomFieldOptions = "customfieldoptions"; }
|
|
24
|
-
static { this.CustomFieldGroup = "customfieldgroup"; }
|
|
25
|
-
static { this.CustomFieldGroupItem = "customfieldgroupitem"; }
|
|
26
|
-
static { this.CustomFieldGroupEntity = "customfieldgroupentity"; }
|
|
27
|
-
static { this.ResourceLanguage = "resourcelanguage"; }
|
|
28
|
-
static { this.ResourceTranslation = "resourcetranslation"; }
|
|
29
|
-
static { this.ResourceKey = "resourcekey"; }
|
|
30
|
-
static { this.MetaEntity = "metaentity"; }
|
|
31
|
-
static { this.MetaEntityField = "metaentityfield"; }
|
|
32
83
|
static { this.GridColumnConfig = "gridcolumnconfig"; }
|
|
33
|
-
|
|
34
|
-
static { this.
|
|
35
|
-
static { this.
|
|
36
|
-
static { this.UserGroupDefinition = "usergroupdefinition"; }
|
|
37
|
-
static { this.UserGroup = "usergroup"; }
|
|
38
|
-
static { this.UserAccountRole = "useraccountrole"; }
|
|
39
|
-
static { this.UserPermissionView = "userpermissionview"; }
|
|
40
|
-
static { this.UserCompany = "useraccountcompany"; }
|
|
41
|
-
static { this.PresentationProfile = "presentationprofile"; }
|
|
84
|
+
// Alias historiques des clés générées.
|
|
85
|
+
static { this.GlobalParameter = BaseSystemEntityKeys.ParameterValue; }
|
|
86
|
+
static { this.UserCompany = BaseSystemEntityKeys.UserAccountCompany; }
|
|
42
87
|
}
|
|
43
88
|
|
|
44
89
|
class SystemPermissions {
|
|
@@ -410,105 +455,205 @@ class SystemPermissions {
|
|
|
410
455
|
static { this.SYSTEM_VERSION_VIEW = "system.version.view"; }
|
|
411
456
|
}
|
|
412
457
|
|
|
413
|
-
|
|
458
|
+
/** Éléments de menu des entités du module System : lien, libellé et permission de consultation. */
|
|
459
|
+
class BaseSystemMenuItemProvider {
|
|
460
|
+
/** Chemin du module dans le routage de l'application (menu.txt, route:). */
|
|
414
461
|
static { this.BaseKey = 'sys'; }
|
|
415
462
|
static GetLink(entityKey) {
|
|
416
|
-
return `/${
|
|
463
|
+
return `/${BaseSystemMenuItemProvider.BaseKey}/${entityKey}`;
|
|
417
464
|
}
|
|
418
|
-
|
|
419
|
-
static { this.
|
|
420
|
-
static { this.
|
|
421
|
-
static { this.
|
|
422
|
-
static { this.
|
|
423
|
-
static { this.
|
|
424
|
-
static { this.
|
|
425
|
-
static { this.
|
|
426
|
-
|
|
427
|
-
static { this.
|
|
428
|
-
static { this.
|
|
429
|
-
static { this.
|
|
430
|
-
static { this.
|
|
431
|
-
static { this.
|
|
465
|
+
static { this.addressMenuItem = { title: 'Adresses', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Address), permissionKey: SystemPermissions.SYSTEM_ADDRESS_VIEW }; }
|
|
466
|
+
static { this.companyMenuItem = { title: 'Sociétés', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Company), permissionKey: SystemPermissions.SYSTEM_COMPANY_VIEW }; }
|
|
467
|
+
static { this.countryMenuItem = { title: 'Pays', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Country), permissionKey: SystemPermissions.SYSTEM_COUNTRY_VIEW }; }
|
|
468
|
+
static { this.currencyMenuItem = { title: 'Monnaies', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Currency), permissionKey: SystemPermissions.SYSTEM_CURRENCY_VIEW }; }
|
|
469
|
+
static { this.customFieldMenuItem = { title: 'Attributs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomField), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELD_VIEW }; }
|
|
470
|
+
static { this.customFieldGroupMenuItem = { title: 'Famille d\'attributs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomFieldGroup), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDGROUP_VIEW }; }
|
|
471
|
+
static { this.customFieldGroupEntityMenuItem = { title: 'Entité d\'un groupe de champs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomFieldGroupEntity), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDGROUPENTITY_VIEW }; }
|
|
472
|
+
static { this.customFieldGroupItemMenuItem = { title: 'Élément d\'un groupe de champs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomFieldGroupItem), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDGROUPITEM_VIEW }; }
|
|
473
|
+
static { this.customFieldOptionsMenuItem = { title: 'Option de champ personnalisé', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomFieldOptions), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDOPTIONS_VIEW }; }
|
|
474
|
+
static { this.customFieldValueMenuItem = { title: 'Valeur de champ personnalisé', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.CustomFieldValue), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDVALUE_VIEW }; }
|
|
475
|
+
static { this.dayInfoMenuItem = { title: 'Informations du jour', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.DayInfo), permissionKey: SystemPermissions.SYSTEM_DAYINFO_VIEW }; }
|
|
476
|
+
static { this.entityFilesMenuItem = { title: 'Fichier d\'entité', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.EntityFiles), permissionKey: SystemPermissions.SYSTEM_ENTITYFILES_VIEW }; }
|
|
477
|
+
static { this.errorCategoryMenuItem = { title: 'Catégories d\'erreur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ErrorCategory), permissionKey: SystemPermissions.SYSTEM_ERRORCATEGORY_VIEW }; }
|
|
478
|
+
static { this.exchangeRateMenuItem = { title: 'Taux de change', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ExchangeRate), permissionKey: SystemPermissions.SYSTEM_EXCHANGERATE_VIEW }; }
|
|
479
|
+
static { this.filesMenuItem = { title: 'Fichier', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Files), permissionKey: SystemPermissions.SYSTEM_FILES_VIEW }; }
|
|
480
|
+
static { this.keywordMenuItem = { title: 'Mots-clés', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Keyword), permissionKey: SystemPermissions.SYSTEM_KEYWORD_VIEW }; }
|
|
481
|
+
static { this.metaEntityMenuItem = { title: 'Modèle', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntity), permissionKey: SystemPermissions.SYSTEM_METAENTITY_VIEW }; }
|
|
482
|
+
static { this.metaEntityFieldMenuItem = { title: 'Champ de méta-entité', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityField), permissionKey: SystemPermissions.SYSTEM_METAENTITYFIELD_VIEW }; }
|
|
483
|
+
static { this.metaEntityFormMenuItem = { title: 'Formulaires', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityForm), permissionKey: SystemPermissions.SYSTEM_METAENTITYFORM_VIEW }; }
|
|
484
|
+
static { this.metaEntityFormFieldMenuItem = { title: 'Champs de formulaire', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityFormField), permissionKey: SystemPermissions.SYSTEM_METAENTITYFORMFIELD_VIEW }; }
|
|
485
|
+
static { this.metaEntityFormSectionMenuItem = { title: 'Sections de formulaire', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityFormSection), permissionKey: SystemPermissions.SYSTEM_METAENTITYFORMSECTION_VIEW }; }
|
|
486
|
+
static { this.metaEntityKeywordMenuItem = { title: 'Mot-clé de méta-entité', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityKeyword), permissionKey: SystemPermissions.SYSTEM_METAENTITYKEYWORD_VIEW }; }
|
|
487
|
+
static { this.metaEntityRelationMenuItem = { title: 'Relations entre entités', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityRelation), permissionKey: SystemPermissions.SYSTEM_METAENTITYRELATION_VIEW }; }
|
|
488
|
+
static { this.metaEntityRelationDefinitionMenuItem = { title: 'Définition de relation', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityRelationDefinition), permissionKey: SystemPermissions.SYSTEM_METAENTITYRELATIONDEFINITION_VIEW }; }
|
|
489
|
+
static { this.metaEntityTranslationMenuItem = { title: 'Traduction de méta-entité', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityTranslation), permissionKey: SystemPermissions.SYSTEM_METAENTITYTRANSLATION_VIEW }; }
|
|
490
|
+
static { this.metaEntityViewFieldMenuItem = { title: 'Champ de vue', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.MetaEntityViewField), permissionKey: SystemPermissions.SYSTEM_METAENTITYVIEWFIELD_VIEW }; }
|
|
491
|
+
static { this.newsMenuItem = { title: 'News', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.News), permissionKey: SystemPermissions.SYSTEM_NEWS_VIEW }; }
|
|
492
|
+
static { this.parameterMenuItem = { title: 'Définition des paramètres', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Parameter), permissionKey: SystemPermissions.SYSTEM_PARAMETER_VIEW }; }
|
|
493
|
+
static { this.parameterSectionMenuItem = { title: 'Sections de paramètres', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ParameterSection), permissionKey: SystemPermissions.SYSTEM_PARAMETERSECTION_VIEW }; }
|
|
494
|
+
static { this.parameterValueMenuItem = { title: 'Paramètres', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ParameterValue), permissionKey: SystemPermissions.SYSTEM_PARAMETERVALUE_VIEW }; }
|
|
495
|
+
static { this.permissionMenuItem = { title: 'Permissions', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Permission), permissionKey: SystemPermissions.SYSTEM_PERMISSION_VIEW }; }
|
|
496
|
+
static { this.presentationProfileMenuItem = { title: 'Profils de présentation', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.PresentationProfile), permissionKey: SystemPermissions.SYSTEM_PRESENTATIONPROFILE_VIEW }; }
|
|
497
|
+
static { this.presentationProfileItemMenuItem = { title: 'Éléments de profil de présentation', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.PresentationProfileItem), permissionKey: SystemPermissions.SYSTEM_PRESENTATIONPROFILEITEM_VIEW }; }
|
|
498
|
+
static { this.ratingMenuItem = { title: 'Évaluation', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Rating), permissionKey: SystemPermissions.SYSTEM_RATING_VIEW }; }
|
|
499
|
+
static { this.ratingSummaryMenuItem = { title: 'Synthèse des évaluations', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.RatingSummary), permissionKey: SystemPermissions.SYSTEM_RATINGSUMMARY_VIEW }; }
|
|
500
|
+
static { this.requestMenuItem = { title: 'Requêtes', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Request), permissionKey: SystemPermissions.SYSTEM_REQUEST_VIEW }; }
|
|
501
|
+
static { this.requestEntityMenuItem = { title: 'Entité de requête', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.RequestEntity), permissionKey: SystemPermissions.SYSTEM_REQUESTENTITY_VIEW }; }
|
|
502
|
+
static { this.requestResultMenuItem = { title: 'Résultat de requête', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.RequestResult), permissionKey: SystemPermissions.SYSTEM_REQUESTRESULT_VIEW }; }
|
|
503
|
+
static { this.resourceKeyMenuItem = { title: 'Traductions', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ResourceKey), permissionKey: SystemPermissions.SYSTEM_RESOURCEKEY_VIEW }; }
|
|
504
|
+
static { this.resourceLanguageMenuItem = { title: 'Langues', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ResourceLanguage), permissionKey: SystemPermissions.SYSTEM_RESOURCELANGUAGE_VIEW }; }
|
|
505
|
+
static { this.resourceTranslationMenuItem = { title: 'Traduction', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.ResourceTranslation), permissionKey: SystemPermissions.SYSTEM_RESOURCETRANSLATION_VIEW }; }
|
|
506
|
+
static { this.roleMenuItem = { title: 'Rôles', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Role), permissionKey: SystemPermissions.SYSTEM_ROLE_VIEW }; }
|
|
507
|
+
static { this.rolePermissionMenuItem = { title: 'Permission de rôle', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.RolePermission), permissionKey: SystemPermissions.SYSTEM_ROLEPERMISSION_VIEW }; }
|
|
508
|
+
static { this.subcompanyMenuItem = { title: 'Filiales', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Subcompany), permissionKey: SystemPermissions.SYSTEM_SUBCOMPANY_VIEW }; }
|
|
509
|
+
static { this.supplierMenuItem = { title: 'Sources de données', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Supplier), permissionKey: SystemPermissions.SYSTEM_SUPPLIER_VIEW }; }
|
|
510
|
+
static { this.supplierCompanyMenuItem = { title: 'Société du fournisseur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.SupplierCompany), permissionKey: SystemPermissions.SYSTEM_SUPPLIERCOMPANY_VIEW }; }
|
|
511
|
+
static { this.synchronizedCompanyMenuItem = { title: 'Synchronisation', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.SynchronizedCompany), permissionKey: SystemPermissions.SYSTEM_SYNCHRONIZEDCOMPANY_VIEW }; }
|
|
512
|
+
static { this.tvaRateMenuItem = { title: 'Taux de TVA', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.TvaRate), permissionKey: SystemPermissions.SYSTEM_TVARATE_VIEW }; }
|
|
513
|
+
static { this.userAccountMenuItem = { title: 'Utilisateurs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserAccount), permissionKey: SystemPermissions.SYSTEM_USERACCOUNT_VIEW }; }
|
|
514
|
+
static { this.userAccountCompanyMenuItem = { title: 'Société de l\'utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserAccountCompany), permissionKey: SystemPermissions.SYSTEM_USERACCOUNTCOMPANY_VIEW }; }
|
|
515
|
+
static { this.userAccountNewsMenuItem = { title: 'Actualité de l\'utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserAccountNews), permissionKey: SystemPermissions.SYSTEM_USERACCOUNTNEWS_VIEW }; }
|
|
516
|
+
static { this.userAccountRoleMenuItem = { title: 'Rôle de l\'utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserAccountRole), permissionKey: SystemPermissions.SYSTEM_USERACCOUNTROLE_VIEW }; }
|
|
517
|
+
static { this.userAccountTokenMenuItem = { title: 'Jeton utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserAccountToken), permissionKey: SystemPermissions.SYSTEM_USERACCOUNTTOKEN_VIEW }; }
|
|
518
|
+
static { this.userFavoriteMenuItem = { title: 'Favori', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserFavorite), permissionKey: SystemPermissions.SYSTEM_USERFAVORITE_VIEW }; }
|
|
519
|
+
static { this.userGroupMenuItem = { title: 'Groupe d\'utilisateurs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserGroup), permissionKey: SystemPermissions.SYSTEM_USERGROUP_VIEW }; }
|
|
520
|
+
static { this.userGroupDefinitionMenuItem = { title: 'Association d\'utilisateurs', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserGroupDefinition), permissionKey: SystemPermissions.SYSTEM_USERGROUPDEFINITION_VIEW }; }
|
|
521
|
+
static { this.userHistoryMenuItem = { title: 'Historique utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserHistory), permissionKey: SystemPermissions.SYSTEM_USERHISTORY_VIEW }; }
|
|
522
|
+
static { this.userPermissionViewMenuItem = { title: 'Permissions de l\'utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserPermissionView), permissionKey: SystemPermissions.SYSTEM_USERPERMISSIONVIEW_VIEW }; }
|
|
523
|
+
static { this.userSessionMenuItem = { title: 'Session utilisateur', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.UserSession), permissionKey: SystemPermissions.SYSTEM_USERSESSION_VIEW }; }
|
|
524
|
+
static { this.versionMenuItem = { title: 'Version', icon: 'dot-circle-o', link: BaseSystemMenuItemProvider.GetLink(BaseSystemEntityKeys.Version), permissionKey: SystemPermissions.SYSTEM_VERSION_VIEW }; }
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Éléments de menu du module System : éléments propres au module (ceux des entités servies par un
|
|
529
|
+
* contrôleur sont générés dans BaseSystemMenuItemProvider).
|
|
530
|
+
*/
|
|
531
|
+
class SystemMenuItemProvider extends BaseSystemMenuItemProvider {
|
|
432
532
|
static { this.configMenuItem = { title: 'Configuration', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.Config), permissionKey: SystemPermissions.SYSTEM_CONFIGURATION_VIEW }; }
|
|
433
|
-
static { this.customFieldMenuItem = { title: 'Attributs', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.CustomField), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELD_VIEW }; }
|
|
434
|
-
static { this.customFieldGroupMenuItem = { title: "Famille d'attributs", icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.CustomFieldGroup), permissionKey: SystemPermissions.SYSTEM_CUSTOMFIELDGROUP_VIEW }; }
|
|
435
|
-
static { this.resourceLanguageMenuItem = { title: 'Langues', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.ResourceLanguage), permissionKey: SystemPermissions.SYSTEM_RESOURCELANGUAGE_VIEW }; }
|
|
436
|
-
static { this.resourceKeyMenuItem = { title: 'Traductions', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.ResourceKey), permissionKey: SystemPermissions.SYSTEM_RESOURCEKEY_VIEW }; }
|
|
437
|
-
static { this.metaEntityMenuItem = { title: 'Modèle', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.MetaEntity), permissionKey: SystemPermissions.SYSTEM_METAENTITY_VIEW }; }
|
|
438
533
|
static { this.gridColumnConfigMenuItem = { title: 'Profils de colonnes', icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.GridColumnConfig), permissionKey: SystemPermissions.SYSTEM_METAENTITY_VIEW }; }
|
|
439
|
-
|
|
440
|
-
static { this.
|
|
441
|
-
static { this.userGroupDefinitionMenuItem = { title: `Association d'utilisateurs`, icon: 'dot-circle-o', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.UserGroupDefinition), permissionKey: SystemPermissions.SYSTEM_USERGROUPDEFINITION_VIEW }; }
|
|
442
|
-
static { this.presentationProfileMenuItem = { title: `Profils de présentation`, icon: 'table-columns', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.PresentationProfile), permissionKey: SystemPermissions.SYSTEM_USERACCOUNT }; }
|
|
534
|
+
// Profils de présentation : écran d'édition des colonnes (PresentationProfileColumnComponent), pas le composant de l'entité.
|
|
535
|
+
static { this.presentationProfileMenuItem = { title: 'Profils de présentation', icon: 'table-columns', link: SystemMenuItemProvider.GetLink(SystemEntityKeys.PresentationProfile), permissionKey: SystemPermissions.SYSTEM_USERACCOUNT }; }
|
|
443
536
|
}
|
|
444
537
|
|
|
445
|
-
|
|
538
|
+
//------------------------------------------------------------------------------
|
|
539
|
+
// <auto-generated>
|
|
540
|
+
// Généré par codegenerator (dflat -g ts, module System, menu.txt).
|
|
541
|
+
// Ne pas modifier : les thèmes et éléments propres au module s'ajoutent dans SystemMenuService (getThemes).
|
|
542
|
+
// </auto-generated>
|
|
543
|
+
//------------------------------------------------------------------------------
|
|
544
|
+
/**
|
|
545
|
+
* Menu du module System, organisé par thème (menu.txt) : un élément par entité,
|
|
546
|
+
* affiché si l'utilisateur connecté a sa permission de consultation (ou est administrateur) ;
|
|
547
|
+
* un thème sans élément affiché est masqué.
|
|
548
|
+
* L'application réunit les menus de tous ses modules (ApplicationMenuService) : le module le
|
|
549
|
+
* déclare sous MODULE_MENU_SERVICES dans son module racine.
|
|
550
|
+
*/
|
|
551
|
+
class BaseSystemMenuService extends MenuService {
|
|
446
552
|
constructor(permissionService) {
|
|
447
553
|
super(permissionService);
|
|
448
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* Thèmes du menu et tous leurs éléments, dans l'ordre d'affichage. Surcharger pour ajouter des
|
|
557
|
+
* thèmes ou des éléments : les thèmes de même libellé sont fusionnés.
|
|
558
|
+
*/
|
|
559
|
+
getThemes() {
|
|
560
|
+
return [
|
|
561
|
+
new MenuItem('Base de données', undefined, 'database', [
|
|
562
|
+
BaseSystemMenuItemProvider.countryMenuItem,
|
|
563
|
+
BaseSystemMenuItemProvider.exchangeRateMenuItem,
|
|
564
|
+
BaseSystemMenuItemProvider.currencyMenuItem,
|
|
565
|
+
BaseSystemMenuItemProvider.companyMenuItem,
|
|
566
|
+
BaseSystemMenuItemProvider.supplierMenuItem,
|
|
567
|
+
BaseSystemMenuItemProvider.tvaRateMenuItem,
|
|
568
|
+
BaseSystemMenuItemProvider.addressMenuItem,
|
|
569
|
+
BaseSystemMenuItemProvider.errorCategoryMenuItem,
|
|
570
|
+
BaseSystemMenuItemProvider.keywordMenuItem,
|
|
571
|
+
]),
|
|
572
|
+
new MenuItem('Administration', undefined, 'cogs', [
|
|
573
|
+
BaseSystemMenuItemProvider.userAccountMenuItem,
|
|
574
|
+
BaseSystemMenuItemProvider.requestMenuItem,
|
|
575
|
+
BaseSystemMenuItemProvider.roleMenuItem,
|
|
576
|
+
BaseSystemMenuItemProvider.permissionMenuItem,
|
|
577
|
+
BaseSystemMenuItemProvider.newsMenuItem,
|
|
578
|
+
BaseSystemMenuItemProvider.customFieldMenuItem,
|
|
579
|
+
BaseSystemMenuItemProvider.customFieldGroupMenuItem,
|
|
580
|
+
BaseSystemMenuItemProvider.resourceLanguageMenuItem,
|
|
581
|
+
BaseSystemMenuItemProvider.resourceKeyMenuItem,
|
|
582
|
+
BaseSystemMenuItemProvider.metaEntityMenuItem,
|
|
583
|
+
BaseSystemMenuItemProvider.parameterValueMenuItem,
|
|
584
|
+
BaseSystemMenuItemProvider.userGroupMenuItem,
|
|
585
|
+
BaseSystemMenuItemProvider.userGroupDefinitionMenuItem,
|
|
586
|
+
BaseSystemMenuItemProvider.parameterMenuItem,
|
|
587
|
+
BaseSystemMenuItemProvider.parameterSectionMenuItem,
|
|
588
|
+
BaseSystemMenuItemProvider.metaEntityFormMenuItem,
|
|
589
|
+
BaseSystemMenuItemProvider.metaEntityRelationMenuItem,
|
|
590
|
+
]),
|
|
591
|
+
new MenuItem('Marsow EDI', undefined, 'cog', [
|
|
592
|
+
BaseSystemMenuItemProvider.synchronizedCompanyMenuItem,
|
|
593
|
+
]),
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
/** Thèmes fusionnés par libellé, éléments réunis sans doublon (même lien) et filtrés par permission. */
|
|
449
597
|
getAllMenuItems(isAdmin) {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
// stores card view
|
|
455
|
-
if (this.hasAnyPermission([...this.getAdminSublinks(isAdmin).map(s => s.permissionKey)]) || isAdmin) {
|
|
456
|
-
items.push(new MenuItem('Administration', null, 'cogs', this.getAdminSublinks(isAdmin)));
|
|
457
|
-
}
|
|
458
|
-
if (this.hasAnyPermission([...this.getEDISublinks(isAdmin).map(s => s.permissionKey)]) || isAdmin) {
|
|
459
|
-
items.push(new MenuItem('Marsow EDI', null, 'cog', this.getEDISublinks(isAdmin)));
|
|
460
|
-
}
|
|
461
|
-
return items;
|
|
598
|
+
return this.merge(this.getThemes())
|
|
599
|
+
.map(theme => new MenuItem(theme.title, theme.link, theme.icon, this.getGrantedItems(this.distinctItems(theme.sublinks), isAdmin)))
|
|
600
|
+
.filter(theme => theme.sublinks.length > 0);
|
|
462
601
|
}
|
|
463
602
|
getAccessGrantedMenuItems() {
|
|
464
603
|
return [];
|
|
465
604
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
this.pushItem(
|
|
470
|
-
|
|
471
|
-
this.pushItem(items, SystemMenuItemProvider.companysMenuItem, isAdmin);
|
|
472
|
-
this.pushItem(items, SystemMenuItemProvider.suppliersMenuItem, isAdmin);
|
|
473
|
-
this.pushItem(items, SystemMenuItemProvider.tvaratesMenuItem, isAdmin);
|
|
474
|
-
return items;
|
|
605
|
+
/** Éléments affichés : ceux dont l'utilisateur a la permission (tous pour un administrateur). */
|
|
606
|
+
getGrantedItems(items, isAdmin) {
|
|
607
|
+
const granted = [];
|
|
608
|
+
(items ?? []).forEach(item => this.pushItem(granted, item, isAdmin));
|
|
609
|
+
return granted;
|
|
475
610
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
this.pushItem(items, SystemMenuItemProvider.customFieldGroupMenuItem, isAdmin);
|
|
486
|
-
this.pushItem(items, SystemMenuItemProvider.resourceLanguageMenuItem, isAdmin);
|
|
487
|
-
this.pushItem(items, SystemMenuItemProvider.resourceKeyMenuItem, isAdmin);
|
|
488
|
-
this.pushItem(items, SystemMenuItemProvider.metaEntityMenuItem, isAdmin);
|
|
489
|
-
this.pushItem(items, SystemMenuItemProvider.gridColumnConfigMenuItem, isAdmin);
|
|
490
|
-
this.pushItem(items, SystemMenuItemProvider.globalParameterMenuItem, isAdmin);
|
|
491
|
-
this.pushItem(items, SystemMenuItemProvider.userGroupMenuItem, isAdmin);
|
|
492
|
-
this.pushItem(items, SystemMenuItemProvider.presentationProfileMenuItem, isAdmin);
|
|
493
|
-
return items;
|
|
611
|
+
/** Éléments sans doublon : le premier élément de chaque lien est gardé. */
|
|
612
|
+
distinctItems(items) {
|
|
613
|
+
const links = new Set();
|
|
614
|
+
return (items ?? []).filter(item => {
|
|
615
|
+
if (item.link !== undefined && links.has(item.link))
|
|
616
|
+
return false;
|
|
617
|
+
links.add(item.link);
|
|
618
|
+
return true;
|
|
619
|
+
});
|
|
494
620
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseSystemMenuService, deps: [{ token: i1.PermissionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
622
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseSystemMenuService }); }
|
|
623
|
+
}
|
|
624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseSystemMenuService, decorators: [{
|
|
625
|
+
type: Injectable
|
|
626
|
+
}], ctorParameters: () => [{ type: i1.PermissionService }] });
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Menu du module System : le menu des entités est généré dans BaseSystemMenuService (thèmes de
|
|
630
|
+
* system-root/menu.txt) ; s'y ajoutent ici les écrans sans contrôleur propre.
|
|
631
|
+
*/
|
|
632
|
+
class SystemMenuService extends BaseSystemMenuService {
|
|
633
|
+
getThemes() {
|
|
634
|
+
return [
|
|
635
|
+
...super.getThemes(),
|
|
636
|
+
new MenuItem('Administration', undefined, 'cogs', [
|
|
637
|
+
SystemMenuItemProvider.configMenuItem,
|
|
638
|
+
SystemMenuItemProvider.gridColumnConfigMenuItem,
|
|
639
|
+
SystemMenuItemProvider.presentationProfileMenuItem,
|
|
640
|
+
]),
|
|
641
|
+
];
|
|
499
642
|
}
|
|
500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemMenuService, deps:
|
|
643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemMenuService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
501
644
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemMenuService }); }
|
|
502
645
|
}
|
|
503
646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemMenuService, decorators: [{
|
|
504
647
|
type: Injectable
|
|
505
|
-
}]
|
|
648
|
+
}] });
|
|
506
649
|
|
|
507
650
|
class SystemRootModule {
|
|
508
651
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
509
652
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: SystemRootModule, imports: [CommonModule] }); }
|
|
510
653
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemRootModule, providers: [
|
|
511
|
-
SystemMenuService
|
|
654
|
+
SystemMenuService,
|
|
655
|
+
// Menu du module System, réuni aux menus des autres modules par ApplicationMenuService.
|
|
656
|
+
{ provide: MODULE_MENU_SERVICES, useExisting: SystemMenuService, multi: true }
|
|
512
657
|
], imports: [CommonModule] }); }
|
|
513
658
|
}
|
|
514
659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SystemRootModule, decorators: [{
|
|
@@ -516,7 +661,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
516
661
|
args: [{
|
|
517
662
|
imports: [CommonModule],
|
|
518
663
|
providers: [
|
|
519
|
-
SystemMenuService
|
|
664
|
+
SystemMenuService,
|
|
665
|
+
// Menu du module System, réuni aux menus des autres modules par ApplicationMenuService.
|
|
666
|
+
{ provide: MODULE_MENU_SERVICES, useExisting: SystemMenuService, multi: true }
|
|
520
667
|
]
|
|
521
668
|
}]
|
|
522
669
|
}] });
|
|
@@ -525,5 +672,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
525
672
|
* Generated bundle index. Do not edit.
|
|
526
673
|
*/
|
|
527
674
|
|
|
528
|
-
export { SystemEntityKeys, SystemMenuItemProvider, SystemMenuService, SystemPermissions, SystemRootModule };
|
|
675
|
+
export { BaseSystemEntityKeys, BaseSystemMenuItemProvider, BaseSystemMenuService, SystemEntityKeys, SystemMenuItemProvider, SystemMenuService, SystemPermissions, SystemRootModule };
|
|
529
676
|
//# sourceMappingURL=dflat-core-web-system-root.mjs.map
|