@smartsoft001/angular 2.93.0 → 2.94.0

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.
@@ -5045,7 +5045,7 @@ class PageBaseComponent {
5045
5045
  hardwareService = inject(HardwareService);
5046
5046
  // private popover: PopoverController, //TODO: to be injected
5047
5047
  static smartType = 'page';
5048
- options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
5048
+ options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
5049
5049
  _subscriptions = new Subscription();
5050
5050
  get isMobile() {
5051
5051
  return this.hardwareService.isMobile || this.hardwareService.isMobileWeb;
@@ -5072,7 +5072,7 @@ class PageBaseComponent {
5072
5072
  }
5073
5073
  }
5074
5074
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PageBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5075
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.1.0", type: PageBaseComponent, isStandalone: true, inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }], ngImport: i0 });
5075
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.1.0", type: PageBaseComponent, isStandalone: true, inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }], ngImport: i0 });
5076
5076
  }
5077
5077
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PageBaseComponent, decorators: [{
5078
5078
  type: Directive
@@ -5080,17 +5080,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
5080
5080
 
5081
5081
  class PageStandardComponent extends PageBaseComponent {
5082
5082
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PageStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
5083
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: PageStandardComponent, isStandalone: true, selector: "smart-page-standard", usesInheritance: true, ngImport: i0, template: "<!--<ion-header [hidden]=\"!options || options.hideHeader\">-->\n<!-- <ion-toolbar>-->\n<!-- <ion-buttons slot=\"start\">-->\n<!-- <ion-menu-button-->\n<!-- [hidden]=\"!options || options.hideMenuButton\"-->\n<!-- ></ion-menu-button>-->\n@if (options().showBackButton) {\n <!-- <ion-button (click)=\"back()\">-->\n <!-- <ion-icon slot=\"icon-only\" name=\"arrow-back\"> </ion-icon>-->\n <!-- </ion-button>-->\n}\n<!-- </ion-buttons>-->\n<!-- <ion-title [innerHTML]=\"options?.title ?? '' | translate\"></ion-title>-->\n\n<!-- <ion-buttons slot=\"end\">-->\n@let search = options().search;\n@if (search) {\n <smart-searchbar\n [text]=\"search.text() ?? null\"\n (textChange)=\"search.set($event)\"\n ></smart-searchbar>\n}\n\n@if (options()?.endButtons) {\n @for (btn of options()!.endButtons; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n }\n}\n\n@for (btn of appService.endButtons$ | async; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n}\n<!-- </ion-buttons>-->\n<!-- </ion-toolbar>-->\n<!--</ion-header>-->\n<!--<ion-content scroll>-->\n<ng-content></ng-content>\n<!--</ion-content>-->\n\n<ng-template #btnContent let-btn=\"btn\">\n @if (!isMobile && btn.text) {\n <!-- <ion-icon slot=\"start\" [name]=\"btn.icon\"></ion-icon>-->\n {{ btn.text | translate }}\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n } @else if (isMobile || !btn.text) {\n <!-- <ion-icon slot=\"icon-only\" [name]=\"btn.icon\"></ion-icon>-->\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: SearchbarComponent, selector: "smart-searchbar", inputs: ["show", "text"], outputs: ["showChange", "textChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5083
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: PageStandardComponent, isStandalone: true, selector: "smart-page-standard", usesInheritance: true, ngImport: i0, template: "<!--<ion-header [hidden]=\"!options || options.hideHeader\">-->\n<!-- <ion-toolbar>-->\n<!-- <ion-buttons slot=\"start\">-->\n<!-- <ion-menu-button-->\n<!-- [hidden]=\"!options || options.hideMenuButton\"-->\n<!-- ></ion-menu-button>-->\n@if (options()?.showBackButton) {\n <!-- <ion-button (click)=\"back()\">-->\n <!-- <ion-icon slot=\"icon-only\" name=\"arrow-back\"> </ion-icon>-->\n <!-- </ion-button>-->\n}\n<!-- </ion-buttons>-->\n<!-- <ion-title [innerHTML]=\"options?.title ?? '' | translate\"></ion-title>-->\n\n<!-- <ion-buttons slot=\"end\">-->\n@let search = options()?.search;\n@if (search) {\n <smart-searchbar\n [text]=\"search.text() ?? null\"\n (textChange)=\"search.set($event)\"\n ></smart-searchbar>\n}\n\n@if (options()?.endButtons) {\n @for (btn of options()!.endButtons; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n }\n}\n\n@for (btn of appService.endButtons$ | async; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n}\n<!-- </ion-buttons>-->\n<!-- </ion-toolbar>-->\n<!--</ion-header>-->\n<!--<ion-content scroll>-->\n<ng-content></ng-content>\n<!--</ion-content>-->\n\n<ng-template #btnContent let-btn=\"btn\">\n @if (!isMobile && btn.text) {\n <!-- <ion-icon slot=\"start\" [name]=\"btn.icon\"></ion-icon>-->\n {{ btn.text | translate }}\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n } @else if (isMobile || !btn.text) {\n <!-- <ion-icon slot=\"icon-only\" [name]=\"btn.icon\"></ion-icon>-->\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: SearchbarComponent, selector: "smart-searchbar", inputs: ["show", "text"], outputs: ["showChange", "textChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5084
5084
  }
5085
5085
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PageStandardComponent, decorators: [{
5086
5086
  type: Component,
5087
- args: [{ selector: 'smart-page-standard', imports: [TranslatePipe, SearchbarComponent, AsyncPipe, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--<ion-header [hidden]=\"!options || options.hideHeader\">-->\n<!-- <ion-toolbar>-->\n<!-- <ion-buttons slot=\"start\">-->\n<!-- <ion-menu-button-->\n<!-- [hidden]=\"!options || options.hideMenuButton\"-->\n<!-- ></ion-menu-button>-->\n@if (options().showBackButton) {\n <!-- <ion-button (click)=\"back()\">-->\n <!-- <ion-icon slot=\"icon-only\" name=\"arrow-back\"> </ion-icon>-->\n <!-- </ion-button>-->\n}\n<!-- </ion-buttons>-->\n<!-- <ion-title [innerHTML]=\"options?.title ?? '' | translate\"></ion-title>-->\n\n<!-- <ion-buttons slot=\"end\">-->\n@let search = options().search;\n@if (search) {\n <smart-searchbar\n [text]=\"search.text() ?? null\"\n (textChange)=\"search.set($event)\"\n ></smart-searchbar>\n}\n\n@if (options()?.endButtons) {\n @for (btn of options()!.endButtons; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n }\n}\n\n@for (btn of appService.endButtons$ | async; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n}\n<!-- </ion-buttons>-->\n<!-- </ion-toolbar>-->\n<!--</ion-header>-->\n<!--<ion-content scroll>-->\n<ng-content></ng-content>\n<!--</ion-content>-->\n\n<ng-template #btnContent let-btn=\"btn\">\n @if (!isMobile && btn.text) {\n <!-- <ion-icon slot=\"start\" [name]=\"btn.icon\"></ion-icon>-->\n {{ btn.text | translate }}\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n } @else if (isMobile || !btn.text) {\n <!-- <ion-icon slot=\"icon-only\" [name]=\"btn.icon\"></ion-icon>-->\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n }\n</ng-template>\n" }]
5087
+ args: [{ selector: 'smart-page-standard', imports: [TranslatePipe, SearchbarComponent, AsyncPipe, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--<ion-header [hidden]=\"!options || options.hideHeader\">-->\n<!-- <ion-toolbar>-->\n<!-- <ion-buttons slot=\"start\">-->\n<!-- <ion-menu-button-->\n<!-- [hidden]=\"!options || options.hideMenuButton\"-->\n<!-- ></ion-menu-button>-->\n@if (options()?.showBackButton) {\n <!-- <ion-button (click)=\"back()\">-->\n <!-- <ion-icon slot=\"icon-only\" name=\"arrow-back\"> </ion-icon>-->\n <!-- </ion-button>-->\n}\n<!-- </ion-buttons>-->\n<!-- <ion-title [innerHTML]=\"options?.title ?? '' | translate\"></ion-title>-->\n\n<!-- <ion-buttons slot=\"end\">-->\n@let search = options()?.search;\n@if (search) {\n <smart-searchbar\n [text]=\"search.text() ?? null\"\n (textChange)=\"search.set($event)\"\n ></smart-searchbar>\n}\n\n@if (options()?.endButtons) {\n @for (btn of options()!.endButtons; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n }\n}\n\n@for (btn of appService.endButtons$ | async; track btn.number) {\n @if (btn.type === 'popover') {\n <!-- <ion-button-->\n <!-- (click)=\"presentPopover($event, btn)\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n } @else {\n <!-- <ion-button-->\n <!-- (click)=\"btn?.handler?.()\"-->\n <!-- [disabled]=\"btn.disabled$ | async\"-->\n <!-- >-->\n <ng-container\n [ngTemplateOutlet]=\"btnContent\"\n [ngTemplateOutletContext]=\"{ btn: btn }\"\n ></ng-container>\n <!-- </ion-button>-->\n }\n}\n<!-- </ion-buttons>-->\n<!-- </ion-toolbar>-->\n<!--</ion-header>-->\n<!--<ion-content scroll>-->\n<ng-content></ng-content>\n<!--</ion-content>-->\n\n<ng-template #btnContent let-btn=\"btn\">\n @if (!isMobile && btn.text) {\n <!-- <ion-icon slot=\"start\" [name]=\"btn.icon\"></ion-icon>-->\n {{ btn.text | translate }}\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n } @else if (isMobile || !btn.text) {\n <!-- <ion-icon slot=\"icon-only\" [name]=\"btn.icon\"></ion-icon>-->\n @if (btn.number) {\n <!--<ion-badge class=\"absolute top-5 -right-1 opacity-90\" color=\"primary\">-->{{\n btn.number\n }}<!--</ion-badge>-->\n }\n }\n</ng-template>\n" }]
5088
5088
  }] });
5089
5089
 
5090
5090
  class PageComponent extends CreateDynamicComponent('page') {
5091
5091
  el = inject(ElementRef);
5092
5092
  renderer = inject(Renderer2);
5093
- options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
5093
+ options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : []));
5094
5094
  contentTpl = viewChild('contentTpl', ...(ngDevMode ? [{ debugName: "contentTpl" }] : []));
5095
5095
  dynamicContents = viewChildren(DynamicContentDirective, ...(ngDevMode ? [{ debugName: "dynamicContents" }] : []));
5096
5096
  constructor() {
@@ -5107,7 +5107,7 @@ class PageComponent extends CreateDynamicComponent('page') {
5107
5107
  this.baseInstance.options = this.options;
5108
5108
  }
5109
5109
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5110
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: PageComponent, isStandalone: true, selector: "smart-page", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
5110
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.0", type: PageComponent, isStandalone: true, selector: "smart-page", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, isSignal: true }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
5111
5111
  @if (template() === 'default') {
5112
5112
  <smart-page-standard [options]="options()">
5113
5113
  <ng-container [ngTemplateOutlet]="contentTpl"></ng-container>