@skyux/tiles 5.6.2 → 6.0.0-beta.0
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/documentation.json +1 -1
- package/esm2020/index.mjs +24 -0
- package/esm2020/lib/modules/shared/sky-tiles-resources.module.mjs +60 -0
- package/esm2020/lib/modules/tiles/tile/tile-summary.component.mjs +16 -0
- package/esm2020/lib/modules/tiles/tile/tile-title.component.mjs +15 -0
- package/esm2020/lib/modules/tiles/tile/tile.component.mjs +160 -0
- package/esm2020/lib/modules/tiles/tile/tile.module.mjs +53 -0
- package/esm2020/lib/modules/tiles/tile-content/tile-content-section.component.mjs +15 -0
- package/esm2020/lib/modules/tiles/tile-content/tile-content.component.mjs +14 -0
- package/esm2020/lib/modules/tiles/tile-content/tile-content.module.mjs +20 -0
- package/esm2020/lib/modules/tiles/tile-dashboard/tile-dashboard-message-type.mjs +15 -0
- package/esm2020/lib/modules/tiles/tile-dashboard/tile-dashboard-message.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard/tile-dashboard.component.mjs +128 -0
- package/esm2020/lib/modules/tiles/tile-dashboard/tile-dashboard.module.mjs +32 -0
- package/esm2020/lib/modules/tiles/tile-dashboard/tile-dashboard.service.mjs +525 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.component.mjs +32 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.module.mjs +19 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-column.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-tile.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-reorder-data.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-tile.mjs +2 -0
- package/esm2020/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config.mjs +2 -0
- package/esm2020/lib/modules/tiles/tiles.module.mjs +31 -0
- package/esm2020/skyux-tiles.mjs +5 -0
- package/fesm2015/skyux-tiles.mjs +1076 -0
- package/fesm2015/skyux-tiles.mjs.map +1 -0
- package/{fesm2015/skyux-tiles.js → fesm2020/skyux-tiles.mjs} +57 -86
- package/fesm2020/skyux-tiles.mjs.map +1 -0
- package/lib/modules/shared/sky-tiles-resources.module.d.ts +1 -1
- package/package.json +27 -14
- package/bundles/skyux-tiles.umd.js +0 -1662
- package/esm2015/index.js +0 -24
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/modules/shared/sky-tiles-resources.module.js +0 -60
- package/esm2015/lib/modules/shared/sky-tiles-resources.module.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile/tile-summary.component.js +0 -19
- package/esm2015/lib/modules/tiles/tile/tile-summary.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile/tile-title.component.js +0 -19
- package/esm2015/lib/modules/tiles/tile/tile-title.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile/tile.component.js +0 -165
- package/esm2015/lib/modules/tiles/tile/tile.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile/tile.module.js +0 -53
- package/esm2015/lib/modules/tiles/tile/tile.module.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-content/tile-content-section.component.js +0 -19
- package/esm2015/lib/modules/tiles/tile-content/tile-content-section.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-content/tile-content.component.js +0 -18
- package/esm2015/lib/modules/tiles/tile-content/tile-content.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-content/tile-content.module.js +0 -20
- package/esm2015/lib/modules/tiles/tile-content/tile-content.module.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard-message-type.js +0 -15
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard-message-type.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard-message.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard-message.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.component.js +0 -133
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.module.js +0 -32
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.module.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.service.js +0 -525
- package/esm2015/lib/modules/tiles/tile-dashboard/tile-dashboard.service.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.component.js +0 -36
- package/esm2015/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.component.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.module.js +0 -19
- package/esm2015/lib/modules/tiles/tile-dashboard-column/tile-dashboard-column.module.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-column.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-column.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-tile.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout-tile.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-layout.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-reorder-data.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-reorder-data.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-tile.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config-tile.js.map +0 -1
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config.js +0 -2
- package/esm2015/lib/modules/tiles/tile-dashboard-config/tile-dashboard-config.js.map +0 -1
- package/esm2015/lib/modules/tiles/tiles.module.js +0 -31
- package/esm2015/lib/modules/tiles/tiles.module.js.map +0 -1
- package/esm2015/skyux-tiles.js +0 -5
- package/esm2015/skyux-tiles.js.map +0 -1
- package/fesm2015/skyux-tiles.js.map +0 -1
|
@@ -1,1662 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/core'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/theme'), require('@skyux/animations'), require('rxjs'), require('rxjs/operators'), require('ng2-dragula')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/tiles', ['exports', '@angular/common', '@angular/core', '@skyux/core', '@skyux/i18n', '@skyux/indicators', '@skyux/theme', '@skyux/animations', 'rxjs', 'rxjs/operators', 'ng2-dragula'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.tiles = {}), global.ng.common, global.ng.core, global.i2, global.i3, global.i2$1, global.i4, global.animations, global.rxjs, global.rxjs.operators, global.i1));
|
|
5
|
-
})(this, (function (exports, i3$1, i0, i2, i3, i2$1, i4, animations, rxjs, operators, i1) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
26
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3);
|
|
29
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
31
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
35
|
-
* The contents of this file were automatically generated by
|
|
36
|
-
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-tiles' schematic.
|
|
37
|
-
* To update this file, simply rerun the command.
|
|
38
|
-
*/
|
|
39
|
-
var RESOURCES = {
|
|
40
|
-
'EN-US': {
|
|
41
|
-
skyux_tile_expand: { message: 'Expand or collapse {0}' },
|
|
42
|
-
skyux_tile_expand_default: { message: 'Expand or collapse' },
|
|
43
|
-
skyux_tile_help: { message: '{0} help' },
|
|
44
|
-
skyux_tile_help_default: { message: 'Help' },
|
|
45
|
-
skyux_tile_settings: { message: '{0} settings' },
|
|
46
|
-
skyux_tile_settings_default: { message: 'Settings' },
|
|
47
|
-
skyux_tile_move: { message: 'Move {0}' },
|
|
48
|
-
skyux_tile_move_default: { message: 'Move' },
|
|
49
|
-
skyux_tile_move_instructions: {
|
|
50
|
-
message: "When focus is placed on a tile's move button, use the arrow keys to move it. The up and down keys change its position within a column. The left and right keys move it between columns.",
|
|
51
|
-
},
|
|
52
|
-
skyux_tile_moved_assistive_text: {
|
|
53
|
-
message: '{0} moved. Current column: {1} of {2}. Current position in column: {3} of {4}',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
var SkyTilesResourcesProvider = /** @class */ (function () {
|
|
58
|
-
function SkyTilesResourcesProvider() {
|
|
59
|
-
}
|
|
60
|
-
SkyTilesResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
61
|
-
return i3.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
62
|
-
};
|
|
63
|
-
return SkyTilesResourcesProvider;
|
|
64
|
-
}());
|
|
65
|
-
/**
|
|
66
|
-
* Import into any component library module that needs to use resource strings.
|
|
67
|
-
*/
|
|
68
|
-
var SkyTilesResourcesModule = /** @class */ (function () {
|
|
69
|
-
function SkyTilesResourcesModule() {
|
|
70
|
-
}
|
|
71
|
-
return SkyTilesResourcesModule;
|
|
72
|
-
}());
|
|
73
|
-
SkyTilesResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
74
|
-
SkyTilesResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesResourcesModule, exports: [i3.SkyI18nModule] });
|
|
75
|
-
SkyTilesResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesResourcesModule, providers: [
|
|
76
|
-
{
|
|
77
|
-
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
78
|
-
useClass: SkyTilesResourcesProvider,
|
|
79
|
-
multi: true,
|
|
80
|
-
},
|
|
81
|
-
], imports: [i3.SkyI18nModule] });
|
|
82
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesResourcesModule, decorators: [{
|
|
83
|
-
type: i0.NgModule,
|
|
84
|
-
args: [{
|
|
85
|
-
exports: [i3.SkyI18nModule],
|
|
86
|
-
providers: [
|
|
87
|
-
{
|
|
88
|
-
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
89
|
-
useClass: SkyTilesResourcesProvider,
|
|
90
|
-
multi: true,
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
}]
|
|
94
|
-
}] });
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Specifies content to display in the tile's summary.
|
|
98
|
-
*/
|
|
99
|
-
/* istanbul ignore next */
|
|
100
|
-
/* Code coverage having problems with no statements in classes */
|
|
101
|
-
var SkyTileSummaryComponent = /** @class */ (function () {
|
|
102
|
-
function SkyTileSummaryComponent() {
|
|
103
|
-
}
|
|
104
|
-
return SkyTileSummaryComponent;
|
|
105
|
-
}());
|
|
106
|
-
SkyTileSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileSummaryComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
107
|
-
SkyTileSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileSummaryComponent, selector: "sky-tile-summary", ngImport: i0__namespace, template: "<ng-content></ng-content>\n" });
|
|
108
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileSummaryComponent, decorators: [{
|
|
109
|
-
type: i0.Component,
|
|
110
|
-
args: [{
|
|
111
|
-
selector: 'sky-tile-summary',
|
|
112
|
-
template: "<ng-content></ng-content>\n",
|
|
113
|
-
}]
|
|
114
|
-
}] });
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Specifies content to display in the tile's title.
|
|
118
|
-
*/
|
|
119
|
-
var SkyTileTitleComponent = /** @class */ (function () {
|
|
120
|
-
function SkyTileTitleComponent() {
|
|
121
|
-
}
|
|
122
|
-
return SkyTileTitleComponent;
|
|
123
|
-
}());
|
|
124
|
-
SkyTileTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileTitleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
125
|
-
SkyTileTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileTitleComponent, selector: "sky-tile-title", ngImport: i0__namespace, template: "<h2\n class=\"sky-tile-title\"\n [skyThemeClass]=\"{\n 'sky-font-heading-2': 'modern',\n 'sky-section-heading': 'default'\n }\"\n>\n <ng-content></ng-content>\n</h2>\n", styles: [".sky-tile-title{margin:0;padding:10px 15px}:host-context(.sky-theme-modern) .sky-tile-title{margin:0 30px 0 0;padding:0}.sky-theme-modern .sky-tile-title{margin:0 30px 0 0;padding:0}\n"], directives: [{ type: i4__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }] });
|
|
126
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileTitleComponent, decorators: [{
|
|
127
|
-
type: i0.Component,
|
|
128
|
-
args: [{
|
|
129
|
-
selector: 'sky-tile-title',
|
|
130
|
-
template: "<h2\n class=\"sky-tile-title\"\n [skyThemeClass]=\"{\n 'sky-font-heading-2': 'modern',\n 'sky-section-heading': 'default'\n }\"\n>\n <ng-content></ng-content>\n</h2>\n",
|
|
131
|
-
styles: [".sky-tile-title{margin:0;padding:10px 15px}:host-context(.sky-theme-modern) .sky-tile-title{margin:0 30px 0 0;padding:0}.sky-theme-modern .sky-tile-title{margin:0 30px 0 0;padding:0}\n"],
|
|
132
|
-
}]
|
|
133
|
-
}] });
|
|
134
|
-
|
|
135
|
-
/*! *****************************************************************************
|
|
136
|
-
Copyright (c) Microsoft Corporation.
|
|
137
|
-
|
|
138
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
139
|
-
purpose with or without fee is hereby granted.
|
|
140
|
-
|
|
141
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
142
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
143
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
144
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
145
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
146
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
147
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
148
|
-
***************************************************************************** */
|
|
149
|
-
/* global Reflect, Promise */
|
|
150
|
-
var extendStatics = function (d, b) {
|
|
151
|
-
extendStatics = Object.setPrototypeOf ||
|
|
152
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
153
|
-
function (d, b) { for (var p in b)
|
|
154
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
155
|
-
d[p] = b[p]; };
|
|
156
|
-
return extendStatics(d, b);
|
|
157
|
-
};
|
|
158
|
-
function __extends(d, b) {
|
|
159
|
-
if (typeof b !== "function" && b !== null)
|
|
160
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
161
|
-
extendStatics(d, b);
|
|
162
|
-
function __() { this.constructor = d; }
|
|
163
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
164
|
-
}
|
|
165
|
-
var __assign = function () {
|
|
166
|
-
__assign = Object.assign || function __assign(t) {
|
|
167
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
168
|
-
s = arguments[i];
|
|
169
|
-
for (var p in s)
|
|
170
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
171
|
-
t[p] = s[p];
|
|
172
|
-
}
|
|
173
|
-
return t;
|
|
174
|
-
};
|
|
175
|
-
return __assign.apply(this, arguments);
|
|
176
|
-
};
|
|
177
|
-
function __rest(s, e) {
|
|
178
|
-
var t = {};
|
|
179
|
-
for (var p in s)
|
|
180
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
181
|
-
t[p] = s[p];
|
|
182
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
183
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
184
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
185
|
-
t[p[i]] = s[p[i]];
|
|
186
|
-
}
|
|
187
|
-
return t;
|
|
188
|
-
}
|
|
189
|
-
function __decorate(decorators, target, key, desc) {
|
|
190
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
191
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
192
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
193
|
-
else
|
|
194
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
195
|
-
if (d = decorators[i])
|
|
196
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
197
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
198
|
-
}
|
|
199
|
-
function __param(paramIndex, decorator) {
|
|
200
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
201
|
-
}
|
|
202
|
-
function __metadata(metadataKey, metadataValue) {
|
|
203
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
204
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
205
|
-
}
|
|
206
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
207
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
208
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
209
|
-
function fulfilled(value) { try {
|
|
210
|
-
step(generator.next(value));
|
|
211
|
-
}
|
|
212
|
-
catch (e) {
|
|
213
|
-
reject(e);
|
|
214
|
-
} }
|
|
215
|
-
function rejected(value) { try {
|
|
216
|
-
step(generator["throw"](value));
|
|
217
|
-
}
|
|
218
|
-
catch (e) {
|
|
219
|
-
reject(e);
|
|
220
|
-
} }
|
|
221
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
222
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function __generator(thisArg, body) {
|
|
226
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
227
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
228
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
229
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
230
|
-
function step(op) {
|
|
231
|
-
if (f)
|
|
232
|
-
throw new TypeError("Generator is already executing.");
|
|
233
|
-
while (_)
|
|
234
|
-
try {
|
|
235
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
236
|
-
return t;
|
|
237
|
-
if (y = 0, t)
|
|
238
|
-
op = [op[0] & 2, t.value];
|
|
239
|
-
switch (op[0]) {
|
|
240
|
-
case 0:
|
|
241
|
-
case 1:
|
|
242
|
-
t = op;
|
|
243
|
-
break;
|
|
244
|
-
case 4:
|
|
245
|
-
_.label++;
|
|
246
|
-
return { value: op[1], done: false };
|
|
247
|
-
case 5:
|
|
248
|
-
_.label++;
|
|
249
|
-
y = op[1];
|
|
250
|
-
op = [0];
|
|
251
|
-
continue;
|
|
252
|
-
case 7:
|
|
253
|
-
op = _.ops.pop();
|
|
254
|
-
_.trys.pop();
|
|
255
|
-
continue;
|
|
256
|
-
default:
|
|
257
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
258
|
-
_ = 0;
|
|
259
|
-
continue;
|
|
260
|
-
}
|
|
261
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
262
|
-
_.label = op[1];
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
266
|
-
_.label = t[1];
|
|
267
|
-
t = op;
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
if (t && _.label < t[2]) {
|
|
271
|
-
_.label = t[2];
|
|
272
|
-
_.ops.push(op);
|
|
273
|
-
break;
|
|
274
|
-
}
|
|
275
|
-
if (t[2])
|
|
276
|
-
_.ops.pop();
|
|
277
|
-
_.trys.pop();
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
op = body.call(thisArg, _);
|
|
281
|
-
}
|
|
282
|
-
catch (e) {
|
|
283
|
-
op = [6, e];
|
|
284
|
-
y = 0;
|
|
285
|
-
}
|
|
286
|
-
finally {
|
|
287
|
-
f = t = 0;
|
|
288
|
-
}
|
|
289
|
-
if (op[0] & 5)
|
|
290
|
-
throw op[1];
|
|
291
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
295
|
-
if (k2 === undefined)
|
|
296
|
-
k2 = k;
|
|
297
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
298
|
-
}) : (function (o, m, k, k2) {
|
|
299
|
-
if (k2 === undefined)
|
|
300
|
-
k2 = k;
|
|
301
|
-
o[k2] = m[k];
|
|
302
|
-
});
|
|
303
|
-
function __exportStar(m, o) {
|
|
304
|
-
for (var p in m)
|
|
305
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
306
|
-
__createBinding(o, m, p);
|
|
307
|
-
}
|
|
308
|
-
function __values(o) {
|
|
309
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
310
|
-
if (m)
|
|
311
|
-
return m.call(o);
|
|
312
|
-
if (o && typeof o.length === "number")
|
|
313
|
-
return {
|
|
314
|
-
next: function () {
|
|
315
|
-
if (o && i >= o.length)
|
|
316
|
-
o = void 0;
|
|
317
|
-
return { value: o && o[i++], done: !o };
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
321
|
-
}
|
|
322
|
-
function __read(o, n) {
|
|
323
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
324
|
-
if (!m)
|
|
325
|
-
return o;
|
|
326
|
-
var i = m.call(o), r, ar = [], e;
|
|
327
|
-
try {
|
|
328
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
329
|
-
ar.push(r.value);
|
|
330
|
-
}
|
|
331
|
-
catch (error) {
|
|
332
|
-
e = { error: error };
|
|
333
|
-
}
|
|
334
|
-
finally {
|
|
335
|
-
try {
|
|
336
|
-
if (r && !r.done && (m = i["return"]))
|
|
337
|
-
m.call(i);
|
|
338
|
-
}
|
|
339
|
-
finally {
|
|
340
|
-
if (e)
|
|
341
|
-
throw e.error;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return ar;
|
|
345
|
-
}
|
|
346
|
-
/** @deprecated */
|
|
347
|
-
function __spread() {
|
|
348
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
349
|
-
ar = ar.concat(__read(arguments[i]));
|
|
350
|
-
return ar;
|
|
351
|
-
}
|
|
352
|
-
/** @deprecated */
|
|
353
|
-
function __spreadArrays() {
|
|
354
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
355
|
-
s += arguments[i].length;
|
|
356
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
357
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
358
|
-
r[k] = a[j];
|
|
359
|
-
return r;
|
|
360
|
-
}
|
|
361
|
-
function __spreadArray(to, from, pack) {
|
|
362
|
-
if (pack || arguments.length === 2)
|
|
363
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
364
|
-
if (ar || !(i in from)) {
|
|
365
|
-
if (!ar)
|
|
366
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
367
|
-
ar[i] = from[i];
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
371
|
-
}
|
|
372
|
-
function __await(v) {
|
|
373
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
374
|
-
}
|
|
375
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
376
|
-
if (!Symbol.asyncIterator)
|
|
377
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
378
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
379
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
380
|
-
function verb(n) { if (g[n])
|
|
381
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
382
|
-
function resume(n, v) { try {
|
|
383
|
-
step(g[n](v));
|
|
384
|
-
}
|
|
385
|
-
catch (e) {
|
|
386
|
-
settle(q[0][3], e);
|
|
387
|
-
} }
|
|
388
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
389
|
-
function fulfill(value) { resume("next", value); }
|
|
390
|
-
function reject(value) { resume("throw", value); }
|
|
391
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
392
|
-
resume(q[0][0], q[0][1]); }
|
|
393
|
-
}
|
|
394
|
-
function __asyncDelegator(o) {
|
|
395
|
-
var i, p;
|
|
396
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
397
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
398
|
-
}
|
|
399
|
-
function __asyncValues(o) {
|
|
400
|
-
if (!Symbol.asyncIterator)
|
|
401
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
402
|
-
var m = o[Symbol.asyncIterator], i;
|
|
403
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
404
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
405
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
406
|
-
}
|
|
407
|
-
function __makeTemplateObject(cooked, raw) {
|
|
408
|
-
if (Object.defineProperty) {
|
|
409
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
cooked.raw = raw;
|
|
413
|
-
}
|
|
414
|
-
return cooked;
|
|
415
|
-
}
|
|
416
|
-
;
|
|
417
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
418
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
419
|
-
}) : function (o, v) {
|
|
420
|
-
o["default"] = v;
|
|
421
|
-
};
|
|
422
|
-
function __importStar(mod) {
|
|
423
|
-
if (mod && mod.__esModule)
|
|
424
|
-
return mod;
|
|
425
|
-
var result = {};
|
|
426
|
-
if (mod != null)
|
|
427
|
-
for (var k in mod)
|
|
428
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
429
|
-
__createBinding(result, mod, k);
|
|
430
|
-
__setModuleDefault(result, mod);
|
|
431
|
-
return result;
|
|
432
|
-
}
|
|
433
|
-
function __importDefault(mod) {
|
|
434
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
435
|
-
}
|
|
436
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
437
|
-
if (kind === "a" && !f)
|
|
438
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
439
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
440
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
441
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
442
|
-
}
|
|
443
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
444
|
-
if (kind === "m")
|
|
445
|
-
throw new TypeError("Private method is not writable");
|
|
446
|
-
if (kind === "a" && !f)
|
|
447
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
448
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
449
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
450
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
var ATTR_TILE_ID = '_sky-tile-dashboard-tile-id';
|
|
454
|
-
var bagIdIndex = 0;
|
|
455
|
-
var SkyTileDashboardService = /** @class */ (function () {
|
|
456
|
-
function SkyTileDashboardService(dragulaService, mediaQuery, uiConfigService) {
|
|
457
|
-
this.dragulaService = dragulaService;
|
|
458
|
-
this.mediaQuery = mediaQuery;
|
|
459
|
-
this.uiConfigService = uiConfigService;
|
|
460
|
-
/**
|
|
461
|
-
* @internal
|
|
462
|
-
*/
|
|
463
|
-
this.configChange = new i0.EventEmitter();
|
|
464
|
-
/**
|
|
465
|
-
* Fires when the tile dashboard's initialization is complete.
|
|
466
|
-
*/
|
|
467
|
-
this.dashboardInitialized = new i0.EventEmitter();
|
|
468
|
-
this.bagId = 'sky-tile-dashboard-bag-' + ++bagIdIndex;
|
|
469
|
-
this.initDragula();
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* @internal
|
|
473
|
-
*/
|
|
474
|
-
SkyTileDashboardService.prototype.init = function (config, columns, singleColumn, settingsKey) {
|
|
475
|
-
var _this = this;
|
|
476
|
-
if (settingsKey) {
|
|
477
|
-
// Clone this so changes to the config object outside of this class don't modify
|
|
478
|
-
// the config used inside and vice versa.
|
|
479
|
-
this.defaultConfig = this.config = Object.assign({}, config);
|
|
480
|
-
this.settingsKey = settingsKey;
|
|
481
|
-
this.uiConfigService
|
|
482
|
-
.getConfig(settingsKey, config)
|
|
483
|
-
.pipe(operators.take(1))
|
|
484
|
-
.subscribe(function (value) {
|
|
485
|
-
if (value.persisted) {
|
|
486
|
-
_this.config.layout = value.layout;
|
|
487
|
-
_this.checkForNewTiles(value.tileIds);
|
|
488
|
-
_this.configChange.emit(_this.config);
|
|
489
|
-
_this.columns = columns;
|
|
490
|
-
_this.singleColumn = singleColumn;
|
|
491
|
-
_this.checkReadyAndLoadTiles();
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
// Bad data, or config is the default config.
|
|
495
|
-
_this.initToDefaults(config, columns, singleColumn);
|
|
496
|
-
}
|
|
497
|
-
}, function (error) {
|
|
498
|
-
// Config setting key doesn't exist or other config service error
|
|
499
|
-
_this.initToDefaults(config, columns, singleColumn);
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
this.initToDefaults(config, columns, singleColumn);
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
/**
|
|
507
|
-
* Adds a new tile to the tile dashboard.
|
|
508
|
-
* @param tile Specifies the tile configuration.
|
|
509
|
-
* @param component Specifies the tile component to add.
|
|
510
|
-
*/
|
|
511
|
-
SkyTileDashboardService.prototype.addTileComponent = function (tile, component) {
|
|
512
|
-
this.tileComponents = this.tileComponents || [];
|
|
513
|
-
this.tileComponents.push(component);
|
|
514
|
-
component.location.nativeElement.setAttribute(ATTR_TILE_ID, tile.id);
|
|
515
|
-
};
|
|
516
|
-
/**
|
|
517
|
-
* Checks whether a specified tile is collapsed.
|
|
518
|
-
* @param tile Specifies the tile component to check.
|
|
519
|
-
*/
|
|
520
|
-
SkyTileDashboardService.prototype.tileIsCollapsed = function (tile) {
|
|
521
|
-
var tileConfig = this.findTile(this.getTileId(tile));
|
|
522
|
-
if (tileConfig) {
|
|
523
|
-
return tileConfig.isCollapsed;
|
|
524
|
-
}
|
|
525
|
-
return undefined;
|
|
526
|
-
};
|
|
527
|
-
/**
|
|
528
|
-
* Sets the collapsed state of all tiles.
|
|
529
|
-
* @param isCollapsed Indicates whether tiles are collapsed.
|
|
530
|
-
*/
|
|
531
|
-
SkyTileDashboardService.prototype.setAllTilesCollapsed = function (isCollapsed) {
|
|
532
|
-
var e_1, _a, e_2, _b, e_3, _c;
|
|
533
|
-
/*istanbul ignore else */
|
|
534
|
-
if (this.config && this.config.layout.multiColumn) {
|
|
535
|
-
try {
|
|
536
|
-
for (var _d = __values(this.config.layout.multiColumn), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
537
|
-
var column = _e.value;
|
|
538
|
-
try {
|
|
539
|
-
for (var _f = (e_2 = void 0, __values(column.tiles)), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
540
|
-
var tile = _g.value;
|
|
541
|
-
tile.isCollapsed = isCollapsed;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
545
|
-
finally {
|
|
546
|
-
try {
|
|
547
|
-
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
|
548
|
-
}
|
|
549
|
-
finally { if (e_2) throw e_2.error; }
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
554
|
-
finally {
|
|
555
|
-
try {
|
|
556
|
-
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
557
|
-
}
|
|
558
|
-
finally { if (e_1) throw e_1.error; }
|
|
559
|
-
}
|
|
560
|
-
try {
|
|
561
|
-
for (var _h = __values(this.config.layout.singleColumn.tiles), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
562
|
-
var tile = _j.value;
|
|
563
|
-
tile.isCollapsed = isCollapsed;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
567
|
-
finally {
|
|
568
|
-
try {
|
|
569
|
-
if (_j && !_j.done && (_c = _h.return)) _c.call(_h);
|
|
570
|
-
}
|
|
571
|
-
finally { if (e_3) throw e_3.error; }
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
if (this.settingsKey) {
|
|
575
|
-
this.setUserConfig(this.config);
|
|
576
|
-
}
|
|
577
|
-
this.configChange.emit(this.config);
|
|
578
|
-
};
|
|
579
|
-
/**
|
|
580
|
-
* Sets the collapsed state of a specified tile.
|
|
581
|
-
* @param tile Specifies the tile component.
|
|
582
|
-
* @param isCollapsed Indicates whether the tile is collapsed.
|
|
583
|
-
*/
|
|
584
|
-
SkyTileDashboardService.prototype.setTileCollapsed = function (tile, isCollapsed) {
|
|
585
|
-
var tileConfig = this.findTile(this.getTileId(tile));
|
|
586
|
-
if (tileConfig) {
|
|
587
|
-
tileConfig.isCollapsed = isCollapsed;
|
|
588
|
-
if (this.settingsKey) {
|
|
589
|
-
this.setUserConfig(this.config);
|
|
590
|
-
}
|
|
591
|
-
this.configChange.emit(this.config);
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
/**
|
|
595
|
-
* @internal
|
|
596
|
-
*/
|
|
597
|
-
SkyTileDashboardService.prototype.getTileComponentType = function (layoutTile) {
|
|
598
|
-
var e_4, _a;
|
|
599
|
-
if (layoutTile) {
|
|
600
|
-
try {
|
|
601
|
-
for (var _b = __values(this.config.tiles), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
602
|
-
var tile = _c.value;
|
|
603
|
-
if (tile.id === layoutTile.id) {
|
|
604
|
-
return tile.componentType;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
609
|
-
finally {
|
|
610
|
-
try {
|
|
611
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
612
|
-
}
|
|
613
|
-
finally { if (e_4) throw e_4.error; }
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
return undefined;
|
|
617
|
-
};
|
|
618
|
-
/**
|
|
619
|
-
* @internal
|
|
620
|
-
*/
|
|
621
|
-
SkyTileDashboardService.prototype.changeColumnMode = function (isSingleColumn) {
|
|
622
|
-
/*istanbul ignore else */
|
|
623
|
-
if (this.config) {
|
|
624
|
-
if (isSingleColumn) {
|
|
625
|
-
this.moveTilesToSingleColumn();
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
this.moveTilesToMultiColumn();
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
/**
|
|
633
|
-
* @internal
|
|
634
|
-
*/
|
|
635
|
-
SkyTileDashboardService.prototype.getTileComponent = function (tileId) {
|
|
636
|
-
var e_5, _a;
|
|
637
|
-
try {
|
|
638
|
-
for (var _b = __values(this.tileComponents), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
639
|
-
var tileComponent = _c.value;
|
|
640
|
-
if (tileComponent.location.nativeElement.getAttribute(ATTR_TILE_ID) ===
|
|
641
|
-
tileId) {
|
|
642
|
-
return tileComponent;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
647
|
-
finally {
|
|
648
|
-
try {
|
|
649
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
650
|
-
}
|
|
651
|
-
finally { if (e_5) throw e_5.error; }
|
|
652
|
-
}
|
|
653
|
-
/*istanbul ignore next */
|
|
654
|
-
return undefined;
|
|
655
|
-
};
|
|
656
|
-
/**
|
|
657
|
-
* @internal
|
|
658
|
-
*/
|
|
659
|
-
SkyTileDashboardService.prototype.destroy = function () {
|
|
660
|
-
/*istanbul ignore else */
|
|
661
|
-
if (this.mediaSubscription) {
|
|
662
|
-
this.mediaSubscription.unsubscribe();
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
/**
|
|
666
|
-
* @internal
|
|
667
|
-
*/
|
|
668
|
-
SkyTileDashboardService.prototype.moveTileOnKeyDown = function (tileCmp, direction, tileDescription) {
|
|
669
|
-
var isSingleColumnMode = this.mediaQuery.current === i2.SkyMediaBreakpoints.xs ||
|
|
670
|
-
this.mediaQuery.current === i2.SkyMediaBreakpoints.sm;
|
|
671
|
-
var tileId = this.getTileId(tileCmp);
|
|
672
|
-
var tile = this.findTile(tileId);
|
|
673
|
-
var column;
|
|
674
|
-
var colIndex;
|
|
675
|
-
if (isSingleColumnMode) {
|
|
676
|
-
column = this.config.layout.singleColumn;
|
|
677
|
-
}
|
|
678
|
-
else {
|
|
679
|
-
column = this.findTileColumn(tileId);
|
|
680
|
-
colIndex = this.config.layout.multiColumn.findIndex(function (value) { return value === column; });
|
|
681
|
-
}
|
|
682
|
-
if ((direction === 'left' || direction === 'right') &&
|
|
683
|
-
!isSingleColumnMode) {
|
|
684
|
-
var operator = direction === 'left' ? -1 : 1;
|
|
685
|
-
var newColumn = this.config.layout.multiColumn[colIndex + operator];
|
|
686
|
-
if (newColumn) {
|
|
687
|
-
// Move the tile to the end of the new column
|
|
688
|
-
newColumn.tiles.push(tile);
|
|
689
|
-
column.tiles = column.tiles.filter(function (item) { return item !== tile; });
|
|
690
|
-
this.moveTilesToColumn(this.columns.toArray()[colIndex + operator], [
|
|
691
|
-
tile,
|
|
692
|
-
]);
|
|
693
|
-
// Report the change in configuration
|
|
694
|
-
var reportConfig = this.config;
|
|
695
|
-
reportConfig.movedTile = {
|
|
696
|
-
tileDescription: tileDescription || /* istanbul ignore next */ tile.id,
|
|
697
|
-
column: colIndex + operator + 1,
|
|
698
|
-
position: newColumn.tiles.length,
|
|
699
|
-
};
|
|
700
|
-
this.configChange.emit(reportConfig);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
var operator = direction === 'up' ? -1 : 1;
|
|
705
|
-
var curIndex = column.tiles.findIndex(function (value) { return value.id === tile.id; });
|
|
706
|
-
var tileComponentInstance = this.getTileComponent(tileId);
|
|
707
|
-
if (tileComponentInstance && column.tiles[curIndex + operator]) {
|
|
708
|
-
var temp = column.tiles[curIndex + operator];
|
|
709
|
-
column.tiles[curIndex + operator] = tile;
|
|
710
|
-
column.tiles[curIndex] = temp;
|
|
711
|
-
// Get the column element
|
|
712
|
-
var columnEl = void 0;
|
|
713
|
-
if (isSingleColumnMode) {
|
|
714
|
-
columnEl = this.getColumnEl(this.singleColumn);
|
|
715
|
-
}
|
|
716
|
-
else {
|
|
717
|
-
columnEl = this.getColumnEl(this.columns.toArray()[colIndex]);
|
|
718
|
-
}
|
|
719
|
-
// Move the tile element in the document
|
|
720
|
-
if (curIndex + operator === column.tiles.length - 1) {
|
|
721
|
-
columnEl.appendChild(tileComponentInstance.location.nativeElement);
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
columnEl.insertBefore(tileComponentInstance.location.nativeElement, this.getTileComponent(column.tiles[curIndex + operator + 1].id)
|
|
725
|
-
.location.nativeElement);
|
|
726
|
-
}
|
|
727
|
-
// Report the change in configuration
|
|
728
|
-
var reportConfig = this.config;
|
|
729
|
-
reportConfig.movedTile = {
|
|
730
|
-
tileDescription: tileDescription || /* istanbul ignore next */ tile.id,
|
|
731
|
-
column: isSingleColumnMode ? undefined : colIndex + 1,
|
|
732
|
-
position: curIndex + operator + 1,
|
|
733
|
-
};
|
|
734
|
-
this.configChange.emit(reportConfig);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
SkyTileDashboardService.prototype.getTileId = function (tile) {
|
|
739
|
-
if (tile) {
|
|
740
|
-
var el = tile.elementRef.nativeElement;
|
|
741
|
-
var tileId = void 0;
|
|
742
|
-
while (el) {
|
|
743
|
-
tileId = el.getAttribute(ATTR_TILE_ID);
|
|
744
|
-
if (tileId) {
|
|
745
|
-
return tileId;
|
|
746
|
-
}
|
|
747
|
-
el = el.parentElement;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
return undefined;
|
|
751
|
-
};
|
|
752
|
-
SkyTileDashboardService.prototype.getTileOrRemoveFromLayout = function (layoutTile) {
|
|
753
|
-
var e_6, _a;
|
|
754
|
-
/*istanbul ignore else */
|
|
755
|
-
if (layoutTile) {
|
|
756
|
-
try {
|
|
757
|
-
for (var _b = __values(this.config.tiles), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
758
|
-
var tile = _c.value;
|
|
759
|
-
if (tile.id === layoutTile.id) {
|
|
760
|
-
return tile;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
765
|
-
finally {
|
|
766
|
-
try {
|
|
767
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
768
|
-
}
|
|
769
|
-
finally { if (e_6) throw e_6.error; }
|
|
770
|
-
}
|
|
771
|
-
// If the layout tile was not found in the list of tiles, it was removed since last the user updated settings
|
|
772
|
-
/*istanbul ignore else */
|
|
773
|
-
if (this.config.layout.singleColumn) {
|
|
774
|
-
this.config.layout.singleColumn.tiles =
|
|
775
|
-
this.config.layout.singleColumn.tiles.filter(function (elem) { return elem.id !== layoutTile.id; });
|
|
776
|
-
}
|
|
777
|
-
/*istanbul ignore else */
|
|
778
|
-
if (this.config.layout.multiColumn) {
|
|
779
|
-
this.config.layout.multiColumn.forEach(function (elem) {
|
|
780
|
-
elem.tiles = elem.tiles.filter(function (res) { return res.id !== layoutTile.id; });
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
/*istanbul ignore next */
|
|
785
|
-
return undefined;
|
|
786
|
-
};
|
|
787
|
-
SkyTileDashboardService.prototype.checkReadyAndLoadTiles = function () {
|
|
788
|
-
if (this.config && this.columns) {
|
|
789
|
-
this.loadTiles();
|
|
790
|
-
this.initMediaQueries();
|
|
791
|
-
this.dashboardInitialized.emit();
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
SkyTileDashboardService.prototype.loadTiles = function () {
|
|
795
|
-
var e_7, _a, e_8, _b;
|
|
796
|
-
var layout = this.config.layout;
|
|
797
|
-
if (this.mediaQuery.current === i2.SkyMediaBreakpoints.xs ||
|
|
798
|
-
this.mediaQuery.current === i2.SkyMediaBreakpoints.sm) {
|
|
799
|
-
try {
|
|
800
|
-
for (var _c = __values(layout.singleColumn.tiles), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
801
|
-
var tile = _d.value;
|
|
802
|
-
this.loadTileIntoColumn(this.singleColumn, tile);
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
806
|
-
finally {
|
|
807
|
-
try {
|
|
808
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
809
|
-
}
|
|
810
|
-
finally { if (e_7) throw e_7.error; }
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
else {
|
|
814
|
-
var columns = this.columns.toArray();
|
|
815
|
-
for (var i = 0, n = layout.multiColumn.length; i < n; i++) {
|
|
816
|
-
var column = columns[i];
|
|
817
|
-
try {
|
|
818
|
-
for (var _e = (e_8 = void 0, __values(layout.multiColumn[i].tiles)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
819
|
-
var tile = _f.value;
|
|
820
|
-
this.loadTileIntoColumn(column, tile);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
824
|
-
finally {
|
|
825
|
-
try {
|
|
826
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
827
|
-
}
|
|
828
|
-
finally { if (e_8) throw e_8.error; }
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
SkyTileDashboardService.prototype.loadTileIntoColumn = function (column, layoutTile) {
|
|
834
|
-
var tile = this.getTileOrRemoveFromLayout(layoutTile);
|
|
835
|
-
/*istanbul ignore else */
|
|
836
|
-
if (tile) {
|
|
837
|
-
var componentType = tile.componentType;
|
|
838
|
-
var providers = tile.providers /* istanbul ignore next */ || [];
|
|
839
|
-
var injector = i0.Injector.create({
|
|
840
|
-
providers: providers,
|
|
841
|
-
parent: column.injector,
|
|
842
|
-
});
|
|
843
|
-
var factory = column.resolver.resolveComponentFactory(componentType);
|
|
844
|
-
var componentRef = column.content.createComponent(factory, undefined, injector);
|
|
845
|
-
this.addTileComponent(layoutTile, componentRef);
|
|
846
|
-
// Make sure the component is marked for changes in case the parent component uses
|
|
847
|
-
// the OnPush change detection strategy.
|
|
848
|
-
componentRef.changeDetectorRef.markForCheck();
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
SkyTileDashboardService.prototype.moveTilesToSingleColumn = function () {
|
|
852
|
-
this.moveTilesToColumn(this.singleColumn, this.config.layout.singleColumn.tiles);
|
|
853
|
-
};
|
|
854
|
-
SkyTileDashboardService.prototype.moveTilesToMultiColumn = function () {
|
|
855
|
-
var layoutColumns = this.config.layout.multiColumn;
|
|
856
|
-
var columns = this.columns.toArray();
|
|
857
|
-
for (var i = 0, n = layoutColumns.length; i < n; i++) {
|
|
858
|
-
this.moveTilesToColumn(columns[i], layoutColumns[i].tiles);
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
SkyTileDashboardService.prototype.moveTilesToColumn = function (column, layoutTiles) {
|
|
862
|
-
var e_9, _a;
|
|
863
|
-
var columnEl = this.getColumnEl(column);
|
|
864
|
-
try {
|
|
865
|
-
for (var layoutTiles_1 = __values(layoutTiles), layoutTiles_1_1 = layoutTiles_1.next(); !layoutTiles_1_1.done; layoutTiles_1_1 = layoutTiles_1.next()) {
|
|
866
|
-
var layoutTile = layoutTiles_1_1.value;
|
|
867
|
-
var tileComponentInstance = this.getTileComponent(layoutTile.id);
|
|
868
|
-
/*istanbul ignore else */
|
|
869
|
-
if (tileComponentInstance) {
|
|
870
|
-
columnEl.appendChild(tileComponentInstance.location.nativeElement);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
875
|
-
finally {
|
|
876
|
-
try {
|
|
877
|
-
if (layoutTiles_1_1 && !layoutTiles_1_1.done && (_a = layoutTiles_1.return)) _a.call(layoutTiles_1);
|
|
878
|
-
}
|
|
879
|
-
finally { if (e_9) throw e_9.error; }
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
SkyTileDashboardService.prototype.getConfigForUIState = function () {
|
|
883
|
-
/*istanbul ignore else */
|
|
884
|
-
if (this.config) {
|
|
885
|
-
this.config = {
|
|
886
|
-
tiles: this.config.tiles,
|
|
887
|
-
layout: {
|
|
888
|
-
singleColumn: this.getSingleColumnLayoutForUIState(),
|
|
889
|
-
multiColumn: this.getMultiColumnLayoutForUIState(),
|
|
890
|
-
},
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
return this.config;
|
|
894
|
-
};
|
|
895
|
-
SkyTileDashboardService.prototype.getSingleColumnLayoutForUIState = function () {
|
|
896
|
-
if (this.mediaQuery.current === i2.SkyMediaBreakpoints.xs ||
|
|
897
|
-
this.mediaQuery.current === i2.SkyMediaBreakpoints.sm) {
|
|
898
|
-
return {
|
|
899
|
-
tiles: this.getTilesInEl(this.getColumnEl(this.singleColumn)),
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
return this.config.layout.singleColumn;
|
|
903
|
-
};
|
|
904
|
-
SkyTileDashboardService.prototype.getMultiColumnLayoutForUIState = function () {
|
|
905
|
-
var e_10, _a;
|
|
906
|
-
if (!(this.mediaQuery.current === i2.SkyMediaBreakpoints.xs ||
|
|
907
|
-
this.mediaQuery.current === i2.SkyMediaBreakpoints.sm)) {
|
|
908
|
-
var layoutColumns = [];
|
|
909
|
-
var columns = this.columns.toArray();
|
|
910
|
-
try {
|
|
911
|
-
for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
|
|
912
|
-
var column = columns_1_1.value;
|
|
913
|
-
if (column !== this.singleColumn) {
|
|
914
|
-
var layoutColumn = {
|
|
915
|
-
tiles: this.getTilesInEl(this.getColumnEl(column)),
|
|
916
|
-
};
|
|
917
|
-
layoutColumns.push(layoutColumn);
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
922
|
-
finally {
|
|
923
|
-
try {
|
|
924
|
-
if (columns_1_1 && !columns_1_1.done && (_a = columns_1.return)) _a.call(columns_1);
|
|
925
|
-
}
|
|
926
|
-
finally { if (e_10) throw e_10.error; }
|
|
927
|
-
}
|
|
928
|
-
return layoutColumns;
|
|
929
|
-
}
|
|
930
|
-
return this.config.layout.multiColumn;
|
|
931
|
-
};
|
|
932
|
-
SkyTileDashboardService.prototype.getTilesInEl = function (el) {
|
|
933
|
-
var tileEls = el.querySelectorAll('[' + ATTR_TILE_ID + ']');
|
|
934
|
-
var layoutTiles = [];
|
|
935
|
-
/*istanbul ignore else */
|
|
936
|
-
if (tileEls) {
|
|
937
|
-
for (var i = 0, n = tileEls.length; i < n; i++) {
|
|
938
|
-
var tileEl = tileEls[i];
|
|
939
|
-
var tileId = tileEl.getAttribute(ATTR_TILE_ID);
|
|
940
|
-
var tile = this.findTile(tileId);
|
|
941
|
-
/*istanbul ignore else */
|
|
942
|
-
if (tile) {
|
|
943
|
-
layoutTiles.push(tile);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
return layoutTiles;
|
|
948
|
-
};
|
|
949
|
-
SkyTileDashboardService.prototype.initMediaQueries = function () {
|
|
950
|
-
var _this = this;
|
|
951
|
-
/*istanbul ignore else */
|
|
952
|
-
if (!this.mediaSubscription) {
|
|
953
|
-
this.mediaSubscription = this.mediaQuery.subscribe(function (args) {
|
|
954
|
-
_this.changeColumnMode(args === i2.SkyMediaBreakpoints.xs || args === i2.SkyMediaBreakpoints.sm);
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
SkyTileDashboardService.prototype.initDragula = function () {
|
|
959
|
-
var _this = this;
|
|
960
|
-
this.dragulaService.setOptions(this.bagId, {
|
|
961
|
-
moves: function (el, container, handle) {
|
|
962
|
-
var target = el.querySelector('.sky-tile-grab-handle');
|
|
963
|
-
return target.contains(handle);
|
|
964
|
-
},
|
|
965
|
-
});
|
|
966
|
-
this.dragulaService.drop.subscribe(function (value) {
|
|
967
|
-
var config = _this.getConfigForUIState();
|
|
968
|
-
/*istanbul ignore else */
|
|
969
|
-
if (config) {
|
|
970
|
-
if (_this.settingsKey) {
|
|
971
|
-
_this.setUserConfig(config);
|
|
972
|
-
}
|
|
973
|
-
_this.configChange.emit(config);
|
|
974
|
-
}
|
|
975
|
-
});
|
|
976
|
-
};
|
|
977
|
-
SkyTileDashboardService.prototype.getColumnEl = function (column) {
|
|
978
|
-
return column.content.element.nativeElement.parentNode;
|
|
979
|
-
};
|
|
980
|
-
SkyTileDashboardService.prototype.findTile = function (tileId) {
|
|
981
|
-
var e_11, _a, e_12, _b;
|
|
982
|
-
/*istanbul ignore else */
|
|
983
|
-
if (this.config && this.config.layout.multiColumn) {
|
|
984
|
-
try {
|
|
985
|
-
for (var _c = __values(this.config.layout.multiColumn), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
986
|
-
var column = _d.value;
|
|
987
|
-
/*istanbul ignore else */
|
|
988
|
-
if (column.tiles) {
|
|
989
|
-
try {
|
|
990
|
-
for (var _e = (e_12 = void 0, __values(column.tiles)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
991
|
-
var tile = _f.value;
|
|
992
|
-
if (tile.id === tileId) {
|
|
993
|
-
return tile;
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
998
|
-
finally {
|
|
999
|
-
try {
|
|
1000
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
1001
|
-
}
|
|
1002
|
-
finally { if (e_12) throw e_12.error; }
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1008
|
-
finally {
|
|
1009
|
-
try {
|
|
1010
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
1011
|
-
}
|
|
1012
|
-
finally { if (e_11) throw e_11.error; }
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
return undefined;
|
|
1016
|
-
};
|
|
1017
|
-
SkyTileDashboardService.prototype.findTileColumn = function (tileId) {
|
|
1018
|
-
/*istanbul ignore else */
|
|
1019
|
-
if (this.config && this.config.layout.multiColumn) {
|
|
1020
|
-
return this.config.layout.multiColumn.find(function (col) { return col.tiles && !!col.tiles.find(function (tile) { return tile.id === tileId; }); });
|
|
1021
|
-
}
|
|
1022
|
-
/*istanbul ignore next */
|
|
1023
|
-
return undefined;
|
|
1024
|
-
};
|
|
1025
|
-
SkyTileDashboardService.prototype.initToDefaults = function (config, columns, singleColumn) {
|
|
1026
|
-
this.config = config;
|
|
1027
|
-
this.columns = columns;
|
|
1028
|
-
this.singleColumn = singleColumn;
|
|
1029
|
-
this.checkReadyAndLoadTiles();
|
|
1030
|
-
};
|
|
1031
|
-
SkyTileDashboardService.prototype.setUserConfig = function (config) {
|
|
1032
|
-
this.uiConfigService
|
|
1033
|
-
.setConfig(this.settingsKey, {
|
|
1034
|
-
layout: this.config.layout,
|
|
1035
|
-
persisted: true,
|
|
1036
|
-
tileIds: this.defaultConfig.tiles.map(function (elem) { return elem.id; }),
|
|
1037
|
-
})
|
|
1038
|
-
.subscribe(
|
|
1039
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1040
|
-
function () { }, function (err) {
|
|
1041
|
-
console.warn('Could not save tile dashboard settings.');
|
|
1042
|
-
console.warn(err);
|
|
1043
|
-
});
|
|
1044
|
-
};
|
|
1045
|
-
SkyTileDashboardService.prototype.checkForNewTiles = function (oldUserTiles) {
|
|
1046
|
-
var e_13, _a, e_14, _b;
|
|
1047
|
-
// Get a list of tiles that are in the config's default list but not in the user's settings
|
|
1048
|
-
var newTiles = this.config.tiles.filter(function (elem) {
|
|
1049
|
-
return oldUserTiles.indexOf(elem.id) === -1;
|
|
1050
|
-
});
|
|
1051
|
-
var _c = this.config.layout, multiColumn = _c.multiColumn, singleColumn = _c.singleColumn;
|
|
1052
|
-
// Append new tiles to the end of the layouts
|
|
1053
|
-
/*istanbul ignore else */
|
|
1054
|
-
if (newTiles.length > 0) {
|
|
1055
|
-
/*istanbul ignore else */
|
|
1056
|
-
if (multiColumn) {
|
|
1057
|
-
newTiles.forEach(function (elem) {
|
|
1058
|
-
var locationToAdd = 0;
|
|
1059
|
-
var smallest = multiColumn[0].tiles.length;
|
|
1060
|
-
multiColumn.forEach(function (item, index) {
|
|
1061
|
-
if (item.tiles.length < smallest) {
|
|
1062
|
-
locationToAdd = index;
|
|
1063
|
-
smallest = item.tiles.length;
|
|
1064
|
-
}
|
|
1065
|
-
});
|
|
1066
|
-
multiColumn[locationToAdd].tiles.push({
|
|
1067
|
-
id: elem.id,
|
|
1068
|
-
isCollapsed: false,
|
|
1069
|
-
});
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
/*istanbul ignore else */
|
|
1073
|
-
if (singleColumn) {
|
|
1074
|
-
newTiles.forEach(function (elem) {
|
|
1075
|
-
singleColumn.tiles.push({ id: elem.id, isCollapsed: false });
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
/*istanbul ignore else */
|
|
1080
|
-
if (singleColumn) {
|
|
1081
|
-
try {
|
|
1082
|
-
for (var _d = __values(singleColumn.tiles), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
1083
|
-
var tile = _e.value;
|
|
1084
|
-
this.getTileOrRemoveFromLayout(tile);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1088
|
-
finally {
|
|
1089
|
-
try {
|
|
1090
|
-
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
1091
|
-
}
|
|
1092
|
-
finally { if (e_13) throw e_13.error; }
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
/*istanbul ignore else */
|
|
1096
|
-
if (multiColumn) {
|
|
1097
|
-
for (var i = 0, n = multiColumn.length; i < n; i++) {
|
|
1098
|
-
try {
|
|
1099
|
-
for (var _f = (e_14 = void 0, __values(multiColumn[i].tiles)), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
1100
|
-
var tile = _g.value;
|
|
1101
|
-
this.getTileOrRemoveFromLayout(tile);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1105
|
-
finally {
|
|
1106
|
-
try {
|
|
1107
|
-
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
|
1108
|
-
}
|
|
1109
|
-
finally { if (e_14) throw e_14.error; }
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
return SkyTileDashboardService;
|
|
1115
|
-
}());
|
|
1116
|
-
SkyTileDashboardService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardService, deps: [{ token: i1__namespace.DragulaService }, { token: i2__namespace.SkyMediaQueryService }, { token: i2__namespace.SkyUIConfigService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1117
|
-
SkyTileDashboardService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardService });
|
|
1118
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardService, decorators: [{
|
|
1119
|
-
type: i0.Injectable
|
|
1120
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.DragulaService }, { type: i2__namespace.SkyMediaQueryService }, { type: i2__namespace.SkyUIConfigService }]; }, propDecorators: { dashboardInitialized: [{
|
|
1121
|
-
type: i0.Output
|
|
1122
|
-
}] } });
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* Provides a common look-and-feel for tab content.
|
|
1126
|
-
*/
|
|
1127
|
-
var SkyTileComponent = /** @class */ (function () {
|
|
1128
|
-
function SkyTileComponent(elementRef, changeDetector, dashboardService) {
|
|
1129
|
-
var _this = this;
|
|
1130
|
-
this.elementRef = elementRef;
|
|
1131
|
-
this.changeDetector = changeDetector;
|
|
1132
|
-
this.dashboardService = dashboardService;
|
|
1133
|
-
/**
|
|
1134
|
-
* Indicates whether to display a settings button in the tile header. To display the
|
|
1135
|
-
* button, you must also listen for the `settingsClick` event.
|
|
1136
|
-
* @default true
|
|
1137
|
-
*/
|
|
1138
|
-
this.showSettings = true;
|
|
1139
|
-
/**
|
|
1140
|
-
* Indicates whether to display a help button in the tile header. To display the
|
|
1141
|
-
* button, you must also listen for the `helpClick` event.
|
|
1142
|
-
* @default true
|
|
1143
|
-
*/
|
|
1144
|
-
this.showHelp = true;
|
|
1145
|
-
/**
|
|
1146
|
-
* Fires when users select the settings button in the tile header. The settings
|
|
1147
|
-
* button only appears when the `showSettings` property is set to `true`.
|
|
1148
|
-
*/
|
|
1149
|
-
this.settingsClick = new i0.EventEmitter();
|
|
1150
|
-
/**
|
|
1151
|
-
* Fires when the tile's collapsed state changes. Returns `true` when the tile
|
|
1152
|
-
* collapses and `false` when it expands.
|
|
1153
|
-
*/
|
|
1154
|
-
this.isCollapsedChange = new i0.EventEmitter();
|
|
1155
|
-
/**
|
|
1156
|
-
* Fires when users select the help button in the tile header. The help
|
|
1157
|
-
* button only appears when the `showHelp` property is set to `true`.
|
|
1158
|
-
*/
|
|
1159
|
-
this.helpClick = new i0.EventEmitter();
|
|
1160
|
-
this.isInDashboardColumn = false;
|
|
1161
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
1162
|
-
this._isCollapsed = false;
|
|
1163
|
-
this.isInDashboardColumn = !!dashboardService;
|
|
1164
|
-
if (this.dashboardService) {
|
|
1165
|
-
/**
|
|
1166
|
-
* This subscription ensures that if any values which come in from the dashboard service are
|
|
1167
|
-
* updated that the component will update if the tile's parent component utilizes OnPush
|
|
1168
|
-
* change detection.
|
|
1169
|
-
*/
|
|
1170
|
-
this.dashboardService.configChange
|
|
1171
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1172
|
-
.subscribe(function () {
|
|
1173
|
-
_this.changeDetector.markForCheck();
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
Object.defineProperty(SkyTileComponent.prototype, "isCollapsed", {
|
|
1178
|
-
get: function () {
|
|
1179
|
-
if (this.dashboardService) {
|
|
1180
|
-
var configCollapsedState = this.dashboardService.tileIsCollapsed(this);
|
|
1181
|
-
this._isCollapsed = configCollapsedState;
|
|
1182
|
-
}
|
|
1183
|
-
return this._isCollapsed;
|
|
1184
|
-
},
|
|
1185
|
-
/**
|
|
1186
|
-
* Indicates whether the tile is in a collapsed state.
|
|
1187
|
-
* @default false
|
|
1188
|
-
*/
|
|
1189
|
-
set: function (value) {
|
|
1190
|
-
if (this.dashboardService) {
|
|
1191
|
-
this.dashboardService.setTileCollapsed(this, value);
|
|
1192
|
-
}
|
|
1193
|
-
this._isCollapsed = value;
|
|
1194
|
-
this.isCollapsedChange.emit(value);
|
|
1195
|
-
},
|
|
1196
|
-
enumerable: false,
|
|
1197
|
-
configurable: true
|
|
1198
|
-
});
|
|
1199
|
-
SkyTileComponent.prototype.ngOnDestroy = function () {
|
|
1200
|
-
this.ngUnsubscribe.next();
|
|
1201
|
-
this.ngUnsubscribe.complete();
|
|
1202
|
-
};
|
|
1203
|
-
SkyTileComponent.prototype.settingsButtonClicked = function () {
|
|
1204
|
-
this.settingsClick.emit(undefined);
|
|
1205
|
-
};
|
|
1206
|
-
SkyTileComponent.prototype.helpButtonClicked = function () {
|
|
1207
|
-
this.helpClick.emit(undefined);
|
|
1208
|
-
};
|
|
1209
|
-
Object.defineProperty(SkyTileComponent.prototype, "hasSettings", {
|
|
1210
|
-
get: function () {
|
|
1211
|
-
return this.settingsClick.observers.length > 0 && this.showSettings;
|
|
1212
|
-
},
|
|
1213
|
-
enumerable: false,
|
|
1214
|
-
configurable: true
|
|
1215
|
-
});
|
|
1216
|
-
Object.defineProperty(SkyTileComponent.prototype, "hasHelp", {
|
|
1217
|
-
get: function () {
|
|
1218
|
-
return this.helpClick.observers.length > 0 && this.showHelp;
|
|
1219
|
-
},
|
|
1220
|
-
enumerable: false,
|
|
1221
|
-
configurable: true
|
|
1222
|
-
});
|
|
1223
|
-
SkyTileComponent.prototype.titleClick = function () {
|
|
1224
|
-
this.isCollapsed = !this.isCollapsed;
|
|
1225
|
-
};
|
|
1226
|
-
SkyTileComponent.prototype.chevronDirectionChange = function (direction) {
|
|
1227
|
-
this.isCollapsed = direction === 'down';
|
|
1228
|
-
};
|
|
1229
|
-
SkyTileComponent.prototype.moveTile = function (event) {
|
|
1230
|
-
/* istanbul ignore else */
|
|
1231
|
-
if (this.isInDashboardColumn) {
|
|
1232
|
-
var direction = event.key.toLowerCase().replace('arrow', '');
|
|
1233
|
-
/* istanbul ignore else */
|
|
1234
|
-
if (direction === 'up' ||
|
|
1235
|
-
direction === 'down' ||
|
|
1236
|
-
direction === 'left' ||
|
|
1237
|
-
direction === 'right') {
|
|
1238
|
-
this.dashboardService.moveTileOnKeyDown(this, direction, this.title
|
|
1239
|
-
? this.title.nativeElement.innerText
|
|
1240
|
-
: /* istanbul ignore next */
|
|
1241
|
-
undefined);
|
|
1242
|
-
this.focusHandle();
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
SkyTileComponent.prototype.focusHandle = function () {
|
|
1247
|
-
this.grabHandle.nativeElement.focus();
|
|
1248
|
-
};
|
|
1249
|
-
return SkyTileComponent;
|
|
1250
|
-
}());
|
|
1251
|
-
SkyTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: SkyTileDashboardService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1252
|
-
SkyTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileComponent, selector: "sky-tile", inputs: { showSettings: "showSettings", showHelp: "showHelp", tileName: "tileName", isCollapsed: "isCollapsed" }, outputs: { settingsClick: "settingsClick", isCollapsedChange: "isCollapsedChange", helpClick: "helpClick" }, viewQueries: [{ propertyName: "grabHandle", first: true, predicate: ["grabHandle"], descendants: true, read: i0.ElementRef }, { propertyName: "title", first: true, predicate: ["titleContainer"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<section\n class=\"sky-tile\"\n [ngClass]=\"{\n 'sky-tile-collapsed': isCollapsed\n }\"\n [skyThemeClass]=\"{\n 'sky-box sky-elevation-1-bordered sky-padding-even-xl': 'modern'\n }\"\n>\n <header class=\"sky-tile-header\">\n <div class=\"sky-tile-header-content\" (click)=\"titleClick()\">\n <div class=\"sky-tile-header-title\" #titleContainer>\n <ng-content select=\"sky-tile-title\"></ng-content>\n </div>\n <div\n class=\"sky-tile-summary\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern',\n 'sky-headline': 'default'\n }\"\n >\n <ng-content select=\"sky-tile-summary\"></ng-content>\n </div>\n </div>\n <div class=\"sky-tile-header-column-tools\">\n <div class=\"sky-tile-tools\">\n <ng-container *skyThemeIf=\"'default'\">\n <button\n *ngIf=\"hasHelp\"\n class=\"sky-btn sky-tile-tools-control sky-tile-help\"\n type=\"button\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_help' | skyLibResources: tileName)\n : ('skyux_tile_help_default' | skyLibResources)\n \"\n [skyThemeClass]=\"{\n 'sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"helpButtonClicked()\"\n >\n <sky-icon icon=\"question-circle\"></sky-icon>\n </button>\n </ng-container>\n <sky-chevron\n [ariaControls]=\"tileContent.id\"\n [ariaLabel]=\"\n tileName\n ? ('skyux_tile_expand' | skyLibResources: tileName)\n : ('skyux_tile_expand_default' | skyLibResources)\n \"\n [direction]=\"isCollapsed ? 'down' : 'up'\"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-margin-inline-default': 'modern'\n }\"\n (directionChange)=\"chevronDirectionChange($event)\"\n >\n </sky-chevron>\n <button\n *ngIf=\"hasSettings\"\n class=\"sky-btn sky-tile-settings\"\n type=\"button\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_settings' | skyLibResources: tileName)\n : ('skyux_tile_settings_default' | skyLibResources)\n \"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-btn-icon-borderless sky-margin-inline-default': 'modern'\n }\"\n (click)=\"settingsButtonClicked()\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"cog\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"cog-line\"\n iconType=\"skyux\"\n ></sky-icon>\n </button>\n <button\n *ngIf=\"isInDashboardColumn\"\n class=\"sky-btn sky-tile-grab-handle\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_move' | skyLibResources: tileName)\n : ('skyux_tile_move_default' | skyLibResources)\n \"\n [attr.aria-describedby]=\"\n dashboardService?.bagId + '-move-instructions'\n \"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"moveTile($event)\"\n #grabHandle\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"th\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"tile-drag\"\n iconType=\"skyux\"\n ></sky-icon>\n </button>\n </div>\n </div>\n </header>\n <div\n class=\"sky-tile-content\"\n role=\"region\"\n skyId\n [attr.aria-label]=\"tileName\"\n [@skyAnimationSlide]=\"isCollapsed ? 'up' : 'down'\"\n #tileContent=\"skyId\"\n >\n <ng-content select=\"sky-tile-content\"></ng-content>\n </div>\n</section>\n", styles: [".sky-tile{background-color:#fff;margin-bottom:20px}.sky-tile-header{border-color:#cdcfd2;border-style:solid solid none;border-width:4px 0 0;display:flex}.sky-tile-header-content{display:flex;flex:1;align-items:baseline;cursor:pointer}.sky-tile-header-title{display:inline-flex}.sky-tile-summary{color:#0974a1;opacity:0;padding-right:15px;transition:opacity .25s;max-height:30px;overflow:hidden}.sky-tile-collapsed .sky-tile-summary{opacity:1}.sky-tile-header-column-tools{display:flex;align-items:center;flex:0 0 auto}.sky-tile-tools{display:flex;padding-right:15px}.sky-tile-tools-control{color:#cdcfd2;cursor:pointer;border:0;width:24px;height:24px;padding:0;display:block;margin:0 0 0 9px}.sky-tile-tools-control:hover{color:#979ba2;transition:color .15s}.sky-tile-grab-handle{cursor:move;cursor:-moz-grab;font-size:15px}.sky-tile-content{border-color:#e2e3e4;border-image:none;border-style:solid solid none;border-width:1px 0}:host-context(.sky-theme-modern) .sky-tile-header,:host-context(.sky-theme-modern) .sky-tile-content{border:none}:host-context(.sky-theme-modern) .sky-tile-header-column-tools{align-items:flex-start}:host-context(.sky-theme-modern) .sky-tile-tools{padding:0}:host-context(.sky-theme-modern) .sky-tile-tools-control{font-size:18px;color:#686c73}:host-context(.sky-theme-modern) .sky-tile-grab-handle{font-size:16px}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep .sky-tile-content-section{border-bottom:1px dotted #c0c2c5}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep sky-tile-content-section:first-child .sky-tile-content-section{margin-top:15px}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep sky-tile-content-section:last-child .sky-tile-content-section{padding-bottom:0;border-bottom:none}:host-context(.sky-theme-modern) :host .sky-tile{border-radius:0}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-xs) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:0}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-tile{border-radius:6px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:6px}.sky-theme-modern .sky-tile-header,.sky-theme-modern .sky-tile-content{border:none}.sky-theme-modern .sky-tile-header-column-tools{align-items:flex-start}.sky-theme-modern .sky-tile-tools{padding:0}.sky-theme-modern .sky-tile-tools-control{font-size:18px;color:#686c73}.sky-theme-modern .sky-tile-grab-handle{font-size:16px}.sky-theme-modern .sky-tile-content ::ng-deep .sky-tile-content-section{border-bottom:1px dotted #c0c2c5}.sky-theme-modern .sky-tile-content ::ng-deep sky-tile-content-section:first-child .sky-tile-content-section{margin-top:15px}.sky-theme-modern .sky-tile-content ::ng-deep sky-tile-content-section:last-child .sky-tile-content-section{padding-bottom:0;border-bottom:none}.sky-theme-modern :host .sky-tile{border-radius:0}.sky-theme-modern :host-context(.sky-responsive-container-xs) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:0}@media (min-width: 768px){.sky-theme-modern :host .sky-tile{border-radius:6px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:6px}\n"], components: [{ type: i2__namespace$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i2__namespace$1.λ2, selector: "sky-chevron", inputs: ["ariaControls", "ariaLabel", "direction", "disabled"], outputs: ["directionChange"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i4__namespace.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.λ2, selector: "[skyId]", exportAs: ["skyId"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, animations: [animations.skyAnimationSlide] });
|
|
1253
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileComponent, decorators: [{
|
|
1254
|
-
type: i0.Component,
|
|
1255
|
-
args: [{
|
|
1256
|
-
selector: 'sky-tile',
|
|
1257
|
-
styles: [".sky-tile{background-color:#fff;margin-bottom:20px}.sky-tile-header{border-color:#cdcfd2;border-style:solid solid none;border-width:4px 0 0;display:flex}.sky-tile-header-content{display:flex;flex:1;align-items:baseline;cursor:pointer}.sky-tile-header-title{display:inline-flex}.sky-tile-summary{color:#0974a1;opacity:0;padding-right:15px;transition:opacity .25s;max-height:30px;overflow:hidden}.sky-tile-collapsed .sky-tile-summary{opacity:1}.sky-tile-header-column-tools{display:flex;align-items:center;flex:0 0 auto}.sky-tile-tools{display:flex;padding-right:15px}.sky-tile-tools-control{color:#cdcfd2;cursor:pointer;border:0;width:24px;height:24px;padding:0;display:block;margin:0 0 0 9px}.sky-tile-tools-control:hover{color:#979ba2;transition:color .15s}.sky-tile-grab-handle{cursor:move;cursor:-moz-grab;font-size:15px}.sky-tile-content{border-color:#e2e3e4;border-image:none;border-style:solid solid none;border-width:1px 0}:host-context(.sky-theme-modern) .sky-tile-header,:host-context(.sky-theme-modern) .sky-tile-content{border:none}:host-context(.sky-theme-modern) .sky-tile-header-column-tools{align-items:flex-start}:host-context(.sky-theme-modern) .sky-tile-tools{padding:0}:host-context(.sky-theme-modern) .sky-tile-tools-control{font-size:18px;color:#686c73}:host-context(.sky-theme-modern) .sky-tile-grab-handle{font-size:16px}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep .sky-tile-content-section{border-bottom:1px dotted #c0c2c5}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep sky-tile-content-section:first-child .sky-tile-content-section{margin-top:15px}:host-context(.sky-theme-modern) .sky-tile-content ::ng-deep sky-tile-content-section:last-child .sky-tile-content-section{padding-bottom:0;border-bottom:none}:host-context(.sky-theme-modern) :host .sky-tile{border-radius:0}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-xs) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:0}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-tile{border-radius:6px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:6px}.sky-theme-modern .sky-tile-header,.sky-theme-modern .sky-tile-content{border:none}.sky-theme-modern .sky-tile-header-column-tools{align-items:flex-start}.sky-theme-modern .sky-tile-tools{padding:0}.sky-theme-modern .sky-tile-tools-control{font-size:18px;color:#686c73}.sky-theme-modern .sky-tile-grab-handle{font-size:16px}.sky-theme-modern .sky-tile-content ::ng-deep .sky-tile-content-section{border-bottom:1px dotted #c0c2c5}.sky-theme-modern .sky-tile-content ::ng-deep sky-tile-content-section:first-child .sky-tile-content-section{margin-top:15px}.sky-theme-modern .sky-tile-content ::ng-deep sky-tile-content-section:last-child .sky-tile-content-section{padding-bottom:0;border-bottom:none}.sky-theme-modern :host .sky-tile{border-radius:0}.sky-theme-modern :host-context(.sky-responsive-container-xs) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:0}@media (min-width: 768px){.sky-theme-modern :host .sky-tile{border-radius:6px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile{border-radius:6px}\n"],
|
|
1258
|
-
template: "<section\n class=\"sky-tile\"\n [ngClass]=\"{\n 'sky-tile-collapsed': isCollapsed\n }\"\n [skyThemeClass]=\"{\n 'sky-box sky-elevation-1-bordered sky-padding-even-xl': 'modern'\n }\"\n>\n <header class=\"sky-tile-header\">\n <div class=\"sky-tile-header-content\" (click)=\"titleClick()\">\n <div class=\"sky-tile-header-title\" #titleContainer>\n <ng-content select=\"sky-tile-title\"></ng-content>\n </div>\n <div\n class=\"sky-tile-summary\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern',\n 'sky-headline': 'default'\n }\"\n >\n <ng-content select=\"sky-tile-summary\"></ng-content>\n </div>\n </div>\n <div class=\"sky-tile-header-column-tools\">\n <div class=\"sky-tile-tools\">\n <ng-container *skyThemeIf=\"'default'\">\n <button\n *ngIf=\"hasHelp\"\n class=\"sky-btn sky-tile-tools-control sky-tile-help\"\n type=\"button\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_help' | skyLibResources: tileName)\n : ('skyux_tile_help_default' | skyLibResources)\n \"\n [skyThemeClass]=\"{\n 'sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"helpButtonClicked()\"\n >\n <sky-icon icon=\"question-circle\"></sky-icon>\n </button>\n </ng-container>\n <sky-chevron\n [ariaControls]=\"tileContent.id\"\n [ariaLabel]=\"\n tileName\n ? ('skyux_tile_expand' | skyLibResources: tileName)\n : ('skyux_tile_expand_default' | skyLibResources)\n \"\n [direction]=\"isCollapsed ? 'down' : 'up'\"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-margin-inline-default': 'modern'\n }\"\n (directionChange)=\"chevronDirectionChange($event)\"\n >\n </sky-chevron>\n <button\n *ngIf=\"hasSettings\"\n class=\"sky-btn sky-tile-settings\"\n type=\"button\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_settings' | skyLibResources: tileName)\n : ('skyux_tile_settings_default' | skyLibResources)\n \"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-btn-icon-borderless sky-margin-inline-default': 'modern'\n }\"\n (click)=\"settingsButtonClicked()\"\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"cog\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"cog-line\"\n iconType=\"skyux\"\n ></sky-icon>\n </button>\n <button\n *ngIf=\"isInDashboardColumn\"\n class=\"sky-btn sky-tile-grab-handle\"\n [attr.aria-label]=\"\n tileName\n ? ('skyux_tile_move' | skyLibResources: tileName)\n : ('skyux_tile_move_default' | skyLibResources)\n \"\n [attr.aria-describedby]=\"\n dashboardService?.bagId + '-move-instructions'\n \"\n [skyThemeClass]=\"{\n 'sky-tile-tools-control': 'default',\n 'sky-btn-icon-borderless': 'modern'\n }\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"moveTile($event)\"\n #grabHandle\n >\n <sky-icon *skyThemeIf=\"'default'\" icon=\"th\"></sky-icon>\n <sky-icon\n *skyThemeIf=\"'modern'\"\n icon=\"tile-drag\"\n iconType=\"skyux\"\n ></sky-icon>\n </button>\n </div>\n </div>\n </header>\n <div\n class=\"sky-tile-content\"\n role=\"region\"\n skyId\n [attr.aria-label]=\"tileName\"\n [@skyAnimationSlide]=\"isCollapsed ? 'up' : 'down'\"\n #tileContent=\"skyId\"\n >\n <ng-content select=\"sky-tile-content\"></ng-content>\n </div>\n</section>\n",
|
|
1259
|
-
animations: [animations.skyAnimationSlide],
|
|
1260
|
-
}]
|
|
1261
|
-
}], ctorParameters: function () {
|
|
1262
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: SkyTileDashboardService, decorators: [{
|
|
1263
|
-
type: i0.Optional
|
|
1264
|
-
}] }];
|
|
1265
|
-
}, propDecorators: { showSettings: [{
|
|
1266
|
-
type: i0.Input
|
|
1267
|
-
}], showHelp: [{
|
|
1268
|
-
type: i0.Input
|
|
1269
|
-
}], tileName: [{
|
|
1270
|
-
type: i0.Input
|
|
1271
|
-
}], settingsClick: [{
|
|
1272
|
-
type: i0.Output
|
|
1273
|
-
}], isCollapsedChange: [{
|
|
1274
|
-
type: i0.Output
|
|
1275
|
-
}], helpClick: [{
|
|
1276
|
-
type: i0.Output
|
|
1277
|
-
}], isCollapsed: [{
|
|
1278
|
-
type: i0.Input
|
|
1279
|
-
}], grabHandle: [{
|
|
1280
|
-
type: i0.ViewChild,
|
|
1281
|
-
args: ['grabHandle', {
|
|
1282
|
-
read: i0.ElementRef,
|
|
1283
|
-
static: false,
|
|
1284
|
-
}]
|
|
1285
|
-
}], title: [{
|
|
1286
|
-
type: i0.ViewChild,
|
|
1287
|
-
args: ['titleContainer', {
|
|
1288
|
-
read: i0.ElementRef,
|
|
1289
|
-
static: false,
|
|
1290
|
-
}]
|
|
1291
|
-
}] } });
|
|
1292
|
-
|
|
1293
|
-
var SkyTileModule = /** @class */ (function () {
|
|
1294
|
-
function SkyTileModule() {
|
|
1295
|
-
}
|
|
1296
|
-
return SkyTileModule;
|
|
1297
|
-
}());
|
|
1298
|
-
SkyTileModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1299
|
-
SkyTileModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileModule, declarations: [SkyTileComponent,
|
|
1300
|
-
SkyTileSummaryComponent,
|
|
1301
|
-
SkyTileTitleComponent], imports: [i3$1.CommonModule,
|
|
1302
|
-
i2$1.SkyChevronModule,
|
|
1303
|
-
i2.SkyIdModule,
|
|
1304
|
-
i3.SkyI18nModule,
|
|
1305
|
-
i2$1.SkyIconModule,
|
|
1306
|
-
i4.SkyThemeModule,
|
|
1307
|
-
SkyTilesResourcesModule], exports: [SkyTileComponent, SkyTileSummaryComponent, SkyTileTitleComponent] });
|
|
1308
|
-
SkyTileModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileModule, imports: [[
|
|
1309
|
-
i3$1.CommonModule,
|
|
1310
|
-
i2$1.SkyChevronModule,
|
|
1311
|
-
i2.SkyIdModule,
|
|
1312
|
-
i3.SkyI18nModule,
|
|
1313
|
-
i2$1.SkyIconModule,
|
|
1314
|
-
i4.SkyThemeModule,
|
|
1315
|
-
SkyTilesResourcesModule,
|
|
1316
|
-
]] });
|
|
1317
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileModule, decorators: [{
|
|
1318
|
-
type: i0.NgModule,
|
|
1319
|
-
args: [{
|
|
1320
|
-
declarations: [
|
|
1321
|
-
SkyTileComponent,
|
|
1322
|
-
SkyTileSummaryComponent,
|
|
1323
|
-
SkyTileTitleComponent,
|
|
1324
|
-
],
|
|
1325
|
-
imports: [
|
|
1326
|
-
i3$1.CommonModule,
|
|
1327
|
-
i2$1.SkyChevronModule,
|
|
1328
|
-
i2.SkyIdModule,
|
|
1329
|
-
i3.SkyI18nModule,
|
|
1330
|
-
i2$1.SkyIconModule,
|
|
1331
|
-
i4.SkyThemeModule,
|
|
1332
|
-
SkyTilesResourcesModule,
|
|
1333
|
-
],
|
|
1334
|
-
exports: [SkyTileComponent, SkyTileSummaryComponent, SkyTileTitleComponent],
|
|
1335
|
-
}]
|
|
1336
|
-
}] });
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* Specifies content to display inside a padded section of a SkyTileContentComponent.
|
|
1340
|
-
*/
|
|
1341
|
-
var SkyTileContentSectionComponent = /** @class */ (function () {
|
|
1342
|
-
function SkyTileContentSectionComponent() {
|
|
1343
|
-
}
|
|
1344
|
-
return SkyTileContentSectionComponent;
|
|
1345
|
-
}());
|
|
1346
|
-
SkyTileContentSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentSectionComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1347
|
-
SkyTileContentSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileContentSectionComponent, selector: "sky-tile-content-section", ngImport: i0__namespace, template: "<div\n class=\"sky-tile-content-section\"\n [skyThemeClass]=\"{\n 'sky-padding-even-large': 'default'\n }\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [":host-context(.sky-theme-modern) .sky-tile-content-section{padding:15px 0}.sky-theme-modern .sky-tile-content-section{padding:15px 0}\n"], directives: [{ type: i4__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }] });
|
|
1348
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentSectionComponent, decorators: [{
|
|
1349
|
-
type: i0.Component,
|
|
1350
|
-
args: [{
|
|
1351
|
-
selector: 'sky-tile-content-section',
|
|
1352
|
-
styles: [":host-context(.sky-theme-modern) .sky-tile-content-section{padding:15px 0}.sky-theme-modern .sky-tile-content-section{padding:15px 0}\n"],
|
|
1353
|
-
template: "<div\n class=\"sky-tile-content-section\"\n [skyThemeClass]=\"{\n 'sky-padding-even-large': 'default'\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
1354
|
-
}]
|
|
1355
|
-
}] });
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* Specifies content to display in the tile's body.
|
|
1359
|
-
*/
|
|
1360
|
-
var SkyTileContentComponent = /** @class */ (function () {
|
|
1361
|
-
function SkyTileContentComponent() {
|
|
1362
|
-
}
|
|
1363
|
-
return SkyTileContentComponent;
|
|
1364
|
-
}());
|
|
1365
|
-
SkyTileContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1366
|
-
SkyTileContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileContentComponent, selector: "sky-tile-content", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [":host ::ng-deep sky-tile-content-section:not(:last-child) .sky-tile-content-section{border-bottom:1px solid #e2e3e4}\n"] });
|
|
1367
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentComponent, decorators: [{
|
|
1368
|
-
type: i0.Component,
|
|
1369
|
-
args: [{
|
|
1370
|
-
selector: 'sky-tile-content',
|
|
1371
|
-
styles: [":host ::ng-deep sky-tile-content-section:not(:last-child) .sky-tile-content-section{border-bottom:1px solid #e2e3e4}\n"],
|
|
1372
|
-
template: "<ng-content></ng-content>\n",
|
|
1373
|
-
}]
|
|
1374
|
-
}] });
|
|
1375
|
-
|
|
1376
|
-
var SkyTileContentModule = /** @class */ (function () {
|
|
1377
|
-
function SkyTileContentModule() {
|
|
1378
|
-
}
|
|
1379
|
-
return SkyTileContentModule;
|
|
1380
|
-
}());
|
|
1381
|
-
SkyTileContentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1382
|
-
SkyTileContentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentModule, declarations: [SkyTileContentComponent, SkyTileContentSectionComponent], imports: [i3$1.CommonModule, i4.SkyThemeModule], exports: [SkyTileContentComponent, SkyTileContentSectionComponent] });
|
|
1383
|
-
SkyTileContentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentModule, imports: [[i3$1.CommonModule, i4.SkyThemeModule]] });
|
|
1384
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileContentModule, decorators: [{
|
|
1385
|
-
type: i0.NgModule,
|
|
1386
|
-
args: [{
|
|
1387
|
-
declarations: [SkyTileContentComponent, SkyTileContentSectionComponent],
|
|
1388
|
-
imports: [i3$1.CommonModule, i4.SkyThemeModule],
|
|
1389
|
-
exports: [SkyTileContentComponent, SkyTileContentSectionComponent],
|
|
1390
|
-
}]
|
|
1391
|
-
}] });
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* Specifies the type of message to send to the tile dashboard component.
|
|
1395
|
-
*/
|
|
1396
|
-
exports.SkyTileDashboardMessageType = void 0;
|
|
1397
|
-
(function (SkyTileDashboardMessageType) {
|
|
1398
|
-
/**
|
|
1399
|
-
* Expands all tiles within the tile dashboard.
|
|
1400
|
-
*/
|
|
1401
|
-
SkyTileDashboardMessageType[SkyTileDashboardMessageType["ExpandAll"] = 0] = "ExpandAll";
|
|
1402
|
-
/**
|
|
1403
|
-
* Collapses all tiles within the tile dashboard.
|
|
1404
|
-
*/
|
|
1405
|
-
SkyTileDashboardMessageType[SkyTileDashboardMessageType["CollapseAll"] = 1] = "CollapseAll";
|
|
1406
|
-
})(exports.SkyTileDashboardMessageType || (exports.SkyTileDashboardMessageType = {}));
|
|
1407
|
-
|
|
1408
|
-
var columnIdIndex = 0;
|
|
1409
|
-
/**
|
|
1410
|
-
* @internal
|
|
1411
|
-
*/
|
|
1412
|
-
var SkyTileDashboardColumnComponent = /** @class */ (function () {
|
|
1413
|
-
function SkyTileDashboardColumnComponent(resolver, injector, dashboardService) {
|
|
1414
|
-
this.resolver = resolver;
|
|
1415
|
-
this.injector = injector;
|
|
1416
|
-
this.dashboardService = dashboardService;
|
|
1417
|
-
columnIdIndex++;
|
|
1418
|
-
this.columnId = 'tile-dashboard-column-' + columnIdIndex;
|
|
1419
|
-
this.bagId = this.dashboardService.bagId;
|
|
1420
|
-
}
|
|
1421
|
-
return SkyTileDashboardColumnComponent;
|
|
1422
|
-
}());
|
|
1423
|
-
SkyTileDashboardColumnComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.Injector }, { token: SkyTileDashboardService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1424
|
-
SkyTileDashboardColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileDashboardColumnComponent, selector: "sky-tile-dashboard-column", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: i0.ViewContainerRef }], ngImport: i0__namespace, template: "<div class=\"sky-tile-dashboard-column\" [dragula]=\"bagId\">\n <div #content></div>\n</div>\n", styles: [":host{display:flex;flex-grow:1;overflow:hidden}:host{padding:0}:host-context(.sky-responsive-container-xs),:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){padding:0}@media (min-width: 768px){:host{padding:0 10px}}:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){padding:0 10px}.sky-tile-dashboard-column{min-height:100px;width:100%}@media (min-width: 768px){:host-context(.sky-theme-modern) :host{padding:0 15px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm),:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md),:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg){padding:0 15px}@media (min-width: 768px){.sky-theme-modern :host{padding:0 15px}}.sky-theme-modern :host-context(.sky-responsive-container-sm),.sky-theme-modern :host-context(.sky-responsive-container-md),.sky-theme-modern :host-context(.sky-responsive-container-lg){padding:0 15px}\n"], directives: [{ type: i1__namespace.DragulaDirective, selector: "[dragula]", inputs: ["dragula", "dragulaModel", "dragulaOptions"] }] });
|
|
1425
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnComponent, decorators: [{
|
|
1426
|
-
type: i0.Component,
|
|
1427
|
-
args: [{
|
|
1428
|
-
selector: 'sky-tile-dashboard-column',
|
|
1429
|
-
styles: [":host{display:flex;flex-grow:1;overflow:hidden}:host{padding:0}:host-context(.sky-responsive-container-xs),:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){padding:0}@media (min-width: 768px){:host{padding:0 10px}}:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){padding:0 10px}.sky-tile-dashboard-column{min-height:100px;width:100%}@media (min-width: 768px){:host-context(.sky-theme-modern) :host{padding:0 15px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm),:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md),:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg){padding:0 15px}@media (min-width: 768px){.sky-theme-modern :host{padding:0 15px}}.sky-theme-modern :host-context(.sky-responsive-container-sm),.sky-theme-modern :host-context(.sky-responsive-container-md),.sky-theme-modern :host-context(.sky-responsive-container-lg){padding:0 15px}\n"],
|
|
1430
|
-
template: "<div class=\"sky-tile-dashboard-column\" [dragula]=\"bagId\">\n <div #content></div>\n</div>\n",
|
|
1431
|
-
}]
|
|
1432
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: SkyTileDashboardService }]; }, propDecorators: { content: [{
|
|
1433
|
-
type: i0.ViewChild,
|
|
1434
|
-
args: ['content', {
|
|
1435
|
-
read: i0.ViewContainerRef,
|
|
1436
|
-
static: false,
|
|
1437
|
-
}]
|
|
1438
|
-
}] } });
|
|
1439
|
-
|
|
1440
|
-
var SkyTileDashboardColumnModule = /** @class */ (function () {
|
|
1441
|
-
function SkyTileDashboardColumnModule() {
|
|
1442
|
-
}
|
|
1443
|
-
return SkyTileDashboardColumnModule;
|
|
1444
|
-
}());
|
|
1445
|
-
SkyTileDashboardColumnModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1446
|
-
SkyTileDashboardColumnModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnModule, declarations: [SkyTileDashboardColumnComponent], imports: [i3$1.CommonModule, i1.DragulaModule], exports: [SkyTileDashboardColumnComponent] });
|
|
1447
|
-
SkyTileDashboardColumnModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnModule, imports: [[i3$1.CommonModule, i1.DragulaModule]] });
|
|
1448
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardColumnModule, decorators: [{
|
|
1449
|
-
type: i0.NgModule,
|
|
1450
|
-
args: [{
|
|
1451
|
-
declarations: [SkyTileDashboardColumnComponent],
|
|
1452
|
-
imports: [i3$1.CommonModule, i1.DragulaModule],
|
|
1453
|
-
exports: [SkyTileDashboardColumnComponent],
|
|
1454
|
-
}]
|
|
1455
|
-
}] });
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* Specifies a container to group multiple tiles.
|
|
1459
|
-
*/
|
|
1460
|
-
var SkyTileDashboardComponent = /** @class */ (function () {
|
|
1461
|
-
function SkyTileDashboardComponent(dashboardService, mediaQuery, resourcesService) {
|
|
1462
|
-
var _this = this;
|
|
1463
|
-
this.dashboardService = dashboardService;
|
|
1464
|
-
this.mediaQuery = mediaQuery;
|
|
1465
|
-
this.resourcesService = resourcesService;
|
|
1466
|
-
/**
|
|
1467
|
-
* Provides an observable to send commands to the tile dashboard. The commands should respect the
|
|
1468
|
-
* `SkyTileDashboardMessage` type.
|
|
1469
|
-
*/
|
|
1470
|
-
this.messageStream = new rxjs.Subject();
|
|
1471
|
-
/**
|
|
1472
|
-
* Fires when the tile dashboard changes state and emits a SkyTileDashboardConfig
|
|
1473
|
-
* object. This occurs when tiles collapse or expand and when users drag and drop
|
|
1474
|
-
* tiles to rearrange them.
|
|
1475
|
-
*/
|
|
1476
|
-
this.configChange = new i0.EventEmitter();
|
|
1477
|
-
this.moveInstructionsId = this.dashboardService.bagId + '-move-instructions';
|
|
1478
|
-
this.configSet = false;
|
|
1479
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
1480
|
-
this.viewReady = false;
|
|
1481
|
-
this.dashboardService.configChange.subscribe(function (config) {
|
|
1482
|
-
_this.configChange.emit(config);
|
|
1483
|
-
// Update aria live region with tile drag info
|
|
1484
|
-
if (config.movedTile && _this.resourcesService) {
|
|
1485
|
-
var messageObservable = void 0;
|
|
1486
|
-
if (_this.mediaQuery.current === i2.SkyMediaBreakpoints.xs ||
|
|
1487
|
-
_this.mediaQuery.current === i2.SkyMediaBreakpoints.sm) {
|
|
1488
|
-
messageObservable = _this.resourcesService.getString('skyux_tile_moved_assistive_text', config.movedTile.tileDescription, '1', '1', config.movedTile.position.toString(), config.layout.singleColumn.tiles.length.toString());
|
|
1489
|
-
}
|
|
1490
|
-
else {
|
|
1491
|
-
messageObservable = _this.resourcesService.getString('skyux_tile_moved_assistive_text', config.movedTile.tileDescription, config.movedTile.column.toString(), config.layout.multiColumn.length.toString(), config.movedTile.position.toString(), config.layout.multiColumn[config.movedTile.column - 1].tiles.length.toString());
|
|
1492
|
-
}
|
|
1493
|
-
messageObservable.pipe(operators.take(1)).subscribe(function (message) {
|
|
1494
|
-
_this.tileMovedReport = message;
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
Object.defineProperty(SkyTileDashboardComponent.prototype, "config", {
|
|
1500
|
-
get: function () {
|
|
1501
|
-
return this._config;
|
|
1502
|
-
},
|
|
1503
|
-
/**
|
|
1504
|
-
* Populates the tile dashboard based on the `SkyTileDashboardConfig` object.
|
|
1505
|
-
* @required
|
|
1506
|
-
*/
|
|
1507
|
-
set: function (value) {
|
|
1508
|
-
if (value && !this.configSet) {
|
|
1509
|
-
this._config = value;
|
|
1510
|
-
this.configSet = true;
|
|
1511
|
-
this.checkReady();
|
|
1512
|
-
}
|
|
1513
|
-
},
|
|
1514
|
-
enumerable: false,
|
|
1515
|
-
configurable: true
|
|
1516
|
-
});
|
|
1517
|
-
SkyTileDashboardComponent.prototype.ngAfterViewInit = function () {
|
|
1518
|
-
var _this = this;
|
|
1519
|
-
this.messageStream
|
|
1520
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1521
|
-
.subscribe(function (message) {
|
|
1522
|
-
_this.handleIncomingMessages(message);
|
|
1523
|
-
});
|
|
1524
|
-
this.viewReady = true;
|
|
1525
|
-
this.checkReady();
|
|
1526
|
-
};
|
|
1527
|
-
SkyTileDashboardComponent.prototype.ngOnDestroy = function () {
|
|
1528
|
-
this.ngUnsubscribe.next();
|
|
1529
|
-
this.ngUnsubscribe.complete();
|
|
1530
|
-
this.dashboardService.destroy();
|
|
1531
|
-
};
|
|
1532
|
-
SkyTileDashboardComponent.prototype.checkReady = function () {
|
|
1533
|
-
var _this = this;
|
|
1534
|
-
if (this.viewReady && this.config) {
|
|
1535
|
-
setTimeout(function () {
|
|
1536
|
-
_this.dashboardService.init(_this.config, _this.columns, _this.singleColumn, _this.settingsKey);
|
|
1537
|
-
}, 0);
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
|
-
SkyTileDashboardComponent.prototype.handleIncomingMessages = function (message) {
|
|
1541
|
-
/* tslint:disable-next-line:switch-default */
|
|
1542
|
-
switch (message.type) {
|
|
1543
|
-
case exports.SkyTileDashboardMessageType.ExpandAll:
|
|
1544
|
-
this.dashboardService.setAllTilesCollapsed(false);
|
|
1545
|
-
break;
|
|
1546
|
-
case exports.SkyTileDashboardMessageType.CollapseAll:
|
|
1547
|
-
this.dashboardService.setAllTilesCollapsed(true);
|
|
1548
|
-
break;
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
return SkyTileDashboardComponent;
|
|
1552
|
-
}());
|
|
1553
|
-
SkyTileDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardComponent, deps: [{ token: SkyTileDashboardService }, { token: i2__namespace.SkyMediaQueryService }, { token: i3__namespace$1.SkyLibResourcesService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1554
|
-
SkyTileDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTileDashboardComponent, selector: "sky-tile-dashboard", inputs: { config: "config", messageStream: "messageStream", settingsKey: "settingsKey" }, outputs: { configChange: "configChange" }, providers: [SkyTileDashboardService], viewQueries: [{ propertyName: "singleColumn", first: true, predicate: ["singleColumn"], descendants: true, read: SkyTileDashboardColumnComponent }, { propertyName: "columns", predicate: SkyTileDashboardColumnComponent, descendants: true }], ngImport: i0__namespace, template: "<span aria-live=\"assertive\" class=\"sky-assistive-text\">\n {{ tileMovedReport }}\n</span>\n<sky-tile-dashboard-column\n *ngFor=\"let column of config?.layout?.multiColumn\"\n class=\"sky-tile-dashboard-layout-multi\"\n [ngStyle]=\"{\n 'flex-basis': 100 / config?.layout?.multiColumn.length + '%'\n }\"\n>\n</sky-tile-dashboard-column>\n<sky-tile-dashboard-column\n class=\"sky-tile-dashboard-layout-single\"\n #singleColumn\n>\n</sky-tile-dashboard-column>\n<span class=\"sky-screen-reader-only\" [id]=\"moveInstructionsId\">{{\n 'skyux_tile_move_instructions' | skyLibResources\n}}</span>\n<ng-content></ng-content>\n", styles: [":host{display:block;padding:0}:host .sky-tile-dashboard-layout-multi{display:none}:host .sky-tile-dashboard-layout-single{display:block}:host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:0}:host-context(.sky-responsive-container-xs),:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){display:block;padding:0}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi{display:none}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single{display:block}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:0}@media (min-width: 768px){:host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:20px}:host :host-context(.sky-theme-default){padding-top:20px}}:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:20px}:host-context(.sky-responsive-container-sm) :host-context(.sky-theme-default),:host-context(.sky-responsive-container-md) :host-context(.sky-theme-default),:host-context(.sky-responsive-container-lg) :host-context(.sky-theme-default){padding-top:20px}@media (min-width: 992px){:host{display:flex;padding:0 10px}:host .sky-tile-dashboard-layout-multi{display:block}:host .sky-tile-dashboard-layout-single{display:none}}:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){display:flex;padding:0 10px}:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi{display:block}:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single{display:none}@media screen{.sky-assistive-text{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}}:host-context(.sky-theme-default){background-color:#eeeeef}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}@media (min-width: 768px){.sky-theme-modern :host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}\n"], components: [{ type: SkyTileDashboardColumnComponent, selector: "sky-tile-dashboard-column" }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe } });
|
|
1555
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardComponent, decorators: [{
|
|
1556
|
-
type: i0.Component,
|
|
1557
|
-
args: [{
|
|
1558
|
-
selector: 'sky-tile-dashboard',
|
|
1559
|
-
styles: [":host{display:block;padding:0}:host .sky-tile-dashboard-layout-multi{display:none}:host .sky-tile-dashboard-layout-single{display:block}:host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:0}:host-context(.sky-responsive-container-xs),:host-context(.sky-responsive-container-sm),:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){display:block;padding:0}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi{display:none}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single{display:block}:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-xs) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:0}@media (min-width: 768px){:host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:20px}:host :host-context(.sky-theme-default){padding-top:20px}}:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:20px}:host-context(.sky-responsive-container-sm) :host-context(.sky-theme-default),:host-context(.sky-responsive-container-md) :host-context(.sky-theme-default),:host-context(.sky-responsive-container-lg) :host-context(.sky-theme-default){padding-top:20px}@media (min-width: 992px){:host{display:flex;padding:0 10px}:host .sky-tile-dashboard-layout-multi{display:block}:host .sky-tile-dashboard-layout-single{display:none}}:host-context(.sky-responsive-container-md),:host-context(.sky-responsive-container-lg){display:flex;padding:0 10px}:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi{display:block}:host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single,:host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single{display:none}@media screen{.sky-assistive-text{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}}:host-context(.sky-theme-default){background-color:#eeeeef}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}@media (min-width: 768px){.sky-theme-modern :host .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-single ::ng-deep .sky-tile,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-tile-dashboard-layout-multi ::ng-deep .sky-tile{margin-bottom:30px}\n"],
|
|
1560
|
-
template: "<span aria-live=\"assertive\" class=\"sky-assistive-text\">\n {{ tileMovedReport }}\n</span>\n<sky-tile-dashboard-column\n *ngFor=\"let column of config?.layout?.multiColumn\"\n class=\"sky-tile-dashboard-layout-multi\"\n [ngStyle]=\"{\n 'flex-basis': 100 / config?.layout?.multiColumn.length + '%'\n }\"\n>\n</sky-tile-dashboard-column>\n<sky-tile-dashboard-column\n class=\"sky-tile-dashboard-layout-single\"\n #singleColumn\n>\n</sky-tile-dashboard-column>\n<span class=\"sky-screen-reader-only\" [id]=\"moveInstructionsId\">{{\n 'skyux_tile_move_instructions' | skyLibResources\n}}</span>\n<ng-content></ng-content>\n",
|
|
1561
|
-
providers: [SkyTileDashboardService],
|
|
1562
|
-
}]
|
|
1563
|
-
}], ctorParameters: function () {
|
|
1564
|
-
return [{ type: SkyTileDashboardService }, { type: i2__namespace.SkyMediaQueryService }, { type: i3__namespace$1.SkyLibResourcesService, decorators: [{
|
|
1565
|
-
type: i0.Optional
|
|
1566
|
-
}] }];
|
|
1567
|
-
}, propDecorators: { config: [{
|
|
1568
|
-
type: i0.Input
|
|
1569
|
-
}], messageStream: [{
|
|
1570
|
-
type: i0.Input
|
|
1571
|
-
}], settingsKey: [{
|
|
1572
|
-
type: i0.Input
|
|
1573
|
-
}], configChange: [{
|
|
1574
|
-
type: i0.Output
|
|
1575
|
-
}], columns: [{
|
|
1576
|
-
type: i0.ViewChildren,
|
|
1577
|
-
args: [SkyTileDashboardColumnComponent]
|
|
1578
|
-
}], singleColumn: [{
|
|
1579
|
-
type: i0.ViewChild,
|
|
1580
|
-
args: ['singleColumn', {
|
|
1581
|
-
read: SkyTileDashboardColumnComponent,
|
|
1582
|
-
static: false,
|
|
1583
|
-
}]
|
|
1584
|
-
}] } });
|
|
1585
|
-
|
|
1586
|
-
var SkyTileDashboardModule = /** @class */ (function () {
|
|
1587
|
-
function SkyTileDashboardModule() {
|
|
1588
|
-
}
|
|
1589
|
-
return SkyTileDashboardModule;
|
|
1590
|
-
}());
|
|
1591
|
-
SkyTileDashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1592
|
-
SkyTileDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardModule, declarations: [SkyTileDashboardComponent], imports: [i3$1.CommonModule,
|
|
1593
|
-
SkyTileDashboardColumnModule,
|
|
1594
|
-
SkyTilesResourcesModule], exports: [SkyTileDashboardComponent] });
|
|
1595
|
-
SkyTileDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardModule, providers: [i1.DragulaService], imports: [[
|
|
1596
|
-
i3$1.CommonModule,
|
|
1597
|
-
SkyTileDashboardColumnModule,
|
|
1598
|
-
SkyTilesResourcesModule,
|
|
1599
|
-
]] });
|
|
1600
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTileDashboardModule, decorators: [{
|
|
1601
|
-
type: i0.NgModule,
|
|
1602
|
-
args: [{
|
|
1603
|
-
declarations: [SkyTileDashboardComponent],
|
|
1604
|
-
providers: [i1.DragulaService],
|
|
1605
|
-
imports: [
|
|
1606
|
-
i3$1.CommonModule,
|
|
1607
|
-
SkyTileDashboardColumnModule,
|
|
1608
|
-
SkyTilesResourcesModule,
|
|
1609
|
-
],
|
|
1610
|
-
exports: [SkyTileDashboardComponent],
|
|
1611
|
-
}]
|
|
1612
|
-
}] });
|
|
1613
|
-
|
|
1614
|
-
var SkyTilesModule = /** @class */ (function () {
|
|
1615
|
-
function SkyTilesModule() {
|
|
1616
|
-
}
|
|
1617
|
-
return SkyTilesModule;
|
|
1618
|
-
}());
|
|
1619
|
-
SkyTilesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1620
|
-
SkyTilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesModule, imports: [i3$1.CommonModule], exports: [SkyTileContentModule,
|
|
1621
|
-
SkyTileModule,
|
|
1622
|
-
SkyTileDashboardColumnModule,
|
|
1623
|
-
SkyTileDashboardModule] });
|
|
1624
|
-
SkyTilesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesModule, imports: [[i3$1.CommonModule], SkyTileContentModule,
|
|
1625
|
-
SkyTileModule,
|
|
1626
|
-
SkyTileDashboardColumnModule,
|
|
1627
|
-
SkyTileDashboardModule] });
|
|
1628
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTilesModule, decorators: [{
|
|
1629
|
-
type: i0.NgModule,
|
|
1630
|
-
args: [{
|
|
1631
|
-
imports: [i3$1.CommonModule],
|
|
1632
|
-
exports: [
|
|
1633
|
-
SkyTileContentModule,
|
|
1634
|
-
SkyTileModule,
|
|
1635
|
-
SkyTileDashboardColumnModule,
|
|
1636
|
-
SkyTileDashboardModule,
|
|
1637
|
-
],
|
|
1638
|
-
}]
|
|
1639
|
-
}] });
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* Generated bundle index. Do not edit.
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
|
-
exports.SkyTileContentModule = SkyTileContentModule;
|
|
1646
|
-
exports.SkyTileDashboardColumnModule = SkyTileDashboardColumnModule;
|
|
1647
|
-
exports.SkyTileDashboardModule = SkyTileDashboardModule;
|
|
1648
|
-
exports.SkyTileDashboardService = SkyTileDashboardService;
|
|
1649
|
-
exports.SkyTileModule = SkyTileModule;
|
|
1650
|
-
exports.SkyTilesModule = SkyTilesModule;
|
|
1651
|
-
exports["λ1"] = SkyTileComponent;
|
|
1652
|
-
exports["λ2"] = SkyTileSummaryComponent;
|
|
1653
|
-
exports["λ3"] = SkyTileTitleComponent;
|
|
1654
|
-
exports["λ4"] = SkyTileContentSectionComponent;
|
|
1655
|
-
exports["λ5"] = SkyTileContentComponent;
|
|
1656
|
-
exports["λ6"] = SkyTileDashboardColumnComponent;
|
|
1657
|
-
exports["λ7"] = SkyTileDashboardComponent;
|
|
1658
|
-
|
|
1659
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1660
|
-
|
|
1661
|
-
}));
|
|
1662
|
-
//# sourceMappingURL=skyux-tiles.umd.js.map
|