@decaf-ts/for-angular 0.0.88 → 0.0.90

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
- const label = `${(activeMenu?.title || activeMenu?.label || '').toLowerCase()}`;
5135
- const title = `${await this.translate(label ? 'menu.' + label : label)} ${this.appName ? `- ${this.appName}` : ''}`;
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;
@@ -5415,7 +5418,7 @@ class NgxModelPageDirective extends NgxPageDirective {
5415
5418
  const properties = this.getModelProperties(constructor);
5416
5419
  for (const prop of properties) {
5417
5420
  const type = this.getModelPropertyType(constructor, prop);
5418
- const context = getModelAndRepository(type);
5421
+ const context = getModelAndRepository(type) || getModelAndRepository(prop);
5419
5422
  if (!context) {
5420
5423
  acc[prop] = {};
5421
5424
  return getRepository(type, acc, prop);
@@ -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
  }