@edm-sdui/sdui 1.0.0 → 1.0.2
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.
- package/fesm2022/edm-sdui-sdui.mjs +111 -66
- package/fesm2022/edm-sdui-sdui.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/lib/components/navigation-controls/navigation-controls.component.d.ts +0 -1
- package/lib/components/uicomponent/button/button.component.d.ts +0 -1
- package/lib/components/uicomponent/column/column.component.d.ts +0 -1
- package/lib/components/uicomponent/image/image.component.d.ts +0 -1
- package/lib/components/uicomponent/label/label.component.d.ts +0 -1
- package/lib/components/uicomponent/row/row.component.d.ts +0 -1
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts +0 -1
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts +0 -1
- package/lib/components/uicomponent/space/space.component.d.ts +0 -1
- package/lib/components/uicomponent/tag/tag.component.d.ts +0 -1
- package/lib/components/uicomponent/uicomponent.component.d.ts +0 -1
- package/lib/components/uicomponent/zstack/zstack.component.d.ts +0 -1
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts +0 -1
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts +0 -1
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts +0 -1
- package/lib/components/uiscreen/uiscreen.component.d.ts +0 -1
- package/lib/core/services/ui-action.service.d.ts +0 -1
- package/lib/core/services/uiscreen.service.d.ts +0 -1
- package/lib/core/tokens/sdui-config.token.d.ts +0 -1
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts +0 -1
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts +0 -1
- package/lib/core/uicomposition/enums/uiscene.d.ts +0 -1
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts +0 -1
- package/lib/core/uicomposition/mapping/component-mapping.d.ts +0 -1
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts +0 -1
- package/lib/core/uicomposition/models/uicomponent.d.ts +0 -1
- package/lib/core/uicomposition/models/uielement.d.ts +0 -1
- package/lib/core/uicomposition/models/uilayout.d.ts +0 -1
- package/lib/core/uicomposition/models/uinavigation.d.ts +0 -1
- package/lib/core/uicomposition/models/uiscreen.d.ts +0 -1
- package/lib/core/uicomposition/models/uisingle-column-layout.d.ts +0 -1
- package/lib/core/uicomposition/models/uiview.d.ts +0 -1
- package/lib/core/uitheme/enums/uiaction-type.d.ts +0 -1
- package/lib/core/uitheme/enums/uialignment-type.d.ts +0 -1
- package/lib/core/uitheme/enums/uiaspect-type.d.ts +0 -1
- package/lib/core/uitheme/enums/uiasset.d.ts +0 -1
- package/lib/core/uitheme/enums/uicolor.d.ts +0 -1
- package/lib/core/uitheme/enums/uicontent-type.d.ts +0 -1
- package/lib/core/uitheme/enums/uipadding-level.d.ts +0 -1
- package/lib/core/uitheme/enums/uipresentation-style.d.ts +0 -1
- package/lib/core/uitheme/enums/uiradius-level.d.ts +0 -1
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts +0 -1
- package/lib/core/uitheme/enums/uishadow-offset.d.ts +0 -1
- package/lib/core/uitheme/enums/uisize.d.ts +0 -1
- package/lib/core/uitheme/enums/uispacing-level.d.ts +0 -1
- package/lib/core/uitheme/enums/uitext-style.d.ts +0 -1
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/asset-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/color-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/pad-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/radius-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/size-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/space-mapping.d.ts +0 -1
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts +0 -1
- package/lib/core/uitheme/models/uiaction.d.ts +0 -1
- package/lib/core/uitheme/models/uialignment.d.ts +0 -1
- package/lib/core/uitheme/models/uibackground.d.ts +0 -1
- package/lib/core/uitheme/models/uipadding.d.ts +0 -1
- package/lib/core/uitheme/models/uiradius.d.ts +0 -1
- package/lib/core/uitheme/models/uishadow.d.ts +0 -1
- package/lib/core/uitheme/models/uispacing.d.ts +0 -1
- package/lib/core/utils/url-parser.util.d.ts +0 -1
- package/lib/core/view-models/uiscreen.viewmodel.d.ts +3 -4
- package/lib/directives/uiview.directive.d.ts +0 -1
- package/lib/sdui-routing.module.d.ts +0 -1
- package/lib/sdui.component.d.ts +0 -1
- package/lib/sdui.module.d.ts +0 -1
- package/package.json +3 -3
- package/public-api.d.ts +0 -1
- package/edm-sdui-sdui.d.ts.map +0 -1
- package/lib/components/navigation-controls/navigation-controls.component.d.ts.map +0 -1
- package/lib/components/uicomponent/button/button.component.d.ts.map +0 -1
- package/lib/components/uicomponent/column/column.component.d.ts.map +0 -1
- package/lib/components/uicomponent/image/image.component.d.ts.map +0 -1
- package/lib/components/uicomponent/label/label.component.d.ts.map +0 -1
- package/lib/components/uicomponent/row/row.component.d.ts.map +0 -1
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts.map +0 -1
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts.map +0 -1
- package/lib/components/uicomponent/space/space.component.d.ts.map +0 -1
- package/lib/components/uicomponent/tag/tag.component.d.ts.map +0 -1
- package/lib/components/uicomponent/uicomponent.component.d.ts.map +0 -1
- package/lib/components/uicomponent/zstack/zstack.component.d.ts.map +0 -1
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts.map +0 -1
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts.map +0 -1
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts.map +0 -1
- package/lib/components/uiscreen/uiscreen.component.d.ts.map +0 -1
- package/lib/core/services/ui-action.service.d.ts.map +0 -1
- package/lib/core/services/uiscreen.service.d.ts.map +0 -1
- package/lib/core/tokens/sdui-config.token.d.ts.map +0 -1
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts.map +0 -1
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts.map +0 -1
- package/lib/core/uicomposition/enums/uiscene.d.ts.map +0 -1
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts.map +0 -1
- package/lib/core/uicomposition/mapping/component-mapping.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uicomponent.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uielement.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uilayout.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uinavigation.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uiscreen.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uisingle-column-layout.d.ts.map +0 -1
- package/lib/core/uicomposition/models/uiview.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uiaction-type.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uialignment-type.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uiaspect-type.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uiasset.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uicolor.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uicontent-type.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uipadding-level.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uipresentation-style.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uiradius-level.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uishadow-offset.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uisize.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uispacing-level.d.ts.map +0 -1
- package/lib/core/uitheme/enums/uitext-style.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/asset-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/color-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/pad-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/radius-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/size-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/space-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts.map +0 -1
- package/lib/core/uitheme/models/uiaction.d.ts.map +0 -1
- package/lib/core/uitheme/models/uialignment.d.ts.map +0 -1
- package/lib/core/uitheme/models/uibackground.d.ts.map +0 -1
- package/lib/core/uitheme/models/uipadding.d.ts.map +0 -1
- package/lib/core/uitheme/models/uiradius.d.ts.map +0 -1
- package/lib/core/uitheme/models/uishadow.d.ts.map +0 -1
- package/lib/core/uitheme/models/uispacing.d.ts.map +0 -1
- package/lib/core/utils/url-parser.util.d.ts.map +0 -1
- package/lib/core/view-models/uiscreen.viewmodel.d.ts.map +0 -1
- package/lib/directives/uiview.directive.d.ts.map +0 -1
- package/lib/sdui-routing.module.d.ts.map +0 -1
- package/lib/sdui.component.d.ts.map +0 -1
- package/lib/sdui.module.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
|
@@ -5,8 +5,8 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i1$2 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
7
|
import { map, BehaviorSubject, finalize, catchError, of } from 'rxjs';
|
|
8
|
-
import * as i1 from '@angular/common/http';
|
|
9
8
|
import { tap } from 'rxjs/operators';
|
|
9
|
+
import * as i1 from '@angular/common/http';
|
|
10
10
|
|
|
11
11
|
var UIScreenIdentifier;
|
|
12
12
|
(function (UIScreenIdentifier) {
|
|
@@ -64,6 +64,8 @@ function isSduiUrl(rawUrl) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
class UIScreenService {
|
|
67
|
+
http;
|
|
68
|
+
baseUrl;
|
|
67
69
|
constructor(http, baseUrl = '') {
|
|
68
70
|
this.http = http;
|
|
69
71
|
this.baseUrl = baseUrl;
|
|
@@ -189,8 +191,8 @@ class UIScreenService {
|
|
|
189
191
|
: null,
|
|
190
192
|
};
|
|
191
193
|
}
|
|
192
|
-
static
|
|
193
|
-
static
|
|
194
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenService, deps: [{ token: i1.HttpClient }, { token: SDUI_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
195
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenService, providedIn: 'root' });
|
|
194
196
|
}
|
|
195
197
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenService, decorators: [{
|
|
196
198
|
type: Injectable,
|
|
@@ -206,22 +208,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
206
208
|
|
|
207
209
|
const SDUI_URL_PARAM = 'sduiUrl';
|
|
208
210
|
class UIScreenViewModel {
|
|
211
|
+
uiScreenService;
|
|
212
|
+
location;
|
|
213
|
+
uiScreenSubject = new BehaviorSubject(null);
|
|
214
|
+
isLoadingSubject = new BehaviorSubject(false);
|
|
215
|
+
errorSubject = new BehaviorSubject(null);
|
|
216
|
+
navigationHistorySubject = new BehaviorSubject([]);
|
|
217
|
+
canGoBackSubject = new BehaviorSubject(false);
|
|
218
|
+
currentUrlSubject = new BehaviorSubject(null);
|
|
219
|
+
uiScreen$ = this.uiScreenSubject.asObservable();
|
|
220
|
+
isLoading$ = this.isLoadingSubject.asObservable();
|
|
221
|
+
error$ = this.errorSubject.asObservable();
|
|
222
|
+
navigationHistory$ = this.navigationHistorySubject.asObservable();
|
|
223
|
+
canGoBack$ = this.canGoBackSubject.asObservable();
|
|
224
|
+
currentUrl$ = this.currentUrlSubject.asObservable();
|
|
209
225
|
constructor(uiScreenService, location //private router: Router, //private route: ActivatedRoute
|
|
210
226
|
) {
|
|
211
227
|
this.uiScreenService = uiScreenService;
|
|
212
228
|
this.location = location;
|
|
213
|
-
this.uiScreenSubject = new BehaviorSubject(null);
|
|
214
|
-
this.isLoadingSubject = new BehaviorSubject(false);
|
|
215
|
-
this.errorSubject = new BehaviorSubject(null);
|
|
216
|
-
this.navigationHistorySubject = new BehaviorSubject([]);
|
|
217
|
-
this.canGoBackSubject = new BehaviorSubject(false);
|
|
218
|
-
this.currentUrlSubject = new BehaviorSubject(null);
|
|
219
|
-
this.uiScreen$ = this.uiScreenSubject.asObservable();
|
|
220
|
-
this.isLoading$ = this.isLoadingSubject.asObservable();
|
|
221
|
-
this.error$ = this.errorSubject.asObservable();
|
|
222
|
-
this.navigationHistory$ = this.navigationHistorySubject.asObservable();
|
|
223
|
-
this.canGoBack$ = this.canGoBackSubject.asObservable();
|
|
224
|
-
this.currentUrl$ = this.currentUrlSubject.asObservable();
|
|
225
229
|
console.debug('[UIScreenViewModel] Inicializado');
|
|
226
230
|
}
|
|
227
231
|
/**
|
|
@@ -287,8 +291,8 @@ class UIScreenViewModel {
|
|
|
287
291
|
canGoBack() {
|
|
288
292
|
return this.navigationHistorySubject.getValue().length > 1;
|
|
289
293
|
}
|
|
290
|
-
static
|
|
291
|
-
static
|
|
294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenViewModel, deps: [{ token: UIScreenService }, { token: i1$1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
295
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenViewModel, providedIn: 'root' });
|
|
292
296
|
}
|
|
293
297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenViewModel, decorators: [{
|
|
294
298
|
type: Injectable,
|
|
@@ -325,6 +329,11 @@ const componentMapping = {
|
|
|
325
329
|
};
|
|
326
330
|
|
|
327
331
|
class UIComponentComponent {
|
|
332
|
+
injector;
|
|
333
|
+
cdr;
|
|
334
|
+
uiComponent;
|
|
335
|
+
componentToRender;
|
|
336
|
+
componentInjector;
|
|
328
337
|
constructor(injector, cdr) {
|
|
329
338
|
this.injector = injector;
|
|
330
339
|
this.cdr = cdr;
|
|
@@ -351,8 +360,8 @@ class UIComponentComponent {
|
|
|
351
360
|
parent: this.injector,
|
|
352
361
|
});
|
|
353
362
|
}
|
|
354
|
-
static
|
|
355
|
-
static
|
|
363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIComponentComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
364
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: UIComponentComponent, isStandalone: false, selector: "edm-sdui-component", inputs: { uiComponent: "uiComponent" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"componentToRender\">\n <ng-container\n *ngComponentOutlet=\"componentToRender; injector: componentInjector\"\n ></ng-container>\n</ng-container>\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
356
365
|
}
|
|
357
366
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIComponentComponent, decorators: [{
|
|
358
367
|
type: Component,
|
|
@@ -362,8 +371,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
362
371
|
}] } });
|
|
363
372
|
|
|
364
373
|
class UINavigationComponent {
|
|
365
|
-
|
|
366
|
-
static
|
|
374
|
+
uiNavigation;
|
|
375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UINavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: UINavigationComponent, isStandalone: false, selector: "edm-sdui-navigation", inputs: { uiNavigation: "uiNavigation" }, ngImport: i0, template: "<div class=\"nav\" *ngIf=\"uiNavigation\">\n <h1 *ngIf=\"uiNavigation.title\">{{ uiNavigation.title }}</h1>\n\n <edm-sdui-component\n [uiComponent]=\"uiNavigation.titleComponent\"\n *ngIf=\"uiNavigation.titleComponent\"\n ></edm-sdui-component>\n</div>\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }] });
|
|
367
377
|
}
|
|
368
378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UINavigationComponent, decorators: [{
|
|
369
379
|
type: Component,
|
|
@@ -373,13 +383,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
373
383
|
}] } });
|
|
374
384
|
|
|
375
385
|
class SingleColumnLayoutComponent {
|
|
386
|
+
uiLayout;
|
|
376
387
|
ngOnChanges(changes) {
|
|
377
388
|
if (changes['uiLayout']) {
|
|
378
389
|
console.debug('[SingleColumnLayout] Novo layout recebido:', changes['uiLayout'].currentValue);
|
|
379
390
|
}
|
|
380
391
|
}
|
|
381
|
-
static
|
|
382
|
-
static
|
|
392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SingleColumnLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
393
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: SingleColumnLayoutComponent, isStandalone: false, selector: "edm-sdui-single-column-layout", inputs: { uiLayout: "uiLayout" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"single-column-layout\" *ngIf=\"!!uiLayout\">\n <!-- <pre>{{ uiLayout | json }}</pre> -->\n\n <edm-sdui-navigation [uiNavigation]=\"uiLayout.nav\"></edm-sdui-navigation>\n\n <div class=\"header\" *ngIf=\"!!uiLayout?.header\">\n <edm-sdui-component [uiComponent]=\"uiLayout.header\"></edm-sdui-component>\n </div>\n\n <div class=\"scrollview\" *ngIf=\"!!uiLayout?.main\">\n <div class=\"main\">\n <edm-sdui-component\n *ngIf=\"!!uiLayout?.main\"\n [uiComponent]=\"uiLayout.main\"\n ></edm-sdui-component>\n </div>\n </div>\n\n <div class=\"footer\" *ngIf=\"!!uiLayout?.footer\">\n <edm-sdui-component [uiComponent]=\"uiLayout.footer\"></edm-sdui-component>\n </div>\n</div>\n", styles: [":host{display:contents}.single-column-layout{display:flex;flex-direction:column;width:100vw;min-height:100vh;position:relative}.single-column-layout .header{position:fixed;top:0;left:0;width:100%;z-index:100}.single-column-layout .scrollview .main{flex:1;display:flex;align-items:center;justify-content:center;margin-top:var(--header-height, 64px);margin-bottom:var(--footer-height, 64px)}.single-column-layout .footer{position:fixed;bottom:0;left:0;width:100%;z-index:100}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UINavigationComponent, selector: "edm-sdui-navigation", inputs: ["uiNavigation"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }] });
|
|
383
394
|
}
|
|
384
395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SingleColumnLayoutComponent, decorators: [{
|
|
385
396
|
type: Component,
|
|
@@ -389,13 +400,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
389
400
|
}] } });
|
|
390
401
|
|
|
391
402
|
class CenteredContentLayoutComponent {
|
|
403
|
+
uiLayout;
|
|
392
404
|
ngOnChanges(changes) {
|
|
393
405
|
if (changes['uiLayout']) {
|
|
394
406
|
console.debug('[CenteredContentLayoutComponent] Novo layout recebido:', changes['uiLayout'].currentValue);
|
|
395
407
|
}
|
|
396
408
|
}
|
|
397
|
-
static
|
|
398
|
-
static
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: CenteredContentLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: CenteredContentLayoutComponent, isStandalone: false, selector: "edm-sdui-centered-content-layout", inputs: { uiLayout: "uiLayout" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"centered-content-layout\" *ngIf=\"!!uiLayout\">\n <!-- <pre>{{ uiLayout | json }}</pre> -->\n\n <edm-sdui-navigation [uiNavigation]=\"uiLayout.nav\"></edm-sdui-navigation>\n\n <div class=\"header\" *ngIf=\"!!uiLayout?.header\">\n <edm-sdui-component [uiComponent]=\"uiLayout.header\"></edm-sdui-component>\n </div>\n\n <div class=\"centered\">\n <edm-sdui-component\n *ngIf=\"!!uiLayout?.centered\"\n [uiComponent]=\"uiLayout.centered\"\n ></edm-sdui-component>\n </div>\n\n <div class=\"footer\" *ngIf=\"!!uiLayout?.footer\">\n <edm-sdui-component [uiComponent]=\"uiLayout.footer\"></edm-sdui-component>\n </div>\n</div>\n", styles: [":host{display:contents}.centered-content-layout{display:flex;flex-direction:column;width:100vw;min-height:100vh;position:relative}.centered-content-layout .header{position:fixed;top:0;left:0;width:100%;z-index:100}.centered-content-layout .centered{flex:1;display:flex;align-items:center;justify-content:center;margin-top:var(--header-height, 64px);margin-bottom:var(--footer-height, 64px)}.centered-content-layout .footer{position:fixed;bottom:0;left:0;width:100%;z-index:100}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UINavigationComponent, selector: "edm-sdui-navigation", inputs: ["uiNavigation"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }] });
|
|
399
411
|
}
|
|
400
412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: CenteredContentLayoutComponent, decorators: [{
|
|
401
413
|
type: Component,
|
|
@@ -750,6 +762,7 @@ var UIActionType;
|
|
|
750
762
|
})(UIActionType || (UIActionType = {}));
|
|
751
763
|
|
|
752
764
|
class UIActionService {
|
|
765
|
+
router;
|
|
753
766
|
constructor(router) {
|
|
754
767
|
this.router = router;
|
|
755
768
|
}
|
|
@@ -776,8 +789,8 @@ class UIActionService {
|
|
|
776
789
|
// Outros tipos de ação podem ser adicionados aqui
|
|
777
790
|
}
|
|
778
791
|
}
|
|
779
|
-
static
|
|
780
|
-
static
|
|
792
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIActionService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
793
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIActionService, providedIn: 'root' });
|
|
781
794
|
}
|
|
782
795
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIActionService, decorators: [{
|
|
783
796
|
type: Injectable,
|
|
@@ -785,13 +798,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
785
798
|
}], ctorParameters: () => [{ type: i1$2.Router }] });
|
|
786
799
|
|
|
787
800
|
class UIViewDirective {
|
|
801
|
+
elementRef;
|
|
802
|
+
renderer;
|
|
803
|
+
router;
|
|
804
|
+
actionService;
|
|
805
|
+
screenViewModel;
|
|
806
|
+
edmSduiView;
|
|
807
|
+
disableClick = false;
|
|
788
808
|
constructor(elementRef, renderer, router, actionService, screenViewModel) {
|
|
789
809
|
this.elementRef = elementRef;
|
|
790
810
|
this.renderer = renderer;
|
|
791
811
|
this.router = router;
|
|
792
812
|
this.actionService = actionService;
|
|
793
813
|
this.screenViewModel = screenViewModel;
|
|
794
|
-
this.disableClick = false;
|
|
795
814
|
}
|
|
796
815
|
ngOnChanges(changes) {
|
|
797
816
|
if (this.edmSduiView) {
|
|
@@ -891,8 +910,8 @@ class UIViewDirective {
|
|
|
891
910
|
this.actionService.execute(this.edmSduiView.action);
|
|
892
911
|
}
|
|
893
912
|
}
|
|
894
|
-
static
|
|
895
|
-
static
|
|
913
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIViewDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$2.Router }, { token: UIActionService }, { token: UIScreenViewModel, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
914
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: UIViewDirective, isStandalone: false, selector: "[edmSduiView]", inputs: { edmSduiView: "edmSduiView", disableClick: "disableClick" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
896
915
|
}
|
|
897
916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIViewDirective, decorators: [{
|
|
898
917
|
type: Directive,
|
|
@@ -912,6 +931,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
912
931
|
}] } });
|
|
913
932
|
|
|
914
933
|
class NavigationControlsComponent {
|
|
934
|
+
viewModel;
|
|
915
935
|
constructor(viewModel) {
|
|
916
936
|
this.viewModel = viewModel;
|
|
917
937
|
}
|
|
@@ -925,8 +945,8 @@ class NavigationControlsComponent {
|
|
|
925
945
|
console.debug('[NavigationControls] Botão de voltar clicado');
|
|
926
946
|
this.viewModel.goBack();
|
|
927
947
|
}
|
|
928
|
-
static
|
|
929
|
-
static
|
|
948
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NavigationControlsComponent, deps: [{ token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component });
|
|
949
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: NavigationControlsComponent, isStandalone: false, selector: "edm-sdui-navigation-controls", ngImport: i0, template: "<div class=\"navigation-controls\">\n <button\n class=\"back-button\"\n [disabled]=\"!(viewModel.canGoBack$ | async)\"\n (click)=\"goBack()\"\n >\n <span class=\"material-icons\">arrow_back</span>\n </button>\n</div>\n", styles: [":host{display:contents}.navigation-controls{display:flex;gap:8px}.navigation-controls button{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:4px;border:1px solid #e0e0e0;background-color:#f5f5f5;cursor:pointer;transition:all .2s ease}.navigation-controls button:hover:not(:disabled){background-color:#e8e8e8}.navigation-controls button:disabled{opacity:.5;cursor:not-allowed}.navigation-controls button .material-icons{font-size:18px;color:#444}\n"], dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
930
950
|
}
|
|
931
951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NavigationControlsComponent, decorators: [{
|
|
932
952
|
type: Component,
|
|
@@ -934,12 +954,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
934
954
|
}], ctorParameters: () => [{ type: UIScreenViewModel }] });
|
|
935
955
|
|
|
936
956
|
class UIScreenComponent {
|
|
957
|
+
viewModel;
|
|
958
|
+
UIScreenIdentifier = UIScreenIdentifier;
|
|
937
959
|
constructor(viewModel) {
|
|
938
960
|
this.viewModel = viewModel;
|
|
939
|
-
this.UIScreenIdentifier = UIScreenIdentifier;
|
|
940
961
|
}
|
|
941
|
-
static
|
|
942
|
-
static
|
|
962
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenComponent, deps: [{ token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component });
|
|
963
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: UIScreenComponent, isStandalone: false, selector: "edm-sdui-uiscreen", ngImport: i0, template: "<div *ngIf=\"viewModel.isLoading$ | async\"><p>Carregando...</p></div>\n\n<div *ngIf=\"viewModel.error$ | async as errorMessage\">\n <p class=\"error-label\">Erro: {{ errorMessage }}</p>\n</div>\n\n<div\n class=\"ui-screen\"\n *ngIf=\"viewModel.uiScreen$ | async as uiScreen\"\n [edmSduiView]=\"uiScreen\"\n>\n <edm-sdui-navigation-controls\n [edmSduiView]=\"uiScreen\"\n ></edm-sdui-navigation-controls>\n\n <ng-container [ngSwitch]=\"uiScreen.identifier\">\n <edm-sdui-single-column-layout\n *ngSwitchCase=\"UIScreenIdentifier.SINGLE_COLUMN\"\n [uiLayout]=\"uiScreen.content\"\n >\n </edm-sdui-single-column-layout>\n\n <edm-sdui-centered-content-layout\n *ngSwitchCase=\"UIScreenIdentifier.CENTERED_CONTENT\"\n [uiLayout]=\"uiScreen.content\"\n >\n </edm-sdui-centered-content-layout>\n </ng-container>\n</div>\n", styles: [":host{display:contents}.ui-screen{width:100vw;min-height:100vh}.error-label{color:var(--input-error)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: SingleColumnLayoutComponent, selector: "edm-sdui-single-column-layout", inputs: ["uiLayout"] }, { kind: "component", type: CenteredContentLayoutComponent, selector: "edm-sdui-centered-content-layout", inputs: ["uiLayout"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }, { kind: "component", type: NavigationControlsComponent, selector: "edm-sdui-navigation-controls" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
|
|
943
964
|
}
|
|
944
965
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: UIScreenComponent, decorators: [{
|
|
945
966
|
type: Component,
|
|
@@ -947,14 +968,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
947
968
|
}], ctorParameters: () => [{ type: UIScreenViewModel }] });
|
|
948
969
|
|
|
949
970
|
class RowComponent {
|
|
971
|
+
uiComponent;
|
|
950
972
|
constructor(uiComponent) {
|
|
951
973
|
this.uiComponent = uiComponent;
|
|
952
974
|
}
|
|
953
975
|
ngOnInit() {
|
|
954
976
|
// console.debug('row.uiComponent: ', this.uiComponent);
|
|
955
977
|
}
|
|
956
|
-
static
|
|
957
|
-
static
|
|
978
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: RowComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component });
|
|
979
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: RowComponent, isStandalone: false, selector: "edm-sdui-row", ngImport: i0, template: "<div class=\"row\" *ngIf=\"uiComponent\" [edmSduiView]=\"uiComponent.element\">\n <edm-sdui-component\n *ngFor=\"let component of uiComponent.components\"\n [uiComponent]=\"component\"\n >\n </edm-sdui-component>\n</div>\n", styles: [":host{display:contents}.row{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
958
980
|
}
|
|
959
981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: RowComponent, decorators: [{
|
|
960
982
|
type: Component,
|
|
@@ -970,14 +992,15 @@ var row_component = /*#__PURE__*/Object.freeze({
|
|
|
970
992
|
});
|
|
971
993
|
|
|
972
994
|
class ColumnComponent {
|
|
995
|
+
uiComponent;
|
|
973
996
|
constructor(uiComponent) {
|
|
974
997
|
this.uiComponent = uiComponent;
|
|
975
998
|
}
|
|
976
999
|
ngOnInit() {
|
|
977
1000
|
// console.debug('column.uiComponent: ', this.uiComponent);
|
|
978
1001
|
}
|
|
979
|
-
static
|
|
980
|
-
static
|
|
1002
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ColumnComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component });
|
|
1003
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ColumnComponent, isStandalone: false, selector: "edm-sdui-column", ngImport: i0, template: "<div class=\"column\" *ngIf=\"uiComponent\" [edmSduiView]=\"uiComponent.element\">\n <edm-sdui-component\n *ngFor=\"let child of uiComponent.components\"\n [uiComponent]=\"child\"\n >\n </edm-sdui-component>\n</div>\n", styles: [":host{display:contents}.column{display:flex;flex-direction:column;width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
981
1004
|
}
|
|
982
1005
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
983
1006
|
type: Component,
|
|
@@ -1022,6 +1045,9 @@ const textStyleMappingFontSize = {
|
|
|
1022
1045
|
};
|
|
1023
1046
|
|
|
1024
1047
|
class LabelComponent {
|
|
1048
|
+
uiComponent;
|
|
1049
|
+
renderer;
|
|
1050
|
+
spanElementRef;
|
|
1025
1051
|
constructor(uiComponent, renderer) {
|
|
1026
1052
|
this.uiComponent = uiComponent;
|
|
1027
1053
|
this.renderer = renderer;
|
|
@@ -1050,8 +1076,8 @@ class LabelComponent {
|
|
|
1050
1076
|
this.renderer.setStyle(this.spanElementRef.nativeElement, 'opacity', opacity);
|
|
1051
1077
|
}
|
|
1052
1078
|
}
|
|
1053
|
-
static
|
|
1054
|
-
static
|
|
1079
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: LabelComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1080
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: LabelComponent, isStandalone: false, selector: "edm-sdui-label", viewQueries: [{ propertyName: "spanElementRef", first: true, predicate: ["spanElement"], descendants: true }], ngImport: i0, template: "<span #spanElement [edmSduiView]=\"uiComponent.element\" *ngIf=\"uiComponent\">{{\n uiComponent.element?.label ?? \"\"\n}}</span>\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
1055
1081
|
}
|
|
1056
1082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: LabelComponent, decorators: [{
|
|
1057
1083
|
type: Component,
|
|
@@ -1070,14 +1096,15 @@ var label_component = /*#__PURE__*/Object.freeze({
|
|
|
1070
1096
|
});
|
|
1071
1097
|
|
|
1072
1098
|
class SpaceComponent {
|
|
1099
|
+
uiComponent;
|
|
1073
1100
|
constructor(uiComponent) {
|
|
1074
1101
|
this.uiComponent = uiComponent;
|
|
1075
1102
|
}
|
|
1076
1103
|
ngOnInit() {
|
|
1077
1104
|
// console.debug('space.uiComponent: ', this.uiComponent);
|
|
1078
1105
|
}
|
|
1079
|
-
static
|
|
1080
|
-
static
|
|
1106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SpaceComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component });
|
|
1107
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: SpaceComponent, isStandalone: false, selector: "edm-sdui-space", ngImport: i0, template: "<div class=\"space\"></div>\n", styles: [":host{display:contents}.space{flex-grow:1;flex-shrink:1;min-height:1px;min-width:1px}\n"] });
|
|
1081
1108
|
}
|
|
1082
1109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SpaceComponent, decorators: [{
|
|
1083
1110
|
type: Component,
|
|
@@ -1093,14 +1120,15 @@ var space_component = /*#__PURE__*/Object.freeze({
|
|
|
1093
1120
|
});
|
|
1094
1121
|
|
|
1095
1122
|
class ZStackComponent {
|
|
1123
|
+
uiComponent;
|
|
1096
1124
|
constructor(uiComponent) {
|
|
1097
1125
|
this.uiComponent = uiComponent;
|
|
1098
1126
|
}
|
|
1099
1127
|
ngOnInit() {
|
|
1100
1128
|
// console.debug('zstack.uiComponent: ', this.uiComponent);
|
|
1101
1129
|
}
|
|
1102
|
-
static
|
|
1103
|
-
static
|
|
1130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ZStackComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component });
|
|
1131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ZStackComponent, isStandalone: false, selector: "edm-sdui-zstack", ngImport: i0, template: "<div class=\"zstack\" *ngIf=\"uiComponent\" [edmSduiView]=\"uiComponent.element\">\n <edm-sdui-component\n *ngFor=\"let child of uiComponent.components\"\n [uiComponent]=\"child\"\n ></edm-sdui-component>\n</div>\n", styles: [":host{display:contents}.zstack{display:grid;place-items:center}.zstack>*{grid-area:1/1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UIComponentComponent, selector: "edm-sdui-component", inputs: ["uiComponent"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
1104
1132
|
}
|
|
1105
1133
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ZStackComponent, decorators: [{
|
|
1106
1134
|
type: Component,
|
|
@@ -1116,14 +1144,15 @@ var zstack_component = /*#__PURE__*/Object.freeze({
|
|
|
1116
1144
|
});
|
|
1117
1145
|
|
|
1118
1146
|
class RowDivisorComponent {
|
|
1147
|
+
uiComponent;
|
|
1119
1148
|
constructor(uiComponent) {
|
|
1120
1149
|
this.uiComponent = uiComponent;
|
|
1121
1150
|
}
|
|
1122
1151
|
ngOnInit() {
|
|
1123
1152
|
// console.debug('rowDivisor.uiComponent: ', this.uiComponent);
|
|
1124
1153
|
}
|
|
1125
|
-
static
|
|
1126
|
-
static
|
|
1154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: RowDivisorComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component });
|
|
1155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: RowDivisorComponent, isStandalone: false, selector: "edm-sdui-row-divisor", ngImport: i0, template: "<div\n class=\"row-divisor\"\n *ngIf=\"uiComponent\"\n [edmSduiView]=\"uiComponent.element\"\n></div>\n", styles: [":host{display:contents}.row-divisor{height:1px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
1127
1156
|
}
|
|
1128
1157
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: RowDivisorComponent, decorators: [{
|
|
1129
1158
|
type: Component,
|
|
@@ -1848,6 +1877,9 @@ const assetMapping = {
|
|
|
1848
1877
|
};
|
|
1849
1878
|
|
|
1850
1879
|
class ButtonComponent {
|
|
1880
|
+
uiComponent;
|
|
1881
|
+
renderer;
|
|
1882
|
+
buttonElementRef;
|
|
1851
1883
|
constructor(uiComponent, renderer) {
|
|
1852
1884
|
this.uiComponent = uiComponent;
|
|
1853
1885
|
this.renderer = renderer;
|
|
@@ -1873,8 +1905,8 @@ class ButtonComponent {
|
|
|
1873
1905
|
getAssetPath(asset) {
|
|
1874
1906
|
return './assets/' + assetMapping[asset];
|
|
1875
1907
|
}
|
|
1876
|
-
static
|
|
1877
|
-
static
|
|
1908
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ButtonComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1909
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ButtonComponent, isStandalone: false, selector: "edm-sdui-button", viewQueries: [{ propertyName: "buttonElementRef", first: true, predicate: ["buttonElement"], descendants: true }], ngImport: i0, template: "<button #buttonElement [edmSduiView]=\"uiComponent.element\" *ngIf=\"uiComponent\">\n <img *ngIf=\"uiComponent.element.asset\" [src]=\"getAssetPath(uiComponent.element.asset)\" alt=\"\">\n {{ uiComponent.element.label }}\n</button>\n", styles: [":host{display:contents}button{border:none;white-space:nowrap;line-height:1.5;background-color:unset}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
1878
1910
|
}
|
|
1879
1911
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1880
1912
|
type: Component,
|
|
@@ -1929,6 +1961,9 @@ const sizeMappingWidth = {
|
|
|
1929
1961
|
};
|
|
1930
1962
|
|
|
1931
1963
|
class ImageComponent {
|
|
1964
|
+
uiComponent;
|
|
1965
|
+
renderer;
|
|
1966
|
+
imgElementRef;
|
|
1932
1967
|
constructor(uiComponent, renderer) {
|
|
1933
1968
|
this.uiComponent = uiComponent;
|
|
1934
1969
|
this.renderer = renderer;
|
|
@@ -1956,8 +1991,8 @@ class ImageComponent {
|
|
|
1956
1991
|
this.renderer.setStyle(this.imgElementRef.nativeElement, 'width', width);
|
|
1957
1992
|
}
|
|
1958
1993
|
}
|
|
1959
|
-
static
|
|
1960
|
-
static
|
|
1994
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ImageComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1995
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: ImageComponent, isStandalone: false, selector: "edm-sdui-image", viewQueries: [{ propertyName: "imgElementRef", first: true, predicate: ["imgElement"], descendants: true }], ngImport: i0, template: "<img #imgElement [edmSduiView]=\"uiComponent.element\" *ngIf=\"uiComponent\" />\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
1961
1996
|
}
|
|
1962
1997
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: ImageComponent, decorators: [{
|
|
1963
1998
|
type: Component,
|
|
@@ -1976,11 +2011,13 @@ var image_component = /*#__PURE__*/Object.freeze({
|
|
|
1976
2011
|
});
|
|
1977
2012
|
|
|
1978
2013
|
class SduiComponent {
|
|
2014
|
+
route;
|
|
2015
|
+
viewModel;
|
|
2016
|
+
currentSduiUrl = null;
|
|
2017
|
+
initialUrl = null;
|
|
1979
2018
|
constructor(route, viewModel) {
|
|
1980
2019
|
this.route = route;
|
|
1981
2020
|
this.viewModel = viewModel;
|
|
1982
|
-
this.currentSduiUrl = null;
|
|
1983
|
-
this.initialUrl = null;
|
|
1984
2021
|
}
|
|
1985
2022
|
ngOnInit() {
|
|
1986
2023
|
this.viewModel.currentUrl$.subscribe((url) => {
|
|
@@ -2008,8 +2045,8 @@ class SduiComponent {
|
|
|
2008
2045
|
validateParam(paramValue) {
|
|
2009
2046
|
return !!paramValue && paramValue.trim() !== '';
|
|
2010
2047
|
}
|
|
2011
|
-
static
|
|
2012
|
-
static
|
|
2048
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component });
|
|
2049
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: SduiComponent, isStandalone: false, selector: "edm-sdui", inputs: { initialUrl: "initialUrl" }, ngImport: i0, template: "<div class=\"sdui-container\">\n <edm-sdui-uiscreen *ngIf=\"currentSduiUrl\"></edm-sdui-uiscreen>\n</div>\n", styles: [":host{display:contents}.sdui-container{display:flex;flex-direction:column;min-height:100vh;width:100vw;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UIScreenComponent, selector: "edm-sdui-uiscreen" }] });
|
|
2013
2050
|
}
|
|
2014
2051
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiComponent, decorators: [{
|
|
2015
2052
|
type: Component,
|
|
@@ -2029,9 +2066,9 @@ class SduiRoutingModule {
|
|
|
2029
2066
|
providers: [],
|
|
2030
2067
|
};
|
|
2031
2068
|
}
|
|
2032
|
-
static
|
|
2033
|
-
static
|
|
2034
|
-
static
|
|
2069
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2070
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.6", ngImport: i0, type: SduiRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
|
|
2071
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiRoutingModule, imports: [RouterModule.forChild(defaultRoutes), RouterModule] });
|
|
2035
2072
|
}
|
|
2036
2073
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiRoutingModule, decorators: [{
|
|
2037
2074
|
type: NgModule,
|
|
@@ -2042,6 +2079,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
2042
2079
|
}] });
|
|
2043
2080
|
|
|
2044
2081
|
class TagComponent {
|
|
2082
|
+
uiComponent;
|
|
2083
|
+
renderer;
|
|
2084
|
+
tagElementRef;
|
|
2085
|
+
tagNameElementRef;
|
|
2045
2086
|
constructor(uiComponent, renderer) {
|
|
2046
2087
|
this.uiComponent = uiComponent;
|
|
2047
2088
|
this.renderer = renderer;
|
|
@@ -2068,8 +2109,8 @@ class TagComponent {
|
|
|
2068
2109
|
this.renderer.setStyle(this.tagNameElementRef.nativeElement, 'font-size', fontSize);
|
|
2069
2110
|
}
|
|
2070
2111
|
}
|
|
2071
|
-
static
|
|
2072
|
-
static
|
|
2112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: TagComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: TagComponent, isStandalone: false, selector: "ng-component", viewQueries: [{ propertyName: "tagElementRef", first: true, predicate: ["tagElement"], descendants: true }, { propertyName: "tagNameElementRef", first: true, predicate: ["tagNameElement"], descendants: true }], ngImport: i0, template: "<div class=\"tag\" #tagElement *ngIf=\"uiComponent\" [edmSduiView]=\"uiComponent.element\">\n <span class=\"tag-name\" #tagNameElement>{{ uiComponent.element?.label ?? '' }}</span>\n</div>", styles: [":host{display:contents}.tag{padding:4px 8px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
2073
2114
|
}
|
|
2074
2115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: TagComponent, decorators: [{
|
|
2075
2116
|
type: Component,
|
|
@@ -2091,6 +2132,10 @@ var tag_component = /*#__PURE__*/Object.freeze({
|
|
|
2091
2132
|
});
|
|
2092
2133
|
|
|
2093
2134
|
class SearchBarComponent {
|
|
2135
|
+
actionService;
|
|
2136
|
+
uiComponent;
|
|
2137
|
+
renderer;
|
|
2138
|
+
inputElementRef;
|
|
2094
2139
|
constructor(actionService, uiComponent, renderer) {
|
|
2095
2140
|
this.actionService = actionService;
|
|
2096
2141
|
this.uiComponent = uiComponent;
|
|
@@ -2167,8 +2212,8 @@ class SearchBarComponent {
|
|
|
2167
2212
|
this.renderer.appendChild(document.head, styleEl);
|
|
2168
2213
|
}
|
|
2169
2214
|
}
|
|
2170
|
-
static
|
|
2171
|
-
static
|
|
2215
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SearchBarComponent, deps: [{ token: UIActionService }, { token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2216
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: SearchBarComponent, isStandalone: false, selector: "edm-sdui-search-bar", viewQueries: [{ propertyName: "inputElementRef", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<input\n #inputElement\n class=\"search-bar\"\n [edmSduiView]=\"uiComponent.element\"\n [disableClick]=\"true\"\n *ngIf=\"uiComponent\"\n/>\n", styles: [".search-bar{width:100vw;margin:1rem;line-height:1.5rem;padding:.25rem .5rem;background-color:var(--bg-search)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: UIViewDirective, selector: "[edmSduiView]", inputs: ["edmSduiView", "disableClick"] }] });
|
|
2172
2217
|
}
|
|
2173
2218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
2174
2219
|
type: Component,
|
|
@@ -2201,8 +2246,8 @@ class SduiModule {
|
|
|
2201
2246
|
static forRouting(config) {
|
|
2202
2247
|
return SduiRoutingModule.forChild(config?.routePath);
|
|
2203
2248
|
}
|
|
2204
|
-
static
|
|
2205
|
-
static
|
|
2249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2250
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.6", ngImport: i0, type: SduiModule, declarations: [
|
|
2206
2251
|
// UIComposite
|
|
2207
2252
|
UIScreenComponent,
|
|
2208
2253
|
UINavigationComponent,
|
|
@@ -2226,8 +2271,8 @@ class SduiModule {
|
|
|
2226
2271
|
// navegação
|
|
2227
2272
|
NavigationControlsComponent,
|
|
2228
2273
|
// componente base da lib
|
|
2229
|
-
SduiComponent], imports: [CommonModule, RouterModule], exports: [SduiComponent] });
|
|
2230
|
-
static
|
|
2274
|
+
SduiComponent], imports: [CommonModule, RouterModule], exports: [SduiComponent] });
|
|
2275
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiModule, imports: [CommonModule, RouterModule] });
|
|
2231
2276
|
}
|
|
2232
2277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: SduiModule, decorators: [{
|
|
2233
2278
|
type: NgModule,
|