@coolon/angular-ui-powerups 11.0.0-alpha.9 → 11.0.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/bundles/coolon-angular-ui-powerups.umd.js +192 -22
- 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.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/track-by.js +5 -1
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +8 -2
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/exports.js +2 -0
- package/esm2015/lib/directives/exports.js.map +1 -1
- package/esm2015/lib/directives/exports.metadata.json +1 -1
- package/esm2015/lib/directives/highlight-text-model.directive.js +25 -0
- package/esm2015/lib/directives/highlight-text-model.directive.js.map +1 -0
- package/esm2015/lib/directives/highlight-text-model.directive.metadata.json +1 -0
- package/esm2015/lib/directives/highlight-text-model.directive.ngfactory.js.map +1 -0
- package/esm2015/lib/directives/highlight.pipe.js +43 -0
- package/esm2015/lib/directives/highlight.pipe.js.map +1 -0
- package/esm2015/lib/directives/highlight.pipe.metadata.json +1 -0
- package/esm2015/lib/directives/highlight.pipe.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +10 -15
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/services/exports.js +5 -0
- package/esm2015/lib/services/exports.js.map +1 -0
- package/esm2015/lib/services/exports.metadata.json +1 -0
- package/esm2015/lib/services/visibility-service.js +74 -0
- package/esm2015/lib/services/visibility-service.js.map +1 -0
- package/esm2015/lib/services/visibility-service.metadata.json +1 -0
- package/esm2015/lib/services/visibility-service.ngfactory.js.map +1 -0
- package/esm2015/public-api.js +1 -0
- package/esm2015/public-api.js.map +1 -1
- package/esm2015/public-api.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +159 -22
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/track-by.d.ts +3 -1
- package/lib/directives/exports.d.ts +2 -0
- package/lib/directives/highlight-text-model.directive.d.ts +7 -0
- package/lib/directives/highlight.pipe.d.ts +11 -0
- package/lib/place/components/abstract-place-navigation.component.d.ts +1 -1
- package/lib/services/exports.d.ts +4 -0
- package/lib/services/visibility-service.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/schematics/aup-i18n/index.js +8 -28
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/aup-i18n/templates/app/aup.i18n.yml.template +80 -0
- package/schematics/bootstrap-app/index.js +5 -4
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/bootstrap-app/templates/{i18n/config.json.template → i18n.config.json.template} +2 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/place-add/index.js +4 -5
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-add/templates/component/__name@dasherize__.component.ts.template +3 -1
- package/schematics/place-add/templates/component/__name@dasherize__.i18n.yml.template +5 -0
- package/schematics/aup-i18n/templates/i18n/aup/components.yml.template +0 -69
- package/schematics/bootstrap-app/templates/i18n/notifications.yml.template +0 -19
- package/schematics/place-add/templates/files/i18n/places/__name@dasherize__.yml.template +0 -7
- /package/schematics/bootstrap-app/templates/{app → src/app}/app-routing.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.html.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.component.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/app.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{app → src/app}/i18n.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.eot +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.ijmap +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.svg +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.ttf +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.woff +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/MaterialIcons-Regular.woff2 +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/README.md +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/codepoints +0 -0
- /package/schematics/bootstrap-app/templates/{assets → src/assets}/fonts/material-design-icons/material-icons.css +0 -0
- /package/schematics/bootstrap-app/templates/{index.html.template → src/index.html.template} +0 -0
- /package/schematics/bootstrap-app/templates/{styles → src/styles}/global-variables.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{styles.scss.template → src/styles.scss.template} +0 -0
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@typescript-plus/fast-memoize-decorator/dist/src', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.
|
|
5
|
-
}(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/divider'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/progress-spinner'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('@angular/platform-browser'), require('lodash'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('typescript-string-enums'), require('resize-observer-polyfill'), require('@coolon/typescript-utilities'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('wake-event')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/divider', '@angular/material/icon', '@angular/material/menu', '@angular/material/progress-spinner', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', '@angular/platform-browser', 'lodash', '@typescript-plus/fast-memoize-decorator/dist/src', 'typescript-string-enums', 'resize-observer-polyfill', '@coolon/typescript-utilities', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'wake-event'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.divider, global.ng.material.icon, global.ng.material.menu, global.ng.material.progressSpinner, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.ng.platformBrowser, global._, global.src, global.typescriptStringEnums, global.ResizeObserver, global.typescriptUtilities, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.wakeEvent));
|
|
5
|
+
}(this, (function (exports, i2, i0, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, divider, icon, menu, progressSpinner, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, platformBrowser, _, src, typescriptStringEnums, ResizeObserver, typescriptUtilities, produce, flexLayout, i1, i1$1, overlay, list, fastMemoizeDecorator, reflectMetadata, animations$1, wakeEvent) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n['default'] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
9
29
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
10
30
|
var ResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(ResizeObserver);
|
|
11
31
|
var produce__default = /*#__PURE__*/_interopDefaultLegacy(produce);
|
|
32
|
+
var wakeEvent__namespace = /*#__PURE__*/_interopNamespace(wakeEvent);
|
|
12
33
|
|
|
13
34
|
/*! *****************************************************************************
|
|
14
35
|
Copyright (c) Microsoft Corporation.
|
|
@@ -605,6 +626,71 @@
|
|
|
605
626
|
onFocusOut: [{ type: i0.HostListener, args: ['focusout',] }]
|
|
606
627
|
};
|
|
607
628
|
|
|
629
|
+
var HighlightTextModelDirective = /** @class */ (function (_super) {
|
|
630
|
+
__extends(HighlightTextModelDirective, _super);
|
|
631
|
+
function HighlightTextModelDirective() {
|
|
632
|
+
return _super.call(this) || this;
|
|
633
|
+
}
|
|
634
|
+
HighlightTextModelDirective.prototype.ngOnDestroy = function () {
|
|
635
|
+
this.dispose();
|
|
636
|
+
};
|
|
637
|
+
return HighlightTextModelDirective;
|
|
638
|
+
}(pectin.GarbageCollector));
|
|
639
|
+
HighlightTextModelDirective.decorators = [
|
|
640
|
+
{ type: i0.Directive, args: [{
|
|
641
|
+
selector: '[aupHighlightTextModel]'
|
|
642
|
+
},] }
|
|
643
|
+
];
|
|
644
|
+
HighlightTextModelDirective.ctorParameters = function () { return []; };
|
|
645
|
+
HighlightTextModelDirective.propDecorators = {
|
|
646
|
+
aupHighlightTextModel: [{ type: i0.Input }]
|
|
647
|
+
};
|
|
648
|
+
__decorate([
|
|
649
|
+
pectin.TrackExternal(),
|
|
650
|
+
__metadata("design:type", pectin.ValueModel)
|
|
651
|
+
], HighlightTextModelDirective.prototype, "aupHighlightTextModel", void 0);
|
|
652
|
+
|
|
653
|
+
var HighlightPipe = /** @class */ (function (_super) {
|
|
654
|
+
__extends(HighlightPipe, _super);
|
|
655
|
+
function HighlightPipe(sanitizer, highlightContext) {
|
|
656
|
+
var _this = _super.call(this) || this;
|
|
657
|
+
_this.sanitizer = sanitizer;
|
|
658
|
+
_this.highlightContext = highlightContext;
|
|
659
|
+
return _this;
|
|
660
|
+
}
|
|
661
|
+
HighlightPipe.prototype.ngOnDestroy = function () {
|
|
662
|
+
this.dispose();
|
|
663
|
+
};
|
|
664
|
+
HighlightPipe.prototype.transform = function (value, searchModel) {
|
|
665
|
+
var _a;
|
|
666
|
+
var model = searchModel !== null && searchModel !== void 0 ? searchModel : (_a = this.highlightContext) === null || _a === void 0 ? void 0 : _a.aupHighlightTextModel;
|
|
667
|
+
var searchText = model === null || model === void 0 ? void 0 : model.value;
|
|
668
|
+
if (___default['default'].isEmpty(searchText) || !___default['default'].isString(value)) {
|
|
669
|
+
return value;
|
|
670
|
+
}
|
|
671
|
+
// Match in a case insensitive manner
|
|
672
|
+
var re = new RegExp(searchText, 'gi');
|
|
673
|
+
var match = value.match(re);
|
|
674
|
+
// If there's no match, just return the original value.
|
|
675
|
+
if (!match) {
|
|
676
|
+
return value;
|
|
677
|
+
}
|
|
678
|
+
var result = value.replace(re, '<mark>' + match[0] + '</mark>');
|
|
679
|
+
return this.sanitizer.bypassSecurityTrustHtml(result);
|
|
680
|
+
};
|
|
681
|
+
return HighlightPipe;
|
|
682
|
+
}(pectin.GarbageCollector));
|
|
683
|
+
HighlightPipe.decorators = [
|
|
684
|
+
{ type: i0.Pipe, args: [{
|
|
685
|
+
name: 'aupHighlight',
|
|
686
|
+
pure: false
|
|
687
|
+
},] }
|
|
688
|
+
];
|
|
689
|
+
HighlightPipe.ctorParameters = function () { return [
|
|
690
|
+
{ type: platformBrowser.DomSanitizer },
|
|
691
|
+
{ type: HighlightTextModelDirective, decorators: [{ type: i0.Optional }] }
|
|
692
|
+
]; };
|
|
693
|
+
|
|
608
694
|
var DirectivesModule = /** @class */ (function () {
|
|
609
695
|
function DirectivesModule() {
|
|
610
696
|
}
|
|
@@ -614,7 +700,9 @@
|
|
|
614
700
|
{ type: i0.NgModule, args: [{
|
|
615
701
|
declarations: [
|
|
616
702
|
CommandDirective,
|
|
617
|
-
FocusBindingDirective
|
|
703
|
+
FocusBindingDirective,
|
|
704
|
+
HighlightPipe,
|
|
705
|
+
HighlightTextModelDirective
|
|
618
706
|
],
|
|
619
707
|
imports: [
|
|
620
708
|
i2.CommonModule,
|
|
@@ -627,7 +715,9 @@
|
|
|
627
715
|
],
|
|
628
716
|
exports: [
|
|
629
717
|
CommandDirective,
|
|
630
|
-
FocusBindingDirective
|
|
718
|
+
FocusBindingDirective,
|
|
719
|
+
HighlightPipe,
|
|
720
|
+
HighlightTextModelDirective
|
|
631
721
|
]
|
|
632
722
|
},] }
|
|
633
723
|
];
|
|
@@ -1207,7 +1297,11 @@
|
|
|
1207
1297
|
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1208
1298
|
|
|
1209
1299
|
(function (TrackBy) {
|
|
1210
|
-
TrackBy.byIndex = function (
|
|
1300
|
+
TrackBy.byIndex = function (index, item) { return index; };
|
|
1301
|
+
function trackByProperty(property) {
|
|
1302
|
+
return function (index, item) { return item[property]; };
|
|
1303
|
+
}
|
|
1304
|
+
TrackBy.trackByProperty = trackByProperty;
|
|
1211
1305
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1212
1306
|
|
|
1213
1307
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -2566,7 +2660,7 @@
|
|
|
2566
2660
|
DefaultCellRendererComponent.decorators = [
|
|
2567
2661
|
{ type: i0.Component, args: [{
|
|
2568
2662
|
selector: 'aup-default-cell-renderer',
|
|
2569
|
-
template: "
|
|
2663
|
+
template: "<span [innerHTML]=\"value| aupHighlight\"></span>\n",
|
|
2570
2664
|
styles: [""]
|
|
2571
2665
|
},] }
|
|
2572
2666
|
];
|
|
@@ -8412,12 +8506,7 @@
|
|
|
8412
8506
|
_this.commandFactory = pectin.Command.createFactory(function (placeDefinition) {
|
|
8413
8507
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
8414
8508
|
});
|
|
8415
|
-
when(_this.placeOutletModel).changes(function (outlet) {
|
|
8416
|
-
// NOTE: this updates during a change cycle and causes our isActiveMethod to return 2 different
|
|
8417
|
-
// values in the one change detection cycle. So instead we delay the update to a different
|
|
8418
|
-
// tick.
|
|
8419
|
-
setTimeout(function () { return _this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null); });
|
|
8420
|
-
});
|
|
8509
|
+
when(_this.placeOutletModel).changes(function (outlet) { return _this.handlePlaceOutLetChanged(outlet); }, { initialValue: "triggerChange" });
|
|
8421
8510
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
8422
8511
|
_this.menuItems = chain(_this.placeDefinitions).map(function (d) {
|
|
8423
8512
|
return {
|
|
@@ -8427,13 +8516,16 @@
|
|
|
8427
8516
|
}, {
|
|
8428
8517
|
dependsOn: _this.activePlaceDefinition
|
|
8429
8518
|
});
|
|
8430
|
-
var txo = new pectin.TransactionObserver({ verbose: true }).onEvent(function (e) { return console.log(e.name, e.payload); });
|
|
8431
|
-
txo.observe('this.placesModel', _this.placesModel);
|
|
8432
|
-
txo.observe('this.placeDefinitions', _this.placeDefinitions);
|
|
8433
|
-
txo.observe('this.activePlaceDefinition', _this.activePlaceDefinition);
|
|
8434
|
-
txo.observe('this.menuItems', _this.menuItems);
|
|
8435
8519
|
return _this;
|
|
8520
|
+
// const txo = new TransactionObserver({ verbose: true }).onEvent(e => console.log(e.name, e.payload));
|
|
8521
|
+
// txo.observe('this.placesModel', this.placesModel);
|
|
8522
|
+
// txo.observe('this.placeDefinitions', this.placeDefinitions);
|
|
8523
|
+
// txo.observe('this.activePlaceDefinition', this.activePlaceDefinition);
|
|
8524
|
+
// txo.observe('this.menuItems', this.menuItems);
|
|
8436
8525
|
}
|
|
8526
|
+
AbstractPlaceNavigationComponent.prototype.handlePlaceOutLetChanged = function (outlet) {
|
|
8527
|
+
this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null);
|
|
8528
|
+
};
|
|
8437
8529
|
AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
|
|
8438
8530
|
var navItem = placeDef.getPlaceData('nav');
|
|
8439
8531
|
return {
|
|
@@ -8442,9 +8534,6 @@
|
|
|
8442
8534
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
8443
8535
|
};
|
|
8444
8536
|
};
|
|
8445
|
-
AbstractPlaceNavigationComponent.prototype.isActive = function (place) {
|
|
8446
|
-
return;
|
|
8447
|
-
};
|
|
8448
8537
|
AbstractPlaceNavigationComponent.prototype.ngOnInit = function () {
|
|
8449
8538
|
};
|
|
8450
8539
|
return AbstractPlaceNavigationComponent;
|
|
@@ -9195,6 +9284,84 @@
|
|
|
9195
9284
|
};
|
|
9196
9285
|
}
|
|
9197
9286
|
|
|
9287
|
+
/**
|
|
9288
|
+
* @file Automatically generated by barrelsby.
|
|
9289
|
+
*/
|
|
9290
|
+
|
|
9291
|
+
// Taken from: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
|
|
9292
|
+
var VisibilityService = /** @class */ (function (_super) {
|
|
9293
|
+
__extends(VisibilityService, _super);
|
|
9294
|
+
// private _wakeEvents = new MutableStream<Instant>();
|
|
9295
|
+
// private _throttledWakeEvents: Stream<Instant>;
|
|
9296
|
+
function VisibilityService(document) {
|
|
9297
|
+
var _this = _super.call(this) || this;
|
|
9298
|
+
_this._visibleModel = new pectin.MutableValueModel();
|
|
9299
|
+
_this.document = document; // see https://stackoverflow.com/a/53715642
|
|
9300
|
+
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
9301
|
+
// Set the name of the hidden property and the change event for visibility
|
|
9302
|
+
if (typeof _this.document.hidden !== 'undefined') { // Opera 12.10 and Firefox 18 and later support
|
|
9303
|
+
_this.attributeName = 'hidden';
|
|
9304
|
+
_this.eventName = 'visibilitychange';
|
|
9305
|
+
}
|
|
9306
|
+
else if (typeof _this.document['msHidden'] !== 'undefined') {
|
|
9307
|
+
_this.attributeName = 'msHidden';
|
|
9308
|
+
_this.eventName = 'msvisibilitychange';
|
|
9309
|
+
}
|
|
9310
|
+
else if (typeof _this.document['webkitHidden'] !== 'undefined') {
|
|
9311
|
+
_this.attributeName = 'webkitHidden';
|
|
9312
|
+
_this.eventName = 'webkitvisibilitychange';
|
|
9313
|
+
}
|
|
9314
|
+
// Warn if the browser doesn't support addEventListener or the Page Visibility API
|
|
9315
|
+
if (typeof _this.document.addEventListener === 'undefined' || typeof document[_this.attributeName] === 'undefined') {
|
|
9316
|
+
console.log('This demo requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API.');
|
|
9317
|
+
}
|
|
9318
|
+
else {
|
|
9319
|
+
// Handle page visibility change
|
|
9320
|
+
var handler_1 = function () { return _this.updateVisibilityState(); };
|
|
9321
|
+
_this.document.addEventListener(_this.eventName, handler_1, false);
|
|
9322
|
+
_this.onDispose(function () {
|
|
9323
|
+
_this.document.removeEventListener(_this.eventName, handler_1);
|
|
9324
|
+
});
|
|
9325
|
+
}
|
|
9326
|
+
wakeEvent__namespace(function () { return _this.updateVisibilityState(); });
|
|
9327
|
+
_this._visibleModel.value = _this.isVisible();
|
|
9328
|
+
return _this;
|
|
9329
|
+
// give the network a chance to come back or we end up with a bunch of failed requests.
|
|
9330
|
+
// should probably also implement a connection service so that we can go
|
|
9331
|
+
// connectionServer.ensureConnectedThen(fireWakeEvent);
|
|
9332
|
+
// this._throttledWakeEvents = chain(this._wakeEvents).throttle(300);
|
|
9333
|
+
}
|
|
9334
|
+
// get wakeEvents(): Stream<Instant> {
|
|
9335
|
+
// return this._throttledWakeEvents;
|
|
9336
|
+
// }
|
|
9337
|
+
// @trace
|
|
9338
|
+
VisibilityService.prototype.updateVisibilityState = function () {
|
|
9339
|
+
this._visibleModel.value = this.isVisible();
|
|
9340
|
+
// this._wakeEvents.publish(Instant.now());
|
|
9341
|
+
};
|
|
9342
|
+
Object.defineProperty(VisibilityService.prototype, "visibleModel", {
|
|
9343
|
+
get: function () {
|
|
9344
|
+
return this._visibleModel.readonly;
|
|
9345
|
+
},
|
|
9346
|
+
enumerable: false,
|
|
9347
|
+
configurable: true
|
|
9348
|
+
});
|
|
9349
|
+
VisibilityService.prototype.isHidden = function () {
|
|
9350
|
+
return !!this.document[this.attributeName];
|
|
9351
|
+
};
|
|
9352
|
+
VisibilityService.prototype.isVisible = function () {
|
|
9353
|
+
return !this.isHidden();
|
|
9354
|
+
};
|
|
9355
|
+
return VisibilityService;
|
|
9356
|
+
}(pectin.GarbageCollector));
|
|
9357
|
+
VisibilityService.ɵprov = i0.ɵɵdefineInjectable({ factory: function VisibilityService_Factory() { return new VisibilityService(i0.ɵɵinject(i2.DOCUMENT)); }, token: VisibilityService, providedIn: "root" });
|
|
9358
|
+
VisibilityService.decorators = [
|
|
9359
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9360
|
+
];
|
|
9361
|
+
VisibilityService.ctorParameters = function () { return [
|
|
9362
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
|
|
9363
|
+
]; };
|
|
9364
|
+
|
|
9198
9365
|
/**
|
|
9199
9366
|
* @file Automatically generated by barrelsby.
|
|
9200
9367
|
*/
|
|
@@ -9268,6 +9435,8 @@
|
|
|
9268
9435
|
exports.FocusContainerComponent = FocusContainerComponent;
|
|
9269
9436
|
exports.FocusableComponent = FocusableComponent;
|
|
9270
9437
|
exports.HEADER_CELL_RENDERER_PORTAL = HEADER_CELL_RENDERER_PORTAL;
|
|
9438
|
+
exports.HighlightPipe = HighlightPipe;
|
|
9439
|
+
exports.HighlightTextModelDirective = HighlightTextModelDirective;
|
|
9271
9440
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
9272
9441
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
9273
9442
|
exports.InteractionModule = InteractionModule;
|
|
@@ -9341,6 +9510,7 @@
|
|
|
9341
9510
|
exports.TreeToListModel = TreeToListModel;
|
|
9342
9511
|
exports.UrlService = UrlService;
|
|
9343
9512
|
exports.VerticalFocusContainerComponent = VerticalFocusContainerComponent;
|
|
9513
|
+
exports.VisibilityService = VisibilityService;
|
|
9344
9514
|
exports.Visit = Visit;
|
|
9345
9515
|
exports.VisitParameter = VisitParameter;
|
|
9346
9516
|
exports.VisitParameterList = VisitParameterList;
|