@vocollege/app 0.0.118 → 0.0.120
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/dist/modules/Services/I18n/strings.json +6 -0
- package/dist/modules/VoApi/queries/statistics.js +1 -1
- package/dist/modules/VoApi/queries/vogroups.js +1 -1
- package/dist/modules/VoHelpers.d.ts +1 -0
- package/dist/modules/VoHelpers.js +12 -1
- package/package.json +1 -1
- package/src/modules/Services/I18n/strings.json +6 -0
- package/src/modules/VoApi/queries/statistics.ts +1 -0
- package/src/modules/VoApi/queries/vogroups.ts +1 -0
- package/src/modules/VoHelpers.ts +10 -0
|
@@ -334,6 +334,7 @@
|
|
|
334
334
|
"groupAffiliation": "Grupptillhörighet",
|
|
335
335
|
"educatorCategory": "Typ av utbildare (gammal)",
|
|
336
336
|
"educatorType": "Typ av utbildare",
|
|
337
|
+
"employerType": "Typ av arbetsgivare",
|
|
337
338
|
"currentGroup": "Aktuell grupp",
|
|
338
339
|
"noGroup": "Ingen grupp är vald",
|
|
339
340
|
"startPage": "Startsida",
|
|
@@ -361,6 +362,11 @@
|
|
|
361
362
|
"employer": "Arbetsgivare",
|
|
362
363
|
"other": "Annat"
|
|
363
364
|
},
|
|
365
|
+
"employerTypes": {
|
|
366
|
+
"kommun": "Kommun",
|
|
367
|
+
"privat": "Privat",
|
|
368
|
+
"region": "Region"
|
|
369
|
+
},
|
|
364
370
|
"educatorTypes": {
|
|
365
371
|
"kom_gym": "Kommunal Gymnasium",
|
|
366
372
|
"fri_gym": "Friskola, Gymnasium",
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.GET_CERTIFICATIONS_STATISTICS = exports.GET_GENERAL_STATISTICS = exports.GET_GROUP_FIELDS = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_GROUP_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n certified\n created_at\n }\n"], ["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n certified\n created_at\n }\n"])));
|
|
9
|
+
exports.GET_GROUP_FIELDS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n employer_type\n certified\n created_at\n }\n"], ["\n fragment GroupFields on Group {\n id\n name\n title\n category\n educator_type\n employer_type\n certified\n created_at\n }\n"])));
|
|
10
10
|
exports.GET_GENERAL_STATISTICS = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query GeneralStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n regions {\n ...GroupFields\n }\n localColleges {\n ...GroupFields\n }\n employers {\n ...GroupFields\n }\n educators {\n ...GroupFields\n }\n educations {\n id\n title\n total_usages\n # groups {\n # id\n # title\n # educator_type\n # educations {\n # id\n # title\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # }\n }\n # educatorsGymVO {\n # ...GroupFields\n # }\n # educatorsGymBF {\n # ...GroupFields\n # }\n # educatorsVuxVO {\n # ...GroupFields\n # }\n # educatorsVuxBF {\n # ...GroupFields\n # }\n # educatorsFolkhogskolor {\n # ...GroupFields\n # }\n # educatorsYrkeshogskolor {\n # ...GroupFields\n # }\n }\n }\n ", "\n"], ["\n query GeneralStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n regions {\n ...GroupFields\n }\n localColleges {\n ...GroupFields\n }\n employers {\n ...GroupFields\n }\n educators {\n ...GroupFields\n }\n educations {\n id\n title\n total_usages\n # groups {\n # id\n # title\n # educator_type\n # educations {\n # id\n # title\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # }\n }\n # educatorsGymVO {\n # ...GroupFields\n # }\n # educatorsGymBF {\n # ...GroupFields\n # }\n # educatorsVuxVO {\n # ...GroupFields\n # }\n # educatorsVuxBF {\n # ...GroupFields\n # }\n # educatorsFolkhogskolor {\n # ...GroupFields\n # }\n # educatorsYrkeshogskolor {\n # ...GroupFields\n # }\n }\n }\n ", "\n"])), exports.GET_GROUP_FIELDS);
|
|
11
11
|
exports.GET_CERTIFICATIONS_STATISTICS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query CertificationsStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n certifiedRegions {\n id\n name\n title\n certified\n created_at\n # groups {\n # id\n # title\n # certified\n # groups {\n # id\n # title\n # certified\n # }\n # }\n }\n certifiedLocalColleges {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n }\n }\n certifiedEducators {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n parentGroups {\n id\n title\n certified\n }\n }\n }\n certifiedEducations {\n education_id\n education_certified\n education_title\n educator_id\n educator_title\n educator_certified\n local_college_id\n local_college_title\n local_college_certified\n region_id\n region_title\n region_certified\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # name\n # title\n # parentGroups {\n # id\n # name\n # title\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n }\n # certifications {\n # # id\n # # name\n # # title\n # # certified\n # # created_at\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # }\n # # }\n # # educations {\n # id\n # title\n # # pivot {\n # # education_id\n # # education_usage_id\n # # education_usage_type\n # # field\n # # certified\n # # }\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # title\n # certified\n # parentGroups {\n # id\n # title\n # certified\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # # }\n # }\n }\n }\n"], ["\n query CertificationsStatistics($filters: StatisticsFilters) {\n statistics(filters: $filters) {\n certifiedRegions {\n id\n name\n title\n certified\n created_at\n # groups {\n # id\n # title\n # certified\n # groups {\n # id\n # title\n # certified\n # }\n # }\n }\n certifiedLocalColleges {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n }\n }\n certifiedEducators {\n id\n name\n title\n certified\n created_at\n parentGroups {\n id\n name\n title\n certified\n parentGroups {\n id\n title\n certified\n }\n }\n }\n certifiedEducations {\n education_id\n education_certified\n education_title\n educator_id\n educator_title\n educator_certified\n local_college_id\n local_college_title\n local_college_certified\n region_id\n region_title\n region_certified\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # name\n # title\n # parentGroups {\n # id\n # name\n # title\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n }\n # certifications {\n # # id\n # # name\n # # title\n # # certified\n # # created_at\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # parentGroups {\n # # id\n # # title\n # # certified\n # # }\n # # }\n # # educations {\n # id\n # title\n # # pivot {\n # # education_id\n # # education_usage_id\n # # education_usage_type\n # # field\n # # certified\n # # }\n # groups {\n # id\n # name\n # title\n # certified\n # created_at\n # parentGroups {\n # id\n # title\n # certified\n # parentGroups {\n # id\n # title\n # certified\n # }\n # }\n # pivot {\n # education_id\n # education_usage_id\n # education_usage_type\n # field\n # certified\n # }\n # }\n # # }\n # }\n }\n }\n"])));
|
|
12
12
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.GET_GROUPS_PERMISSIONS = exports.GET_GROUPS_ROLES = exports.GET_GROUPS_ROLE = exports.GET_GROUPS_ACL = exports.GET_GROUPS = exports.GET_AVAILABLE_GROUPS = exports.GET_GROUP = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_GROUP = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"], ["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"])));
|
|
9
|
+
exports.GET_GROUP = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n employer_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"], ["\n query Group($id: ID!, $categories: [String]) {\n group(id: $id) {\n id\n name\n title\n description\n body\n category\n docs\n website\n educator_category\n educator_type\n employer_type\n certified\n status\n url\n created_at\n updated_at\n parentGroupId\n parentGroups {\n id\n name\n title\n category\n }\n location {\n id\n latitude\n longitude\n }\n logo {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo2 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n logo3 {\n id\n title\n filename\n filesize\n filetype\n url\n }\n users {\n id\n name\n email\n firstname\n lastname\n type\n groupRoles {\n id\n label\n type\n }\n }\n contacts {\n id\n title\n type\n }\n vopage\n front_title\n front_body\n images {\n id\n title\n filename\n filesize\n filetype\n url\n }\n educations {\n id\n title\n code\n type\n pivot {\n education_id\n education_usage_id\n education_usage_type\n field\n certified\n comments\n }\n }\n }\n allGroups(categories: $categories) {\n id\n title\n }\n }\n"])));
|
|
10
10
|
exports.GET_AVAILABLE_GROUPS = (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Group($categories: [String], $byPassMembership: Boolean) {\n allGroups(categories: $categories, byPassMembership: $byPassMembership) {\n id\n title\n category\n }\n }\n"], ["\n query Group($categories: [String], $byPassMembership: Boolean) {\n allGroups(categories: $categories, byPassMembership: $byPassMembership) {\n id\n title\n category\n }\n }\n"])));
|
|
11
11
|
exports.GET_GROUPS = (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Groups(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetGroupsOrderByClause]\n $filters: [GetGroupsFilter]\n ) {\n groups(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n title\n category\n status\n vopage\n created_at\n updated_at\n }\n }\n }\n"], ["\n query Groups(\n $search: String\n $page: Int\n $limit: Int\n $orderBy: [GetGroupsOrderByClause]\n $filters: [GetGroupsFilter]\n ) {\n groups(\n search: $search\n page: $page\n limit: $limit\n orderBy: $orderBy\n filters: $filters\n ) {\n paginatorInfo {\n total\n currentPage\n hasMorePages\n }\n data {\n id\n name\n title\n category\n status\n vopage\n created_at\n updated_at\n }\n }\n }\n"])));
|
|
12
12
|
exports.GET_GROUPS_ACL = (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query GetGroupsAcl {\n groupsRoles {\n id\n name\n label\n }\n groupsPermissions {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"], ["\n query GetGroupsAcl {\n groupsRoles {\n id\n name\n label\n }\n groupsPermissions {\n id\n subject\n name\n label\n roles {\n id\n }\n }\n }\n"])));
|
|
@@ -67,4 +67,5 @@ export declare const getObjValue: (obj: any, ...props: string[]) => any;
|
|
|
67
67
|
*/
|
|
68
68
|
export declare const convertSvgToImage: (url: string, width?: null | number, height?: null | number, format?: string, quality?: number) => Promise<unknown>;
|
|
69
69
|
export declare const getCollegeUrl: (item: any, origin?: string) => string;
|
|
70
|
+
export declare const hasSettings: (item: any, settings?: string[]) => boolean;
|
|
70
71
|
export {};
|
|
@@ -59,7 +59,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
59
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
60
|
};
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.getCollegeUrl = exports.convertSvgToImage = exports.getObjValue = exports.getGroupLogotype = exports.reducer = exports.changeObj = exports.parseState = exports.getUserString = exports.getContactName = exports.getImageDescription = exports.getImage = exports.getImageContact = exports.shortenText = exports.orderByField = exports.orderByPosition = exports.downloadFile = exports.wrapPromise = exports.createSlug2 = exports.getTemporaryId = exports.getError = exports.regexPatterns = exports.encodeQueryData = exports.localStorage = exports.createRandomString = exports.base64Url = void 0;
|
|
62
|
+
exports.hasSettings = exports.getCollegeUrl = exports.convertSvgToImage = exports.getObjValue = exports.getGroupLogotype = exports.reducer = exports.changeObj = exports.parseState = exports.getUserString = exports.getContactName = exports.getImageDescription = exports.getImage = exports.getImageContact = exports.shortenText = exports.orderByField = exports.orderByPosition = exports.downloadFile = exports.wrapPromise = exports.createSlug2 = exports.getTemporaryId = exports.getError = exports.regexPatterns = exports.encodeQueryData = exports.localStorage = exports.createRandomString = exports.base64Url = void 0;
|
|
63
63
|
var crypto_js_1 = __importDefault(require("crypto-js"));
|
|
64
64
|
var he_1 = __importDefault(require("he"));
|
|
65
65
|
var base64Url = function (string) {
|
|
@@ -502,3 +502,14 @@ var getCollegeUrl = function (item, origin) {
|
|
|
502
502
|
return currentUrl.protocol + "//" + url.join(".");
|
|
503
503
|
};
|
|
504
504
|
exports.getCollegeUrl = getCollegeUrl;
|
|
505
|
+
var hasSettings = function (item, settings) {
|
|
506
|
+
if (settings === void 0) { settings = []; }
|
|
507
|
+
if (!item.settings) {
|
|
508
|
+
return false;
|
|
509
|
+
}
|
|
510
|
+
var foundSettings = settings.filter(function (v) {
|
|
511
|
+
return item.settings.indexOf(v) > -1;
|
|
512
|
+
});
|
|
513
|
+
return foundSettings.length > 0;
|
|
514
|
+
};
|
|
515
|
+
exports.hasSettings = hasSettings;
|
package/package.json
CHANGED
|
@@ -334,6 +334,7 @@
|
|
|
334
334
|
"groupAffiliation": "Grupptillhörighet",
|
|
335
335
|
"educatorCategory": "Typ av utbildare (gammal)",
|
|
336
336
|
"educatorType": "Typ av utbildare",
|
|
337
|
+
"employerType": "Typ av arbetsgivare",
|
|
337
338
|
"currentGroup": "Aktuell grupp",
|
|
338
339
|
"noGroup": "Ingen grupp är vald",
|
|
339
340
|
"startPage": "Startsida",
|
|
@@ -361,6 +362,11 @@
|
|
|
361
362
|
"employer": "Arbetsgivare",
|
|
362
363
|
"other": "Annat"
|
|
363
364
|
},
|
|
365
|
+
"employerTypes": {
|
|
366
|
+
"kommun": "Kommun",
|
|
367
|
+
"privat": "Privat",
|
|
368
|
+
"region": "Region"
|
|
369
|
+
},
|
|
364
370
|
"educatorTypes": {
|
|
365
371
|
"kom_gym": "Kommunal Gymnasium",
|
|
366
372
|
"fri_gym": "Friskola, Gymnasium",
|
package/src/modules/VoHelpers.ts
CHANGED
|
@@ -449,3 +449,13 @@ export const getCollegeUrl = (item: any, origin?: string) => {
|
|
|
449
449
|
}
|
|
450
450
|
return currentUrl.protocol + "//" + url.join(".");
|
|
451
451
|
};
|
|
452
|
+
|
|
453
|
+
export const hasSettings = (item: any, settings: string[] = []) => {
|
|
454
|
+
if (!item.settings) {
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
let foundSettings = settings.filter((v: string) => {
|
|
458
|
+
return item.settings.indexOf(v) > -1;
|
|
459
|
+
});
|
|
460
|
+
return foundSettings.length > 0;
|
|
461
|
+
};
|