@mediafly/js-ui 47.5.0 → 47.6.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/decorators/index.js.map +1 -1
- package/lib/page-thumbnail/index.d.ts +1 -9
- package/lib/page-thumbnail/index.js +1 -0
- package/lib/page-thumbnail/index.js.map +1 -1
- package/lib/page-thumbnail/page-thumbnail.d.ts +35 -0
- package/lib/page-thumbnail/page-thumbnail.js +82 -0
- package/lib/page-thumbnail/page-thumbnail.js.map +1 -0
- package/lib/page-thumbnail/page-thumbnail.service.d.ts +1 -27
- package/lib/page-thumbnail/page-thumbnail.service.js +6 -83
- package/lib/page-thumbnail/page-thumbnail.service.js.map +1 -1
- package/lib/tree/tree-node.html +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +17 -9
- package/package.json +1 -1
- package/src/components/decorators/index.ts +2 -2
- package/src/components/page-thumbnail/index.ts +1 -10
- package/src/components/page-thumbnail/page-thumbnail.service.ts +5 -106
- package/src/components/page-thumbnail/page-thumbnail.ts +134 -0
- package/src/components/tree/tree-node.html +1 -1
- package/tsconfig.tsbuildinfo +22 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## @mediafly/js-ui changelog
|
|
2
2
|
|
|
3
|
+
**47.5.1**
|
|
4
|
+
|
|
5
|
+
* Tree: Fixed: pass itemsOnlyAddButtons binding to the tree-node in child-container
|
|
6
|
+
|
|
7
|
+
**47.5.0**
|
|
8
|
+
|
|
9
|
+
* add maxlength to login-textinput component
|
|
10
|
+
|
|
3
11
|
**47.4.2**
|
|
4
12
|
|
|
5
13
|
* Tree: Fixed: added condition to properly handle the Add buttons configuration on the root folder
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7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oot":"","sources":["../../src/components/page-thumbnail/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/page-thumbnail/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare function convertPageThumbnails(storyboard: ViewerContentStoryboard): PageThumbnail[];
|
|
2
|
+
export declare function pageThumbnailBackgroundImageStyle(pageThumbnail: PageThumbnail, camelCaseAttributes: boolean, maxWidth: number, maxHeight?: number): {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export interface PageThumbnail {
|
|
6
|
+
height: number;
|
|
7
|
+
imageWidth: number;
|
|
8
|
+
imageHeight: number;
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
url: string;
|
|
12
|
+
width: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ViewerContentStoryboard {
|
|
15
|
+
frameHeight?: number;
|
|
16
|
+
framesets: ViewerFrameset[];
|
|
17
|
+
framesTotal: number;
|
|
18
|
+
framesX: number;
|
|
19
|
+
framesY: number;
|
|
20
|
+
frameUrls?: string[];
|
|
21
|
+
frameWidth?: number;
|
|
22
|
+
}
|
|
23
|
+
interface ViewerFrameset {
|
|
24
|
+
end: number;
|
|
25
|
+
rect?: ViewerRect[];
|
|
26
|
+
start: number;
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
interface ViewerRect {
|
|
30
|
+
h: number;
|
|
31
|
+
w: number;
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export function convertPageThumbnails(storyboard) {
|
|
2
|
+
const pageThumbnails = [];
|
|
3
|
+
storyboard.framesets.forEach(frameSet => {
|
|
4
|
+
// Work out how big the total image is, based on the size of the individual frames.
|
|
5
|
+
let imageWidth;
|
|
6
|
+
let imageHeight;
|
|
7
|
+
if (storyboard.frameWidth && storyboard.frameHeight) {
|
|
8
|
+
// The storyboard claims a frame size at the top level. All the frames are the same size and the overall image will
|
|
9
|
+
// include empty space if there are too few frames to fill the grid.
|
|
10
|
+
imageWidth = storyboard.frameWidth * storyboard.framesX;
|
|
11
|
+
imageHeight = storyboard.frameHeight * storyboard.framesY;
|
|
12
|
+
}
|
|
13
|
+
else if (storyboard.framesX === 1 && frameSet.rect && frameSet.rect.length > 0) {
|
|
14
|
+
// The frameset is a single column of images that may be of different heights. There is no empty space in the image.
|
|
15
|
+
imageWidth = 0;
|
|
16
|
+
imageHeight = 0;
|
|
17
|
+
for (const rect of frameSet.rect) {
|
|
18
|
+
imageWidth = Math.max(imageWidth, rect.w);
|
|
19
|
+
imageHeight += rect.h;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
// An unsupported frameset. Should never get here - nothing we can do.
|
|
24
|
+
// Returning zeros yields no thumbnails, which is better than wrong thumbnails.
|
|
25
|
+
imageWidth = 0;
|
|
26
|
+
imageHeight = 0;
|
|
27
|
+
}
|
|
28
|
+
if (frameSet.rect) {
|
|
29
|
+
frameSet.rect.forEach(rect => {
|
|
30
|
+
pageThumbnails.push({
|
|
31
|
+
height: rect.h,
|
|
32
|
+
imageHeight,
|
|
33
|
+
imageWidth,
|
|
34
|
+
left: rect.x,
|
|
35
|
+
top: rect.y,
|
|
36
|
+
url: frameSet.url,
|
|
37
|
+
width: rect.w,
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return pageThumbnails;
|
|
43
|
+
}
|
|
44
|
+
export function pageThumbnailBackgroundImageStyle(pageThumbnail, camelCaseAttributes, maxWidth, maxHeight) {
|
|
45
|
+
const backgroundImageUrl = pageThumbnail.url;
|
|
46
|
+
const aspectRatio = pageThumbnail.width / pageThumbnail.height;
|
|
47
|
+
let width;
|
|
48
|
+
if (maxWidth && maxHeight) {
|
|
49
|
+
if (aspectRatio < maxWidth / maxHeight) {
|
|
50
|
+
width = maxHeight * aspectRatio;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
width = maxWidth;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else if (maxWidth) {
|
|
57
|
+
width = maxWidth;
|
|
58
|
+
}
|
|
59
|
+
else if (maxHeight) {
|
|
60
|
+
width = maxHeight * aspectRatio;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
width = pageThumbnail.width;
|
|
64
|
+
}
|
|
65
|
+
const scale = width / pageThumbnail.width;
|
|
66
|
+
const backgroundImage = `url(${backgroundImageUrl})`;
|
|
67
|
+
const backgroundPosition = `${scale * pageThumbnail.left * -1}px ${scale * pageThumbnail.top * -1}px`;
|
|
68
|
+
const backgroundSize = `${scale * pageThumbnail.imageWidth}px`;
|
|
69
|
+
const style = {
|
|
70
|
+
'height': `${scale * pageThumbnail.height}px`,
|
|
71
|
+
'width': `${width}px`,
|
|
72
|
+
};
|
|
73
|
+
if (camelCaseAttributes) {
|
|
74
|
+
// We love React...
|
|
75
|
+
return Object.assign(Object.assign({}, style), { backgroundImage,
|
|
76
|
+
backgroundPosition,
|
|
77
|
+
backgroundSize });
|
|
78
|
+
}
|
|
79
|
+
// ... but we must also tolerate AngularJS
|
|
80
|
+
return Object.assign(Object.assign({}, style), { 'background-image': backgroundImage, 'background-position': backgroundPosition, 'background-size': backgroundSize });
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=page-thumbnail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-thumbnail.js","sourceRoot":"","sources":["../../src/components/page-thumbnail/page-thumbnail.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,UAAmC;IACxE,MAAM,cAAc,GAAoB,EAAE,CAAA;IAC1C,UAAU,CAAC,SAAS,CAAC,OAAO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R,kBAAkB,EAAE,eAAe,EACnC,qBAAqB,EAAE,kBAAkB,EACzC,iBAAiB,EAAE,cAAc,IACjC;AACF,CAAC"}
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="angular-mocks" />
|
|
3
|
-
import { PageThumbnail } from '.';
|
|
1
|
+
import { PageThumbnail, ViewerContentStoryboard } from './page-thumbnail';
|
|
4
2
|
export default class PageThumbnailService {
|
|
5
|
-
private $log;
|
|
6
|
-
constructor($log: ng.ILogService);
|
|
7
3
|
backgroundImageStyle(pageThumbnail: PageThumbnail, maxWidth: number, maxHeight?: number): {
|
|
8
4
|
[key: string]: string;
|
|
9
5
|
};
|
|
10
6
|
convertPageThumbnails(storyboard: ViewerContentStoryboard): PageThumbnail[];
|
|
11
7
|
}
|
|
12
|
-
interface ViewerContentStoryboard {
|
|
13
|
-
frameHeight?: number;
|
|
14
|
-
framesets: ViewerFrameset[];
|
|
15
|
-
framesTotal: number;
|
|
16
|
-
framesX: number;
|
|
17
|
-
framesY: number;
|
|
18
|
-
frameUrls?: string[];
|
|
19
|
-
frameWidth?: number;
|
|
20
|
-
}
|
|
21
|
-
interface ViewerFrameset {
|
|
22
|
-
end: number;
|
|
23
|
-
rect?: ViewerRect[];
|
|
24
|
-
start: number;
|
|
25
|
-
url: string;
|
|
26
|
-
}
|
|
27
|
-
interface ViewerRect {
|
|
28
|
-
h: number;
|
|
29
|
-
w: number;
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -4,96 +4,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Inject, Injectable } from '../decorators';
|
|
7
|
+
import { Injectable } from '../decorators';
|
|
8
|
+
import { convertPageThumbnails, pageThumbnailBackgroundImageStyle } from './page-thumbnail';
|
|
14
9
|
let PageThumbnailService = class PageThumbnailService {
|
|
15
|
-
|
|
16
|
-
this.$log = $log;
|
|
17
|
-
}
|
|
10
|
+
// This service class acts as an injectable AngularJS wrapper to functions that are also available to React
|
|
18
11
|
backgroundImageStyle(pageThumbnail, maxWidth, maxHeight) {
|
|
19
|
-
|
|
20
|
-
const aspectRatio = pageThumbnail.width / pageThumbnail.height;
|
|
21
|
-
let width;
|
|
22
|
-
if (maxWidth && maxHeight) {
|
|
23
|
-
if (aspectRatio < maxWidth / maxHeight) {
|
|
24
|
-
width = maxHeight * aspectRatio;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
width = maxWidth;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
else if (maxWidth) {
|
|
31
|
-
width = maxWidth;
|
|
32
|
-
}
|
|
33
|
-
else if (maxHeight) {
|
|
34
|
-
width = maxHeight * aspectRatio;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
width = pageThumbnail.width;
|
|
38
|
-
}
|
|
39
|
-
const scale = width / pageThumbnail.width;
|
|
40
|
-
return {
|
|
41
|
-
'background-image': `url(${backgroundImage})`,
|
|
42
|
-
'background-position': `${scale * pageThumbnail.left * -1}px ${scale * pageThumbnail.top * -1}px`,
|
|
43
|
-
'background-size': `${scale * pageThumbnail.imageWidth}px`,
|
|
44
|
-
'height': `${scale * pageThumbnail.height}px`,
|
|
45
|
-
'width': `${width}px`,
|
|
46
|
-
};
|
|
12
|
+
return pageThumbnailBackgroundImageStyle(pageThumbnail, false, maxWidth, maxHeight);
|
|
47
13
|
}
|
|
48
14
|
convertPageThumbnails(storyboard) {
|
|
49
|
-
|
|
50
|
-
storyboard.framesets.forEach(frameSet => {
|
|
51
|
-
// Work out how big the total image is, based on the size of the individual frames.
|
|
52
|
-
let imageWidth;
|
|
53
|
-
let imageHeight;
|
|
54
|
-
if (storyboard.frameWidth && storyboard.frameHeight) {
|
|
55
|
-
// The storyboard claims a frame size at the top level. All the frames are the same size and the overall image will
|
|
56
|
-
// include empty space if there are too few frames to fill the grid.
|
|
57
|
-
imageWidth = storyboard.frameWidth * storyboard.framesX;
|
|
58
|
-
imageHeight = storyboard.frameHeight * storyboard.framesY;
|
|
59
|
-
}
|
|
60
|
-
else if (storyboard.framesX === 1 && frameSet.rect && frameSet.rect.length > 0) {
|
|
61
|
-
// The frameset is a single column of images that may be of different heights. There is no empty space in the image.
|
|
62
|
-
imageWidth = 0;
|
|
63
|
-
imageHeight = 0;
|
|
64
|
-
for (const rect of frameSet.rect) {
|
|
65
|
-
imageWidth = Math.max(imageWidth, rect.w);
|
|
66
|
-
imageHeight += rect.h;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
// An unsupported frameset. Should never get here - nothing we can do.
|
|
71
|
-
// Returning zeros yields no thumbnails, which is better than wrong thumbnails.
|
|
72
|
-
imageWidth = 0;
|
|
73
|
-
imageHeight = 0;
|
|
74
|
-
this.$log.error(`Cannot use ${storyboard.framesX}x${storyboard.framesY} storyboard`);
|
|
75
|
-
}
|
|
76
|
-
if (frameSet.rect) {
|
|
77
|
-
frameSet.rect.forEach(rect => {
|
|
78
|
-
pageThumbnails.push({
|
|
79
|
-
height: rect.h,
|
|
80
|
-
imageHeight,
|
|
81
|
-
imageWidth,
|
|
82
|
-
left: rect.x,
|
|
83
|
-
top: rect.y,
|
|
84
|
-
url: frameSet.url,
|
|
85
|
-
width: rect.w,
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
return pageThumbnails;
|
|
15
|
+
return convertPageThumbnails(storyboard);
|
|
91
16
|
}
|
|
92
17
|
};
|
|
93
18
|
PageThumbnailService = __decorate([
|
|
94
|
-
Injectable('pageThumbnailService')
|
|
95
|
-
__param(0, Inject('$log')),
|
|
96
|
-
__metadata("design:paramtypes", [Object])
|
|
19
|
+
Injectable('pageThumbnailService')
|
|
97
20
|
], PageThumbnailService);
|
|
98
21
|
export default PageThumbnailService;
|
|
99
22
|
//# sourceMappingURL=page-thumbnail.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-thumbnail.service.js","sourceRoot":"","sources":["../../src/components/page-thumbnail/page-thumbnail.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-thumbnail.service.js","sourceRoot":"","sources":["../../src/components/page-thumbnail/page-thumbnail.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAiB,iCAAiC,EAA2B,MAAM,kBAAkB,CAAA;AAGnI,IAAqB,oBAAoB,GAAzC,MAAqB,oBAAoB;IAExC,2GAA2G;IAE3G,oBAAoB,CAAC,aAA4B,EAAE,QAAgB,EAAE,SAAkB;QACtF,OAAO,iCAAiC,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;IACpF,CAAC;IAED,qBAAqB,CAAC,UAAmC;QACxD,OAAO,qBAAqB,CAAC,UAAU,CAAC,CAAA;IACzC,CAAC;CACD,CAAA;AAXoB,oBAAoB;IADxC,UAAU,CAAC,sBAAsB,CAAC;GACd,oBAAoB,CAWxC;eAXoB,oBAAoB"}
|
package/lib/tree/tree-node.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
<div class="js-child-container" ng-if="node.isBranch" mfly-collapse="node.collapsed">
|
|
49
|
-
<mfly:tree-node tree-nodes="node.children" use-add-buttons="useAddButtons"></mfly:tree-node>
|
|
49
|
+
<mfly:tree-node tree-nodes="node.children" use-add-buttons="useAddButtons" items-only-add-buttons="itemsOnlyAddButtons"></mfly:tree-node>
|
|
50
50
|
|
|
51
51
|
<div class="c-tree-item__spinner" ng-show="!(node.children.length > 0)">
|
|
52
52
|
<span class="mfly-font mfly-font-loading-circle fa-spin"></span>
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"affectsGlobalScope": true
|
|
178
178
|
},
|
|
179
179
|
"../src/components/decorators/index.ts": {
|
|
180
|
-
"version": "
|
|
180
|
+
"version": "6b329f6b8731b7ffb866718c00d0294bae012fc3f5fef58a67a57a3fd46722a7",
|
|
181
181
|
"signature": "5555a35bf7e2b12eef998099fd9876b5ad8b35d7cf3c8e20a9793fd1f8e94fa0",
|
|
182
182
|
"affectsGlobalScope": false
|
|
183
183
|
},
|
|
@@ -1186,14 +1186,19 @@
|
|
|
1186
1186
|
"signature": "589fb7a362867c9c3746b34a402d9f60a8e4342fb552d6924e11b1a78bc974ab",
|
|
1187
1187
|
"affectsGlobalScope": false
|
|
1188
1188
|
},
|
|
1189
|
+
"../src/components/page-thumbnail/page-thumbnail.ts": {
|
|
1190
|
+
"version": "1a823cc604ebdef3ae49c2b028e533b2a3e83c29c03153640c0e0a1d4314d4f2",
|
|
1191
|
+
"signature": "2256152b5a654bf92c32b02f6de385959332ce207a58b57619753a4be3f7f889",
|
|
1192
|
+
"affectsGlobalScope": false
|
|
1193
|
+
},
|
|
1189
1194
|
"../src/components/page-thumbnail/page-thumbnail.service.ts": {
|
|
1190
|
-
"version": "
|
|
1191
|
-
"signature": "
|
|
1195
|
+
"version": "b14d7559436a105bbdc5ffb6644743019e6fbecf857bb44a65bffa66ce1d76cc",
|
|
1196
|
+
"signature": "53635b0b2f8ef93d91482b0d23b64fb9b4c4f0937aa661760f79da07349f4a7c",
|
|
1192
1197
|
"affectsGlobalScope": false
|
|
1193
1198
|
},
|
|
1194
1199
|
"../src/components/page-thumbnail/index.ts": {
|
|
1195
|
-
"version": "
|
|
1196
|
-
"signature": "
|
|
1200
|
+
"version": "d80bcfba96e07cfab8f18342903774a8bbd979bdace11750400924af2b033980",
|
|
1201
|
+
"signature": "10052d8cbe4346c82183981a64062cf561b95b68c2c5b9773656c92e407c5af1",
|
|
1197
1202
|
"affectsGlobalScope": false
|
|
1198
1203
|
},
|
|
1199
1204
|
"../src/components/paging/pager.js": {
|
|
@@ -3596,11 +3601,12 @@
|
|
|
3596
3601
|
"../node_modules/@types/angular/index.d.ts"
|
|
3597
3602
|
],
|
|
3598
3603
|
"../src/components/page-thumbnail/index.ts": [
|
|
3599
|
-
"../src/components/page-thumbnail/page-thumbnail.service.ts"
|
|
3604
|
+
"../src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
3605
|
+
"../src/components/page-thumbnail/page-thumbnail.ts"
|
|
3600
3606
|
],
|
|
3601
3607
|
"../src/components/page-thumbnail/page-thumbnail.service.ts": [
|
|
3602
3608
|
"../src/components/decorators/index.ts",
|
|
3603
|
-
"../src/components/page-thumbnail/
|
|
3609
|
+
"../src/components/page-thumbnail/page-thumbnail.ts"
|
|
3604
3610
|
],
|
|
3605
3611
|
"../src/components/paging/index.ts": [
|
|
3606
3612
|
"../src/components/paging/pager.js",
|
|
@@ -5140,10 +5146,11 @@
|
|
|
5140
5146
|
"../src/components/on-media-error/on-media-error.js"
|
|
5141
5147
|
],
|
|
5142
5148
|
"../src/components/page-thumbnail/index.ts": [
|
|
5143
|
-
"../src/components/page-thumbnail/page-thumbnail.service.ts"
|
|
5149
|
+
"../src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
5150
|
+
"../src/components/page-thumbnail/page-thumbnail.ts"
|
|
5144
5151
|
],
|
|
5145
5152
|
"../src/components/page-thumbnail/page-thumbnail.service.ts": [
|
|
5146
|
-
"../src/components/page-thumbnail/
|
|
5153
|
+
"../src/components/page-thumbnail/page-thumbnail.ts"
|
|
5147
5154
|
],
|
|
5148
5155
|
"../src/components/paging/index.ts": [
|
|
5149
5156
|
"../src/components/paging/pager.js",
|
|
@@ -5596,6 +5603,7 @@
|
|
|
5596
5603
|
"../src/components/on-media-error/on-media-error.js",
|
|
5597
5604
|
"../src/components/page-thumbnail/index.ts",
|
|
5598
5605
|
"../src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
5606
|
+
"../src/components/page-thumbnail/page-thumbnail.ts",
|
|
5599
5607
|
"../src/components/paging/index.ts",
|
|
5600
5608
|
"../src/components/paging/pager.js",
|
|
5601
5609
|
"../src/components/paging/paging-factory.js",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import 'reflect-metadata'
|
|
|
4
4
|
|
|
5
5
|
export function Component(options: { selector: string } & ng.IComponentOptions) {
|
|
6
6
|
|
|
7
|
-
return function(target) {
|
|
7
|
+
return function(target: any) {
|
|
8
8
|
|
|
9
9
|
const bindings = Reflect.getMetadata('angular:bindings', target) || {}
|
|
10
10
|
const injections = Reflect.getMetadata('angular:injections', target) || []
|
|
@@ -24,7 +24,7 @@ export function Component(options: { selector: string } & ng.IComponentOptions)
|
|
|
24
24
|
|
|
25
25
|
export function Injectable(name: string) {
|
|
26
26
|
|
|
27
|
-
return function(target) {
|
|
27
|
+
return function(target: any) {
|
|
28
28
|
|
|
29
29
|
const injections = Reflect.getMetadata('angular:injections', target) || []
|
|
30
30
|
Reflect.defineMetadata('angular:service', name, target)
|
|
@@ -1,117 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Injectable } from '../decorators'
|
|
2
|
+
import { convertPageThumbnails, PageThumbnail, pageThumbnailBackgroundImageStyle, ViewerContentStoryboard } from './page-thumbnail'
|
|
3
3
|
|
|
4
4
|
@Injectable('pageThumbnailService')
|
|
5
5
|
export default class PageThumbnailService {
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
@Inject('$log') private $log: ng.ILogService,
|
|
9
|
-
) { }
|
|
7
|
+
// This service class acts as an injectable AngularJS wrapper to functions that are also available to React
|
|
10
8
|
|
|
11
9
|
backgroundImageStyle(pageThumbnail: PageThumbnail, maxWidth: number, maxHeight?: number): { [key: string]: string } {
|
|
12
|
-
|
|
13
|
-
const aspectRatio = pageThumbnail.width / pageThumbnail.height
|
|
14
|
-
|
|
15
|
-
let width: number
|
|
16
|
-
if (maxWidth && maxHeight) {
|
|
17
|
-
if (aspectRatio < maxWidth / maxHeight) {
|
|
18
|
-
width = maxHeight * aspectRatio
|
|
19
|
-
} else {
|
|
20
|
-
width = maxWidth
|
|
21
|
-
}
|
|
22
|
-
} else if (maxWidth) {
|
|
23
|
-
width = maxWidth
|
|
24
|
-
} else if (maxHeight) {
|
|
25
|
-
width = maxHeight * aspectRatio
|
|
26
|
-
} else {
|
|
27
|
-
width = pageThumbnail.width
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const scale = width / pageThumbnail.width
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
'background-image': `url(${backgroundImage})`,
|
|
34
|
-
'background-position': `${scale * pageThumbnail.left * -1}px ${scale * pageThumbnail.top * -1}px`,
|
|
35
|
-
'background-size': `${scale * pageThumbnail.imageWidth}px`,
|
|
36
|
-
'height': `${scale * pageThumbnail.height}px`,
|
|
37
|
-
'width': `${width}px`,
|
|
38
|
-
}
|
|
10
|
+
return pageThumbnailBackgroundImageStyle(pageThumbnail, false, maxWidth, maxHeight)
|
|
39
11
|
}
|
|
40
12
|
|
|
41
13
|
convertPageThumbnails(storyboard: ViewerContentStoryboard): PageThumbnail[] {
|
|
42
|
-
|
|
43
|
-
storyboard.framesets.forEach(frameSet => {
|
|
44
|
-
// Work out how big the total image is, based on the size of the individual frames.
|
|
45
|
-
let imageWidth: number
|
|
46
|
-
let imageHeight: number
|
|
47
|
-
if (storyboard.frameWidth && storyboard.frameHeight) {
|
|
48
|
-
|
|
49
|
-
// The storyboard claims a frame size at the top level. All the frames are the same size and the overall image will
|
|
50
|
-
// include empty space if there are too few frames to fill the grid.
|
|
51
|
-
imageWidth = storyboard.frameWidth * storyboard.framesX
|
|
52
|
-
imageHeight = storyboard.frameHeight * storyboard.framesY
|
|
53
|
-
|
|
54
|
-
} else if (storyboard.framesX === 1 && frameSet.rect && frameSet.rect.length > 0) {
|
|
55
|
-
|
|
56
|
-
// The frameset is a single column of images that may be of different heights. There is no empty space in the image.
|
|
57
|
-
imageWidth = 0
|
|
58
|
-
imageHeight = 0
|
|
59
|
-
for (const rect of frameSet.rect) {
|
|
60
|
-
imageWidth = Math.max(imageWidth, rect.w)
|
|
61
|
-
imageHeight += rect.h
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
} else {
|
|
65
|
-
|
|
66
|
-
// An unsupported frameset. Should never get here - nothing we can do.
|
|
67
|
-
// Returning zeros yields no thumbnails, which is better than wrong thumbnails.
|
|
68
|
-
|
|
69
|
-
imageWidth = 0
|
|
70
|
-
imageHeight = 0
|
|
71
|
-
this.$log.error(`Cannot use ${storyboard.framesX}x${storyboard.framesY} storyboard`)
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (frameSet.rect) {
|
|
76
|
-
frameSet.rect.forEach(rect => {
|
|
77
|
-
pageThumbnails!.push({
|
|
78
|
-
height: rect.h,
|
|
79
|
-
imageHeight,
|
|
80
|
-
imageWidth,
|
|
81
|
-
left: rect.x,
|
|
82
|
-
top: rect.y,
|
|
83
|
-
url: frameSet.url,
|
|
84
|
-
width: rect.w,
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
return pageThumbnails
|
|
14
|
+
return convertPageThumbnails(storyboard)
|
|
91
15
|
}
|
|
92
16
|
}
|
|
93
|
-
|
|
94
|
-
// Duplicated from viewer-api-typings, which we don't want to reference in this repo
|
|
95
|
-
interface ViewerContentStoryboard {
|
|
96
|
-
frameHeight?: number
|
|
97
|
-
framesets: ViewerFrameset[]
|
|
98
|
-
framesTotal: number
|
|
99
|
-
framesX: number
|
|
100
|
-
framesY: number
|
|
101
|
-
frameUrls?: string[]
|
|
102
|
-
frameWidth?: number
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface ViewerFrameset {
|
|
106
|
-
end: number
|
|
107
|
-
rect?: ViewerRect[]
|
|
108
|
-
start: number
|
|
109
|
-
url: string
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface ViewerRect {
|
|
113
|
-
h: number
|
|
114
|
-
w: number
|
|
115
|
-
x: number
|
|
116
|
-
y: number
|
|
117
|
-
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export function convertPageThumbnails(storyboard: ViewerContentStoryboard): PageThumbnail[] {
|
|
2
|
+
const pageThumbnails: PageThumbnail[] = []
|
|
3
|
+
storyboard.framesets.forEach(frameSet => {
|
|
4
|
+
// Work out how big the total image is, based on the size of the individual frames.
|
|
5
|
+
let imageWidth: number
|
|
6
|
+
let imageHeight: number
|
|
7
|
+
if (storyboard.frameWidth && storyboard.frameHeight) {
|
|
8
|
+
|
|
9
|
+
// The storyboard claims a frame size at the top level. All the frames are the same size and the overall image will
|
|
10
|
+
// include empty space if there are too few frames to fill the grid.
|
|
11
|
+
imageWidth = storyboard.frameWidth * storyboard.framesX
|
|
12
|
+
imageHeight = storyboard.frameHeight * storyboard.framesY
|
|
13
|
+
|
|
14
|
+
} else if (storyboard.framesX === 1 && frameSet.rect && frameSet.rect.length > 0) {
|
|
15
|
+
|
|
16
|
+
// The frameset is a single column of images that may be of different heights. There is no empty space in the image.
|
|
17
|
+
imageWidth = 0
|
|
18
|
+
imageHeight = 0
|
|
19
|
+
for (const rect of frameSet.rect) {
|
|
20
|
+
imageWidth = Math.max(imageWidth, rect.w)
|
|
21
|
+
imageHeight += rect.h
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
} else {
|
|
25
|
+
|
|
26
|
+
// An unsupported frameset. Should never get here - nothing we can do.
|
|
27
|
+
// Returning zeros yields no thumbnails, which is better than wrong thumbnails.
|
|
28
|
+
|
|
29
|
+
imageWidth = 0
|
|
30
|
+
imageHeight = 0
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (frameSet.rect) {
|
|
35
|
+
frameSet.rect.forEach(rect => {
|
|
36
|
+
pageThumbnails!.push({
|
|
37
|
+
height: rect.h,
|
|
38
|
+
imageHeight,
|
|
39
|
+
imageWidth,
|
|
40
|
+
left: rect.x,
|
|
41
|
+
top: rect.y,
|
|
42
|
+
url: frameSet.url,
|
|
43
|
+
width: rect.w,
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
return pageThumbnails
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function pageThumbnailBackgroundImageStyle(pageThumbnail: PageThumbnail, camelCaseAttributes: boolean, maxWidth: number, maxHeight?: number): { [key: string]: string } {
|
|
53
|
+
const backgroundImageUrl = pageThumbnail.url
|
|
54
|
+
const aspectRatio = pageThumbnail.width / pageThumbnail.height
|
|
55
|
+
|
|
56
|
+
let width: number
|
|
57
|
+
if (maxWidth && maxHeight) {
|
|
58
|
+
if (aspectRatio < maxWidth / maxHeight) {
|
|
59
|
+
width = maxHeight * aspectRatio
|
|
60
|
+
} else {
|
|
61
|
+
width = maxWidth
|
|
62
|
+
}
|
|
63
|
+
} else if (maxWidth) {
|
|
64
|
+
width = maxWidth
|
|
65
|
+
} else if (maxHeight) {
|
|
66
|
+
width = maxHeight * aspectRatio
|
|
67
|
+
} else {
|
|
68
|
+
width = pageThumbnail.width
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const scale = width / pageThumbnail.width
|
|
72
|
+
|
|
73
|
+
const backgroundImage = `url(${backgroundImageUrl})`
|
|
74
|
+
const backgroundPosition = `${scale * pageThumbnail.left * -1}px ${scale * pageThumbnail.top * -1}px`
|
|
75
|
+
const backgroundSize = `${scale * pageThumbnail.imageWidth}px`
|
|
76
|
+
|
|
77
|
+
const style = {
|
|
78
|
+
'height': `${scale * pageThumbnail.height}px`,
|
|
79
|
+
'width': `${width}px`,
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (camelCaseAttributes) {
|
|
83
|
+
// We love React...
|
|
84
|
+
return {
|
|
85
|
+
...style,
|
|
86
|
+
backgroundImage,
|
|
87
|
+
backgroundPosition,
|
|
88
|
+
backgroundSize,
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ... but we must also tolerate AngularJS
|
|
93
|
+
return {
|
|
94
|
+
...style,
|
|
95
|
+
'background-image': backgroundImage,
|
|
96
|
+
'background-position': backgroundPosition,
|
|
97
|
+
'background-size': backgroundSize,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface PageThumbnail {
|
|
102
|
+
height: number
|
|
103
|
+
imageWidth: number
|
|
104
|
+
imageHeight: number
|
|
105
|
+
left: number
|
|
106
|
+
top: number
|
|
107
|
+
url: string
|
|
108
|
+
width: number
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Duplicated from viewer-api-typings, which we don't want to reference in this repo
|
|
112
|
+
export interface ViewerContentStoryboard {
|
|
113
|
+
frameHeight?: number
|
|
114
|
+
framesets: ViewerFrameset[]
|
|
115
|
+
framesTotal: number
|
|
116
|
+
framesX: number
|
|
117
|
+
framesY: number
|
|
118
|
+
frameUrls?: string[]
|
|
119
|
+
frameWidth?: number
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface ViewerFrameset {
|
|
123
|
+
end: number
|
|
124
|
+
rect?: ViewerRect[]
|
|
125
|
+
start: number
|
|
126
|
+
url: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface ViewerRect {
|
|
130
|
+
h: number
|
|
131
|
+
w: number
|
|
132
|
+
x: number
|
|
133
|
+
y: number
|
|
134
|
+
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
<div class="js-child-container" ng-if="node.isBranch" mfly-collapse="node.collapsed">
|
|
49
|
-
<mfly:tree-node tree-nodes="node.children" use-add-buttons="useAddButtons"></mfly:tree-node>
|
|
49
|
+
<mfly:tree-node tree-nodes="node.children" use-add-buttons="useAddButtons" items-only-add-buttons="itemsOnlyAddButtons"></mfly:tree-node>
|
|
50
50
|
|
|
51
51
|
<div class="c-tree-item__spinner" ng-show="!(node.children.length > 0)">
|
|
52
52
|
<span class="mfly-font mfly-font-loading-circle fa-spin"></span>
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
"affectsGlobalScope": true
|
|
633
633
|
},
|
|
634
634
|
"./src/components/decorators/index.ts": {
|
|
635
|
-
"version": "
|
|
635
|
+
"version": "6b329f6b8731b7ffb866718c00d0294bae012fc3f5fef58a67a57a3fd46722a7",
|
|
636
636
|
"signature": "5555a35bf7e2b12eef998099fd9876b5ad8b35d7cf3c8e20a9793fd1f8e94fa0",
|
|
637
637
|
"affectsGlobalScope": false
|
|
638
638
|
},
|
|
@@ -1961,14 +1961,19 @@
|
|
|
1961
1961
|
"signature": "589fb7a362867c9c3746b34a402d9f60a8e4342fb552d6924e11b1a78bc974ab",
|
|
1962
1962
|
"affectsGlobalScope": false
|
|
1963
1963
|
},
|
|
1964
|
+
"./src/components/page-thumbnail/page-thumbnail.ts": {
|
|
1965
|
+
"version": "1a823cc604ebdef3ae49c2b028e533b2a3e83c29c03153640c0e0a1d4314d4f2",
|
|
1966
|
+
"signature": "2256152b5a654bf92c32b02f6de385959332ce207a58b57619753a4be3f7f889",
|
|
1967
|
+
"affectsGlobalScope": false
|
|
1968
|
+
},
|
|
1964
1969
|
"./src/components/page-thumbnail/page-thumbnail.service.ts": {
|
|
1965
|
-
"version": "
|
|
1966
|
-
"signature": "
|
|
1970
|
+
"version": "b14d7559436a105bbdc5ffb6644743019e6fbecf857bb44a65bffa66ce1d76cc",
|
|
1971
|
+
"signature": "53635b0b2f8ef93d91482b0d23b64fb9b4c4f0937aa661760f79da07349f4a7c",
|
|
1967
1972
|
"affectsGlobalScope": false
|
|
1968
1973
|
},
|
|
1969
1974
|
"./src/components/page-thumbnail/index.ts": {
|
|
1970
|
-
"version": "
|
|
1971
|
-
"signature": "
|
|
1975
|
+
"version": "d80bcfba96e07cfab8f18342903774a8bbd979bdace11750400924af2b033980",
|
|
1976
|
+
"signature": "10052d8cbe4346c82183981a64062cf561b95b68c2c5b9773656c92e407c5af1",
|
|
1972
1977
|
"affectsGlobalScope": false
|
|
1973
1978
|
},
|
|
1974
1979
|
"./src/components/paging/index.ts": {
|
|
@@ -2836,7 +2841,7 @@
|
|
|
2836
2841
|
"target": 2,
|
|
2837
2842
|
"inlineSourceMap": false,
|
|
2838
2843
|
"declarationMap": false,
|
|
2839
|
-
"pathsBasePath": "C:/
|
|
2844
|
+
"pathsBasePath": "C:/Work/Github/mediafly-js-ui",
|
|
2840
2845
|
"configFilePath": "./tsconfig.json"
|
|
2841
2846
|
},
|
|
2842
2847
|
"referencedMap": {
|
|
@@ -4929,11 +4934,12 @@
|
|
|
4929
4934
|
"./src/components/modal/modal.service.ts"
|
|
4930
4935
|
],
|
|
4931
4936
|
"./src/components/page-thumbnail/index.ts": [
|
|
4932
|
-
"./src/components/page-thumbnail/page-thumbnail.service.ts"
|
|
4937
|
+
"./src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
4938
|
+
"./src/components/page-thumbnail/page-thumbnail.ts"
|
|
4933
4939
|
],
|
|
4934
4940
|
"./src/components/page-thumbnail/page-thumbnail.service.ts": [
|
|
4935
4941
|
"./src/components/decorators/index.ts",
|
|
4936
|
-
"./src/components/page-thumbnail/
|
|
4942
|
+
"./src/components/page-thumbnail/page-thumbnail.ts"
|
|
4937
4943
|
],
|
|
4938
4944
|
"./src/components/progress-bar/index.ts": [
|
|
4939
4945
|
"./src/components/progress-bar/progress-bar.component.ts"
|
|
@@ -5157,11 +5163,12 @@
|
|
|
5157
5163
|
"./node_modules/@types/angular-mocks/index.d.ts": [
|
|
5158
5164
|
"./node_modules/@types/angular-mocks/mocks.d.ts",
|
|
5159
5165
|
"./node_modules/@types/angular-sanitize/index.d.ts",
|
|
5160
|
-
"./node_modules/@types/angular/index.d.ts",
|
|
5161
|
-
"./
|
|
5166
|
+
"./node_modules/@types/angular-translate/index.d.ts",
|
|
5167
|
+
"./node_modules/@types/angular/index.d.ts"
|
|
5162
5168
|
],
|
|
5163
5169
|
"./node_modules/@types/angular-sanitize/index.d.ts": [
|
|
5164
5170
|
"./node_modules/@types/angular-mocks/index.d.ts",
|
|
5171
|
+
"./node_modules/@types/angular-translate/index.d.ts",
|
|
5165
5172
|
"./node_modules/@types/angular/index.d.ts"
|
|
5166
5173
|
],
|
|
5167
5174
|
"./node_modules/@types/angular-translate/index.d.ts": [
|
|
@@ -6417,7 +6424,7 @@
|
|
|
6417
6424
|
"./src/app/forms/date-time-pickers/date-time-pickers.route.ts"
|
|
6418
6425
|
],
|
|
6419
6426
|
"./src/app/forms/date-tz-picker/date-tz-picker.page.ts": [
|
|
6420
|
-
"./node_modules/moment/
|
|
6427
|
+
"./node_modules/moment/moment.d.ts"
|
|
6421
6428
|
],
|
|
6422
6429
|
"./src/app/forms/date-tz-picker/index.ts": [
|
|
6423
6430
|
"./src/app/forms/date-tz-picker/date-tz-picker.page.ts",
|
|
@@ -6566,7 +6573,6 @@
|
|
|
6566
6573
|
"./src/components/dropdown/dropdown.ts"
|
|
6567
6574
|
],
|
|
6568
6575
|
"./src/components/feedback/clipboard.service.ts": [
|
|
6569
|
-
"./node_modules/clipboard/src/clipboard.d.ts",
|
|
6570
6576
|
"./src/components/feedback/feedback.component.ts",
|
|
6571
6577
|
"./src/components/feedback/feedback.service.ts"
|
|
6572
6578
|
],
|
|
@@ -6699,10 +6705,11 @@
|
|
|
6699
6705
|
"./node_modules/@types/angular/index.d.ts"
|
|
6700
6706
|
],
|
|
6701
6707
|
"./src/components/page-thumbnail/index.ts": [
|
|
6702
|
-
"./src/components/page-thumbnail/page-thumbnail.service.ts"
|
|
6708
|
+
"./src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
6709
|
+
"./src/components/page-thumbnail/page-thumbnail.ts"
|
|
6703
6710
|
],
|
|
6704
6711
|
"./src/components/page-thumbnail/page-thumbnail.service.ts": [
|
|
6705
|
-
"./src/components/page-thumbnail/
|
|
6712
|
+
"./src/components/page-thumbnail/page-thumbnail.ts"
|
|
6706
6713
|
],
|
|
6707
6714
|
"./src/components/progress-bar/index.ts": [
|
|
6708
6715
|
"./src/components/progress-bar/progress-bar.component.ts"
|
|
@@ -7296,6 +7303,7 @@
|
|
|
7296
7303
|
"./src/components/on-media-error/index.ts",
|
|
7297
7304
|
"./src/components/page-thumbnail/index.ts",
|
|
7298
7305
|
"./src/components/page-thumbnail/page-thumbnail.service.ts",
|
|
7306
|
+
"./src/components/page-thumbnail/page-thumbnail.ts",
|
|
7299
7307
|
"./src/components/paging/index.ts",
|
|
7300
7308
|
"./src/components/progress-bar/index.ts",
|
|
7301
7309
|
"./src/components/progress-bar/progress-bar.component.ts",
|