@decaf-ts/for-angular 0.0.87 → 0.0.89
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.
|
@@ -5131,8 +5131,11 @@ class NgxPageDirective extends NgxComponentDirective {
|
|
|
5131
5131
|
menu = this.menu;
|
|
5132
5132
|
const activeMenu = menu.find((item) => item?.url?.includes(route));
|
|
5133
5133
|
if (activeMenu) {
|
|
5134
|
-
|
|
5135
|
-
|
|
5134
|
+
let label = `${(activeMenu?.title || activeMenu?.label || '').toLowerCase()}`;
|
|
5135
|
+
if (!label.startsWith('menu.')) {
|
|
5136
|
+
label = `menu.${label}`;
|
|
5137
|
+
}
|
|
5138
|
+
const title = `${await this.translate(label)} ${this.appName ? `- ${this.appName}` : ''}`;
|
|
5136
5139
|
this.titleService.setTitle(title);
|
|
5137
5140
|
if (!this.title)
|
|
5138
5141
|
this.title = title;
|
|
@@ -6957,6 +6960,12 @@ let ModalComponent = class ModalComponent extends NgxParentComponentDirective {
|
|
|
6957
6960
|
* @returns {Promise<void>} - A promise that resolves when the event is handled.
|
|
6958
6961
|
*/
|
|
6959
6962
|
async handleEvent(event) {
|
|
6963
|
+
// if (event instanceof Event || event.name === ComponentEventNames.Refresh) {
|
|
6964
|
+
// if (event instanceof Event) {
|
|
6965
|
+
// event.stopImmediatePropagation();
|
|
6966
|
+
// }
|
|
6967
|
+
// return;
|
|
6968
|
+
// }
|
|
6960
6969
|
if (event instanceof Event) {
|
|
6961
6970
|
event.stopImmediatePropagation();
|
|
6962
6971
|
}
|
|
@@ -7558,6 +7567,7 @@ let CrudFieldComponent = class CrudFieldComponent extends NgxFormFieldDirective
|
|
|
7558
7567
|
*/
|
|
7559
7568
|
async openSelectOptions(event, selectInterface) {
|
|
7560
7569
|
if (selectInterface === SelectFieldInterfaces.MODAL) {
|
|
7570
|
+
this.updateOn = 'blur';
|
|
7561
7571
|
event.preventDefault();
|
|
7562
7572
|
event.stopImmediatePropagation();
|
|
7563
7573
|
const loading = await this.loadingController.create({});
|
|
@@ -11904,11 +11914,14 @@ let ListComponent = class ListComponent extends NgxComponentDirective {
|
|
|
11904
11914
|
if (!data)
|
|
11905
11915
|
data = this.items;
|
|
11906
11916
|
this.skeletonData = new Array(1);
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11917
|
+
// Avoid emitting refresh events when the component is a child of a modal to prevent
|
|
11918
|
+
if (!this.isModalChild) {
|
|
11919
|
+
this.refreshEvent.emit({
|
|
11920
|
+
name: ComponentEventNames.Refresh,
|
|
11921
|
+
data: data || [],
|
|
11922
|
+
component: this.componentName,
|
|
11923
|
+
});
|
|
11924
|
+
}
|
|
11912
11925
|
}
|
|
11913
11926
|
/**
|
|
11914
11927
|
* @description Emits a click event for a list item.
|