Skip to content

Commit 943f02e

Browse files
authored
Merge pull request #137 from netgrif/dev
Release/6.2.3
2 parents 37e8d40 + 48279d5 commit 943f02e

File tree

32 files changed

+181
-51
lines changed

32 files changed

+181
-51
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
Full Changelog: [https://github.com/netgrif/components/commits/v6.2.2](https://github.com/netgrif/components/commits/v6.2.2)
8+
Full Changelog: [https://github.com/netgrif/components/commits/v6.2.3](https://github.com/netgrif/components/commits/v6.2.3)
9+
10+
## [6.2.3](https://github.com/netgrif/components/releases/tag/v6.2.3) (2022-10-06)
11+
12+
### Fixed
13+
14+
- [NAE-1367] Boolean does not have desc
15+
- [NAE-1537] It is not possible to copy a value from a visible enumeration
16+
- [NAE-1729] User field null value on frontend throwing error
17+
- [NAE-1731] Missing write access to /home/.../node_modules/@netgrif/components
18+
- [NAE-1732] LDAP group role assignment component tile tooltip
19+
- [NAE-1734] Overlay on login page
20+
- [NAE-1736] Rich textarea fix cursor
21+
- [NAE-1737] Bug i18n field placeholder
22+
- [NAE-1738] Multichoice map autocomplete init key
23+
- [NAE-1739] Currency symbol is displayed on new line, when editing currency field
24+
- [NAE-1740] Disable "create case" button, while case is creating
25+
- [NAE-1741] 'Undefined' error on frontend when checking i18n translation equality
26+
- [NAE-1742] I18nField throws error on frontend when its value is null
27+
- [NAE-1743] File preview change to null object
28+
929

1030
## [6.2.2](https://github.com/netgrif/components/releases/tag/v6.2.2) (2022-09-28)
1131

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netgrif/components-project",
3-
"version": "6.2.2",
3+
"version": "6.2.3",
44
"description": "Netgrif Application Engine Frontend project. Project includes angular libraries as base for NAE applications.",
55
"homepage": "https://components.netgrif.com",
66
"license": "SEE LICENSE IN LICENSE",
@@ -47,7 +47,7 @@
4747
"ncc:prod-build": "npm run ncc:full-test && npm run ncc:build && npm run ncc:doc",
4848
"ncc:prod-build-without-tests": "npm run ncc:build && npm run ncc:doc",
4949
"nc:clean": "node projects/netgrif-components/src/scripts/delete-local-build-link.js",
50-
"nc:build": "ng build netgrif-components --configuration production && npm run nc:build-schematics",
50+
"nc:build": "npm run nc:clean && ng build netgrif-components --configuration production && npm run nc:build-schematics",
5151
"nc:local-build": "npm run nc:build && npm i ./dist/netgrif-components --save-optional --legacy-peer-deps",
5252
"nc:build-schematics": "node projects/netgrif-components/src/scripts/build-schematics.js",
5353
"nc:lint": "ng lint netgrif-components",

projects/netgrif-components-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netgrif/components-core",
3-
"version": "6.2.2",
3+
"version": "6.2.3",
44
"description": "Netgrif Application engine frontend core Angular library",
55
"homepage": "https://components.netgrif.com",
66
"license": "SEE LICENSE IN LICENSE",

projects/netgrif-components-core/src/assets/i18n/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@
387387
},
388388
"ldapGroup-list": {
389389
"noLdapGroupsWereFound": "Keine LDAP Gruppe wurde gefunden",
390-
"listTitle": "LDAP Gruppen"
390+
"listTitle": "LDAP Gruppen",
391+
"count": "Anzahl der Gruppen"
391392
},
392393
"process-list": {
393394
"newestVersion": "Neuste Version",

projects/netgrif-components-core/src/assets/i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@
387387
},
388388
"ldapGroup-list": {
389389
"noLdapGroupsWereFound": "No LDAP group was found",
390-
"listTitle": "Ldap Groups"
390+
"listTitle": "LDAP groups",
391+
"count": "Number of groups"
392+
391393
},
392394
"process-list": {
393395
"newestVersion": "Newest version",

projects/netgrif-components-core/src/assets/i18n/sk.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@
387387
},
388388
"ldapGroup-list": {
389389
"noLdapGroupsWereFound": "Žiadna LDAP skupina nebola najdená",
390-
"listTitle": "Ldap Skupiny"
390+
"listTitle": "LDAP Skupiny",
391+
"count": "Počet skupín"
391392
},
392393
"process-list": {
393394
"newestVersion": "Najnovšia verzia",

projects/netgrif-components-core/src/lib/authentication/components/abstract-authentication-overlay.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export abstract class AbstractAuthenticationOverlayComponent implements OnInit,
2727
this.userService.user$.subscribe(user => {
2828
if (!!user && !!user.id && user.id.length > 0) {
2929
this.redirect(!active);
30+
} else if (!active) {
31+
this._spinnerOverlay.spin$.next(false);
3032
}
3133
});
3234
});

projects/netgrif-components-core/src/lib/data-fields/file-field/abstract-file-field.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export abstract class AbstractFileFieldComponent extends AbstractDataFieldCompon
167167
}
168168
}
169169
this.updatedFieldSubscription = this.dataField.updated.subscribe(() => {
170+
this.previewSource = undefined;
170171
if (!!this.filePreview
171172
&& !!this.dataField.value
172173
&& !!this.dataField.value.name) {

projects/netgrif-components-core/src/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ export abstract class AbstractI18nDividerFieldComponent {
1919
}
2020
}
2121

22+
public isDividerLGBTQ(): boolean {
23+
if (this.dividerPropertyEnabled('dividerLGBTQ')) {
24+
return this.dividerI18nField.component.properties.dividerLGBTQ === 'true';
25+
}
26+
return false;
27+
}
28+
2229
public getDividerFontSize(): string {
2330
if (this.dividerPropertyEnabled('fontSize')) {
2431
return this.dividerI18nField.component.properties.fontSize + 'px';

projects/netgrif-components-core/src/lib/data-fields/i18n-field/models/i18n-field.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export class I18nField extends DataField<I18nFieldValue> {
3636
}
3737

3838
private static translationsEquality(a: I18nFieldValue, b: I18nFieldValue): boolean {
39-
const aKeys = Object.keys(a.translations).sort();
40-
const bKeys = Object.keys(b.translations).sort();
39+
const aKeys = !!a.translations ? Object.keys(a.translations).sort() : [];
40+
const bKeys = !!b.translations ? Object.keys(b.translations).sort() : [];
4141
if (aKeys.length !== bKeys.length
4242
|| !aKeys.every((element, index) => {
4343
return element === bKeys[index];
@@ -166,14 +166,14 @@ export class I18nField extends DataField<I18nFieldValue> {
166166
private validTranslationRequired(countries: Array<string>): ValidatorFn {
167167
return (fc: FormControl): { [key: string]: any } | null => {
168168
return countries.every(languageCode => languageCode in fc.value.translations)
169-
? (null) : ({translationRequired: true});
169+
? null : ({translationRequired: true});
170170
};
171171
}
172172

173173
private validTranslationOnly(countries: Array<string>): ValidatorFn {
174174
return (fc: FormControl): { [key: string]: any } | null => {
175175
return Object.keys(fc.value.translations).every(translation => countries.includes(translation))
176-
? (null) : ({translationOnly: true});
176+
? null : ({translationOnly: true});
177177
};
178178
}
179179

0 commit comments

Comments
 (0)