@coolon/angular-ui-powerups 1.3.7 → 1.4.1
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/CHANGELOG.md +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +123 -46
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +27 -26
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +25 -24
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.js +3 -0
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +8 -10
- package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +1 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +77 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/coolon-angular-ui-powerups.js +25 -24
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/components.module.js +3 -0
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/focus-container/focus-container.component.js +8 -10
- package/esm5/lib/components/focus-container/focus-container.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +80 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/fesm2015/coolon-angular-ui-powerups.js +83 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +86 -11
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/focus-container/focus-container.component.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focus-container/focus-container.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"focus-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focus-container/focus-container.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAQ,WAAW,EAAU,IAAI,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D;IAA6C,2CAAmB;IAS9D,iCAA6B,YAA0B;QAAvD,YACE,iBAAO,SACR;QAF4B,kBAAY,GAAZ,YAAY,CAAc;QAP9C,yBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;YAC5C,KAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;QAGM,cAAQ,GAAG,CAAC,CAAC,CAAC;;IAIvB,CAAC;IAED,0CAAQ,GAAR;IACA,CAAC;IAED,WAAW;IACX,8CAAY,GAAZ;QACE,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACnC,CAAC;;gBAV0C,YAAY,uBAA1C,IAAI;;IAFjB;QADC,WAAW,CAAC,eAAe,CAAC;;6DACN;IAPZ,uBAAuB;QARnC,SAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;YAC/B,uCAA+C;YAE/C,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,YAAY,EAAE;aAC1B;;SACF,CAAC;QAUa,WAAA,IAAI,EAAE,CAAA;yCAAwB,YAAY;OAT5C,uBAAuB,CAqBnC;IAAD,8BAAC;CAAA,AArBD,CAA6C,mBAAmB,GAqB/D;SArBY,uBAAuB","sourcesContent":["import { Component, Host, HostBinding, OnInit, Self } from '@angular/core';\nimport { Command, FocusManager, Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n@Component({\n selector: 'aup-focus-container',\n templateUrl: './focus-container.component.html',\n styleUrls: ['./focus-container.component.scss'],\n providers: [\n { provide: FocusManager }\n ]\n})\nexport class FocusContainerComponent extends DisposableComponent implements OnInit {\n\n readonly restoreFocusCommand = Command.create(() => {\n this.restoreFocus();\n });\n\n @HostBinding('attr.tabindex')\n readonly tabIndex = -1;\n\n constructor(@Self() readonly focusManager: FocusManager) {\n super();\n }\n\n ngOnInit() {\n }\n\n // @Trace()\n restoreFocus() {\n this.focusManager.restoreFocus();\n }\n\n}\n"]}
|
|
@@ -18,4 +18,5 @@ export * from "./switch-case/switch-case.component";
|
|
|
18
18
|
export * from "./types/bounds.class";
|
|
19
19
|
export * from "./types/dimension.class";
|
|
20
20
|
export * from "./types/point.class";
|
|
21
|
+
export * from "./vertical-focus-container/vertical-focus-container.component";
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./focusable.component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./focus-container/focus-container.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/checkbox-input/checkbox-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./focusable.component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./focus-container/focus-container.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/checkbox-input/checkbox-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\nexport * from \"./vertical-focus-container/vertical-focus-container.component\";\n"]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { __decorate, __extends, __metadata, __param } from "tslib";
|
|
2
|
+
import { Component, HostListener, Self } from '@angular/core';
|
|
3
|
+
import { Command, FocusManager, TrackExternal } from '@coolon/pectin';
|
|
4
|
+
import { FocusContainerComponent } from '../focus-container/focus-container.component';
|
|
5
|
+
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
6
|
+
__extends(VerticalFocusContainerComponent, _super);
|
|
7
|
+
function VerticalFocusContainerComponent(focusManager) {
|
|
8
|
+
var _this = _super.call(this, focusManager) || this;
|
|
9
|
+
_this.focusManager = focusManager;
|
|
10
|
+
return _this;
|
|
11
|
+
}
|
|
12
|
+
// The key listeners seem to be preventing manual binding
|
|
13
|
+
// @Input('command.arrowRight')
|
|
14
|
+
// @TrackExternal()
|
|
15
|
+
// rightArrowCommand: Command<void>;
|
|
16
|
+
//
|
|
17
|
+
// @Input('command.arrowLeft')
|
|
18
|
+
// @TrackExternal()
|
|
19
|
+
// leftArrowCommand: Command<void>;
|
|
20
|
+
//
|
|
21
|
+
// @HostListener('keyup.arrowLeft', ['$event'])
|
|
22
|
+
// arrowLeft(event: KeyboardEvent) {
|
|
23
|
+
// if (this.leftArrowCommand.enabled.value) {
|
|
24
|
+
// event.preventDefault();
|
|
25
|
+
// event.stopPropagation();
|
|
26
|
+
// this.leftArrowCommand.execute();
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
//
|
|
30
|
+
// @HostListener('keyup.arrowRight', ['$event'])
|
|
31
|
+
// arrowRight(event: KeyboardEvent) {
|
|
32
|
+
// if (this.rightArrowCommand.enabled.value) {
|
|
33
|
+
// event.preventDefault();
|
|
34
|
+
// event.stopPropagation();
|
|
35
|
+
// this.rightArrowCommand.execute();
|
|
36
|
+
// }
|
|
37
|
+
// }
|
|
38
|
+
VerticalFocusContainerComponent.prototype.arrowDown = function (event) {
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
event.stopPropagation();
|
|
41
|
+
this.focusManager.focusNext();
|
|
42
|
+
};
|
|
43
|
+
VerticalFocusContainerComponent.prototype.arrowUp = function (event) {
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
event.stopPropagation();
|
|
46
|
+
this.focusManager.focusPrevious();
|
|
47
|
+
};
|
|
48
|
+
VerticalFocusContainerComponent.prototype.ngOnInit = function () {
|
|
49
|
+
};
|
|
50
|
+
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
51
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
52
|
+
]; };
|
|
53
|
+
__decorate([
|
|
54
|
+
HostListener('keyup.arrowDown', ['$event']),
|
|
55
|
+
__metadata("design:type", Function),
|
|
56
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
57
|
+
__metadata("design:returntype", void 0)
|
|
58
|
+
], VerticalFocusContainerComponent.prototype, "arrowDown", null);
|
|
59
|
+
__decorate([
|
|
60
|
+
HostListener('keyup.arrowUp', ['$event']),
|
|
61
|
+
__metadata("design:type", Function),
|
|
62
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
63
|
+
__metadata("design:returntype", void 0)
|
|
64
|
+
], VerticalFocusContainerComponent.prototype, "arrowUp", null);
|
|
65
|
+
VerticalFocusContainerComponent = __decorate([
|
|
66
|
+
Component({
|
|
67
|
+
selector: 'aup-vertical-focus-container',
|
|
68
|
+
template: "<ng-content></ng-content>\n",
|
|
69
|
+
providers: [
|
|
70
|
+
{ provide: FocusManager }
|
|
71
|
+
],
|
|
72
|
+
styles: [":host{display:block}"]
|
|
73
|
+
}),
|
|
74
|
+
__param(0, Self()),
|
|
75
|
+
__metadata("design:paramtypes", [FocusManager])
|
|
76
|
+
], VerticalFocusContainerComponent);
|
|
77
|
+
return VerticalFocusContainerComponent;
|
|
78
|
+
}(FocusContainerComponent));
|
|
79
|
+
export { VerticalFocusContainerComponent };
|
|
80
|
+
//# sourceMappingURL=vertical-focus-container.component.js.map
|
package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertical-focus-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/vertical-focus-container/vertical-focus-container.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAQ,YAAY,EAAiB,IAAI,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAUvF;IAAqD,mDAAuB;IA2C1E,yCAA6B,YAA0B;QAAvD,YACE,kBAAM,YAAY,CAAC,SACpB;QAF4B,kBAAY,GAAZ,YAAY,CAAc;;IAEvD,CAAC;IA3CD,yDAAyD;IACzD,+BAA+B;IAC/B,mBAAmB;IACnB,oCAAoC;IACpC,EAAE;IACF,8BAA8B;IAC9B,mBAAmB;IACnB,mCAAmC;IACnC,EAAE;IACF,+CAA+C;IAC/C,oCAAoC;IACpC,+CAA+C;IAC/C,8BAA8B;IAC9B,+BAA+B;IAC/B,uCAAuC;IACvC,MAAM;IACN,IAAI;IACJ,EAAE;IACF,gDAAgD;IAChD,qCAAqC;IACrC,gDAAgD;IAChD,8BAA8B;IAC9B,+BAA+B;IAC/B,wCAAwC;IACxC,MAAM;IACN,IAAI;IAGJ,mDAAS,GAAT,UAAU,KAAoB;QAC5B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;IAChC,CAAC;IAGD,iDAAO,GAAP,UAAQ,KAAoB;QAC1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;IACpC,CAAC;IAMD,kDAAQ,GAAR;IACA,CAAC;;gBAL0C,YAAY,uBAA1C,IAAI;;IAbjB;QADC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;;yCAC3B,aAAa;;oEAI7B;IAGD;QADC,YAAY,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC;;yCAC3B,aAAa;;kEAI3B;IAzCU,+BAA+B;QAR3C,SAAS,CAAC;YACT,QAAQ,EAAE,8BAA8B;YACxC,uCAAwD;YAExD,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,YAAY,EAAE;aAC1B;;SACF,CAAC;QA4Ca,WAAA,IAAI,EAAE,CAAA;yCAAwB,YAAY;OA3C5C,+BAA+B,CAkD3C;IAAD,sCAAC;CAAA,AAlDD,CAAqD,uBAAuB,GAkD3E;SAlDY,+BAA+B","sourcesContent":["import { Component, Host, HostListener, Input, OnInit, Self } from '@angular/core';\nimport { Command, FocusManager, TrackExternal } from '@coolon/pectin';\nimport { FocusContainerComponent } from '../focus-container/focus-container.component';\n\n@Component({\n selector: 'aup-vertical-focus-container',\n templateUrl: './vertical-focus-container.component.html',\n styleUrls: ['./vertical-focus-container.component.scss'],\n providers: [\n { provide: FocusManager }\n ]\n})\nexport class VerticalFocusContainerComponent extends FocusContainerComponent implements OnInit {\n\n // The key listeners seem to be preventing manual binding\n // @Input('command.arrowRight')\n // @TrackExternal()\n // rightArrowCommand: Command<void>;\n //\n // @Input('command.arrowLeft')\n // @TrackExternal()\n // leftArrowCommand: Command<void>;\n //\n // @HostListener('keyup.arrowLeft', ['$event'])\n // arrowLeft(event: KeyboardEvent) {\n // if (this.leftArrowCommand.enabled.value) {\n // event.preventDefault();\n // event.stopPropagation();\n // this.leftArrowCommand.execute();\n // }\n // }\n //\n // @HostListener('keyup.arrowRight', ['$event'])\n // arrowRight(event: KeyboardEvent) {\n // if (this.rightArrowCommand.enabled.value) {\n // event.preventDefault();\n // event.stopPropagation();\n // this.rightArrowCommand.execute();\n // }\n // }\n\n @HostListener('keyup.arrowDown', ['$event'])\n arrowDown(event: KeyboardEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.focusManager.focusNext();\n }\n\n @HostListener('keyup.arrowUp', ['$event'])\n arrowUp(event: KeyboardEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.focusManager.focusPrevious();\n }\n\n constructor(@Self() readonly focusManager: FocusManager) {\n super(focusManager);\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertical-focus-container.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertical-focus-container.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param, __awaiter } from 'tslib';
|
|
2
2
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
3
|
-
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule,
|
|
3
|
+
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, Self, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -10,7 +10,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger,
|
|
13
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, Command, FocusManager, DelegatingFormValueModel, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
14
14
|
import { PortalModule } from '@angular/cdk/portal';
|
|
15
15
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
16
16
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
@@ -328,27 +328,25 @@ let FocusContainerComponent = class FocusContainerComponent extends DisposableCo
|
|
|
328
328
|
constructor(focusManager) {
|
|
329
329
|
super();
|
|
330
330
|
this.focusManager = focusManager;
|
|
331
|
+
this.restoreFocusCommand = Command.create(() => {
|
|
332
|
+
this.restoreFocus();
|
|
333
|
+
});
|
|
331
334
|
this.tabIndex = -1;
|
|
332
335
|
}
|
|
333
336
|
ngOnInit() {
|
|
334
337
|
}
|
|
338
|
+
// @Trace()
|
|
335
339
|
restoreFocus() {
|
|
336
340
|
this.focusManager.restoreFocus();
|
|
337
341
|
}
|
|
338
342
|
};
|
|
339
343
|
FocusContainerComponent.ctorParameters = () => [
|
|
340
|
-
{ type: FocusManager, decorators: [{ type:
|
|
344
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
341
345
|
];
|
|
342
346
|
__decorate([
|
|
343
347
|
HostBinding('attr.tabindex'),
|
|
344
348
|
__metadata("design:type", Object)
|
|
345
349
|
], FocusContainerComponent.prototype, "tabIndex", void 0);
|
|
346
|
-
__decorate([
|
|
347
|
-
Trace(),
|
|
348
|
-
__metadata("design:type", Function),
|
|
349
|
-
__metadata("design:paramtypes", []),
|
|
350
|
-
__metadata("design:returntype", void 0)
|
|
351
|
-
], FocusContainerComponent.prototype, "restoreFocus", null);
|
|
352
350
|
FocusContainerComponent = __decorate([
|
|
353
351
|
Component({
|
|
354
352
|
selector: 'aup-focus-container',
|
|
@@ -358,7 +356,7 @@ FocusContainerComponent = __decorate([
|
|
|
358
356
|
],
|
|
359
357
|
styles: [":host{display:block}"]
|
|
360
358
|
}),
|
|
361
|
-
__param(0,
|
|
359
|
+
__param(0, Self()),
|
|
362
360
|
__metadata("design:paramtypes", [FocusManager])
|
|
363
361
|
], FocusContainerComponent);
|
|
364
362
|
|
|
@@ -859,6 +857,78 @@ SwitchCaseComponent = __decorate([
|
|
|
859
857
|
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
860
858
|
], SwitchCaseComponent);
|
|
861
859
|
|
|
860
|
+
let VerticalFocusContainerComponent = class VerticalFocusContainerComponent extends FocusContainerComponent {
|
|
861
|
+
constructor(focusManager) {
|
|
862
|
+
super(focusManager);
|
|
863
|
+
this.focusManager = focusManager;
|
|
864
|
+
}
|
|
865
|
+
// The key listeners seem to be preventing manual binding
|
|
866
|
+
// @Input('command.arrowRight')
|
|
867
|
+
// @TrackExternal()
|
|
868
|
+
// rightArrowCommand: Command<void>;
|
|
869
|
+
//
|
|
870
|
+
// @Input('command.arrowLeft')
|
|
871
|
+
// @TrackExternal()
|
|
872
|
+
// leftArrowCommand: Command<void>;
|
|
873
|
+
//
|
|
874
|
+
// @HostListener('keyup.arrowLeft', ['$event'])
|
|
875
|
+
// arrowLeft(event: KeyboardEvent) {
|
|
876
|
+
// if (this.leftArrowCommand.enabled.value) {
|
|
877
|
+
// event.preventDefault();
|
|
878
|
+
// event.stopPropagation();
|
|
879
|
+
// this.leftArrowCommand.execute();
|
|
880
|
+
// }
|
|
881
|
+
// }
|
|
882
|
+
//
|
|
883
|
+
// @HostListener('keyup.arrowRight', ['$event'])
|
|
884
|
+
// arrowRight(event: KeyboardEvent) {
|
|
885
|
+
// if (this.rightArrowCommand.enabled.value) {
|
|
886
|
+
// event.preventDefault();
|
|
887
|
+
// event.stopPropagation();
|
|
888
|
+
// this.rightArrowCommand.execute();
|
|
889
|
+
// }
|
|
890
|
+
// }
|
|
891
|
+
arrowDown(event) {
|
|
892
|
+
event.preventDefault();
|
|
893
|
+
event.stopPropagation();
|
|
894
|
+
this.focusManager.focusNext();
|
|
895
|
+
}
|
|
896
|
+
arrowUp(event) {
|
|
897
|
+
event.preventDefault();
|
|
898
|
+
event.stopPropagation();
|
|
899
|
+
this.focusManager.focusPrevious();
|
|
900
|
+
}
|
|
901
|
+
ngOnInit() {
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
VerticalFocusContainerComponent.ctorParameters = () => [
|
|
905
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
906
|
+
];
|
|
907
|
+
__decorate([
|
|
908
|
+
HostListener('keyup.arrowDown', ['$event']),
|
|
909
|
+
__metadata("design:type", Function),
|
|
910
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
911
|
+
__metadata("design:returntype", void 0)
|
|
912
|
+
], VerticalFocusContainerComponent.prototype, "arrowDown", null);
|
|
913
|
+
__decorate([
|
|
914
|
+
HostListener('keyup.arrowUp', ['$event']),
|
|
915
|
+
__metadata("design:type", Function),
|
|
916
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
917
|
+
__metadata("design:returntype", void 0)
|
|
918
|
+
], VerticalFocusContainerComponent.prototype, "arrowUp", null);
|
|
919
|
+
VerticalFocusContainerComponent = __decorate([
|
|
920
|
+
Component({
|
|
921
|
+
selector: 'aup-vertical-focus-container',
|
|
922
|
+
template: "<ng-content></ng-content>\n",
|
|
923
|
+
providers: [
|
|
924
|
+
{ provide: FocusManager }
|
|
925
|
+
],
|
|
926
|
+
styles: [":host{display:block}"]
|
|
927
|
+
}),
|
|
928
|
+
__param(0, Self()),
|
|
929
|
+
__metadata("design:paramtypes", [FocusManager])
|
|
930
|
+
], VerticalFocusContainerComponent);
|
|
931
|
+
|
|
862
932
|
let ComponentsModule = class ComponentsModule {
|
|
863
933
|
};
|
|
864
934
|
ComponentsModule = __decorate([
|
|
@@ -876,6 +946,7 @@ ComponentsModule = __decorate([
|
|
|
876
946
|
SwitchCaseWhenDirective,
|
|
877
947
|
SwitchCaseDefaultDirective,
|
|
878
948
|
FocusContainerComponent,
|
|
949
|
+
VerticalFocusContainerComponent,
|
|
879
950
|
FocusableComponent
|
|
880
951
|
],
|
|
881
952
|
imports: [
|
|
@@ -903,6 +974,7 @@ ComponentsModule = __decorate([
|
|
|
903
974
|
SwitchCaseWhenDirective,
|
|
904
975
|
SwitchCaseDefaultDirective,
|
|
905
976
|
FocusContainerComponent,
|
|
977
|
+
VerticalFocusContainerComponent,
|
|
906
978
|
FocusableComponent
|
|
907
979
|
],
|
|
908
980
|
providers: [
|
|
@@ -4206,5 +4278,5 @@ function VisitParameterList(options) {
|
|
|
4206
4278
|
* Generated bundle index. Do not edit.
|
|
4207
4279
|
*/
|
|
4208
4280
|
|
|
4209
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb,
|
|
4281
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, LEFT_RIGHT_PLACE_ANIMATION as ɵba, AUP_PLACE_CONFIG as ɵbb, PlaceRouter as ɵbd, InteractionService as ɵbe, ModalInteractionContextFactory as ɵbf, UrlService as ɵbg, PlaceHistory as ɵbh, TabbedPlaceNavigationComponent as ɵbi, AbstractPlaceNavigationComponent as ɵbj, ListPlaceNavComponent as ɵbk, InteractionModule as ɵbl, ActivityContainerComponent as ɵbm, AbstractInteractionContext as ɵbn, ActivityOutletComponent as ɵbo, ConfirmationDialogComponent as ɵbp, ACTIVITY_DATA as ɵbq, Activity as ɵbr, ConfirmThenDialogComponent as ɵbt, AlertDialogComponent as ɵbu, InPlaceInteractionContextComponent as ɵbw, FocusBindingDirective as ɵc, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, NumberInputComponent as ɵg, AbstractInputComponent as ɵh, StringInputComponent as ɵi, PasswordInputComponent as ɵj, SelectInputComponent as ɵk, CheckboxInputComponent as ɵl, ScrollContainerComponent as ɵm, NoopComponent as ɵn, SwitchCaseOption as ɵo, SwitchCaseWhenDirective as ɵp, SwitchCaseDefaultDirective as ɵq, SwitchCaseComponent as ɵr, FocusContainerComponent as ɵs, VerticalFocusContainerComponent as ɵt, FocusableComponent as ɵu, PlaceModule as ɵv, EmptyStateComponent as ɵw, BusyOverlayComponent as ɵx, PlaceOutletComponent as ɵy, leftRightPlaceAnimation as ɵz };
|
|
4210
4282
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|