@ieeesa-npm/tenants 0.0.1
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/README.md +24 -0
- package/esm2022/ieeesa-npm-tenants.mjs +5 -0
- package/esm2022/lib/assets/constants.json +134 -0
- package/esm2022/lib/assets/tenant-validations.mjs +10 -0
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +420 -0
- package/esm2022/lib/models/app-type-config.model.mjs +2 -0
- package/esm2022/lib/models/app-type.model.mjs +7 -0
- package/esm2022/lib/models/features.model.mjs +2 -0
- package/esm2022/lib/models/form-status.model.mjs +7 -0
- package/esm2022/lib/models/permission-type.model.mjs +12 -0
- package/esm2022/lib/models/table-column-schema-view-tenant-list.model.mjs +16 -0
- package/esm2022/lib/models/tenant.model.mjs +2 -0
- package/esm2022/lib/models/tenants-permission.model.mjs +2 -0
- package/esm2022/lib/models/tenants.model.mjs +2 -0
- package/esm2022/lib/services/tenant-applications.service.mjs +207 -0
- package/esm2022/lib/services/tenant-permissions-map.service.mjs +31 -0
- package/esm2022/lib/services/tenant-permissions.service.mjs +38 -0
- package/esm2022/lib/tenant-applications.component.mjs +14 -0
- package/esm2022/lib/tenant-applications.module.mjs +16 -0
- package/esm2022/public-api.mjs +14 -0
- package/fesm2022/ieeesa-npm-tenants.mjs +906 -0
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/assets/tenant-validations.d.ts +8 -0
- package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +113 -0
- package/lib/models/app-type-config.model.d.ts +14 -0
- package/lib/models/app-type.model.d.ts +4 -0
- package/lib/models/features.model.d.ts +15 -0
- package/lib/models/form-status.model.d.ts +4 -0
- package/lib/models/permission-type.model.d.ts +8 -0
- package/lib/models/table-column-schema-view-tenant-list.model.d.ts +20 -0
- package/lib/models/tenant.model.d.ts +23 -0
- package/lib/models/tenants-permission.model.d.ts +9 -0
- package/lib/models/tenants.model.d.ts +23 -0
- package/lib/services/tenant-applications.service.d.ts +149 -0
- package/lib/services/tenant-permissions-map.service.d.ts +13 -0
- package/lib/services/tenant-permissions.service.d.ts +22 -0
- package/lib/tenant-applications.component.d.ts +5 -0
- package/lib/tenant-applications.module.d.ts +6 -0
- package/package.json +25 -0
- package/public-api.d.ts +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Tenants
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project tenants` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project tenants`.
|
|
8
|
+
> Note: Don't forget to add `--project tenants` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build tenants` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build tenants`, go to the dist folder `cd dist/tenants` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test tenants` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWVlZXNhLW5wbS10ZW5hbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdGVuYW50cy9zcmMvaWVlZXNhLW5wbS10ZW5hbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"createTenant": {
|
|
3
|
+
"heading": "New Application",
|
|
4
|
+
"label": {
|
|
5
|
+
"leftButtonLabel": "Cancel",
|
|
6
|
+
"rightButtonLabel": "Save",
|
|
7
|
+
"appTitle": "Application Title",
|
|
8
|
+
"appId": "Application Id",
|
|
9
|
+
"appLogo": "Application Logo",
|
|
10
|
+
"appHeading": "Application Heading",
|
|
11
|
+
"appDescription": "Application Description",
|
|
12
|
+
"appBgColor": "Application Background Color",
|
|
13
|
+
"appHelpLink": "Application Help Link",
|
|
14
|
+
"featuresList": "Selection of list of features",
|
|
15
|
+
"featureVersion": "Feature Version",
|
|
16
|
+
"domainURL": "Domain URL",
|
|
17
|
+
"appType": "Application Type",
|
|
18
|
+
"ariaLabel": {
|
|
19
|
+
"appTitle": "Application Title",
|
|
20
|
+
"appId": "Application Id",
|
|
21
|
+
"appLogo": "Application Logo",
|
|
22
|
+
"appHeading": "Application Heading",
|
|
23
|
+
"appDescription": "Application Description",
|
|
24
|
+
"appBgColor": "Application Background Color",
|
|
25
|
+
"appHelpLink": "Application Help Link",
|
|
26
|
+
"featuresList": "Selection of list of features",
|
|
27
|
+
"featureVersion": "Feature Version",
|
|
28
|
+
"domainURL": "Domain URL",
|
|
29
|
+
"appType": "Application Type"
|
|
30
|
+
},
|
|
31
|
+
"ariaDescribedById": {
|
|
32
|
+
"appTitle": "ariaApplicationTitle",
|
|
33
|
+
"appId": "ariaApplicationId",
|
|
34
|
+
"appLogo": "ariaApplicationLogo",
|
|
35
|
+
"appHeading": "ariaApplicationHeading",
|
|
36
|
+
"appDescription": "ariaApplicationDescription",
|
|
37
|
+
"appBgColor": "ariaApplicationBackgroundColor",
|
|
38
|
+
"appHelpLink": "ariaApplicationHelpLink",
|
|
39
|
+
"featuresList": "ariaFeatures",
|
|
40
|
+
"featureVersion": "ariaFeatureVersion",
|
|
41
|
+
"domainURL": "ariaDomainURL",
|
|
42
|
+
"appType": "ariaApplicationType"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"message": {
|
|
46
|
+
"error": {
|
|
47
|
+
"required": "This field is required.",
|
|
48
|
+
"invalidColor": "Invalid color.",
|
|
49
|
+
"invalidFile": "Invalid file format. Please upload SVG, PNG and JPG file format only.",
|
|
50
|
+
"limit": {
|
|
51
|
+
"appTitleMaxChars": "Application Title must not be greater than 50 characters long.",
|
|
52
|
+
"appIdMaxChars": "Application Id must not be greater than 10 characters long.",
|
|
53
|
+
"appHeadingMaxChars": "Application Heading must not be greater than 150 characters long.",
|
|
54
|
+
"appDescriptionMaxChars": "Application Description must not be greater than 500 characters long.",
|
|
55
|
+
"appLogoMaxSize": "File size exceeds the maximum limit."
|
|
56
|
+
},
|
|
57
|
+
"pattern": {
|
|
58
|
+
"appId": "It should only allow Alphanumeric characters.",
|
|
59
|
+
"appHelpLink": "Invalid URL.",
|
|
60
|
+
"appDomainUrl": "Invalid URL."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"success": {
|
|
64
|
+
"submission": "has been created successfully."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"supportText": {
|
|
68
|
+
"appTitle": "Enter application name.",
|
|
69
|
+
"appId": "Enter application id.",
|
|
70
|
+
"appLogo": "Upload application logo.",
|
|
71
|
+
"appHeading": "Enter application heading.",
|
|
72
|
+
"appDescription": "Enter application description.",
|
|
73
|
+
"appBgColor": "Choose background color.",
|
|
74
|
+
"appHelpLink": "Enter application help link.",
|
|
75
|
+
"featuresList": "Select reusable feature(s).",
|
|
76
|
+
"featureVersion": "Select feature version.",
|
|
77
|
+
"domainURL": "Enter domain URL."
|
|
78
|
+
},
|
|
79
|
+
"errors": {
|
|
80
|
+
"2003": "Application Type not found.",
|
|
81
|
+
"2026": "List of features not found.",
|
|
82
|
+
"2028": "Application Title is required.",
|
|
83
|
+
"2029": "Application Logo is required.",
|
|
84
|
+
"2030": "Application Heading is required.",
|
|
85
|
+
"2031": "Application Description is required.",
|
|
86
|
+
"2032": "Background color is required.",
|
|
87
|
+
"2033": "Help link is required.",
|
|
88
|
+
"2034": "Domain Url is required.",
|
|
89
|
+
"2035": "Application Type is required.",
|
|
90
|
+
"2036": "Application Features are required.",
|
|
91
|
+
"2037": "Application Title must not be greater than 50 characters long.",
|
|
92
|
+
"2038": "Application Heading must not be greater than 150 characters long",
|
|
93
|
+
"2039": "Application Description must not be greater than 500 characters long.",
|
|
94
|
+
"2040": "Invalid URL.",
|
|
95
|
+
"2041": "Application Id is required.",
|
|
96
|
+
"2042": "Application Id must not be greater than 10 characters long",
|
|
97
|
+
"2043": "Application Id contains invalid characters. Please enter alphanumeric characters only.",
|
|
98
|
+
"2044": "Invalid URL.",
|
|
99
|
+
"2045": "Application Id must be unique.",
|
|
100
|
+
"2046": "Application Features are required.",
|
|
101
|
+
"2047": "Application Type is required.",
|
|
102
|
+
"2048": "Features Not Found.",
|
|
103
|
+
"2049": "Unable to display tenants. Please try again latter."
|
|
104
|
+
},
|
|
105
|
+
"buttons": {
|
|
106
|
+
"addApplicationLabel": "Add Application"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"viewTenants": {
|
|
110
|
+
"tenantsTitle": "Tenant Application Management",
|
|
111
|
+
"addTenant": "Add Application",
|
|
112
|
+
"emptyFieldValueReplacedBy": "-",
|
|
113
|
+
"createTenantsIcon": "assets/images/sprites/sprites.svg#icon-create-group-white-bg",
|
|
114
|
+
"pageSizeOptions": [10, 20, 50, 100],
|
|
115
|
+
"ariaLabel": {
|
|
116
|
+
"add": "Add Application"
|
|
117
|
+
},
|
|
118
|
+
"tableColumns": {
|
|
119
|
+
"appId": "Application Id",
|
|
120
|
+
"appTitle": "Application Title",
|
|
121
|
+
"appDescription": "Application Description",
|
|
122
|
+
"features": "Features",
|
|
123
|
+
"status": "Status"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"errors": {
|
|
127
|
+
"2049": "Unable to display tenants. Please try again latter."
|
|
128
|
+
},
|
|
129
|
+
"routeConfigPath": {
|
|
130
|
+
"viewTenants": "tenants/view-tenants-list",
|
|
131
|
+
"viewTenantDetails": "tenants/view-tenants-list/view-tenant-details",
|
|
132
|
+
"createTenant": "tenants/create-tenant"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable no-useless-escape */
|
|
2
|
+
export const TenantsValidationPatterns = {
|
|
3
|
+
appTitleMaxLength: 50,
|
|
4
|
+
appIdMaxLength: 10,
|
|
5
|
+
appHeadingMaxLength: 150,
|
|
6
|
+
appDescriptionMaxLength: 500,
|
|
7
|
+
url: /^https:\/\//,
|
|
8
|
+
alphaNumeric: /^[a-zA-Z0-9]+$/
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVuYW50LXZhbGlkYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdGVuYW50cy9zcmMvbGliL2Fzc2V0cy90ZW5hbnQtdmFsaWRhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0NBQXNDO0FBQ3RDLE1BQU0sQ0FBQyxNQUFNLHlCQUF5QixHQUFHO0lBQ3JDLGlCQUFpQixFQUFFLEVBQUU7SUFDckIsY0FBYyxFQUFFLEVBQUU7SUFDbEIsbUJBQW1CLEVBQUUsR0FBRztJQUN4Qix1QkFBdUIsRUFBRSxHQUFHO0lBQzVCLEdBQUcsRUFBRSxhQUFhO0lBQ2xCLFlBQVksRUFBRSxnQkFBZ0I7Q0FDL0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXVzZWxlc3MtZXNjYXBlICovXHJcbmV4cG9ydCBjb25zdCBUZW5hbnRzVmFsaWRhdGlvblBhdHRlcm5zID0ge1xyXG4gICAgYXBwVGl0bGVNYXhMZW5ndGg6IDUwLFxyXG4gICAgYXBwSWRNYXhMZW5ndGg6IDEwLFxyXG4gICAgYXBwSGVhZGluZ01heExlbmd0aDogMTUwLFxyXG4gICAgYXBwRGVzY3JpcHRpb25NYXhMZW5ndGg6IDUwMCxcclxuICAgIHVybDogL15odHRwczpcXC9cXC8vLFxyXG4gICAgYWxwaGFOdW1lcmljOiAvXlthLXpBLVowLTldKyQvXHJcbiAgfTsiXX0=
|