@wavemaker/app-ng-runtime 12.0.0-next.45052 → 12.0.0-next.45057
Sign up to get free protection for your applications and to get access to all the features.
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +14 -6
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +14 -7
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +3 -2
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -6
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +1 -0
- app-ng-runtime/components/input/default/bundles/index.umd.js +77 -50
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +64 -38
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +77 -50
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -0
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- app-ng-runtime/core/bundles/index.umd.js +3 -0
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/utils/utils.mjs +2 -1
- app-ng-runtime/core/fesm2022/index.mjs +3 -1
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +1 -0
- app-ng-runtime/package.json +1 -1
@@ -182,7 +182,7 @@
|
|
182
182
|
class LeftPanelDirective extends base.StylableComponent {
|
183
183
|
static { this.initializeProps = registerProps(); }
|
184
184
|
//If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
|
185
|
-
constructor(app, page, layout, inj, router, explicitContext) {
|
185
|
+
constructor(app, page, layout, inj, router, explicitContext, navtype) {
|
186
186
|
super(inj, WIDGET_CONFIG, explicitContext);
|
187
187
|
this.app = app;
|
188
188
|
this.page = page;
|
@@ -203,6 +203,7 @@
|
|
203
203
|
}
|
204
204
|
});
|
205
205
|
this.registerDestroyListener(() => onRouteChange.unsubscribe());
|
206
|
+
navtype && this.$element.addClass(i1.APP_NAV + '-' + navtype);
|
206
207
|
}
|
207
208
|
collapse() {
|
208
209
|
i1.addClass(this.nativeElement, 'swipee-transition');
|
@@ -354,7 +355,7 @@
|
|
354
355
|
}
|
355
356
|
});
|
356
357
|
}
|
357
|
-
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective, 8), i0__namespace.ɵɵdirectiveInject(i2__namespace.LayoutDirective, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i3__namespace.Router), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
358
|
+
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject(i2__namespace.PageDirective, 8), i0__namespace.ɵɵdirectiveInject(i2__namespace.LayoutDirective, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i3__namespace.Router), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinjectAttribute('nav-type')); }; }
|
358
359
|
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0__namespace.ɵɵProvidersFeature([
|
359
360
|
base.provideAsWidgetRef(LeftPanelDirective)
|
360
361
|
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
@@ -377,6 +378,9 @@
|
|
377
378
|
args: ['EXPLICIT_CONTEXT']
|
378
379
|
}, {
|
379
380
|
type: i0.Optional
|
381
|
+
}] }, { type: undefined, decorators: [{
|
382
|
+
type: i0.Attribute,
|
383
|
+
args: ['nav-type']
|
380
384
|
}] }], null); })();
|
381
385
|
|
382
386
|
const components = [
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Directive, Inject, Injector, Optional } from '@angular/core';
|
1
|
+
import { Attribute, Directive, Inject, Injector, Optional } from '@angular/core';
|
2
2
|
import { NavigationStart, Router } from '@angular/router';
|
3
|
-
import { App, addClass, removeClass, switchClass, toggleClass, isMobile } from '@wm/core';
|
3
|
+
import { App, addClass, removeClass, switchClass, toggleClass, isMobile, APP_NAV } from '@wm/core';
|
4
4
|
import { APPLY_STYLES_TYPE, getKeyboardFocusableElements, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
|
5
5
|
import { LayoutDirective, PageDirective } from '@wm/components/page';
|
6
6
|
import { registerProps } from './left-panel.props';
|
@@ -22,7 +22,7 @@ export var AnimationType;
|
|
22
22
|
export class LeftPanelDirective extends StylableComponent {
|
23
23
|
static { this.initializeProps = registerProps(); }
|
24
24
|
//If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
|
25
|
-
constructor(app, page, layout, inj, router, explicitContext) {
|
25
|
+
constructor(app, page, layout, inj, router, explicitContext, navtype) {
|
26
26
|
super(inj, WIDGET_CONFIG, explicitContext);
|
27
27
|
this.app = app;
|
28
28
|
this.page = page;
|
@@ -43,6 +43,7 @@ export class LeftPanelDirective extends StylableComponent {
|
|
43
43
|
}
|
44
44
|
});
|
45
45
|
this.registerDestroyListener(() => onRouteChange.unsubscribe());
|
46
|
+
navtype && this.$element.addClass(APP_NAV + '-' + navtype);
|
46
47
|
}
|
47
48
|
collapse() {
|
48
49
|
addClass(this.nativeElement, 'swipee-transition');
|
@@ -194,7 +195,7 @@ export class LeftPanelDirective extends StylableComponent {
|
|
194
195
|
}
|
195
196
|
});
|
196
197
|
}
|
197
|
-
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
198
|
+
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
|
198
199
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0.ɵɵProvidersFeature([
|
199
200
|
provideAsWidgetRef(LeftPanelDirective)
|
200
201
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
@@ -217,5 +218,8 @@ export class LeftPanelDirective extends StylableComponent {
|
|
217
218
|
args: ['EXPLICIT_CONTEXT']
|
218
219
|
}, {
|
219
220
|
type: Optional
|
221
|
+
}] }, { type: undefined, decorators: [{
|
222
|
+
type: Attribute,
|
223
|
+
args: ['nav-type']
|
220
224
|
}] }], null); })();
|
221
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVmdC1wYW5lbC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvcGFnZS9sZWZ0LXBhbmVsL3NyYy9sZWZ0LXBhbmVsLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFMUQsT0FBTyxFQUFDLEdBQUcsRUFBRSxRQUFRLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxXQUFXLEVBQUUsUUFBUSxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSw0QkFBNEIsRUFBa0Isa0JBQWtCLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDckosT0FBTyxFQUFFLGVBQWUsRUFBRSxhQUFhLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUVyRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDbkQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7Ozs7O0FBRTFELE1BQU0sV0FBVyxHQUFHLHFDQUFxQyxDQUFDO0FBQzFELE1BQU0sYUFBYSxHQUFrQjtJQUNqQ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uICAgICAgICAgICAgICAgIHRoaXMuY29sbGFwc2UoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHRoaXMuJGVsZW1lbnQub24oJ2tleWRvd24nLCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgIGlmIChldmVudC5rZXkgPT09ICdFc2NhcGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2xsYXBzZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNHZXN0dXJlc0VuYWJsZWQoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmdlc3R1cmVzID09PSAnb24nO1xuICAgIH1cblxuICAgIHB1YmxpYyBpc1Zpc2libGUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmV4cGFuZGVkO1xuICAgIH1cblxuICAgIHB1YmxpYyBvblByb3BlcnR5Q2hhbmdlKGtleSwgbnYsIG92KSB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdhbmltYXRpb24nIDpcbiAgICAgICAgICAgICAgICBpZiAobnYgPT09IEFuaW1hdGlvblR5cGUuU0xJREVfSU4pIHtcbiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLW92ZXItbGVmdC1wYW5lbC1jb250YWluZXInKTtcbiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLWluLWxlZnQtcGFuZWwtY29udGFpbmVyJyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCB0aGlzLmNvbHVtbndpZHRoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRQYWdlV2lkdGhBbmRQb3NpdGlvbihbJ3hzJ10sIHRoaXMueHNjb2x1bW53aWR0aCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChudiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9PVkVSKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJHBhZ2VbMF0sICdzbGlkZS1pbi1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLiRwYWdlWzBdLCAnc2xpZGUtb3Zlci1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9sZWZ0UGFuZWxBbmltYXRvciA9IG5ldyBMZWZ0UGFuZWxBbmltYXRvcih0aGlzKTtcbiAgICAgICAgICAgICAgICBzd2l0Y2hDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIG52LCBvdik7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdjb2x1bW53aWR0aCc6XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRMZWZ0UGFuZWxXaWR0aChbJ21kJywgJ3NtJ10sIG52LCBvdik7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYW5pbWF0aW9uID09PSBBbmltYXRpb25UeXBlLlNMSURFX0lOKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ2V4cGFuZGVkJzpcbiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsICdsZWZ0LXBhbmVsLWV4cGFuZGVkJywgbnYpO1xuICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgJ2xlZnQtcGFuZWwtY29sbGFwc2VkJywgIW52KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3hzY29sdW1ud2lkdGgnOlxuICAgICAgICAgICAgICAgIHRoaXMuc2V0TGVmdFBhbmVsV2lkdGgoWyd4cyddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9JTikge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFBhZ2VXaWR0aEFuZFBvc2l0aW9uKFsneHMnXSwgbnYsIG92KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHN1cGVyLm9uUHJvcGVydHlDaGFuZ2Uoa2V5LCBudiwgb3YpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljICB0b2dnbGUoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmFwcC5pc1RhYmxldEFwcGxpY2F0aW9uVHlwZSkge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBhbmRlZCA/IHRoaXMuY29sbGFwc2UoKSA6IHRoaXMuZXhwYW5kKCk7XG4gICAgICAgICAgICB9LCA1MCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLiRlbGUuc3dpcGVBbmltYXRpb24odGhpcy5leHBhbmRlZCA/ICdnb3RvTG93ZXInIDogJ2dvdG9VcHBlcicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBsaXN0ZW5Gb3JDb2xsYXBzZUFjdGlvbigpOiAoKSA9PiB2b2lkIHtcbiAgICAgICAgY29uc3QgZXZlbnROYW1lID0gJ2NsaWNrLmxlZnROYXZUb2dnbGUnO1xuICAgICAgICBsZXQgc2tpcEV2ZW50ID0gZmFsc2U7XG4gICAgICAgIHRoaXMuJGVsZS5vbihldmVudE5hbWUsICgpID0+IHtcbiAgICAgICAgICAgIHNraXBFdmVudCA9IHRydWU7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLiRwYWdlLm9uKGV2ZW50TmFtZSwgKCkgPT4gIHtcbiAgICAgICAgICAgIGlmICghc2tpcEV2ZW50KSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNraXBFdmVudCA9IGZhbHNlO1xuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuJGVsZS5vZmYoZXZlbnROYW1lKTtcbiAgICAgICAgICAgIHRoaXMuJHBhZ2Uub2ZmKGV2ZW50TmFtZSk7XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzZXRMZWZ0UGFuZWxXaWR0aChkZXZpY2VzOiBzdHJpbmdbXSwgbmV3VmFsOiBudW1iZXIsIG9sZFZhbD86IG51bWJlcikge1xuICAgICAgICBkZXZpY2VzLmZvckVhY2goZGV2aWNlID0+IHtcbiAgICAgICAgICAgIGlmIChuZXdWYWwpIHtcbiAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIGBjb2wtJHtkZXZpY2V9LSR7bmV3VmFsfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG9sZFZhbCkge1xuICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgYGNvbC0ke2RldmljZX0tJHtvbGRWYWx9YCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oZGV2aWNlczogc3RyaW5nW10sIG5ld1ZhbDogbnVtYmV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kRm9jdXNhYmxlRWxlbWVudHModGhpcy5uYXRpdmVFbGVtZW50KTtcbiAgICAgICAgY29uc3QgZmlyc3RGb2N1c2FibGVFbGVtZW50ID0gZm9jdXNhYmxlRWxlbWVudHNbMF07XG4gICAgICAgIGNvbnN0IGxhc3RGb2N1c2FibGVFbGVtZW50ID0gZm9jdXNhYmxlRWxlbWVudHNbZm9jdXNhYmxlRWxlbWVudHMubGVuZ3RoIC0gMV07XG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgJChmaXJzdEZvY3VzYWJsZUVsZW1lbnQpLmZvY3VzKCk7XG4gICAgICAgIH0sIDUwKTtcbiAgICAgICAgJChmaXJzdEZvY3VzYWJsZUVsZW1lbnQpLm9uKCdrZXlkb3duJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBpZiAoZXZlbnQuc2hpZnRLZXkgJiYgZXZlbnQua2V5ID09PSAnVGFiJykge1xuICAgICAgICAgICAgICAgIHRoaXMuY29sbGFwc2UoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgICQobGFzdEZvY3VzYWJsZUVsZW1lbnQpLm9uKCdrZXlkb3duJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBpZiAoZXZlbnQua2V5ID09PSAnVGFiJykge1xuICAgICAgICAgICAgICAgIHRoaXMuY29sbGFwc2UoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHRoaXMuJGVsZW1lbnQub24oJ2tleWRvd24nLCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgIGlmIChldmVudC5rZXkgPT09ICdFc2NhcGUnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb2xsYXBzZSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgaXNHZXN0dXJlc0VuYWJsZWQoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmdlc3R1cmVzID09PSAnb24nO1xuICAgIH1cblxuICAgIHB1YmxpYyBpc1Zpc2libGUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLmV4cGFuZGVkO1xuICAgIH1cblxuICAgIHB1YmxpYyBvblByb3BlcnR5Q2hhbmdlKGtleSwgbnYsIG92KSB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdhbmltYXRpb24nIDpcbiAgICAgICAgICAgICAgICBpZiAobnYgPT09IEFuaW1hdGlvblR5cGUuU0xJREVfSU4pIHtcbiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLW92ZXItbGVmdC1wYW5lbC1jb250YWluZXInKTtcbiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kcGFnZVswXSwgJ3NsaWRlLWluLWxlZnQtcGFuZWwtY29udGFpbmVyJyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCB0aGlzLmNvbHVtbndpZHRoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRQYWdlV2lkdGhBbmRQb3NpdGlvbihbJ3hzJ10sIHRoaXMueHNjb2x1bW53aWR0aCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChudiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9PVkVSKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJHBhZ2VbMF0sICdzbGlkZS1pbi1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLiRwYWdlWzBdLCAnc2xpZGUtb3Zlci1sZWZ0LXBhbmVsLWNvbnRhaW5lcicpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9sZWZ0UGFuZWxBbmltYXRvciA9IG5ldyBMZWZ0UGFuZWxBbmltYXRvcih0aGlzKTtcbiAgICAgICAgICAgICAgICBzd2l0Y2hDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIG52LCBvdik7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdjb2x1bW53aWR0aCc6XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRMZWZ0UGFuZWxXaWR0aChbJ21kJywgJ3NtJ10sIG52LCBvdik7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYW5pbWF0aW9uID09PSBBbmltYXRpb25UeXBlLlNMSURFX0lOKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0UGFnZVdpZHRoQW5kUG9zaXRpb24oWydtZCcsICdzbSddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ2V4cGFuZGVkJzpcbiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsICdsZWZ0LXBhbmVsLWV4cGFuZGVkJywgbnYpO1xuICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMubmF0aXZlRWxlbWVudCwgJ2xlZnQtcGFuZWwtY29sbGFwc2VkJywgIW52KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3hzY29sdW1ud2lkdGgnOlxuICAgICAgICAgICAgICAgIHRoaXMuc2V0TGVmdFBhbmVsV2lkdGgoWyd4cyddLCBudiwgb3YpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbiA9PT0gQW5pbWF0aW9uVHlwZS5TTElERV9JTikge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFBhZ2VXaWR0aEFuZFBvc2l0aW9uKFsneHMnXSwgbnYsIG92KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHN1cGVyLm9uUHJvcGVydHlDaGFuZ2Uoa2V5LCBudiwgb3YpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljICB0b2dnbGUoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmFwcC5pc1RhYmxldEFwcGxpY2F0aW9uVHlwZSkge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBhbmRlZCA/IHRoaXMuY29sbGFwc2UoKSA6IHRoaXMuZXhwYW5kKCk7XG4gICAgICAgICAgICB9LCA1MCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLiRlbGUuc3dpcGVBbmltYXRpb24odGhpcy5leHBhbmRlZCA/ICdnb3RvTG93ZXInIDogJ2dvdG9VcHBlcicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBsaXN0ZW5Gb3JDb2xsYXBzZUFjdGlvbigpOiAoKSA9PiB2b2lkIHtcbiAgICAgICAgY29uc3QgZXZlbnROYW1lID0gJ2NsaWNrLmxlZnROYXZUb2dnbGUnO1xuICAgICAgICBsZXQgc2tpcEV2ZW50ID0gZmFsc2U7XG4gICAgICAgIHRoaXMuJGVsZS5vbihldmVudE5hbWUsICgpID0+IHtcbiAgICAgICAgICAgIHNraXBFdmVudCA9IHRydWU7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLiRwYWdlLm9uKGV2ZW50TmFtZSwgKCkgPT4gIHtcbiAgICAgICAgICAgIGlmICghc2tpcEV2ZW50KSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNraXBFdmVudCA9IGZhbHNlO1xuICAgICAgICB9KTtcbiAgICAgICAgcmV0dX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aW5lci0ke2RldmljZX0tJHsxMiAtIG9sZFZhbH1gKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Directive, Optional, Inject, NgModule } from '@angular/core';
|
2
|
+
import { Directive, Optional, Inject, Attribute, NgModule } from '@angular/core';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import { PROP_STRING, PROP_NUMBER, register, StylableComponent, APPLY_STYLES_TYPE, styler, getKeyboardFocusableElements, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
5
5
|
import * as i3 from '@angular/router';
|
6
6
|
import { NavigationStart } from '@angular/router';
|
7
7
|
import * as i1 from '@wm/core';
|
8
|
-
import { $appDigest, addClass, switchClass, isMobile, removeClass, toggleClass } from '@wm/core';
|
8
|
+
import { $appDigest, addClass, APP_NAV, switchClass, isMobile, removeClass, toggleClass } from '@wm/core';
|
9
9
|
import * as i2 from '@wm/components/page';
|
10
10
|
import { SwipeAnimation } from '@swipey';
|
11
11
|
|
@@ -165,7 +165,7 @@ var AnimationType;
|
|
165
165
|
class LeftPanelDirective extends StylableComponent {
|
166
166
|
static { this.initializeProps = registerProps(); }
|
167
167
|
//If "spa" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined
|
168
|
-
constructor(app, page, layout, inj, router, explicitContext) {
|
168
|
+
constructor(app, page, layout, inj, router, explicitContext, navtype) {
|
169
169
|
super(inj, WIDGET_CONFIG, explicitContext);
|
170
170
|
this.app = app;
|
171
171
|
this.page = page;
|
@@ -186,6 +186,7 @@ class LeftPanelDirective extends StylableComponent {
|
|
186
186
|
}
|
187
187
|
});
|
188
188
|
this.registerDestroyListener(() => onRouteChange.unsubscribe());
|
189
|
+
navtype && this.$element.addClass(APP_NAV + '-' + navtype);
|
189
190
|
}
|
190
191
|
collapse() {
|
191
192
|
addClass(this.nativeElement, 'swipee-transition');
|
@@ -337,7 +338,7 @@ class LeftPanelDirective extends StylableComponent {
|
|
337
338
|
}
|
338
339
|
});
|
339
340
|
}
|
340
|
-
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
341
|
+
static { this.ɵfac = function LeftPanelDirective_Factory(t) { return new (t || LeftPanelDirective)(i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject(i2.PageDirective, 8), i0.ɵɵdirectiveInject(i2.LayoutDirective, 8), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
|
341
342
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LeftPanelDirective, selectors: [["", "wmLeftPanel", ""]], exportAs: ["wmLeftPanel"], features: [i0.ɵɵProvidersFeature([
|
342
343
|
provideAsWidgetRef(LeftPanelDirective)
|
343
344
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
@@ -360,6 +361,9 @@ class LeftPanelDirective extends StylableComponent {
|
|
360
361
|
args: ['EXPLICIT_CONTEXT']
|
361
362
|
}, {
|
362
363
|
type: Optional
|
364
|
+
}] }, { type: undefined, decorators: [{
|
365
|
+
type: Attribute,
|
366
|
+
args: ['nav-type']
|
363
367
|
}] }], null); })();
|
364
368
|
|
365
369
|
const components = [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/left-panel/src/left-panel.props.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.animator.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.directive.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.module.ts","../../../../../projects/components/widgets/page/left-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-left-panel',\n new Map(\n [\n ['animation', {value: 'slide-in', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['columnwidth', { value: 3, ...PROP_NUMBER}],\n ['content', PROP_STRING],\n ['gestures', {value: 'on', ... PROP_STRING}],\n ['name', PROP_STRING],\n ['xscolumnwidth', { value: 10, ...PROP_NUMBER}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import { SwipeAnimation } from '@swipey';\n\nimport { $appDigest } from '@wm/core';\n\nimport { AnimationType, LeftPanelDirective } from './left-panel.directive';\n\nexport class LeftPanelAnimator extends SwipeAnimation {\n private _$animatedElements;\n private _expanded: boolean;\n private _leftPanelWidth: number;\n private _maxX: number;\n private _pageContainerWidth: number;\n private _width: number;\n\n constructor(private leftPanel: LeftPanelDirective) {\n super();\n this.init(this.leftPanel.$ele, this.leftPanel.$page);\n }\n\n public bounds(e, length): {} {\n let offset = 0;\n this.setGesturesEnabled(this.leftPanel.isGesturesEnabled());\n if (!this._width) {\n this._pageContainerWidth = this.leftPanel.$page.width();\n this._leftPanelWidth = this.leftPanel.$ele.width();\n this._maxX = this._leftPanelWidth / this._pageContainerWidth * 100;\n this._width = this.leftPanel.animation === AnimationType.SLIDE_IN ? this._pageContainerWidth : this._leftPanelWidth;\n }\n this._expanded = this.leftPanel.expanded;\n\n if (this._expanded) {\n return {\n 'center': this._leftPanelWidth,\n 'lower': -(this._leftPanelWidth - offset)\n };\n }\n if (this.leftPanel.app.isTabletApplicationType) {\n offset = 53.32;\n }\n if (e && (e.pageX || (e.touches && e.touches[0].pageX)) > offset + 100) {\n return {\n strict: true\n };\n }\n return {\n 'center': 0,\n 'upper': this._leftPanelWidth - offset\n };\n }\n\n public context() {\n return {\n 'w': this._width,\n 'pageW': this._pageContainerWidth,\n 'leftW': this._leftPanelWidth,\n 'maxX': this._maxX,\n 'limit': (min: number, v: number, max: number) => {\n if (v < min) {\n return min;\n }\n if (v > max) {\n return max;\n }\n return v;\n }\n };\n }\n\n public animation() {\n this._$animatedElements = this.leftPanel.$ele;\n if (this.leftPanel.animation === AnimationType.SLIDE_IN) {\n this._$animatedElements = this._$animatedElements.add(this.leftPanel.$page);\n if (this.leftPanel.app.isTabletApplicationType) {\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(${{ limit(-100, -($d * 100 / leftW), 0) + \\'%\\' }}, 0, 0)'\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ (($d) * 100 / pageW) + \\'%\\' }}, 0, 0)',\n 'width': '${{ (pageW - $d) + \\'px\\' }}',\n 'z-index': 101\n }\n }\n ];\n }\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(-100%, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ limit( 0, ((($D + $d) * 100 / w)), maxX ) + \\'%\\' }}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n }];\n } else {\n return {\n 'transform': 'translate3d(${{ limit( -100, ((($D + $d) * 100 / w) - 100), 0 ) + \\'%\\'}}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n };\n }\n }\n\n public onLower(): void {\n this._expanded = false;\n this.leftPanel.collapse();\n this.resetTransition();\n $appDigest();\n }\n\n public onUpper(): void {\n this._expanded = true;\n this.leftPanel.expand();\n this.resetTransition();\n $appDigest();\n }\n\n private resetTransition() {\n if (this._$animatedElements) {\n /*\n * This timeout is for preventing UI flicker at the end of animation.\n */\n setTimeout(() => {\n this._$animatedElements.css({\n 'transform': '',\n 'opacity': '',\n 'z-index': '',\n 'width': ''\n });\n }, 100);\n }\n }\n}\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\n\nimport {App, addClass, removeClass, switchClass, toggleClass, isMobile } from '@wm/core';\nimport { APPLY_STYLES_TYPE, getKeyboardFocusableElements, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { LayoutDirective, PageDirective } from '@wm/components/page';\n\nimport { registerProps } from './left-panel.props';\nimport { LeftPanelAnimator } from './left-panel.animator';\n\nconst DEFAULT_CLS = 'app-left-panel left-panel-collapsed';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-left-panel',\n hostClass: DEFAULT_CLS\n};\n\nexport enum AnimationType {\n SLIDE_IN = 'slide-in',\n SLIDE_OVER = 'slide-over'\n}\n\n@Directive({\n selector: '[wmLeftPanel]',\n providers: [\n provideAsWidgetRef(LeftPanelDirective)\n ],\n exportAs: 'wmLeftPanel'\n})\nexport class LeftPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n public animation: AnimationType;\n public columnwidth: number;\n public expanded: boolean;\n public gestures: string;\n public xscolumnwidth: number;\n\n public $ele;\n public $page;\n\n private _destroyCollapseActionListener: () => void;\n private _leftPanelAnimator;\n\n //If \"spa\" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined\n constructor(public app: App, @Optional() private page: PageDirective, @Optional() private layout: LayoutDirective, inj: Injector, router: Router, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n this.$ele = this.$element;\n this.$page = this.getAttr('spa') && layout && layout.$element || page && page.$element;\n addClass(this.$page[0], 'left-panel-collapsed-container');\n if (this.columnwidth) {\n this.setLeftPanelWidth(['md', 'sm'], this.columnwidth);\n }\n if (this.app.isTabletApplicationType) {\n addClass(this.nativeElement, 'wm-tablet-app-left-panel');\n }\n const onRouteChange = router.events.subscribe(e => {\n if (e instanceof NavigationStart) {\n this.collapse();\n }\n });\n this.registerDestroyListener(() => onRouteChange.unsubscribe());\n }\n\n public collapse(): void {\n addClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-collapsed', 'left-panel-expanded');\n if (this.expanded) {\n setTimeout(() => {\n const leftNavButton = $('.app-header-action');\n leftNavButton.attr('aria-expanded', 'false');\n leftNavButton.focus();\n }, 50);\n }\n if (isMobile()) {\n addClass(this.nativeElement, 'hidden');\n }\n this.expanded = false;\n switchClass(this.$page[0], 'left-panel-collapsed-container', 'left-panel-expanded-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], null, this.columnwidth);\n this.setPageWidthAndPosition(['xs'], null, this.xscolumnwidth);\n }\n if (this._destroyCollapseActionListener) {\n this._destroyCollapseActionListener();\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:collapse');\n }\n\n public expand(): void {\n removeClass(this.nativeElement, 'hidden');\n removeClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-expanded', 'left-panel-collapsed');\n this.expanded = true;\n if (!(this.app.isTabletApplicationType && this.animation === AnimationType.SLIDE_IN)) {\n this._destroyCollapseActionListener = this.listenForCollapseAction();\n }\n switchClass(this.$page[0], 'left-panel-expanded-container', 'left-panel-collapsed-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:expand');\n $('.app-header-action').attr('aria-expanded', `${this.expanded}`);\n const focusableElements = getKeyboardFocusableElements(this.nativeElement);\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n setTimeout(() => {\n $(firstFocusableElement).focus();\n }, 50);\n $(firstFocusableElement).on('keydown', (event) => {\n if (event.shiftKey && event.key === 'Tab') {\n this.collapse();\n }\n });\n $(lastFocusableElement).on('keydown', (event) => {\n if (event.key === 'Tab') {\n this.collapse();\n }\n });\n this.$element.on('keydown', (event) => {\n if (event.key === 'Escape') {\n this.collapse();\n }\n });\n }\n\n public isGesturesEnabled(): boolean {\n return this.gestures === 'on';\n }\n\n public isVisible(): boolean {\n return this.expanded;\n }\n\n public onPropertyChange(key, nv, ov) {\n switch (key) {\n case 'animation' :\n if (nv === AnimationType.SLIDE_IN) {\n removeClass(this.$page[0], 'slide-over-left-panel-container');\n addClass(this.$page[0], 'slide-in-left-panel-container');\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n } else if (nv === AnimationType.SLIDE_OVER) {\n removeClass(this.$page[0], 'slide-in-left-panel-container');\n addClass(this.$page[0], 'slide-over-left-panel-container');\n }\n this._leftPanelAnimator = new LeftPanelAnimator(this);\n switchClass(this.nativeElement, nv, ov);\n break;\n case 'columnwidth':\n this.setLeftPanelWidth(['md', 'sm'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], nv, ov);\n }\n break;\n case 'expanded':\n toggleClass(this.nativeElement, 'left-panel-expanded', nv);\n toggleClass(this.nativeElement, 'left-panel-collapsed', !nv);\n break;\n case 'xscolumnwidth':\n this.setLeftPanelWidth(['xs'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['xs'], nv, ov);\n }\n break;\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public toggle(): void {\n if (this.app.isTabletApplicationType) {\n setTimeout(() => {\n this.expanded ? this.collapse() : this.expand();\n }, 50);\n } else {\n this.$ele.swipeAnimation(this.expanded ? 'gotoLower' : 'gotoUpper');\n }\n }\n\n private listenForCollapseAction(): () => void {\n const eventName = 'click.leftNavToggle';\n let skipEvent = false;\n this.$ele.on(eventName, () => {\n skipEvent = true;\n });\n this.$page.on(eventName, () => {\n if (!skipEvent) {\n this.toggle();\n }\n skipEvent = false;\n });\n return () => {\n this.$ele.off(eventName);\n this.$page.off(eventName);\n };\n }\n\n private setLeftPanelWidth(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.nativeElement, `col-${device}-${newVal}`);\n }\n if (oldVal) {\n removeClass(this.nativeElement, `col-${device}-${oldVal}`);\n }\n });\n }\n\n private setPageWidthAndPosition(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.$page[0], `left-panel-container-${device}-${12 - newVal}`);\n }\n if (oldVal) {\n removeClass(this.$page[0], `left-panel-container-${device}-${12 - oldVal}`);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LeftPanelDirective } from './left-panel.directive';\n\nconst components = [\n LeftPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LeftPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,eAAe,EACf,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,GAAG,WAAW,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAI,WAAW,EAAC,CAAC;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,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AP9B,SAAS;AAAC,QAAA,IAAA,EAAA,CAAA;AACP,gBAAA,QAAQ,EAAE,eAAe;AACzB,gBAAA,SAAS,EAAE;AACP,oBAAA,kBAAkB,CAAoB,kBAAA,CAAA;AACzC,iBAAA;AACD,gBAAA,QAAQ,EAAE,aAAa;AAC1B,aAAA,CAAA;;sBAiBiC,QAAQ;;sBAAiC,QAAQ;;sBAAoE,MAAM;uBAAC,kBAAkB,CAAA;;sBAAG,QAAQ;;;ACrC3L,MAAM,UAAU,GAAG;IACf,kBAAkB;CACrB,CAAC;MAUW,eAAe,CAAA;gFAAf,eAAe,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAf,eAAe,EAAA,CAAA,CAAA,EAAA;uEANpB,YAAY;YACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,eAAe,EAAA,CAAA;cAR3B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,eAAe,EAAA,EAAA,YAAA,EAAA,CAXxB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAKd,YAAY;AACZ,QAAA,kBAAkB,aANtB,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRtB;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/left-panel/src/left-panel.props.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.animator.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.directive.ts","../../../../../projects/components/widgets/page/left-panel/src/left-panel.module.ts","../../../../../projects/components/widgets/page/left-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-left-panel',\n new Map(\n [\n ['animation', {value: 'slide-in', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['columnwidth', { value: 3, ...PROP_NUMBER}],\n ['content', PROP_STRING],\n ['gestures', {value: 'on', ... PROP_STRING}],\n ['name', PROP_STRING],\n ['xscolumnwidth', { value: 10, ...PROP_NUMBER}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import { SwipeAnimation } from '@swipey';\n\nimport { $appDigest } from '@wm/core';\n\nimport { AnimationType, LeftPanelDirective } from './left-panel.directive';\n\nexport class LeftPanelAnimator extends SwipeAnimation {\n private _$animatedElements;\n private _expanded: boolean;\n private _leftPanelWidth: number;\n private _maxX: number;\n private _pageContainerWidth: number;\n private _width: number;\n\n constructor(private leftPanel: LeftPanelDirective) {\n super();\n this.init(this.leftPanel.$ele, this.leftPanel.$page);\n }\n\n public bounds(e, length): {} {\n let offset = 0;\n this.setGesturesEnabled(this.leftPanel.isGesturesEnabled());\n if (!this._width) {\n this._pageContainerWidth = this.leftPanel.$page.width();\n this._leftPanelWidth = this.leftPanel.$ele.width();\n this._maxX = this._leftPanelWidth / this._pageContainerWidth * 100;\n this._width = this.leftPanel.animation === AnimationType.SLIDE_IN ? this._pageContainerWidth : this._leftPanelWidth;\n }\n this._expanded = this.leftPanel.expanded;\n\n if (this._expanded) {\n return {\n 'center': this._leftPanelWidth,\n 'lower': -(this._leftPanelWidth - offset)\n };\n }\n if (this.leftPanel.app.isTabletApplicationType) {\n offset = 53.32;\n }\n if (e && (e.pageX || (e.touches && e.touches[0].pageX)) > offset + 100) {\n return {\n strict: true\n };\n }\n return {\n 'center': 0,\n 'upper': this._leftPanelWidth - offset\n };\n }\n\n public context() {\n return {\n 'w': this._width,\n 'pageW': this._pageContainerWidth,\n 'leftW': this._leftPanelWidth,\n 'maxX': this._maxX,\n 'limit': (min: number, v: number, max: number) => {\n if (v < min) {\n return min;\n }\n if (v > max) {\n return max;\n }\n return v;\n }\n };\n }\n\n public animation() {\n this._$animatedElements = this.leftPanel.$ele;\n if (this.leftPanel.animation === AnimationType.SLIDE_IN) {\n this._$animatedElements = this._$animatedElements.add(this.leftPanel.$page);\n if (this.leftPanel.app.isTabletApplicationType) {\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(${{ limit(-100, -($d * 100 / leftW), 0) + \\'%\\' }}, 0, 0)'\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ (($d) * 100 / pageW) + \\'%\\' }}, 0, 0)',\n 'width': '${{ (pageW - $d) + \\'px\\' }}',\n 'z-index': 101\n }\n }\n ];\n }\n return [\n {\n 'target': this.leftPanel.$ele,\n 'css': {\n 'transform': 'translate3d(-100%, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n },\n {\n 'target': this.leftPanel.$page,\n 'css': {\n 'transform': 'translate3d(${{ limit( 0, ((($D + $d) * 100 / w)), maxX ) + \\'%\\' }}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n }\n }];\n } else {\n return {\n 'transform': 'translate3d(${{ limit( -100, ((($D + $d) * 100 / w) - 100), 0 ) + \\'%\\'}}, 0, 0)',\n 'opacity': 1,\n 'z-index': 101\n };\n }\n }\n\n public onLower(): void {\n this._expanded = false;\n this.leftPanel.collapse();\n this.resetTransition();\n $appDigest();\n }\n\n public onUpper(): void {\n this._expanded = true;\n this.leftPanel.expand();\n this.resetTransition();\n $appDigest();\n }\n\n private resetTransition() {\n if (this._$animatedElements) {\n /*\n * This timeout is for preventing UI flicker at the end of animation.\n */\n setTimeout(() => {\n this._$animatedElements.css({\n 'transform': '',\n 'opacity': '',\n 'z-index': '',\n 'width': ''\n });\n }, 100);\n }\n }\n}\n","import {Attribute, Directive, Inject, Injector, Optional} from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\n\nimport {App, addClass, removeClass, switchClass, toggleClass, isMobile, APP_NAV } from '@wm/core';\nimport { APPLY_STYLES_TYPE, getKeyboardFocusableElements, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { LayoutDirective, PageDirective } from '@wm/components/page';\n\nimport { registerProps } from './left-panel.props';\nimport { LeftPanelAnimator } from './left-panel.animator';\n\nconst DEFAULT_CLS = 'app-left-panel left-panel-collapsed';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-left-panel',\n hostClass: DEFAULT_CLS\n};\n\nexport enum AnimationType {\n SLIDE_IN = 'slide-in',\n SLIDE_OVER = 'slide-over'\n}\n\n@Directive({\n selector: '[wmLeftPanel]',\n providers: [\n provideAsWidgetRef(LeftPanelDirective)\n ],\n exportAs: 'wmLeftPanel'\n})\nexport class LeftPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n public animation: AnimationType;\n public columnwidth: number;\n public expanded: boolean;\n public gestures: string;\n public xscolumnwidth: number;\n\n public $ele;\n public $page;\n\n private _destroyCollapseActionListener: () => void;\n private _leftPanelAnimator;\n\n //If \"spa\" attribute is set LayoutDirective will present and PageDirective is undefined else PageDirective will present and LayoutDirective is undefined\n constructor(public app: App, @Optional() private page: PageDirective, @Optional() private layout: LayoutDirective, inj: Injector, router: Router, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any, @Attribute('nav-type') navtype: string) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n this.$ele = this.$element;\n this.$page = this.getAttr('spa') && layout && layout.$element || page && page.$element;\n addClass(this.$page[0], 'left-panel-collapsed-container');\n if (this.columnwidth) {\n this.setLeftPanelWidth(['md', 'sm'], this.columnwidth);\n }\n if (this.app.isTabletApplicationType) {\n addClass(this.nativeElement, 'wm-tablet-app-left-panel');\n }\n const onRouteChange = router.events.subscribe(e => {\n if (e instanceof NavigationStart) {\n this.collapse();\n }\n });\n this.registerDestroyListener(() => onRouteChange.unsubscribe());\n navtype && this.$element.addClass(APP_NAV+'-'+navtype);\n }\n\n public collapse(): void {\n addClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-collapsed', 'left-panel-expanded');\n if (this.expanded) {\n setTimeout(() => {\n const leftNavButton = $('.app-header-action');\n leftNavButton.attr('aria-expanded', 'false');\n leftNavButton.focus();\n }, 50);\n }\n if (isMobile()) {\n addClass(this.nativeElement, 'hidden');\n }\n this.expanded = false;\n switchClass(this.$page[0], 'left-panel-collapsed-container', 'left-panel-expanded-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], null, this.columnwidth);\n this.setPageWidthAndPosition(['xs'], null, this.xscolumnwidth);\n }\n if (this._destroyCollapseActionListener) {\n this._destroyCollapseActionListener();\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:collapse');\n }\n\n public expand(): void {\n removeClass(this.nativeElement, 'hidden');\n removeClass(this.nativeElement, 'swipee-transition');\n switchClass(this.nativeElement, 'left-panel-expanded', 'left-panel-collapsed');\n this.expanded = true;\n if (!(this.app.isTabletApplicationType && this.animation === AnimationType.SLIDE_IN)) {\n this._destroyCollapseActionListener = this.listenForCollapseAction();\n }\n switchClass(this.$page[0], 'left-panel-expanded-container', 'left-panel-collapsed-container');\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n }\n (this.getAttr(\"spa\") && this.layout || this.page).notify('wmLeftPanel:expand');\n $('.app-header-action').attr('aria-expanded', `${this.expanded}`);\n const focusableElements = getKeyboardFocusableElements(this.nativeElement);\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n setTimeout(() => {\n $(firstFocusableElement).focus();\n }, 50);\n $(firstFocusableElement).on('keydown', (event) => {\n if (event.shiftKey && event.key === 'Tab') {\n this.collapse();\n }\n });\n $(lastFocusableElement).on('keydown', (event) => {\n if (event.key === 'Tab') {\n this.collapse();\n }\n });\n this.$element.on('keydown', (event) => {\n if (event.key === 'Escape') {\n this.collapse();\n }\n });\n }\n\n public isGesturesEnabled(): boolean {\n return this.gestures === 'on';\n }\n\n public isVisible(): boolean {\n return this.expanded;\n }\n\n public onPropertyChange(key, nv, ov) {\n switch (key) {\n case 'animation' :\n if (nv === AnimationType.SLIDE_IN) {\n removeClass(this.$page[0], 'slide-over-left-panel-container');\n addClass(this.$page[0], 'slide-in-left-panel-container');\n this.setPageWidthAndPosition(['md', 'sm'], this.columnwidth);\n this.setPageWidthAndPosition(['xs'], this.xscolumnwidth);\n } else if (nv === AnimationType.SLIDE_OVER) {\n removeClass(this.$page[0], 'slide-in-left-panel-container');\n addClass(this.$page[0], 'slide-over-left-panel-container');\n }\n this._leftPanelAnimator = new LeftPanelAnimator(this);\n switchClass(this.nativeElement, nv, ov);\n break;\n case 'columnwidth':\n this.setLeftPanelWidth(['md', 'sm'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['md', 'sm'], nv, ov);\n }\n break;\n case 'expanded':\n toggleClass(this.nativeElement, 'left-panel-expanded', nv);\n toggleClass(this.nativeElement, 'left-panel-collapsed', !nv);\n break;\n case 'xscolumnwidth':\n this.setLeftPanelWidth(['xs'], nv, ov);\n if (this.animation === AnimationType.SLIDE_IN) {\n this.setPageWidthAndPosition(['xs'], nv, ov);\n }\n break;\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public toggle(): void {\n if (this.app.isTabletApplicationType) {\n setTimeout(() => {\n this.expanded ? this.collapse() : this.expand();\n }, 50);\n } else {\n this.$ele.swipeAnimation(this.expanded ? 'gotoLower' : 'gotoUpper');\n }\n }\n\n private listenForCollapseAction(): () => void {\n const eventName = 'click.leftNavToggle';\n let skipEvent = false;\n this.$ele.on(eventName, () => {\n skipEvent = true;\n });\n this.$page.on(eventName, () => {\n if (!skipEvent) {\n this.toggle();\n }\n skipEvent = false;\n });\n return () => {\n this.$ele.off(eventName);\n this.$page.off(eventName);\n };\n }\n\n private setLeftPanelWidth(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.nativeElement, `col-${device}-${newVal}`);\n }\n if (oldVal) {\n removeClass(this.nativeElement, `col-${device}-${oldVal}`);\n }\n });\n }\n\n private setPageWidthAndPosition(devices: string[], newVal: number, oldVal?: number) {\n devices.forEach(device => {\n if (newVal) {\n addClass(this.$page[0], `left-panel-container-${device}-${12 - newVal}`);\n }\n if (oldVal) {\n removeClass(this.$page[0], `left-panel-container-${device}-${12 - oldVal}`);\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { LeftPanelDirective } from './left-panel.directive';\n\nconst components = [\n LeftPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class LeftPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,eAAe,EACf,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,GAAG,WAAW,EAAC,CAAC;QAClD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAI,WAAW,EAAC,CAAC;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,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CAAA,CAAA,EAAA,GAAA;;ACRtB;;AAEG;;;;"}
|
@@ -22,7 +22,7 @@ export declare class LeftPanelDirective extends StylableComponent {
|
|
22
22
|
$page: any;
|
23
23
|
private _destroyCollapseActionListener;
|
24
24
|
private _leftPanelAnimator;
|
25
|
-
constructor(app: App, page: PageDirective, layout: LayoutDirective, inj: Injector, router: Router, explicitContext: any);
|
25
|
+
constructor(app: App, page: PageDirective, layout: LayoutDirective, inj: Injector, router: Router, explicitContext: any, navtype: string);
|
26
26
|
collapse(): void;
|
27
27
|
expand(): void;
|
28
28
|
isGesturesEnabled(): boolean;
|
@@ -32,6 +32,6 @@ export declare class LeftPanelDirective extends StylableComponent {
|
|
32
32
|
private listenForCollapseAction;
|
33
33
|
private setLeftPanelWidth;
|
34
34
|
private setPageWidthAndPosition;
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LeftPanelDirective, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeftPanelDirective, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }, { attribute: "nav-type"; }]>;
|
36
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LeftPanelDirective, "[wmLeftPanel]", ["wmLeftPanel"], {}, {}, never, never, false, never>;
|
37
37
|
}
|
@@ -40,9 +40,10 @@
|
|
40
40
|
};
|
41
41
|
class RightPanelDirective extends base.StylableComponent {
|
42
42
|
static { this.initializeProps = registerProps(); }
|
43
|
-
constructor(inj, explicitContext) {
|
43
|
+
constructor(inj, explicitContext, navtype) {
|
44
44
|
super(inj, WIDGET_CONFIG, explicitContext);
|
45
45
|
base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
|
46
|
+
navtype && this.$element.addClass(core.APP_NAV + '-' + navtype);
|
46
47
|
}
|
47
48
|
onPropertyChange(key, nv, ov) {
|
48
49
|
if (key === 'columnwidth') {
|
@@ -52,7 +53,7 @@
|
|
52
53
|
super.onPropertyChange(key, nv, ov);
|
53
54
|
}
|
54
55
|
}
|
55
|
-
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
56
|
+
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinjectAttribute('nav-type')); }; }
|
56
57
|
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0__namespace.ɵɵProvidersFeature([
|
57
58
|
base.provideAsWidgetRef(RightPanelDirective)
|
58
59
|
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
@@ -71,6 +72,9 @@
|
|
71
72
|
args: ['EXPLICIT_CONTEXT']
|
72
73
|
}, {
|
73
74
|
type: i0.Optional
|
75
|
+
}] }, { type: undefined, decorators: [{
|
76
|
+
type: i0.Attribute,
|
77
|
+
args: ['nav-type']
|
74
78
|
}] }], null); })();
|
75
79
|
|
76
80
|
const components = [
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Directive, Inject, Injector, Optional } from '@angular/core';
|
2
|
-
import { switchClass } from '@wm/core';
|
1
|
+
import { Attribute, Directive, Inject, Injector, Optional } from '@angular/core';
|
2
|
+
import { APP_NAV, switchClass } from '@wm/core';
|
3
3
|
import { APPLY_STYLES_TYPE, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
|
4
4
|
import { registerProps } from './right-panel.props';
|
5
5
|
import * as i0 from "@angular/core";
|
@@ -10,9 +10,10 @@ const WIDGET_CONFIG = {
|
|
10
10
|
};
|
11
11
|
export class RightPanelDirective extends StylableComponent {
|
12
12
|
static { this.initializeProps = registerProps(); }
|
13
|
-
constructor(inj, explicitContext) {
|
13
|
+
constructor(inj, explicitContext, navtype) {
|
14
14
|
super(inj, WIDGET_CONFIG, explicitContext);
|
15
15
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
|
16
|
+
navtype && this.$element.addClass(APP_NAV + '-' + navtype);
|
16
17
|
}
|
17
18
|
onPropertyChange(key, nv, ov) {
|
18
19
|
if (key === 'columnwidth') {
|
@@ -22,7 +23,7 @@ export class RightPanelDirective extends StylableComponent {
|
|
22
23
|
super.onPropertyChange(key, nv, ov);
|
23
24
|
}
|
24
25
|
}
|
25
|
-
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
26
|
+
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
|
26
27
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0.ɵɵProvidersFeature([
|
27
28
|
provideAsWidgetRef(RightPanelDirective)
|
28
29
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
@@ -41,5 +42,8 @@ export class RightPanelDirective extends StylableComponent {
|
|
41
42
|
args: ['EXPLICIT_CONTEXT']
|
42
43
|
}, {
|
43
44
|
type: Optional
|
45
|
+
}] }, { type: undefined, decorators: [{
|
46
|
+
type: Attribute,
|
47
|
+
args: ['nav-type']
|
44
48
|
}] }], null); })();
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmlnaHQtcGFuZWwuZGlyZWN0aXZlLmpzIi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sZXIodGhpcy5uYXRpdmVFbGVtZW50LCB0aGlzLCBBUFBMWV9TVFlMRVNfVFlQRS5DT05UQUlORVIpO1xuICAgICAgICBuYXZ0eXBlICYmIHRoaXMuJGVsZW1lbnQuYWRkQ2xhc3MoQVBQX05BVisnLScrbmF2dHlwZSk7XG4gICAgfVxuXG4gICAgb25Qcm9wZXJ0eUNoYW5nZShrZXk6IHN0cmluZywgbnY6IGFueSwgb3Y/OiBhbnkpIHtcbiAgICAgICAgaWYgKGtleSA9PT0gJ2NvbHVtbndpZHRoJykge1xuICAgICAgICAgICAgc3dpdGNoQ2xhc3ModGhpcy5uYXRpdmVFbGVtZW50LCBgY29sLXNtLSR7bnZ9YCwgb3YgPyBgIGNvbC1zbS0ke292fWAgOiAnJyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzdXBlci5vblByb3BlcnR5Q2hhbmdlKGtleSwgbnYsIG92KTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Directive, Inject, Optional, NgModule } from '@angular/core';
|
2
|
+
import { Directive, Inject, Optional, Attribute, NgModule } from '@angular/core';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import { PROP_STRING, PROP_NUMBER, register, StylableComponent, APPLY_STYLES_TYPE, styler, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
5
|
-
import { switchClass } from '@wm/core';
|
5
|
+
import { APP_NAV, switchClass } from '@wm/core';
|
6
6
|
|
7
7
|
const registerProps = () => {
|
8
8
|
register('wm-right-panel', new Map([
|
@@ -21,9 +21,10 @@ const WIDGET_CONFIG = {
|
|
21
21
|
};
|
22
22
|
class RightPanelDirective extends StylableComponent {
|
23
23
|
static { this.initializeProps = registerProps(); }
|
24
|
-
constructor(inj, explicitContext) {
|
24
|
+
constructor(inj, explicitContext, navtype) {
|
25
25
|
super(inj, WIDGET_CONFIG, explicitContext);
|
26
26
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
|
27
|
+
navtype && this.$element.addClass(APP_NAV + '-' + navtype);
|
27
28
|
}
|
28
29
|
onPropertyChange(key, nv, ov) {
|
29
30
|
if (key === 'columnwidth') {
|
@@ -33,7 +34,7 @@ class RightPanelDirective extends StylableComponent {
|
|
33
34
|
super.onPropertyChange(key, nv, ov);
|
34
35
|
}
|
35
36
|
}
|
36
|
-
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
37
|
+
static { this.ɵfac = function RightPanelDirective_Factory(t) { return new (t || RightPanelDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('nav-type')); }; }
|
37
38
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RightPanelDirective, selectors: [["", "wmRightPanel", ""]], exportAs: ["wmRightPanel"], features: [i0.ɵɵProvidersFeature([
|
38
39
|
provideAsWidgetRef(RightPanelDirective)
|
39
40
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
@@ -52,6 +53,9 @@ class RightPanelDirective extends StylableComponent {
|
|
52
53
|
args: ['EXPLICIT_CONTEXT']
|
53
54
|
}, {
|
54
55
|
type: Optional
|
56
|
+
}] }, { type: undefined, decorators: [{
|
57
|
+
type: Attribute,
|
58
|
+
args: ['nav-type']
|
55
59
|
}] }], null); })();
|
56
60
|
|
57
61
|
const components = [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/right-panel/src/right-panel.props.ts","../../../../../projects/components/widgets/page/right-panel/src/right-panel.directive.ts","../../../../../projects/components/widgets/page/right-panel/src/right-panel.module.ts","../../../../../projects/components/widgets/page/right-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-right-panel',\n new Map(\n [\n ['class', PROP_STRING],\n ['columnwidth', PROP_NUMBER],\n ['content', PROP_STRING],\n ['name', PROP_STRING],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\n\nimport {switchClass} from '@wm/core';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { registerProps } from './right-panel.props';\n\nconst DEFAULT_CLS = 'app-right-panel';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-right-panel',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n selector: '[wmRightPanel]',\n providers: [\n provideAsWidgetRef(RightPanelDirective)\n ],\n exportAs: 'wmRightPanel'\n})\nexport class RightPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n constructor(inj: Injector, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'columnwidth') {\n switchClass(this.nativeElement, `col-sm-${nv}`, ov ? ` col-sm-${ov}` : '');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RightPanelDirective } from './right-panel.directive';\n\nconst components = [\n RightPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RightPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,gBAAgB,EAChB,IAAI,GAAG,CACH;QACI,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,WAAW,CAAC;QAC5B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;ACRD,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,aAAa,GAAkB;AACjC,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,SAAS,EAAE,WAAW;CACzB,CAAC;AASI,MAAO,mBAAoB,SAAQ,iBAAiB,CAAA;AAC/C,IAAA,SAAA,IAAA,CAAA,eAAe,GAAG,aAAa,EAAhB,CAAmB,EAAA;
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/page/right-panel/src/right-panel.props.ts","../../../../../projects/components/widgets/page/right-panel/src/right-panel.directive.ts","../../../../../projects/components/widgets/page/right-panel/src/right-panel.module.ts","../../../../../projects/components/widgets/page/right-panel/src/index.ts"],"sourcesContent":["import { PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-right-panel',\n new Map(\n [\n ['class', PROP_STRING],\n ['columnwidth', PROP_NUMBER],\n ['content', PROP_STRING],\n ['name', PROP_STRING],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Attribute, Directive, Inject, Injector, Optional} from '@angular/core';\n\nimport {APP_NAV, switchClass} from '@wm/core';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { registerProps } from './right-panel.props';\n\nconst DEFAULT_CLS = 'app-right-panel';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-right-panel',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n selector: '[wmRightPanel]',\n providers: [\n provideAsWidgetRef(RightPanelDirective)\n ],\n exportAs: 'wmRightPanel'\n})\nexport class RightPanelDirective extends StylableComponent {\n static initializeProps = registerProps();\n constructor(inj: Injector, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any, @Attribute('nav-type') navtype: string) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);\n navtype && this.$element.addClass(APP_NAV+'-'+navtype);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'columnwidth') {\n switchClass(this.nativeElement, `col-sm-${nv}`, ov ? ` col-sm-${ov}` : '');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RightPanelDirective } from './right-panel.directive';\n\nconst components = [\n RightPanelDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RightPanelModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,gBAAgB,EAChB,IAAI,GAAG,CACH;QACI,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,aAAa,EAAE,WAAW,CAAC;QAC5B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;ACRD,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,aAAa,GAAkB;AACjC,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,SAAS,EAAE,WAAW;CACzB,CAAC;AASI,MAAO,mBAAoB,SAAQ,iBAAiB,CAAA;AAC/C,IAAA,SAAA,IAAA,CA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AA,EAAA,CAAA,0BAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAGQ,mBAAmB,EAAA,CAAA;cAP/B,SAAS;AAAC,QAAA,IAAA,EAAA,CAAA;AACP,gBAAA,QAAQ,EAAE,gBAAgB;AAC1B,gBAAA,SAAS,EAAE;AACP,oBAAA,kBAAkB,CAAqB,mBAAA,CAAA;AAC1C,iBAAA;AACD,gBAAA,QAAQ,EAAE,cAAc;AAC3B,aAAA,CAAA;;sBAG+B,MAAM;uBAAC,kBAAkB,CAAA;;sBAAG,QAAQ;;sBAA0B,SAAS;uBAAC,UAAU,CAAA;;;ACflH,MAAM,UAAU,GAAG;IACf,mBAAmB;CACtB,CAAC;MAUW,gBAAgB,CAAA;iFAAhB,gBAAgB,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAhB,gBAAgB,EAAA,CAAA,CAAA,EAAA;uEANrB,YAAY;YACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,gBAAgB,EAAA,CAAA;cAR5B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,gBAAgB,EAAA,EAAA,YAAA,EAAA,CAXzB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAKf,YAAY;AACZ,QAAA,kBAAkB,aANtB,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRvB;;AAEG;;;;"}
|
@@ -3,8 +3,8 @@ import { StylableComponent } from '@wm/components/base';
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class RightPanelDirective extends StylableComponent {
|
5
5
|
static initializeProps: void;
|
6
|
-
constructor(inj: Injector, explicitContext: any);
|
6
|
+
constructor(inj: Injector, explicitContext: any, navtype: string);
|
7
7
|
onPropertyChange(key: string, nv: any, ov?: any): void;
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RightPanelDirective, [null, { optional: true; }]>;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RightPanelDirective, [null, { optional: true; }, { attribute: "nav-type"; }]>;
|
9
9
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RightPanelDirective, "[wmRightPanel]", ["wmRightPanel"], {}, {}, never, never, false, never>;
|
10
10
|
}
|
@@ -2433,6 +2433,7 @@
|
|
2433
2433
|
const NUMBER_TYPES = ['int', exports.DataType.INTEGER, exports.DataType.FLOAT, exports.DataType.DOUBLE, exports.DataType.LONG, exports.DataType.SHORT, exports.DataType.BYTE, exports.DataType.BIG_INTEGER, exports.DataType.BIG_DECIMAL];
|
2434
2434
|
const now = new Date();
|
2435
2435
|
const CURRENT_DATE = 'CURRENT_DATE';
|
2436
|
+
const APP_NAV = 'app-nav';
|
2436
2437
|
const isDefined = v => 'undefined' !== typeof v;
|
2437
2438
|
const isObject = v => null !== v && 'object' === typeof v;
|
2438
2439
|
const toBoolean = (val, identity) => ((val && val !== 'false') ? true : (identity ? val === identity : false));
|
@@ -3841,6 +3842,7 @@
|
|
3841
3842
|
|
3842
3843
|
var Utils = /*#__PURE__*/Object.freeze({
|
3843
3844
|
__proto__: null,
|
3845
|
+
APP_NAV: APP_NAV,
|
3844
3846
|
AppConstants: AppConstants,
|
3845
3847
|
VALIDATOR: VALIDATOR,
|
3846
3848
|
_WM_APP_PROJECT: _WM_APP_PROJECT,
|
@@ -5187,6 +5189,7 @@
|
|
5187
5189
|
exports.$parseExpr = $parseExpr;
|
5188
5190
|
exports.$unwatch = $unwatch;
|
5189
5191
|
exports.$watch = $watch;
|
5192
|
+
exports.APP_NAV = APP_NAV;
|
5190
5193
|
exports.AbstractDialogService = AbstractDialogService;
|
5191
5194
|
exports.AbstractHttpService = AbstractHttpService;
|
5192
5195
|
exports.AbstractI18nService = AbstractI18nService;
|