@edm-sdui/sdui 1.0.2 → 1.0.4
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/edm-sdui-sdui.d.ts.map +1 -0
- package/esm2022/edm-sdui-sdui.mjs +5 -0
- package/esm2022/lib/components/navigation-controls/navigation-controls.component.mjs +27 -0
- package/esm2022/lib/components/uicomponent/button/button.component.mjs +47 -0
- package/esm2022/lib/components/uicomponent/column/column.component.mjs +23 -0
- package/esm2022/lib/components/uicomponent/image/image.component.mjs +48 -0
- package/esm2022/lib/components/uicomponent/label/label.component.mjs +49 -0
- package/esm2022/lib/components/uicomponent/row/row.component.mjs +23 -0
- package/esm2022/lib/components/uicomponent/row-divisor/row-divisor.component.mjs +22 -0
- package/esm2022/lib/components/uicomponent/search-bar/search-bar.component.mjs +99 -0
- package/esm2022/lib/components/uicomponent/space/space.component.mjs +20 -0
- package/esm2022/lib/components/uicomponent/tag/tag.component.mjs +50 -0
- package/esm2022/lib/components/uicomponent/uicomponent.component.mjs +41 -0
- package/esm2022/lib/components/uicomponent/zstack/zstack.component.mjs +23 -0
- package/esm2022/lib/components/uilayout/centered-content-layout/centered-content-layout.component.mjs +21 -0
- package/esm2022/lib/components/uilayout/single-column-layout/single-column-layout.component.mjs +21 -0
- package/esm2022/lib/components/uilayout/uinavigation/uinavigation.component.mjs +15 -0
- package/esm2022/lib/components/uiscreen/uiscreen.component.mjs +23 -0
- package/esm2022/lib/core/services/ui-action.service.mjs +42 -0
- package/esm2022/lib/core/services/uiscreen.service.mjs +150 -0
- package/esm2022/lib/core/tokens/sdui-config.token.mjs +3 -0
- package/esm2022/lib/core/uicomposition/enums/uicomponent-type.mjs +28 -0
- package/esm2022/lib/core/uicomposition/enums/uiplatform-type.mjs +6 -0
- package/esm2022/lib/core/uicomposition/enums/uiscene.mjs +5 -0
- package/esm2022/lib/core/uicomposition/enums/uiscreen-identifier.mjs +6 -0
- package/esm2022/lib/core/uicomposition/mapping/component-mapping.mjs +28 -0
- package/esm2022/lib/core/uicomposition/models/uicentered-content-layout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uicomponent.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uielement.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uilayout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uinavigation.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uiscreen.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uisingle-column-layout.mjs +2 -0
- package/esm2022/lib/core/uicomposition/models/uiview.mjs +2 -0
- package/esm2022/lib/core/uitheme/enums/uiaction-type.mjs +14 -0
- package/esm2022/lib/core/uitheme/enums/uialignment-type.mjs +7 -0
- package/esm2022/lib/core/uitheme/enums/uiaspect-type.mjs +6 -0
- package/esm2022/lib/core/uitheme/enums/uiasset.mjs +355 -0
- package/esm2022/lib/core/uitheme/enums/uicolor.mjs +131 -0
- package/esm2022/lib/core/uitheme/enums/uicontent-type.mjs +10 -0
- package/esm2022/lib/core/uitheme/enums/uipadding-level.mjs +12 -0
- package/esm2022/lib/core/uitheme/enums/uipresentation-style.mjs +7 -0
- package/esm2022/lib/core/uitheme/enums/uiradius-level.mjs +10 -0
- package/esm2022/lib/core/uitheme/enums/uishadow-blur-radius.mjs +5 -0
- package/esm2022/lib/core/uitheme/enums/uishadow-offset.mjs +5 -0
- package/esm2022/lib/core/uitheme/enums/uisize.mjs +13 -0
- package/esm2022/lib/core/uitheme/enums/uispacing-level.mjs +8 -0
- package/esm2022/lib/core/uitheme/enums/uitext-style.mjs +15 -0
- package/esm2022/lib/core/uitheme/mapping/alignment-mapping.mjs +7 -0
- package/esm2022/lib/core/uitheme/mapping/asset-mapping.mjs +355 -0
- package/esm2022/lib/core/uitheme/mapping/color-mapping.mjs +131 -0
- package/esm2022/lib/core/uitheme/mapping/pad-mapping.mjs +12 -0
- package/esm2022/lib/core/uitheme/mapping/radius-mapping.mjs +10 -0
- package/esm2022/lib/core/uitheme/mapping/size-mapping.mjs +24 -0
- package/esm2022/lib/core/uitheme/mapping/space-mapping.mjs +8 -0
- package/esm2022/lib/core/uitheme/mapping/text-style-mapping.mjs +15 -0
- package/esm2022/lib/core/uitheme/models/uiaction.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uialignment.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uibackground.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uipadding.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uiradius.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uishadow.mjs +2 -0
- package/esm2022/lib/core/uitheme/models/uispacing.mjs +2 -0
- package/esm2022/lib/core/utils/url-parser.util.mjs +27 -0
- package/esm2022/lib/core/view-models/uiscreen.viewmodel.mjs +101 -0
- package/esm2022/lib/directives/uiview.directive.mjs +140 -0
- package/esm2022/lib/sdui-routing.module.mjs +28 -0
- package/esm2022/lib/sdui.component.mjs +51 -0
- package/esm2022/lib/sdui.module.mjs +102 -0
- package/esm2022/public-api.mjs +12 -0
- package/fesm2022/edm-sdui-sdui.mjs +98 -135
- package/fesm2022/edm-sdui-sdui.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/components/navigation-controls/navigation-controls.component.d.ts +1 -0
- package/lib/components/navigation-controls/navigation-controls.component.d.ts.map +1 -0
- package/lib/components/uicomponent/button/button.component.d.ts +1 -0
- package/lib/components/uicomponent/button/button.component.d.ts.map +1 -0
- package/lib/components/uicomponent/column/column.component.d.ts +1 -0
- package/lib/components/uicomponent/column/column.component.d.ts.map +1 -0
- package/lib/components/uicomponent/image/image.component.d.ts +1 -0
- package/lib/components/uicomponent/image/image.component.d.ts.map +1 -0
- package/lib/components/uicomponent/label/label.component.d.ts +1 -0
- package/lib/components/uicomponent/label/label.component.d.ts.map +1 -0
- package/lib/components/uicomponent/row/row.component.d.ts +1 -0
- package/lib/components/uicomponent/row/row.component.d.ts.map +1 -0
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts +1 -0
- package/lib/components/uicomponent/row-divisor/row-divisor.component.d.ts.map +1 -0
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts +1 -0
- package/lib/components/uicomponent/search-bar/search-bar.component.d.ts.map +1 -0
- package/lib/components/uicomponent/space/space.component.d.ts +1 -0
- package/lib/components/uicomponent/space/space.component.d.ts.map +1 -0
- package/lib/components/uicomponent/tag/tag.component.d.ts +1 -0
- package/lib/components/uicomponent/tag/tag.component.d.ts.map +1 -0
- package/lib/components/uicomponent/uicomponent.component.d.ts +1 -0
- package/lib/components/uicomponent/uicomponent.component.d.ts.map +1 -0
- package/lib/components/uicomponent/zstack/zstack.component.d.ts +1 -0
- package/lib/components/uicomponent/zstack/zstack.component.d.ts.map +1 -0
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts +1 -0
- package/lib/components/uilayout/centered-content-layout/centered-content-layout.component.d.ts.map +1 -0
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts +1 -0
- package/lib/components/uilayout/single-column-layout/single-column-layout.component.d.ts.map +1 -0
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts +1 -0
- package/lib/components/uilayout/uinavigation/uinavigation.component.d.ts.map +1 -0
- package/lib/components/uiscreen/uiscreen.component.d.ts +1 -0
- package/lib/components/uiscreen/uiscreen.component.d.ts.map +1 -0
- package/lib/core/services/ui-action.service.d.ts +1 -0
- package/lib/core/services/ui-action.service.d.ts.map +1 -0
- package/lib/core/services/uiscreen.service.d.ts +1 -0
- package/lib/core/services/uiscreen.service.d.ts.map +1 -0
- package/lib/core/tokens/sdui-config.token.d.ts +1 -0
- package/lib/core/tokens/sdui-config.token.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts +1 -0
- package/lib/core/uicomposition/enums/uicomponent-type.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts +1 -0
- package/lib/core/uicomposition/enums/uiplatform-type.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiscene.d.ts +1 -0
- package/lib/core/uicomposition/enums/uiscene.d.ts.map +1 -0
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts +1 -0
- package/lib/core/uicomposition/enums/uiscreen-identifier.d.ts.map +1 -0
- package/lib/core/uicomposition/mapping/component-mapping.d.ts +1 -0
- package/lib/core/uicomposition/mapping/component-mapping.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts +1 -0
- package/lib/core/uicomposition/models/uicentered-content-layout.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uicomponent.d.ts +1 -0
- package/lib/core/uicomposition/models/uicomponent.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uielement.d.ts +1 -0
- package/lib/core/uicomposition/models/uielement.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uilayout.d.ts +1 -0
- package/lib/core/uicomposition/models/uilayout.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uinavigation.d.ts +1 -0
- package/lib/core/uicomposition/models/uinavigation.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uiscreen.d.ts +1 -0
- package/lib/core/uicomposition/models/uiscreen.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uisingle-column-layout.d.ts +1 -0
- package/lib/core/uicomposition/models/uisingle-column-layout.d.ts.map +1 -0
- package/lib/core/uicomposition/models/uiview.d.ts +1 -0
- package/lib/core/uicomposition/models/uiview.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiaction-type.d.ts +1 -0
- package/lib/core/uitheme/enums/uiaction-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uialignment-type.d.ts +1 -0
- package/lib/core/uitheme/enums/uialignment-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiaspect-type.d.ts +1 -0
- package/lib/core/uitheme/enums/uiaspect-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiasset.d.ts +1 -0
- package/lib/core/uitheme/enums/uiasset.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uicolor.d.ts +1 -0
- package/lib/core/uitheme/enums/uicolor.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uicontent-type.d.ts +1 -0
- package/lib/core/uitheme/enums/uicontent-type.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uipadding-level.d.ts +1 -0
- package/lib/core/uitheme/enums/uipadding-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uipresentation-style.d.ts +1 -0
- package/lib/core/uitheme/enums/uipresentation-style.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uiradius-level.d.ts +1 -0
- package/lib/core/uitheme/enums/uiradius-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts +1 -0
- package/lib/core/uitheme/enums/uishadow-blur-radius.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uishadow-offset.d.ts +1 -0
- package/lib/core/uitheme/enums/uishadow-offset.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uisize.d.ts +1 -0
- package/lib/core/uitheme/enums/uisize.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uispacing-level.d.ts +1 -0
- package/lib/core/uitheme/enums/uispacing-level.d.ts.map +1 -0
- package/lib/core/uitheme/enums/uitext-style.d.ts +1 -0
- package/lib/core/uitheme/enums/uitext-style.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/alignment-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/asset-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/asset-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/color-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/color-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/pad-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/pad-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/radius-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/radius-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/size-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/size-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/space-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/space-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts +1 -0
- package/lib/core/uitheme/mapping/text-style-mapping.d.ts.map +1 -0
- package/lib/core/uitheme/models/uiaction.d.ts +1 -0
- package/lib/core/uitheme/models/uiaction.d.ts.map +1 -0
- package/lib/core/uitheme/models/uialignment.d.ts +1 -0
- package/lib/core/uitheme/models/uialignment.d.ts.map +1 -0
- package/lib/core/uitheme/models/uibackground.d.ts +1 -0
- package/lib/core/uitheme/models/uibackground.d.ts.map +1 -0
- package/lib/core/uitheme/models/uipadding.d.ts +1 -0
- package/lib/core/uitheme/models/uipadding.d.ts.map +1 -0
- package/lib/core/uitheme/models/uiradius.d.ts +1 -0
- package/lib/core/uitheme/models/uiradius.d.ts.map +1 -0
- package/lib/core/uitheme/models/uishadow.d.ts +1 -0
- package/lib/core/uitheme/models/uishadow.d.ts.map +1 -0
- package/lib/core/uitheme/models/uispacing.d.ts +1 -0
- package/lib/core/uitheme/models/uispacing.d.ts.map +1 -0
- package/lib/core/utils/url-parser.util.d.ts +1 -0
- package/lib/core/utils/url-parser.util.d.ts.map +1 -0
- package/lib/core/view-models/uiscreen.viewmodel.d.ts +4 -3
- package/lib/core/view-models/uiscreen.viewmodel.d.ts.map +1 -0
- package/lib/directives/uiview.directive.d.ts +1 -0
- package/lib/directives/uiview.directive.d.ts.map +1 -0
- package/lib/sdui-routing.module.d.ts +1 -0
- package/lib/sdui-routing.module.d.ts.map +1 -0
- package/lib/sdui.component.d.ts +1 -0
- package/lib/sdui.component.d.ts.map +1 -0
- package/lib/sdui.module.d.ts +1 -0
- package/lib/sdui.module.d.ts.map +1 -0
- package/package.json +5 -3
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -0
|
@@ -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 { tap } from 'rxjs/operators';
|
|
9
8
|
import * as i1 from '@angular/common/http';
|
|
9
|
+
import { tap } from 'rxjs/operators';
|
|
10
10
|
|
|
11
11
|
var UIScreenIdentifier;
|
|
12
12
|
(function (UIScreenIdentifier) {
|
|
@@ -55,7 +55,15 @@ function resolveSduiUrl(rawUrl, baseUrl = '') {
|
|
|
55
55
|
finalUrl = decodeURIComponent(extractedUrl);
|
|
56
56
|
}
|
|
57
57
|
if (!finalUrl.startsWith('http')) {
|
|
58
|
-
finalUrl
|
|
58
|
+
if (baseUrl.endsWith('/') && finalUrl.startsWith('/')) {
|
|
59
|
+
finalUrl = baseUrl + finalUrl.substring(1); // remove uma barra
|
|
60
|
+
}
|
|
61
|
+
else if (!baseUrl.endsWith('/') && !finalUrl.startsWith('/')) {
|
|
62
|
+
finalUrl = `${baseUrl}/${finalUrl}`; // adiciona barra
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
finalUrl = `${baseUrl}${finalUrl}`; // um dos dois já tem barra
|
|
66
|
+
}
|
|
59
67
|
}
|
|
60
68
|
return finalUrl;
|
|
61
69
|
}
|
|
@@ -64,8 +72,6 @@ function isSduiUrl(rawUrl) {
|
|
|
64
72
|
}
|
|
65
73
|
|
|
66
74
|
class UIScreenService {
|
|
67
|
-
http;
|
|
68
|
-
baseUrl;
|
|
69
75
|
constructor(http, baseUrl = '') {
|
|
70
76
|
this.http = http;
|
|
71
77
|
this.baseUrl = baseUrl;
|
|
@@ -191,10 +197,10 @@ class UIScreenService {
|
|
|
191
197
|
: null,
|
|
192
198
|
};
|
|
193
199
|
}
|
|
194
|
-
static
|
|
195
|
-
static
|
|
200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenService, deps: [{ token: i1.HttpClient }, { token: SDUI_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
201
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenService, providedIn: 'root' }); }
|
|
196
202
|
}
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenService, decorators: [{
|
|
198
204
|
type: Injectable,
|
|
199
205
|
args: [{
|
|
200
206
|
providedIn: 'root',
|
|
@@ -208,24 +214,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
208
214
|
|
|
209
215
|
const SDUI_URL_PARAM = 'sduiUrl';
|
|
210
216
|
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();
|
|
225
217
|
constructor(uiScreenService, location //private router: Router, //private route: ActivatedRoute
|
|
226
218
|
) {
|
|
227
219
|
this.uiScreenService = uiScreenService;
|
|
228
220
|
this.location = location;
|
|
221
|
+
this.uiScreenSubject = new BehaviorSubject(null);
|
|
222
|
+
this.isLoadingSubject = new BehaviorSubject(false);
|
|
223
|
+
this.errorSubject = new BehaviorSubject(null);
|
|
224
|
+
this.navigationHistorySubject = new BehaviorSubject([]);
|
|
225
|
+
this.canGoBackSubject = new BehaviorSubject(false);
|
|
226
|
+
this.currentUrlSubject = new BehaviorSubject(null);
|
|
227
|
+
this.uiScreen$ = this.uiScreenSubject.asObservable();
|
|
228
|
+
this.isLoading$ = this.isLoadingSubject.asObservable();
|
|
229
|
+
this.error$ = this.errorSubject.asObservable();
|
|
230
|
+
this.navigationHistory$ = this.navigationHistorySubject.asObservable();
|
|
231
|
+
this.canGoBack$ = this.canGoBackSubject.asObservable();
|
|
232
|
+
this.currentUrl$ = this.currentUrlSubject.asObservable();
|
|
229
233
|
console.debug('[UIScreenViewModel] Inicializado');
|
|
230
234
|
}
|
|
231
235
|
/**
|
|
@@ -291,10 +295,10 @@ class UIScreenViewModel {
|
|
|
291
295
|
canGoBack() {
|
|
292
296
|
return this.navigationHistorySubject.getValue().length > 1;
|
|
293
297
|
}
|
|
294
|
-
static
|
|
295
|
-
static
|
|
298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenViewModel, deps: [{ token: UIScreenService }, { token: i1$1.Location }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
299
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenViewModel, providedIn: 'root' }); }
|
|
296
300
|
}
|
|
297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenViewModel, decorators: [{
|
|
298
302
|
type: Injectable,
|
|
299
303
|
args: [{
|
|
300
304
|
providedIn: 'root',
|
|
@@ -329,11 +333,6 @@ const componentMapping = {
|
|
|
329
333
|
};
|
|
330
334
|
|
|
331
335
|
class UIComponentComponent {
|
|
332
|
-
injector;
|
|
333
|
-
cdr;
|
|
334
|
-
uiComponent;
|
|
335
|
-
componentToRender;
|
|
336
|
-
componentInjector;
|
|
337
336
|
constructor(injector, cdr) {
|
|
338
337
|
this.injector = injector;
|
|
339
338
|
this.cdr = cdr;
|
|
@@ -360,10 +359,10 @@ class UIComponentComponent {
|
|
|
360
359
|
parent: this.injector,
|
|
361
360
|
});
|
|
362
361
|
}
|
|
363
|
-
static
|
|
364
|
-
static
|
|
362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIComponentComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
363
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: UIComponentComponent, 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"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
365
364
|
}
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIComponentComponent, decorators: [{
|
|
367
366
|
type: Component,
|
|
368
367
|
args: [{ selector: 'edm-sdui-component', standalone: false, 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"] }]
|
|
369
368
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }], propDecorators: { uiComponent: [{
|
|
@@ -371,11 +370,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
371
370
|
}] } });
|
|
372
371
|
|
|
373
372
|
class UINavigationComponent {
|
|
374
|
-
|
|
375
|
-
static
|
|
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"] }] });
|
|
373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UINavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: UINavigationComponent, 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"] }] }); }
|
|
377
375
|
}
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UINavigationComponent, decorators: [{
|
|
379
377
|
type: Component,
|
|
380
378
|
args: [{ selector: 'edm-sdui-navigation', standalone: false, 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"] }]
|
|
381
379
|
}], propDecorators: { uiNavigation: [{
|
|
@@ -383,16 +381,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
383
381
|
}] } });
|
|
384
382
|
|
|
385
383
|
class SingleColumnLayoutComponent {
|
|
386
|
-
uiLayout;
|
|
387
384
|
ngOnChanges(changes) {
|
|
388
385
|
if (changes['uiLayout']) {
|
|
389
386
|
console.debug('[SingleColumnLayout] Novo layout recebido:', changes['uiLayout'].currentValue);
|
|
390
387
|
}
|
|
391
388
|
}
|
|
392
|
-
static
|
|
393
|
-
static
|
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SingleColumnLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
390
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SingleColumnLayoutComponent, 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"] }] }); }
|
|
394
391
|
}
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SingleColumnLayoutComponent, decorators: [{
|
|
396
393
|
type: Component,
|
|
397
394
|
args: [{ selector: 'edm-sdui-single-column-layout', standalone: false, 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"] }]
|
|
398
395
|
}], propDecorators: { uiLayout: [{
|
|
@@ -400,16 +397,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
400
397
|
}] } });
|
|
401
398
|
|
|
402
399
|
class CenteredContentLayoutComponent {
|
|
403
|
-
uiLayout;
|
|
404
400
|
ngOnChanges(changes) {
|
|
405
401
|
if (changes['uiLayout']) {
|
|
406
402
|
console.debug('[CenteredContentLayoutComponent] Novo layout recebido:', changes['uiLayout'].currentValue);
|
|
407
403
|
}
|
|
408
404
|
}
|
|
409
|
-
static
|
|
410
|
-
static
|
|
405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CenteredContentLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
406
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CenteredContentLayoutComponent, 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"] }] }); }
|
|
411
407
|
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CenteredContentLayoutComponent, decorators: [{
|
|
413
409
|
type: Component,
|
|
414
410
|
args: [{ selector: 'edm-sdui-centered-content-layout', standalone: false, 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"] }]
|
|
415
411
|
}], propDecorators: { uiLayout: [{
|
|
@@ -762,7 +758,6 @@ var UIActionType;
|
|
|
762
758
|
})(UIActionType || (UIActionType = {}));
|
|
763
759
|
|
|
764
760
|
class UIActionService {
|
|
765
|
-
router;
|
|
766
761
|
constructor(router) {
|
|
767
762
|
this.router = router;
|
|
768
763
|
}
|
|
@@ -789,28 +784,22 @@ class UIActionService {
|
|
|
789
784
|
// Outros tipos de ação podem ser adicionados aqui
|
|
790
785
|
}
|
|
791
786
|
}
|
|
792
|
-
static
|
|
793
|
-
static
|
|
787
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIActionService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
788
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIActionService, providedIn: 'root' }); }
|
|
794
789
|
}
|
|
795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIActionService, decorators: [{
|
|
796
791
|
type: Injectable,
|
|
797
792
|
args: [{ providedIn: 'root' }]
|
|
798
793
|
}], ctorParameters: () => [{ type: i1$2.Router }] });
|
|
799
794
|
|
|
800
795
|
class UIViewDirective {
|
|
801
|
-
elementRef;
|
|
802
|
-
renderer;
|
|
803
|
-
router;
|
|
804
|
-
actionService;
|
|
805
|
-
screenViewModel;
|
|
806
|
-
edmSduiView;
|
|
807
|
-
disableClick = false;
|
|
808
796
|
constructor(elementRef, renderer, router, actionService, screenViewModel) {
|
|
809
797
|
this.elementRef = elementRef;
|
|
810
798
|
this.renderer = renderer;
|
|
811
799
|
this.router = router;
|
|
812
800
|
this.actionService = actionService;
|
|
813
801
|
this.screenViewModel = screenViewModel;
|
|
802
|
+
this.disableClick = false;
|
|
814
803
|
}
|
|
815
804
|
ngOnChanges(changes) {
|
|
816
805
|
if (this.edmSduiView) {
|
|
@@ -910,10 +899,10 @@ class UIViewDirective {
|
|
|
910
899
|
this.actionService.execute(this.edmSduiView.action);
|
|
911
900
|
}
|
|
912
901
|
}
|
|
913
|
-
static
|
|
914
|
-
static
|
|
902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", 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 }); }
|
|
903
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: UIViewDirective, selector: "[edmSduiView]", inputs: { edmSduiView: "edmSduiView", disableClick: "disableClick" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
915
904
|
}
|
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIViewDirective, decorators: [{
|
|
917
906
|
type: Directive,
|
|
918
907
|
args: [{
|
|
919
908
|
selector: '[edmSduiView]',
|
|
@@ -931,7 +920,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
931
920
|
}] } });
|
|
932
921
|
|
|
933
922
|
class NavigationControlsComponent {
|
|
934
|
-
viewModel;
|
|
935
923
|
constructor(viewModel) {
|
|
936
924
|
this.viewModel = viewModel;
|
|
937
925
|
}
|
|
@@ -945,40 +933,38 @@ class NavigationControlsComponent {
|
|
|
945
933
|
console.debug('[NavigationControls] Botão de voltar clicado');
|
|
946
934
|
this.viewModel.goBack();
|
|
947
935
|
}
|
|
948
|
-
static
|
|
949
|
-
static
|
|
936
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavigationControlsComponent, deps: [{ token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
937
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NavigationControlsComponent, 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" }] }); }
|
|
950
938
|
}
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavigationControlsComponent, decorators: [{
|
|
952
940
|
type: Component,
|
|
953
941
|
args: [{ selector: 'edm-sdui-navigation-controls', standalone: false, 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"] }]
|
|
954
942
|
}], ctorParameters: () => [{ type: UIScreenViewModel }] });
|
|
955
943
|
|
|
956
944
|
class UIScreenComponent {
|
|
957
|
-
viewModel;
|
|
958
|
-
UIScreenIdentifier = UIScreenIdentifier;
|
|
959
945
|
constructor(viewModel) {
|
|
960
946
|
this.viewModel = viewModel;
|
|
947
|
+
this.UIScreenIdentifier = UIScreenIdentifier;
|
|
961
948
|
}
|
|
962
|
-
static
|
|
963
|
-
static
|
|
949
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenComponent, deps: [{ token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
950
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: UIScreenComponent, 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" }] }); }
|
|
964
951
|
}
|
|
965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UIScreenComponent, decorators: [{
|
|
966
953
|
type: Component,
|
|
967
954
|
args: [{ selector: 'edm-sdui-uiscreen', standalone: false, 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"] }]
|
|
968
955
|
}], ctorParameters: () => [{ type: UIScreenViewModel }] });
|
|
969
956
|
|
|
970
957
|
class RowComponent {
|
|
971
|
-
uiComponent;
|
|
972
958
|
constructor(uiComponent) {
|
|
973
959
|
this.uiComponent = uiComponent;
|
|
974
960
|
}
|
|
975
961
|
ngOnInit() {
|
|
976
962
|
// console.debug('row.uiComponent: ', this.uiComponent);
|
|
977
963
|
}
|
|
978
|
-
static
|
|
979
|
-
static
|
|
964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
965
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RowComponent, 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"] }] }); }
|
|
980
966
|
}
|
|
981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowComponent, decorators: [{
|
|
982
968
|
type: Component,
|
|
983
969
|
args: [{ selector: 'edm-sdui-row', standalone: false, 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"] }]
|
|
984
970
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -992,17 +978,16 @@ var row_component = /*#__PURE__*/Object.freeze({
|
|
|
992
978
|
});
|
|
993
979
|
|
|
994
980
|
class ColumnComponent {
|
|
995
|
-
uiComponent;
|
|
996
981
|
constructor(uiComponent) {
|
|
997
982
|
this.uiComponent = uiComponent;
|
|
998
983
|
}
|
|
999
984
|
ngOnInit() {
|
|
1000
985
|
// console.debug('column.uiComponent: ', this.uiComponent);
|
|
1001
986
|
}
|
|
1002
|
-
static
|
|
1003
|
-
static
|
|
987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ColumnComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
988
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ColumnComponent, 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"] }] }); }
|
|
1004
989
|
}
|
|
1005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
1006
991
|
type: Component,
|
|
1007
992
|
args: [{ selector: 'edm-sdui-column', standalone: false, 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"] }]
|
|
1008
993
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1045,9 +1030,6 @@ const textStyleMappingFontSize = {
|
|
|
1045
1030
|
};
|
|
1046
1031
|
|
|
1047
1032
|
class LabelComponent {
|
|
1048
|
-
uiComponent;
|
|
1049
|
-
renderer;
|
|
1050
|
-
spanElementRef;
|
|
1051
1033
|
constructor(uiComponent, renderer) {
|
|
1052
1034
|
this.uiComponent = uiComponent;
|
|
1053
1035
|
this.renderer = renderer;
|
|
@@ -1076,10 +1058,10 @@ class LabelComponent {
|
|
|
1076
1058
|
this.renderer.setStyle(this.spanElementRef.nativeElement, 'opacity', opacity);
|
|
1077
1059
|
}
|
|
1078
1060
|
}
|
|
1079
|
-
static
|
|
1080
|
-
static
|
|
1061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LabelComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1062
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LabelComponent, 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"] }] }); }
|
|
1081
1063
|
}
|
|
1082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LabelComponent, decorators: [{
|
|
1083
1065
|
type: Component,
|
|
1084
1066
|
args: [{ selector: 'edm-sdui-label', standalone: false, template: "<span #spanElement [edmSduiView]=\"uiComponent.element\" *ngIf=\"uiComponent\">{{\n uiComponent.element?.label ?? \"\"\n}}</span>\n", styles: [":host{display:contents}\n"] }]
|
|
1085
1067
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1096,17 +1078,16 @@ var label_component = /*#__PURE__*/Object.freeze({
|
|
|
1096
1078
|
});
|
|
1097
1079
|
|
|
1098
1080
|
class SpaceComponent {
|
|
1099
|
-
uiComponent;
|
|
1100
1081
|
constructor(uiComponent) {
|
|
1101
1082
|
this.uiComponent = uiComponent;
|
|
1102
1083
|
}
|
|
1103
1084
|
ngOnInit() {
|
|
1104
1085
|
// console.debug('space.uiComponent: ', this.uiComponent);
|
|
1105
1086
|
}
|
|
1106
|
-
static
|
|
1107
|
-
static
|
|
1087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpaceComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1088
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpaceComponent, 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"] }); }
|
|
1108
1089
|
}
|
|
1109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpaceComponent, decorators: [{
|
|
1110
1091
|
type: Component,
|
|
1111
1092
|
args: [{ selector: 'edm-sdui-space', standalone: false, template: "<div class=\"space\"></div>\n", styles: [":host{display:contents}.space{flex-grow:1;flex-shrink:1;min-height:1px;min-width:1px}\n"] }]
|
|
1112
1093
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1120,17 +1101,16 @@ var space_component = /*#__PURE__*/Object.freeze({
|
|
|
1120
1101
|
});
|
|
1121
1102
|
|
|
1122
1103
|
class ZStackComponent {
|
|
1123
|
-
uiComponent;
|
|
1124
1104
|
constructor(uiComponent) {
|
|
1125
1105
|
this.uiComponent = uiComponent;
|
|
1126
1106
|
}
|
|
1127
1107
|
ngOnInit() {
|
|
1128
1108
|
// console.debug('zstack.uiComponent: ', this.uiComponent);
|
|
1129
1109
|
}
|
|
1130
|
-
static
|
|
1131
|
-
static
|
|
1110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ZStackComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1111
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ZStackComponent, 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"] }] }); }
|
|
1132
1112
|
}
|
|
1133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ZStackComponent, decorators: [{
|
|
1134
1114
|
type: Component,
|
|
1135
1115
|
args: [{ selector: 'edm-sdui-zstack', standalone: false, 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"] }]
|
|
1136
1116
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1144,17 +1124,16 @@ var zstack_component = /*#__PURE__*/Object.freeze({
|
|
|
1144
1124
|
});
|
|
1145
1125
|
|
|
1146
1126
|
class RowDivisorComponent {
|
|
1147
|
-
uiComponent;
|
|
1148
1127
|
constructor(uiComponent) {
|
|
1149
1128
|
this.uiComponent = uiComponent;
|
|
1150
1129
|
}
|
|
1151
1130
|
ngOnInit() {
|
|
1152
1131
|
// console.debug('rowDivisor.uiComponent: ', this.uiComponent);
|
|
1153
1132
|
}
|
|
1154
|
-
static
|
|
1155
|
-
static
|
|
1133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowDivisorComponent, deps: [{ token: 'uiComponent' }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1134
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RowDivisorComponent, 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"] }] }); }
|
|
1156
1135
|
}
|
|
1157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RowDivisorComponent, decorators: [{
|
|
1158
1137
|
type: Component,
|
|
1159
1138
|
args: [{ selector: 'edm-sdui-row-divisor', standalone: false, 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"] }]
|
|
1160
1139
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1877,9 +1856,6 @@ const assetMapping = {
|
|
|
1877
1856
|
};
|
|
1878
1857
|
|
|
1879
1858
|
class ButtonComponent {
|
|
1880
|
-
uiComponent;
|
|
1881
|
-
renderer;
|
|
1882
|
-
buttonElementRef;
|
|
1883
1859
|
constructor(uiComponent, renderer) {
|
|
1884
1860
|
this.uiComponent = uiComponent;
|
|
1885
1861
|
this.renderer = renderer;
|
|
@@ -1905,10 +1881,10 @@ class ButtonComponent {
|
|
|
1905
1881
|
getAssetPath(asset) {
|
|
1906
1882
|
return './assets/' + assetMapping[asset];
|
|
1907
1883
|
}
|
|
1908
|
-
static
|
|
1909
|
-
static
|
|
1884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1885
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, 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"] }] }); }
|
|
1910
1886
|
}
|
|
1911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1912
1888
|
type: Component,
|
|
1913
1889
|
args: [{ selector: 'edm-sdui-button', standalone: false, 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"] }]
|
|
1914
1890
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1961,9 +1937,6 @@ const sizeMappingWidth = {
|
|
|
1961
1937
|
};
|
|
1962
1938
|
|
|
1963
1939
|
class ImageComponent {
|
|
1964
|
-
uiComponent;
|
|
1965
|
-
renderer;
|
|
1966
|
-
imgElementRef;
|
|
1967
1940
|
constructor(uiComponent, renderer) {
|
|
1968
1941
|
this.uiComponent = uiComponent;
|
|
1969
1942
|
this.renderer = renderer;
|
|
@@ -1991,10 +1964,10 @@ class ImageComponent {
|
|
|
1991
1964
|
this.renderer.setStyle(this.imgElementRef.nativeElement, 'width', width);
|
|
1992
1965
|
}
|
|
1993
1966
|
}
|
|
1994
|
-
static
|
|
1995
|
-
static
|
|
1967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImageComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1968
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ImageComponent, 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"] }] }); }
|
|
1996
1969
|
}
|
|
1997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ImageComponent, decorators: [{
|
|
1998
1971
|
type: Component,
|
|
1999
1972
|
args: [{ selector: 'edm-sdui-image', standalone: false, template: "<img #imgElement [edmSduiView]=\"uiComponent.element\" *ngIf=\"uiComponent\" />\n", styles: [":host{display:contents}\n"] }]
|
|
2000
1973
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -2011,13 +1984,11 @@ var image_component = /*#__PURE__*/Object.freeze({
|
|
|
2011
1984
|
});
|
|
2012
1985
|
|
|
2013
1986
|
class SduiComponent {
|
|
2014
|
-
route;
|
|
2015
|
-
viewModel;
|
|
2016
|
-
currentSduiUrl = null;
|
|
2017
|
-
initialUrl = null;
|
|
2018
1987
|
constructor(route, viewModel) {
|
|
2019
1988
|
this.route = route;
|
|
2020
1989
|
this.viewModel = viewModel;
|
|
1990
|
+
this.currentSduiUrl = null;
|
|
1991
|
+
this.initialUrl = null;
|
|
2021
1992
|
}
|
|
2022
1993
|
ngOnInit() {
|
|
2023
1994
|
this.viewModel.currentUrl$.subscribe((url) => {
|
|
@@ -2045,10 +2016,10 @@ class SduiComponent {
|
|
|
2045
2016
|
validateParam(paramValue) {
|
|
2046
2017
|
return !!paramValue && paramValue.trim() !== '';
|
|
2047
2018
|
}
|
|
2048
|
-
static
|
|
2049
|
-
static
|
|
2019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: UIScreenViewModel }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2020
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SduiComponent, 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" }] }); }
|
|
2050
2021
|
}
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiComponent, decorators: [{
|
|
2052
2023
|
type: Component,
|
|
2053
2024
|
args: [{ selector: 'edm-sdui', standalone: false, 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"] }]
|
|
2054
2025
|
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: UIScreenViewModel }], propDecorators: { initialUrl: [{
|
|
@@ -2066,11 +2037,11 @@ class SduiRoutingModule {
|
|
|
2066
2037
|
providers: [],
|
|
2067
2038
|
};
|
|
2068
2039
|
}
|
|
2069
|
-
static
|
|
2070
|
-
static
|
|
2071
|
-
static
|
|
2040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2041
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SduiRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
2042
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiRoutingModule, imports: [RouterModule.forChild(defaultRoutes), RouterModule] }); }
|
|
2072
2043
|
}
|
|
2073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiRoutingModule, decorators: [{
|
|
2074
2045
|
type: NgModule,
|
|
2075
2046
|
args: [{
|
|
2076
2047
|
imports: [RouterModule.forChild(defaultRoutes)],
|
|
@@ -2079,10 +2050,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImpor
|
|
|
2079
2050
|
}] });
|
|
2080
2051
|
|
|
2081
2052
|
class TagComponent {
|
|
2082
|
-
uiComponent;
|
|
2083
|
-
renderer;
|
|
2084
|
-
tagElementRef;
|
|
2085
|
-
tagNameElementRef;
|
|
2086
2053
|
constructor(uiComponent, renderer) {
|
|
2087
2054
|
this.uiComponent = uiComponent;
|
|
2088
2055
|
this.renderer = renderer;
|
|
@@ -2109,10 +2076,10 @@ class TagComponent {
|
|
|
2109
2076
|
this.renderer.setStyle(this.tagNameElementRef.nativeElement, 'font-size', fontSize);
|
|
2110
2077
|
}
|
|
2111
2078
|
}
|
|
2112
|
-
static
|
|
2113
|
-
static
|
|
2079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TagComponent, deps: [{ token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2080
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TagComponent, 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"] }] }); }
|
|
2114
2081
|
}
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TagComponent, decorators: [{
|
|
2116
2083
|
type: Component,
|
|
2117
2084
|
args: [{ standalone: false, 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"] }]
|
|
2118
2085
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -2132,10 +2099,6 @@ var tag_component = /*#__PURE__*/Object.freeze({
|
|
|
2132
2099
|
});
|
|
2133
2100
|
|
|
2134
2101
|
class SearchBarComponent {
|
|
2135
|
-
actionService;
|
|
2136
|
-
uiComponent;
|
|
2137
|
-
renderer;
|
|
2138
|
-
inputElementRef;
|
|
2139
2102
|
constructor(actionService, uiComponent, renderer) {
|
|
2140
2103
|
this.actionService = actionService;
|
|
2141
2104
|
this.uiComponent = uiComponent;
|
|
@@ -2212,10 +2175,10 @@ class SearchBarComponent {
|
|
|
2212
2175
|
this.renderer.appendChild(document.head, styleEl);
|
|
2213
2176
|
}
|
|
2214
2177
|
}
|
|
2215
|
-
static
|
|
2216
|
-
static
|
|
2178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchBarComponent, deps: [{ token: UIActionService }, { token: 'uiComponent' }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SearchBarComponent, 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"] }] }); }
|
|
2217
2180
|
}
|
|
2218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
2219
2182
|
type: Component,
|
|
2220
2183
|
args: [{ standalone: false, selector: 'edm-sdui-search-bar', 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"] }]
|
|
2221
2184
|
}], ctorParameters: () => [{ type: UIActionService }, { type: undefined, decorators: [{
|
|
@@ -2246,8 +2209,8 @@ class SduiModule {
|
|
|
2246
2209
|
static forRouting(config) {
|
|
2247
2210
|
return SduiRoutingModule.forChild(config?.routePath);
|
|
2248
2211
|
}
|
|
2249
|
-
static
|
|
2250
|
-
static
|
|
2212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2213
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SduiModule, declarations: [
|
|
2251
2214
|
// UIComposite
|
|
2252
2215
|
UIScreenComponent,
|
|
2253
2216
|
UINavigationComponent,
|
|
@@ -2271,10 +2234,10 @@ class SduiModule {
|
|
|
2271
2234
|
// navegação
|
|
2272
2235
|
NavigationControlsComponent,
|
|
2273
2236
|
// componente base da lib
|
|
2274
|
-
SduiComponent], imports: [CommonModule, RouterModule], exports: [SduiComponent] });
|
|
2275
|
-
static
|
|
2237
|
+
SduiComponent], imports: [CommonModule, RouterModule], exports: [SduiComponent] }); }
|
|
2238
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiModule, imports: [CommonModule, RouterModule] }); }
|
|
2276
2239
|
}
|
|
2277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SduiModule, decorators: [{
|
|
2278
2241
|
type: NgModule,
|
|
2279
2242
|
args: [{
|
|
2280
2243
|
declarations: [
|