@indigina/ui-kit 1.1.529 → 1.1.530
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.
|
@@ -16314,7 +16314,7 @@ class KitCreateEntityDialogComponent extends DialogContentBase {
|
|
|
16314
16314
|
}
|
|
16315
16315
|
createEntity() {
|
|
16316
16316
|
this.isSaving.set(true);
|
|
16317
|
-
this.entityService.save({ name: this.form.controls['name'].value }).pipe(finalize(() => this.isSaving.set(false))).subscribe((data) => {
|
|
16317
|
+
this.entityService.save({ name: this.form.controls['name'].value.trim() }).pipe(finalize(() => this.isSaving.set(false))).subscribe((data) => {
|
|
16318
16318
|
this.dialog.close(data);
|
|
16319
16319
|
});
|
|
16320
16320
|
}
|
|
@@ -16514,6 +16514,7 @@ class KitUserRoleDetailsComponent {
|
|
|
16514
16514
|
validators: [
|
|
16515
16515
|
Validators.required,
|
|
16516
16516
|
Validators.maxLength(64),
|
|
16517
|
+
kitWhitespaceValidator(),
|
|
16517
16518
|
],
|
|
16518
16519
|
});
|
|
16519
16520
|
this.userRoleDetails = toSignal(this.store.select(KIT_USER_ROLES_STATE_TOKEN).pipe(map(({ roleDetails }) => roleDetails)), { initialValue: { loading: false, data: null } });
|
|
@@ -16527,7 +16528,7 @@ class KitUserRoleDetailsComponent {
|
|
|
16527
16528
|
if (!pending || !original) {
|
|
16528
16529
|
return false;
|
|
16529
16530
|
}
|
|
16530
|
-
if (this.nameValue() !== original.name) {
|
|
16531
|
+
if (this.nameValue().trim() !== original.name) {
|
|
16531
16532
|
return true;
|
|
16532
16533
|
}
|
|
16533
16534
|
return !this.permissionsEqual(pending.permissions, original.permissions);
|
|
@@ -16590,7 +16591,7 @@ class KitUserRoleDetailsComponent {
|
|
|
16590
16591
|
return;
|
|
16591
16592
|
}
|
|
16592
16593
|
;
|
|
16593
|
-
this.updated.emit({ ...pending, name: this.nameControl.value });
|
|
16594
|
+
this.updated.emit({ ...pending, name: this.nameControl.value.trim() });
|
|
16594
16595
|
}
|
|
16595
16596
|
deleteRole(name) {
|
|
16596
16597
|
this.kitDialogService.openDialog({
|