diff --git a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js
index e11d08ad0..e2a7f74c6 100644
--- a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js
+++ b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js
@@ -5,18 +5,18 @@
}(this, (function (exports, core, common, rxjs, operators, angularFontawesome, fontawesomeSvgCore, freeSolidSvgIcons, freeRegularSvgIcons, http, jquery, Hammer, platformBrowser, ngClickOutside) { 'use strict';
/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
+ Copyright (c) Microsoft Corporation.
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
@@ -72,10 +72,11 @@
}
function __awaiter(thisArg, _arguments, P, generator) {
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
@@ -108,19 +109,25 @@
}
}
+ function __createBinding(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+ }
+
function __exportStar(m, exports) {
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
- var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
- return {
+ if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
@@ -199,8178 +206,8193 @@
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
+ }
+
+ function __classPrivateFieldGet(receiver, privateMap) {
+ if (!privateMap.has(receiver)) {
+ throw new TypeError("attempted to get private field on non-instance");
+ }
+ return privateMap.get(receiver);
+ }
+
+ function __classPrivateFieldSet(receiver, privateMap, value) {
+ if (!privateMap.has(receiver)) {
+ throw new TypeError("attempted to set private field on non-instance");
+ }
+ privateMap.set(receiver, value);
+ return value;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TopToolbarComponent = /** @class */ (function () {
- function TopToolbarComponent() {
- }
- TopToolbarComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-top-toolbar',
- template: "
\n",
- styles: [".top-toolbar{width:100%;height:60px;z-index:999;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.tools{width:100%;height:100%;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}@media (max-width:1037px){.top-toolbar{height:60px}.tools{height:100%;overflow-x:auto;overflow-scrolling:touch;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.tools::-webkit-scrollbar{width:0;height:0;background-color:#3e4e5a}}"]
- }] }
- ];
- /** @nocollapse */
- TopToolbarComponent.ctorParameters = function () { return []; };
- return TopToolbarComponent;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TopToolbarComponent = /** @class */ (function () {
+ function TopToolbarComponent() {
+ }
+ TopToolbarComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-top-toolbar',
+ template: "\r\n",
+ styles: [".top-toolbar{width:100%;height:60px;z-index:999;display:flex;align-items:center}.tools{width:100%;height:100%;display:flex;align-items:center}@media (max-width:1037px){.top-toolbar{height:60px}.tools{height:100%;overflow-x:auto;overflow-scrolling:touch;display:flex;align-items:center;transition:.3s ease-in-out;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.tools::-webkit-scrollbar{width:0;height:0;background-color:#3e4e5a}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TopToolbarComponent.ctorParameters = function () { return []; };
+ return TopToolbarComponent;
}());
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SidePanelComponent = /** @class */ (function () {
- function SidePanelComponent() {
- this.closable = true;
- this.saveable = true;
- this.hideSidePanel = new core.EventEmitter();
- this.saveInSidePanel = new core.EventEmitter();
- this.onlyTitle = false;
- }
- /**
- * @return {?}
- */
- SidePanelComponent.prototype.closeSidePanel = /**
- * @return {?}
- */
- function () {
- this.hideSidePanel.emit(true);
- };
- /**
- * @return {?}
- */
- SidePanelComponent.prototype.saveBySidePanel = /**
- * @return {?}
- */
- function () {
- this.saveInSidePanel.emit(true);
- };
- /**
- * @return {?}
- */
- SidePanelComponent.prototype.toggleTitleMode = /**
- * @return {?}
- */
- function () {
- if (this.closable && !this.saveable) {
- this.onlyTitle = !this.onlyTitle;
- }
- };
- SidePanelComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-side-panel',
- template: "\n",
- styles: [".gd-side-panel-wrapper{margin-right:0;width:334px;z-index:999;background-color:#fff;-webkit-transition:margin-right .2s;transition:margin-right .2s;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-flow:column;height:100vh}.gd-side-panel-wrapper .gd-side-panel-header{height:60px;background-color:#222e35;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:nowrap}.gd-side-panel-wrapper .gd-side-panel-header .icon{font-size:24px;color:#959da5;margin:18px;line-height:24px}.gd-side-panel-wrapper .gd-side-panel-header .title{font-size:13px;font-weight:700;color:#edf0f2;opacity:.57;margin-top:20px;width:100%}.gd-side-panel-wrapper .gd-side-panel-header .close,.gd-side-panel-wrapper .gd-side-panel-header .save{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.gd-side-panel-wrapper .gd-side-panel-header ::ng-deep gd-button .text{padding:0}.gd-side-panel-wrapper .gd-side-panel-body{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-flow:column;overflow:visible;overflow-y:auto;overflow-x:hidden;height:100%}@media (max-width:1037px){.gd-side-panel-wrapper{width:100%;position:absolute;left:0;right:0;top:0;bottom:0}.gd-side-panel-wrapper.only-title{height:60px!important}}"]
- }] }
- ];
- /** @nocollapse */
- SidePanelComponent.ctorParameters = function () { return []; };
- SidePanelComponent.propDecorators = {
- title: [{ type: core.Input }],
- icon: [{ type: core.Input }],
- closable: [{ type: core.Input }],
- saveable: [{ type: core.Input }],
- hideSidePanel: [{ type: core.Output }],
- saveInSidePanel: [{ type: core.Output }]
- };
- return SidePanelComponent;
- }());
- if (false) {
- /** @type {?} */
- SidePanelComponent.prototype.title;
- /** @type {?} */
- SidePanelComponent.prototype.icon;
- /** @type {?} */
- SidePanelComponent.prototype.closable;
- /** @type {?} */
- SidePanelComponent.prototype.saveable;
- /** @type {?} */
- SidePanelComponent.prototype.hideSidePanel;
- /** @type {?} */
- SidePanelComponent.prototype.saveInSidePanel;
- /** @type {?} */
- SidePanelComponent.prototype.onlyTitle;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SidePanelComponent = /** @class */ (function () {
+ function SidePanelComponent() {
+ this.closable = true;
+ this.saveable = true;
+ this.hideSidePanel = new core.EventEmitter();
+ this.saveInSidePanel = new core.EventEmitter();
+ this.onlyTitle = false;
+ }
+ /**
+ * @return {?}
+ */
+ SidePanelComponent.prototype.closeSidePanel = /**
+ * @return {?}
+ */
+ function () {
+ this.hideSidePanel.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ SidePanelComponent.prototype.saveBySidePanel = /**
+ * @return {?}
+ */
+ function () {
+ this.saveInSidePanel.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ SidePanelComponent.prototype.toggleTitleMode = /**
+ * @return {?}
+ */
+ function () {
+ if (this.closable && !this.saveable) {
+ this.onlyTitle = !this.onlyTitle;
+ }
+ };
+ SidePanelComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-side-panel',
+ template: "\r\n",
+ styles: [".gd-side-panel-wrapper{margin-right:0;width:334px;z-index:999;background-color:#fff;transition:margin-right .2s;display:flex;flex-flow:column;height:100vh}.gd-side-panel-wrapper .gd-side-panel-header{height:60px;background-color:#222e35;display:flex;flex-direction:row;flex-wrap:nowrap}.gd-side-panel-wrapper .gd-side-panel-header .icon{font-size:24px;color:#959da5;margin:18px;line-height:24px}.gd-side-panel-wrapper .gd-side-panel-header .title{font-size:13px;font-weight:700;color:#edf0f2;opacity:.57;margin-top:20px;width:100%}.gd-side-panel-wrapper .gd-side-panel-header .close,.gd-side-panel-wrapper .gd-side-panel-header .save{display:flex;align-items:center}.gd-side-panel-wrapper .gd-side-panel-header ::ng-deep gd-button .text{padding:0}.gd-side-panel-wrapper .gd-side-panel-body{display:flex;flex-flow:column;overflow:visible;overflow-y:auto;overflow-x:hidden;height:100%}@media (max-width:1037px){.gd-side-panel-wrapper{width:100%;position:absolute;left:0;right:0;top:0;bottom:0}.gd-side-panel-wrapper.only-title{height:60px!important}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ SidePanelComponent.ctorParameters = function () { return []; };
+ SidePanelComponent.propDecorators = {
+ title: [{ type: core.Input }],
+ icon: [{ type: core.Input }],
+ closable: [{ type: core.Input }],
+ saveable: [{ type: core.Input }],
+ hideSidePanel: [{ type: core.Output }],
+ saveInSidePanel: [{ type: core.Output }]
+ };
+ return SidePanelComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ SidePanelComponent.prototype.title;
+ /** @type {?} */
+ SidePanelComponent.prototype.icon;
+ /** @type {?} */
+ SidePanelComponent.prototype.closable;
+ /** @type {?} */
+ SidePanelComponent.prototype.saveable;
+ /** @type {?} */
+ SidePanelComponent.prototype.hideSidePanel;
+ /** @type {?} */
+ SidePanelComponent.prototype.saveInSidePanel;
+ /** @type {?} */
+ SidePanelComponent.prototype.onlyTitle;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var MOBILE_MAX_WIDTH = 425;
- /** @type {?} */
- var TABLET_MAX_WIDTH = 1024;
- var WindowService = /** @class */ (function () {
- function WindowService() {
- var _this = this;
- this.resizeSubject = new rxjs.Subject();
- this.width = window.innerWidth;
- this.height = window.innerHeight;
- this._resize$ = rxjs.fromEvent(window, 'resize')
- .pipe(operators.debounceTime(200), operators.distinctUntilChanged(), operators.startWith({ target: { innerWidth: window.innerWidth, innerHeight: window.innerHeight } }), operators.tap((/**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- _this.resizeSubject.next((/** @type {?} */ (event.target)));
- _this.width = ((/** @type {?} */ (event.target))).innerWidth;
- _this.height = ((/** @type {?} */ (event.target))).innerHeight;
- })));
- this._resize$.subscribe();
- }
- Object.defineProperty(WindowService.prototype, "onResize", {
- get: /**
- * @return {?}
- */
- function () {
- return this.resizeSubject.asObservable();
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @return {?}
- */
- WindowService.prototype.isMobile = /**
- * @return {?}
- */
- function () {
- return this.width <= MOBILE_MAX_WIDTH;
- };
- /**
- * @return {?}
- */
- WindowService.prototype.isTablet = /**
- * @return {?}
- */
- function () {
- return this.width <= TABLET_MAX_WIDTH;
- };
- /**
- * @return {?}
- */
- WindowService.prototype.isDesktop = /**
- * @return {?}
- */
- function () {
- return !this.isMobile() && !this.isTablet();
- };
- /**
- * @return {?}
- */
- WindowService.prototype.getWidth = /**
- * @return {?}
- */
- function () {
- return this.width;
- };
- /**
- * @return {?}
- */
- WindowService.prototype.getHeight = /**
- * @return {?}
- */
- function () {
- return this.height;
- };
- /**
- * @return {?}
- */
- WindowService.prototype.isEdge = /**
- * @return {?}
- */
- function () {
- return window.navigator.userAgent.toLowerCase().indexOf('edge') > -1;
- };
- /**
- * @return {?}
- */
- WindowService.prototype.isFirefox = /**
- * @return {?}
- */
- function () {
- return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
- };
- return WindowService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- WindowService.prototype.resizeSubject;
- /**
- * @type {?}
- * @private
- */
- WindowService.prototype._resize$;
- /**
- * @type {?}
- * @private
- */
- WindowService.prototype.width;
- /**
- * @type {?}
- * @private
- */
- WindowService.prototype.height;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var MOBILE_MAX_WIDTH = 425;
+ /** @type {?} */
+ var TABLET_MAX_WIDTH = 1024;
+ var WindowService = /** @class */ (function () {
+ function WindowService() {
+ var _this = this;
+ this.resizeSubject = new rxjs.Subject();
+ this.width = window.innerWidth;
+ this.height = window.innerHeight;
+ this._resize$ = rxjs.fromEvent(window, 'resize')
+ .pipe(operators.debounceTime(200), operators.distinctUntilChanged(), operators.startWith({ target: { innerWidth: window.innerWidth, innerHeight: window.innerHeight } }), operators.tap((/**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ _this.resizeSubject.next((/** @type {?} */ (event.target)));
+ _this.width = ((/** @type {?} */ (event.target))).innerWidth;
+ _this.height = ((/** @type {?} */ (event.target))).innerHeight;
+ })));
+ this._resize$.subscribe();
+ }
+ Object.defineProperty(WindowService.prototype, "onResize", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this.resizeSubject.asObservable();
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.isMobile = /**
+ * @return {?}
+ */
+ function () {
+ return this.width <= MOBILE_MAX_WIDTH;
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.isTablet = /**
+ * @return {?}
+ */
+ function () {
+ return this.width <= TABLET_MAX_WIDTH;
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.isDesktop = /**
+ * @return {?}
+ */
+ function () {
+ return !this.isMobile() && !this.isTablet();
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.getWidth = /**
+ * @return {?}
+ */
+ function () {
+ return this.width;
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.getHeight = /**
+ * @return {?}
+ */
+ function () {
+ return this.height;
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.isEdge = /**
+ * @return {?}
+ */
+ function () {
+ return window.navigator.userAgent.toLowerCase().indexOf('edge') > -1;
+ };
+ /**
+ * @return {?}
+ */
+ WindowService.prototype.isFirefox = /**
+ * @return {?}
+ */
+ function () {
+ return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
+ };
+ return WindowService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ WindowService.prototype.resizeSubject;
+ /**
+ * @type {?}
+ * @private
+ */
+ WindowService.prototype._resize$;
+ /**
+ * @type {?}
+ * @private
+ */
+ WindowService.prototype.width;
+ /**
+ * @type {?}
+ * @private
+ */
+ WindowService.prototype.height;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ButtonComponent = /** @class */ (function () {
- function ButtonComponent(windowService) {
- var _this = this;
- this.iconOnly = true;
- this.intent = 'default';
- this.disabled = false;
- this.toggle = false;
- this.iconRegular = false;
- this.elementPosition = 0;
- this.showToolTip = false;
- this.isDesktop = windowService.isDesktop();
- windowService.onResize.subscribe((/**
- * @param {?} w
- * @return {?}
- */
- function (w) {
- _this.isDesktop = windowService.isDesktop();
- }));
- }
- /**
- * @return {?}
- */
- ButtonComponent.prototype.iconButtonClass = /**
- * @return {?}
- */
- function () {
- return this.iconOnly ? 'icon-button' : '';
- };
- /**
- * @return {?}
- */
- ButtonComponent.prototype.onHovering = /**
- * @return {?}
- */
- function () {
- if (this.isDesktop && !this.disabled) {
- this.className += ' active';
- }
- };
- /**
- * @return {?}
- */
- ButtonComponent.prototype.onUnhovering = /**
- * @return {?}
- */
- function () {
- if (this.isDesktop && !this.disabled) {
- this.className = this.cleanAll(this.className, ' active');
- }
- };
- /**
- * @private
- * @param {?} str
- * @param {?} val
- * @return {?}
- */
- ButtonComponent.prototype.cleanAll = /**
- * @private
- * @param {?} str
- * @param {?} val
- * @return {?}
- */
- function (str, val) {
- while (str && str.indexOf(val) !== -1) {
- str = str.replace(val, '');
- }
- return str;
- };
- ButtonComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-button',
- template: "\n",
- styles: [".icon-button{padding:0!important;margin:0 7px}.button{padding:0 10px;font-size:14px;color:#959da5;cursor:pointer;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;align-content:center;-webkit-box-pack:center;justify-content:center;min-width:37px;height:37px;text-align:center;position:relative;white-space:nowrap}.button.inactive{cursor:not-allowed;opacity:.4}.button.active *{color:#ccd0d4}.button.primary{background-color:#3e4e5a;color:#fff}.button.primary.active{color:#fff;background-color:#688296}.button.brand{background-color:#25c2d4;color:#fff}.button.brand.active{color:#fff;background-color:#688296}.button .text{font-size:13px;padding-left:10px}.button .button-tooltip{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}@media (max-width:1037px){.button{font-size:22px}.arrow-button{margin:5px}}"]
- }] }
- ];
- /** @nocollapse */
- ButtonComponent.ctorParameters = function () { return [
- { type: WindowService }
- ]; };
- ButtonComponent.propDecorators = {
- iconOnly: [{ type: core.Input }],
- intent: [{ type: core.Input }],
- disabled: [{ type: core.Input }],
- icon: [{ type: core.Input }],
- iconClass: [{ type: core.Input }],
- tooltip: [{ type: core.Input }],
- className: [{ type: core.Input }],
- toggle: [{ type: core.Input }],
- iconSize: [{ type: core.Input }],
- iconRegular: [{ type: core.Input }],
- elementPosition: [{ type: core.Input }]
- };
- return ButtonComponent;
- }());
- if (false) {
- /** @type {?} */
- ButtonComponent.prototype.iconOnly;
- /** @type {?} */
- ButtonComponent.prototype.intent;
- /** @type {?} */
- ButtonComponent.prototype.disabled;
- /** @type {?} */
- ButtonComponent.prototype.icon;
- /** @type {?} */
- ButtonComponent.prototype.iconClass;
- /** @type {?} */
- ButtonComponent.prototype.tooltip;
- /** @type {?} */
- ButtonComponent.prototype.className;
- /** @type {?} */
- ButtonComponent.prototype.toggle;
- /** @type {?} */
- ButtonComponent.prototype.iconSize;
- /** @type {?} */
- ButtonComponent.prototype.iconRegular;
- /** @type {?} */
- ButtonComponent.prototype.elementPosition;
- /** @type {?} */
- ButtonComponent.prototype.showToolTip;
- /**
- * @type {?}
- * @private
- */
- ButtonComponent.prototype.isDesktop;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ButtonComponent = /** @class */ (function () {
+ function ButtonComponent(windowService) {
+ var _this = this;
+ this.iconOnly = true;
+ this.intent = 'default';
+ this.disabled = false;
+ this.toggle = false;
+ this.iconRegular = false;
+ this.elementPosition = 0;
+ this.showToolTip = false;
+ this.isDesktop = windowService.isDesktop();
+ windowService.onResize.subscribe((/**
+ * @param {?} w
+ * @return {?}
+ */
+ function (w) {
+ _this.isDesktop = windowService.isDesktop();
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ ButtonComponent.prototype.iconButtonClass = /**
+ * @return {?}
+ */
+ function () {
+ return this.iconOnly ? 'icon-button' : '';
+ };
+ /**
+ * @return {?}
+ */
+ ButtonComponent.prototype.onHovering = /**
+ * @return {?}
+ */
+ function () {
+ if (this.isDesktop && !this.disabled) {
+ this.className += ' active';
+ }
+ };
+ /**
+ * @return {?}
+ */
+ ButtonComponent.prototype.onUnhovering = /**
+ * @return {?}
+ */
+ function () {
+ if (this.isDesktop && !this.disabled) {
+ this.className = this.cleanAll(this.className, ' active');
+ }
+ };
+ /**
+ * @private
+ * @param {?} str
+ * @param {?} val
+ * @return {?}
+ */
+ ButtonComponent.prototype.cleanAll = /**
+ * @private
+ * @param {?} str
+ * @param {?} val
+ * @return {?}
+ */
+ function (str, val) {
+ while (str && str.indexOf(val) !== -1) {
+ str = str.replace(val, '');
+ }
+ return str;
+ };
+ ButtonComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-button',
+ template: "\r\n",
+ styles: [".icon-button{padding:0!important;margin:0 7px}.button{padding:0 10px;font-size:14px;color:#959da5;cursor:pointer;display:flex;flex-direction:column;align-items:center;align-content:center;justify-content:center;min-width:37px;height:37px;text-align:center;position:relative;white-space:nowrap}.button.inactive{cursor:not-allowed;opacity:.4}.button.active *{color:#ccd0d4}.button.primary{background-color:#3e4e5a;color:#fff}.button.primary.active{color:#fff;background-color:#688296}.button.brand{background-color:#25c2d4;color:#fff}.button.brand.active{color:#fff;background-color:#688296}.button .text{font-size:13px;padding-left:10px}.button .button-tooltip{display:flex;flex-direction:column}@media (max-width:1037px){.button{font-size:22px}.arrow-button{margin:5px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ButtonComponent.ctorParameters = function () { return [
+ { type: WindowService }
+ ]; };
+ ButtonComponent.propDecorators = {
+ iconOnly: [{ type: core.Input }],
+ intent: [{ type: core.Input }],
+ disabled: [{ type: core.Input }],
+ icon: [{ type: core.Input }],
+ iconClass: [{ type: core.Input }],
+ tooltip: [{ type: core.Input }],
+ className: [{ type: core.Input }],
+ toggle: [{ type: core.Input }],
+ iconSize: [{ type: core.Input }],
+ iconRegular: [{ type: core.Input }],
+ elementPosition: [{ type: core.Input }]
+ };
+ return ButtonComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ButtonComponent.prototype.iconOnly;
+ /** @type {?} */
+ ButtonComponent.prototype.intent;
+ /** @type {?} */
+ ButtonComponent.prototype.disabled;
+ /** @type {?} */
+ ButtonComponent.prototype.icon;
+ /** @type {?} */
+ ButtonComponent.prototype.iconClass;
+ /** @type {?} */
+ ButtonComponent.prototype.tooltip;
+ /** @type {?} */
+ ButtonComponent.prototype.className;
+ /** @type {?} */
+ ButtonComponent.prototype.toggle;
+ /** @type {?} */
+ ButtonComponent.prototype.iconSize;
+ /** @type {?} */
+ ButtonComponent.prototype.iconRegular;
+ /** @type {?} */
+ ButtonComponent.prototype.elementPosition;
+ /** @type {?} */
+ ButtonComponent.prototype.showToolTip;
+ /**
+ * @type {?}
+ * @private
+ */
+ ButtonComponent.prototype.isDesktop;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LogoComponent = /** @class */ (function () {
- function LogoComponent() {
- }
- /**
- * @return {?}
- */
- LogoComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- LogoComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-logo',
- template: "\n\n",
- styles: [".logo{background-color:#25c2d4;height:60px;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}.text{color:#fff;font-size:15px;text-transform:uppercase;margin:0 14px}.icon{display:none;font-size:32px;color:rgba(255,255,255,.5);margin:14px}@media (max-width:1037px){.logo{width:60px;height:60px}.logo .text{display:none}.logo .icon{display:block}}"]
- }] }
- ];
- /** @nocollapse */
- LogoComponent.ctorParameters = function () { return []; };
- LogoComponent.propDecorators = {
- logo: [{ type: core.Input }],
- icon: [{ type: core.Input }]
- };
- return LogoComponent;
- }());
- if (false) {
- /** @type {?} */
- LogoComponent.prototype.logo;
- /** @type {?} */
- LogoComponent.prototype.icon;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var LogoComponent = /** @class */ (function () {
+ function LogoComponent() {
+ }
+ /**
+ * @return {?}
+ */
+ LogoComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ LogoComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-logo',
+ template: "\r\n\r\n",
+ styles: [".logo{background-color:#25c2d4;height:60px;display:flex;align-items:center;justify-content:center}.text{color:#fff;font-size:15px;text-transform:uppercase;margin:0 14px}.icon{display:none;font-size:32px;color:rgba(255,255,255,.5);margin:14px}@media (max-width:1037px){.logo{width:60px;height:60px}.logo .text{display:none}.logo .icon{display:block}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ LogoComponent.ctorParameters = function () { return []; };
+ LogoComponent.propDecorators = {
+ logo: [{ type: core.Input }],
+ icon: [{ type: core.Input }]
+ };
+ return LogoComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ LogoComponent.prototype.logo;
+ /** @type {?} */
+ LogoComponent.prototype.icon;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TooltipComponent = /** @class */ (function () {
- function TooltipComponent() {
- this.position = 0;
- this.visibility = 'hidden';
- }
- /**
- * @return {?}
- */
- TooltipComponent.prototype.getClass = /**
- * @return {?}
- */
- function () {
- if (this.position === 0) {
- return 'tooltip';
- }
- return 'tooltip ' + (this.position > 0 ? 'last-element' : 'first-element');
- };
- Object.defineProperty(TooltipComponent.prototype, "show", {
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- this.visibility = value ? 'shown' : 'hidden';
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @return {?}
- */
- TooltipComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- TooltipComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-tooltip',
- template: " \n",
- styles: [".tooltip{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;background-color:#000;color:#fff;text-align:center;border-radius:0;padding:5px;z-index:1;font-size:10px;height:11px;line-height:11px;-ms-grid-row-align:center;align-self:center;margin:0!important}.first-element{margin-left:10px!important}.last-element{margin-left:-10px!important}.tooltip.hidden{visibility:hidden}.tooltip.shown{visibility:visible}.shown:after{content:\" \";position:absolute;bottom:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-bottom-color:#000}"]
- }] }
- ];
- /** @nocollapse */
- TooltipComponent.ctorParameters = function () { return []; };
- TooltipComponent.propDecorators = {
- text: [{ type: core.Input }],
- position: [{ type: core.Input }],
- show: [{ type: core.Input }]
- };
- return TooltipComponent;
- }());
- if (false) {
- /** @type {?} */
- TooltipComponent.prototype.text;
- /** @type {?} */
- TooltipComponent.prototype.position;
- /** @type {?} */
- TooltipComponent.prototype.visibility;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TooltipComponent = /** @class */ (function () {
+ function TooltipComponent() {
+ this.position = 0;
+ this.visibility = 'hidden';
+ }
+ /**
+ * @return {?}
+ */
+ TooltipComponent.prototype.getClass = /**
+ * @return {?}
+ */
+ function () {
+ if (this.position === 0) {
+ return 'tooltip';
+ }
+ return 'tooltip ' + (this.position > 0 ? 'last-element' : 'first-element');
+ };
+ Object.defineProperty(TooltipComponent.prototype, "show", {
+ set: /**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ this.visibility = value ? 'shown' : 'hidden';
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @return {?}
+ */
+ TooltipComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ TooltipComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-tooltip',
+ template: " \r\n",
+ styles: [".tooltip{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;background-color:#000;color:#fff;text-align:center;border-radius:0;padding:5px;z-index:1;font-size:10px;height:11px;line-height:11px;-ms-grid-row-align:center;align-self:center;margin:0!important}.first-element{margin-left:10px!important}.last-element{margin-left:-10px!important}.tooltip.hidden{visibility:hidden}.tooltip.shown{visibility:visible}.shown:after{content:\" \";position:absolute;bottom:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-bottom-color:#000}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TooltipComponent.ctorParameters = function () { return []; };
+ TooltipComponent.propDecorators = {
+ text: [{ type: core.Input }],
+ position: [{ type: core.Input }],
+ show: [{ type: core.Input }]
+ };
+ return TooltipComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ TooltipComponent.prototype.text;
+ /** @type {?} */
+ TooltipComponent.prototype.position;
+ /** @type {?} */
+ TooltipComponent.prototype.visibility;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var Api = /** @class */ (function () {
- function Api() {
- }
- Api.VIEWER_APP = '/viewer';
- Api.SIGNATURE_APP = '/signature';
- Api.ANNOTATION_APP = '/annotation';
- Api.SEARCH_APP = '/search';
- Api.EDITOR_APP = '/editor';
- Api.COMPARISON_APP = '/comparison';
- Api.CONVERSION_APP = '/conversion';
- Api.METADATA_APP = '/metadata';
- Api.DEFAULT_API_ENDPOINT = window.location.href;
- Api.LOAD_FILE_TREE = '/loadFileTree';
- Api.LOAD_CONFIG = '/loadConfig';
- Api.LOAD_DOCUMENT_DESCRIPTION = '/loadDocumentDescription';
- Api.LOAD_DOCUMENT_PAGE = '/loadDocumentPage';
- Api.LOAD_DOCUMENT_PROPERTIES = '/loadProperties';
- Api.LOAD_DOCUMENT_PROPERTIES_NAMES = '/loadPropertiesNames';
- Api.SAVE_PROPERTY = '/saveProperty';
- Api.REMOVE_PROPERTY = '/removeProperty';
- Api.ROTATE_DOCUMENT_PAGE = '/rotateDocumentPages';
- Api.UPLOAD_DOCUMENTS = '/uploadDocument';
- Api.DOWNLOAD_DOCUMENTS = '/downloadDocument';
- Api.LOAD_PRINT = '/loadPrint';
- Api.LOAD_PRINT_PDF = '/printPdf';
- Api.LOAD_THUMBNAILS = '/loadThumbnails';
- Api.LOAD_FORMATS = '/loadFormats';
- Api.SAVE_FILE = '/saveFile';
- Api.CREATE_FILE = '/createFile';
- Api.COMPARE_FILES = '/compare';
- Api.CONVERT_FILE = '/convert';
- Api.DELETE_SIGNATURE_FILE = '/deleteSignatureFile';
- Api.REMOVE_FROM_INDEX = '/removeFromIndex';
- Api.GET_FILE_STATUS = '/getFileStatus';
- Api.SAVE_OPTICAL_CODE = '/saveOpticalCode';
- Api.SAVE_TEXT = '/saveText';
- Api.SAVE_IMAGE = '/saveImage';
- Api.SAVE_STAMP = '/saveStamp';
- Api.SIGN = '/sign';
- Api.DOWNLOAD_SIGNED = '/downloadSigned';
- Api.LOAD_SIGNATURE_IMAGE = '/loadSignatureImage';
- Api.ANNOTATE = '/annotate';
- Api.SEARCH = '/search';
- Api.ADD_FILES_TO_INDEX = '/addFilesToIndex';
- Api.httpOptionsJson = {
- headers: new http.HttpHeaders({
- 'Content-Type': 'application/json',
- })
- };
- Api.httpOptionsJsonResponseTypeBlob = {
- headers: new http.HttpHeaders({
- 'Content-Type': 'application/json',
- }),
- responseType: (/** @type {?} */ ('blob'))
- };
- return Api;
- }());
- if (false) {
- /** @type {?} */
- Api.VIEWER_APP;
- /** @type {?} */
- Api.SIGNATURE_APP;
- /** @type {?} */
- Api.ANNOTATION_APP;
- /** @type {?} */
- Api.SEARCH_APP;
- /** @type {?} */
- Api.EDITOR_APP;
- /** @type {?} */
- Api.COMPARISON_APP;
- /** @type {?} */
- Api.CONVERSION_APP;
- /** @type {?} */
- Api.METADATA_APP;
- /** @type {?} */
- Api.DEFAULT_API_ENDPOINT;
- /** @type {?} */
- Api.LOAD_FILE_TREE;
- /** @type {?} */
- Api.LOAD_CONFIG;
- /** @type {?} */
- Api.LOAD_DOCUMENT_DESCRIPTION;
- /** @type {?} */
- Api.LOAD_DOCUMENT_PAGE;
- /** @type {?} */
- Api.LOAD_DOCUMENT_PROPERTIES;
- /** @type {?} */
- Api.LOAD_DOCUMENT_PROPERTIES_NAMES;
- /** @type {?} */
- Api.SAVE_PROPERTY;
- /** @type {?} */
- Api.REMOVE_PROPERTY;
- /** @type {?} */
- Api.ROTATE_DOCUMENT_PAGE;
- /** @type {?} */
- Api.UPLOAD_DOCUMENTS;
- /** @type {?} */
- Api.DOWNLOAD_DOCUMENTS;
- /** @type {?} */
- Api.LOAD_PRINT;
- /** @type {?} */
- Api.LOAD_PRINT_PDF;
- /** @type {?} */
- Api.LOAD_THUMBNAILS;
- /** @type {?} */
- Api.LOAD_FORMATS;
- /** @type {?} */
- Api.SAVE_FILE;
- /** @type {?} */
- Api.CREATE_FILE;
- /** @type {?} */
- Api.COMPARE_FILES;
- /** @type {?} */
- Api.CONVERT_FILE;
- /** @type {?} */
- Api.DELETE_SIGNATURE_FILE;
- /** @type {?} */
- Api.REMOVE_FROM_INDEX;
- /** @type {?} */
- Api.GET_FILE_STATUS;
- /** @type {?} */
- Api.SAVE_OPTICAL_CODE;
- /** @type {?} */
- Api.SAVE_TEXT;
- /** @type {?} */
- Api.SAVE_IMAGE;
- /** @type {?} */
- Api.SAVE_STAMP;
- /** @type {?} */
- Api.SIGN;
- /** @type {?} */
- Api.DOWNLOAD_SIGNED;
- /** @type {?} */
- Api.LOAD_SIGNATURE_IMAGE;
- /** @type {?} */
- Api.ANNOTATE;
- /** @type {?} */
- Api.SEARCH;
- /** @type {?} */
- Api.ADD_FILES_TO_INDEX;
- /** @type {?} */
- Api.httpOptionsJson;
- /** @type {?} */
- Api.httpOptionsJsonResponseTypeBlob;
- }
- var ConfigService = /** @class */ (function () {
- function ConfigService() {
- this.apiEndpoint = Api.DEFAULT_API_ENDPOINT;
- }
- Object.defineProperty(ConfigService.prototype, "apiEndpoint", {
- get: /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint;
- },
- set: /**
- * @param {?} url
- * @return {?}
- */
- function (url) {
- this._apiEndpoint = url && url.trim().endsWith('/') ? url.substring(0, url.length - 1) : url;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} app
- * @return {?}
- */
- ConfigService.prototype.getConfigEndpoint = /**
- * @param {?} app
- * @return {?}
- */
- function (app) {
- return (this.apiEndpoint.endsWith(app) ? this.apiEndpoint : this.apiEndpoint + app) + Api.LOAD_CONFIG;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getViewerApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.endsWith(Api.VIEWER_APP) ? this._apiEndpoint : this._apiEndpoint + Api.VIEWER_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getEditorApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.trim().endsWith(Api.EDITOR_APP) ? this._apiEndpoint : this._apiEndpoint + Api.EDITOR_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getComparisonApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.trim().endsWith(Api.COMPARISON_APP) ? this._apiEndpoint : this._apiEndpoint + Api.COMPARISON_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getConversionApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.trim().endsWith(Api.CONVERSION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.CONVERSION_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getMetadataApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.trim().endsWith(Api.METADATA_APP) ? this._apiEndpoint : this._apiEndpoint + Api.METADATA_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getSignatureApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.endsWith(Api.SIGNATURE_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SIGNATURE_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getAnnotationApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.endsWith(Api.ANNOTATION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.ANNOTATION_APP;
- };
- /**
- * @return {?}
- */
- ConfigService.prototype.getSearchApiEndpoint = /**
- * @return {?}
- */
- function () {
- return this._apiEndpoint.endsWith(Api.SEARCH_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SEARCH_APP;
- };
- ConfigService.decorators = [
- { type: core.Injectable }
- ];
- /** @nocollapse */
- ConfigService.ctorParameters = function () { return []; };
- return ConfigService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ConfigService.prototype._apiEndpoint;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var Api = /** @class */ (function () {
+ function Api() {
+ }
+ Api.VIEWER_APP = '/viewer';
+ Api.SIGNATURE_APP = '/signature';
+ Api.ANNOTATION_APP = '/annotation';
+ Api.SEARCH_APP = '/search';
+ Api.EDITOR_APP = '/editor';
+ Api.COMPARISON_APP = '/comparison';
+ Api.CONVERSION_APP = '/conversion';
+ Api.METADATA_APP = '/metadata';
+ Api.DEFAULT_API_ENDPOINT = window.location.href;
+ Api.LOAD_FILE_TREE = '/loadFileTree';
+ Api.LOAD_CONFIG = '/loadConfig';
+ Api.LOAD_DOCUMENT_DESCRIPTION = '/loadDocumentDescription';
+ Api.LOAD_DOCUMENT_PAGE = '/loadDocumentPage';
+ Api.LOAD_DOCUMENT_PROPERTIES = '/loadProperties';
+ Api.LOAD_DOCUMENT_PROPERTIES_NAMES = '/loadPropertiesNames';
+ Api.SAVE_PROPERTY = '/saveProperty';
+ Api.REMOVE_PROPERTY = '/removeProperty';
+ Api.ROTATE_DOCUMENT_PAGE = '/rotateDocumentPages';
+ Api.UPLOAD_DOCUMENTS = '/uploadDocument';
+ Api.DOWNLOAD_DOCUMENTS = '/downloadDocument';
+ Api.LOAD_PRINT = '/loadPrint';
+ Api.LOAD_PRINT_PDF = '/printPdf';
+ Api.LOAD_THUMBNAILS = '/loadThumbnails';
+ Api.LOAD_FORMATS = '/loadFormats';
+ Api.SAVE_FILE = '/saveFile';
+ Api.CREATE_FILE = '/createFile';
+ Api.COMPARE_FILES = '/compare';
+ Api.CONVERT_FILE = '/convert';
+ Api.DELETE_SIGNATURE_FILE = '/deleteSignatureFile';
+ Api.REMOVE_FROM_INDEX = '/removeFromIndex';
+ Api.GET_FILE_STATUS = '/getFileStatus';
+ Api.SAVE_OPTICAL_CODE = '/saveOpticalCode';
+ Api.SAVE_TEXT = '/saveText';
+ Api.SAVE_IMAGE = '/saveImage';
+ Api.SAVE_STAMP = '/saveStamp';
+ Api.SIGN = '/sign';
+ Api.DOWNLOAD_SIGNED = '/downloadSigned';
+ Api.LOAD_SIGNATURE_IMAGE = '/loadSignatureImage';
+ Api.ANNOTATE = '/annotate';
+ Api.SEARCH = '/search';
+ Api.ADD_FILES_TO_INDEX = '/addFilesToIndex';
+ Api.httpOptionsJson = {
+ headers: new http.HttpHeaders({
+ 'Content-Type': 'application/json',
+ })
+ };
+ Api.httpOptionsJsonResponseTypeBlob = {
+ headers: new http.HttpHeaders({
+ 'Content-Type': 'application/json',
+ }),
+ responseType: (/** @type {?} */ ('blob'))
+ };
+ return Api;
+ }());
+ if (false) {
+ /** @type {?} */
+ Api.VIEWER_APP;
+ /** @type {?} */
+ Api.SIGNATURE_APP;
+ /** @type {?} */
+ Api.ANNOTATION_APP;
+ /** @type {?} */
+ Api.SEARCH_APP;
+ /** @type {?} */
+ Api.EDITOR_APP;
+ /** @type {?} */
+ Api.COMPARISON_APP;
+ /** @type {?} */
+ Api.CONVERSION_APP;
+ /** @type {?} */
+ Api.METADATA_APP;
+ /** @type {?} */
+ Api.DEFAULT_API_ENDPOINT;
+ /** @type {?} */
+ Api.LOAD_FILE_TREE;
+ /** @type {?} */
+ Api.LOAD_CONFIG;
+ /** @type {?} */
+ Api.LOAD_DOCUMENT_DESCRIPTION;
+ /** @type {?} */
+ Api.LOAD_DOCUMENT_PAGE;
+ /** @type {?} */
+ Api.LOAD_DOCUMENT_PROPERTIES;
+ /** @type {?} */
+ Api.LOAD_DOCUMENT_PROPERTIES_NAMES;
+ /** @type {?} */
+ Api.SAVE_PROPERTY;
+ /** @type {?} */
+ Api.REMOVE_PROPERTY;
+ /** @type {?} */
+ Api.ROTATE_DOCUMENT_PAGE;
+ /** @type {?} */
+ Api.UPLOAD_DOCUMENTS;
+ /** @type {?} */
+ Api.DOWNLOAD_DOCUMENTS;
+ /** @type {?} */
+ Api.LOAD_PRINT;
+ /** @type {?} */
+ Api.LOAD_PRINT_PDF;
+ /** @type {?} */
+ Api.LOAD_THUMBNAILS;
+ /** @type {?} */
+ Api.LOAD_FORMATS;
+ /** @type {?} */
+ Api.SAVE_FILE;
+ /** @type {?} */
+ Api.CREATE_FILE;
+ /** @type {?} */
+ Api.COMPARE_FILES;
+ /** @type {?} */
+ Api.CONVERT_FILE;
+ /** @type {?} */
+ Api.DELETE_SIGNATURE_FILE;
+ /** @type {?} */
+ Api.REMOVE_FROM_INDEX;
+ /** @type {?} */
+ Api.GET_FILE_STATUS;
+ /** @type {?} */
+ Api.SAVE_OPTICAL_CODE;
+ /** @type {?} */
+ Api.SAVE_TEXT;
+ /** @type {?} */
+ Api.SAVE_IMAGE;
+ /** @type {?} */
+ Api.SAVE_STAMP;
+ /** @type {?} */
+ Api.SIGN;
+ /** @type {?} */
+ Api.DOWNLOAD_SIGNED;
+ /** @type {?} */
+ Api.LOAD_SIGNATURE_IMAGE;
+ /** @type {?} */
+ Api.ANNOTATE;
+ /** @type {?} */
+ Api.SEARCH;
+ /** @type {?} */
+ Api.ADD_FILES_TO_INDEX;
+ /** @type {?} */
+ Api.httpOptionsJson;
+ /** @type {?} */
+ Api.httpOptionsJsonResponseTypeBlob;
+ }
+ var ConfigService = /** @class */ (function () {
+ function ConfigService() {
+ this.apiEndpoint = Api.DEFAULT_API_ENDPOINT;
+ }
+ Object.defineProperty(ConfigService.prototype, "apiEndpoint", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint;
+ },
+ set: /**
+ * @param {?} url
+ * @return {?}
+ */
+ function (url) {
+ this._apiEndpoint = url && url.trim().endsWith('/') ? url.substring(0, url.length - 1) : url;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} app
+ * @return {?}
+ */
+ ConfigService.prototype.getConfigEndpoint = /**
+ * @param {?} app
+ * @return {?}
+ */
+ function (app) {
+ return (this.apiEndpoint.endsWith(app) ? this.apiEndpoint : this.apiEndpoint + app) + Api.LOAD_CONFIG;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getViewerApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.endsWith(Api.VIEWER_APP) ? this._apiEndpoint : this._apiEndpoint + Api.VIEWER_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getEditorApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.trim().endsWith(Api.EDITOR_APP) ? this._apiEndpoint : this._apiEndpoint + Api.EDITOR_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getComparisonApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.trim().endsWith(Api.COMPARISON_APP) ? this._apiEndpoint : this._apiEndpoint + Api.COMPARISON_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getConversionApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.trim().endsWith(Api.CONVERSION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.CONVERSION_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getMetadataApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.trim().endsWith(Api.METADATA_APP) ? this._apiEndpoint : this._apiEndpoint + Api.METADATA_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getSignatureApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.endsWith(Api.SIGNATURE_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SIGNATURE_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getAnnotationApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.endsWith(Api.ANNOTATION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.ANNOTATION_APP;
+ };
+ /**
+ * @return {?}
+ */
+ ConfigService.prototype.getSearchApiEndpoint = /**
+ * @return {?}
+ */
+ function () {
+ return this._apiEndpoint.endsWith(Api.SEARCH_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SEARCH_APP;
+ };
+ ConfigService.decorators = [
+ { type: core.Injectable }
+ ];
+ /** @nocollapse */
+ ConfigService.ctorParameters = function () { return []; };
+ return ConfigService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ConfigService.prototype._apiEndpoint;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var CommonModals = /** @class */ (function () {
- function CommonModals() {
- }
- CommonModals.PasswordRequired = "gd-password-required";
- CommonModals.ErrorMessage = "gd-error-message";
- CommonModals.BrowseFiles = "gd-browse-files";
- CommonModals.CreateDocument = "gd-create-document";
- CommonModals.OperationSuccess = "gd-success-modal";
- CommonModals.DrawHandSignature = "gd-draw-hand-signature";
- CommonModals.DrawStampSignature = "gd-draw-stamp-signature";
- CommonModals.InformationMessage = "gd-information-message";
- return CommonModals;
- }());
- if (false) {
- /** @type {?} */
- CommonModals.PasswordRequired;
- /** @type {?} */
- CommonModals.ErrorMessage;
- /** @type {?} */
- CommonModals.BrowseFiles;
- /** @type {?} */
- CommonModals.CreateDocument;
- /** @type {?} */
- CommonModals.OperationSuccess;
- /** @type {?} */
- CommonModals.DrawHandSignature;
- /** @type {?} */
- CommonModals.DrawStampSignature;
- /** @type {?} */
- CommonModals.InformationMessage;
- }
- var ModalService = /** @class */ (function () {
- function ModalService() {
- this.modals = [];
- }
- /**
- * @param {?} modal
- * @return {?}
- */
- ModalService.prototype.add = /**
- * @param {?} modal
- * @return {?}
- */
- function (modal) {
- this.modals.push(modal);
- };
- /**
- * @param {?} id
- * @return {?}
- */
- ModalService.prototype.remove = /**
- * @param {?} id
- * @return {?}
- */
- function (id) {
- this.modals = this.modals.filter((/**
- * @param {?} x
- * @return {?}
- */
- function (x) { return x.id !== id; }));
- };
- /**
- * @param {?} id
- * @return {?}
- */
- ModalService.prototype.open = /**
- * @param {?} id
- * @return {?}
- */
- function (id) {
- /** @type {?} */
- var modal = this.modals.filter((/**
- * @param {?} x
- * @return {?}
- */
- function (x) { return x.id === id; }))[0];
- if (modal) {
- modal.open();
- }
- };
- /**
- * @param {?} id
- * @return {?}
- */
- ModalService.prototype.close = /**
- * @param {?} id
- * @return {?}
- */
- function (id) {
- /** @type {?} */
- var modal = this.modals.filter((/**
- * @param {?} x
- * @return {?}
- */
- function (x) { return x.id === id; }))[0];
- if (modal) {
- modal.close();
- }
- };
- return ModalService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ModalService.prototype.modals;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var CommonModals = /** @class */ (function () {
+ function CommonModals() {
+ }
+ CommonModals.PasswordRequired = "gd-password-required";
+ CommonModals.ErrorMessage = "gd-error-message";
+ CommonModals.BrowseFiles = "gd-browse-files";
+ CommonModals.CreateDocument = "gd-create-document";
+ CommonModals.OperationSuccess = "gd-success-modal";
+ CommonModals.DrawHandSignature = "gd-draw-hand-signature";
+ CommonModals.DrawStampSignature = "gd-draw-stamp-signature";
+ CommonModals.InformationMessage = "gd-information-message";
+ return CommonModals;
+ }());
+ if (false) {
+ /** @type {?} */
+ CommonModals.PasswordRequired;
+ /** @type {?} */
+ CommonModals.ErrorMessage;
+ /** @type {?} */
+ CommonModals.BrowseFiles;
+ /** @type {?} */
+ CommonModals.CreateDocument;
+ /** @type {?} */
+ CommonModals.OperationSuccess;
+ /** @type {?} */
+ CommonModals.DrawHandSignature;
+ /** @type {?} */
+ CommonModals.DrawStampSignature;
+ /** @type {?} */
+ CommonModals.InformationMessage;
+ }
+ var ModalService = /** @class */ (function () {
+ function ModalService() {
+ this.modals = [];
+ }
+ /**
+ * @param {?} modal
+ * @return {?}
+ */
+ ModalService.prototype.add = /**
+ * @param {?} modal
+ * @return {?}
+ */
+ function (modal) {
+ this.modals.push(modal);
+ };
+ /**
+ * @param {?} id
+ * @return {?}
+ */
+ ModalService.prototype.remove = /**
+ * @param {?} id
+ * @return {?}
+ */
+ function (id) {
+ this.modals = this.modals.filter((/**
+ * @param {?} x
+ * @return {?}
+ */
+ function (x) { return x.id !== id; }));
+ };
+ /**
+ * @param {?} id
+ * @return {?}
+ */
+ ModalService.prototype.open = /**
+ * @param {?} id
+ * @return {?}
+ */
+ function (id) {
+ /** @type {?} */
+ var modal = this.modals.filter((/**
+ * @param {?} x
+ * @return {?}
+ */
+ function (x) { return x.id === id; }))[0];
+ if (modal) {
+ modal.open();
+ }
+ };
+ /**
+ * @param {?} id
+ * @return {?}
+ */
+ ModalService.prototype.close = /**
+ * @param {?} id
+ * @return {?}
+ */
+ function (id) {
+ /** @type {?} */
+ var modal = this.modals.filter((/**
+ * @param {?} x
+ * @return {?}
+ */
+ function (x) { return x.id === id; }))[0];
+ if (modal) {
+ modal.close();
+ }
+ };
+ return ModalService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ModalService.prototype.modals;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ModalComponent = /** @class */ (function () {
- function ModalComponent(modalService, el) {
- this.modalService = modalService;
- this.visible = new core.EventEmitter();
- this.cancel = new core.EventEmitter();
- this.visibility = false;
- this.element = el.nativeElement;
- }
- /**
- * @return {?}
- */
- ModalComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- if (!this.id) {
- console.error('modal must have an id');
- return;
- }
- document.body.appendChild(this.element);
- this.modalService.add(this);
- };
- /**
- * @return {?}
- */
- ModalComponent.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this.modalService.remove(this.id);
- this.element.remove();
- };
- /**
- * @return {?}
- */
- ModalComponent.prototype.open = /**
- * @return {?}
- */
- function () {
- this.visibility = true;
- this.visible.emit(true);
- };
- /**
- * @return {?}
- */
- ModalComponent.prototype.close = /**
- * @return {?}
- */
- function () {
- event.preventDefault();
- event.stopPropagation();
- this.visibility = false;
- this.visible.emit(false);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ModalComponent.prototype.onClose = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.stopPropagation();
- if ($event && $event.target && ((/** @type {?} */ ($event.target))).id === 'modalDialog') {
- this.close();
- }
- };
- /**
- * @return {?}
- */
- ModalComponent.prototype.cancelClose = /**
- * @return {?}
- */
- function () {
- this.cancel.emit(false);
- this.close();
- };
- ModalComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-modal',
- template: "\n
\n\n\n\n",
- styles: ["@import url(https://fonts.googleapis.com/css?family=Montserrat&display=swap);:host *{font-family:'Open Sans',Arial,Helvetica,sans-serif}.gd-modal{overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0;background-color:rgba(0,0,0,.5)}.gd-modal-dialog{box-shadow:#0005 0 0 10px;position:fixed;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1051}.gd-modal-dialog ::ng-deep .button{-webkit-box-orient:unset!important;-webkit-box-direction:unset!important;flex-direction:unset!important}.gd-modal-content{background-color:#fff;height:100%;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.gd-modal-header{height:60px;padding:0 12px 0 24px;background-color:#3e4e5a}.gd-modal-close{position:absolute;right:12px;top:12px;cursor:pointer;color:#fff;width:37px;height:37px;text-align:center}.gd-modal-close span{font-size:18px;font-weight:900;height:19px;width:10px;line-height:36px}.gd-modal-title{font-size:16px;font-weight:400;padding-top:17px;padding-bottom:22px;margin:0;color:#fff}.gd-modal-body{background-color:#fff;overflow:hidden;overflow-y:auto;height:calc(100% - 75px)}.gd-modal-footer{height:auto}.gd-modal-footer>.btn{float:right;margin:20px 15px;padding:10px 20px;cursor:pointer;font-size:12px}@media (max-width:1037px){.gd-modal-dialog{width:100%;height:100%}.gd-modal-body{height:100%}}"]
- }] }
- ];
- /** @nocollapse */
- ModalComponent.ctorParameters = function () { return [
- { type: ModalService },
- { type: core.ElementRef }
- ]; };
- ModalComponent.propDecorators = {
- id: [{ type: core.Input }],
- title: [{ type: core.Input }],
- visible: [{ type: core.Output }],
- cancel: [{ type: core.Output }]
- };
- return ModalComponent;
- }());
- if (false) {
- /** @type {?} */
- ModalComponent.prototype.id;
- /** @type {?} */
- ModalComponent.prototype.title;
- /** @type {?} */
- ModalComponent.prototype.visible;
- /** @type {?} */
- ModalComponent.prototype.cancel;
- /** @type {?} */
- ModalComponent.prototype.visibility;
- /**
- * @type {?}
- * @private
- */
- ModalComponent.prototype.element;
- /**
- * @type {?}
- * @private
- */
- ModalComponent.prototype.modalService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ModalComponent = /** @class */ (function () {
+ function ModalComponent(modalService, el) {
+ this.modalService = modalService;
+ this.visible = new core.EventEmitter();
+ this.cancel = new core.EventEmitter();
+ this.visibility = false;
+ this.element = el.nativeElement;
+ }
+ /**
+ * @return {?}
+ */
+ ModalComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ if (!this.id) {
+ console.error('modal must have an id');
+ return;
+ }
+ document.body.appendChild(this.element);
+ this.modalService.add(this);
+ };
+ /**
+ * @return {?}
+ */
+ ModalComponent.prototype.ngOnDestroy = /**
+ * @return {?}
+ */
+ function () {
+ this.modalService.remove(this.id);
+ this.element.remove();
+ };
+ /**
+ * @return {?}
+ */
+ ModalComponent.prototype.open = /**
+ * @return {?}
+ */
+ function () {
+ this.visibility = true;
+ this.visible.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ ModalComponent.prototype.close = /**
+ * @return {?}
+ */
+ function () {
+ event.preventDefault();
+ event.stopPropagation();
+ this.visibility = false;
+ this.visible.emit(false);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ModalComponent.prototype.onClose = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ $event.stopPropagation();
+ if ($event && $event.target && ((/** @type {?} */ ($event.target))).id === 'modalDialog') {
+ this.close();
+ }
+ };
+ /**
+ * @return {?}
+ */
+ ModalComponent.prototype.cancelClose = /**
+ * @return {?}
+ */
+ function () {
+ this.cancel.emit(false);
+ this.close();
+ };
+ ModalComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-modal',
+ template: "\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n\r\n",
+ styles: ["@import url(https://fonts.googleapis.com/css?family=Montserrat&display=swap);:host *{font-family:'Open Sans',Arial,Helvetica,sans-serif}.gd-modal{overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0;background-color:rgba(0,0,0,.5)}.gd-modal-dialog{box-shadow:#0005 0 0 10px;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1051}.gd-modal-dialog ::ng-deep .button{flex-direction:unset!important}.gd-modal-content{background-color:#fff;height:100%;display:flex;flex-direction:column}.gd-modal-header{height:60px;padding:0 12px 0 24px;background-color:#3e4e5a}.gd-modal-close{position:absolute;right:12px;top:12px;cursor:pointer;color:#fff;width:37px;height:37px;text-align:center}.gd-modal-close span{font-size:18px;font-weight:900;height:19px;width:10px;line-height:36px}.gd-modal-title{font-size:16px;font-weight:400;padding-top:17px;padding-bottom:22px;margin:0;color:#fff}.gd-modal-body{background-color:#fff;overflow:hidden;overflow-y:auto;height:calc(100% - 75px)}.gd-modal-footer{height:auto}.gd-modal-footer>.btn{float:right;margin:20px 15px;padding:10px 20px;cursor:pointer;font-size:12px}@media (max-width:1037px){.gd-modal-dialog{width:100%;height:100%}.gd-modal-body{height:100%}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ModalComponent.ctorParameters = function () { return [
+ { type: ModalService },
+ { type: core.ElementRef }
+ ]; };
+ ModalComponent.propDecorators = {
+ id: [{ type: core.Input }],
+ title: [{ type: core.Input }],
+ visible: [{ type: core.Output }],
+ cancel: [{ type: core.Output }]
+ };
+ return ModalComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ModalComponent.prototype.id;
+ /** @type {?} */
+ ModalComponent.prototype.title;
+ /** @type {?} */
+ ModalComponent.prototype.visible;
+ /** @type {?} */
+ ModalComponent.prototype.cancel;
+ /** @type {?} */
+ ModalComponent.prototype.visibility;
+ /**
+ * @type {?}
+ * @private
+ */
+ ModalComponent.prototype.element;
+ /**
+ * @type {?}
+ * @private
+ */
+ ModalComponent.prototype.modalService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var PageModel = /** @class */ (function () {
- function PageModel() {
- }
- return PageModel;
- }());
- if (false) {
- /** @type {?} */
- PageModel.prototype.data;
- /** @type {?} */
- PageModel.prototype.angle;
- /** @type {?} */
- PageModel.prototype.width;
- /** @type {?} */
- PageModel.prototype.height;
- /** @type {?} */
- PageModel.prototype.number;
- /** @type {?} */
- PageModel.prototype.editable;
- }
- var RotatedPage = /** @class */ (function () {
- function RotatedPage() {
- }
- return RotatedPage;
- }());
- if (false) {
- /** @type {?} */
- RotatedPage.prototype.pageNumber;
- /** @type {?} */
- RotatedPage.prototype.angle;
- }
- var FileCredentials = /** @class */ (function () {
- function FileCredentials(guid, password) {
- this.guid = guid;
- this.password = password;
- }
- return FileCredentials;
- }());
- if (false) {
- /** @type {?} */
- FileCredentials.prototype.guid;
- /** @type {?} */
- FileCredentials.prototype.password;
- }
- var SaveFile = /** @class */ (function (_super) {
- __extends(SaveFile, _super);
- function SaveFile(guid, password, content) {
- var _this = _super.call(this, guid, password) || this;
- _this.content = content;
- return _this;
- }
- return SaveFile;
- }(FileCredentials));
- if (false) {
- /** @type {?} */
- SaveFile.prototype.content;
- }
- var FileDescription = /** @class */ (function () {
- function FileDescription() {
- this.printAllowed = true;
- }
- return FileDescription;
- }());
- if (false) {
- /** @type {?} */
- FileDescription.prototype.guid;
- /** @type {?} */
- FileDescription.prototype.pages;
- /** @type {?} */
- FileDescription.prototype.printAllowed;
- /** @type {?} */
- FileDescription.prototype.showGridLines;
- /** @type {?} */
- FileDescription.prototype.thumbnails;
- }
- var FileModel = /** @class */ (function () {
- function FileModel() {
- }
- return FileModel;
- }());
- if (false) {
- /** @type {?} */
- FileModel.prototype.guid;
- /** @type {?} */
- FileModel.prototype.name;
- /** @type {?} */
- FileModel.prototype.directory;
- /** @type {?} */
- FileModel.prototype.size;
- /** @type {?} */
- FileModel.prototype.isDirectory;
- }
- var HttpError = /** @class */ (function () {
- function HttpError() {
- }
- HttpError.BadRequest = 400;
- HttpError.Unauthorized = 401;
- HttpError.Forbidden = 403;
- HttpError.NotFound = 404;
- HttpError.TimeOut = 408;
- HttpError.Conflict = 409;
- HttpError.InternalServerError = 500;
- return HttpError;
- }());
- if (false) {
- /** @type {?} */
- HttpError.BadRequest;
- /** @type {?} */
- HttpError.Unauthorized;
- /** @type {?} */
- HttpError.Forbidden;
- /** @type {?} */
- HttpError.NotFound;
- /** @type {?} */
- HttpError.TimeOut;
- /** @type {?} */
- HttpError.Conflict;
- /** @type {?} */
- HttpError.InternalServerError;
- }
- var Utils = /** @class */ (function () {
- function Utils() {
- }
- /**
- * @param {?} event
- * @return {?}
- */
- Utils.getMousePosition = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- /** @type {?} */
- var mouse = {
- x: 0,
- y: 0
- };
- /** @type {?} */
- var wEvent = (/** @type {?} */ (window.event));
- /** @type {?} */
- var ev = event || wEvent;
- if (ev.pageX || wEvent.pageX || wEvent.screenX || (ev.touches && ev.touches[0] && ev.touches[0].pageX)) { //Moz
- //Moz
- /** @type {?} */
- var pageX = typeof ev.pageX !== "undefined" && ev.pageX !== 0 ? ev.pageX : wEvent.pageX;
- /** @type {?} */
- var pageY = typeof ev.pageY !== "undefined" && ev.pageY !== 0 ? ev.pageY : wEvent.pageY;
- /** @type {?} */
- var screenX_1 = typeof wEvent.screenX !== "undefined" && wEvent.screenY !== 0;
- /** @type {?} */
- var screenY_1 = typeof wEvent.screenY !== "undefined" && wEvent.screenY !== 0;
- mouse.x = pageX ? pageX : (screenX_1 ? wEvent.screenX : ev.touches[0].pageX);
- mouse.y = pageY ? pageY : (screenY_1 ? wEvent.screenY : ev.touches[0].pageY);
- }
- else if (ev.clientX) { //IE
- mouse.x = ev.clientX + document.body.scrollLeft;
- mouse.y = ev.clientY + document.body.scrollTop;
- }
- return mouse;
- };
- /**
- * @param {?} color
- * @return {?}
- */
- Utils.toRgb = /**
- * @param {?} color
- * @return {?}
- */
- function (color) {
- /** @type {?} */
- var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color);
- if (result) {
- /** @type {?} */
- var r = parseInt(result[1], 16);
- /** @type {?} */
- var g = parseInt(result[2], 16);
- /** @type {?} */
- var b = parseInt(result[3], 16);
- return result ? 'rgb(' + r + ',' + g + ',' + b + ')' : '';
- }
- return color;
- };
- /**
- * @param {?} color
- * @return {?}
- */
- Utils.toHex = /**
- * @param {?} color
- * @return {?}
- */
- function (color) {
- // check if color is standard hex value
- if (color.match(/[0-9A-F]{6}|[0-9A-F]{3}$/i)) {
- return (color.charAt(0) === "#") ? color : ("#" + color);
- // check if color is RGB value -> convert to hex
- }
- else if (color.match(/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/)) {
- /** @type {?} */
- var c = ([parseInt(RegExp.$1, 10), parseInt(RegExp.$2, 10), parseInt(RegExp.$3, 10)]);
- /** @type {?} */
- var pad = (/**
- * @param {?} str
- * @return {?}
- */
- function (str) {
- if (str.length < 2) {
- for (var i = 0, len = 2 - str.length; i < len; i++) {
- str = '0' + str;
- }
- }
- return str;
- });
- if (c.length === 3) {
- /** @type {?} */
- var r = pad(c[0].toString(16));
- /** @type {?} */
- var g = pad(c[1].toString(16));
- /** @type {?} */
- var b = pad(c[2].toString(16));
- return '#' + r + g + b;
- }
- // else do nothing
- }
- else {
- return '';
- }
- };
- return Utils;
- }());
- var FileUtil = /** @class */ (function () {
- function FileUtil() {
- }
- /**
- * @param {?} filename
- * @param {?} isDirectory
- * @return {?}
- */
- FileUtil.find = /**
- * @param {?} filename
- * @param {?} isDirectory
- * @return {?}
- */
- function (filename, isDirectory) {
- if (filename && !isDirectory) {
- /** @type {?} */
- var strings = filename.split('.');
- /** @type {?} */
- var name_1 = strings.pop().toLowerCase();
- if (typeof FileUtil.map[name_1] === "undefined") {
- return strings.length > 0 ? FileUtil.map['unknown'] : FileUtil.map['folder'];
- }
- else {
- return FileUtil.map[name_1];
- }
- }
- else {
- return FileUtil.map['folder'];
- }
- };
- FileUtil.map = {
- 'folder': { 'format': '', 'icon': 'folder' },
- 'pdf': { 'format': 'Portable Document Format', 'icon': 'file-pdf', 'unit': 'pt' },
- 'doc': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'docx': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'docm': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'dot': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'dotx': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'dotm': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
- 'xls': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xlsx': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xlsm': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xlsb': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xls2003': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xltx': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'xltm': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
- 'ppt': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'pptx': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'pps': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'ppsx': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'vsd': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vdx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vss': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vsx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vst': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vtx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vsdx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vdw': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vstx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'vssx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
- 'mpp': { 'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt' },
- 'mpt': { 'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt' },
- 'msg': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
- 'eml': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
- 'emlx': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
- 'one': { 'format': 'Microsoft OneNote', 'icon': 'file-word', 'unit': 'pt' },
- 'odt': { 'format': 'Open Document Text', 'icon': 'file-word', 'unit': 'pt' },
- 'ott': { 'format': 'Open Document Text Template', 'icon': 'file-word', 'unit': 'pt' },
- 'ods': { 'format': 'Open Document Spreadsheet', 'icon': 'file-excel', 'unit': 'px' },
- 'odp': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'otp': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'ots': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'potx': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'potm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'pptm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'ppsm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
- 'rtf': { 'format': 'Rich Text Format', 'icon': 'file-alt', 'unit': 'pt' },
- 'txt': { 'format': 'Plain Text File', 'icon': 'file-alt', 'unit': 'pt' },
- 'csv': { 'format': 'Comma-Separated Values', 'icon': 'file-excel', 'unit': 'px' },
- 'html': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
- 'mht': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
- 'mhtml': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
- 'xml': { 'format': 'Extensible Markup Language', 'icon': 'file-word', 'unit': 'pt' },
- 'xps': { 'format': 'XML Paper Specification', 'icon': 'file-word', 'unit': 'pt' },
- 'dxf': { 'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px' },
- 'dwg': { 'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px' },
- 'bmp': { 'format': 'Bitmap Picture', 'icon': 'file-image', 'unit': 'px' },
- 'gif': { 'format': 'Graphics Interchange Format', 'icon': 'file-image', 'unit': 'px' },
- 'jpg': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
- 'jpe': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
- 'jpeg': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
- 'jfif': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
- 'png': { 'format': 'Portable Network Graphics', 'icon': 'file-image', 'unit': 'px' },
- 'tiff': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
- 'tif': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
- 'psd': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
- 'svg': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
- 'jp2': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
- 'epub': { 'format': 'Electronic Publication', 'icon': 'file-pdf', 'unit': 'pt' },
- 'ico': { 'format': 'Windows Icon', 'icon': 'file-image', 'unit': 'px' },
- 'webp': { 'format': 'Compressed Image', 'icon': 'file-image', 'unit': 'px' },
- 'mobi': { 'format': 'Mobipocket eBook', 'icon': 'file-pdf', 'unit': 'pt' },
- 'tex': { 'format': 'LaTeX Source Document', 'icon': 'file-pdf', 'unit': 'pt' },
- 'djvu': { 'format': 'Multi-Layer Raster Image', 'icon': 'file-alt', 'unit': 'pt' },
- 'unknown': { 'format': 'This format is not supported', 'icon': 'file' },
- };
- return FileUtil;
- }());
- if (false) {
- /** @type {?} */
- FileUtil.map;
- }
- var FileService = /** @class */ (function () {
- function FileService() {
- }
- return FileService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var PageModel = /** @class */ (function () {
+ function PageModel() {
+ }
+ return PageModel;
+ }());
+ if (false) {
+ /** @type {?} */
+ PageModel.prototype.data;
+ /** @type {?} */
+ PageModel.prototype.angle;
+ /** @type {?} */
+ PageModel.prototype.width;
+ /** @type {?} */
+ PageModel.prototype.height;
+ /** @type {?} */
+ PageModel.prototype.number;
+ /** @type {?} */
+ PageModel.prototype.editable;
+ }
+ var RotatedPage = /** @class */ (function () {
+ function RotatedPage() {
+ }
+ return RotatedPage;
+ }());
+ if (false) {
+ /** @type {?} */
+ RotatedPage.prototype.pageNumber;
+ /** @type {?} */
+ RotatedPage.prototype.angle;
+ }
+ var FileCredentials = /** @class */ (function () {
+ function FileCredentials(guid, password) {
+ this.guid = guid;
+ this.password = password;
+ }
+ return FileCredentials;
+ }());
+ if (false) {
+ /** @type {?} */
+ FileCredentials.prototype.guid;
+ /** @type {?} */
+ FileCredentials.prototype.password;
+ }
+ var SaveFile = /** @class */ (function (_super) {
+ __extends(SaveFile, _super);
+ function SaveFile(guid, password, content) {
+ var _this = _super.call(this, guid, password) || this;
+ _this.content = content;
+ return _this;
+ }
+ return SaveFile;
+ }(FileCredentials));
+ if (false) {
+ /** @type {?} */
+ SaveFile.prototype.content;
+ }
+ var FileDescription = /** @class */ (function () {
+ function FileDescription() {
+ this.printAllowed = true;
+ }
+ return FileDescription;
+ }());
+ if (false) {
+ /** @type {?} */
+ FileDescription.prototype.guid;
+ /** @type {?} */
+ FileDescription.prototype.pages;
+ /** @type {?} */
+ FileDescription.prototype.printAllowed;
+ /** @type {?} */
+ FileDescription.prototype.showGridLines;
+ /** @type {?} */
+ FileDescription.prototype.thumbnails;
+ }
+ var FileModel = /** @class */ (function () {
+ function FileModel() {
+ }
+ return FileModel;
+ }());
+ if (false) {
+ /** @type {?} */
+ FileModel.prototype.guid;
+ /** @type {?} */
+ FileModel.prototype.name;
+ /** @type {?} */
+ FileModel.prototype.directory;
+ /** @type {?} */
+ FileModel.prototype.size;
+ /** @type {?} */
+ FileModel.prototype.isDirectory;
+ }
+ var HttpError = /** @class */ (function () {
+ function HttpError() {
+ }
+ HttpError.BadRequest = 400;
+ HttpError.Unauthorized = 401;
+ HttpError.Forbidden = 403;
+ HttpError.NotFound = 404;
+ HttpError.TimeOut = 408;
+ HttpError.Conflict = 409;
+ HttpError.InternalServerError = 500;
+ return HttpError;
+ }());
+ if (false) {
+ /** @type {?} */
+ HttpError.BadRequest;
+ /** @type {?} */
+ HttpError.Unauthorized;
+ /** @type {?} */
+ HttpError.Forbidden;
+ /** @type {?} */
+ HttpError.NotFound;
+ /** @type {?} */
+ HttpError.TimeOut;
+ /** @type {?} */
+ HttpError.Conflict;
+ /** @type {?} */
+ HttpError.InternalServerError;
+ }
+ var Utils = /** @class */ (function () {
+ function Utils() {
+ }
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ Utils.getMousePosition = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ /** @type {?} */
+ var mouse = {
+ x: 0,
+ y: 0
+ };
+ /** @type {?} */
+ var wEvent = (/** @type {?} */ (window.event));
+ /** @type {?} */
+ var ev = event || wEvent;
+ if (ev.pageX || wEvent.pageX || wEvent.screenX || (ev.touches && ev.touches[0] && ev.touches[0].pageX)) { //Moz
+ //Moz
+ /** @type {?} */
+ var pageX = typeof ev.pageX !== "undefined" && ev.pageX !== 0 ? ev.pageX : wEvent.pageX;
+ /** @type {?} */
+ var pageY = typeof ev.pageY !== "undefined" && ev.pageY !== 0 ? ev.pageY : wEvent.pageY;
+ /** @type {?} */
+ var screenX_1 = typeof wEvent.screenX !== "undefined" && wEvent.screenY !== 0;
+ /** @type {?} */
+ var screenY_1 = typeof wEvent.screenY !== "undefined" && wEvent.screenY !== 0;
+ mouse.x = pageX ? pageX : (screenX_1 ? wEvent.screenX : ev.touches[0].pageX);
+ mouse.y = pageY ? pageY : (screenY_1 ? wEvent.screenY : ev.touches[0].pageY);
+ }
+ else if (ev.clientX) { //IE
+ mouse.x = ev.clientX + document.body.scrollLeft;
+ mouse.y = ev.clientY + document.body.scrollTop;
+ }
+ return mouse;
+ };
+ /**
+ * @param {?} color
+ * @return {?}
+ */
+ Utils.toRgb = /**
+ * @param {?} color
+ * @return {?}
+ */
+ function (color) {
+ /** @type {?} */
+ var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color);
+ if (result) {
+ /** @type {?} */
+ var r = parseInt(result[1], 16);
+ /** @type {?} */
+ var g = parseInt(result[2], 16);
+ /** @type {?} */
+ var b = parseInt(result[3], 16);
+ return result ? 'rgb(' + r + ',' + g + ',' + b + ')' : '';
+ }
+ return color;
+ };
+ /**
+ * @param {?} color
+ * @return {?}
+ */
+ Utils.toHex = /**
+ * @param {?} color
+ * @return {?}
+ */
+ function (color) {
+ // check if color is standard hex value
+ if (color.match(/[0-9A-F]{6}|[0-9A-F]{3}$/i)) {
+ return (color.charAt(0) === "#") ? color : ("#" + color);
+ // check if color is RGB value -> convert to hex
+ }
+ else if (color.match(/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/)) {
+ /** @type {?} */
+ var c = ([parseInt(RegExp.$1, 10), parseInt(RegExp.$2, 10), parseInt(RegExp.$3, 10)]);
+ /** @type {?} */
+ var pad = (/**
+ * @param {?} str
+ * @return {?}
+ */
+ function (str) {
+ if (str.length < 2) {
+ for (var i = 0, len = 2 - str.length; i < len; i++) {
+ str = '0' + str;
+ }
+ }
+ return str;
+ });
+ if (c.length === 3) {
+ /** @type {?} */
+ var r = pad(c[0].toString(16));
+ /** @type {?} */
+ var g = pad(c[1].toString(16));
+ /** @type {?} */
+ var b = pad(c[2].toString(16));
+ return '#' + r + g + b;
+ }
+ // else do nothing
+ }
+ else {
+ return '';
+ }
+ };
+ return Utils;
+ }());
+ var FileUtil = /** @class */ (function () {
+ function FileUtil() {
+ }
+ /**
+ * @param {?} filename
+ * @param {?} isDirectory
+ * @return {?}
+ */
+ FileUtil.find = /**
+ * @param {?} filename
+ * @param {?} isDirectory
+ * @return {?}
+ */
+ function (filename, isDirectory) {
+ if (filename && !isDirectory) {
+ /** @type {?} */
+ var strings = filename.split('.');
+ /** @type {?} */
+ var name_1 = strings.pop().toLowerCase();
+ if (typeof FileUtil.map[name_1] === "undefined") {
+ return strings.length > 0 ? FileUtil.map['unknown'] : FileUtil.map['folder'];
+ }
+ else {
+ return FileUtil.map[name_1];
+ }
+ }
+ else {
+ return FileUtil.map['folder'];
+ }
+ };
+ FileUtil.map = {
+ 'folder': { 'format': '', 'icon': 'folder' },
+ 'pdf': { 'format': 'Portable Document Format', 'icon': 'file-pdf', 'unit': 'pt' },
+ 'doc': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'docx': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'docm': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'dot': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'dotx': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'dotm': { 'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt' },
+ 'xls': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xlsx': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xlsm': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xlsb': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xls2003': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xltx': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'xltm': { 'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px' },
+ 'ppt': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'pptx': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'pps': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'ppsx': { 'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'vsd': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vdx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vss': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vsx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vst': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vtx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vsdx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vdw': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vstx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'vssx': { 'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px' },
+ 'mpp': { 'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt' },
+ 'mpt': { 'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt' },
+ 'msg': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
+ 'eml': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
+ 'emlx': { 'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt' },
+ 'one': { 'format': 'Microsoft OneNote', 'icon': 'file-word', 'unit': 'pt' },
+ 'odt': { 'format': 'Open Document Text', 'icon': 'file-word', 'unit': 'pt' },
+ 'ott': { 'format': 'Open Document Text Template', 'icon': 'file-word', 'unit': 'pt' },
+ 'ods': { 'format': 'Open Document Spreadsheet', 'icon': 'file-excel', 'unit': 'px' },
+ 'odp': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'otp': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'ots': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'potx': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'potm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'pptm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'ppsm': { 'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt' },
+ 'rtf': { 'format': 'Rich Text Format', 'icon': 'file-alt', 'unit': 'pt' },
+ 'txt': { 'format': 'Plain Text File', 'icon': 'file-alt', 'unit': 'pt' },
+ 'csv': { 'format': 'Comma-Separated Values', 'icon': 'file-excel', 'unit': 'px' },
+ 'html': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
+ 'mht': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
+ 'mhtml': { 'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt' },
+ 'xml': { 'format': 'Extensible Markup Language', 'icon': 'file-word', 'unit': 'pt' },
+ 'xps': { 'format': 'XML Paper Specification', 'icon': 'file-word', 'unit': 'pt' },
+ 'dxf': { 'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'dwg': { 'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'bmp': { 'format': 'Bitmap Picture', 'icon': 'file-image', 'unit': 'px' },
+ 'gif': { 'format': 'Graphics Interchange Format', 'icon': 'file-image', 'unit': 'px' },
+ 'jpg': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
+ 'jpe': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
+ 'jpeg': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
+ 'jfif': { 'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px' },
+ 'png': { 'format': 'Portable Network Graphics', 'icon': 'file-image', 'unit': 'px' },
+ 'tiff': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'tif': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'psd': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'svg': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'jp2': { 'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px' },
+ 'epub': { 'format': 'Electronic Publication', 'icon': 'file-pdf', 'unit': 'pt' },
+ 'ico': { 'format': 'Windows Icon', 'icon': 'file-image', 'unit': 'px' },
+ 'webp': { 'format': 'Compressed Image', 'icon': 'file-image', 'unit': 'px' },
+ 'mobi': { 'format': 'Mobipocket eBook', 'icon': 'file-pdf', 'unit': 'pt' },
+ 'tex': { 'format': 'LaTeX Source Document', 'icon': 'file-pdf', 'unit': 'pt' },
+ 'djvu': { 'format': 'Multi-Layer Raster Image', 'icon': 'file-alt', 'unit': 'pt' },
+ 'unknown': { 'format': 'This format is not supported', 'icon': 'file' },
+ };
+ return FileUtil;
+ }());
+ if (false) {
+ /** @type {?} */
+ FileUtil.map;
+ }
+ var FileService = /** @class */ (function () {
+ function FileService() {
+ }
+ return FileService;
}());
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var UploadFilesService = /** @class */ (function () {
- function UploadFilesService() {
- var _this = this;
- this._uploadsChange = new rxjs.Observable((/**
- * @param {?} observer
- * @return {?}
- */
- function (observer) {
- return _this._observer = observer;
- }));
- }
- Object.defineProperty(UploadFilesService.prototype, "uploadsChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._uploadsChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} filesList
- * @return {?}
- */
- UploadFilesService.prototype.changeFilesList = /**
- * @param {?} filesList
- * @return {?}
- */
- function (filesList) {
- this._observer.next(filesList);
- };
- return UploadFilesService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- UploadFilesService.prototype._uploadsChange;
- /**
- * @type {?}
- * @private
- */
- UploadFilesService.prototype._observer;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var UploadFilesService = /** @class */ (function () {
+ function UploadFilesService() {
+ var _this = this;
+ this._uploadsChange = new rxjs.Observable((/**
+ * @param {?} observer
+ * @return {?}
+ */
+ function (observer) {
+ return _this._observer = observer;
+ }));
+ }
+ Object.defineProperty(UploadFilesService.prototype, "uploadsChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._uploadsChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} filesList
+ * @return {?}
+ */
+ UploadFilesService.prototype.changeFilesList = /**
+ * @param {?} filesList
+ * @return {?}
+ */
+ function (filesList) {
+ this._observer.next(filesList);
+ };
+ return UploadFilesService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ UploadFilesService.prototype._uploadsChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ UploadFilesService.prototype._observer;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $ = jquery;
- /** @type {?} */
- var upload_disc = 'Disc';
- /** @type {?} */
- var upload_url = 'URL';
- /** @type {?} */
- var uploads_choices = [{ name: upload_disc, icon: 'hdd' }, { name: upload_url, icon: 'link' }];
- var BrowseFilesModalComponent = /** @class */ (function () {
- function BrowseFilesModalComponent(_uploadService) {
- this._uploadService = _uploadService;
- this.uploads = uploads_choices;
- this.selectedFileGuid = new core.EventEmitter();
- this.selectedDirectory = new core.EventEmitter();
- this.urlForUpload = new core.EventEmitter();
- this.closing = new core.EventEmitter();
- this.showUploadUrl = false;
- this.showUploadFile = false;
- }
- /**
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} size
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.getSize = /**
- * @param {?} size
- * @return {?}
- */
- function (size) {
- /** @type {?} */
- var mb = size / 1024 / 1024;
- if (mb > 1) {
- return (Math.round(mb * 100) / 100) + ' MB';
- }
- else {
- /** @type {?} */
- var kb = size / 1024;
- if (kb > 1) {
- return (Math.round(kb * 100) / 100) + ' KB';
- }
- }
- return size + ' Bytes';
- };
- /**
- * @param {?} file
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.getFormatName = /**
- * @param {?} file
- * @return {?}
- */
- function (file) {
- return FileUtil.find(file.name, file.directory).format;
- };
- /**
- * @param {?} file
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.getFormatIcon = /**
- * @param {?} file
- * @return {?}
- */
- function (file) {
- return FileUtil.find(file.name, file.directory).icon;
- };
- /**
- * @param {?} file
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.choose = /**
- * @param {?} file
- * @return {?}
- */
- function (file) {
- this.selectedFile = file;
- if (file.directory || file.isDirectory) {
- this.selectedDirectory.emit(file.name);
- }
- else {
- this.selectedFileGuid.emit(file.guid);
- }
- };
- /**
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.goUp = /**
- * @return {?}
- */
- function () {
- if (this.selectedFile) {
- /** @type {?} */
- var guid = this.selectedFile.guid;
- if (guid.length > 0 && guid.indexOf('/') === -1) {
- guid = '';
- }
- else {
- guid = guid.replace(/\/[^\/]+\/?$/, '');
- }
- this.selectedDirectory.emit(guid);
- }
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.selectUpload = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- if (upload_url === $event) {
- this.showUploadUrl = true;
- }
- else {
- this.showUploadUrl = false;
- $("#gd-upload-input").trigger('click');
- }
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.refresh = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- if ($event) {
- this.files = null;
- this.selectedDirectory.emit('');
- this.showUploadUrl = false;
- this.selectedFile = null;
- }
- else {
- this.closing.emit(true);
- }
- };
- /**
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.showSpinner = /**
- * @return {?}
- */
- function () {
- return !this.files;
- };
- /**
- * @param {?} url
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.uploadUrl = /**
- * @param {?} url
- * @return {?}
- */
- function (url) {
- if (url) {
- this.urlForUpload.emit(url);
- this.cleanUpload();
- }
- };
- /**
- * @param {?} files
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.handleFileInput = /**
- * @param {?} files
- * @return {?}
- */
- function (files) {
- this._uploadService.changeFilesList(files);
- };
- /**
- * @return {?}
- */
- BrowseFilesModalComponent.prototype.cleanUpload = /**
- * @return {?}
- */
- function () {
- this.showUploadFile = false;
- this.showUploadUrl = false;
- };
- BrowseFilesModalComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-browse-files-modal',
- template: "\n \n
\n \n Drop file here to upload \n
\n
\n \n
\n
\n
\n
\n \n \n Upload file\n \n \n \n \n \n {{item.name}}
\n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n
\n
\n
\n {{getSize(file?.size)}}\n
\n
\n
\n
\n \n \n Loading... Please wait.\n
\n \n \n",
- styles: [".gd-modal-table{width:100%;text-align:left}#gd-browse-section{width:1036px;height:561px;overflow-y:auto}.list-files-header{height:60px;color:#6e6e6e;font-size:13px;font-weight:700;background-color:#f4f4f4;margin-top:24px}.list-files-header.upload-url{margin-top:20px}.header-name{padding-left:24px;width:90%;line-height:60px}.header-size{padding-right:27px;line-height:60px}.file-size,.header-size{width:10%;color:#777;text-align:right}.file-description{display:-webkit-box;display:flex;width:90%;padding:18px 0 18px 24px;font-size:14px;-webkit-box-flex:1;flex:1;cursor:pointer;overflow:hidden}.file-size{font-size:12px;padding:0 27px 0 0;width:10%;line-height:79px}.list-files-header,.list-files-lines{display:-webkit-box;display:flex;width:100%;-webkit-box-pack:justify;justify-content:space-between}.gd-modal-spinner{background-color:#fff;width:100%;height:20px;text-align:center;font-size:16px}.gd-cancel-button{padding:7px;background:0 0;width:28px;overflow:hidden}.gd-cancel-button i{font-size:21px}.gd-file-name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.go-up{display:-webkit-box;display:flex;font-size:26px;cursor:pointer;color:#4b566c;height:79px}.go-up-dots{margin-left:20px;margin-top:22px;font-size:16px}.go-up-icon{display:block;padding:18px 0 18px 24px}.upload-panel{display:-webkit-box;display:flex;position:relative;width:100%}.upload-panel .context{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:100%;margin-left:24px;margin-top:24px;margin-right:24px}.upload-panel .context .context-actions{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;width:100%}.upload-panel .context .context-actions :last-child{margin-right:0}.upload-panel .context .context-actions ::ng-deep .button{height:37px;width:96px;padding:0;-webkit-box-pack:center;justify-content:center}.upload-panel .context .context-actions ::ng-deep .button ::ng-deep .text{font-size:10px}.upload-panel .context .context-panel{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;width:100%;margin-top:20px}.upload-panel .context .context-panel .upload-url{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;width:100%}.upload-panel .context .context-panel .upload-url .url-input{width:100%;height:27px;border:1px solid #25c2d4;font-size:14px;padding-left:6px}.upload-panel .context .context-panel .upload-url .url-check{width:31px;height:31px;color:#fff;font-size:15px;background-color:#25c2d4}.upload-panel .context .context-panel .upload-url .url-check .ng-fa-icon{display:block;padding:8px}.upload-panel gd-drop-down{margin-right:10px}.file-description .ng-fa-icon.fa-file-pdf{color:#e04e4e}.file-description .ng-fa-icon.fa-file-word{color:#539cf0}.file-description .ng-fa-icon.fa-file-powerpoint{color:#e29e1e}.file-description .ng-fa-icon.fa-file-excel{color:#7cbc46}.file-description .ng-fa-icon.fa-file-image{color:#c375ed}.file-description .ng-fa-icon.fa-file,.file-description .ng-fa-icon.fa-file-alt,.file-description .ng-fa-icon.fa-file-text .fa-folder{color:#4b566c}.file-description .ng-fa-icon{font-size:32px}.file-name{font-size:16px;color:#6e6e6e;overflow:hidden;text-overflow:ellipsis}.file-name-format{padding-left:11px;overflow:hidden}.file-format{font-size:10px;padding-top:3px;color:#acacac}.go-up,.list-files-lines{border-bottom:1px solid #e7e7e7}.list-files-lines:hover{background-color:#e5e5e5}.gd-dnd-wrap{background-color:#fff;cursor:default;position:absolute;width:100%;height:calc(100% - 60px);background:rgba(255,255,255,.7);z-index:1;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center}.dnd-wrapper{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;top:259px;position:absolute}.dnd-wrapper .text{color:#6e6e6e;font-size:14px}.dnd-wrapper .icon{display:-webkit-box;display:flex;width:113px;height:90px;font-size:90px;color:#3e4e5a;margin-bottom:30px}@media (max-width:1037px){.file-size,.header-size{width:18%}.gd-dnd-wrap{width:95%}#gd-browse-section{width:100%;height:calc(100% - 146px)}}"]
- }] }
- ];
- /** @nocollapse */
- BrowseFilesModalComponent.ctorParameters = function () { return [
- { type: UploadFilesService }
- ]; };
- BrowseFilesModalComponent.propDecorators = {
- files: [{ type: core.Input }],
- uploadConfig: [{ type: core.Input }],
- selectedFileGuid: [{ type: core.Output }],
- selectedDirectory: [{ type: core.Output }],
- urlForUpload: [{ type: core.Output }],
- closing: [{ type: core.Output }]
- };
- return BrowseFilesModalComponent;
- }());
- if (false) {
- /** @type {?} */
- BrowseFilesModalComponent.prototype.uploads;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.files;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.uploadConfig;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.selectedFileGuid;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.selectedDirectory;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.urlForUpload;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.closing;
- /**
- * @type {?}
- * @private
- */
- BrowseFilesModalComponent.prototype.selectedFile;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.showUploadUrl;
- /** @type {?} */
- BrowseFilesModalComponent.prototype.showUploadFile;
- /**
- * @type {?}
- * @private
- */
- BrowseFilesModalComponent.prototype._uploadService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $ = jquery;
+ /** @type {?} */
+ var upload_disc = 'Disc';
+ /** @type {?} */
+ var upload_url = 'URL';
+ /** @type {?} */
+ var uploads_choices = [{ name: upload_disc, icon: 'hdd' }, { name: upload_url, icon: 'link' }];
+ var BrowseFilesModalComponent = /** @class */ (function () {
+ function BrowseFilesModalComponent(_uploadService) {
+ this._uploadService = _uploadService;
+ this.uploads = uploads_choices;
+ this.selectedFileGuid = new core.EventEmitter();
+ this.selectedDirectory = new core.EventEmitter();
+ this.urlForUpload = new core.EventEmitter();
+ this.closing = new core.EventEmitter();
+ this.showUploadUrl = false;
+ this.showUploadFile = false;
+ }
+ /**
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} size
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.getSize = /**
+ * @param {?} size
+ * @return {?}
+ */
+ function (size) {
+ /** @type {?} */
+ var mb = size / 1024 / 1024;
+ if (mb > 1) {
+ return (Math.round(mb * 100) / 100) + ' MB';
+ }
+ else {
+ /** @type {?} */
+ var kb = size / 1024;
+ if (kb > 1) {
+ return (Math.round(kb * 100) / 100) + ' KB';
+ }
+ }
+ return size + ' Bytes';
+ };
+ /**
+ * @param {?} file
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.getFormatName = /**
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ return FileUtil.find(file.name, file.directory).format;
+ };
+ /**
+ * @param {?} file
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.getFormatIcon = /**
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ return FileUtil.find(file.name, file.directory).icon;
+ };
+ /**
+ * @param {?} file
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.choose = /**
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ this.selectedFile = file;
+ if (file.directory || file.isDirectory) {
+ this.selectedDirectory.emit(file.name);
+ }
+ else {
+ this.selectedFileGuid.emit(file.guid);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.goUp = /**
+ * @return {?}
+ */
+ function () {
+ if (this.selectedFile) {
+ /** @type {?} */
+ var guid = this.selectedFile.guid;
+ if (guid.length > 0 && guid.indexOf('/') === -1) {
+ guid = '';
+ }
+ else {
+ guid = guid.replace(/\/[^\/]+\/?$/, '');
+ }
+ this.selectedDirectory.emit(guid);
+ }
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.selectUpload = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ if (upload_url === $event) {
+ this.showUploadUrl = true;
+ }
+ else {
+ this.showUploadUrl = false;
+ $("#gd-upload-input").trigger('click');
+ }
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.refresh = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ if ($event) {
+ this.files = null;
+ this.selectedDirectory.emit('');
+ this.showUploadUrl = false;
+ this.selectedFile = null;
+ }
+ else {
+ this.closing.emit(true);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.showSpinner = /**
+ * @return {?}
+ */
+ function () {
+ return !this.files;
+ };
+ /**
+ * @param {?} url
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.uploadUrl = /**
+ * @param {?} url
+ * @return {?}
+ */
+ function (url) {
+ if (url) {
+ this.urlForUpload.emit(url);
+ this.cleanUpload();
+ }
+ };
+ /**
+ * @param {?} files
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.handleFileInput = /**
+ * @param {?} files
+ * @return {?}
+ */
+ function (files) {
+ this._uploadService.changeFilesList(files);
+ };
+ /**
+ * @return {?}
+ */
+ BrowseFilesModalComponent.prototype.cleanUpload = /**
+ * @return {?}
+ */
+ function () {
+ this.showUploadFile = false;
+ this.showUploadUrl = false;
+ };
+ BrowseFilesModalComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-browse-files-modal',
+ template: "\r\n \r\n
\r\n \r\n Drop file here to upload \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n Upload file\r\n \r\n \r\n \r\n \r\n \r\n {{item.name}}
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
..
\r\n
\r\n
\r\n
\r\n
\r\n {{getSize(file?.size)}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n Loading... Please wait.\r\n
\r\n \r\n \r\n",
+ styles: [".gd-modal-table{width:100%;text-align:left}#gd-browse-section{width:1036px;height:561px;overflow-y:auto}.list-files-header{height:60px;color:#6e6e6e;font-size:13px;font-weight:700;background-color:#f4f4f4;margin-top:24px}.list-files-header.upload-url{margin-top:20px}.header-name{padding-left:24px;width:90%;line-height:60px}.header-size{padding-right:27px;line-height:60px}.file-size,.header-size{width:10%;color:#777;text-align:right}.file-description{display:flex;width:90%;padding:18px 0 18px 24px;font-size:14px;flex:1;cursor:pointer;overflow:hidden}.file-size{font-size:12px;padding:0 27px 0 0;width:10%;line-height:79px}.list-files-header,.list-files-lines{display:flex;width:100%;justify-content:space-between}.gd-modal-spinner{background-color:#fff;width:100%;height:20px;text-align:center;font-size:16px}.gd-cancel-button{padding:7px;background:0 0;width:28px;overflow:hidden}.gd-cancel-button i{font-size:21px}.gd-file-name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.go-up{display:flex;font-size:26px;cursor:pointer;color:#4b566c;height:79px}.go-up-dots{margin-left:20px;margin-top:22px;font-size:16px}.go-up-icon{display:block;padding:18px 0 18px 24px}.upload-panel{display:flex;position:relative;width:100%}.upload-panel .context{display:flex;flex-direction:column;width:100%;margin-left:24px;margin-top:24px;margin-right:24px}.upload-panel .context .context-actions{display:flex;flex-direction:row;width:100%}.upload-panel .context .context-actions :last-child{margin-right:0}.upload-panel .context .context-actions ::ng-deep .button{height:37px;width:96px;padding:0;justify-content:center}.upload-panel .context .context-actions ::ng-deep .button ::ng-deep .text{font-size:10px}.upload-panel .context .context-panel{display:flex;flex-direction:row;width:100%;margin-top:20px}.upload-panel .context .context-panel .upload-url{display:flex;flex-direction:row;width:100%}.upload-panel .context .context-panel .upload-url .url-input{width:100%;height:27px;border:1px solid #25c2d4;font-size:14px;padding-left:6px}.upload-panel .context .context-panel .upload-url .url-check{width:31px;height:31px;color:#fff;font-size:15px;background-color:#25c2d4}.upload-panel .context .context-panel .upload-url .url-check .ng-fa-icon{display:block;padding:8px}.upload-panel gd-drop-down{margin-right:10px}.file-description .ng-fa-icon.fa-file-pdf{color:#e04e4e}.file-description .ng-fa-icon.fa-file-word{color:#539cf0}.file-description .ng-fa-icon.fa-file-powerpoint{color:#e29e1e}.file-description .ng-fa-icon.fa-file-excel{color:#7cbc46}.file-description .ng-fa-icon.fa-file-image{color:#c375ed}.file-description .ng-fa-icon.fa-file,.file-description .ng-fa-icon.fa-file-alt,.file-description .ng-fa-icon.fa-file-text .fa-folder{color:#4b566c}.file-description .ng-fa-icon{font-size:32px}.file-name{font-size:16px;color:#6e6e6e;overflow:hidden;text-overflow:ellipsis}.file-name-format{padding-left:11px;overflow:hidden}.file-format{font-size:10px;padding-top:3px;color:#acacac}.go-up,.list-files-lines{border-bottom:1px solid #e7e7e7}.list-files-lines:hover{background-color:#e5e5e5}.gd-dnd-wrap{background-color:#fff;cursor:default;position:absolute;width:100%;height:calc(100% - 60px);background:rgba(255,255,255,.7);z-index:1;display:flex;justify-content:center;align-items:center}.dnd-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;top:259px;position:absolute}.dnd-wrapper .text{color:#6e6e6e;font-size:14px}.dnd-wrapper .icon{display:flex;width:113px;height:90px;font-size:90px;color:#3e4e5a;margin-bottom:30px}@media (max-width:1037px){.file-size,.header-size{width:18%}.gd-dnd-wrap{width:95%}#gd-browse-section{width:100%;height:calc(100% - 146px)}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ BrowseFilesModalComponent.ctorParameters = function () { return [
+ { type: UploadFilesService }
+ ]; };
+ BrowseFilesModalComponent.propDecorators = {
+ files: [{ type: core.Input }],
+ uploadConfig: [{ type: core.Input }],
+ selectedFileGuid: [{ type: core.Output }],
+ selectedDirectory: [{ type: core.Output }],
+ urlForUpload: [{ type: core.Output }],
+ closing: [{ type: core.Output }]
+ };
+ return BrowseFilesModalComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.uploads;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.files;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.uploadConfig;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.selectedFileGuid;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.selectedDirectory;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.urlForUpload;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.closing;
+ /**
+ * @type {?}
+ * @private
+ */
+ BrowseFilesModalComponent.prototype.selectedFile;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.showUploadUrl;
+ /** @type {?} */
+ BrowseFilesModalComponent.prototype.showUploadFile;
+ /**
+ * @type {?}
+ * @private
+ */
+ BrowseFilesModalComponent.prototype._uploadService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ZoomService = /** @class */ (function () {
- function ZoomService() {
- this._observer = new rxjs.Subject();
- this._zoomChange = this._observer.asObservable();
- }
- Object.defineProperty(ZoomService.prototype, "zoom", {
- get: /**
- * @return {?}
- */
- function () {
- return this._zoom;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(ZoomService.prototype, "zoomChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._zoomChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} zoom
- * @return {?}
- */
- ZoomService.prototype.changeZoom = /**
- * @param {?} zoom
- * @return {?}
- */
- function (zoom) {
- this._zoom = zoom;
- this._observer.next(zoom);
- };
- /**
- * @private
- * @param {?} val
- * @param {?} name
- * @param {?=} sep
- * @return {?}
- */
- ZoomService.prototype.createZoomOption = /**
- * @private
- * @param {?} val
- * @param {?} name
- * @param {?=} sep
- * @return {?}
- */
- function (val, name, sep) {
- if (sep === void 0) { sep = false; }
- return { value: val, name: name, separator: sep };
- };
- /**
- * @param {?} width
- * @param {?} height
- * @return {?}
- */
- ZoomService.prototype.zoomOptions = /**
- * @param {?} width
- * @param {?} height
- * @return {?}
- */
- function (width, height) {
- return [this.createZoomOption(25, '25%'),
- this.createZoomOption(50, '50%'),
- this.createZoomOption(100, '100%'),
- this.createZoomOption(150, '150%'),
- this.createZoomOption(200, '200%'),
- this.createZoomOption(300, '300%'),
- this.createZoomOption(0, '', true),
- this.createZoomOption(width, 'Fit Width'),
- this.createZoomOption(height, 'Fit Height')];
- };
- return ZoomService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ZoomService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- ZoomService.prototype._zoomChange;
- /**
- * @type {?}
- * @private
- */
- ZoomService.prototype._zoom;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ZoomService = /** @class */ (function () {
+ function ZoomService() {
+ this._observer = new rxjs.Subject();
+ this._zoomChange = this._observer.asObservable();
+ }
+ Object.defineProperty(ZoomService.prototype, "zoom", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._zoom;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(ZoomService.prototype, "zoomChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._zoomChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} zoom
+ * @return {?}
+ */
+ ZoomService.prototype.changeZoom = /**
+ * @param {?} zoom
+ * @return {?}
+ */
+ function (zoom) {
+ this._zoom = zoom;
+ this._observer.next(zoom);
+ };
+ /**
+ * @private
+ * @param {?} val
+ * @param {?} name
+ * @param {?=} sep
+ * @return {?}
+ */
+ ZoomService.prototype.createZoomOption = /**
+ * @private
+ * @param {?} val
+ * @param {?} name
+ * @param {?=} sep
+ * @return {?}
+ */
+ function (val, name, sep) {
+ if (sep === void 0) { sep = false; }
+ return { value: val, name: name, separator: sep };
+ };
+ /**
+ * @param {?} width
+ * @param {?} height
+ * @return {?}
+ */
+ ZoomService.prototype.zoomOptions = /**
+ * @param {?} width
+ * @param {?} height
+ * @return {?}
+ */
+ function (width, height) {
+ return [this.createZoomOption(25, '25%'),
+ this.createZoomOption(50, '50%'),
+ this.createZoomOption(100, '100%'),
+ this.createZoomOption(150, '150%'),
+ this.createZoomOption(200, '200%'),
+ this.createZoomOption(300, '300%'),
+ this.createZoomOption(0, '', true),
+ this.createZoomOption(width, 'Fit Width'),
+ this.createZoomOption(height, 'Fit Height')];
+ };
+ return ZoomService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ZoomService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ ZoomService.prototype._zoomChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ ZoomService.prototype._zoom;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var PagePreloadService = /** @class */ (function () {
- function PagePreloadService() {
- var _this = this;
- this._checkPreload = new rxjs.Observable((/**
- * @param {?} observer
- * @return {?}
- */
- function (observer) {
- return _this._observer = observer;
- }));
- }
- Object.defineProperty(PagePreloadService.prototype, "checkPreload", {
- get: /**
- * @return {?}
- */
- function () {
- return this._checkPreload;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} page
- * @return {?}
- */
- PagePreloadService.prototype.changeLastPageInView = /**
- * @param {?} page
- * @return {?}
- */
- function (page) {
- if (this._observer) {
- this._observer.next(page);
- }
- };
- return PagePreloadService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- PagePreloadService.prototype._checkPreload;
- /**
- * @type {?}
- * @private
- */
- PagePreloadService.prototype._observer;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var PagePreloadService = /** @class */ (function () {
+ function PagePreloadService() {
+ var _this = this;
+ this._checkPreload = new rxjs.Observable((/**
+ * @param {?} observer
+ * @return {?}
+ */
+ function (observer) {
+ return _this._observer = observer;
+ }));
+ }
+ Object.defineProperty(PagePreloadService.prototype, "checkPreload", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._checkPreload;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} page
+ * @return {?}
+ */
+ PagePreloadService.prototype.changeLastPageInView = /**
+ * @param {?} page
+ * @return {?}
+ */
+ function (page) {
+ if (this._observer) {
+ this._observer.next(page);
+ }
+ };
+ return PagePreloadService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ PagePreloadService.prototype._checkPreload;
+ /**
+ * @type {?}
+ * @private
+ */
+ PagePreloadService.prototype._observer;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var NavigateService = /** @class */ (function () {
- function NavigateService(_pagePreloadService) {
- this._pagePreloadService = _pagePreloadService;
- this._currentPage = 0;
- this._countPages = 0;
- this._observer = new rxjs.BehaviorSubject(null);
- this._navigate = this._observer.asObservable();
- }
- Object.defineProperty(NavigateService.prototype, "navigate", {
- get: /**
- * @return {?}
- */
- function () {
- return this._navigate;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(NavigateService.prototype, "countPages", {
- get: /**
- * @return {?}
- */
- function () {
- return this._countPages;
- },
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- this._countPages = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(NavigateService.prototype, "currentPage", {
- get: /**
- * @return {?}
- */
- function () {
- return this._currentPage;
- },
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- this._currentPage = value;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @return {?}
- */
- NavigateService.prototype.nextPage = /**
- * @return {?}
- */
- function () {
- if (this._currentPage < this._countPages) {
- this._currentPage++;
- this.navigateTo(this._currentPage);
- }
- };
- /**
- * @return {?}
- */
- NavigateService.prototype.prevPage = /**
- * @return {?}
- */
- function () {
- if (this._currentPage > 1) {
- this._currentPage--;
- this.navigateTo(this._currentPage);
- }
- };
- /**
- * @return {?}
- */
- NavigateService.prototype.toLastPage = /**
- * @return {?}
- */
- function () {
- this._currentPage = this._countPages;
- this.navigateTo(this._currentPage);
- };
- /**
- * @return {?}
- */
- NavigateService.prototype.toFirstPage = /**
- * @return {?}
- */
- function () {
- this._currentPage = 1;
- this.navigateTo(this._currentPage);
- };
- /**
- * @param {?} page
- * @return {?}
- */
- NavigateService.prototype.navigateTo = /**
- * @param {?} page
- * @return {?}
- */
- function (page) {
- this.currentPage = page;
- this._pagePreloadService.changeLastPageInView(page);
- this._observer.next(page);
- };
- NavigateService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- NavigateService.ctorParameters = function () { return [
- { type: PagePreloadService }
- ]; };
- /** @nocollapse */ NavigateService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NavigateService_Factory() { return new NavigateService(core.ɵɵinject(PagePreloadService)); }, token: NavigateService, providedIn: "root" });
- return NavigateService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- NavigateService.prototype._currentPage;
- /**
- * @type {?}
- * @private
- */
- NavigateService.prototype._countPages;
- /**
- * @type {?}
- * @private
- */
- NavigateService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- NavigateService.prototype._navigate;
- /**
- * @type {?}
- * @private
- */
- NavigateService.prototype._pagePreloadService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var NavigateService = /** @class */ (function () {
+ function NavigateService(_pagePreloadService) {
+ this._pagePreloadService = _pagePreloadService;
+ this._currentPage = 0;
+ this._countPages = 0;
+ this._observer = new rxjs.BehaviorSubject(null);
+ this._navigate = this._observer.asObservable();
+ }
+ Object.defineProperty(NavigateService.prototype, "navigate", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._navigate;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(NavigateService.prototype, "countPages", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._countPages;
+ },
+ set: /**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ this._countPages = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(NavigateService.prototype, "currentPage", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._currentPage;
+ },
+ set: /**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ this._currentPage = value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @return {?}
+ */
+ NavigateService.prototype.nextPage = /**
+ * @return {?}
+ */
+ function () {
+ if (this._currentPage < this._countPages) {
+ this._currentPage++;
+ this.navigateTo(this._currentPage);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ NavigateService.prototype.prevPage = /**
+ * @return {?}
+ */
+ function () {
+ if (this._currentPage > 1) {
+ this._currentPage--;
+ this.navigateTo(this._currentPage);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ NavigateService.prototype.toLastPage = /**
+ * @return {?}
+ */
+ function () {
+ this._currentPage = this._countPages;
+ this.navigateTo(this._currentPage);
+ };
+ /**
+ * @return {?}
+ */
+ NavigateService.prototype.toFirstPage = /**
+ * @return {?}
+ */
+ function () {
+ this._currentPage = 1;
+ this.navigateTo(this._currentPage);
+ };
+ /**
+ * @param {?} page
+ * @return {?}
+ */
+ NavigateService.prototype.navigateTo = /**
+ * @param {?} page
+ * @return {?}
+ */
+ function (page) {
+ this.currentPage = page;
+ this._pagePreloadService.changeLastPageInView(page);
+ this._observer.next(page);
+ };
+ NavigateService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ NavigateService.ctorParameters = function () { return [
+ { type: PagePreloadService }
+ ]; };
+ /** @nocollapse */ NavigateService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NavigateService_Factory() { return new NavigateService(core.ɵɵinject(PagePreloadService)); }, token: NavigateService, providedIn: "root" });
+ return NavigateService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ NavigateService.prototype._currentPage;
+ /**
+ * @type {?}
+ * @private
+ */
+ NavigateService.prototype._countPages;
+ /**
+ * @type {?}
+ * @private
+ */
+ NavigateService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ NavigateService.prototype._navigate;
+ /**
+ * @type {?}
+ * @private
+ */
+ NavigateService.prototype._pagePreloadService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$1 = jquery;
- var DocumentComponent = /** @class */ (function () {
- function DocumentComponent(_elementRef, _zoomService, _windowService, _navigateService) {
- var _this = this;
- this._elementRef = _elementRef;
- this._zoomService = _zoomService;
- this._windowService = _windowService;
- this._navigateService = _navigateService;
- this.wait = false;
- this.docWidth = null;
- this.docHeight = null;
- this.viewportWidth = null;
- this.viewportHeight = null;
- this.scale = null;
- this.lastScale = null;
- this.container = null;
- this.doc = null;
- this.x = 0;
- this.lastX = 0;
- this.y = 0;
- this.lastY = 0;
- this.pinchCenter = null;
- this.pinchCenterOffset = null;
- this.curWidth = 0;
- this.curHeight = 0;
- _zoomService.zoomChange.subscribe((/**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- _this.zoom = val;
- }));
- this.isDesktop = _windowService.isDesktop();
- this._navigateService.navigate.subscribe((((/**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- _this.selectedPage = value;
- }))));
- }
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- if (this.ifPresentation()) {
- this.selectedPage = this._navigateService.currentPage;
- }
- };
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ngOnChanges = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- // For current iteration we take .panzoom as a document
- this.doc = this._elementRef.nativeElement.children.item(0).children.item(0);
- // For current iteration we take .gd-document as a container
- this.container = this._elementRef.nativeElement;
- this.docWidth = this.doc.clientWidth;
- this.docHeight = this.doc.clientHeight;
- this.viewportWidth = this.doc.offsetWidth;
- // For cases where we already have zoom defined we should include it
- this.scale = (this.viewportWidth / this.docWidth) * this._zoomService.zoom / 100;
- this.lastScale = this.scale;
- this.viewportHeight = this.container.offsetHeight;
- this.curWidth = this.docWidth * this.scale;
- this.curHeight = this.docHeight * this.scale;
- /** @type {?} */
- var hammer = new Hammer(this.container);
- };
- // TODO: this temporary crutch for Excel files should be documented
- // TODO: this temporary crutch for Excel files should be documented
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ifExcel =
- // TODO: this temporary crutch for Excel files should be documented
- /**
- * @return {?}
- */
- function () {
- return FileUtil.find(this.file.guid, false).format === "Microsoft Excel";
- };
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ifPresentation = /**
- * @return {?}
- */
- function () {
- return FileUtil.find(this.file.guid, false).format === "Microsoft PowerPoint";
- };
- /**
- * @param {?} value
- * @param {?} pageNumber
- * @return {?}
- */
- DocumentComponent.prototype.getDimensionWithUnit = /**
- * @param {?} value
- * @param {?} pageNumber
- * @return {?}
- */
- function (value, pageNumber) {
- return this.ifPresentation() && !this.isVisible(pageNumber) ? 0 : value + (this.mode ? FileUtil.find(this.file.guid, false).unit : 'px');
- };
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ifEdge = /**
- * @return {?}
- */
- function () {
- return navigator.userAgent.toLowerCase().indexOf('edge') > -1;
- };
- /**
- * @return {?}
- */
- DocumentComponent.prototype.ngAfterViewChecked = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var elementNodeListOf = this._elementRef.nativeElement.querySelectorAll('.gd-wrapper');
- /** @type {?} */
- var element = elementNodeListOf.item(0);
- if (element) {
- $$1(element).trigger('focus');
- }
- };
- /**
- * @param {?} pageNumber
- * @return {?}
- */
- DocumentComponent.prototype.isVisible = /**
- * @param {?} pageNumber
- * @return {?}
- */
- function (pageNumber) {
- if (this.ifPresentation()) {
- return pageNumber === this.selectedPage ? true : false;
- }
- else {
- return true;
- }
- };
- DocumentComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-document',
- template: "Please wait...
\n\n",
- styles: [":host{-webkit-box-flex:1;flex:1;-webkit-transition:.4s;transition:.4s;background-color:#e7e7e7;height:100%;overflow:scroll;touch-action:auto!important}:host .document{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important;touch-action:auto!important}.page{display:inline-block;background-color:#fff;margin:20px;box-shadow:0 3px 6px rgba(0,0,0,.16);-webkit-transition:.3s;transition:.3s}.page.excel{overflow:auto}.page.presentation{margin:0;-webkit-transition:unset;transition:unset}.page.presentation.active{margin:20px}.wait{position:absolute;top:55px;left:Calc(30%)}.panzoom{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;align-content:flex-start}@media (max-width:1037px){.page{min-width:unset!important;min-height:unset!important;margin:5px 0}}"]
- }] }
- ];
- /** @nocollapse */
- DocumentComponent.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: ZoomService },
- { type: WindowService },
- { type: NavigateService }
- ]; };
- DocumentComponent.propDecorators = {
- mode: [{ type: core.Input }],
- preloadPageCount: [{ type: core.Input }],
- file: [{ type: core.Input }],
- selectedPage: [{ type: core.Input }]
- };
- return DocumentComponent;
- }());
- if (false) {
- /** @type {?} */
- DocumentComponent.prototype.mode;
- /** @type {?} */
- DocumentComponent.prototype.preloadPageCount;
- /** @type {?} */
- DocumentComponent.prototype.file;
- /** @type {?} */
- DocumentComponent.prototype.selectedPage;
- /** @type {?} */
- DocumentComponent.prototype.wait;
- /** @type {?} */
- DocumentComponent.prototype.zoom;
- /** @type {?} */
- DocumentComponent.prototype.docWidth;
- /** @type {?} */
- DocumentComponent.prototype.docHeight;
- /** @type {?} */
- DocumentComponent.prototype.viewportWidth;
- /** @type {?} */
- DocumentComponent.prototype.viewportHeight;
- /** @type {?} */
- DocumentComponent.prototype.scale;
- /** @type {?} */
- DocumentComponent.prototype.lastScale;
- /** @type {?} */
- DocumentComponent.prototype.container;
- /** @type {?} */
- DocumentComponent.prototype.doc;
- /** @type {?} */
- DocumentComponent.prototype.x;
- /** @type {?} */
- DocumentComponent.prototype.lastX;
- /** @type {?} */
- DocumentComponent.prototype.y;
- /** @type {?} */
- DocumentComponent.prototype.lastY;
- /** @type {?} */
- DocumentComponent.prototype.pinchCenter;
- /** @type {?} */
- DocumentComponent.prototype.pinchCenterOffset;
- /** @type {?} */
- DocumentComponent.prototype.curWidth;
- /** @type {?} */
- DocumentComponent.prototype.curHeight;
- /** @type {?} */
- DocumentComponent.prototype.isDesktop;
- /**
- * @type {?}
- * @protected
- */
- DocumentComponent.prototype._elementRef;
- /**
- * @type {?}
- * @private
- */
- DocumentComponent.prototype._zoomService;
- /**
- * @type {?}
- * @private
- */
- DocumentComponent.prototype._windowService;
- /**
- * @type {?}
- * @private
- */
- DocumentComponent.prototype._navigateService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$1 = jquery;
+ var DocumentComponent = /** @class */ (function () {
+ function DocumentComponent(_elementRef, _zoomService, _windowService, _navigateService) {
+ var _this = this;
+ this._elementRef = _elementRef;
+ this._zoomService = _zoomService;
+ this._windowService = _windowService;
+ this._navigateService = _navigateService;
+ this.wait = false;
+ this.docWidth = null;
+ this.docHeight = null;
+ this.viewportWidth = null;
+ this.viewportHeight = null;
+ this.scale = null;
+ this.lastScale = null;
+ this.container = null;
+ this.doc = null;
+ this.x = 0;
+ this.lastX = 0;
+ this.y = 0;
+ this.lastY = 0;
+ this.pinchCenter = null;
+ this.pinchCenterOffset = null;
+ this.curWidth = 0;
+ this.curHeight = 0;
+ _zoomService.zoomChange.subscribe((/**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ _this.zoom = val;
+ }));
+ this.isDesktop = _windowService.isDesktop();
+ this._navigateService.navigate.subscribe((((/**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ _this.selectedPage = value;
+ }))));
+ }
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ if (this.ifPresentation()) {
+ this.selectedPage = this._navigateService.currentPage;
+ }
+ };
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ngOnChanges = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ // For current iteration we take .panzoom as a document
+ this.doc = this._elementRef.nativeElement.children.item(0).children.item(0);
+ // For current iteration we take .gd-document as a container
+ this.container = this._elementRef.nativeElement;
+ this.docWidth = this.doc.clientWidth;
+ this.docHeight = this.doc.clientHeight;
+ this.viewportWidth = this.doc.offsetWidth;
+ // For cases where we already have zoom defined we should include it
+ this.scale = (this.viewportWidth / this.docWidth) * this._zoomService.zoom / 100;
+ this.lastScale = this.scale;
+ this.viewportHeight = this.container.offsetHeight;
+ this.curWidth = this.docWidth * this.scale;
+ this.curHeight = this.docHeight * this.scale;
+ /** @type {?} */
+ var hammer = new Hammer(this.container);
+ };
+ // TODO: this temporary crutch for Excel files should be documented
+ // TODO: this temporary crutch for Excel files should be documented
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ifExcel =
+ // TODO: this temporary crutch for Excel files should be documented
+ /**
+ * @return {?}
+ */
+ function () {
+ return FileUtil.find(this.file.guid, false).format === "Microsoft Excel";
+ };
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ifPresentation = /**
+ * @return {?}
+ */
+ function () {
+ return FileUtil.find(this.file.guid, false).format === "Microsoft PowerPoint";
+ };
+ /**
+ * @param {?} value
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ DocumentComponent.prototype.getDimensionWithUnit = /**
+ * @param {?} value
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ function (value, pageNumber) {
+ return this.ifPresentation() && !this.isVisible(pageNumber) ? 0 : value + (this.mode ? FileUtil.find(this.file.guid, false).unit : 'px');
+ };
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ifEdge = /**
+ * @return {?}
+ */
+ function () {
+ return navigator.userAgent.toLowerCase().indexOf('edge') > -1;
+ };
+ /**
+ * @return {?}
+ */
+ DocumentComponent.prototype.ngAfterViewChecked = /**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var elementNodeListOf = this._elementRef.nativeElement.querySelectorAll('.gd-wrapper');
+ /** @type {?} */
+ var element = elementNodeListOf.item(0);
+ if (element) {
+ $$1(element).trigger('focus');
+ }
+ };
+ /**
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ DocumentComponent.prototype.isVisible = /**
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ function (pageNumber) {
+ if (this.ifPresentation()) {
+ return pageNumber === this.selectedPage ? true : false;
+ }
+ else {
+ return true;
+ }
+ };
+ DocumentComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-document',
+ template: "Please wait...
\r\n\r\n",
+ styles: [":host{flex:1;transition:.4s;background-color:#e7e7e7;height:100%;overflow:scroll;touch-action:auto!important}:host .document{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important;touch-action:auto!important}.page{display:inline-block;background-color:#fff;margin:20px;box-shadow:0 3px 6px rgba(0,0,0,.16);transition:.3s}.page.excel{overflow:auto}.page.presentation{margin:0;transition:unset}.page.presentation.active{margin:20px}.wait{position:absolute;top:55px;left:Calc(30%)}.panzoom{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-content:flex-start}@media (max-width:1037px){.page{min-width:unset!important;min-height:unset!important;margin:5px 0}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ DocumentComponent.ctorParameters = function () { return [
+ { type: core.ElementRef },
+ { type: ZoomService },
+ { type: WindowService },
+ { type: NavigateService }
+ ]; };
+ DocumentComponent.propDecorators = {
+ mode: [{ type: core.Input }],
+ preloadPageCount: [{ type: core.Input }],
+ file: [{ type: core.Input }],
+ selectedPage: [{ type: core.Input }]
+ };
+ return DocumentComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ DocumentComponent.prototype.mode;
+ /** @type {?} */
+ DocumentComponent.prototype.preloadPageCount;
+ /** @type {?} */
+ DocumentComponent.prototype.file;
+ /** @type {?} */
+ DocumentComponent.prototype.selectedPage;
+ /** @type {?} */
+ DocumentComponent.prototype.wait;
+ /** @type {?} */
+ DocumentComponent.prototype.zoom;
+ /** @type {?} */
+ DocumentComponent.prototype.docWidth;
+ /** @type {?} */
+ DocumentComponent.prototype.docHeight;
+ /** @type {?} */
+ DocumentComponent.prototype.viewportWidth;
+ /** @type {?} */
+ DocumentComponent.prototype.viewportHeight;
+ /** @type {?} */
+ DocumentComponent.prototype.scale;
+ /** @type {?} */
+ DocumentComponent.prototype.lastScale;
+ /** @type {?} */
+ DocumentComponent.prototype.container;
+ /** @type {?} */
+ DocumentComponent.prototype.doc;
+ /** @type {?} */
+ DocumentComponent.prototype.x;
+ /** @type {?} */
+ DocumentComponent.prototype.lastX;
+ /** @type {?} */
+ DocumentComponent.prototype.y;
+ /** @type {?} */
+ DocumentComponent.prototype.lastY;
+ /** @type {?} */
+ DocumentComponent.prototype.pinchCenter;
+ /** @type {?} */
+ DocumentComponent.prototype.pinchCenterOffset;
+ /** @type {?} */
+ DocumentComponent.prototype.curWidth;
+ /** @type {?} */
+ DocumentComponent.prototype.curHeight;
+ /** @type {?} */
+ DocumentComponent.prototype.isDesktop;
+ /**
+ * @type {?}
+ * @protected
+ */
+ DocumentComponent.prototype._elementRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ DocumentComponent.prototype._zoomService;
+ /**
+ * @type {?}
+ * @private
+ */
+ DocumentComponent.prototype._windowService;
+ /**
+ * @type {?}
+ * @private
+ */
+ DocumentComponent.prototype._navigateService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var PageComponent = /** @class */ (function () {
- function PageComponent() {
- }
- /**
- * @return {?}
- */
- PageComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var isIE = /*@cc_on!@*/ false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
- if (isIE && this.number === 0) {
- this.editable = false;
- }
- };
- /**
- * @param {?} changes
- * @return {?}
- */
- PageComponent.prototype.ngOnChanges = /**
- * @param {?} changes
- * @return {?}
- */
- function (changes) {
- // TODO: this is temporary needed to remove unneeded spaces and BOM symbol
- // which leads to undesired spaces on the top of the docs pages
- this.data = this.data !== null ? this.data.replace(/>\s+<')
- .replace(/\uFEFF/g, "")
- .replace(/href="\/viewer/g, 'href="http://localhost:8080/viewer')
- .replace(/src="\/viewer/g, 'src="http://localhost:8080/viewer')
- .replace(/data="\/viewer/g, 'data="http://localhost:8080/viewer')
- : null;
- /** @type {?} */
- var dataImagePngBase64 = 'data:image/png;base64,';
- this.imgData = dataImagePngBase64;
- if (!this.isHtml) {
- this.imgData += this.data;
- }
- };
- PageComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-page',
- template: "\n
\n
\n
\n \n Loading... Please wait.\n
\n
\n",
- styles: [".gd-page-spinner{margin-top:150px;text-align:center}.gd-wrapper{width:inherit;height:inherit}.gd-wrapper div{width:100%}::ng-deep .gd-highlight{background-color:#ff0}::ng-deep .gd-highlight-select{background-color:#ff9b00}"]
- }] }
- ];
- /** @nocollapse */
- PageComponent.ctorParameters = function () { return []; };
- PageComponent.propDecorators = {
- angle: [{ type: core.Input }],
- width: [{ type: core.Input }],
- height: [{ type: core.Input }],
- number: [{ type: core.Input }],
- data: [{ type: core.Input }],
- isHtml: [{ type: core.Input }],
- editable: [{ type: core.Input }]
- };
- return PageComponent;
- }());
- if (false) {
- /** @type {?} */
- PageComponent.prototype.angle;
- /** @type {?} */
- PageComponent.prototype.width;
- /** @type {?} */
- PageComponent.prototype.height;
- /** @type {?} */
- PageComponent.prototype.number;
- /** @type {?} */
- PageComponent.prototype.data;
- /** @type {?} */
- PageComponent.prototype.isHtml;
- /** @type {?} */
- PageComponent.prototype.editable;
- /** @type {?} */
- PageComponent.prototype.imgData;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var PageComponent = /** @class */ (function () {
+ function PageComponent() {
+ }
+ /**
+ * @return {?}
+ */
+ PageComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var isIE = /*@cc_on!@*/ false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
+ if (isIE && this.number === 0) {
+ this.editable = false;
+ }
+ };
+ /**
+ * @param {?} changes
+ * @return {?}
+ */
+ PageComponent.prototype.ngOnChanges = /**
+ * @param {?} changes
+ * @return {?}
+ */
+ function (changes) {
+ // TODO: this is temporary needed to remove unneeded spaces and BOM symbol
+ // which leads to undesired spaces on the top of the docs pages
+ this.data = this.data !== null ? this.data.replace(/>\s+<')
+ .replace(/\uFEFF/g, "")
+ .replace(/href="\/viewer/g, 'href="http://localhost:8080/viewer')
+ .replace(/src="\/viewer/g, 'src="http://localhost:8080/viewer')
+ .replace(/data="\/viewer/g, 'data="http://localhost:8080/viewer')
+ : null;
+ /** @type {?} */
+ var dataImagePngBase64 = 'data:image/png;base64,';
+ this.imgData = dataImagePngBase64;
+ if (!this.isHtml) {
+ this.imgData += this.data;
+ }
+ };
+ PageComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-page',
+ template: "\r\n
\r\n
\r\n
\r\n \r\n Loading... Please wait.\r\n
\r\n
\r\n",
+ styles: [".gd-page-spinner{margin-top:150px;text-align:center}.gd-wrapper{width:inherit;height:inherit}.gd-wrapper div{width:100%}::ng-deep .gd-highlight{background-color:#ff0}::ng-deep .gd-highlight-select{background-color:#ff9b00}"]
+ }] }
+ ];
+ /** @nocollapse */
+ PageComponent.ctorParameters = function () { return []; };
+ PageComponent.propDecorators = {
+ angle: [{ type: core.Input }],
+ width: [{ type: core.Input }],
+ height: [{ type: core.Input }],
+ number: [{ type: core.Input }],
+ data: [{ type: core.Input }],
+ isHtml: [{ type: core.Input }],
+ editable: [{ type: core.Input }]
+ };
+ return PageComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ PageComponent.prototype.angle;
+ /** @type {?} */
+ PageComponent.prototype.width;
+ /** @type {?} */
+ PageComponent.prototype.height;
+ /** @type {?} */
+ PageComponent.prototype.number;
+ /** @type {?} */
+ PageComponent.prototype.data;
+ /** @type {?} */
+ PageComponent.prototype.isHtml;
+ /** @type {?} */
+ PageComponent.prototype.editable;
+ /** @type {?} */
+ PageComponent.prototype.imgData;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SanitizeHtmlPipe = /** @class */ (function () {
- function SanitizeHtmlPipe(sanitizer) {
- this.sanitizer = sanitizer;
- }
- /**
- * @param {?} html
- * @return {?}
- */
- SanitizeHtmlPipe.prototype.transform = /**
- * @param {?} html
- * @return {?}
- */
- function (html) {
- return this.sanitizer.bypassSecurityTrustHtml(html);
- };
- SanitizeHtmlPipe.decorators = [
- { type: core.Pipe, args: [{ name: 'safeHtml' },] }
- ];
- /** @nocollapse */
- SanitizeHtmlPipe.ctorParameters = function () { return [
- { type: platformBrowser.DomSanitizer }
- ]; };
- return SanitizeHtmlPipe;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- SanitizeHtmlPipe.prototype.sanitizer;
- }
- var SanitizeResourceHtmlPipe = /** @class */ (function () {
- function SanitizeResourceHtmlPipe(sanitizer) {
- this.sanitizer = sanitizer;
- }
- /**
- * @param {?} html
- * @return {?}
- */
- SanitizeResourceHtmlPipe.prototype.transform = /**
- * @param {?} html
- * @return {?}
- */
- function (html) {
- return this.sanitizer.bypassSecurityTrustResourceUrl(html);
- };
- SanitizeResourceHtmlPipe.decorators = [
- { type: core.Pipe, args: [{ name: 'safeResourceHtml' },] }
- ];
- /** @nocollapse */
- SanitizeResourceHtmlPipe.ctorParameters = function () { return [
- { type: platformBrowser.DomSanitizer }
- ]; };
- return SanitizeResourceHtmlPipe;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- SanitizeResourceHtmlPipe.prototype.sanitizer;
- }
- var SanitizeStylePipe = /** @class */ (function () {
- function SanitizeStylePipe(sanitizer) {
- this.sanitizer = sanitizer;
- }
- /**
- * @param {?} html
- * @return {?}
- */
- SanitizeStylePipe.prototype.transform = /**
- * @param {?} html
- * @return {?}
- */
- function (html) {
- return this.sanitizer.bypassSecurityTrustStyle(html);
- };
- SanitizeStylePipe.decorators = [
- { type: core.Pipe, args: [{ name: 'safeStyle' },] }
- ];
- /** @nocollapse */
- SanitizeStylePipe.ctorParameters = function () { return [
- { type: platformBrowser.DomSanitizer }
- ]; };
- return SanitizeStylePipe;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- SanitizeStylePipe.prototype.sanitizer;
- }
- var HighlightSearchPipe = /** @class */ (function () {
- function HighlightSearchPipe() {
- }
- /**
- * @param {?} value
- * @param {?} args
- * @return {?}
- */
- HighlightSearchPipe.prototype.transform = /**
- * @param {?} value
- * @param {?} args
- * @return {?}
- */
- function (value, args) {
- if (!args) {
- return value;
- }
- /** @type {?} */
- var re = new RegExp(args, 'gi');
- return value.replace(re, "$& ");
- };
- HighlightSearchPipe.decorators = [
- { type: core.Pipe, args: [{ name: 'highlight' },] }
- ];
- return HighlightSearchPipe;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SanitizeHtmlPipe = /** @class */ (function () {
+ function SanitizeHtmlPipe(sanitizer) {
+ this.sanitizer = sanitizer;
+ }
+ /**
+ * @param {?} html
+ * @return {?}
+ */
+ SanitizeHtmlPipe.prototype.transform = /**
+ * @param {?} html
+ * @return {?}
+ */
+ function (html) {
+ return this.sanitizer.bypassSecurityTrustHtml(html);
+ };
+ SanitizeHtmlPipe.decorators = [
+ { type: core.Pipe, args: [{ name: 'safeHtml' },] }
+ ];
+ /** @nocollapse */
+ SanitizeHtmlPipe.ctorParameters = function () { return [
+ { type: platformBrowser.DomSanitizer }
+ ]; };
+ return SanitizeHtmlPipe;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ SanitizeHtmlPipe.prototype.sanitizer;
+ }
+ var SanitizeResourceHtmlPipe = /** @class */ (function () {
+ function SanitizeResourceHtmlPipe(sanitizer) {
+ this.sanitizer = sanitizer;
+ }
+ /**
+ * @param {?} html
+ * @return {?}
+ */
+ SanitizeResourceHtmlPipe.prototype.transform = /**
+ * @param {?} html
+ * @return {?}
+ */
+ function (html) {
+ return this.sanitizer.bypassSecurityTrustResourceUrl(html);
+ };
+ SanitizeResourceHtmlPipe.decorators = [
+ { type: core.Pipe, args: [{ name: 'safeResourceHtml' },] }
+ ];
+ /** @nocollapse */
+ SanitizeResourceHtmlPipe.ctorParameters = function () { return [
+ { type: platformBrowser.DomSanitizer }
+ ]; };
+ return SanitizeResourceHtmlPipe;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ SanitizeResourceHtmlPipe.prototype.sanitizer;
+ }
+ var SanitizeStylePipe = /** @class */ (function () {
+ function SanitizeStylePipe(sanitizer) {
+ this.sanitizer = sanitizer;
+ }
+ /**
+ * @param {?} html
+ * @return {?}
+ */
+ SanitizeStylePipe.prototype.transform = /**
+ * @param {?} html
+ * @return {?}
+ */
+ function (html) {
+ return this.sanitizer.bypassSecurityTrustStyle(html);
+ };
+ SanitizeStylePipe.decorators = [
+ { type: core.Pipe, args: [{ name: 'safeStyle' },] }
+ ];
+ /** @nocollapse */
+ SanitizeStylePipe.ctorParameters = function () { return [
+ { type: platformBrowser.DomSanitizer }
+ ]; };
+ return SanitizeStylePipe;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ SanitizeStylePipe.prototype.sanitizer;
+ }
+ var HighlightSearchPipe = /** @class */ (function () {
+ function HighlightSearchPipe() {
+ }
+ /**
+ * @param {?} value
+ * @param {?} args
+ * @return {?}
+ */
+ HighlightSearchPipe.prototype.transform = /**
+ * @param {?} value
+ * @param {?} args
+ * @return {?}
+ */
+ function (value, args) {
+ if (!args) {
+ return value;
+ }
+ /** @type {?} */
+ var re = new RegExp(args, 'gi');
+ return value.replace(re, "$& ");
+ };
+ HighlightSearchPipe.decorators = [
+ { type: core.Pipe, args: [{ name: 'highlight' },] }
+ ];
+ return HighlightSearchPipe;
}());
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var UploadFileZoneComponent = /** @class */ (function () {
- function UploadFileZoneComponent(_uploadService) {
- this._uploadService = _uploadService;
- this.closeUpload = new core.EventEmitter();
- }
- /**
- * @return {?}
- */
- UploadFileZoneComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} files
- * @return {?}
- */
- UploadFileZoneComponent.prototype.handleFileInput = /**
- * @param {?} files
- * @return {?}
- */
- function (files) {
- this._uploadService.changeFilesList(files);
- this.onCloseUpload();
- };
- /**
- * @return {?}
- */
- UploadFileZoneComponent.prototype.onCloseUpload = /**
- * @return {?}
- */
- function () {
- this.closeUpload.emit(true);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- UploadFileZoneComponent.prototype.close = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- if ($event.target.id === 'gd-dropZone') {
- this.onCloseUpload();
- }
- };
- UploadFileZoneComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-upload-file-zone',
- template: "\n
\n \n
\n
Drag & Drop your files here \n
OR \n
\n \n \n SELECT FILE\n \n \n
\n
\n",
- styles: [".gd-drag-n-drop-wrap{border:2px dashed #ccc;background-color:#f8f8f8;text-align:center;cursor:default;position:absolute;width:-webkit-fill-available;left:1px;display:-webkit-box;display:flex;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;opacity:.9;z-index:1}.gd-drag-n-drop-wrap h2{color:#959da5;margin:5px 0;font-size:15px;font-weight:300}.gd-drag-n-drop-wrap h4{color:#cacaca;font-weight:300;font-size:12px;margin:10px 0 15px}.gd-drag-n-drop-icon .fa-cloud-download-alt{color:#d1d1d1;font-size:110px}.gd-drag-n-drop-buttons i{margin-right:5px}.gd-drag-n-drop-buttons .btn{width:134px;height:35px;margin:0 10px;font-size:12px;font-weight:400}.gd-drag-n-drop-wrap.hover{background:#ddd;border-color:#aaa}"]
- }] }
- ];
- /** @nocollapse */
- UploadFileZoneComponent.ctorParameters = function () { return [
- { type: UploadFilesService }
- ]; };
- UploadFileZoneComponent.propDecorators = {
- closeUpload: [{ type: core.Output }]
- };
- return UploadFileZoneComponent;
- }());
- if (false) {
- /** @type {?} */
- UploadFileZoneComponent.prototype.closeUpload;
- /**
- * @type {?}
- * @private
- */
- UploadFileZoneComponent.prototype._uploadService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var UploadFileZoneComponent = /** @class */ (function () {
+ function UploadFileZoneComponent(_uploadService) {
+ this._uploadService = _uploadService;
+ this.closeUpload = new core.EventEmitter();
+ }
+ /**
+ * @return {?}
+ */
+ UploadFileZoneComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} files
+ * @return {?}
+ */
+ UploadFileZoneComponent.prototype.handleFileInput = /**
+ * @param {?} files
+ * @return {?}
+ */
+ function (files) {
+ this._uploadService.changeFilesList(files);
+ this.onCloseUpload();
+ };
+ /**
+ * @return {?}
+ */
+ UploadFileZoneComponent.prototype.onCloseUpload = /**
+ * @return {?}
+ */
+ function () {
+ this.closeUpload.emit(true);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ UploadFileZoneComponent.prototype.close = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ if ($event.target.id === 'gd-dropZone') {
+ this.onCloseUpload();
+ }
+ };
+ UploadFileZoneComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-upload-file-zone',
+ template: "\r\n
\r\n \r\n
\r\n
Drag & Drop your files here \r\n
OR \r\n
\r\n \r\n \r\n SELECT FILE\r\n \r\n \r\n
\r\n
\r\n",
+ styles: [".gd-drag-n-drop-wrap{border:2px dashed #ccc;background-color:#f8f8f8;text-align:center;cursor:default;position:absolute;width:-webkit-fill-available;left:1px;display:flex;align-content:center;flex-direction:column;justify-content:center;opacity:.9;z-index:1}.gd-drag-n-drop-wrap h2{color:#959da5;margin:5px 0;font-size:15px;font-weight:300}.gd-drag-n-drop-wrap h4{color:#cacaca;font-weight:300;font-size:12px;margin:10px 0 15px}.gd-drag-n-drop-icon .fa-cloud-download-alt{color:#d1d1d1;font-size:110px}.gd-drag-n-drop-buttons i{margin-right:5px}.gd-drag-n-drop-buttons .btn{width:134px;height:35px;margin:0 10px;font-size:12px;font-weight:400}.gd-drag-n-drop-wrap.hover{background:#ddd;border-color:#aaa}"]
+ }] }
+ ];
+ /** @nocollapse */
+ UploadFileZoneComponent.ctorParameters = function () { return [
+ { type: UploadFilesService }
+ ]; };
+ UploadFileZoneComponent.propDecorators = {
+ closeUpload: [{ type: core.Output }]
+ };
+ return UploadFileZoneComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ UploadFileZoneComponent.prototype.closeUpload;
+ /**
+ * @type {?}
+ * @private
+ */
+ UploadFileZoneComponent.prototype._uploadService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var DndDirective = /** @class */ (function () {
- function DndDirective(_uploadFilesService) {
- this._uploadFilesService = _uploadFilesService;
- this.closing = new core.EventEmitter();
- this.opening = new core.EventEmitter();
- this.dropped = new core.EventEmitter();
- this.active = false;
- this.dragCounter = 0;
- }
- /**
- * @param {?} evt
- * @return {?}
- */
- DndDirective.prototype.onDragEnter = /**
- * @param {?} evt
- * @return {?}
- */
- function (evt) {
- evt.preventDefault();
- evt.stopPropagation();
- this.dragCounter++;
- this.active = true;
- this.opening.emit(true);
- };
- /**
- * @param {?} evt
- * @return {?}
- */
- DndDirective.prototype.onDragOver = /**
- * @param {?} evt
- * @return {?}
- */
- function (evt) {
- evt.preventDefault();
- evt.stopPropagation();
- return false;
- };
- /**
- * @param {?} evt
- * @return {?}
- */
- DndDirective.prototype.onDragLeave = /**
- * @param {?} evt
- * @return {?}
- */
- function (evt) {
- evt.preventDefault();
- evt.stopPropagation();
- this.dragCounter--;
- if (this.dragCounter === 0) {
- this.active = false;
- this.closeArea();
- }
- };
- /**
- * @param {?} evt
- * @return {?}
- */
- DndDirective.prototype.onDrop = /**
- * @param {?} evt
- * @return {?}
- */
- function (evt) {
- evt.preventDefault();
- evt.stopPropagation();
- /** @type {?} */
- var files = evt.dataTransfer.files;
- if (files.length > 0) {
- this.active = false;
- this.dropped.emit(true);
- this._uploadFilesService.changeFilesList(files);
- this.closeArea();
- }
- };
- /**
- * @param {?} event
- * @return {?}
- */
- DndDirective.prototype.onClick = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.closeArea();
- };
- /**
- * @private
- * @return {?}
- */
- DndDirective.prototype.closeArea = /**
- * @private
- * @return {?}
- */
- function () {
- this.closing.emit(true);
- this.opening.emit(false);
- };
- DndDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdDnd]'
- },] }
- ];
- /** @nocollapse */
- DndDirective.ctorParameters = function () { return [
- { type: UploadFilesService }
- ]; };
- DndDirective.propDecorators = {
- closing: [{ type: core.Output }],
- opening: [{ type: core.Output }],
- dropped: [{ type: core.Output }],
- active: [{ type: core.HostBinding, args: ['class.active',] }],
- onDragEnter: [{ type: core.HostListener, args: ['dragenter', ['$event'],] }],
- onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
- onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }],
- onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }],
- onClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return DndDirective;
- }());
- if (false) {
- /** @type {?} */
- DndDirective.prototype.closing;
- /** @type {?} */
- DndDirective.prototype.opening;
- /** @type {?} */
- DndDirective.prototype.dropped;
- /** @type {?} */
- DndDirective.prototype.active;
- /**
- * @type {?}
- * @private
- */
- DndDirective.prototype.dragCounter;
- /**
- * @type {?}
- * @protected
- */
- DndDirective.prototype._uploadFilesService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var DndDirective = /** @class */ (function () {
+ function DndDirective(_uploadFilesService) {
+ this._uploadFilesService = _uploadFilesService;
+ this.closing = new core.EventEmitter();
+ this.opening = new core.EventEmitter();
+ this.dropped = new core.EventEmitter();
+ this.active = false;
+ this.dragCounter = 0;
+ }
+ /**
+ * @param {?} evt
+ * @return {?}
+ */
+ DndDirective.prototype.onDragEnter = /**
+ * @param {?} evt
+ * @return {?}
+ */
+ function (evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ this.dragCounter++;
+ this.active = true;
+ this.opening.emit(true);
+ };
+ /**
+ * @param {?} evt
+ * @return {?}
+ */
+ DndDirective.prototype.onDragOver = /**
+ * @param {?} evt
+ * @return {?}
+ */
+ function (evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ return false;
+ };
+ /**
+ * @param {?} evt
+ * @return {?}
+ */
+ DndDirective.prototype.onDragLeave = /**
+ * @param {?} evt
+ * @return {?}
+ */
+ function (evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ this.dragCounter--;
+ if (this.dragCounter === 0) {
+ this.active = false;
+ this.closeArea();
+ }
+ };
+ /**
+ * @param {?} evt
+ * @return {?}
+ */
+ DndDirective.prototype.onDrop = /**
+ * @param {?} evt
+ * @return {?}
+ */
+ function (evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ /** @type {?} */
+ var files = evt.dataTransfer.files;
+ if (files.length > 0) {
+ this.active = false;
+ this.dropped.emit(true);
+ this._uploadFilesService.changeFilesList(files);
+ this.closeArea();
+ }
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ DndDirective.prototype.onClick = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.closeArea();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ DndDirective.prototype.closeArea = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ this.closing.emit(true);
+ this.opening.emit(false);
+ };
+ DndDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdDnd]'
+ },] }
+ ];
+ /** @nocollapse */
+ DndDirective.ctorParameters = function () { return [
+ { type: UploadFilesService }
+ ]; };
+ DndDirective.propDecorators = {
+ closing: [{ type: core.Output }],
+ opening: [{ type: core.Output }],
+ dropped: [{ type: core.Output }],
+ active: [{ type: core.HostBinding, args: ['class.active',] }],
+ onDragEnter: [{ type: core.HostListener, args: ['dragenter', ['$event'],] }],
+ onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
+ onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }],
+ onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }],
+ onClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
+ };
+ return DndDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ DndDirective.prototype.closing;
+ /** @type {?} */
+ DndDirective.prototype.opening;
+ /** @type {?} */
+ DndDirective.prototype.dropped;
+ /** @type {?} */
+ DndDirective.prototype.active;
+ /**
+ * @type {?}
+ * @private
+ */
+ DndDirective.prototype.dragCounter;
+ /**
+ * @type {?}
+ * @protected
+ */
+ DndDirective.prototype._uploadFilesService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$2 = jquery;
- var ViewportService = /** @class */ (function () {
- function ViewportService() {
- }
- /**
- * @param {?} el
- * @param {?=} zoom
- * @param {?=} leftOffset
- * @param {?=} deltaX
- * @return {?}
- */
- ViewportService.prototype.checkInViewport = /**
- * @param {?} el
- * @param {?=} zoom
- * @param {?=} leftOffset
- * @param {?=} deltaX
- * @return {?}
- */
- function (el, zoom, leftOffset, deltaX) {
- if (zoom === void 0) { zoom = 100; }
- if (leftOffset === void 0) { leftOffset = 0; }
- if (deltaX === void 0) { deltaX = 0.5; }
- if (!el) {
- return false;
- }
- /** @type {?} */
- var x = deltaX;
- /** @type {?} */
- var y = 0.5;
- /** @type {?} */
- var win = $$2(window);
- /** @type {?} */
- var viewport = {
- top: win.scrollTop(),
- left: win.scrollLeft() + leftOffset,
- right: win.scrollLeft() + win.width() - 10,
- bottom: win.scrollTop() + win.height()
- };
- if (isNaN(zoom)) {
- zoom = 100;
- }
- /** @type {?} */
- var zoomN = zoom / 100;
- /** @type {?} */
- var height = $$2(el).outerHeight() * (zoomN);
- /** @type {?} */
- var width = $$2(el).outerWidth() * (zoomN);
- if (!width || !height) {
- return false;
- }
- /** @type {?} */
- var bounds = $$2(el).offset();
- /** @type {?} */
- var right = (bounds.left * (zoomN)) + width;
- /** @type {?} */
- var bottom = (bounds.top * (zoomN)) + height;
- /** @type {?} */
- var visible = (!(viewport.right < (bounds.left * (zoomN)) || viewport.left > right || viewport.bottom < (bounds.top * (zoomN)) || viewport.top > bottom));
- if (!visible) {
- return false;
- }
- /** @type {?} */
- var deltas = {
- top: parseFloat(Math.min(1, (bottom - viewport.top) / height).toFixed(2)),
- bottom: parseFloat(Math.min(1, (viewport.bottom - (bounds.top * (zoomN))) / height).toFixed(2)),
- left: parseFloat(Math.min(1, (right - viewport.left) / width).toFixed(2)),
- right: parseFloat(Math.min(1, (viewport.right - (bounds.left * (zoomN))) / width).toFixed(2))
- };
- return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;
- };
- ViewportService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- ViewportService.ctorParameters = function () { return []; };
- /** @nocollapse */ ViewportService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ViewportService_Factory() { return new ViewportService(); }, token: ViewportService, providedIn: "root" });
- return ViewportService;
- }());
-
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$3 = jquery;
- var ScrollableDirective = /** @class */ (function () {
- function ScrollableDirective(_elementRef, _navigateService, _pagePreloadService, _zoomService, _windowService, _viewportService) {
- var _this = this;
- this._elementRef = _elementRef;
- this._navigateService = _navigateService;
- this._pagePreloadService = _pagePreloadService;
- this._zoomService = _zoomService;
- this._windowService = _windowService;
- this._viewportService = _viewportService;
- this.zoom = 100;
- this.loadedPagesSet = new Set();
- this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;
- _zoomService.zoomChange.subscribe((/**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- _this.zoom = val ? val : _this.zoom;
- _this.refresh();
- }));
- }
- /**
- * @return {?}
- */
- ScrollableDirective.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;
- this._navigateService.navigate.subscribe(((/**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- _this.currentPage = value;
- _this.scrollToPage(value);
- })));
- this.refresh();
- };
- /**
- * @return {?}
- */
- ScrollableDirective.prototype.scrolling = /**
- * @return {?}
- */
- function () {
- this.refresh();
- };
- /**
- * @return {?}
- */
- ScrollableDirective.prototype.resizing = /**
- * @return {?}
- */
- function () {
- this.refresh();
- };
- /**
- * @param {?} pageNumber
- * @return {?}
- */
- ScrollableDirective.prototype.scrollToPage = /**
- * @param {?} pageNumber
- * @return {?}
- */
- function (pageNumber) {
- /** @type {?} */
- var el = this._elementRef.nativeElement;
- /** @type {?} */
- var page = this.getPage(pageNumber);
- /** @type {?} */
- var prev = pageNumber > 0 ? this.getPage(pageNumber - 1) : null;
- /** @type {?} */
- var isSameTop = (prev && $$3(prev).offset().top === $$3(page).offset().top);
- if (this._viewportService.checkInViewport(page, this.zoom) && isSameTop) {
- return;
- }
- /** @type {?} */
- var pagesHeight = this.calculateOffset(pageNumber);
- /** @type {?} */
- var options = {
- left: 0,
- top: pagesHeight
- };
- if (el) {
- // using polyfill
- el.scroll(options);
- }
- };
- /**
- * @private
- * @return {?}
- */
- ScrollableDirective.prototype.getChildren = /**
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var el = this._elementRef ? this._elementRef.nativeElement : null;
- if (el) {
- // here and in the similar line below we getting the document pages
- return el.children.item(0).children.item(0).children;
- }
- };
- /**
- * @private
- * @param {?} pageNumber
- * @return {?}
- */
- ScrollableDirective.prototype.getPage = /**
- * @private
- * @param {?} pageNumber
- * @return {?}
- */
- function (pageNumber) {
- /** @type {?} */
- var el = this._elementRef ? this._elementRef.nativeElement : null;
- if (el) {
- return el.children.item(0).children.item(0).children.item(pageNumber - 1);
- }
- };
- /**
- * @private
- * @param {?} pageNumber
- * @return {?}
- */
- ScrollableDirective.prototype.calculateOffset = /**
- * @private
- * @param {?} pageNumber
- * @return {?}
- */
- function (pageNumber) {
- /** @type {?} */
- var count = this._windowService.isFirefox() ? 1 : this.countPagesOnWidth();
- /** @type {?} */
- var margin = this._windowService.isDesktop() ? 40 : 10;
- /** @type {?} */
- var pagesHeight = 0;
- for (var i = 1; i < pageNumber / count; i++) {
- /** @type {?} */
- var item = this.getPage(i);
- /** @type {?} */
- var clientHeight = item ? item.clientHeight : 0;
- pagesHeight += clientHeight > 0 ? clientHeight * this.getZoom() + margin : 0;
- }
- return pagesHeight;
- };
- /**
- * @private
- * @return {?}
- */
- ScrollableDirective.prototype.countPagesOnWidth = /**
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var pageEl = this.getPage(1);
- /** @type {?} */
- var offset = 150;
- /** @type {?} */
- var count = Math.floor((this.getWidth() - offset) / (pageEl.getBoundingClientRect().width * this.getZoom()));
- return count === 0 ? 1 : count;
- };
- /**
- * @return {?}
- */
- ScrollableDirective.prototype.refresh = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var page;
- /** @type {?} */
- var currentPageSet = false;
- /** @type {?} */
- var pageElem = this.getPage(this.currentPage);
- /** @type {?} */
- var currentPageRect = this.currentPage && pageElem ? pageElem.getBoundingClientRect() : null;
- for (page = 1; page < this.getChildren().length + 1; page++) {
- /** @type {?} */
- var element = this.getPage(page);
- if (this._viewportService.checkInViewport(element, this.zoom)) {
- if (!currentPageSet) {
- if (!this.currentPage || !pageElem || (this.currentPage && currentPageRect && element.getBoundingClientRect().top !== currentPageRect.top)) {
- this.currentPage = page;
- if (this._navigateService.currentPage === 0) {
- this._navigateService.currentPage = page;
- }
- }
- currentPageSet = true;
- }
- if (!this.loadedPagesSet.has(page)) {
- this._pagePreloadService.changeLastPageInView(page);
- this.loadedPagesSet.add(page);
- }
- }
- }
- };
- /**
- * @param {?} changes
- * @return {?}
- */
- ScrollableDirective.prototype.ngOnChanges = /**
- * @param {?} changes
- * @return {?}
- */
- function (changes) {
- this.refresh();
- };
- /**
- * @return {?}
- */
- ScrollableDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;
- };
- /**
- * @private
- * @return {?}
- */
- ScrollableDirective.prototype.getWidth = /**
- * @private
- * @return {?}
- */
- function () {
- return this._elementRef ? this._elementRef.nativeElement.offsetWidth : window.innerWidth;
- };
- /**
- * @private
- * @return {?}
- */
- ScrollableDirective.prototype.getZoom = /**
- * @private
- * @return {?}
- */
- function () {
- return this.zoom / 100;
- };
- ScrollableDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdScrollable]'
- },] }
- ];
- /** @nocollapse */
- ScrollableDirective.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: NavigateService },
- { type: PagePreloadService },
- { type: ZoomService },
- { type: WindowService },
- { type: ViewportService }
- ]; };
- ScrollableDirective.propDecorators = {
- scrolling: [{ type: core.HostListener, args: ['scroll',] }],
- resizing: [{ type: core.HostListener, args: ['window:resize',] }]
- };
- return ScrollableDirective;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$2 = jquery;
+ var ViewportService = /** @class */ (function () {
+ function ViewportService() {
+ }
+ /**
+ * @param {?} el
+ * @param {?=} zoom
+ * @param {?=} leftOffset
+ * @param {?=} deltaX
+ * @return {?}
+ */
+ ViewportService.prototype.checkInViewport = /**
+ * @param {?} el
+ * @param {?=} zoom
+ * @param {?=} leftOffset
+ * @param {?=} deltaX
+ * @return {?}
+ */
+ function (el, zoom, leftOffset, deltaX) {
+ if (zoom === void 0) { zoom = 100; }
+ if (leftOffset === void 0) { leftOffset = 0; }
+ if (deltaX === void 0) { deltaX = 0.5; }
+ if (!el) {
+ return false;
+ }
+ /** @type {?} */
+ var x = deltaX;
+ /** @type {?} */
+ var y = 0.5;
+ /** @type {?} */
+ var win = $$2(window);
+ /** @type {?} */
+ var viewport = {
+ top: win.scrollTop(),
+ left: win.scrollLeft() + leftOffset,
+ right: win.scrollLeft() + win.width() - 10,
+ bottom: win.scrollTop() + win.height()
+ };
+ if (isNaN(zoom)) {
+ zoom = 100;
+ }
+ /** @type {?} */
+ var zoomN = zoom / 100;
+ /** @type {?} */
+ var height = $$2(el).outerHeight() * (zoomN);
+ /** @type {?} */
+ var width = $$2(el).outerWidth() * (zoomN);
+ if (!width || !height) {
+ return false;
+ }
+ /** @type {?} */
+ var bounds = $$2(el).offset();
+ /** @type {?} */
+ var right = (bounds.left * (zoomN)) + width;
+ /** @type {?} */
+ var bottom = (bounds.top * (zoomN)) + height;
+ /** @type {?} */
+ var visible = (!(viewport.right < (bounds.left * (zoomN)) || viewport.left > right || viewport.bottom < (bounds.top * (zoomN)) || viewport.top > bottom));
+ if (!visible) {
+ return false;
+ }
+ /** @type {?} */
+ var deltas = {
+ top: parseFloat(Math.min(1, (bottom - viewport.top) / height).toFixed(2)),
+ bottom: parseFloat(Math.min(1, (viewport.bottom - (bounds.top * (zoomN))) / height).toFixed(2)),
+ left: parseFloat(Math.min(1, (right - viewport.left) / width).toFixed(2)),
+ right: parseFloat(Math.min(1, (viewport.right - (bounds.left * (zoomN))) / width).toFixed(2))
+ };
+ return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;
+ };
+ ViewportService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ ViewportService.ctorParameters = function () { return []; };
+ /** @nocollapse */ ViewportService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ViewportService_Factory() { return new ViewportService(); }, token: ViewportService, providedIn: "root" });
+ return ViewportService;
}());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype.currentPage;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype.zoom;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype.loadedPagesSet;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._elementRef;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._navigateService;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._pagePreloadService;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._zoomService;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._windowService;
- /**
- * @type {?}
- * @private
- */
- ScrollableDirective.prototype._viewportService;
- }
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$4 = jquery;
- var MouseWheelDirective = /** @class */ (function () {
- function MouseWheelDirective() {
- this.mouseWheelUp = new core.EventEmitter();
- this.mouseWheelDown = new core.EventEmitter();
- }
- /**
- * @param {?} event
- * @return {?}
- */
- MouseWheelDirective.prototype.onMouseWheelChrome = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.mouseWheelFunc(event);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- MouseWheelDirective.prototype.onMouseWheelFirefox = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.mouseWheelFunc(event);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- MouseWheelDirective.prototype.onMouseWheelIE = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.mouseWheelFunc(event);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- MouseWheelDirective.prototype.mouseWheelFunc = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event = window.event;
- /** @type {?} */
- var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
- if (delta > 0) {
- this.mouseWheelUp.emit(event);
- }
- else if (delta < 0) {
- this.mouseWheelDown.emit(event);
- }
- };
- MouseWheelDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdMouseWheel]'
- },] }
- ];
- MouseWheelDirective.propDecorators = {
- mouseWheelUp: [{ type: core.Output }],
- mouseWheelDown: [{ type: core.Output }],
- onMouseWheelChrome: [{ type: core.HostListener, args: ['mousewheel', ['$event'],] }],
- onMouseWheelFirefox: [{ type: core.HostListener, args: ['DOMMouseScroll', ['$event'],] }],
- onMouseWheelIE: [{ type: core.HostListener, args: ['onmousewheel', ['$event'],] }]
- };
- return MouseWheelDirective;
- }());
- if (false) {
- /** @type {?} */
- MouseWheelDirective.prototype.mouseWheelUp;
- /** @type {?} */
- MouseWheelDirective.prototype.mouseWheelDown;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$3 = jquery;
+ var ScrollableDirective = /** @class */ (function () {
+ function ScrollableDirective(_elementRef, _navigateService, _pagePreloadService, _zoomService, _windowService, _viewportService) {
+ var _this = this;
+ this._elementRef = _elementRef;
+ this._navigateService = _navigateService;
+ this._pagePreloadService = _pagePreloadService;
+ this._zoomService = _zoomService;
+ this._windowService = _windowService;
+ this._viewportService = _viewportService;
+ this.zoom = 100;
+ this.loadedPagesSet = new Set();
+ this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;
+ _zoomService.zoomChange.subscribe((/**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ _this.zoom = val ? val : _this.zoom;
+ _this.refresh();
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ ScrollableDirective.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;
+ this._navigateService.navigate.subscribe(((/**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ _this.currentPage = value;
+ _this.scrollToPage(value);
+ })));
+ this.refresh();
+ };
+ /**
+ * @return {?}
+ */
+ ScrollableDirective.prototype.scrolling = /**
+ * @return {?}
+ */
+ function () {
+ this.refresh();
+ };
+ /**
+ * @return {?}
+ */
+ ScrollableDirective.prototype.resizing = /**
+ * @return {?}
+ */
+ function () {
+ this.refresh();
+ };
+ /**
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ ScrollableDirective.prototype.scrollToPage = /**
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ function (pageNumber) {
+ /** @type {?} */
+ var el = this._elementRef.nativeElement;
+ /** @type {?} */
+ var page = this.getPage(pageNumber);
+ /** @type {?} */
+ var prev = pageNumber > 0 ? this.getPage(pageNumber - 1) : null;
+ /** @type {?} */
+ var isSameTop = (prev && $$3(prev).offset().top === $$3(page).offset().top);
+ if (this._viewportService.checkInViewport(page, this.zoom) && isSameTop) {
+ return;
+ }
+ /** @type {?} */
+ var pagesHeight = this.calculateOffset(pageNumber);
+ /** @type {?} */
+ var options = {
+ left: 0,
+ top: pagesHeight
+ };
+ if (el) {
+ // using polyfill
+ el.scroll(options);
+ }
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ ScrollableDirective.prototype.getChildren = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var el = this._elementRef ? this._elementRef.nativeElement : null;
+ if (el) {
+ // here and in the similar line below we getting the document pages
+ return el.children.item(0).children.item(0).children;
+ }
+ };
+ /**
+ * @private
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ ScrollableDirective.prototype.getPage = /**
+ * @private
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ function (pageNumber) {
+ /** @type {?} */
+ var el = this._elementRef ? this._elementRef.nativeElement : null;
+ if (el) {
+ return el.children.item(0).children.item(0).children.item(pageNumber - 1);
+ }
+ };
+ /**
+ * @private
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ ScrollableDirective.prototype.calculateOffset = /**
+ * @private
+ * @param {?} pageNumber
+ * @return {?}
+ */
+ function (pageNumber) {
+ /** @type {?} */
+ var count = this._windowService.isFirefox() ? 1 : this.countPagesOnWidth();
+ /** @type {?} */
+ var margin = this._windowService.isDesktop() ? 40 : 10;
+ /** @type {?} */
+ var pagesHeight = 0;
+ for (var i = 1; i < pageNumber / count; i++) {
+ /** @type {?} */
+ var item = this.getPage(i);
+ /** @type {?} */
+ var clientHeight = item ? item.clientHeight : 0;
+ pagesHeight += clientHeight > 0 ? clientHeight * this.getZoom() + margin : 0;
+ }
+ return pagesHeight;
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ ScrollableDirective.prototype.countPagesOnWidth = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var pageEl = this.getPage(1);
+ /** @type {?} */
+ var offset = 150;
+ /** @type {?} */
+ var count = Math.floor((this.getWidth() - offset) / (pageEl.getBoundingClientRect().width * this.getZoom()));
+ return count === 0 ? 1 : count;
+ };
+ /**
+ * @return {?}
+ */
+ ScrollableDirective.prototype.refresh = /**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var page;
+ /** @type {?} */
+ var currentPageSet = false;
+ /** @type {?} */
+ var pageElem = this.getPage(this.currentPage);
+ /** @type {?} */
+ var currentPageRect = this.currentPage && pageElem ? pageElem.getBoundingClientRect() : null;
+ for (page = 1; page < this.getChildren().length + 1; page++) {
+ /** @type {?} */
+ var element = this.getPage(page);
+ if (this._viewportService.checkInViewport(element, this.zoom)) {
+ if (!currentPageSet) {
+ if (!this.currentPage || !pageElem || (this.currentPage && currentPageRect && element.getBoundingClientRect().top !== currentPageRect.top)) {
+ this.currentPage = page;
+ if (this._navigateService.currentPage === 0) {
+ this._navigateService.currentPage = page;
+ }
+ }
+ currentPageSet = true;
+ }
+ if (!this.loadedPagesSet.has(page)) {
+ this._pagePreloadService.changeLastPageInView(page);
+ this.loadedPagesSet.add(page);
+ }
+ }
+ }
+ };
+ /**
+ * @param {?} changes
+ * @return {?}
+ */
+ ScrollableDirective.prototype.ngOnChanges = /**
+ * @param {?} changes
+ * @return {?}
+ */
+ function (changes) {
+ this.refresh();
+ };
+ /**
+ * @return {?}
+ */
+ ScrollableDirective.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ ScrollableDirective.prototype.getWidth = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ return this._elementRef ? this._elementRef.nativeElement.offsetWidth : window.innerWidth;
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ ScrollableDirective.prototype.getZoom = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ return this.zoom / 100;
+ };
+ ScrollableDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdScrollable]'
+ },] }
+ ];
+ /** @nocollapse */
+ ScrollableDirective.ctorParameters = function () { return [
+ { type: core.ElementRef },
+ { type: NavigateService },
+ { type: PagePreloadService },
+ { type: ZoomService },
+ { type: WindowService },
+ { type: ViewportService }
+ ]; };
+ ScrollableDirective.propDecorators = {
+ scrolling: [{ type: core.HostListener, args: ['scroll',] }],
+ resizing: [{ type: core.HostListener, args: ['window:resize',] }]
+ };
+ return ScrollableDirective;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype.currentPage;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype.zoom;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype.loadedPagesSet;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._elementRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._navigateService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._pagePreloadService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._zoomService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._windowService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ScrollableDirective.prototype._viewportService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ZoomDirective = /** @class */ (function () {
- function ZoomDirective(_zoomService, _windowService, el) {
- this._zoomService = _zoomService;
- this._windowService = _windowService;
- this.zoomActive = true;
- this.el = el;
- }
- /**
- * @return {?}
- */
- ZoomDirective.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @return {?}
- */
- ZoomDirective.prototype.ngOnChanges = /**
- * @return {?}
- */
- function () {
- this.setStyles(this._zoomService.zoom);
- this.resizePages(this._zoomService.zoom);
- };
- /**
- * @return {?}
- */
- ZoomDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- if (!this.zoomActive) {
- return;
- }
- this.setStyles(this._zoomService.zoom);
- this._zoomService.zoomChange.subscribe((/**
- * @param {?} zoom
- * @return {?}
- */
- function (zoom) {
- _this.setStyles(zoom);
- _this.resizePages(zoom);
- }));
- };
- /**
- * @private
- * @param {?} zoom
- * @return {?}
- */
- ZoomDirective.prototype.setStyles = /**
- * @private
- * @param {?} zoom
- * @return {?}
- */
- function (zoom) {
- if (!this.zoomActive) {
- return;
- }
- /** @type {?} */
- var zoomInt = zoom === 100 ? 1 : zoom / 100;
- if (this._windowService.isEdge()) {
- this.zoomInt = zoomInt;
- }
- else {
- this.zoomInt = null;
- }
- if (!this._windowService.isEdge()) {
- this.transform = 'scale(' + zoomInt + ')';
- this.transformOrigin = 'top left';
- }
- else {
- this.transform = "";
- this.transformOrigin = "";
- }
- /** @type {?} */
- var maxWidth = 0;
- this.file.pages.forEach((/**
- * @param {?} page
- * @return {?}
- */
- function (page) {
- {
- if (page.width > maxWidth) {
- maxWidth = page.width;
- }
- }
- }));
- // Images and Excel-related files receiving dimensions in px from server
- this.minWidth = maxWidth + FileUtil.find(this.file.guid, false).unit;
- };
- /**
- * @private
- * @param {?} elm
- * @return {?}
- */
- ZoomDirective.prototype.getScrollWidth = /**
- * @private
- * @param {?} elm
- * @return {?}
- */
- function (elm) {
- return elm.offsetWidth - elm.clientWidth;
- };
- /**
- * @private
- * @param {?} elm
- * @return {?}
- */
- ZoomDirective.prototype.getScrollHeight = /**
- * @private
- * @param {?} elm
- * @return {?}
- */
- function (elm) {
- return elm.offsetHeight - elm.clientHeight;
- };
- /**
- * @private
- * @param {?} zoom
- * @return {?}
- */
- ZoomDirective.prototype.resizePages = /**
- * @private
- * @param {?} zoom
- * @return {?}
- */
- function (zoom) {
- /** @type {?} */
- var zoomInt = zoom === 100 ? 1 : zoom / 100;
- /** @type {?} */
- var viewPortWidth = this.el.nativeElement.parentElement.offsetWidth;
- /** @type {?} */
- var viewPortHeight = this.el.nativeElement.parentElement.offsetHeight;
- /** @type {?} */
- var scrollWidth = this.getScrollWidth(this.el.nativeElement.parentElement);
- /** @type {?} */
- var scrollHeight = this.getScrollHeight(this.el.nativeElement.parentElement);
- this.width = (viewPortWidth / zoomInt - scrollWidth / zoomInt) + 'px';
- this.height = (viewPortHeight / zoomInt - scrollHeight / zoomInt) + 'px';
- };
- /**
- * @return {?}
- */
- ZoomDirective.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- this.setStyles(this._zoomService.zoom);
- };
- ZoomDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdZoom]'
- },] }
- ];
- /** @nocollapse */
- ZoomDirective.ctorParameters = function () { return [
- { type: ZoomService },
- { type: WindowService },
- { type: core.ElementRef }
- ]; };
- ZoomDirective.propDecorators = {
- zoomActive: [{ type: core.Input }],
- file: [{ type: core.Input }],
- zoomInt: [{ type: core.HostBinding, args: ['style.zoom',] }],
- transform: [{ type: core.HostBinding, args: ['style.transform',] }],
- transformOrigin: [{ type: core.HostBinding, args: ['style.transform-origin',] }],
- width: [{ type: core.HostBinding, args: ['style.width',] }],
- height: [{ type: core.HostBinding, args: ['style.height',] }],
- minWidth: [{ type: core.HostBinding, args: ['style.min-width',] }]
- };
- return ZoomDirective;
- }());
- if (false) {
- /** @type {?} */
- ZoomDirective.prototype.zoomActive;
- /** @type {?} */
- ZoomDirective.prototype.file;
- /** @type {?} */
- ZoomDirective.prototype.zoomInt;
- /** @type {?} */
- ZoomDirective.prototype.transform;
- /** @type {?} */
- ZoomDirective.prototype.transformOrigin;
- /** @type {?} */
- ZoomDirective.prototype.width;
- /** @type {?} */
- ZoomDirective.prototype.height;
- /** @type {?} */
- ZoomDirective.prototype.minWidth;
- /** @type {?} */
- ZoomDirective.prototype.el;
- /**
- * @type {?}
- * @private
- */
- ZoomDirective.prototype._zoomService;
- /**
- * @type {?}
- * @private
- */
- ZoomDirective.prototype._windowService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$4 = jquery;
+ var MouseWheelDirective = /** @class */ (function () {
+ function MouseWheelDirective() {
+ this.mouseWheelUp = new core.EventEmitter();
+ this.mouseWheelDown = new core.EventEmitter();
+ }
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ MouseWheelDirective.prototype.onMouseWheelChrome = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.mouseWheelFunc(event);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ MouseWheelDirective.prototype.onMouseWheelFirefox = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.mouseWheelFunc(event);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ MouseWheelDirective.prototype.onMouseWheelIE = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.mouseWheelFunc(event);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ MouseWheelDirective.prototype.mouseWheelFunc = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event = window.event;
+ /** @type {?} */
+ var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
+ if (delta > 0) {
+ this.mouseWheelUp.emit(event);
+ }
+ else if (delta < 0) {
+ this.mouseWheelDown.emit(event);
+ }
+ };
+ MouseWheelDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdMouseWheel]'
+ },] }
+ ];
+ MouseWheelDirective.propDecorators = {
+ mouseWheelUp: [{ type: core.Output }],
+ mouseWheelDown: [{ type: core.Output }],
+ onMouseWheelChrome: [{ type: core.HostListener, args: ['mousewheel', ['$event'],] }],
+ onMouseWheelFirefox: [{ type: core.HostListener, args: ['DOMMouseScroll', ['$event'],] }],
+ onMouseWheelIE: [{ type: core.HostListener, args: ['onmousewheel', ['$event'],] }]
+ };
+ return MouseWheelDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ MouseWheelDirective.prototype.mouseWheelUp;
+ /** @type {?} */
+ MouseWheelDirective.prototype.mouseWheelDown;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var OnCloseService = /** @class */ (function () {
- function OnCloseService() {
- this._observer = new rxjs.Subject();
- this._onClose = this._observer.asObservable();
- }
- Object.defineProperty(OnCloseService.prototype, "onClose", {
- get: /**
- * @return {?}
- */
- function () {
- return this._onClose;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} close
- * @return {?}
- */
- OnCloseService.prototype.close = /**
- * @param {?} close
- * @return {?}
- */
- function (close) {
- this._observer.next(close);
- };
- OnCloseService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- OnCloseService.ctorParameters = function () { return []; };
- /** @nocollapse */ OnCloseService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function OnCloseService_Factory() { return new OnCloseService(); }, token: OnCloseService, providedIn: "root" });
- return OnCloseService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- OnCloseService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- OnCloseService.prototype._onClose;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ZoomDirective = /** @class */ (function () {
+ function ZoomDirective(_zoomService, _windowService, el) {
+ this._zoomService = _zoomService;
+ this._windowService = _windowService;
+ this.zoomActive = true;
+ this.el = el;
+ }
+ /**
+ * @return {?}
+ */
+ ZoomDirective.prototype.ngOnDestroy = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @return {?}
+ */
+ ZoomDirective.prototype.ngOnChanges = /**
+ * @return {?}
+ */
+ function () {
+ this.setStyles(this._zoomService.zoom);
+ this.resizePages(this._zoomService.zoom);
+ };
+ /**
+ * @return {?}
+ */
+ ZoomDirective.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ if (!this.zoomActive) {
+ return;
+ }
+ this.setStyles(this._zoomService.zoom);
+ this._zoomService.zoomChange.subscribe((/**
+ * @param {?} zoom
+ * @return {?}
+ */
+ function (zoom) {
+ _this.setStyles(zoom);
+ _this.resizePages(zoom);
+ }));
+ };
+ /**
+ * @private
+ * @param {?} zoom
+ * @return {?}
+ */
+ ZoomDirective.prototype.setStyles = /**
+ * @private
+ * @param {?} zoom
+ * @return {?}
+ */
+ function (zoom) {
+ if (!this.zoomActive) {
+ return;
+ }
+ /** @type {?} */
+ var zoomInt = zoom === 100 ? 1 : zoom / 100;
+ if (this._windowService.isEdge()) {
+ this.zoomInt = zoomInt;
+ }
+ else {
+ this.zoomInt = null;
+ }
+ if (!this._windowService.isEdge()) {
+ this.transform = 'scale(' + zoomInt + ')';
+ this.transformOrigin = 'top left';
+ }
+ else {
+ this.transform = "";
+ this.transformOrigin = "";
+ }
+ /** @type {?} */
+ var maxWidth = 0;
+ this.file.pages.forEach((/**
+ * @param {?} page
+ * @return {?}
+ */
+ function (page) {
+ {
+ if (page.width > maxWidth) {
+ maxWidth = page.width;
+ }
+ }
+ }));
+ // Images and Excel-related files receiving dimensions in px from server
+ this.minWidth = maxWidth + FileUtil.find(this.file.guid, false).unit;
+ };
+ /**
+ * @private
+ * @param {?} elm
+ * @return {?}
+ */
+ ZoomDirective.prototype.getScrollWidth = /**
+ * @private
+ * @param {?} elm
+ * @return {?}
+ */
+ function (elm) {
+ return elm.offsetWidth - elm.clientWidth;
+ };
+ /**
+ * @private
+ * @param {?} elm
+ * @return {?}
+ */
+ ZoomDirective.prototype.getScrollHeight = /**
+ * @private
+ * @param {?} elm
+ * @return {?}
+ */
+ function (elm) {
+ return elm.offsetHeight - elm.clientHeight;
+ };
+ /**
+ * @private
+ * @param {?} zoom
+ * @return {?}
+ */
+ ZoomDirective.prototype.resizePages = /**
+ * @private
+ * @param {?} zoom
+ * @return {?}
+ */
+ function (zoom) {
+ /** @type {?} */
+ var zoomInt = zoom === 100 ? 1 : zoom / 100;
+ /** @type {?} */
+ var viewPortWidth = this.el.nativeElement.parentElement.offsetWidth;
+ /** @type {?} */
+ var viewPortHeight = this.el.nativeElement.parentElement.offsetHeight;
+ /** @type {?} */
+ var scrollWidth = this.getScrollWidth(this.el.nativeElement.parentElement);
+ /** @type {?} */
+ var scrollHeight = this.getScrollHeight(this.el.nativeElement.parentElement);
+ this.width = (viewPortWidth / zoomInt - scrollWidth / zoomInt) + 'px';
+ this.height = (viewPortHeight / zoomInt - scrollHeight / zoomInt) + 'px';
+ };
+ /**
+ * @return {?}
+ */
+ ZoomDirective.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ this.setStyles(this._zoomService.zoom);
+ };
+ ZoomDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdZoom]'
+ },] }
+ ];
+ /** @nocollapse */
+ ZoomDirective.ctorParameters = function () { return [
+ { type: ZoomService },
+ { type: WindowService },
+ { type: core.ElementRef }
+ ]; };
+ ZoomDirective.propDecorators = {
+ zoomActive: [{ type: core.Input }],
+ file: [{ type: core.Input }],
+ zoomInt: [{ type: core.HostBinding, args: ['style.zoom',] }],
+ transform: [{ type: core.HostBinding, args: ['style.transform',] }],
+ transformOrigin: [{ type: core.HostBinding, args: ['style.transform-origin',] }],
+ width: [{ type: core.HostBinding, args: ['style.width',] }],
+ height: [{ type: core.HostBinding, args: ['style.height',] }],
+ minWidth: [{ type: core.HostBinding, args: ['style.min-width',] }]
+ };
+ return ZoomDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ ZoomDirective.prototype.zoomActive;
+ /** @type {?} */
+ ZoomDirective.prototype.file;
+ /** @type {?} */
+ ZoomDirective.prototype.zoomInt;
+ /** @type {?} */
+ ZoomDirective.prototype.transform;
+ /** @type {?} */
+ ZoomDirective.prototype.transformOrigin;
+ /** @type {?} */
+ ZoomDirective.prototype.width;
+ /** @type {?} */
+ ZoomDirective.prototype.height;
+ /** @type {?} */
+ ZoomDirective.prototype.minWidth;
+ /** @type {?} */
+ ZoomDirective.prototype.el;
+ /**
+ * @type {?}
+ * @private
+ */
+ ZoomDirective.prototype._zoomService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ZoomDirective.prototype._windowService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /**
- * @record
- */
- function Option() { }
- if (false) {
- /** @type {?} */
- Option.prototype.name;
- /** @type {?} */
- Option.prototype.value;
- /** @type {?} */
- Option.prototype.separator;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var OnCloseService = /** @class */ (function () {
+ function OnCloseService() {
+ this._observer = new rxjs.Subject();
+ this._onClose = this._observer.asObservable();
+ }
+ Object.defineProperty(OnCloseService.prototype, "onClose", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._onClose;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} close
+ * @return {?}
+ */
+ OnCloseService.prototype.close = /**
+ * @param {?} close
+ * @return {?}
+ */
+ function (close) {
+ this._observer.next(close);
+ };
+ OnCloseService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ OnCloseService.ctorParameters = function () { return []; };
+ /** @nocollapse */ OnCloseService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function OnCloseService_Factory() { return new OnCloseService(); }, token: OnCloseService, providedIn: "root" });
+ return OnCloseService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ OnCloseService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ OnCloseService.prototype._onClose;
}
- var SelectComponent = /** @class */ (function () {
- function SelectComponent(_onCloseService) {
- var _this = this;
- this._onCloseService = _onCloseService;
- this.disabled = false;
- this.selected = new core.EventEmitter();
- this.isOpen = false;
- _onCloseService.onClose.subscribe((/**
- * @return {?}
- */
- function () {
- _this.close();
- }));
- }
- /**
- * @return {?}
- */
- SelectComponent.prototype.open = /**
- * @return {?}
- */
- function () {
- if (!this.disabled) {
- this.isOpen = true;
- }
- };
- /**
- * @return {?}
- */
- SelectComponent.prototype.close = /**
- * @return {?}
- */
- function () {
- this.isOpen = false;
- };
- /**
- * @param {?} event
- * @return {?}
- */
- SelectComponent.prototype.onClickOutside = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.close();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- SelectComponent.prototype.toggle = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- // TODO: following lines were uncommented due to needness in signature app
- $event.preventDefault();
- $event.stopPropagation();
- if (!this.disabled) {
- this.isOpen = !this.isOpen;
- }
- };
- /**
- * @param {?} $event
- * @param {?} value
- * @return {?}
- */
- SelectComponent.prototype.select = /**
- * @param {?} $event
- * @param {?} value
- * @return {?}
- */
- function ($event, value) {
- $event.preventDefault();
- $event.stopPropagation();
- this.selected.emit(value);
- this.close();
- };
- SelectComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-select',
- template: "\n
\n {{showSelected?.name}}\n
\n
\n
\n \n
\n",
- styles: [".select{min-width:50px;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;color:#959da5}.selected-value{font-size:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:clip;max-width:70px}.selected-value.inactive{cursor:not-allowed;color:#ccc}.nav-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent;cursor:pointer}.nav-caret.inactive{cursor:not-allowed;color:#ccc}.dropdown-menu{position:absolute;top:49px;z-index:1000;float:left;min-width:96px;list-style:none;font-size:13px;text-align:left;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);background-clip:padding-box}.dropdown-menu .option{display:block;padding:7px 0 7px 7px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;font-size:10px}.dropdown-menu .option:hover{background-color:#25c2d4;color:#fff!important}.dropdown-menu-separator{height:1px;overflow:hidden;background-color:#f4f4f4;padding:0!important}"]
- }] }
- ];
- /** @nocollapse */
- SelectComponent.ctorParameters = function () { return [
- { type: OnCloseService }
- ]; };
- SelectComponent.propDecorators = {
- options: [{ type: core.Input }],
- disabled: [{ type: core.Input }],
- showSelected: [{ type: core.Input }],
- selected: [{ type: core.Output }],
- isOpen: [{ type: core.Input }],
- icon: [{ type: core.Input }]
- };
- return SelectComponent;
- }());
- if (false) {
- /** @type {?} */
- SelectComponent.prototype.options;
- /** @type {?} */
- SelectComponent.prototype.disabled;
- /** @type {?} */
- SelectComponent.prototype.showSelected;
- /** @type {?} */
- SelectComponent.prototype.selected;
- /** @type {?} */
- SelectComponent.prototype.isOpen;
- /** @type {?} */
- SelectComponent.prototype.icon;
- /**
- * @type {?}
- * @protected
- */
- SelectComponent.prototype._onCloseService;
+
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /**
+ * @record
+ */
+ function Option() { }
+ if (false) {
+ /** @type {?} */
+ Option.prototype.name;
+ /** @type {?} */
+ Option.prototype.value;
+ /** @type {?} */
+ Option.prototype.separator;
+ }
+ var SelectComponent = /** @class */ (function () {
+ function SelectComponent(_onCloseService) {
+ var _this = this;
+ this._onCloseService = _onCloseService;
+ this.disabled = false;
+ this.selected = new core.EventEmitter();
+ this.isOpen = false;
+ _onCloseService.onClose.subscribe((/**
+ * @return {?}
+ */
+ function () {
+ _this.close();
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ SelectComponent.prototype.open = /**
+ * @return {?}
+ */
+ function () {
+ if (!this.disabled) {
+ this.isOpen = true;
+ }
+ };
+ /**
+ * @return {?}
+ */
+ SelectComponent.prototype.close = /**
+ * @return {?}
+ */
+ function () {
+ this.isOpen = false;
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ SelectComponent.prototype.onClickOutside = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.close();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ SelectComponent.prototype.toggle = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ // TODO: following lines were uncommented due to needness in signature app
+ $event.preventDefault();
+ $event.stopPropagation();
+ if (!this.disabled) {
+ this.isOpen = !this.isOpen;
+ }
+ };
+ /**
+ * @param {?} $event
+ * @param {?} value
+ * @return {?}
+ */
+ SelectComponent.prototype.select = /**
+ * @param {?} $event
+ * @param {?} value
+ * @return {?}
+ */
+ function ($event, value) {
+ $event.preventDefault();
+ $event.stopPropagation();
+ this.selected.emit(value);
+ this.close();
+ };
+ SelectComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-select',
+ template: "\r\n
\r\n {{showSelected?.name}}\r\n
\r\n
\r\n
\r\n \r\n
\r\n",
+ styles: [".select{min-width:50px;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#959da5}.selected-value{font-size:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:clip;max-width:70px}.selected-value.inactive{cursor:not-allowed;color:#ccc}.nav-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent;cursor:pointer}.nav-caret.inactive{cursor:not-allowed;color:#ccc}.dropdown-menu{position:absolute;top:49px;z-index:1000;float:left;min-width:96px;list-style:none;font-size:13px;text-align:left;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);background-clip:padding-box}.dropdown-menu .option{display:block;padding:7px 0 7px 7px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;font-size:10px}.dropdown-menu .option:hover{background-color:#25c2d4;color:#fff!important}.dropdown-menu-separator{height:1px;overflow:hidden;background-color:#f4f4f4;padding:0!important}"]
+ }] }
+ ];
+ /** @nocollapse */
+ SelectComponent.ctorParameters = function () { return [
+ { type: OnCloseService }
+ ]; };
+ SelectComponent.propDecorators = {
+ options: [{ type: core.Input }],
+ disabled: [{ type: core.Input }],
+ showSelected: [{ type: core.Input }],
+ selected: [{ type: core.Output }],
+ isOpen: [{ type: core.Input }],
+ icon: [{ type: core.Input }]
+ };
+ return SelectComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ SelectComponent.prototype.options;
+ /** @type {?} */
+ SelectComponent.prototype.disabled;
+ /** @type {?} */
+ SelectComponent.prototype.showSelected;
+ /** @type {?} */
+ SelectComponent.prototype.selected;
+ /** @type {?} */
+ SelectComponent.prototype.isOpen;
+ /** @type {?} */
+ SelectComponent.prototype.icon;
+ /**
+ * @type {?}
+ * @protected
+ */
+ SelectComponent.prototype._onCloseService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var DisabledCursorDirective = /** @class */ (function () {
- function DisabledCursorDirective() {
- }
- /**
- * @private
- * @return {?}
- */
- DisabledCursorDirective.prototype.updateCursor = /**
- * @private
- * @return {?}
- */
- function () {
- this.cursor = this.dis ? true : false;
- };
- /**
- * @return {?}
- */
- DisabledCursorDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.updateCursor();
- };
- /**
- * @param {?} changes
- * @return {?}
- */
- DisabledCursorDirective.prototype.ngOnChanges = /**
- * @param {?} changes
- * @return {?}
- */
- function (changes) {
- this.updateCursor();
- };
- DisabledCursorDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdDisabledCursor]'
- },] }
- ];
- /** @nocollapse */
- DisabledCursorDirective.ctorParameters = function () { return []; };
- DisabledCursorDirective.propDecorators = {
- dis: [{ type: core.Input }],
- cursor: [{ type: core.HostBinding, args: ['class.inactive',] }]
- };
- return DisabledCursorDirective;
- }());
- if (false) {
- /** @type {?} */
- DisabledCursorDirective.prototype.dis;
- /** @type {?} */
- DisabledCursorDirective.prototype.cursor;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var DisabledCursorDirective = /** @class */ (function () {
+ function DisabledCursorDirective() {
+ }
+ /**
+ * @private
+ * @return {?}
+ */
+ DisabledCursorDirective.prototype.updateCursor = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ this.cursor = this.dis ? true : false;
+ };
+ /**
+ * @return {?}
+ */
+ DisabledCursorDirective.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ this.updateCursor();
+ };
+ /**
+ * @param {?} changes
+ * @return {?}
+ */
+ DisabledCursorDirective.prototype.ngOnChanges = /**
+ * @param {?} changes
+ * @return {?}
+ */
+ function (changes) {
+ this.updateCursor();
+ };
+ DisabledCursorDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdDisabledCursor]'
+ },] }
+ ];
+ /** @nocollapse */
+ DisabledCursorDirective.ctorParameters = function () { return []; };
+ DisabledCursorDirective.propDecorators = {
+ dis: [{ type: core.Input }],
+ cursor: [{ type: core.HostBinding, args: ['class.inactive',] }]
+ };
+ return DisabledCursorDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ DisabledCursorDirective.prototype.dis;
+ /** @type {?} */
+ DisabledCursorDirective.prototype.cursor;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var RotationDirective = /** @class */ (function () {
- function RotationDirective() {
- this.withMargin = true;
- }
- /**
- * @private
- * @return {?}
- */
- RotationDirective.prototype.updateCursor = /**
- * @private
- * @return {?}
- */
- function () {
- if (typeof this.angle === "string") {
- this.angle = parseInt(this.angle, 10);
- }
- if (this.angle) {
- this.animation = 'none';
- this.transition = 'none';
- this.transform = 'rotate(' + this.angle + 'deg)';
- }
- else if (this.angle === 0 && this.animation) {
- this.animation = null;
- this.transition = null;
- this.transform = null;
- }
- if (this.withMargin) {
- if (this.angle === 90 || this.angle === 270 || this.angle === -90 || this.angle === -270) {
- if (this.isHtmlMode) {
- if (this.isLandscape()) {
- this.margin = '164px 254px';
- }
- else {
- this.margin = '-111px 254px';
- }
- }
- else {
- if (this.isLandscape()) {
- this.margin = '129px 100px -79px';
- }
- else {
- this.margin = '-72px 100px -79px';
- }
- }
- }
- else if (this.angle === -180 || this.angle === 180) {
- this.margin = '280px';
- }
- else {
- this.margin = null;
- }
- }
- };
- /**
- * @return {?}
- */
- RotationDirective.prototype.isLandscape = /**
- * @return {?}
- */
- function () {
- return this.width > this.height;
- };
- /**
- * @return {?}
- */
- RotationDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- this.updateCursor();
- };
- /**
- * @param {?} changes
- * @return {?}
- */
- RotationDirective.prototype.ngOnChanges = /**
- * @param {?} changes
- * @return {?}
- */
- function (changes) {
- this.updateCursor();
- };
- RotationDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdRotation]'
- },] }
- ];
- /** @nocollapse */
- RotationDirective.ctorParameters = function () { return []; };
- RotationDirective.propDecorators = {
- angle: [{ type: core.Input }],
- isHtmlMode: [{ type: core.Input }],
- width: [{ type: core.Input }],
- height: [{ type: core.Input }],
- withMargin: [{ type: core.Input }],
- animation: [{ type: core.HostBinding, args: ['style.animation',] }],
- transition: [{ type: core.HostBinding, args: ['style.transition-property',] }],
- transform: [{ type: core.HostBinding, args: ['style.transform',] }],
- margin: [{ type: core.HostBinding, args: ['style.margin',] }]
- };
- return RotationDirective;
- }());
- if (false) {
- /** @type {?} */
- RotationDirective.prototype.angle;
- /** @type {?} */
- RotationDirective.prototype.isHtmlMode;
- /** @type {?} */
- RotationDirective.prototype.width;
- /** @type {?} */
- RotationDirective.prototype.height;
- /** @type {?} */
- RotationDirective.prototype.withMargin;
- /** @type {?} */
- RotationDirective.prototype.animation;
- /** @type {?} */
- RotationDirective.prototype.transition;
- /** @type {?} */
- RotationDirective.prototype.transform;
- /** @type {?} */
- RotationDirective.prototype.margin;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var RotationDirective = /** @class */ (function () {
+ function RotationDirective() {
+ this.withMargin = true;
+ }
+ /**
+ * @private
+ * @return {?}
+ */
+ RotationDirective.prototype.updateCursor = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ if (typeof this.angle === "string") {
+ this.angle = parseInt(this.angle, 10);
+ }
+ if (this.angle) {
+ this.animation = 'none';
+ this.transition = 'none';
+ this.transform = 'rotate(' + this.angle + 'deg)';
+ }
+ else if (this.angle === 0 && this.animation) {
+ this.animation = null;
+ this.transition = null;
+ this.transform = null;
+ }
+ if (this.withMargin) {
+ if (this.angle === 90 || this.angle === 270 || this.angle === -90 || this.angle === -270) {
+ if (this.isHtmlMode) {
+ if (this.isLandscape()) {
+ this.margin = '164px 254px';
+ }
+ else {
+ this.margin = '-111px 254px';
+ }
+ }
+ else {
+ if (this.isLandscape()) {
+ this.margin = '129px 100px -79px';
+ }
+ else {
+ this.margin = '-72px 100px -79px';
+ }
+ }
+ }
+ else if (this.angle === -180 || this.angle === 180) {
+ this.margin = '280px';
+ }
+ else {
+ this.margin = null;
+ }
+ }
+ };
+ /**
+ * @return {?}
+ */
+ RotationDirective.prototype.isLandscape = /**
+ * @return {?}
+ */
+ function () {
+ return this.width > this.height;
+ };
+ /**
+ * @return {?}
+ */
+ RotationDirective.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ this.updateCursor();
+ };
+ /**
+ * @param {?} changes
+ * @return {?}
+ */
+ RotationDirective.prototype.ngOnChanges = /**
+ * @param {?} changes
+ * @return {?}
+ */
+ function (changes) {
+ this.updateCursor();
+ };
+ RotationDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdRotation]'
+ },] }
+ ];
+ /** @nocollapse */
+ RotationDirective.ctorParameters = function () { return []; };
+ RotationDirective.propDecorators = {
+ angle: [{ type: core.Input }],
+ isHtmlMode: [{ type: core.Input }],
+ width: [{ type: core.Input }],
+ height: [{ type: core.Input }],
+ withMargin: [{ type: core.Input }],
+ animation: [{ type: core.HostBinding, args: ['style.animation',] }],
+ transition: [{ type: core.HostBinding, args: ['style.transition-property',] }],
+ transform: [{ type: core.HostBinding, args: ['style.transform',] }],
+ margin: [{ type: core.HostBinding, args: ['style.margin',] }]
+ };
+ return RotationDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ RotationDirective.prototype.angle;
+ /** @type {?} */
+ RotationDirective.prototype.isHtmlMode;
+ /** @type {?} */
+ RotationDirective.prototype.width;
+ /** @type {?} */
+ RotationDirective.prototype.height;
+ /** @type {?} */
+ RotationDirective.prototype.withMargin;
+ /** @type {?} */
+ RotationDirective.prototype.animation;
+ /** @type {?} */
+ RotationDirective.prototype.transition;
+ /** @type {?} */
+ RotationDirective.prototype.transform;
+ /** @type {?} */
+ RotationDirective.prototype.margin;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var InitStateComponent = /** @class */ (function () {
- function InitStateComponent() {
- this.fileDropped = new core.EventEmitter();
- this.showUploadFile = false;
- }
- /**
- * @return {?}
- */
- InitStateComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- InitStateComponent.prototype.dropped = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- if ($event) {
- this.fileDropped.emit($event);
- this.showUploadFile = false;
- }
- };
- InitStateComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-init-state',
- template: "\n
\n \n \n \n \n
\n
\n \n {{text}} \n
\n
\n",
- styles: [".wrapper{color:#959da5;background-color:#e7e7e7;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%;height:100%}.icon{font-size:65px;margin-bottom:43px;display:-webkit-box;display:flex;color:#959da5}.start{font-size:15px;text-align:center;color:#959da5}.gd-drag-n-drop-wrap.active{background-color:#fff;position:fixed;top:0;background:rgba(255,255,255,.8)}.gd-drag-n-drop-wrap.active .init-state-wrapper{position:absolute;opacity:.2;top:unset}.gd-drag-n-drop-wrap.active .init-state-dnd-wrapper{top:0;z-index:999}.gd-drag-n-drop-wrap.active .init-state-dnd-wrapper .icon{width:113px;height:90px;font-size:90px;color:#3e4e5a;margin-bottom:30px}.gd-drag-n-drop-wrap.active .text{color:#6e6e6e;font-size:14px}.init-state-dnd-wrapper,.init-state-wrapper{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:250px;height:250px;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}.init-state-wrapper{top:-60px;position:relative}"]
- }] }
- ];
- /** @nocollapse */
- InitStateComponent.ctorParameters = function () { return []; };
- InitStateComponent.propDecorators = {
- icon: [{ type: core.Input }],
- text: [{ type: core.Input }],
- fileDropped: [{ type: core.Output }]
- };
- return InitStateComponent;
- }());
- if (false) {
- /** @type {?} */
- InitStateComponent.prototype.icon;
- /** @type {?} */
- InitStateComponent.prototype.text;
- /** @type {?} */
- InitStateComponent.prototype.fileDropped;
- /** @type {?} */
- InitStateComponent.prototype.showUploadFile;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var InitStateComponent = /** @class */ (function () {
+ function InitStateComponent() {
+ this.fileDropped = new core.EventEmitter();
+ this.showUploadFile = false;
+ }
+ /**
+ * @return {?}
+ */
+ InitStateComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ InitStateComponent.prototype.dropped = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ if ($event) {
+ this.fileDropped.emit($event);
+ this.showUploadFile = false;
+ }
+ };
+ InitStateComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-init-state',
+ template: "\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {{text}} \r\n
\r\n
\r\n",
+ styles: [".wrapper{color:#959da5;background-color:#e7e7e7;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.icon{font-size:65px;margin-bottom:43px;display:flex;color:#959da5}.start{font-size:15px;text-align:center;color:#959da5}.gd-drag-n-drop-wrap.active{background-color:#fff;position:fixed;top:0;background:rgba(255,255,255,.8)}.gd-drag-n-drop-wrap.active .init-state-wrapper{position:absolute;opacity:.2;top:unset}.gd-drag-n-drop-wrap.active .init-state-dnd-wrapper{top:0;z-index:999}.gd-drag-n-drop-wrap.active .init-state-dnd-wrapper .icon{width:113px;height:90px;font-size:90px;color:#3e4e5a;margin-bottom:30px}.gd-drag-n-drop-wrap.active .text{color:#6e6e6e;font-size:14px}.init-state-dnd-wrapper,.init-state-wrapper{display:flex;flex-direction:column;width:250px;height:250px;align-items:center;justify-content:center}.init-state-wrapper{top:-60px;position:relative}"]
+ }] }
+ ];
+ /** @nocollapse */
+ InitStateComponent.ctorParameters = function () { return []; };
+ InitStateComponent.propDecorators = {
+ icon: [{ type: core.Input }],
+ text: [{ type: core.Input }],
+ fileDropped: [{ type: core.Output }]
+ };
+ return InitStateComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ InitStateComponent.prototype.icon;
+ /** @type {?} */
+ InitStateComponent.prototype.text;
+ /** @type {?} */
+ InitStateComponent.prototype.fileDropped;
+ /** @type {?} */
+ InitStateComponent.prototype.showUploadFile;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var RenderPrintService = /** @class */ (function () {
- function RenderPrintService() {
- var _this = this;
- this._render = new rxjs.Observable((/**
- * @param {?} observer
- * @return {?}
- */
- function (observer) {
- return _this._observer = observer;
- }));
- this._renderBlob = new rxjs.Observable((/**
- * @param {?} observer
- * @return {?}
- */
- function (observer) {
- return _this._observerBlob = observer;
- }));
- }
- Object.defineProperty(RenderPrintService.prototype, "renderPrint", {
- get: /**
- * @return {?}
- */
- function () {
- return this._render;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} pages
- * @return {?}
- */
- RenderPrintService.prototype.changePages = /**
- * @param {?} pages
- * @return {?}
- */
- function (pages) {
- this._observer.next(pages);
- };
- Object.defineProperty(RenderPrintService.prototype, "renderPrintBlob", {
- get: /**
- * @return {?}
- */
- function () {
- return this._renderBlob;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} file
- * @return {?}
- */
- RenderPrintService.prototype.changeBlob = /**
- * @param {?} file
- * @return {?}
- */
- function (file) {
- this._observerBlob.next(file);
- };
- return RenderPrintService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- RenderPrintService.prototype._render;
- /**
- * @type {?}
- * @private
- */
- RenderPrintService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- RenderPrintService.prototype._renderBlob;
- /**
- * @type {?}
- * @private
- */
- RenderPrintService.prototype._observerBlob;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var RenderPrintService = /** @class */ (function () {
+ function RenderPrintService() {
+ var _this = this;
+ this._render = new rxjs.Observable((/**
+ * @param {?} observer
+ * @return {?}
+ */
+ function (observer) {
+ return _this._observer = observer;
+ }));
+ this._renderBlob = new rxjs.Observable((/**
+ * @param {?} observer
+ * @return {?}
+ */
+ function (observer) {
+ return _this._observerBlob = observer;
+ }));
+ }
+ Object.defineProperty(RenderPrintService.prototype, "renderPrint", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._render;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} pages
+ * @return {?}
+ */
+ RenderPrintService.prototype.changePages = /**
+ * @param {?} pages
+ * @return {?}
+ */
+ function (pages) {
+ this._observer.next(pages);
+ };
+ Object.defineProperty(RenderPrintService.prototype, "renderPrintBlob", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._renderBlob;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} file
+ * @return {?}
+ */
+ RenderPrintService.prototype.changeBlob = /**
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ this._observerBlob.next(file);
+ };
+ return RenderPrintService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ RenderPrintService.prototype._render;
+ /**
+ * @type {?}
+ * @private
+ */
+ RenderPrintService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ RenderPrintService.prototype._renderBlob;
+ /**
+ * @type {?}
+ * @private
+ */
+ RenderPrintService.prototype._observerBlob;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var RenderPrintDirective = /** @class */ (function () {
- function RenderPrintDirective(_renderService) {
- var _this = this;
- this._renderService = _renderService;
- _renderService.renderPrint.subscribe((/**
- * @param {?} pages
- * @return {?}
- */
- function (pages) {
- _this.renderPrint(pages);
- }));
- _renderService.renderPrintBlob.subscribe((/**
- * @param {?} file
- * @return {?}
- */
- function (file) {
- _this.renderPrintBlob(file);
- }));
- }
- /**
- * @private
- * @param {?} pages
- * @return {?}
- */
- RenderPrintDirective.prototype.renderPrint = /**
- * @private
- * @param {?} pages
- * @return {?}
- */
- function (pages) {
- var e_1, _a;
- /** @type {?} */
- var pagesHtml = '';
- try {
- for (var pages_1 = __values(pages), pages_1_1 = pages_1.next(); !pages_1_1.done; pages_1_1 = pages_1.next()) {
- var page = pages_1_1.value;
- pagesHtml += '';
- }
- }
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
- finally {
- try {
- if (pages_1_1 && !pages_1_1.done && (_a = pages_1.return)) _a.call(pages_1);
- }
- finally { if (e_1) throw e_1.error; }
- }
- this.openWindow(pagesHtml, pages[0].width, pages[0].height);
- };
- /**
- * @private
- * @param {?} pagesHtml
- * @param {?} width
- * @param {?} height
- * @return {?}
- */
- RenderPrintDirective.prototype.openWindow = /**
- * @private
- * @param {?} pagesHtml
- * @param {?} width
- * @param {?} height
- * @return {?}
- */
- function (pagesHtml, width, height) {
- /** @type {?} */
- var a4Height = 842;
- /** @type {?} */
- var a4Width = 595;
- /** @type {?} */
- var imageA4Adjusted = '';
- if (width > a4Width && height > a4Height) {
- /** @type {?} */
- var zoom = Math.round(height / a4Height) / 100;
- imageA4Adjusted = '.gd-page img { width: 100%; margin: 0; padding: 0;}';
- if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
- imageA4Adjusted = '.gd-page img { transform: scale(' + zoom + ');}';
- }
- }
- /** @type {?} */
- var cssPrint = '';
- /** @type {?} */
- var windowObject = window.open('', "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes");
- windowObject.focus();
- windowObject.document.writeln(cssPrint);
- windowObject.document.writeln(pagesHtml);
- windowObject.document.close();
- setTimeout((/**
- * @return {?}
- */
- function () {
- windowObject.focus();
- windowObject.print();
- windowObject.close();
- }), 100);
- };
- /**
- * @private
- * @param {?} file
- * @return {?}
- */
- RenderPrintDirective.prototype.renderPrintBlob = /**
- * @private
- * @param {?} file
- * @return {?}
- */
- function (file) {
- /** @type {?} */
- var fileURL = URL.createObjectURL(file);
- /** @type {?} */
- var windowObject = window.open(fileURL, "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes");
- windowObject.focus();
- windowObject.print();
- windowObject.close();
- };
- RenderPrintDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdRenderPrint]'
- },] }
- ];
- /** @nocollapse */
- RenderPrintDirective.ctorParameters = function () { return [
- { type: RenderPrintService }
- ]; };
- RenderPrintDirective.propDecorators = {
- htmlMode: [{ type: core.Input }]
- };
- return RenderPrintDirective;
- }());
- if (false) {
- /** @type {?} */
- RenderPrintDirective.prototype.htmlMode;
- /**
- * @type {?}
- * @private
- */
- RenderPrintDirective.prototype._renderService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var RenderPrintDirective = /** @class */ (function () {
+ function RenderPrintDirective(_renderService) {
+ var _this = this;
+ this._renderService = _renderService;
+ _renderService.renderPrint.subscribe((/**
+ * @param {?} pages
+ * @return {?}
+ */
+ function (pages) {
+ _this.renderPrint(pages);
+ }));
+ _renderService.renderPrintBlob.subscribe((/**
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ _this.renderPrintBlob(file);
+ }));
+ }
+ /**
+ * @private
+ * @param {?} pages
+ * @return {?}
+ */
+ RenderPrintDirective.prototype.renderPrint = /**
+ * @private
+ * @param {?} pages
+ * @return {?}
+ */
+ function (pages) {
+ var e_1, _a;
+ /** @type {?} */
+ var pagesHtml = '';
+ try {
+ for (var pages_1 = __values(pages), pages_1_1 = pages_1.next(); !pages_1_1.done; pages_1_1 = pages_1.next()) {
+ var page = pages_1_1.value;
+ pagesHtml += '';
+ }
+ }
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
+ finally {
+ try {
+ if (pages_1_1 && !pages_1_1.done && (_a = pages_1.return)) _a.call(pages_1);
+ }
+ finally { if (e_1) throw e_1.error; }
+ }
+ this.openWindow(pagesHtml, pages[0].width, pages[0].height);
+ };
+ /**
+ * @private
+ * @param {?} pagesHtml
+ * @param {?} width
+ * @param {?} height
+ * @return {?}
+ */
+ RenderPrintDirective.prototype.openWindow = /**
+ * @private
+ * @param {?} pagesHtml
+ * @param {?} width
+ * @param {?} height
+ * @return {?}
+ */
+ function (pagesHtml, width, height) {
+ /** @type {?} */
+ var a4Height = 842;
+ /** @type {?} */
+ var a4Width = 595;
+ /** @type {?} */
+ var imageA4Adjusted = '';
+ if (width > a4Width && height > a4Height) {
+ /** @type {?} */
+ var zoom = Math.round(height / a4Height) / 100;
+ imageA4Adjusted = '.gd-page img { width: 100%; margin: 0; padding: 0;}';
+ if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
+ imageA4Adjusted = '.gd-page img { transform: scale(' + zoom + ');}';
+ }
+ }
+ /** @type {?} */
+ var cssPrint = '';
+ /** @type {?} */
+ var windowObject = window.open('', "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes");
+ windowObject.focus();
+ windowObject.document.writeln(cssPrint);
+ windowObject.document.writeln(pagesHtml);
+ windowObject.document.close();
+ setTimeout((/**
+ * @return {?}
+ */
+ function () {
+ windowObject.focus();
+ windowObject.print();
+ windowObject.close();
+ }), 100);
+ };
+ /**
+ * @private
+ * @param {?} file
+ * @return {?}
+ */
+ RenderPrintDirective.prototype.renderPrintBlob = /**
+ * @private
+ * @param {?} file
+ * @return {?}
+ */
+ function (file) {
+ /** @type {?} */
+ var fileURL = URL.createObjectURL(file);
+ /** @type {?} */
+ var windowObject = window.open(fileURL, "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes");
+ windowObject.focus();
+ windowObject.print();
+ windowObject.close();
+ };
+ RenderPrintDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdRenderPrint]'
+ },] }
+ ];
+ /** @nocollapse */
+ RenderPrintDirective.ctorParameters = function () { return [
+ { type: RenderPrintService }
+ ]; };
+ RenderPrintDirective.propDecorators = {
+ htmlMode: [{ type: core.Input }]
+ };
+ return RenderPrintDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ RenderPrintDirective.prototype.htmlMode;
+ /**
+ * @type {?}
+ * @private
+ */
+ RenderPrintDirective.prototype._renderService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ExceptionMessageService = /** @class */ (function () {
- function ExceptionMessageService() {
- this._observer = new rxjs.BehaviorSubject('Server is not available');
- this._messageChange = this._observer.asObservable();
- }
- Object.defineProperty(ExceptionMessageService.prototype, "messageChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._messageChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} message
- * @return {?}
- */
- ExceptionMessageService.prototype.changeMessage = /**
- * @param {?} message
- * @return {?}
- */
- function (message) {
- this._observer.next(message);
- };
- return ExceptionMessageService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ExceptionMessageService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- ExceptionMessageService.prototype._messageChange;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ExceptionMessageService = /** @class */ (function () {
+ function ExceptionMessageService() {
+ this._observer = new rxjs.BehaviorSubject('Server is not available');
+ this._messageChange = this._observer.asObservable();
+ }
+ Object.defineProperty(ExceptionMessageService.prototype, "messageChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._messageChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} message
+ * @return {?}
+ */
+ ExceptionMessageService.prototype.changeMessage = /**
+ * @param {?} message
+ * @return {?}
+ */
+ function (message) {
+ this._observer.next(message);
+ };
+ return ExceptionMessageService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ExceptionMessageService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ ExceptionMessageService.prototype._messageChange;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ErrorModalComponent = /** @class */ (function () {
- function ErrorModalComponent(messageService) {
- var _this = this;
- messageService.messageChange.subscribe((/**
- * @param {?} message
- * @return {?}
- */
- function (message) { return _this.message = message; }));
- }
- /**
- * @return {?}
- */
- ErrorModalComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- ErrorModalComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-error-modal',
- template: "\n \n \n \n
Something went wrong
\n
{{message ? message : 'Server is not available'}}
\n
\n \n \n",
- styles: [".gd-modal-error{display:-webkit-inline-box;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-flex:1;flex:1}.gd-modal-error .gd-modal-error-message{font-size:12px;margin:0 24px 24px 0;word-break:break-word}.gd-modal-error .gd-modal-error-title{font-size:16px;font-weight:700;margin:14px 0 10px}#gd-error-section{max-width:468px;max-height:204px;display:-webkit-box;display:flex}#gd-error-section fa-icon{-webkit-box-flex:1;flex:1;color:#e04e4e;font-size:40px;margin:13px 23px 90px;text-align:center;max-width:46px}"]
- }] }
- ];
- /** @nocollapse */
- ErrorModalComponent.ctorParameters = function () { return [
- { type: ExceptionMessageService }
- ]; };
- return ErrorModalComponent;
- }());
- if (false) {
- /** @type {?} */
- ErrorModalComponent.prototype.message;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ErrorModalComponent = /** @class */ (function () {
+ function ErrorModalComponent(messageService) {
+ var _this = this;
+ messageService.messageChange.subscribe((/**
+ * @param {?} message
+ * @return {?}
+ */
+ function (message) { return _this.message = message; }));
+ }
+ /**
+ * @return {?}
+ */
+ ErrorModalComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ ErrorModalComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-error-modal',
+ template: "\r\n \r\n \r\n \r\n
Something went wrong
\r\n
{{message ? message : 'Server is not available'}}
\r\n
\r\n \r\n \r\n",
+ styles: [".gd-modal-error{display:inline-flex;flex-direction:column;flex:1}.gd-modal-error .gd-modal-error-message{font-size:12px;margin:0 24px 24px 0;word-break:break-word}.gd-modal-error .gd-modal-error-title{font-size:16px;font-weight:700;margin:14px 0 10px}#gd-error-section{max-width:468px;max-height:204px;display:flex}#gd-error-section fa-icon{flex:1;color:#e04e4e;font-size:40px;margin:13px 23px 90px;text-align:center;max-width:46px}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ErrorModalComponent.ctorParameters = function () { return [
+ { type: ExceptionMessageService }
+ ]; };
+ return ErrorModalComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ErrorModalComponent.prototype.message;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var PasswordService = /** @class */ (function () {
- function PasswordService() {
- this._observer = new rxjs.Subject();
- this._passChange = this._observer.asObservable();
- }
- Object.defineProperty(PasswordService.prototype, "passChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._passChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} pass
- * @return {?}
- */
- PasswordService.prototype.setPassword = /**
- * @param {?} pass
- * @return {?}
- */
- function (pass) {
- this._observer.next(pass);
- };
- return PasswordService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- PasswordService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- PasswordService.prototype._passChange;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var PasswordService = /** @class */ (function () {
+ function PasswordService() {
+ this._observer = new rxjs.Subject();
+ this._passChange = this._observer.asObservable();
+ }
+ Object.defineProperty(PasswordService.prototype, "passChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._passChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} pass
+ * @return {?}
+ */
+ PasswordService.prototype.setPassword = /**
+ * @param {?} pass
+ * @return {?}
+ */
+ function (pass) {
+ this._observer.next(pass);
+ };
+ return PasswordService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ PasswordService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ PasswordService.prototype._passChange;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$5 = jquery;
- var PasswordRequiredComponent = /** @class */ (function () {
- function PasswordRequiredComponent(messageService, _passwordService) {
- var _this = this;
- this._passwordService = _passwordService;
- this.cancelEvent = new core.EventEmitter();
- messageService.messageChange.subscribe((/**
- * @param {?} message
- * @return {?}
- */
- function (message) { return _this.message = message; }));
- }
- /**
- * @return {?}
- */
- PasswordRequiredComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} value
- * @return {?}
- */
- PasswordRequiredComponent.prototype.setPassword = /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- this._passwordService.setPassword(value);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- PasswordRequiredComponent.prototype.onCloseOpen = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- if ($event) {
- setTimeout((/**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var element = $$5("#password");
- if (element) {
- element.focus();
- }
- }), 100);
- }
- else {
- $$5("#password").val("");
- }
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- PasswordRequiredComponent.prototype.cancel = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $$5("#password").val("");
- this.cancelEvent.emit(true);
- };
- PasswordRequiredComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-password-required',
- template: "\n \n \n",
- styles: ["#gd-password-section{width:375px;height:164px}.gd-password-wrap{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:24px}.gd-password-wrap label{font-size:14px;color:#acacac;padding-bottom:12px}.gd-password-wrap input{height:30px;border:1px solid #25c2d4}.gd-password-wrap input.error{border-color:#e04e4e}.gd-password-wrap gd-button{align-self:flex-end}.gd-password-wrap ::ng-deep .button{height:37px;width:72px;padding:0;-webkit-box-pack:center;justify-content:center}.gd-password-wrap ::ng-deep .button ::ng-deep .text{font-size:10px!important}.gd-password-error{color:#e04e4e;padding:10px 0 12px;height:12px;line-height:12px;font-size:12px}@media (max-width:1037px){#gd-password-section{min-width:375px}}"]
- }] }
- ];
- /** @nocollapse */
- PasswordRequiredComponent.ctorParameters = function () { return [
- { type: ExceptionMessageService },
- { type: PasswordService }
- ]; };
- PasswordRequiredComponent.propDecorators = {
- cancelEvent: [{ type: core.Output }]
- };
- return PasswordRequiredComponent;
- }());
- if (false) {
- /** @type {?} */
- PasswordRequiredComponent.prototype.message;
- /** @type {?} */
- PasswordRequiredComponent.prototype.cancelEvent;
- /**
- * @type {?}
- * @private
- */
- PasswordRequiredComponent.prototype._passwordService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$5 = jquery;
+ var PasswordRequiredComponent = /** @class */ (function () {
+ function PasswordRequiredComponent(messageService, _passwordService) {
+ var _this = this;
+ this._passwordService = _passwordService;
+ this.cancelEvent = new core.EventEmitter();
+ messageService.messageChange.subscribe((/**
+ * @param {?} message
+ * @return {?}
+ */
+ function (message) { return _this.message = message; }));
+ }
+ /**
+ * @return {?}
+ */
+ PasswordRequiredComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} value
+ * @return {?}
+ */
+ PasswordRequiredComponent.prototype.setPassword = /**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ this._passwordService.setPassword(value);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ PasswordRequiredComponent.prototype.onCloseOpen = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ if ($event) {
+ setTimeout((/**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var element = $$5("#password");
+ if (element) {
+ element.focus();
+ }
+ }), 100);
+ }
+ else {
+ $$5("#password").val("");
+ }
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ PasswordRequiredComponent.prototype.cancel = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ $$5("#password").val("");
+ this.cancelEvent.emit(true);
+ };
+ PasswordRequiredComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-password-required',
+ template: "\r\n \r\n \r\n",
+ styles: ["#gd-password-section{width:375px;height:164px}.gd-password-wrap{display:flex;flex-direction:column;margin:24px}.gd-password-wrap label{font-size:14px;color:#acacac;padding-bottom:12px}.gd-password-wrap input{height:30px;border:1px solid #25c2d4}.gd-password-wrap input.error{border-color:#e04e4e}.gd-password-wrap gd-button{align-self:flex-end}.gd-password-wrap ::ng-deep .button{height:37px;width:72px;padding:0;justify-content:center}.gd-password-wrap ::ng-deep .button ::ng-deep .text{font-size:10px!important}.gd-password-error{color:#e04e4e;padding:10px 0 12px;height:12px;line-height:12px;font-size:12px}@media (max-width:1037px){#gd-password-section{min-width:375px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ PasswordRequiredComponent.ctorParameters = function () { return [
+ { type: ExceptionMessageService },
+ { type: PasswordService }
+ ]; };
+ PasswordRequiredComponent.propDecorators = {
+ cancelEvent: [{ type: core.Output }]
+ };
+ return PasswordRequiredComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ PasswordRequiredComponent.prototype.message;
+ /** @type {?} */
+ PasswordRequiredComponent.prototype.cancelEvent;
+ /**
+ * @type {?}
+ * @private
+ */
+ PasswordRequiredComponent.prototype._passwordService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var ErrorInterceptorService = /** @class */ (function () {
- function ErrorInterceptorService(_modalService, _messageService) {
- this._modalService = _modalService;
- this._messageService = _messageService;
- }
- /**
- * @param {?} req
- * @param {?} next
- * @return {?}
- */
- ErrorInterceptorService.prototype.intercept = /**
- * @param {?} req
- * @param {?} next
- * @return {?}
- */
- function (req, next) {
- var _this = this;
- /** @type {?} */
- var logFormat = 'background: maroon; color: white';
- return next.handle(req)
- .pipe(operators.map((/**
- * @param {?} data
- * @return {?}
- */
- function (data) {
- return data;
- })), operators.catchError((/**
- * @param {?} exception
- * @return {?}
- */
- function (exception) {
- if (exception instanceof http.HttpErrorResponse) {
- switch (exception.status) {
- case HttpError.BadRequest:
- console.error('%c Bad Request 400', logFormat);
- break;
- case HttpError.Unauthorized:
- console.error('%c Unauthorized 401', logFormat);
- break;
- case HttpError.NotFound:
- console.error('%c Not Found 404', logFormat);
- break;
- case HttpError.TimeOut:
- console.error('%c TimeOut 408', logFormat);
- break;
- case HttpError.InternalServerError:
- console.error('%c big bad 500', logFormat);
- _this._messageService.changeMessage(exception.error.message);
- _this._modalService.open(CommonModals.ErrorMessage);
- break;
- case HttpError.Forbidden:
- console.error('%c Forbidden 403', logFormat);
- _this._messageService.changeMessage(exception.error.message);
- _this._modalService.open(CommonModals.PasswordRequired);
- break;
- }
- }
- return rxjs.throwError(exception);
- })));
- };
- ErrorInterceptorService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- ErrorInterceptorService.ctorParameters = function () { return [
- { type: ModalService },
- { type: ExceptionMessageService }
- ]; };
- /** @nocollapse */ ErrorInterceptorService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ErrorInterceptorService_Factory() { return new ErrorInterceptorService(core.ɵɵinject(ModalService), core.ɵɵinject(ExceptionMessageService)); }, token: ErrorInterceptorService, providedIn: "root" });
- return ErrorInterceptorService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- ErrorInterceptorService.prototype._modalService;
- /**
- * @type {?}
- * @private
- */
- ErrorInterceptorService.prototype._messageService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var ErrorInterceptorService = /** @class */ (function () {
+ function ErrorInterceptorService(_modalService, _messageService) {
+ this._modalService = _modalService;
+ this._messageService = _messageService;
+ }
+ /**
+ * @param {?} req
+ * @param {?} next
+ * @return {?}
+ */
+ ErrorInterceptorService.prototype.intercept = /**
+ * @param {?} req
+ * @param {?} next
+ * @return {?}
+ */
+ function (req, next) {
+ var _this = this;
+ /** @type {?} */
+ var logFormat = 'background: maroon; color: white';
+ return next.handle(req)
+ .pipe(operators.map((/**
+ * @param {?} data
+ * @return {?}
+ */
+ function (data) {
+ return data;
+ })), operators.catchError((/**
+ * @param {?} exception
+ * @return {?}
+ */
+ function (exception) {
+ if (exception instanceof http.HttpErrorResponse) {
+ switch (exception.status) {
+ case HttpError.BadRequest:
+ console.error('%c Bad Request 400', logFormat);
+ break;
+ case HttpError.Unauthorized:
+ console.error('%c Unauthorized 401', logFormat);
+ break;
+ case HttpError.NotFound:
+ console.error('%c Not Found 404', logFormat);
+ break;
+ case HttpError.TimeOut:
+ console.error('%c TimeOut 408', logFormat);
+ break;
+ case HttpError.InternalServerError:
+ console.error('%c big bad 500', logFormat);
+ _this._messageService.changeMessage(exception.error.message);
+ _this._modalService.open(CommonModals.ErrorMessage);
+ break;
+ case HttpError.Forbidden:
+ console.error('%c Forbidden 403', logFormat);
+ _this._messageService.changeMessage(exception.error.message);
+ _this._modalService.open(CommonModals.PasswordRequired);
+ break;
+ }
+ }
+ return rxjs.throwError(exception);
+ })));
+ };
+ ErrorInterceptorService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ ErrorInterceptorService.ctorParameters = function () { return [
+ { type: ModalService },
+ { type: ExceptionMessageService }
+ ]; };
+ /** @nocollapse */ ErrorInterceptorService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ErrorInterceptorService_Factory() { return new ErrorInterceptorService(core.ɵɵinject(ModalService), core.ɵɵinject(ExceptionMessageService)); }, token: ErrorInterceptorService, providedIn: "root" });
+ return ErrorInterceptorService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ ErrorInterceptorService.prototype._modalService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ErrorInterceptorService.prototype._messageService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SearchService = /** @class */ (function () {
- function SearchService() {
- this._observer = new rxjs.Subject();
- this._textChange = this._observer.asObservable();
- this._observerCurrent = new rxjs.Subject();
- this._currentChange = this._observerCurrent.asObservable();
- this._observerTotal = new rxjs.Subject();
- this._totalChange = this._observerTotal.asObservable();
- }
- Object.defineProperty(SearchService.prototype, "textChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._textChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} text
- * @return {?}
- */
- SearchService.prototype.setText = /**
- * @param {?} text
- * @return {?}
- */
- function (text) {
- this._observer.next(text);
- };
- Object.defineProperty(SearchService.prototype, "currentChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._currentChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(SearchService.prototype, "totalChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._totalChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} current
- * @return {?}
- */
- SearchService.prototype.setCurrent = /**
- * @param {?} current
- * @return {?}
- */
- function (current) {
- this._observerCurrent.next(current);
- };
- /**
- * @param {?} total
- * @return {?}
- */
- SearchService.prototype.setTotal = /**
- * @param {?} total
- * @return {?}
- */
- function (total) {
- this._observerTotal.next(total);
- };
- return SearchService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._textChange;
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._observerCurrent;
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._currentChange;
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._observerTotal;
- /**
- * @type {?}
- * @private
- */
- SearchService.prototype._totalChange;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SearchService = /** @class */ (function () {
+ function SearchService() {
+ this._observer = new rxjs.Subject();
+ this._textChange = this._observer.asObservable();
+ this._observerCurrent = new rxjs.Subject();
+ this._currentChange = this._observerCurrent.asObservable();
+ this._observerTotal = new rxjs.Subject();
+ this._totalChange = this._observerTotal.asObservable();
+ }
+ Object.defineProperty(SearchService.prototype, "textChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._textChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} text
+ * @return {?}
+ */
+ SearchService.prototype.setText = /**
+ * @param {?} text
+ * @return {?}
+ */
+ function (text) {
+ this._observer.next(text);
+ };
+ Object.defineProperty(SearchService.prototype, "currentChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._currentChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(SearchService.prototype, "totalChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._totalChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} current
+ * @return {?}
+ */
+ SearchService.prototype.setCurrent = /**
+ * @param {?} current
+ * @return {?}
+ */
+ function (current) {
+ this._observerCurrent.next(current);
+ };
+ /**
+ * @param {?} total
+ * @return {?}
+ */
+ SearchService.prototype.setTotal = /**
+ * @param {?} total
+ * @return {?}
+ */
+ function (total) {
+ this._observerTotal.next(total);
+ };
+ return SearchService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._textChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._observerCurrent;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._currentChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._observerTotal;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchService.prototype._totalChange;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SearchComponent = /** @class */ (function () {
- function SearchComponent(_searchService) {
- var _this = this;
- this._searchService = _searchService;
- this.hidePanel = new core.EventEmitter(false);
- this.current = 0;
- this.total = 0;
- _searchService.totalChange.subscribe((/**
- * @param {?} total
- * @return {?}
- */
- function (total) {
- _this.total = total;
- if (total !== 0) {
- _this.current = 1;
- }
- else {
- _this.current = 0;
- }
- _this._searchService.setCurrent(_this.current);
- }));
- }
- /**
- * @return {?}
- */
- SearchComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} text
- * @return {?}
- */
- SearchComponent.prototype.setText = /**
- * @param {?} text
- * @return {?}
- */
- function (text) {
- this._searchService.setText(text);
- };
- /**
- * @return {?}
- */
- SearchComponent.prototype.hide = /**
- * @return {?}
- */
- function () {
- this.setText('');
- this.hidePanel.emit(true);
- };
- /**
- * @return {?}
- */
- SearchComponent.prototype.prev = /**
- * @return {?}
- */
- function () {
- if (this.current > 1) {
- this.current--;
- this._searchService.setCurrent(this.current);
- }
- };
- /**
- * @return {?}
- */
- SearchComponent.prototype.next = /**
- * @return {?}
- */
- function () {
- if (this.current < this.total) {
- this.current++;
- this._searchService.setCurrent(this.current);
- }
- };
- /**
- * @return {?}
- */
- SearchComponent.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- this.textElement.nativeElement.focus();
- };
- SearchComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-search',
- template: "\n
\n
{{current}} of {{total}}
\n
\n \n
\n \n
\n \n
\n",
- styles: [".gd-nav-search-btn{margin:3px 0 4px}.gd-nav-search-cancel{color:#fff;font-size:14px;width:37px}.gd-search-count{color:#959da5;font-size:12px;position:absolute;right:148px;top:14px}.gd-nav-search-container{background-color:#3e4e5a;width:410px;position:fixed;left:50%;top:60px;z-index:2;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);display:-webkit-box;display:flex}.gd-search-input{float:left;height:30px;width:267px;font-size:14px;color:#6e6e6e;border:1px solid #25c2d4;margin:7px 0 7px 7px;box-sizing:border-box;padding:6px 0 5px 9px}input[type=text]::-ms-clear{display:none}@media (max-width:1037px){.gd-search-input{width:231px;height:30px;margin:7px 0 7px 5px}.gd-search-count{position:absolute;left:193px;top:15px}.gd-nav-search-container{width:100%}}"]
- }] }
- ];
- /** @nocollapse */
- SearchComponent.ctorParameters = function () { return [
- { type: SearchService }
- ]; };
- SearchComponent.propDecorators = {
- hidePanel: [{ type: core.Output }],
- textElement: [{ type: core.ViewChild, args: ['text', {
- static: true
- },] }]
- };
- return SearchComponent;
- }());
- if (false) {
- /** @type {?} */
- SearchComponent.prototype.hidePanel;
- /** @type {?} */
- SearchComponent.prototype.current;
- /** @type {?} */
- SearchComponent.prototype.total;
- /** @type {?} */
- SearchComponent.prototype.textElement;
- /**
- * @type {?}
- * @private
- */
- SearchComponent.prototype._searchService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SearchComponent = /** @class */ (function () {
+ function SearchComponent(_searchService) {
+ var _this = this;
+ this._searchService = _searchService;
+ this.hidePanel = new core.EventEmitter(false);
+ this.current = 0;
+ this.total = 0;
+ _searchService.totalChange.subscribe((/**
+ * @param {?} total
+ * @return {?}
+ */
+ function (total) {
+ _this.total = total;
+ if (total !== 0) {
+ _this.current = 1;
+ }
+ else {
+ _this.current = 0;
+ }
+ _this._searchService.setCurrent(_this.current);
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ SearchComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} text
+ * @return {?}
+ */
+ SearchComponent.prototype.setText = /**
+ * @param {?} text
+ * @return {?}
+ */
+ function (text) {
+ this._searchService.setText(text);
+ };
+ /**
+ * @return {?}
+ */
+ SearchComponent.prototype.hide = /**
+ * @return {?}
+ */
+ function () {
+ this.setText('');
+ this.hidePanel.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ SearchComponent.prototype.prev = /**
+ * @return {?}
+ */
+ function () {
+ if (this.current > 1) {
+ this.current--;
+ this._searchService.setCurrent(this.current);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ SearchComponent.prototype.next = /**
+ * @return {?}
+ */
+ function () {
+ if (this.current < this.total) {
+ this.current++;
+ this._searchService.setCurrent(this.current);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ SearchComponent.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ this.textElement.nativeElement.focus();
+ };
+ SearchComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-search',
+ template: "\r\n
\r\n
{{current}} of {{total}}
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n",
+ styles: [".gd-nav-search-btn{margin:3px 0 4px}.gd-nav-search-cancel{color:#fff;font-size:14px;width:37px}.gd-search-count{color:#959da5;font-size:12px;position:absolute;right:148px;top:14px}.gd-nav-search-container{background-color:#3e4e5a;width:410px;position:fixed;left:50%;top:60px;z-index:2;transform:translate(-50%,0);display:flex}.gd-search-input{float:left;height:30px;width:267px;font-size:14px;color:#6e6e6e;border:1px solid #25c2d4;margin:7px 0 7px 7px;box-sizing:border-box;padding:6px 0 5px 9px}input[type=text]::-ms-clear{display:none}@media (max-width:1037px){.gd-search-input{width:231px;height:30px;margin:7px 0 7px 5px}.gd-search-count{position:absolute;left:193px;top:15px}.gd-nav-search-container{width:100%}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ SearchComponent.ctorParameters = function () { return [
+ { type: SearchService }
+ ]; };
+ SearchComponent.propDecorators = {
+ hidePanel: [{ type: core.Output }],
+ textElement: [{ type: core.ViewChild, args: ['text', {
+ static: true
+ },] }]
+ };
+ return SearchComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ SearchComponent.prototype.hidePanel;
+ /** @type {?} */
+ SearchComponent.prototype.current;
+ /** @type {?} */
+ SearchComponent.prototype.total;
+ /** @type {?} */
+ SearchComponent.prototype.textElement;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchComponent.prototype._searchService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$6 = jquery;
- var SearchableDirective = /** @class */ (function () {
- function SearchableDirective(_elementRef, _searchService, _highlight, _zoomService) {
- var _this = this;
- this._elementRef = _elementRef;
- this._searchService = _searchService;
- this._highlight = _highlight;
- this._zoomService = _zoomService;
- this.current = 0;
- this.total = 0;
- this.zoom = 100;
- _searchService.currentChange.subscribe((/**
- * @param {?} current
- * @return {?}
- */
- function (current) {
- _this.current = current;
- if (_this.current !== 0) {
- _this.moveToCurrent();
- }
- }));
- _searchService.textChange.subscribe((/**
- * @param {?} text
- * @return {?}
- */
- function (text) {
- _this.text = text;
- _this.highlightSearch();
- }));
- this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;
- _zoomService.zoomChange.subscribe((/**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- _this.zoom = val ? val : _this.zoom;
- }));
- }
- /**
- * @private
- * @return {?}
- */
- SearchableDirective.prototype.highlightSearch = /**
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var el = this._elementRef ? this._elementRef.nativeElement : null;
- if (el) {
- this.cleanHighlight(el);
- if (this.text) {
- this.highlightEl(el);
- /** @type {?} */
- var count = el.querySelectorAll('.gd-highlight').length;
- this.total = count;
- }
- else {
- this.total = 0;
- }
- this._searchService.setTotal(this.total);
- }
- };
- /**
- * @private
- * @return {?}
- */
- SearchableDirective.prototype.moveToCurrent = /**
- * @private
- * @return {?}
- */
- function () {
- if (this.current === 0) {
- return;
- }
- /** @type {?} */
- var currentZoom = this.getZoom();
- /** @type {?} */
- var el = this._elementRef ? this._elementRef.nativeElement : null;
- if (el) {
- el.querySelectorAll('.gd-highlight-select').forEach((/**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- $$6(value).removeClass('gd-highlight-select');
- }));
- /** @type {?} */
- var currentEl = el.querySelectorAll('.gd-highlight')[this.current - 1];
- $$6(currentEl).addClass('gd-highlight-select');
- if (currentEl) {
- /** @type {?} */
- var options = {
- left: 0,
- top: ($$6(currentEl).offset().top) + el.parentElement.parentElement.scrollTop - 150,
- };
- // using polyfill
- el.parentElement.parentElement.scroll(options);
- }
- }
- };
- /**
- * @private
- * @param {?} el
- * @return {?}
- */
- SearchableDirective.prototype.highlightEl = /**
- * @private
- * @param {?} el
- * @return {?}
- */
- function (el) {
- /** @type {?} */
- var textNodes = $$6(el).find('*').contents().filter((/**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var nodeName = this.parentElement.nodeName.toLowerCase();
- /** @type {?} */
- var checkClass = ((/** @type {?} */ (this))).classList ? !((/** @type {?} */ (this))).classList.contains('gd-highlight') : true;
- return this.nodeType === 3 &&
- this.textContent.trim().length !== 0 &&
- nodeName !== 'style' &&
- nodeName !== 'title' &&
- nodeName !== 'body' &&
- nodeName !== 'script' &&
- checkClass;
- }));
- /** @type {?} */
- var text = this.text;
- /** @type {?} */
- var highlight = this._highlight;
- textNodes.each((/**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var $this = $$6(this);
- /** @type {?} */
- var content = $this.text();
- content = highlight.transform(content, text);
- $this.replaceWith(content);
- }));
- el.normalize();
- };
- /**
- * @private
- * @param {?} el
- * @return {?}
- */
- SearchableDirective.prototype.cleanHighlight = /**
- * @private
- * @param {?} el
- * @return {?}
- */
- function (el) {
- /** @type {?} */
- var nodeListOf = el.querySelectorAll('.gd-highlight');
- for (var i = 0; i < nodeListOf.length; i++) {
- /** @type {?} */
- var element = nodeListOf.item(i);
- element.replaceWith(((/** @type {?} */ (element))).innerText);
- }
- el.normalize();
- };
- /**
- * @private
- * @return {?}
- */
- SearchableDirective.prototype.getZoom = /**
- * @private
- * @return {?}
- */
- function () {
- return this.zoom / 100;
- };
- SearchableDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdSearchable]'
- },] }
- ];
- /** @nocollapse */
- SearchableDirective.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: SearchService },
- { type: HighlightSearchPipe },
- { type: ZoomService }
- ]; };
- return SearchableDirective;
- }());
- if (false) {
- /** @type {?} */
- SearchableDirective.prototype.text;
- /** @type {?} */
- SearchableDirective.prototype.current;
- /** @type {?} */
- SearchableDirective.prototype.total;
- /**
- * @type {?}
- * @private
- */
- SearchableDirective.prototype.zoom;
- /**
- * @type {?}
- * @private
- */
- SearchableDirective.prototype._elementRef;
- /**
- * @type {?}
- * @private
- */
- SearchableDirective.prototype._searchService;
- /**
- * @type {?}
- * @private
- */
- SearchableDirective.prototype._highlight;
- /**
- * @type {?}
- * @private
- */
- SearchableDirective.prototype._zoomService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$6 = jquery;
+ var SearchableDirective = /** @class */ (function () {
+ function SearchableDirective(_elementRef, _searchService, _highlight, _zoomService) {
+ var _this = this;
+ this._elementRef = _elementRef;
+ this._searchService = _searchService;
+ this._highlight = _highlight;
+ this._zoomService = _zoomService;
+ this.current = 0;
+ this.total = 0;
+ this.zoom = 100;
+ _searchService.currentChange.subscribe((/**
+ * @param {?} current
+ * @return {?}
+ */
+ function (current) {
+ _this.current = current;
+ if (_this.current !== 0) {
+ _this.moveToCurrent();
+ }
+ }));
+ _searchService.textChange.subscribe((/**
+ * @param {?} text
+ * @return {?}
+ */
+ function (text) {
+ _this.text = text;
+ _this.highlightSearch();
+ }));
+ this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;
+ _zoomService.zoomChange.subscribe((/**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ _this.zoom = val ? val : _this.zoom;
+ }));
+ }
+ /**
+ * @private
+ * @return {?}
+ */
+ SearchableDirective.prototype.highlightSearch = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var el = this._elementRef ? this._elementRef.nativeElement : null;
+ if (el) {
+ this.cleanHighlight(el);
+ if (this.text) {
+ this.highlightEl(el);
+ /** @type {?} */
+ var count = el.querySelectorAll('.gd-highlight').length;
+ this.total = count;
+ }
+ else {
+ this.total = 0;
+ }
+ this._searchService.setTotal(this.total);
+ }
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ SearchableDirective.prototype.moveToCurrent = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ if (this.current === 0) {
+ return;
+ }
+ /** @type {?} */
+ var currentZoom = this.getZoom();
+ /** @type {?} */
+ var el = this._elementRef ? this._elementRef.nativeElement : null;
+ if (el) {
+ el.querySelectorAll('.gd-highlight-select').forEach((/**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ $$6(value).removeClass('gd-highlight-select');
+ }));
+ /** @type {?} */
+ var currentEl = el.querySelectorAll('.gd-highlight')[this.current - 1];
+ $$6(currentEl).addClass('gd-highlight-select');
+ if (currentEl) {
+ /** @type {?} */
+ var options = {
+ left: 0,
+ top: ($$6(currentEl).offset().top) + el.parentElement.parentElement.scrollTop - 150,
+ };
+ // using polyfill
+ el.parentElement.parentElement.scroll(options);
+ }
+ }
+ };
+ /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ SearchableDirective.prototype.highlightEl = /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ function (el) {
+ /** @type {?} */
+ var textNodes = $$6(el).find('*').contents().filter((/**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var nodeName = this.parentElement.nodeName.toLowerCase();
+ /** @type {?} */
+ var checkClass = ((/** @type {?} */ (this))).classList ? !((/** @type {?} */ (this))).classList.contains('gd-highlight') : true;
+ return this.nodeType === 3 &&
+ this.textContent.trim().length !== 0 &&
+ nodeName !== 'style' &&
+ nodeName !== 'title' &&
+ nodeName !== 'body' &&
+ nodeName !== 'script' &&
+ checkClass;
+ }));
+ /** @type {?} */
+ var text = this.text;
+ /** @type {?} */
+ var highlight = this._highlight;
+ textNodes.each((/**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var $this = $$6(this);
+ /** @type {?} */
+ var content = $this.text();
+ content = highlight.transform(content, text);
+ $this.replaceWith(content);
+ }));
+ el.normalize();
+ };
+ /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ SearchableDirective.prototype.cleanHighlight = /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ function (el) {
+ /** @type {?} */
+ var nodeListOf = el.querySelectorAll('.gd-highlight');
+ for (var i = 0; i < nodeListOf.length; i++) {
+ /** @type {?} */
+ var element = nodeListOf.item(i);
+ element.replaceWith(((/** @type {?} */ (element))).innerText);
+ }
+ el.normalize();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ SearchableDirective.prototype.getZoom = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ return this.zoom / 100;
+ };
+ SearchableDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdSearchable]'
+ },] }
+ ];
+ /** @nocollapse */
+ SearchableDirective.ctorParameters = function () { return [
+ { type: core.ElementRef },
+ { type: SearchService },
+ { type: HighlightSearchPipe },
+ { type: ZoomService }
+ ]; };
+ return SearchableDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ SearchableDirective.prototype.text;
+ /** @type {?} */
+ SearchableDirective.prototype.current;
+ /** @type {?} */
+ SearchableDirective.prototype.total;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchableDirective.prototype.zoom;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchableDirective.prototype._elementRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchableDirective.prototype._searchService;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchableDirective.prototype._highlight;
+ /**
+ * @type {?}
+ * @private
+ */
+ SearchableDirective.prototype._zoomService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TabbedToolbarsComponent = /** @class */ (function () {
- function TabbedToolbarsComponent() {
- }
- /**
- * @return {?}
- */
- TabbedToolbarsComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- TabbedToolbarsComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-tabbed-toolbars',
- template: "\n \n \n
\n",
- styles: [".top-panel{background:#3e4e5a;display:-webkit-box;display:flex;width:100%;height:90px}.top-panel ::ng-deep .logo{height:30px;font-size:16px}@media (max-width:1037px){.top-panel{height:60px}.top-panel ::ng-deep .logo{height:60px}}"]
- }] }
- ];
- /** @nocollapse */
- TabbedToolbarsComponent.ctorParameters = function () { return []; };
- TabbedToolbarsComponent.propDecorators = {
- logo: [{ type: core.Input }],
- icon: [{ type: core.Input }]
- };
- return TabbedToolbarsComponent;
- }());
- if (false) {
- /** @type {?} */
- TabbedToolbarsComponent.prototype.logo;
- /** @type {?} */
- TabbedToolbarsComponent.prototype.icon;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TabbedToolbarsComponent = /** @class */ (function () {
+ function TabbedToolbarsComponent() {
+ }
+ /**
+ * @return {?}
+ */
+ TabbedToolbarsComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ TabbedToolbarsComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-tabbed-toolbars',
+ template: "\r\n \r\n \r\n
\r\n",
+ styles: [".top-panel{background:#3e4e5a;display:flex;width:100%;height:90px}.top-panel ::ng-deep .logo{height:30px;font-size:16px}@media (max-width:1037px){.top-panel{height:60px}.top-panel ::ng-deep .logo{height:60px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TabbedToolbarsComponent.ctorParameters = function () { return []; };
+ TabbedToolbarsComponent.propDecorators = {
+ logo: [{ type: core.Input }],
+ icon: [{ type: core.Input }]
+ };
+ return TabbedToolbarsComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ TabbedToolbarsComponent.prototype.logo;
+ /** @type {?} */
+ TabbedToolbarsComponent.prototype.icon;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TabActivatorService = /** @class */ (function () {
- function TabActivatorService() {
- this._observer = new rxjs.Subject();
- this._activeTabChange = this._observer.asObservable();
- }
- Object.defineProperty(TabActivatorService.prototype, "activeTabChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._activeTabChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} tabId
- * @return {?}
- */
- TabActivatorService.prototype.changeActiveTab = /**
- * @param {?} tabId
- * @return {?}
- */
- function (tabId) {
- this._observer.next(tabId);
- };
- return TabActivatorService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- TabActivatorService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- TabActivatorService.prototype._activeTabChange;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TabActivatorService = /** @class */ (function () {
+ function TabActivatorService() {
+ this._observer = new rxjs.Subject();
+ this._activeTabChange = this._observer.asObservable();
+ }
+ Object.defineProperty(TabActivatorService.prototype, "activeTabChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._activeTabChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} tabId
+ * @return {?}
+ */
+ TabActivatorService.prototype.changeActiveTab = /**
+ * @param {?} tabId
+ * @return {?}
+ */
+ function (tabId) {
+ this._observer.next(tabId);
+ };
+ return TabActivatorService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ TabActivatorService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ TabActivatorService.prototype._activeTabChange;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TabComponent = /** @class */ (function () {
- function TabComponent(_tabActivatorService) {
- var _this = this;
- this._tabActivatorService = _tabActivatorService;
- this.disabled = false;
- this.active = false;
- this.content = true;
- this._tabActivatorService.activeTabChange.subscribe((/**
- * @param {?} tabId
- * @return {?}
- */
- function (tabId) {
- _this.activation(tabId);
- }));
- }
- /**
- * @private
- * @param {?} tabId
- * @return {?}
- */
- TabComponent.prototype.activation = /**
- * @private
- * @param {?} tabId
- * @return {?}
- */
- function (tabId) {
- if (this.id === tabId) {
- this.active = true;
- }
- else {
- this.active = false;
- }
- };
- /**
- * @return {?}
- */
- TabComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @return {?}
- */
- TabComponent.prototype.selectTab = /**
- * @return {?}
- */
- function () {
- if (this.disabled) {
- return;
- }
- this._tabActivatorService.changeActiveTab(this.id);
- };
- TabComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-tab',
- template: "\n\n \n
\n",
- styles: [".tab-content{height:60px;position:absolute;background-color:#fff;width:100%;left:0;line-height:60px;display:none;z-index:9}.tab-content ::ng-deep .toolbar-panel{height:60px}.tab-content.active{display:-webkit-box;display:flex}.gd-tab{text-align:center;font-size:11px;color:#e5e5e5;height:30px;line-height:30px;cursor:pointer;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}.gd-tab .icon{display:none;font-size:14px}.gd-tab .title{margin:auto 23px}.gd-tab.active{background-color:#fff;color:#3e4e5a;font-weight:700}@media (max-width:1037px){.gd-tab{height:60px;line-height:60px;width:60px}.gd-tab .title{display:none}.gd-tab .icon{display:block;font-size:22px}}"]
- }] }
- ];
- /** @nocollapse */
- TabComponent.ctorParameters = function () { return [
- { type: TabActivatorService }
- ]; };
- TabComponent.propDecorators = {
- id: [{ type: core.Input }],
- tabTitle: [{ type: core.Input }],
- icon: [{ type: core.Input }],
- disabled: [{ type: core.Input }],
- active: [{ type: core.Input }],
- content: [{ type: core.Input }]
- };
- return TabComponent;
- }());
- if (false) {
- /** @type {?} */
- TabComponent.prototype.id;
- /** @type {?} */
- TabComponent.prototype.tabTitle;
- /** @type {?} */
- TabComponent.prototype.icon;
- /** @type {?} */
- TabComponent.prototype.disabled;
- /** @type {?} */
- TabComponent.prototype.active;
- /** @type {?} */
- TabComponent.prototype.content;
- /**
- * @type {?}
- * @private
- */
- TabComponent.prototype._tabActivatorService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TabComponent = /** @class */ (function () {
+ function TabComponent(_tabActivatorService) {
+ var _this = this;
+ this._tabActivatorService = _tabActivatorService;
+ this.disabled = false;
+ this.active = false;
+ this.content = true;
+ this._tabActivatorService.activeTabChange.subscribe((/**
+ * @param {?} tabId
+ * @return {?}
+ */
+ function (tabId) {
+ _this.activation(tabId);
+ }));
+ }
+ /**
+ * @private
+ * @param {?} tabId
+ * @return {?}
+ */
+ TabComponent.prototype.activation = /**
+ * @private
+ * @param {?} tabId
+ * @return {?}
+ */
+ function (tabId) {
+ if (this.id === tabId) {
+ this.active = true;
+ }
+ else {
+ this.active = false;
+ }
+ };
+ /**
+ * @return {?}
+ */
+ TabComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @return {?}
+ */
+ TabComponent.prototype.selectTab = /**
+ * @return {?}
+ */
+ function () {
+ if (this.disabled) {
+ return;
+ }
+ this._tabActivatorService.changeActiveTab(this.id);
+ };
+ TabComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-tab',
+ template: "\r\n
{{tabTitle}}
\r\n
\r\n
\r\n\r\n \r\n
\r\n",
+ styles: [".tab-content{height:60px;position:absolute;background-color:#fff;width:100%;left:0;line-height:60px;display:none;z-index:9}.tab-content ::ng-deep .toolbar-panel{height:60px}.tab-content.active{display:flex}.gd-tab{text-align:center;font-size:11px;color:#e5e5e5;height:30px;line-height:30px;cursor:pointer;display:flex;align-items:center;justify-content:center}.gd-tab .icon{display:none;font-size:14px}.gd-tab .title{margin:auto 23px}.gd-tab.active{background-color:#fff;color:#3e4e5a;font-weight:700}@media (max-width:1037px){.gd-tab{height:60px;line-height:60px;width:60px}.gd-tab .title{display:none}.gd-tab .icon{display:block;font-size:22px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TabComponent.ctorParameters = function () { return [
+ { type: TabActivatorService }
+ ]; };
+ TabComponent.propDecorators = {
+ id: [{ type: core.Input }],
+ tabTitle: [{ type: core.Input }],
+ icon: [{ type: core.Input }],
+ disabled: [{ type: core.Input }],
+ active: [{ type: core.Input }],
+ content: [{ type: core.Input }]
+ };
+ return TabComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ TabComponent.prototype.id;
+ /** @type {?} */
+ TabComponent.prototype.tabTitle;
+ /** @type {?} */
+ TabComponent.prototype.icon;
+ /** @type {?} */
+ TabComponent.prototype.disabled;
+ /** @type {?} */
+ TabComponent.prototype.active;
+ /** @type {?} */
+ TabComponent.prototype.content;
+ /**
+ * @type {?}
+ * @private
+ */
+ TabComponent.prototype._tabActivatorService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TabsComponent = /** @class */ (function () {
- function TabsComponent() {
- }
- TabsComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-tabs',
- template: "\n \n
\n",
- styles: [".gd-tabs{display:-webkit-box;display:flex}"]
- }] }
- ];
- /** @nocollapse */
- TabsComponent.ctorParameters = function () { return []; };
- return TabsComponent;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TabsComponent = /** @class */ (function () {
+ function TabsComponent() {
+ }
+ TabsComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-tabs',
+ template: "\r\n \r\n
\r\n",
+ styles: [".gd-tabs{display:flex}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TabsComponent.ctorParameters = function () { return []; };
+ return TabsComponent;
}());
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var Formatting = /** @class */ (function () {
- function Formatting(fontSize, color, bgColor, bold, italic, underline, font, strikeout, align, list) {
- this.fontSize = fontSize;
- this.color = color;
- this.bgColor = bgColor;
- this.bold = bold;
- this.italic = italic;
- this.underline = underline;
- this.font = font;
- this.strikeout = strikeout;
- this.align = align;
- this.list = list;
- }
- /**
- * @return {?}
- */
- Formatting.default = /**
- * @return {?}
- */
- function () {
- return new Formatting(10, '#000000', '#FFFFFF', false, false, false, 'Arial', false, "", "");
- };
- return Formatting;
- }());
- if (false) {
- /** @type {?} */
- Formatting.prototype.bold;
- /** @type {?} */
- Formatting.prototype.italic;
- /** @type {?} */
- Formatting.prototype.underline;
- /** @type {?} */
- Formatting.prototype.fontSize;
- /** @type {?} */
- Formatting.prototype.color;
- /** @type {?} */
- Formatting.prototype.bgColor;
- /** @type {?} */
- Formatting.prototype.font;
- /** @type {?} */
- Formatting.prototype.strikeout;
- /** @type {?} */
- Formatting.prototype.align;
- /** @type {?} */
- Formatting.prototype.list;
- }
- var FormattingService = /** @class */ (function () {
- function FormattingService() {
- this._observerBold = new rxjs.Subject();
- this._formatBoldChange = this._observerBold.asObservable();
- this._observerUnderline = new rxjs.Subject();
- this._formatUnderlineChange = this._observerUnderline.asObservable();
- this._observerUndo = new rxjs.Subject();
- this._undo = this._observerUndo.asObservable();
- this._observerRedo = new rxjs.Subject();
- this._redo = this._observerRedo.asObservable();
- this._observerItalic = new rxjs.Subject();
- this._formatItalicChange = this._observerItalic.asObservable();
- this._observerColor = new rxjs.Subject();
- this._formatColorChange = this._observerColor.asObservable();
- this._observerBgColor = new rxjs.Subject();
- this._formatBgColorChange = this._observerBgColor.asObservable();
- this._observerFontSize = new rxjs.Subject();
- this._formatFontSizeChange = this._observerFontSize.asObservable();
- this._observerFont = new rxjs.Subject();
- this._formatFontChange = this._observerFont.asObservable();
- this._observerStrikeout = new rxjs.Subject();
- this._formatStrikeoutChange = this._observerStrikeout.asObservable();
- this._observerAlign = new rxjs.Subject();
- this._formatAlignChange = this._observerAlign.asObservable();
- this._observerList = new rxjs.Subject();
- this._formatListChange = this._observerList.asObservable();
- }
- Object.defineProperty(FormattingService.prototype, "formatBoldChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatBoldChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatUnderlineChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatUnderlineChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatColorChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatColorChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatBgColorChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatBgColorChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatFontSizeChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatFontSizeChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatFontChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatFontChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "undo", {
- get: /**
- * @return {?}
- */
- function () {
- return this._undo;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "redo", {
- get: /**
- * @return {?}
- */
- function () {
- return this._redo;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatItalicChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatItalicChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatStrikeoutChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatStrikeoutChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatAlignChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatAlignChange;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(FormattingService.prototype, "formatListChange", {
- get: /**
- * @return {?}
- */
- function () {
- return this._formatListChange;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} val
- * @return {?}
- */
- FormattingService.createFontSizeOption = /**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- return { value: val, name: val + 'px', separator: false };
- };
- /**
- * @return {?}
- */
- FormattingService.getFontSizeOptions = /**
- * @return {?}
- */
- function () {
- return [
- FormattingService.createFontSizeOption(8),
- FormattingService.createFontSizeOption(10),
- FormattingService.createFontSizeOption(12),
- FormattingService.createFontSizeOption(14),
- FormattingService.createFontSizeOption(16),
- FormattingService.createFontSizeOption(18),
- FormattingService.createFontSizeOption(20),
- FormattingService.createFontSizeOption(22),
- FormattingService.createFontSizeOption(24),
- ];
- };
- /**
- * @param {?} val
- * @return {?}
- */
- FormattingService.createFontOption = /**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- return { value: val, name: val, separator: false };
- };
- /**
- * @return {?}
- */
- FormattingService.getFontOptions = /**
- * @return {?}
- */
- function () {
- var _this = this;
- /** @type {?} */
- var fonts = ["Arial", "Calibri", "Century Gothic", "Comic Sans", "Consolas", "Courier", "Dejavu Sans", "Dejavu Serif", "Georgia", "Gill Sans", "Helvetica", "Impact", "Lucida Sans",
- "Myriad Pro", "Open Sans", "Palatino", "Tahoma", "Times New Roman", "Trebuchet"];
- /** @type {?} */
- var fontOptions = [];
- fonts.forEach((/**
- * @param {?} font
- * @return {?}
- */
- function (font) {
- fontOptions.push(_this.createFontOption(font));
- }));
- return fontOptions;
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- FormattingService.prototype.changeFormatFontSize = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this._observerFontSize.next($event);
- };
- /**
- * @param {?} bold
- * @return {?}
- */
- FormattingService.prototype.changeFormatBold = /**
- * @param {?} bold
- * @return {?}
- */
- function (bold) {
- this._observerBold.next(bold);
- };
- /**
- * @param {?} underline
- * @return {?}
- */
- FormattingService.prototype.changeFormatUnderline = /**
- * @param {?} underline
- * @return {?}
- */
- function (underline) {
- this._observerUnderline.next(underline);
- };
- /**
- * @return {?}
- */
- FormattingService.prototype.Undo = /**
- * @return {?}
- */
- function () {
- this._observerUndo.next();
- };
- /**
- * @return {?}
- */
- FormattingService.prototype.Redo = /**
- * @return {?}
- */
- function () {
- this._observerRedo.next();
- };
- /**
- * @param {?} italic
- * @return {?}
- */
- FormattingService.prototype.changeFormatItalic = /**
- * @param {?} italic
- * @return {?}
- */
- function (italic) {
- this._observerItalic.next(italic);
- };
- /**
- * @param {?} color
- * @return {?}
- */
- FormattingService.prototype.changeFormatColor = /**
- * @param {?} color
- * @return {?}
- */
- function (color) {
- this._observerColor.next(color);
- };
- /**
- * @param {?} bgcolor
- * @return {?}
- */
- FormattingService.prototype.changeFormatBgColor = /**
- * @param {?} bgcolor
- * @return {?}
- */
- function (bgcolor) {
- this._observerBgColor.next(bgcolor);
- };
- /**
- * @param {?} font
- * @return {?}
- */
- FormattingService.prototype.changeFormatFont = /**
- * @param {?} font
- * @return {?}
- */
- function (font) {
- this._observerFont.next(font);
- };
- /**
- * @param {?} strikeout
- * @return {?}
- */
- FormattingService.prototype.changeFormatStrikeout = /**
- * @param {?} strikeout
- * @return {?}
- */
- function (strikeout) {
- this._observerStrikeout.next(strikeout);
- };
- /**
- * @param {?} align
- * @return {?}
- */
- FormattingService.prototype.changeFormatAlign = /**
- * @param {?} align
- * @return {?}
- */
- function (align) {
- this._observerAlign.next(align);
- };
- /**
- * @param {?} list
- * @return {?}
- */
- FormattingService.prototype.changeFormatList = /**
- * @param {?} list
- * @return {?}
- */
- function (list) {
- this._observerList.next(list);
- };
- return FormattingService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerBold;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatBoldChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerUnderline;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatUnderlineChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerUndo;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._undo;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerRedo;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._redo;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerItalic;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatItalicChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerColor;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatColorChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerBgColor;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatBgColorChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerFontSize;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatFontSizeChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerFont;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatFontChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerStrikeout;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatStrikeoutChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerAlign;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatAlignChange;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._observerList;
- /**
- * @type {?}
- * @private
- */
- FormattingService.prototype._formatListChange;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var Formatting = /** @class */ (function () {
+ function Formatting(fontSize, color, bgColor, bold, italic, underline, font, strikeout, align, list) {
+ this.fontSize = fontSize;
+ this.color = color;
+ this.bgColor = bgColor;
+ this.bold = bold;
+ this.italic = italic;
+ this.underline = underline;
+ this.font = font;
+ this.strikeout = strikeout;
+ this.align = align;
+ this.list = list;
+ }
+ /**
+ * @return {?}
+ */
+ Formatting.default = /**
+ * @return {?}
+ */
+ function () {
+ return new Formatting(10, '#000000', '#FFFFFF', false, false, false, 'Arial', false, "", "");
+ };
+ return Formatting;
+ }());
+ if (false) {
+ /** @type {?} */
+ Formatting.prototype.bold;
+ /** @type {?} */
+ Formatting.prototype.italic;
+ /** @type {?} */
+ Formatting.prototype.underline;
+ /** @type {?} */
+ Formatting.prototype.fontSize;
+ /** @type {?} */
+ Formatting.prototype.color;
+ /** @type {?} */
+ Formatting.prototype.bgColor;
+ /** @type {?} */
+ Formatting.prototype.font;
+ /** @type {?} */
+ Formatting.prototype.strikeout;
+ /** @type {?} */
+ Formatting.prototype.align;
+ /** @type {?} */
+ Formatting.prototype.list;
+ }
+ var FormattingService = /** @class */ (function () {
+ function FormattingService() {
+ this._observerBold = new rxjs.Subject();
+ this._formatBoldChange = this._observerBold.asObservable();
+ this._observerUnderline = new rxjs.Subject();
+ this._formatUnderlineChange = this._observerUnderline.asObservable();
+ this._observerUndo = new rxjs.Subject();
+ this._undo = this._observerUndo.asObservable();
+ this._observerRedo = new rxjs.Subject();
+ this._redo = this._observerRedo.asObservable();
+ this._observerItalic = new rxjs.Subject();
+ this._formatItalicChange = this._observerItalic.asObservable();
+ this._observerColor = new rxjs.Subject();
+ this._formatColorChange = this._observerColor.asObservable();
+ this._observerBgColor = new rxjs.Subject();
+ this._formatBgColorChange = this._observerBgColor.asObservable();
+ this._observerFontSize = new rxjs.Subject();
+ this._formatFontSizeChange = this._observerFontSize.asObservable();
+ this._observerFont = new rxjs.Subject();
+ this._formatFontChange = this._observerFont.asObservable();
+ this._observerStrikeout = new rxjs.Subject();
+ this._formatStrikeoutChange = this._observerStrikeout.asObservable();
+ this._observerAlign = new rxjs.Subject();
+ this._formatAlignChange = this._observerAlign.asObservable();
+ this._observerList = new rxjs.Subject();
+ this._formatListChange = this._observerList.asObservable();
+ }
+ Object.defineProperty(FormattingService.prototype, "formatBoldChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatBoldChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatUnderlineChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatUnderlineChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatColorChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatColorChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatBgColorChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatBgColorChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatFontSizeChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatFontSizeChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatFontChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatFontChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "undo", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._undo;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "redo", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._redo;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatItalicChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatItalicChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatStrikeoutChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatStrikeoutChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatAlignChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatAlignChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(FormattingService.prototype, "formatListChange", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._formatListChange;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} val
+ * @return {?}
+ */
+ FormattingService.createFontSizeOption = /**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ return { value: val, name: val + 'px', separator: false };
+ };
+ /**
+ * @return {?}
+ */
+ FormattingService.getFontSizeOptions = /**
+ * @return {?}
+ */
+ function () {
+ return [
+ FormattingService.createFontSizeOption(8),
+ FormattingService.createFontSizeOption(10),
+ FormattingService.createFontSizeOption(12),
+ FormattingService.createFontSizeOption(14),
+ FormattingService.createFontSizeOption(16),
+ FormattingService.createFontSizeOption(18),
+ FormattingService.createFontSizeOption(20),
+ FormattingService.createFontSizeOption(22),
+ FormattingService.createFontSizeOption(24),
+ ];
+ };
+ /**
+ * @param {?} val
+ * @return {?}
+ */
+ FormattingService.createFontOption = /**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ return { value: val, name: val, separator: false };
+ };
+ /**
+ * @return {?}
+ */
+ FormattingService.getFontOptions = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ /** @type {?} */
+ var fonts = ["Arial", "Calibri", "Century Gothic", "Comic Sans", "Consolas", "Courier", "Dejavu Sans", "Dejavu Serif", "Georgia", "Gill Sans", "Helvetica", "Impact", "Lucida Sans",
+ "Myriad Pro", "Open Sans", "Palatino", "Tahoma", "Times New Roman", "Trebuchet"];
+ /** @type {?} */
+ var fontOptions = [];
+ fonts.forEach((/**
+ * @param {?} font
+ * @return {?}
+ */
+ function (font) {
+ fontOptions.push(_this.createFontOption(font));
+ }));
+ return fontOptions;
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatFontSize = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this._observerFontSize.next($event);
+ };
+ /**
+ * @param {?} bold
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatBold = /**
+ * @param {?} bold
+ * @return {?}
+ */
+ function (bold) {
+ this._observerBold.next(bold);
+ };
+ /**
+ * @param {?} underline
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatUnderline = /**
+ * @param {?} underline
+ * @return {?}
+ */
+ function (underline) {
+ this._observerUnderline.next(underline);
+ };
+ /**
+ * @return {?}
+ */
+ FormattingService.prototype.Undo = /**
+ * @return {?}
+ */
+ function () {
+ this._observerUndo.next();
+ };
+ /**
+ * @return {?}
+ */
+ FormattingService.prototype.Redo = /**
+ * @return {?}
+ */
+ function () {
+ this._observerRedo.next();
+ };
+ /**
+ * @param {?} italic
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatItalic = /**
+ * @param {?} italic
+ * @return {?}
+ */
+ function (italic) {
+ this._observerItalic.next(italic);
+ };
+ /**
+ * @param {?} color
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatColor = /**
+ * @param {?} color
+ * @return {?}
+ */
+ function (color) {
+ this._observerColor.next(color);
+ };
+ /**
+ * @param {?} bgcolor
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatBgColor = /**
+ * @param {?} bgcolor
+ * @return {?}
+ */
+ function (bgcolor) {
+ this._observerBgColor.next(bgcolor);
+ };
+ /**
+ * @param {?} font
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatFont = /**
+ * @param {?} font
+ * @return {?}
+ */
+ function (font) {
+ this._observerFont.next(font);
+ };
+ /**
+ * @param {?} strikeout
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatStrikeout = /**
+ * @param {?} strikeout
+ * @return {?}
+ */
+ function (strikeout) {
+ this._observerStrikeout.next(strikeout);
+ };
+ /**
+ * @param {?} align
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatAlign = /**
+ * @param {?} align
+ * @return {?}
+ */
+ function (align) {
+ this._observerAlign.next(align);
+ };
+ /**
+ * @param {?} list
+ * @return {?}
+ */
+ FormattingService.prototype.changeFormatList = /**
+ * @param {?} list
+ * @return {?}
+ */
+ function (list) {
+ this._observerList.next(list);
+ };
+ return FormattingService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerBold;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatBoldChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerUnderline;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatUnderlineChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerUndo;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._undo;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerRedo;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._redo;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerItalic;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatItalicChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerColor;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatColorChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerBgColor;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatBgColorChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerFontSize;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatFontSizeChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerFont;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatFontChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerStrikeout;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatStrikeoutChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerAlign;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatAlignChange;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._observerList;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingService.prototype._formatListChange;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var DEFAULT_COLORS = [
- '#000000', '#434343', '#666666', '#999999', '#B7B7B7', '#CCCCCC', '#D9D9D9', '#EFEFEF', '#F3F3F3', '#FFFFFF',
- '#980000', '#FF0000', '#FF9900', '#FFFF00', '#00FF00', '#00FFFF', '#4986E8', '#0000FF', '#9900FF', '#FF00FF',
- '#E6B8AF', '#F4CCCC', '#FDE5CD', '#FFF2CC', '#D9EAD3', '#D0E0E2', '#C9DAF8', '#CFE2F3', '#D9D2E9', '#EAD1DC',
- '#DD7E6B', '#EA9899', '#F9CB9C', '#FFE59A', '#B7D7A8', '#A2C4C9', '#A4C2F4', '#9FC5E8', '#B4A7D7', '#D5A6BD',
- '#CC4125', '#E06666', '#F6B26B', '#FFD966', '#92C47D', '#75A5AF', '#6D9EEB', '#6FA9DB', '#8E7CC3', '#C27BA0',
- '#A61C00', '#CC0000', '#E69138', '#F2C131', '#6AA84F', '#45818E', '#3C78D8', '#3C85C6', '#674EA7', '#A64D79',
- '#85200B', '#990000', '#B45F05', '#BF9000', '#37761D', '#144F5C', '#1254CC', '#0A5394', '#351C75', '#741B47',
- '#5B0F00', '#660000', '#783F03', '#7F6000', '#284E13', '#0B343D', '#1B4586', '#063763', '#20124D', '#4C1030',
- ];
- var ColorPickerComponent = /** @class */ (function () {
- function ColorPickerComponent() {
- this.isOpen = false;
- this.selectedColor = new core.EventEmitter();
- this.closeOutside = new core.EventEmitter();
- this.colors = DEFAULT_COLORS;
- this.white = '#FFFFFF';
- }
- /**
- * @return {?}
- */
- ColorPickerComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} $event
- * @param {?} color
- * @return {?}
- */
- ColorPickerComponent.prototype.select = /**
- * @param {?} $event
- * @param {?} color
- * @return {?}
- */
- function ($event, color) {
- $event.preventDefault();
- $event.stopPropagation();
- this.selectedColor.emit(color);
- };
- /**
- * @return {?}
- */
- ColorPickerComponent.prototype.close = /**
- * @return {?}
- */
- function () {
- this.isOpen = false;
- this.closeOutside.emit(true);
- };
- ColorPickerComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-color-picker',
- template: "\n",
- styles: [".bcPicker-picker{border:1px;border-radius:100%}.bcPicker-palette{width:250px;background-color:#fdfdfd;z-index:999;box-shadow:0 0 5px #efefef;display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center}.bcPicker-palette>.bcPicker-color{width:18px;height:18px;margin:2px;cursor:pointer}"]
- }] }
- ];
- /** @nocollapse */
- ColorPickerComponent.ctorParameters = function () { return []; };
- ColorPickerComponent.propDecorators = {
- isOpen: [{ type: core.Input }],
- selectedColor: [{ type: core.Output }],
- closeOutside: [{ type: core.Output }]
- };
- return ColorPickerComponent;
- }());
- if (false) {
- /** @type {?} */
- ColorPickerComponent.prototype.isOpen;
- /** @type {?} */
- ColorPickerComponent.prototype.selectedColor;
- /** @type {?} */
- ColorPickerComponent.prototype.closeOutside;
- /** @type {?} */
- ColorPickerComponent.prototype.colors;
- /** @type {?} */
- ColorPickerComponent.prototype.white;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var DEFAULT_COLORS = [
+ '#000000', '#434343', '#666666', '#999999', '#B7B7B7', '#CCCCCC', '#D9D9D9', '#EFEFEF', '#F3F3F3', '#FFFFFF',
+ '#980000', '#FF0000', '#FF9900', '#FFFF00', '#00FF00', '#00FFFF', '#4986E8', '#0000FF', '#9900FF', '#FF00FF',
+ '#E6B8AF', '#F4CCCC', '#FDE5CD', '#FFF2CC', '#D9EAD3', '#D0E0E2', '#C9DAF8', '#CFE2F3', '#D9D2E9', '#EAD1DC',
+ '#DD7E6B', '#EA9899', '#F9CB9C', '#FFE59A', '#B7D7A8', '#A2C4C9', '#A4C2F4', '#9FC5E8', '#B4A7D7', '#D5A6BD',
+ '#CC4125', '#E06666', '#F6B26B', '#FFD966', '#92C47D', '#75A5AF', '#6D9EEB', '#6FA9DB', '#8E7CC3', '#C27BA0',
+ '#A61C00', '#CC0000', '#E69138', '#F2C131', '#6AA84F', '#45818E', '#3C78D8', '#3C85C6', '#674EA7', '#A64D79',
+ '#85200B', '#990000', '#B45F05', '#BF9000', '#37761D', '#144F5C', '#1254CC', '#0A5394', '#351C75', '#741B47',
+ '#5B0F00', '#660000', '#783F03', '#7F6000', '#284E13', '#0B343D', '#1B4586', '#063763', '#20124D', '#4C1030',
+ ];
+ var ColorPickerComponent = /** @class */ (function () {
+ function ColorPickerComponent() {
+ this.isOpen = false;
+ this.selectedColor = new core.EventEmitter();
+ this.closeOutside = new core.EventEmitter();
+ this.colors = DEFAULT_COLORS;
+ this.white = '#FFFFFF';
+ }
+ /**
+ * @return {?}
+ */
+ ColorPickerComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} $event
+ * @param {?} color
+ * @return {?}
+ */
+ ColorPickerComponent.prototype.select = /**
+ * @param {?} $event
+ * @param {?} color
+ * @return {?}
+ */
+ function ($event, color) {
+ $event.preventDefault();
+ $event.stopPropagation();
+ this.selectedColor.emit(color);
+ };
+ /**
+ * @return {?}
+ */
+ ColorPickerComponent.prototype.close = /**
+ * @return {?}
+ */
+ function () {
+ this.isOpen = false;
+ this.closeOutside.emit(true);
+ };
+ ColorPickerComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-color-picker',
+ template: "\r\n",
+ styles: [".bcPicker-picker{border:1px;border-radius:100%}.bcPicker-palette{width:250px;background-color:#fdfdfd;z-index:999;box-shadow:0 0 5px #efefef;display:flex;flex-wrap:wrap;justify-content:center}.bcPicker-palette>.bcPicker-color{width:18px;height:18px;margin:2px;cursor:pointer}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ColorPickerComponent.ctorParameters = function () { return []; };
+ ColorPickerComponent.propDecorators = {
+ isOpen: [{ type: core.Input }],
+ selectedColor: [{ type: core.Output }],
+ closeOutside: [{ type: core.Output }]
+ };
+ return ColorPickerComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ColorPickerComponent.prototype.isOpen;
+ /** @type {?} */
+ ColorPickerComponent.prototype.selectedColor;
+ /** @type {?} */
+ ColorPickerComponent.prototype.closeOutside;
+ /** @type {?} */
+ ColorPickerComponent.prototype.colors;
+ /** @type {?} */
+ ColorPickerComponent.prototype.white;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var BackFormattingService = /** @class */ (function (_super) {
- __extends(BackFormattingService, _super);
- function BackFormattingService() {
- return _super.call(this) || this;
- }
- BackFormattingService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- BackFormattingService.ctorParameters = function () { return []; };
- /** @nocollapse */ BackFormattingService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function BackFormattingService_Factory() { return new BackFormattingService(); }, token: BackFormattingService, providedIn: "root" });
- return BackFormattingService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var BackFormattingService = /** @class */ (function (_super) {
+ __extends(BackFormattingService, _super);
+ function BackFormattingService() {
+ return _super.call(this) || this;
+ }
+ BackFormattingService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ BackFormattingService.ctorParameters = function () { return []; };
+ /** @nocollapse */ BackFormattingService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function BackFormattingService_Factory() { return new BackFormattingService(); }, token: BackFormattingService, providedIn: "root" });
+ return BackFormattingService;
}(FormattingService));
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SelectionService = /** @class */ (function () {
- function SelectionService() {
- this.isIE = false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
- }
- /**
- * @return {?}
- */
- SelectionService.prototype.restoreSelection = /**
- * @return {?}
- */
- function () {
- if (this.selection && !this.selection.collapsed || this.isIE) {
- this.putSelection(this.selection);
- }
- };
- /**
- * @return {?}
- */
- SelectionService.prototype.captureSelection = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var selection = window.getSelection();
- if (selection.rangeCount > 0) {
- this.selection = selection.getRangeAt(0);
- }
- };
- /**
- * @private
- * @param {?} selection
- * @return {?}
- */
- SelectionService.prototype.putSelection = /**
- * @private
- * @param {?} selection
- * @return {?}
- */
- function (selection) {
- /** @type {?} */
- var sel = window.getSelection();
- sel.removeAllRanges();
- sel.addRange(selection.cloneRange());
- };
- /**
- * @return {?}
- */
- SelectionService.prototype.refreshSelection = /**
- * @return {?}
- */
- function () {
- this.captureSelection();
- this.restoreSelection();
- };
- SelectionService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */ SelectionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SelectionService_Factory() { return new SelectionService(); }, token: SelectionService, providedIn: "root" });
- return SelectionService;
- }());
- if (false) {
- /** @type {?} */
- SelectionService.prototype.selection;
- /** @type {?} */
- SelectionService.prototype.isIE;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SelectionService = /** @class */ (function () {
+ function SelectionService() {
+ this.isIE = false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
+ }
+ /**
+ * @return {?}
+ */
+ SelectionService.prototype.restoreSelection = /**
+ * @return {?}
+ */
+ function () {
+ if (this.selection && !this.selection.collapsed || this.isIE) {
+ this.putSelection(this.selection);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ SelectionService.prototype.captureSelection = /**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var selection = window.getSelection();
+ if (selection.rangeCount > 0) {
+ this.selection = selection.getRangeAt(0);
+ }
+ };
+ /**
+ * @private
+ * @param {?} selection
+ * @return {?}
+ */
+ SelectionService.prototype.putSelection = /**
+ * @private
+ * @param {?} selection
+ * @return {?}
+ */
+ function (selection) {
+ /** @type {?} */
+ var sel = window.getSelection();
+ sel.removeAllRanges();
+ sel.addRange(selection.cloneRange());
+ };
+ /**
+ * @return {?}
+ */
+ SelectionService.prototype.refreshSelection = /**
+ * @return {?}
+ */
+ function () {
+ this.captureSelection();
+ this.restoreSelection();
+ };
+ SelectionService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */ SelectionService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SelectionService_Factory() { return new SelectionService(); }, token: SelectionService, providedIn: "root" });
+ return SelectionService;
+ }());
+ if (false) {
+ /** @type {?} */
+ SelectionService.prototype.selection;
+ /** @type {?} */
+ SelectionService.prototype.isIE;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$7 = jquery;
- var FormattingDirective = /** @class */ (function () {
- function FormattingDirective(_formattingService, _backFormattingService, _selectionService) {
- this._formattingService = _formattingService;
- this._backFormattingService = _backFormattingService;
- this._selectionService = _selectionService;
- this.bold = false;
- this.italic = false;
- this.underline = false;
- this.strikeout = false;
- this.isIE = false;
- this.isIE = /*@cc_on!@*/ false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
- }
- /**
- * @return {?}
- */
- FormattingDirective.prototype.mouseup = /**
- * @return {?}
- */
- function () {
- this.bold = document.queryCommandState("bold");
- this.strikeout = document.queryCommandState("strikeThrough");
- this.italic = document.queryCommandState("italic");
- this.bgColor = document.queryCommandValue("backColor");
- this.underline = document.queryCommandState("underline");
- this.align = this.checkJustify();
- this.list = this.checkList();
- //fix required by FireFox to get correct background color
- if (this.bgColor === "transparent") {
- this.bgColor = $$7(window.getSelection().focusNode.parentNode).css('background-color').toString();
- }
- this.font = document.queryCommandValue("FontName").replace(/"/g, '');
- if (this.font.split(",").length > 1) {
- this.font = this.font.split(",")[0];
- }
- this.color = document.queryCommandValue("foreColor");
- this._backFormattingService.changeFormatBold(this.bold);
- this._backFormattingService.changeFormatUnderline(this.underline);
- this._backFormattingService.changeFormatItalic(this.italic);
- this._backFormattingService.changeFormatColor(this.color);
- this._backFormattingService.changeFormatBgColor(this.bgColor);
- this._backFormattingService.changeFormatFontSize(this.reportFontSize());
- this._backFormattingService.changeFormatFont(this.font);
- this._backFormattingService.changeFormatStrikeout(this.strikeout);
- this._backFormattingService.changeFormatAlign(this.align);
- this._backFormattingService.changeFormatList(this.list);
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.checkJustify = /**
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var align = "";
- align = document.queryCommandState("justifyCenter") ? "center" : align;
- align = document.queryCommandState("justifyFull") ? "full" : align;
- align = document.queryCommandState("justifyLeft") ? "left" : align;
- align = document.queryCommandState("justifyRight") ? "right" : align;
- return align;
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.checkList = /**
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var list = "";
- list = document.queryCommandState("insertUnorderedList") ? "unordered" : list;
- list = document.queryCommandState("insertOrderedList") ? "ordered" : list;
- return list;
- };
- /**
- * @return {?}
- */
- FormattingDirective.prototype.reportFontSize = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var containerEl;
- /** @type {?} */
- var sel;
- if (window.getSelection) {
- sel = window.getSelection();
- if (sel.rangeCount) {
- containerEl = sel.getRangeAt(0).commonAncestorContainer;
- // Make sure we have an element rather than a text node
- if (containerEl.nodeType === 3) {
- containerEl = containerEl.parentNode;
- }
- }
- }
- else if ((sel = document.getSelection()) && sel.type !== "Control") {
- containerEl = sel.createRange().parentElement();
- }
- if (containerEl) {
- return parseInt(this.getComputedStyleProperty(containerEl, "fontSize").replace("px", ""), 10);
- }
- };
- /**
- * @param {?} el
- * @param {?} propName
- * @return {?}
- */
- FormattingDirective.prototype.getComputedStyleProperty = /**
- * @param {?} el
- * @param {?} propName
- * @return {?}
- */
- function (el, propName) {
- if (window.getComputedStyle) {
- return window.getComputedStyle(el, null)[propName];
- }
- else if (el.currentStyle) {
- return el.currentStyle[propName];
- }
- };
- /**
- * @return {?}
- */
- FormattingDirective.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- this._formattingService.undo.subscribe((/**
- * @return {?}
- */
- function () {
- _this.toggleUndo();
- }));
- this._formattingService.redo.subscribe((/**
- * @return {?}
- */
- function () {
- _this.toggleRedo();
- }));
- this._formattingService.formatBoldChange.subscribe((/**
- * @param {?} bold
- * @return {?}
- */
- function (bold) {
- _this.bold = bold;
- _this.toggleBold();
- }));
- this._formattingService.formatUnderlineChange.subscribe((/**
- * @param {?} underline
- * @return {?}
- */
- function (underline) {
- _this.underline = underline;
- _this.toggleUnderline();
- }));
- this._formattingService.formatItalicChange.subscribe((/**
- * @param {?} italic
- * @return {?}
- */
- function (italic) {
- _this.italic = italic;
- _this.toggleItalic();
- }));
- this._formattingService.formatColorChange.subscribe(((/**
- * @param {?} color
- * @return {?}
- */
- function (color) {
- _this.color = color;
- _this.setColor(color);
- })));
- this._formattingService.formatBgColorChange.subscribe(((/**
- * @param {?} bgcolor
- * @return {?}
- */
- function (bgcolor) {
- _this.bgColor = bgcolor;
- _this.setBgColor(bgcolor);
- })));
- this._formattingService.formatFontSizeChange.subscribe(((/**
- * @param {?} fontSize
- * @return {?}
- */
- function (fontSize) {
- _this.setFontSize(fontSize);
- })));
- this._formattingService.formatFontChange.subscribe(((/**
- * @param {?} font
- * @return {?}
- */
- function (font) {
- _this.font = font;
- _this.setFont(font);
- })));
- this._formattingService.formatStrikeoutChange.subscribe((/**
- * @param {?} strikeout
- * @return {?}
- */
- function (strikeout) {
- _this.strikeout = strikeout;
- _this.toggleStrikeout();
- }));
- this._formattingService.formatAlignChange.subscribe((/**
- * @param {?} align
- * @return {?}
- */
- function (align) {
- _this.align = align;
- _this.toggleAlign(_this.align);
- }));
- this._formattingService.formatListChange.subscribe((/**
- * @param {?} list
- * @return {?}
- */
- function (list) {
- /** @type {?} */
- var remove = _this.list === list;
- _this.list = list;
- _this.toggleList(_this.list, remove);
- }));
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleBold = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("bold");
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleUnderline = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("underline");
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleItalic = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("italic");
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} bgColor
- * @return {?}
- */
- FormattingDirective.prototype.setBgColor = /**
- * @private
- * @param {?} bgColor
- * @return {?}
- */
- function (bgColor) {
- document.execCommand("backColor", false, bgColor);
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} color
- * @return {?}
- */
- FormattingDirective.prototype.setColor = /**
- * @private
- * @param {?} color
- * @return {?}
- */
- function (color) {
- document.execCommand("foreColor", false, color);
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} fontSize
- * @return {?}
- */
- FormattingDirective.prototype.setFontSize = /**
- * @private
- * @param {?} fontSize
- * @return {?}
- */
- function (fontSize) {
- if (document.getSelection().toString()) {
- /** @type {?} */
- var spanString = "" +
- document.getSelection() + " ";
- if (this.bold) {
- spanString = "" + spanString + " ";
- }
- if (this.italic) {
- spanString = "" + spanString + " ";
- }
- if (this.underline) {
- spanString = "" + spanString + " ";
- }
- if (this.strikeout) {
- spanString = "" + spanString + " ";
- }
- document.execCommand('insertHTML', false, spanString);
- }
- else {
- document.execCommand("fontsize", false, "7");
- }
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleUndo = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("undo");
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleRedo = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("redo");
- };
- /**
- * @private
- * @param {?} font
- * @return {?}
- */
- FormattingDirective.prototype.setFont = /**
- * @private
- * @param {?} font
- * @return {?}
- */
- function (font) {
- document.execCommand("fontName", false, font);
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @return {?}
- */
- FormattingDirective.prototype.toggleStrikeout = /**
- * @private
- * @return {?}
- */
- function () {
- document.execCommand("strikeThrough");
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} align
- * @return {?}
- */
- FormattingDirective.prototype.toggleAlign = /**
- * @private
- * @param {?} align
- * @return {?}
- */
- function (align) {
- if (this.isIE) {
- this.toggleAlignIE(align);
- return;
- }
- document.execCommand("styleWithCSS", false, 'true');
- switch (align) {
- case 'center':
- document.execCommand('justifyCenter');
- break;
- case 'full':
- document.execCommand('justifyFull');
- break;
- case 'left':
- document.execCommand('justifyLeft');
- break;
- case 'right':
- document.execCommand('justifyRight');
- break;
- }
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} align
- * @return {?}
- */
- FormattingDirective.prototype.toggleAlignIE = /**
- * @private
- * @param {?} align
- * @return {?}
- */
- function (align) {
- this._selectionService.restoreSelection();
- this._selectionService.captureSelection();
- /** @type {?} */
- var selection = window.getSelection().focusNode.parentNode.parentNode;
- if (align === "full") {
- align = "justify";
- }
- $$7(selection).css("text-align", align);
- this._selectionService.refreshSelection();
- };
- /**
- * @private
- * @param {?} list
- * @param {?} remove
- * @return {?}
- */
- FormattingDirective.prototype.toggleList = /**
- * @private
- * @param {?} list
- * @param {?} remove
- * @return {?}
- */
- function (list, remove) {
- switch (list) {
- case 'unordered':
- document.execCommand('insertUnorderedList', remove);
- break;
- case 'ordered':
- document.execCommand('insertOrderedList', remove);
- break;
- }
- this._selectionService.refreshSelection();
- };
- FormattingDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdFormatting]'
- },] }
- ];
- /** @nocollapse */
- FormattingDirective.ctorParameters = function () { return [
- { type: FormattingService },
- { type: BackFormattingService },
- { type: SelectionService }
- ]; };
- FormattingDirective.propDecorators = {
- mouseup: [{ type: core.HostListener, args: ['mouseup',] }]
- };
- return FormattingDirective;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.bold;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.italic;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.underline;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.color;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.bgColor;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.font;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.strikeout;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.align;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.list;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype.isIE;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype._formattingService;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype._backFormattingService;
- /**
- * @type {?}
- * @private
- */
- FormattingDirective.prototype._selectionService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$7 = jquery;
+ var FormattingDirective = /** @class */ (function () {
+ function FormattingDirective(_formattingService, _backFormattingService, _selectionService) {
+ this._formattingService = _formattingService;
+ this._backFormattingService = _backFormattingService;
+ this._selectionService = _selectionService;
+ this.bold = false;
+ this.italic = false;
+ this.underline = false;
+ this.strikeout = false;
+ this.isIE = false;
+ this.isIE = /*@cc_on!@*/ false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
+ }
+ /**
+ * @return {?}
+ */
+ FormattingDirective.prototype.mouseup = /**
+ * @return {?}
+ */
+ function () {
+ this.bold = document.queryCommandState("bold");
+ this.strikeout = document.queryCommandState("strikeThrough");
+ this.italic = document.queryCommandState("italic");
+ this.bgColor = document.queryCommandValue("backColor");
+ this.underline = document.queryCommandState("underline");
+ this.align = this.checkJustify();
+ this.list = this.checkList();
+ //fix required by FireFox to get correct background color
+ if (this.bgColor === "transparent") {
+ this.bgColor = $$7(window.getSelection().focusNode.parentNode).css('background-color').toString();
+ }
+ this.font = document.queryCommandValue("FontName").replace(/"/g, '');
+ if (this.font.split(",").length > 1) {
+ this.font = this.font.split(",")[0];
+ }
+ this.color = document.queryCommandValue("foreColor");
+ this._backFormattingService.changeFormatBold(this.bold);
+ this._backFormattingService.changeFormatUnderline(this.underline);
+ this._backFormattingService.changeFormatItalic(this.italic);
+ this._backFormattingService.changeFormatColor(this.color);
+ this._backFormattingService.changeFormatBgColor(this.bgColor);
+ this._backFormattingService.changeFormatFontSize(this.reportFontSize());
+ this._backFormattingService.changeFormatFont(this.font);
+ this._backFormattingService.changeFormatStrikeout(this.strikeout);
+ this._backFormattingService.changeFormatAlign(this.align);
+ this._backFormattingService.changeFormatList(this.list);
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.checkJustify = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var align = "";
+ align = document.queryCommandState("justifyCenter") ? "center" : align;
+ align = document.queryCommandState("justifyFull") ? "full" : align;
+ align = document.queryCommandState("justifyLeft") ? "left" : align;
+ align = document.queryCommandState("justifyRight") ? "right" : align;
+ return align;
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.checkList = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var list = "";
+ list = document.queryCommandState("insertUnorderedList") ? "unordered" : list;
+ list = document.queryCommandState("insertOrderedList") ? "ordered" : list;
+ return list;
+ };
+ /**
+ * @return {?}
+ */
+ FormattingDirective.prototype.reportFontSize = /**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var containerEl;
+ /** @type {?} */
+ var sel;
+ if (window.getSelection) {
+ sel = window.getSelection();
+ if (sel.rangeCount) {
+ containerEl = sel.getRangeAt(0).commonAncestorContainer;
+ // Make sure we have an element rather than a text node
+ if (containerEl.nodeType === 3) {
+ containerEl = containerEl.parentNode;
+ }
+ }
+ }
+ else if ((sel = document.getSelection()) && sel.type !== "Control") {
+ containerEl = sel.createRange().parentElement();
+ }
+ if (containerEl) {
+ return parseInt(this.getComputedStyleProperty(containerEl, "fontSize").replace("px", ""), 10);
+ }
+ };
+ /**
+ * @param {?} el
+ * @param {?} propName
+ * @return {?}
+ */
+ FormattingDirective.prototype.getComputedStyleProperty = /**
+ * @param {?} el
+ * @param {?} propName
+ * @return {?}
+ */
+ function (el, propName) {
+ if (window.getComputedStyle) {
+ return window.getComputedStyle(el, null)[propName];
+ }
+ else if (el.currentStyle) {
+ return el.currentStyle[propName];
+ }
+ };
+ /**
+ * @return {?}
+ */
+ FormattingDirective.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ this._formattingService.undo.subscribe((/**
+ * @return {?}
+ */
+ function () {
+ _this.toggleUndo();
+ }));
+ this._formattingService.redo.subscribe((/**
+ * @return {?}
+ */
+ function () {
+ _this.toggleRedo();
+ }));
+ this._formattingService.formatBoldChange.subscribe((/**
+ * @param {?} bold
+ * @return {?}
+ */
+ function (bold) {
+ _this.bold = bold;
+ _this.toggleBold();
+ }));
+ this._formattingService.formatUnderlineChange.subscribe((/**
+ * @param {?} underline
+ * @return {?}
+ */
+ function (underline) {
+ _this.underline = underline;
+ _this.toggleUnderline();
+ }));
+ this._formattingService.formatItalicChange.subscribe((/**
+ * @param {?} italic
+ * @return {?}
+ */
+ function (italic) {
+ _this.italic = italic;
+ _this.toggleItalic();
+ }));
+ this._formattingService.formatColorChange.subscribe(((/**
+ * @param {?} color
+ * @return {?}
+ */
+ function (color) {
+ _this.color = color;
+ _this.setColor(color);
+ })));
+ this._formattingService.formatBgColorChange.subscribe(((/**
+ * @param {?} bgcolor
+ * @return {?}
+ */
+ function (bgcolor) {
+ _this.bgColor = bgcolor;
+ _this.setBgColor(bgcolor);
+ })));
+ this._formattingService.formatFontSizeChange.subscribe(((/**
+ * @param {?} fontSize
+ * @return {?}
+ */
+ function (fontSize) {
+ _this.setFontSize(fontSize);
+ })));
+ this._formattingService.formatFontChange.subscribe(((/**
+ * @param {?} font
+ * @return {?}
+ */
+ function (font) {
+ _this.font = font;
+ _this.setFont(font);
+ })));
+ this._formattingService.formatStrikeoutChange.subscribe((/**
+ * @param {?} strikeout
+ * @return {?}
+ */
+ function (strikeout) {
+ _this.strikeout = strikeout;
+ _this.toggleStrikeout();
+ }));
+ this._formattingService.formatAlignChange.subscribe((/**
+ * @param {?} align
+ * @return {?}
+ */
+ function (align) {
+ _this.align = align;
+ _this.toggleAlign(_this.align);
+ }));
+ this._formattingService.formatListChange.subscribe((/**
+ * @param {?} list
+ * @return {?}
+ */
+ function (list) {
+ /** @type {?} */
+ var remove = _this.list === list;
+ _this.list = list;
+ _this.toggleList(_this.list, remove);
+ }));
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleBold = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("bold");
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleUnderline = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("underline");
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleItalic = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("italic");
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} bgColor
+ * @return {?}
+ */
+ FormattingDirective.prototype.setBgColor = /**
+ * @private
+ * @param {?} bgColor
+ * @return {?}
+ */
+ function (bgColor) {
+ document.execCommand("backColor", false, bgColor);
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} color
+ * @return {?}
+ */
+ FormattingDirective.prototype.setColor = /**
+ * @private
+ * @param {?} color
+ * @return {?}
+ */
+ function (color) {
+ document.execCommand("foreColor", false, color);
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} fontSize
+ * @return {?}
+ */
+ FormattingDirective.prototype.setFontSize = /**
+ * @private
+ * @param {?} fontSize
+ * @return {?}
+ */
+ function (fontSize) {
+ if (document.getSelection().toString()) {
+ /** @type {?} */
+ var spanString = "" +
+ document.getSelection() + " ";
+ if (this.bold) {
+ spanString = "" + spanString + " ";
+ }
+ if (this.italic) {
+ spanString = "" + spanString + " ";
+ }
+ if (this.underline) {
+ spanString = "" + spanString + " ";
+ }
+ if (this.strikeout) {
+ spanString = "" + spanString + " ";
+ }
+ document.execCommand('insertHTML', false, spanString);
+ }
+ else {
+ document.execCommand("fontsize", false, "7");
+ }
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleUndo = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("undo");
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleRedo = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("redo");
+ };
+ /**
+ * @private
+ * @param {?} font
+ * @return {?}
+ */
+ FormattingDirective.prototype.setFont = /**
+ * @private
+ * @param {?} font
+ * @return {?}
+ */
+ function (font) {
+ document.execCommand("fontName", false, font);
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleStrikeout = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ document.execCommand("strikeThrough");
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} align
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleAlign = /**
+ * @private
+ * @param {?} align
+ * @return {?}
+ */
+ function (align) {
+ if (this.isIE) {
+ this.toggleAlignIE(align);
+ return;
+ }
+ document.execCommand("styleWithCSS", false, 'true');
+ switch (align) {
+ case 'center':
+ document.execCommand('justifyCenter');
+ break;
+ case 'full':
+ document.execCommand('justifyFull');
+ break;
+ case 'left':
+ document.execCommand('justifyLeft');
+ break;
+ case 'right':
+ document.execCommand('justifyRight');
+ break;
+ }
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} align
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleAlignIE = /**
+ * @private
+ * @param {?} align
+ * @return {?}
+ */
+ function (align) {
+ this._selectionService.restoreSelection();
+ this._selectionService.captureSelection();
+ /** @type {?} */
+ var selection = window.getSelection().focusNode.parentNode.parentNode;
+ if (align === "full") {
+ align = "justify";
+ }
+ $$7(selection).css("text-align", align);
+ this._selectionService.refreshSelection();
+ };
+ /**
+ * @private
+ * @param {?} list
+ * @param {?} remove
+ * @return {?}
+ */
+ FormattingDirective.prototype.toggleList = /**
+ * @private
+ * @param {?} list
+ * @param {?} remove
+ * @return {?}
+ */
+ function (list, remove) {
+ switch (list) {
+ case 'unordered':
+ document.execCommand('insertUnorderedList', remove);
+ break;
+ case 'ordered':
+ document.execCommand('insertOrderedList', remove);
+ break;
+ }
+ this._selectionService.refreshSelection();
+ };
+ FormattingDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdFormatting]'
+ },] }
+ ];
+ /** @nocollapse */
+ FormattingDirective.ctorParameters = function () { return [
+ { type: FormattingService },
+ { type: BackFormattingService },
+ { type: SelectionService }
+ ]; };
+ FormattingDirective.propDecorators = {
+ mouseup: [{ type: core.HostListener, args: ['mouseup',] }]
+ };
+ return FormattingDirective;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.bold;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.italic;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.underline;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.color;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.bgColor;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.font;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.strikeout;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.align;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.list;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype.isIE;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype._formattingService;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype._backFormattingService;
+ /**
+ * @type {?}
+ * @private
+ */
+ FormattingDirective.prototype._selectionService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var SuccessModalComponent = /** @class */ (function () {
- function SuccessModalComponent() {
- }
- /**
- * @return {?}
- */
- SuccessModalComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- SuccessModalComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-success-modal',
- template: "\n\n \n",
- styles: [".check_mark{margin:47px auto}.sa-icon{width:80px;height:80px;border:4px solid gray;border-radius:50%;padding:0;position:relative;box-sizing:content-box}#gd-modal-success{display:-webkit-box;display:flex;overflow:hidden;width:469px;height:183px}.sa-icon.sa-success{border-color:#4caf50;-webkit-transform:scale(1.18);transform:scale(1.18)}.sa-icon.sa-success::after,.sa-icon.sa-success::before{content:'';position:absolute;width:60px;height:120px;background:#fff}.sa-icon.sa-success::before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.sa-icon.sa-success::after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px}.sa-icon.sa-success .sa-placeholder{width:80px;height:80px;border:4px solid rgba(76,175,80,.5);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.sa-icon.sa-success .sa-fix{width:5px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sa-icon.sa-success.animate::after{-webkit-animation:4.25s ease-in rotatePlaceholder;animation:4.25s ease-in rotatePlaceholder}.animateSuccessTip{-webkit-animation:.75s animateSuccessTip;animation:.75s animateSuccessTip}.animateSuccessLong{-webkit-animation:.75s animateSuccessLong;animation:.75s animateSuccessLong}@-webkit-keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@-webkit-keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}.sa-icon.sa-success .sa-line{height:5px;background-color:#4caf50;display:block;border-radius:2px;position:absolute;z-index:2}.sa-icon.sa-success .sa-line.sa-tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sa-icon.sa-success .sa-line.sa-long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}@-webkit-keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}@media (max-width:1037px){#gd-modal-success{left:50%;top:50%;position:relative;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}}"]
- }] }
- ];
- /** @nocollapse */
- SuccessModalComponent.ctorParameters = function () { return []; };
- return SuccessModalComponent;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var SuccessModalComponent = /** @class */ (function () {
+ function SuccessModalComponent() {
+ }
+ /**
+ * @return {?}
+ */
+ SuccessModalComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ SuccessModalComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-success-modal',
+ template: "\r\n\r\n \r\n",
+ styles: [".check_mark{margin:47px auto}.sa-icon{width:80px;height:80px;border:4px solid gray;border-radius:50%;padding:0;position:relative;box-sizing:content-box}#gd-modal-success{display:flex;overflow:hidden;width:469px;height:183px}.sa-icon.sa-success{border-color:#4caf50;transform:scale(1.18)}.sa-icon.sa-success::after,.sa-icon.sa-success::before{content:'';position:absolute;width:60px;height:120px;background:#fff}.sa-icon.sa-success::before{border-radius:120px 0 0 120px;top:-7px;left:-33px;transform:rotate(-45deg);transform-origin:60px 60px}.sa-icon.sa-success::after{border-radius:0 120px 120px 0;top:-11px;left:30px;transform:rotate(-45deg);transform-origin:0 60px}.sa-icon.sa-success .sa-placeholder{width:80px;height:80px;border:4px solid rgba(76,175,80,.5);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.sa-icon.sa-success .sa-fix{width:5px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;transform:rotate(-45deg)}.sa-icon.sa-success.animate::after{-webkit-animation:4.25s ease-in rotatePlaceholder;animation:4.25s ease-in rotatePlaceholder}.animateSuccessTip{-webkit-animation:.75s animateSuccessTip;animation:.75s animateSuccessTip}.animateSuccessLong{-webkit-animation:.75s animateSuccessLong;animation:.75s animateSuccessLong}@-webkit-keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@-webkit-keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}.sa-icon.sa-success .sa-line{height:5px;background-color:#4caf50;display:block;border-radius:2px;position:absolute;z-index:2}.sa-icon.sa-success .sa-line.sa-tip{width:25px;left:14px;top:46px;transform:rotate(45deg)}.sa-icon.sa-success .sa-line.sa-long{width:47px;right:8px;top:38px;transform:rotate(-45deg)}@-webkit-keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}@media (max-width:1037px){#gd-modal-success{left:50%;top:50%;position:relative;transform:translate(-50%,-50%)}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ SuccessModalComponent.ctorParameters = function () { return []; };
+ return SuccessModalComponent;
}());
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var EditHtmlService = /** @class */ (function () {
- function EditHtmlService() {
- this._observer = new rxjs.Subject();
- this._htmlContent = this._observer.asObservable();
- }
- Object.defineProperty(EditHtmlService.prototype, "observer", {
- get: /**
- * @return {?}
- */
- function () {
- return this._observer;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(EditHtmlService.prototype, "htmlContent", {
- get: /**
- * @return {?}
- */
- function () {
- return this._htmlContent;
- },
- enumerable: true,
- configurable: true
- });
- EditHtmlService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- EditHtmlService.ctorParameters = function () { return []; };
- /** @nocollapse */ EditHtmlService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function EditHtmlService_Factory() { return new EditHtmlService(); }, token: EditHtmlService, providedIn: "root" });
- return EditHtmlService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- EditHtmlService.prototype._observer;
- /**
- * @type {?}
- * @private
- */
- EditHtmlService.prototype._htmlContent;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var EditHtmlService = /** @class */ (function () {
+ function EditHtmlService() {
+ this._observer = new rxjs.Subject();
+ this._htmlContent = this._observer.asObservable();
+ }
+ Object.defineProperty(EditHtmlService.prototype, "observer", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._observer;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(EditHtmlService.prototype, "htmlContent", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this._htmlContent;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ EditHtmlService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ EditHtmlService.ctorParameters = function () { return []; };
+ /** @nocollapse */ EditHtmlService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function EditHtmlService_Factory() { return new EditHtmlService(); }, token: EditHtmlService, providedIn: "root" });
+ return EditHtmlService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ EditHtmlService.prototype._observer;
+ /**
+ * @type {?}
+ * @private
+ */
+ EditHtmlService.prototype._htmlContent;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var EditorDirective = /** @class */ (function () {
- function EditorDirective(_selectionService, _htmlService) {
- this._selectionService = _selectionService;
- this._htmlService = _htmlService;
- this.isIE = false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
- }
- /**
- * @param {?} event
- * @return {?}
- */
- EditorDirective.prototype.onInput = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.text = event.target;
- if (this.isIE) {
- if (this.text.innerHTML) {
- /** @type {?} */
- var html = this.text.innerHTML.toString();
- this._htmlService.observer.next(html);
- }
- }
- };
- /**
- * @param {?} event
- * @return {?}
- */
- EditorDirective.prototype.onMouseleave = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this._selectionService.captureSelection();
- // this code is required to fix IE11 issue - it doesn't trigger blur event, since that we need to save updated HTML here
- if (this.isIE) {
- this._htmlService.observer.next(event.target.innerHTML.toString());
- }
- };
- /**
- * @param {?} event
- * @return {?}
- */
- EditorDirective.prototype.onBlur = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event.preventDefault();
- this._selectionService.restoreSelection();
- if (this.text.innerHTML) {
- /** @type {?} */
- var html = this.text.innerHTML.toString();
- this._htmlService.observer.next(html);
- }
- else {
- this._htmlService.observer.next(event.target.innerHTML.toString());
- }
- };
- EditorDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdEditor]'
- },] }
- ];
- /** @nocollapse */
- EditorDirective.ctorParameters = function () { return [
- { type: SelectionService },
- { type: EditHtmlService }
- ]; };
- EditorDirective.propDecorators = {
- text: [{ type: core.Input }],
- onInput: [{ type: core.HostListener, args: ['keyup', ['$event'],] }],
- onMouseleave: [{ type: core.HostListener, args: ['mouseleave', ['$event'],] }],
- onBlur: [{ type: core.HostListener, args: ['blur', ['$event'],] }]
- };
- return EditorDirective;
- }());
- if (false) {
- /** @type {?} */
- EditorDirective.prototype.text;
- /**
- * @type {?}
- * @private
- */
- EditorDirective.prototype.isIE;
- /**
- * @type {?}
- * @private
- */
- EditorDirective.prototype._selectionService;
- /**
- * @type {?}
- * @private
- */
- EditorDirective.prototype._htmlService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var EditorDirective = /** @class */ (function () {
+ function EditorDirective(_selectionService, _htmlService) {
+ this._selectionService = _selectionService;
+ this._htmlService = _htmlService;
+ this.isIE = false || !!/(MSIE|Trident\/|Edge\/)/i.test(navigator.userAgent);
+ }
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ EditorDirective.prototype.onInput = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.text = event.target;
+ if (this.isIE) {
+ if (this.text.innerHTML) {
+ /** @type {?} */
+ var html = this.text.innerHTML.toString();
+ this._htmlService.observer.next(html);
+ }
+ }
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ EditorDirective.prototype.onMouseleave = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this._selectionService.captureSelection();
+ // this code is required to fix IE11 issue - it doesn't trigger blur event, since that we need to save updated HTML here
+ if (this.isIE) {
+ this._htmlService.observer.next(event.target.innerHTML.toString());
+ }
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ EditorDirective.prototype.onBlur = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event.preventDefault();
+ this._selectionService.restoreSelection();
+ if (this.text.innerHTML) {
+ /** @type {?} */
+ var html = this.text.innerHTML.toString();
+ this._htmlService.observer.next(html);
+ }
+ else {
+ this._htmlService.observer.next(event.target.innerHTML.toString());
+ }
+ };
+ EditorDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdEditor]'
+ },] }
+ ];
+ /** @nocollapse */
+ EditorDirective.ctorParameters = function () { return [
+ { type: SelectionService },
+ { type: EditHtmlService }
+ ]; };
+ EditorDirective.propDecorators = {
+ text: [{ type: core.Input }],
+ onInput: [{ type: core.HostListener, args: ['keyup', ['$event'],] }],
+ onMouseleave: [{ type: core.HostListener, args: ['mouseleave', ['$event'],] }],
+ onBlur: [{ type: core.HostListener, args: ['blur', ['$event'],] }]
+ };
+ return EditorDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ EditorDirective.prototype.text;
+ /**
+ * @type {?}
+ * @private
+ */
+ EditorDirective.prototype.isIE;
+ /**
+ * @type {?}
+ * @private
+ */
+ EditorDirective.prototype._selectionService;
+ /**
+ * @type {?}
+ * @private
+ */
+ EditorDirective.prototype._htmlService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LoadingMaskService = /** @class */ (function () {
- function LoadingMaskService() {
- this.onLoadingChanged = new core.EventEmitter();
- this.stopList = [];
- this.requests = [];
- this.stopList.push(Api.SAVE_TEXT);
- this.stopList.push(Api.SAVE_OPTICAL_CODE);
- this.stopList.push(Api.LOAD_DOCUMENT_PAGE);
- this.stopList.push(Api.LOAD_THUMBNAILS);
- this.stopList.push(Api.GET_FILE_STATUS);
- this.stopList.push(Api.LOAD_PRINT);
- }
- /**
- * @param {?} req
- * @return {?}
- */
- LoadingMaskService.prototype.onRequestStart = /**
- * @param {?} req
- * @return {?}
- */
- function (req) {
- /** @type {?} */
- var stop = this.stopList.find((/**
- * @param {?} x
- * @return {?}
- */
- function (x) { return req.url.includes(x); }));
- if (!stop) {
- this.requests.push(req);
- this.notify();
- }
- };
- /**
- * @param {?} req
- * @return {?}
- */
- LoadingMaskService.prototype.onRequestFinish = /**
- * @param {?} req
- * @return {?}
- */
- function (req) {
- /** @type {?} */
- var index = this.requests.indexOf(req);
- if (index !== -1) {
- this.requests.splice(index, 1);
- }
- this.notify();
- };
- /**
- * @private
- * @return {?}
- */
- LoadingMaskService.prototype.notify = /**
- * @private
- * @return {?}
- */
- function () {
- this.onLoadingChanged.emit(this.requests.length !== 0);
- };
- LoadingMaskService.decorators = [
- { type: core.Injectable }
- ];
- /** @nocollapse */
- LoadingMaskService.ctorParameters = function () { return []; };
- return LoadingMaskService;
- }());
- if (false) {
- /** @type {?} */
- LoadingMaskService.prototype.onLoadingChanged;
- /**
- * @type {?}
- * @private
- */
- LoadingMaskService.prototype.stopList;
- /**
- * @type {?}
- * @private
- */
- LoadingMaskService.prototype.requests;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var LoadingMaskService = /** @class */ (function () {
+ function LoadingMaskService() {
+ this.onLoadingChanged = new core.EventEmitter();
+ this.stopList = [];
+ this.requests = [];
+ this.stopList.push(Api.SAVE_TEXT);
+ this.stopList.push(Api.SAVE_OPTICAL_CODE);
+ this.stopList.push(Api.LOAD_DOCUMENT_PAGE);
+ this.stopList.push(Api.LOAD_THUMBNAILS);
+ this.stopList.push(Api.GET_FILE_STATUS);
+ this.stopList.push(Api.LOAD_PRINT);
+ }
+ /**
+ * @param {?} req
+ * @return {?}
+ */
+ LoadingMaskService.prototype.onRequestStart = /**
+ * @param {?} req
+ * @return {?}
+ */
+ function (req) {
+ /** @type {?} */
+ var stop = this.stopList.find((/**
+ * @param {?} x
+ * @return {?}
+ */
+ function (x) { return req.url.includes(x); }));
+ if (!stop) {
+ this.requests.push(req);
+ this.notify();
+ }
+ };
+ /**
+ * @param {?} req
+ * @return {?}
+ */
+ LoadingMaskService.prototype.onRequestFinish = /**
+ * @param {?} req
+ * @return {?}
+ */
+ function (req) {
+ /** @type {?} */
+ var index = this.requests.indexOf(req);
+ if (index !== -1) {
+ this.requests.splice(index, 1);
+ }
+ this.notify();
+ };
+ /**
+ * @private
+ * @return {?}
+ */
+ LoadingMaskService.prototype.notify = /**
+ * @private
+ * @return {?}
+ */
+ function () {
+ this.onLoadingChanged.emit(this.requests.length !== 0);
+ };
+ LoadingMaskService.decorators = [
+ { type: core.Injectable }
+ ];
+ /** @nocollapse */
+ LoadingMaskService.ctorParameters = function () { return []; };
+ return LoadingMaskService;
+ }());
+ if (false) {
+ /** @type {?} */
+ LoadingMaskService.prototype.onLoadingChanged;
+ /**
+ * @type {?}
+ * @private
+ */
+ LoadingMaskService.prototype.stopList;
+ /**
+ * @type {?}
+ * @private
+ */
+ LoadingMaskService.prototype.requests;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LoadingMaskComponent = /** @class */ (function () {
- function LoadingMaskComponent(_loadingMaskService) {
- this._loadingMaskService = _loadingMaskService;
- this.loadingMask = false;
- }
- /**
- * @return {?}
- */
- LoadingMaskComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @return {?}
- */
- LoadingMaskComponent.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- this._loadingMaskService
- .onLoadingChanged
- .subscribe((/**
- * @param {?} loading
- * @return {?}
- */
- function (loading) { return _this.loadingMask = loading; }));
- };
- LoadingMaskComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-loading-mask',
- template: "\n
\n Loading... Please wait.\n
\n
\n",
- styles: [".loading-wrapper{background:rgba(0,0,0,.5);width:100%;height:100%;font-size:14px;color:#fff;position:fixed;top:0;left:0;z-index:99999}.loading-message{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}"]
- }] }
- ];
- /** @nocollapse */
- LoadingMaskComponent.ctorParameters = function () { return [
- { type: LoadingMaskService }
- ]; };
- LoadingMaskComponent.propDecorators = {
- loadingMask: [{ type: core.Input }]
- };
- return LoadingMaskComponent;
- }());
- if (false) {
- /** @type {?} */
- LoadingMaskComponent.prototype.loadingMask;
- /**
- * @type {?}
- * @private
- */
- LoadingMaskComponent.prototype._loadingMaskService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var LoadingMaskComponent = /** @class */ (function () {
+ function LoadingMaskComponent(_loadingMaskService) {
+ this._loadingMaskService = _loadingMaskService;
+ this.loadingMask = false;
+ }
+ /**
+ * @return {?}
+ */
+ LoadingMaskComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @return {?}
+ */
+ LoadingMaskComponent.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ this._loadingMaskService
+ .onLoadingChanged
+ .subscribe((/**
+ * @param {?} loading
+ * @return {?}
+ */
+ function (loading) { return _this.loadingMask = loading; }));
+ };
+ LoadingMaskComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-loading-mask',
+ template: "\r\n
\r\n Loading... Please wait.\r\n
\r\n
\r\n",
+ styles: [".loading-wrapper{background:rgba(0,0,0,.5);width:100%;height:100%;font-size:14px;color:#fff;position:fixed;top:0;left:0;z-index:99999}.loading-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}"]
+ }] }
+ ];
+ /** @nocollapse */
+ LoadingMaskComponent.ctorParameters = function () { return [
+ { type: LoadingMaskService }
+ ]; };
+ LoadingMaskComponent.propDecorators = {
+ loadingMask: [{ type: core.Input }]
+ };
+ return LoadingMaskComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ LoadingMaskComponent.prototype.loadingMask;
+ /**
+ * @type {?}
+ * @private
+ */
+ LoadingMaskComponent.prototype._loadingMaskService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LoadingMaskInterceptorService = /** @class */ (function () {
- function LoadingMaskInterceptorService(_loadingMaskService) {
- this._loadingMaskService = _loadingMaskService;
- }
- /**
- * @param {?} req
- * @param {?} next
- * @return {?}
- */
- LoadingMaskInterceptorService.prototype.intercept = /**
- * @param {?} req
- * @param {?} next
- * @return {?}
- */
- function (req, next) {
- var _this = this;
- this._loadingMaskService.onRequestStart(req);
- /** @type {?} */
- var callback = (/**
- * @return {?}
- */
- function () { return _this._loadingMaskService.onRequestFinish(req); });
- return next.handle(req).pipe(operators.finalize(callback));
- };
- LoadingMaskInterceptorService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- LoadingMaskInterceptorService.ctorParameters = function () { return [
- { type: LoadingMaskService }
- ]; };
- /** @nocollapse */ LoadingMaskInterceptorService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LoadingMaskInterceptorService_Factory() { return new LoadingMaskInterceptorService(core.ɵɵinject(LoadingMaskService)); }, token: LoadingMaskInterceptorService, providedIn: "root" });
- return LoadingMaskInterceptorService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- LoadingMaskInterceptorService.prototype._loadingMaskService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var LoadingMaskInterceptorService = /** @class */ (function () {
+ function LoadingMaskInterceptorService(_loadingMaskService) {
+ this._loadingMaskService = _loadingMaskService;
+ }
+ /**
+ * @param {?} req
+ * @param {?} next
+ * @return {?}
+ */
+ LoadingMaskInterceptorService.prototype.intercept = /**
+ * @param {?} req
+ * @param {?} next
+ * @return {?}
+ */
+ function (req, next) {
+ var _this = this;
+ this._loadingMaskService.onRequestStart(req);
+ /** @type {?} */
+ var callback = (/**
+ * @return {?}
+ */
+ function () { return _this._loadingMaskService.onRequestFinish(req); });
+ return next.handle(req).pipe(operators.finalize(callback));
+ };
+ LoadingMaskInterceptorService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ LoadingMaskInterceptorService.ctorParameters = function () { return [
+ { type: LoadingMaskService }
+ ]; };
+ /** @nocollapse */ LoadingMaskInterceptorService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function LoadingMaskInterceptorService_Factory() { return new LoadingMaskInterceptorService(core.ɵɵinject(LoadingMaskService)); }, token: LoadingMaskInterceptorService, providedIn: "root" });
+ return LoadingMaskInterceptorService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ LoadingMaskInterceptorService.prototype._loadingMaskService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var horizontalAlignment = {
- center: {
- right: 'auto'
- },
- left: {
- right: '100%'
- },
- right: {
- right: '-100%'
- }
- };
- /** @type {?} */
- var verticalAlignment = {
- center: {
- top: '0px',
- },
- top: {
- top: '-100%',
- right: '100%'
- },
- bottom: {
- top: 'autos'
- }
- };
- /**
- * DropDownToggleComponent
- */
- var DropDownToggleComponent = /** @class */ (function () {
- function DropDownToggleComponent(dropdown) {
- var _this = this;
- this.dropdown = dropdown;
- this.click = (/**
- * @param {?} event
- * @return {?}
- */
- function (event) { return _this.dropdown.toggle(event); });
- }
- DropDownToggleComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-drop-down-toggle',
- template: ' ',
- encapsulation: core.ViewEncapsulation.None,
- styles: [".drop-down{position:relative}.show .drop-down-items{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:justify;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
- }] }
- ];
- /** @nocollapse */
- DropDownToggleComponent.ctorParameters = function () { return [
- { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
- * @return {?}
- */
- function () { return DropDownComponent; })),] }] }
- ]; };
- DropDownToggleComponent.propDecorators = {
- click: [{ type: core.HostListener, args: ['click', ['$event'],] }]
- };
- return DropDownToggleComponent;
- }());
- if (false) {
- /** @type {?} */
- DropDownToggleComponent.prototype.click;
- /** @type {?} */
- DropDownToggleComponent.prototype.dropdown;
- }
- /**
- * DropDownItemsComponent
- */
- var DropDownItemsComponent = /** @class */ (function () {
- function DropDownItemsComponent(dropdown) {
- this.dropdown = dropdown;
- }
- Object.defineProperty(DropDownItemsComponent.prototype, "horizontalAlign", {
- get: /**
- * @return {?}
- */
- function () {
- return horizontalAlignment[this.dropdown.getPlacement().h].right;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DropDownItemsComponent.prototype, "verticalAlign", {
- get: /**
- * @return {?}
- */
- function () {
- return verticalAlignment[this.dropdown.getPlacement().v].top;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(DropDownItemsComponent.prototype, "isOpen", {
- get: /**
- * @return {?}
- */
- function () {
- return this.dropdown.open;
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @param {?} event
- * @return {?}
- */
- DropDownItemsComponent.prototype.onClickOutside = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- this.dropdown.close();
- };
- DropDownItemsComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-drop-down-items',
- template: '
',
- encapsulation: core.ViewEncapsulation.None,
- styles: [".drop-down{position:relative}.show .drop-down-items{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:justify;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
- }] }
- ];
- /** @nocollapse */
- DropDownItemsComponent.ctorParameters = function () { return [
- { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
- * @return {?}
- */
- function () { return DropDownComponent; })),] }] }
- ]; };
- return DropDownItemsComponent;
- }());
- if (false) {
- /** @type {?} */
- DropDownItemsComponent.prototype.dropdown;
- }
- /**
- * DropDownItemComponent
- */
- var DropDownItemComponent = /** @class */ (function () {
- function DropDownItemComponent(dropdown) {
- var _this = this;
- this.dropdown = dropdown;
- this.class = 'drop-down-item';
- this.selected = new core.EventEmitter();
- this.click = (/**
- * @return {?}
- */
- function () { return _this.selectEntry(); });
- }
- /**
- * @return {?}
- */
- DropDownItemComponent.prototype.selectEntry = /**
- * @return {?}
- */
- function () {
- this.selected.next();
- this.dropdown.close();
- };
- DropDownItemComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-drop-down-item',
- template: '
',
- styles: [".drop-down{position:relative}.show .drop-down-items{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:justify;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
- }] }
- ];
- /** @nocollapse */
- DropDownItemComponent.ctorParameters = function () { return [
- { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
- * @return {?}
- */
- function () { return DropDownComponent; })),] }] }
- ]; };
- DropDownItemComponent.propDecorators = {
- class: [{ type: core.HostBinding, args: ['class',] }],
- selected: [{ type: core.Output }],
- click: [{ type: core.HostListener, args: ['click',] }]
- };
- return DropDownItemComponent;
- }());
- if (false) {
- /** @type {?} */
- DropDownItemComponent.prototype.class;
- /** @type {?} */
- DropDownItemComponent.prototype.selected;
- /** @type {?} */
- DropDownItemComponent.prototype.click;
- /** @type {?} */
- DropDownItemComponent.prototype.dropdown;
- }
- /**
- * DropDownComponent
- */
- var DropDownComponent = /** @class */ (function () {
- function DropDownComponent() {
- this.placement = {
- h: "center",
- v: "bottom"
- };
- this.open = false;
- this.class = 'drop-down';
- }
- /**
- * @return {?}
- */
- DropDownComponent.prototype.close = /**
- * @return {?}
- */
- function () {
- this.open = false;
- };
- /**
- * @param {?} event
- * @return {?}
- */
- DropDownComponent.prototype.toggle = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event.stopPropagation();
- this.open = !this.open;
- document.body.click();
- };
- /**
- * @return {?}
- */
- DropDownComponent.prototype.getPlacement = /**
- * @return {?}
- */
- function () {
- return this.placement;
- };
- DropDownComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-drop-down',
- template: '
',
- encapsulation: core.ViewEncapsulation.None,
- styles: [".drop-down{position:relative}.show .drop-down-items{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:justify;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
- }] }
- ];
- DropDownComponent.propDecorators = {
- placement: [{ type: core.Input }],
- open: [{ type: core.Input }, { type: core.HostBinding, args: ['class.show',] }],
- class: [{ type: core.HostBinding, args: ['class',] }]
- };
- return DropDownComponent;
- }());
- if (false) {
- /** @type {?} */
- DropDownComponent.prototype.placement;
- /** @type {?} */
- DropDownComponent.prototype.open;
- /** @type {?} */
- DropDownComponent.prototype.class;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var horizontalAlignment = {
+ center: {
+ right: 'auto'
+ },
+ left: {
+ right: '100%'
+ },
+ right: {
+ right: '-100%'
+ }
+ };
+ /** @type {?} */
+ var verticalAlignment = {
+ center: {
+ top: '0px',
+ },
+ top: {
+ top: '-100%',
+ right: '100%'
+ },
+ bottom: {
+ top: 'autos'
+ }
+ };
+ /**
+ * DropDownToggleComponent
+ */
+ var DropDownToggleComponent = /** @class */ (function () {
+ function DropDownToggleComponent(dropdown) {
+ var _this = this;
+ this.dropdown = dropdown;
+ this.click = (/**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) { return _this.dropdown.toggle(event); });
+ }
+ DropDownToggleComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-drop-down-toggle',
+ template: ' ',
+ encapsulation: core.ViewEncapsulation.None,
+ styles: [".drop-down{position:relative}.show .drop-down-items{display:flex;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
+ }] }
+ ];
+ /** @nocollapse */
+ DropDownToggleComponent.ctorParameters = function () { return [
+ { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
+ * @return {?}
+ */
+ function () { return DropDownComponent; })),] }] }
+ ]; };
+ DropDownToggleComponent.propDecorators = {
+ click: [{ type: core.HostListener, args: ['click', ['$event'],] }]
+ };
+ return DropDownToggleComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ DropDownToggleComponent.prototype.click;
+ /** @type {?} */
+ DropDownToggleComponent.prototype.dropdown;
+ }
+ /**
+ * DropDownItemsComponent
+ */
+ var DropDownItemsComponent = /** @class */ (function () {
+ function DropDownItemsComponent(dropdown) {
+ this.dropdown = dropdown;
+ }
+ Object.defineProperty(DropDownItemsComponent.prototype, "horizontalAlign", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return horizontalAlignment[this.dropdown.getPlacement().h].right;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(DropDownItemsComponent.prototype, "verticalAlign", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return verticalAlignment[this.dropdown.getPlacement().v].top;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(DropDownItemsComponent.prototype, "isOpen", {
+ get: /**
+ * @return {?}
+ */
+ function () {
+ return this.dropdown.open;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ DropDownItemsComponent.prototype.onClickOutside = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ this.dropdown.close();
+ };
+ DropDownItemsComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-drop-down-items',
+ template: '
',
+ encapsulation: core.ViewEncapsulation.None,
+ styles: [".drop-down{position:relative}.show .drop-down-items{display:flex;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
+ }] }
+ ];
+ /** @nocollapse */
+ DropDownItemsComponent.ctorParameters = function () { return [
+ { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
+ * @return {?}
+ */
+ function () { return DropDownComponent; })),] }] }
+ ]; };
+ return DropDownItemsComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ DropDownItemsComponent.prototype.dropdown;
+ }
+ /**
+ * DropDownItemComponent
+ */
+ var DropDownItemComponent = /** @class */ (function () {
+ function DropDownItemComponent(dropdown) {
+ var _this = this;
+ this.dropdown = dropdown;
+ this.class = 'drop-down-item';
+ this.selected = new core.EventEmitter();
+ this.click = (/**
+ * @return {?}
+ */
+ function () { return _this.selectEntry(); });
+ }
+ /**
+ * @return {?}
+ */
+ DropDownItemComponent.prototype.selectEntry = /**
+ * @return {?}
+ */
+ function () {
+ this.selected.next();
+ this.dropdown.close();
+ };
+ DropDownItemComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-drop-down-item',
+ template: '
',
+ styles: [".drop-down{position:relative}.show .drop-down-items{display:flex;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
+ }] }
+ ];
+ /** @nocollapse */
+ DropDownItemComponent.ctorParameters = function () { return [
+ { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
+ * @return {?}
+ */
+ function () { return DropDownComponent; })),] }] }
+ ]; };
+ DropDownItemComponent.propDecorators = {
+ class: [{ type: core.HostBinding, args: ['class',] }],
+ selected: [{ type: core.Output }],
+ click: [{ type: core.HostListener, args: ['click',] }]
+ };
+ return DropDownItemComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ DropDownItemComponent.prototype.class;
+ /** @type {?} */
+ DropDownItemComponent.prototype.selected;
+ /** @type {?} */
+ DropDownItemComponent.prototype.click;
+ /** @type {?} */
+ DropDownItemComponent.prototype.dropdown;
+ }
+ /**
+ * DropDownComponent
+ */
+ var DropDownComponent = /** @class */ (function () {
+ function DropDownComponent() {
+ this.placement = {
+ h: "center",
+ v: "bottom"
+ };
+ this.open = false;
+ this.class = 'drop-down';
+ }
+ /**
+ * @return {?}
+ */
+ DropDownComponent.prototype.close = /**
+ * @return {?}
+ */
+ function () {
+ this.open = false;
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ DropDownComponent.prototype.toggle = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event.stopPropagation();
+ this.open = !this.open;
+ document.body.click();
+ };
+ /**
+ * @return {?}
+ */
+ DropDownComponent.prototype.getPlacement = /**
+ * @return {?}
+ */
+ function () {
+ return this.placement;
+ };
+ DropDownComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-drop-down',
+ template: '
',
+ encapsulation: core.ViewEncapsulation.None,
+ styles: [".drop-down{position:relative}.show .drop-down-items{display:flex;flex-direction:column;position:absolute;z-index:1000;min-width:100%;max-height:300px;padding:0;background-color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;overflow-y:auto;overflow-x:hidden}.show .drop-down-items .drop-down-item,.show .drop-down-items gd-drop-down-item{color:#959da5;display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;font-size:10px;line-height:28px;min-height:28px;width:100%}.show .drop-down-items .drop-down-item fa-icon svg,.show .drop-down-items gd-drop-down-item fa-icon svg{margin:0 10px;color:#959da5}.show .drop-down-items .drop-down-item .text,.show .drop-down-items gd-drop-down-item .text{width:100%;margin-right:10px}.show .drop-down-items .drop-down-item:hover,.show .drop-down-items gd-drop-down-item:hover{background-color:#25c2d4}.show .drop-down-items .drop-down-item:hover *,.show .drop-down-items gd-drop-down-item:hover *{color:#fff}.drop-down-items{display:none}"]
+ }] }
+ ];
+ DropDownComponent.propDecorators = {
+ placement: [{ type: core.Input }],
+ open: [{ type: core.Input }, { type: core.HostBinding, args: ['class.show',] }],
+ class: [{ type: core.HostBinding, args: ['class',] }]
+ };
+ return DropDownComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ DropDownComponent.prototype.placement;
+ /** @type {?} */
+ DropDownComponent.prototype.open;
+ /** @type {?} */
+ DropDownComponent.prototype.class;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var LeftSideBarComponent = /** @class */ (function () {
- function LeftSideBarComponent() {
- this.showSpinner = false;
- }
- /**
- * @return {?}
- */
- LeftSideBarComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- LeftSideBarComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-left-side-bar',
- template: "\n",
- styles: [".left-panel{border-radius:0;float:left}.gd-left-bar-fade{margin:auto;overflow:hidden;-webkit-overflow-scrolling:touch;-webkit-transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;width:100%;height:100%;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:fixed;z-index:1000}@media (max-width:1037px){.gd-left-bar-fade{top:100px;right:0}.gd-left-bar-spinner{top:20%}}"]
- }] }
- ];
- /** @nocollapse */
- LeftSideBarComponent.ctorParameters = function () { return []; };
- LeftSideBarComponent.propDecorators = {
- showSpinner: [{ type: core.Input }]
- };
- return LeftSideBarComponent;
- }());
- if (false) {
- /** @type {?} */
- LeftSideBarComponent.prototype.showSpinner;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var LeftSideBarComponent = /** @class */ (function () {
+ function LeftSideBarComponent() {
+ this.showSpinner = false;
+ }
+ /**
+ * @return {?}
+ */
+ LeftSideBarComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ LeftSideBarComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-left-side-bar',
+ template: "\r\n",
+ styles: [".left-panel{border-radius:0;float:left}.gd-left-bar-fade{margin:auto;overflow:hidden;-webkit-overflow-scrolling:touch;transition:transform .3s ease-out;width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:fixed;z-index:1000}@media (max-width:1037px){.gd-left-bar-fade{top:100px;right:0}.gd-left-bar-spinner{top:20%}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ LeftSideBarComponent.ctorParameters = function () { return []; };
+ LeftSideBarComponent.propDecorators = {
+ showSpinner: [{ type: core.Input }]
+ };
+ return LeftSideBarComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ LeftSideBarComponent.prototype.showSpinner;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TooltipDirective = /** @class */ (function () {
- function TooltipDirective() {
- this.showToolTip = new core.EventEmitter();
- }
- /**
- * @return {?}
- */
- TooltipDirective.prototype.onHovering = /**
- * @return {?}
- */
- function () {
- this.showToolTip.emit(true);
- };
- /**
- * @return {?}
- */
- TooltipDirective.prototype.onUnhovering = /**
- * @return {?}
- */
- function () {
- this.showToolTip.emit(false);
- };
- TooltipDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdTooltip]'
- },] }
- ];
- /** @nocollapse */
- TooltipDirective.ctorParameters = function () { return []; };
- TooltipDirective.propDecorators = {
- showToolTip: [{ type: core.Output }],
- onHovering: [{ type: core.HostListener, args: ['mouseenter',] }],
- onUnhovering: [{ type: core.HostListener, args: ['mouseleave',] }]
- };
- return TooltipDirective;
- }());
- if (false) {
- /** @type {?} */
- TooltipDirective.prototype.showToolTip;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TooltipDirective = /** @class */ (function () {
+ function TooltipDirective() {
+ this.showToolTip = new core.EventEmitter();
+ }
+ /**
+ * @return {?}
+ */
+ TooltipDirective.prototype.onHovering = /**
+ * @return {?}
+ */
+ function () {
+ this.showToolTip.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ TooltipDirective.prototype.onUnhovering = /**
+ * @return {?}
+ */
+ function () {
+ this.showToolTip.emit(false);
+ };
+ TooltipDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdTooltip]'
+ },] }
+ ];
+ /** @nocollapse */
+ TooltipDirective.ctorParameters = function () { return []; };
+ TooltipDirective.propDecorators = {
+ showToolTip: [{ type: core.Output }],
+ onHovering: [{ type: core.HostListener, args: ['mouseenter',] }],
+ onUnhovering: [{ type: core.HostListener, args: ['mouseleave',] }]
+ };
+ return TooltipDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ TooltipDirective.prototype.showToolTip;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var AddDynamicComponentService = /** @class */ (function () {
- function AddDynamicComponentService(_factoryResolver, _appRef) {
- this._factoryResolver = _factoryResolver;
- this._appRef = _appRef;
- }
- /**
- * @param {?} viewContainerRef
- * @param {?} component
- * @return {?}
- */
- AddDynamicComponentService.prototype.addDynamicComponent = /**
- * @param {?} viewContainerRef
- * @param {?} component
- * @return {?}
- */
- function (viewContainerRef, component) {
- var _this = this;
- /** @type {?} */
- var factory = this._factoryResolver.resolveComponentFactory(component);
- /** @type {?} */
- var componentRef = viewContainerRef.createComponent(factory);
- componentRef.onDestroy((/**
- * @return {?}
- */
- function () {
- _this._appRef.detachView(componentRef.hostView);
- }));
- return componentRef;
- };
- AddDynamicComponentService.decorators = [
- { type: core.Injectable, args: [{
- providedIn: 'root'
- },] }
- ];
- /** @nocollapse */
- AddDynamicComponentService.ctorParameters = function () { return [
- { type: core.ComponentFactoryResolver },
- { type: core.ApplicationRef }
- ]; };
- /** @nocollapse */ AddDynamicComponentService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AddDynamicComponentService_Factory() { return new AddDynamicComponentService(core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.ApplicationRef)); }, token: AddDynamicComponentService, providedIn: "root" });
- return AddDynamicComponentService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- AddDynamicComponentService.prototype._factoryResolver;
- /**
- * @type {?}
- * @private
- */
- AddDynamicComponentService.prototype._appRef;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var AddDynamicComponentService = /** @class */ (function () {
+ function AddDynamicComponentService(_factoryResolver, _appRef) {
+ this._factoryResolver = _factoryResolver;
+ this._appRef = _appRef;
+ }
+ /**
+ * @param {?} viewContainerRef
+ * @param {?} component
+ * @return {?}
+ */
+ AddDynamicComponentService.prototype.addDynamicComponent = /**
+ * @param {?} viewContainerRef
+ * @param {?} component
+ * @return {?}
+ */
+ function (viewContainerRef, component) {
+ var _this = this;
+ /** @type {?} */
+ var factory = this._factoryResolver.resolveComponentFactory(component);
+ /** @type {?} */
+ var componentRef = viewContainerRef.createComponent(factory);
+ componentRef.onDestroy((/**
+ * @return {?}
+ */
+ function () {
+ _this._appRef.detachView(componentRef.hostView);
+ }));
+ return componentRef;
+ };
+ AddDynamicComponentService.decorators = [
+ { type: core.Injectable, args: [{
+ providedIn: 'root'
+ },] }
+ ];
+ /** @nocollapse */
+ AddDynamicComponentService.ctorParameters = function () { return [
+ { type: core.ComponentFactoryResolver },
+ { type: core.ApplicationRef }
+ ]; };
+ /** @nocollapse */ AddDynamicComponentService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AddDynamicComponentService_Factory() { return new AddDynamicComponentService(core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.ApplicationRef)); }, token: AddDynamicComponentService, providedIn: "root" });
+ return AddDynamicComponentService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ AddDynamicComponentService.prototype._factoryResolver;
+ /**
+ * @type {?}
+ * @private
+ */
+ AddDynamicComponentService.prototype._appRef;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var HostingDynamicComponentService = /** @class */ (function () {
- function HostingDynamicComponentService() {
- this.hosts = [];
- }
- /**
- * @param {?} host
- * @return {?}
- */
- HostingDynamicComponentService.prototype.add = /**
- * @param {?} host
- * @return {?}
- */
- function (host) {
- this.hosts = this.hosts.filter((/**
- * @param {?} h
- * @return {?}
- */
- function (h) {
- return h.ident !== host.ident;
- }));
- this.hosts.push(host);
- };
- /**
- * @param {?} host
- * @return {?}
- */
- HostingDynamicComponentService.prototype.remove = /**
- * @param {?} host
- * @return {?}
- */
- function (host) {
- this.hosts = this.hosts.filter((/**
- * @param {?} h
- * @return {?}
- */
- function (h) {
- return h.ident !== host.ident;
- }));
- };
- /**
- * @param {?} ident
- * @return {?}
- */
- HostingDynamicComponentService.prototype.find = /**
- * @param {?} ident
- * @return {?}
- */
- function (ident) {
- return this.hosts.find((/**
- * @param {?} h
- * @return {?}
- */
- function (h) {
- return h.ident === ident;
- }));
- };
- return HostingDynamicComponentService;
- }());
- if (false) {
- /**
- * @type {?}
- * @private
- */
- HostingDynamicComponentService.prototype.hosts;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var HostingDynamicComponentService = /** @class */ (function () {
+ function HostingDynamicComponentService() {
+ this.hosts = [];
+ }
+ /**
+ * @param {?} host
+ * @return {?}
+ */
+ HostingDynamicComponentService.prototype.add = /**
+ * @param {?} host
+ * @return {?}
+ */
+ function (host) {
+ this.hosts = this.hosts.filter((/**
+ * @param {?} h
+ * @return {?}
+ */
+ function (h) {
+ return h.ident !== host.ident;
+ }));
+ this.hosts.push(host);
+ };
+ /**
+ * @param {?} host
+ * @return {?}
+ */
+ HostingDynamicComponentService.prototype.remove = /**
+ * @param {?} host
+ * @return {?}
+ */
+ function (host) {
+ this.hosts = this.hosts.filter((/**
+ * @param {?} h
+ * @return {?}
+ */
+ function (h) {
+ return h.ident !== host.ident;
+ }));
+ };
+ /**
+ * @param {?} ident
+ * @return {?}
+ */
+ HostingDynamicComponentService.prototype.find = /**
+ * @param {?} ident
+ * @return {?}
+ */
+ function (ident) {
+ return this.hosts.find((/**
+ * @param {?} h
+ * @return {?}
+ */
+ function (h) {
+ return h.ident === ident;
+ }));
+ };
+ return HostingDynamicComponentService;
+ }());
+ if (false) {
+ /**
+ * @type {?}
+ * @private
+ */
+ HostingDynamicComponentService.prototype.hosts;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var HostDynamicDirective = /** @class */ (function () {
- function HostDynamicDirective(viewContainerRef, _hostingService) {
- this.viewContainerRef = viewContainerRef;
- this._hostingService = _hostingService;
- }
- /**
- * @return {?}
- */
- HostDynamicDirective.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- this._hostingService.add(this);
- };
- /**
- * @return {?}
- */
- HostDynamicDirective.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this._hostingService.remove(this);
- this.viewContainerRef.clear();
- };
- HostDynamicDirective.decorators = [
- { type: core.Directive, args: [{
- selector: '[gdHostDynamic]'
- },] }
- ];
- /** @nocollapse */
- HostDynamicDirective.ctorParameters = function () { return [
- { type: core.ViewContainerRef },
- { type: HostingDynamicComponentService }
- ]; };
- HostDynamicDirective.propDecorators = {
- ident: [{ type: core.Input }]
- };
- return HostDynamicDirective;
- }());
- if (false) {
- /** @type {?} */
- HostDynamicDirective.prototype.ident;
- /** @type {?} */
- HostDynamicDirective.prototype.viewContainerRef;
- /**
- * @type {?}
- * @private
- */
- HostDynamicDirective.prototype._hostingService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var HostDynamicDirective = /** @class */ (function () {
+ function HostDynamicDirective(viewContainerRef, _hostingService) {
+ this.viewContainerRef = viewContainerRef;
+ this._hostingService = _hostingService;
+ }
+ /**
+ * @return {?}
+ */
+ HostDynamicDirective.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ this._hostingService.add(this);
+ };
+ /**
+ * @return {?}
+ */
+ HostDynamicDirective.prototype.ngOnDestroy = /**
+ * @return {?}
+ */
+ function () {
+ this._hostingService.remove(this);
+ this.viewContainerRef.clear();
+ };
+ HostDynamicDirective.decorators = [
+ { type: core.Directive, args: [{
+ selector: '[gdHostDynamic]'
+ },] }
+ ];
+ /** @nocollapse */
+ HostDynamicDirective.ctorParameters = function () { return [
+ { type: core.ViewContainerRef },
+ { type: HostingDynamicComponentService }
+ ]; };
+ HostDynamicDirective.propDecorators = {
+ ident: [{ type: core.Input }]
+ };
+ return HostDynamicDirective;
+ }());
+ if (false) {
+ /** @type {?} */
+ HostDynamicDirective.prototype.ident;
+ /** @type {?} */
+ HostDynamicDirective.prototype.viewContainerRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ HostDynamicDirective.prototype._hostingService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$8 = jquery;
- var ResizingComponent = /** @class */ (function () {
- function ResizingComponent() {
- this.se = false;
- this.ne = false;
- this.sw = false;
- this.nw = false;
- this.SE = 'se';
- this.NE = 'ne';
- this.SW = 'sw';
- this.NW = 'nw';
- this.offsetX = new core.EventEmitter();
- this.offsetY = new core.EventEmitter();
- this.offsetTop = new core.EventEmitter();
- this.offsetLeft = new core.EventEmitter();
- this.release = new core.EventEmitter();
- this.grab = false;
- }
- /**
- * @return {?}
- */
- ResizingComponent.prototype.ngAfterViewInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- /** @type {?} */
- var elSE = $$8(this.getElementId(this.SE));
- /** @type {?} */
- var elNW = $$8(this.getElementId(this.NW));
- if (this.init && elSE && elNW && elSE.offset() && elNW.offset()) {
- /** @type {?} */
- var width_1 = elSE.offset().left - elNW.offset().left;
- /** @type {?} */
- var height_1 = elSE.offset().top - elNW.offset().top;
- while (width_1 >= this.pageWidth || height_1 >= this.pageHeight) {
- width_1 = width_1 / 2;
- height_1 = height_1 / 2;
- }
- setTimeout((/**
- * @return {?}
- */
- function () {
- _this.offsetX.emit(width_1);
- _this.offsetY.emit(height_1);
- }), 100);
- }
- };
- /**
- * @return {?}
- */
- ResizingComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ResizingComponent.prototype.catchUp = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- // ff
- $event.preventDefault();
- if ($event.dataTransfer) { // ff
- $event.dataTransfer.setData('text', 'foo');
- }
- this.grab = true;
- this.oldPosition = Utils.getMousePosition($event);
- };
- /**
- * @param {?} $event
- * @param {?} el
- * @return {?}
- */
- ResizingComponent.prototype.resize = /**
- * @param {?} $event
- * @param {?} el
- * @return {?}
- */
- function ($event, el) {
- if (!this.grab) {
- return;
- }
- /** @type {?} */
- var position = Utils.getMousePosition($event);
- if (position.x === 0 && position.y === 0) {
- return;
- }
- /** @type {?} */
- var notSW = this.NE === el || this.NW === el;
- /** @type {?} */
- var notNE = this.SW === el || this.NW === el;
- this.setOffsets(position, notNE, notSW);
- if (notSW) {
- this.offsetTop.emit(position.y - this.oldPosition.y);
- }
- if (notNE) {
- this.offsetLeft.emit(position.x - this.oldPosition.x);
- }
- this.oldPosition = position;
- };
- /**
- * @private
- * @param {?} position
- * @param {?} x
- * @param {?} y
- * @return {?}
- */
- ResizingComponent.prototype.setOffsets = /**
- * @private
- * @param {?} position
- * @param {?} x
- * @param {?} y
- * @return {?}
- */
- function (position, x, y) {
- /** @type {?} */
- var offsetX = x ? this.oldPosition.x - position.x : position.x - this.oldPosition.x;
- /** @type {?} */
- var offsetY = y ? this.oldPosition.y - position.y : position.y - this.oldPosition.y;
- this.offsetX.emit(offsetX);
- this.offsetY.emit(offsetY);
- };
- /**
- * @param {?} $event
- * @param {?} el
- * @return {?}
- */
- ResizingComponent.prototype.end = /**
- * @param {?} $event
- * @param {?} el
- * @return {?}
- */
- function ($event, el) {
- // ff
- this.resize($event, el);
- this.release.emit(true);
- this.grab = false;
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ResizingComponent.prototype.start = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.drop($event);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ResizingComponent.prototype.drop = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.stopPropagation();
- $event.preventDefault();
- };
- /**
- * @private
- * @param {?} el
- * @return {?}
- */
- ResizingComponent.prototype.getElementId = /**
- * @private
- * @param {?} el
- * @return {?}
- */
- function (el) {
- return "#" + el + "-" + this.id;
- };
- ResizingComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-resizing',
- template: "
\n\n
\n\n
\n\n
\n",
- styles: [".ui-resizable-handle{background-color:#679ffa;width:8px;height:8px;border-radius:100%;position:absolute;font-size:.1px;display:block}.se-resize{bottom:-5px;right:-5px;cursor:se-resize}.ne-resize{top:-5px;right:-5px;cursor:ne-resize}.sw-resize{bottom:-5px;left:-5px;cursor:sw-resize}.nw-resize{top:-5px;left:-5px;cursor:nw-resize}"]
- }] }
- ];
- /** @nocollapse */
- ResizingComponent.ctorParameters = function () { return []; };
- ResizingComponent.propDecorators = {
- init: [{ type: core.Input }],
- id: [{ type: core.Input }],
- se: [{ type: core.Input }],
- ne: [{ type: core.Input }],
- sw: [{ type: core.Input }],
- nw: [{ type: core.Input }],
- pageWidth: [{ type: core.Input }],
- pageHeight: [{ type: core.Input }],
- offsetX: [{ type: core.Output }],
- offsetY: [{ type: core.Output }],
- offsetTop: [{ type: core.Output }],
- offsetLeft: [{ type: core.Output }],
- release: [{ type: core.Output }]
- };
- return ResizingComponent;
- }());
- if (false) {
- /** @type {?} */
- ResizingComponent.prototype.init;
- /** @type {?} */
- ResizingComponent.prototype.id;
- /** @type {?} */
- ResizingComponent.prototype.se;
- /** @type {?} */
- ResizingComponent.prototype.ne;
- /** @type {?} */
- ResizingComponent.prototype.sw;
- /** @type {?} */
- ResizingComponent.prototype.nw;
- /** @type {?} */
- ResizingComponent.prototype.pageWidth;
- /** @type {?} */
- ResizingComponent.prototype.pageHeight;
- /** @type {?} */
- ResizingComponent.prototype.SE;
- /** @type {?} */
- ResizingComponent.prototype.NE;
- /** @type {?} */
- ResizingComponent.prototype.SW;
- /** @type {?} */
- ResizingComponent.prototype.NW;
- /** @type {?} */
- ResizingComponent.prototype.offsetX;
- /** @type {?} */
- ResizingComponent.prototype.offsetY;
- /** @type {?} */
- ResizingComponent.prototype.offsetTop;
- /** @type {?} */
- ResizingComponent.prototype.offsetLeft;
- /** @type {?} */
- ResizingComponent.prototype.release;
- /**
- * @type {?}
- * @private
- */
- ResizingComponent.prototype.grab;
- /**
- * @type {?}
- * @private
- */
- ResizingComponent.prototype.oldPosition;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$8 = jquery;
+ var ResizingComponent = /** @class */ (function () {
+ function ResizingComponent() {
+ this.se = false;
+ this.ne = false;
+ this.sw = false;
+ this.nw = false;
+ this.SE = 'se';
+ this.NE = 'ne';
+ this.SW = 'sw';
+ this.NW = 'nw';
+ this.offsetX = new core.EventEmitter();
+ this.offsetY = new core.EventEmitter();
+ this.offsetTop = new core.EventEmitter();
+ this.offsetLeft = new core.EventEmitter();
+ this.release = new core.EventEmitter();
+ this.grab = false;
+ }
+ /**
+ * @return {?}
+ */
+ ResizingComponent.prototype.ngAfterViewInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ /** @type {?} */
+ var elSE = $$8(this.getElementId(this.SE));
+ /** @type {?} */
+ var elNW = $$8(this.getElementId(this.NW));
+ if (this.init && elSE && elNW && elSE.offset() && elNW.offset()) {
+ /** @type {?} */
+ var width_1 = elSE.offset().left - elNW.offset().left;
+ /** @type {?} */
+ var height_1 = elSE.offset().top - elNW.offset().top;
+ while (width_1 >= this.pageWidth || height_1 >= this.pageHeight) {
+ width_1 = width_1 / 2;
+ height_1 = height_1 / 2;
+ }
+ setTimeout((/**
+ * @return {?}
+ */
+ function () {
+ _this.offsetX.emit(width_1);
+ _this.offsetY.emit(height_1);
+ }), 100);
+ }
+ };
+ /**
+ * @return {?}
+ */
+ ResizingComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ResizingComponent.prototype.catchUp = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ // ff
+ $event.preventDefault();
+ if ($event.dataTransfer) { // ff
+ $event.dataTransfer.setData('text', 'foo');
+ }
+ this.grab = true;
+ this.oldPosition = Utils.getMousePosition($event);
+ };
+ /**
+ * @param {?} $event
+ * @param {?} el
+ * @return {?}
+ */
+ ResizingComponent.prototype.resize = /**
+ * @param {?} $event
+ * @param {?} el
+ * @return {?}
+ */
+ function ($event, el) {
+ if (!this.grab) {
+ return;
+ }
+ /** @type {?} */
+ var position = Utils.getMousePosition($event);
+ if (position.x === 0 && position.y === 0) {
+ return;
+ }
+ /** @type {?} */
+ var notSW = this.NE === el || this.NW === el;
+ /** @type {?} */
+ var notNE = this.SW === el || this.NW === el;
+ this.setOffsets(position, notNE, notSW);
+ if (notSW) {
+ this.offsetTop.emit(position.y - this.oldPosition.y);
+ }
+ if (notNE) {
+ this.offsetLeft.emit(position.x - this.oldPosition.x);
+ }
+ this.oldPosition = position;
+ };
+ /**
+ * @private
+ * @param {?} position
+ * @param {?} x
+ * @param {?} y
+ * @return {?}
+ */
+ ResizingComponent.prototype.setOffsets = /**
+ * @private
+ * @param {?} position
+ * @param {?} x
+ * @param {?} y
+ * @return {?}
+ */
+ function (position, x, y) {
+ /** @type {?} */
+ var offsetX = x ? this.oldPosition.x - position.x : position.x - this.oldPosition.x;
+ /** @type {?} */
+ var offsetY = y ? this.oldPosition.y - position.y : position.y - this.oldPosition.y;
+ this.offsetX.emit(offsetX);
+ this.offsetY.emit(offsetY);
+ };
+ /**
+ * @param {?} $event
+ * @param {?} el
+ * @return {?}
+ */
+ ResizingComponent.prototype.end = /**
+ * @param {?} $event
+ * @param {?} el
+ * @return {?}
+ */
+ function ($event, el) {
+ // ff
+ this.resize($event, el);
+ this.release.emit(true);
+ this.grab = false;
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ResizingComponent.prototype.start = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.drop($event);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ResizingComponent.prototype.drop = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ $event.stopPropagation();
+ $event.preventDefault();
+ };
+ /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ ResizingComponent.prototype.getElementId = /**
+ * @private
+ * @param {?} el
+ * @return {?}
+ */
+ function (el) {
+ return "#" + el + "-" + this.id;
+ };
+ ResizingComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-resizing',
+ template: "
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n",
+ styles: [".ui-resizable-handle{background-color:#679ffa;width:8px;height:8px;border-radius:100%;position:absolute;font-size:.1px;display:block}.se-resize{bottom:-5px;right:-5px;cursor:se-resize}.ne-resize{top:-5px;right:-5px;cursor:ne-resize}.sw-resize{bottom:-5px;left:-5px;cursor:sw-resize}.nw-resize{top:-5px;left:-5px;cursor:nw-resize}@media (max-width:1037px){.ui-resizable-handle{width:12px;height:12px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ResizingComponent.ctorParameters = function () { return []; };
+ ResizingComponent.propDecorators = {
+ init: [{ type: core.Input }],
+ id: [{ type: core.Input }],
+ se: [{ type: core.Input }],
+ ne: [{ type: core.Input }],
+ sw: [{ type: core.Input }],
+ nw: [{ type: core.Input }],
+ pageWidth: [{ type: core.Input }],
+ pageHeight: [{ type: core.Input }],
+ offsetX: [{ type: core.Output }],
+ offsetY: [{ type: core.Output }],
+ offsetTop: [{ type: core.Output }],
+ offsetLeft: [{ type: core.Output }],
+ release: [{ type: core.Output }]
+ };
+ return ResizingComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ResizingComponent.prototype.init;
+ /** @type {?} */
+ ResizingComponent.prototype.id;
+ /** @type {?} */
+ ResizingComponent.prototype.se;
+ /** @type {?} */
+ ResizingComponent.prototype.ne;
+ /** @type {?} */
+ ResizingComponent.prototype.sw;
+ /** @type {?} */
+ ResizingComponent.prototype.nw;
+ /** @type {?} */
+ ResizingComponent.prototype.pageWidth;
+ /** @type {?} */
+ ResizingComponent.prototype.pageHeight;
+ /** @type {?} */
+ ResizingComponent.prototype.SE;
+ /** @type {?} */
+ ResizingComponent.prototype.NE;
+ /** @type {?} */
+ ResizingComponent.prototype.SW;
+ /** @type {?} */
+ ResizingComponent.prototype.NW;
+ /** @type {?} */
+ ResizingComponent.prototype.offsetX;
+ /** @type {?} */
+ ResizingComponent.prototype.offsetY;
+ /** @type {?} */
+ ResizingComponent.prototype.offsetTop;
+ /** @type {?} */
+ ResizingComponent.prototype.offsetLeft;
+ /** @type {?} */
+ ResizingComponent.prototype.release;
+ /**
+ * @type {?}
+ * @private
+ */
+ ResizingComponent.prototype.grab;
+ /**
+ * @type {?}
+ * @private
+ */
+ ResizingComponent.prototype.oldPosition;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TopTabActivatorService = /** @class */ (function (_super) {
- __extends(TopTabActivatorService, _super);
- function TopTabActivatorService() {
- return _super.call(this) || this;
- }
- return TopTabActivatorService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TopTabActivatorService = /** @class */ (function (_super) {
+ __extends(TopTabActivatorService, _super);
+ function TopTabActivatorService() {
+ return _super.call(this) || this;
+ }
+ return TopTabActivatorService;
}(TabActivatorService));
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var TopTabComponent = /** @class */ (function () {
- function TopTabComponent(_tabActivatorService, _modalService, _excMessageService) {
- var _this = this;
- this._tabActivatorService = _tabActivatorService;
- this._modalService = _modalService;
- this._excMessageService = _excMessageService;
- this.disabled = false;
- this.activeTab = new core.EventEmitter();
- this.elementPosition = 0;
- this.active = false;
- this.showToolTip = false;
- this._tabActivatorService.activeTabChange.subscribe((/**
- * @param {?} tabId
- * @return {?}
- */
- function (tabId) {
- _this.activation(tabId);
- if (tabId === null) {
- _this.activeTab.emit("");
- }
- }));
- }
- /**
- * @private
- * @param {?} tabId
- * @return {?}
- */
- TopTabComponent.prototype.activation = /**
- * @private
- * @param {?} tabId
- * @return {?}
- */
- function (tabId) {
- if (this.id === tabId) {
- this.active = !this.active;
- if (this.active) {
- this.activeTab.emit(this.id);
- }
- else {
- this.activeTab.emit("");
- }
- }
- else {
- this.active = false;
- }
- };
- /**
- * @return {?}
- */
- TopTabComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @return {?}
- */
- TopTabComponent.prototype.toggleTab = /**
- * @return {?}
- */
- function () {
- if (this.disabled) {
- this._modalService.open(CommonModals.ErrorMessage);
- this._excMessageService.changeMessage("Please open document first");
- return;
- }
- this._tabActivatorService.changeActiveTab(this.id);
- };
- TopTabComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-top-tab',
- template: "\n \n \n
\n",
- styles: [".gd-tab{font-size:14px;color:#3e4e5a;cursor:pointer;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;align-content:center;-webkit-box-pack:center;justify-content:center;min-width:36px;height:36px;text-align:center;position:relative;white-space:nowrap;padding:0!important;margin:0 10px}.gd-tab .gd-tab-tooltip{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;margin:0!important}.gd-tab.active{background-color:#acacac;color:#fff!important;font-weight:700}.gd-tab.disabled{cursor:not-allowed;opacity:.4}.gd-tab ::ng-deep .tooltip{font-size:12px;margin:20px -57px}.gd-tab .title{margin:auto 23px}@media (max-width:1037px){.gd-tab{font-size:20px}}"]
- }] }
- ];
- /** @nocollapse */
- TopTabComponent.ctorParameters = function () { return [
- { type: TopTabActivatorService },
- { type: ModalService },
- { type: ExceptionMessageService }
- ]; };
- TopTabComponent.propDecorators = {
- id: [{ type: core.Input }],
- icon: [{ type: core.Input }],
- disabled: [{ type: core.Input }],
- tooltip: [{ type: core.Input }],
- activeTab: [{ type: core.Output }],
- elementPosition: [{ type: core.Input }]
- };
- return TopTabComponent;
- }());
- if (false) {
- /** @type {?} */
- TopTabComponent.prototype.id;
- /** @type {?} */
- TopTabComponent.prototype.icon;
- /** @type {?} */
- TopTabComponent.prototype.disabled;
- /** @type {?} */
- TopTabComponent.prototype.tooltip;
- /** @type {?} */
- TopTabComponent.prototype.activeTab;
- /** @type {?} */
- TopTabComponent.prototype.elementPosition;
- /** @type {?} */
- TopTabComponent.prototype.active;
- /** @type {?} */
- TopTabComponent.prototype.showToolTip;
- /**
- * @type {?}
- * @private
- */
- TopTabComponent.prototype._tabActivatorService;
- /**
- * @type {?}
- * @private
- */
- TopTabComponent.prototype._modalService;
- /**
- * @type {?}
- * @private
- */
- TopTabComponent.prototype._excMessageService;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var TopTabComponent = /** @class */ (function () {
+ function TopTabComponent(_tabActivatorService, _modalService, _excMessageService) {
+ var _this = this;
+ this._tabActivatorService = _tabActivatorService;
+ this._modalService = _modalService;
+ this._excMessageService = _excMessageService;
+ this.disabled = false;
+ this.activeTab = new core.EventEmitter();
+ this.elementPosition = 0;
+ this.active = false;
+ this.showToolTip = false;
+ this._tabActivatorService.activeTabChange.subscribe((/**
+ * @param {?} tabId
+ * @return {?}
+ */
+ function (tabId) {
+ _this.activation(tabId);
+ if (tabId === null) {
+ _this.activeTab.emit("");
+ }
+ }));
+ }
+ /**
+ * @private
+ * @param {?} tabId
+ * @return {?}
+ */
+ TopTabComponent.prototype.activation = /**
+ * @private
+ * @param {?} tabId
+ * @return {?}
+ */
+ function (tabId) {
+ if (this.id === tabId) {
+ this.active = !this.active;
+ if (this.active) {
+ this.activeTab.emit(this.id);
+ }
+ else {
+ this.activeTab.emit("");
+ }
+ }
+ else {
+ this.active = false;
+ }
+ };
+ /**
+ * @return {?}
+ */
+ TopTabComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @return {?}
+ */
+ TopTabComponent.prototype.toggleTab = /**
+ * @return {?}
+ */
+ function () {
+ if (this.disabled) {
+ this._modalService.open(CommonModals.ErrorMessage);
+ this._excMessageService.changeMessage("Please open document first");
+ return;
+ }
+ this._tabActivatorService.changeActiveTab(this.id);
+ };
+ TopTabComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-top-tab',
+ template: "\r\n \r\n \r\n
\r\n",
+ styles: [".gd-tab{font-size:14px;color:#3e4e5a;cursor:pointer;display:flex;flex-direction:column;align-items:center;align-content:center;justify-content:center;min-width:36px;height:36px;text-align:center;position:relative;white-space:nowrap;padding:0!important;margin:0 10px}.gd-tab .gd-tab-tooltip{display:flex;flex-direction:column;margin:0!important}.gd-tab.active{background-color:#acacac;color:#fff!important;font-weight:700}.gd-tab.disabled{cursor:not-allowed;opacity:.4}.gd-tab ::ng-deep .tooltip{font-size:12px;margin:20px -57px}.gd-tab .title{margin:auto 23px}@media (max-width:1037px){.gd-tab{font-size:20px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TopTabComponent.ctorParameters = function () { return [
+ { type: TopTabActivatorService },
+ { type: ModalService },
+ { type: ExceptionMessageService }
+ ]; };
+ TopTabComponent.propDecorators = {
+ id: [{ type: core.Input }],
+ icon: [{ type: core.Input }],
+ disabled: [{ type: core.Input }],
+ tooltip: [{ type: core.Input }],
+ activeTab: [{ type: core.Output }],
+ elementPosition: [{ type: core.Input }]
+ };
+ return TopTabComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ TopTabComponent.prototype.id;
+ /** @type {?} */
+ TopTabComponent.prototype.icon;
+ /** @type {?} */
+ TopTabComponent.prototype.disabled;
+ /** @type {?} */
+ TopTabComponent.prototype.tooltip;
+ /** @type {?} */
+ TopTabComponent.prototype.activeTab;
+ /** @type {?} */
+ TopTabComponent.prototype.elementPosition;
+ /** @type {?} */
+ TopTabComponent.prototype.active;
+ /** @type {?} */
+ TopTabComponent.prototype.showToolTip;
+ /**
+ * @type {?}
+ * @private
+ */
+ TopTabComponent.prototype._tabActivatorService;
+ /**
+ * @type {?}
+ * @private
+ */
+ TopTabComponent.prototype._modalService;
+ /**
+ * @type {?}
+ * @private
+ */
+ TopTabComponent.prototype._excMessageService;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var $$9 = jquery;
- var TextMenuComponent = /** @class */ (function () {
- function TextMenuComponent(_onCloseService, _zoomService, _windowService, _elementRef, renderer) {
- var _this = this;
- this._onCloseService = _onCloseService;
- this._zoomService = _zoomService;
- this._windowService = _windowService;
- this._elementRef = _elementRef;
- this.renderer = renderer;
- this.decoration = true;
- this.showTooltips = true;
- this.outFontSize = new core.EventEmitter();
- this.outFont = new core.EventEmitter();
- this.outBold = new core.EventEmitter();
- this.outItalic = new core.EventEmitter();
- this.outUnderline = new core.EventEmitter();
- this.outColor = new core.EventEmitter();
- this.fontSizeOptions = FormattingService.getFontSizeOptions();
- this.fontOptions = FormattingService.getFontOptions();
- this.colorPickerShow = false;
- _onCloseService.onClose.subscribe((/**
- * @return {?}
- */
- function () {
- _this.colorPickerShow = false;
- }));
- this.isMobile = _windowService.isMobile();
- _windowService.onResize.subscribe((/**
- * @param {?} w
- * @return {?}
- */
- function (w) {
- _this.isMobile = _windowService.isMobile();
- }));
- _zoomService.zoomChange.subscribe((/**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- if (_this.isMobile) {
- _this.changePosition(val);
- }
- }));
- }
- /**
- * @return {?}
- */
- TextMenuComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} val
- * @return {?}
- */
- TextMenuComponent.prototype.changePosition = /**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- /** @type {?} */
- var top = (window.innerHeight - 24 - this._elementRef.nativeElement.parentElement.getBoundingClientRect().top - this._elementRef.nativeElement.parentElement.getBoundingClientRect().height);
- /** @type {?} */
- var left = this._elementRef.nativeElement.parentElement.getBoundingClientRect().left;
- this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'width', window.innerWidth + 'px');
- this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'top', top + 'px');
- this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'left', -left + 'px');
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- TextMenuComponent.prototype.selectFontSize = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $$9(".gd-wrapper").off("keyup");
- this.outFontSize.emit($event.value);
- $$9(".gd-wrapper").on("keyup", (/**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var fontElements = document.getElementsByTagName("font");
- for (var i = 0, len = fontElements.length; i < len; ++i) {
- if (fontElements[i].getAttribute('size') === "7") {
- fontElements[i].removeAttribute("size");
- fontElements[i].style.fontSize = $event + "px";
- }
- }
- }));
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- TextMenuComponent.prototype.selectFont = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- event.preventDefault();
- event.stopPropagation();
- this.outFont.emit($event.value);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- TextMenuComponent.prototype.toggleColorPicker = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- $event.preventDefault();
- $event.stopPropagation();
- this.colorPickerShow = !this.colorPickerShow;
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- TextMenuComponent.prototype.selectColor = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.colorPickerShow = false;
- this.outColor.emit($event);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- TextMenuComponent.prototype.toggleBold = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event.preventDefault();
- event.stopPropagation();
- this.outBold.emit(!this.bold);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- TextMenuComponent.prototype.toggleItalic = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event.preventDefault();
- event.stopPropagation();
- this.outItalic.emit(!this.italic);
- };
- /**
- * @param {?} event
- * @return {?}
- */
- TextMenuComponent.prototype.toggleUnderline = /**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- event.preventDefault();
- event.stopPropagation();
- this.outUnderline.emit(!this.underline);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- TextMenuComponent.prototype.closePicker = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.colorPickerShow = !$event;
- };
- TextMenuComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-text-menu',
- template: "\n",
- styles: ["::ng-deep .active{background-color:#e7e7e7}.gd-text-menu{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.gd-text-menu .format-select{height:37px;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;max-width:80px;margin:0 3px}.gd-text-menu .first-component{margin-left:8px}.gd-text-menu ::ng-deep .dropdown-menu{top:40px!important;height:120px;overflow-y:auto}.gd-text-menu ::ng-deep .icon-button{margin:0!important}.bg-color-pic{border-radius:100%;border:1px solid #ccc;position:absolute;height:8px;width:8px;right:6px;bottom:6px}.palette{position:relative;top:40px;left:-55px;z-index:100}@media (max-width:1037px){.gd-text-menu{position:fixed;left:0;right:0;width:inherit;height:60px;-webkit-box-align:center;align-items:center;padding:0;margin:0;background-color:#fff;border-top:2px solid #707070;-webkit-transform-origin:top left;transform-origin:top left;z-index:1000}.gd-text-menu ::ng-deep .selected-value{white-space:normal!important;word-wrap:break-word}.gd-text-menu .icon{color:#fff;margin:0 9px}.gd-text-menu ::ng-deep .bcPicker-palette{left:-200px;top:-185px}.gd-text-menu .palette{top:unset;bottom:40px;left:unset;right:5px}.gd-text-menu ::ng-deep .dropdown-menu{bottom:40px;top:unset!important}.gd-text-menu ::ng-deep .first-component ::ng-deep .dropdown-menu{left:0}.gd-text-menu ::ng-deep .button{margin:3px!important;font-size:16px}}"]
- }] }
- ];
- /** @nocollapse */
- TextMenuComponent.ctorParameters = function () { return [
- { type: OnCloseService },
- { type: ZoomService },
- { type: WindowService },
- { type: core.ElementRef },
- { type: core.Renderer2 }
- ]; };
- TextMenuComponent.propDecorators = {
- blur: [{ type: core.Input }],
- fontSize: [{ type: core.Input }],
- font: [{ type: core.Input }],
- bold: [{ type: core.Input }],
- italic: [{ type: core.Input }],
- underline: [{ type: core.Input }],
- color: [{ type: core.Input }],
- decoration: [{ type: core.Input }],
- showTooltips: [{ type: core.Input }],
- outFontSize: [{ type: core.Output }],
- outFont: [{ type: core.Output }],
- outBold: [{ type: core.Output }],
- outItalic: [{ type: core.Output }],
- outUnderline: [{ type: core.Output }],
- outColor: [{ type: core.Output }]
- };
- return TextMenuComponent;
- }());
- if (false) {
- /** @type {?} */
- TextMenuComponent.prototype.blur;
- /** @type {?} */
- TextMenuComponent.prototype.fontSize;
- /** @type {?} */
- TextMenuComponent.prototype.font;
- /** @type {?} */
- TextMenuComponent.prototype.bold;
- /** @type {?} */
- TextMenuComponent.prototype.italic;
- /** @type {?} */
- TextMenuComponent.prototype.underline;
- /** @type {?} */
- TextMenuComponent.prototype.color;
- /** @type {?} */
- TextMenuComponent.prototype.decoration;
- /** @type {?} */
- TextMenuComponent.prototype.showTooltips;
- /** @type {?} */
- TextMenuComponent.prototype.outFontSize;
- /** @type {?} */
- TextMenuComponent.prototype.outFont;
- /** @type {?} */
- TextMenuComponent.prototype.outBold;
- /** @type {?} */
- TextMenuComponent.prototype.outItalic;
- /** @type {?} */
- TextMenuComponent.prototype.outUnderline;
- /** @type {?} */
- TextMenuComponent.prototype.outColor;
- /** @type {?} */
- TextMenuComponent.prototype.fontSizeOptions;
- /** @type {?} */
- TextMenuComponent.prototype.fontOptions;
- /** @type {?} */
- TextMenuComponent.prototype.colorPickerShow;
- /** @type {?} */
- TextMenuComponent.prototype.isMobile;
- /**
- * @type {?}
- * @private
- */
- TextMenuComponent.prototype._onCloseService;
- /**
- * @type {?}
- * @private
- */
- TextMenuComponent.prototype._zoomService;
- /**
- * @type {?}
- * @private
- */
- TextMenuComponent.prototype._windowService;
- /**
- * @type {?}
- * @protected
- */
- TextMenuComponent.prototype._elementRef;
- /**
- * @type {?}
- * @private
- */
- TextMenuComponent.prototype.renderer;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var $$9 = jquery;
+ var TextMenuComponent = /** @class */ (function () {
+ function TextMenuComponent(_onCloseService, _zoomService, _windowService, _elementRef, renderer) {
+ var _this = this;
+ this._onCloseService = _onCloseService;
+ this._zoomService = _zoomService;
+ this._windowService = _windowService;
+ this._elementRef = _elementRef;
+ this.renderer = renderer;
+ this.decoration = true;
+ this.showTooltips = true;
+ this.outFontSize = new core.EventEmitter();
+ this.outFont = new core.EventEmitter();
+ this.outBold = new core.EventEmitter();
+ this.outItalic = new core.EventEmitter();
+ this.outUnderline = new core.EventEmitter();
+ this.outColor = new core.EventEmitter();
+ this.fontSizeOptions = FormattingService.getFontSizeOptions();
+ this.fontOptions = FormattingService.getFontOptions();
+ this.colorPickerShow = false;
+ _onCloseService.onClose.subscribe((/**
+ * @return {?}
+ */
+ function () {
+ _this.colorPickerShow = false;
+ }));
+ this.isMobile = _windowService.isMobile();
+ _windowService.onResize.subscribe((/**
+ * @param {?} w
+ * @return {?}
+ */
+ function (w) {
+ _this.isMobile = _windowService.isMobile();
+ }));
+ _zoomService.zoomChange.subscribe((/**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ if (_this.isMobile) {
+ _this.changePosition(val);
+ }
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ TextMenuComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} val
+ * @return {?}
+ */
+ TextMenuComponent.prototype.changePosition = /**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ /** @type {?} */
+ var top = (window.innerHeight - 24 - this._elementRef.nativeElement.parentElement.getBoundingClientRect().top - this._elementRef.nativeElement.parentElement.getBoundingClientRect().height);
+ /** @type {?} */
+ var left = this._elementRef.nativeElement.parentElement.getBoundingClientRect().left;
+ this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'width', window.innerWidth + 'px');
+ this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'top', top + 'px');
+ this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'left', -left + 'px');
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.selectFontSize = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ $$9(".gd-wrapper").off("keyup");
+ this.outFontSize.emit($event.value);
+ $$9(".gd-wrapper").on("keyup", (/**
+ * @return {?}
+ */
+ function () {
+ /** @type {?} */
+ var fontElements = document.getElementsByTagName("font");
+ for (var i = 0, len = fontElements.length; i < len; ++i) {
+ if (fontElements[i].getAttribute('size') === "7") {
+ fontElements[i].removeAttribute("size");
+ fontElements[i].style.fontSize = $event + "px";
+ }
+ }
+ }));
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.selectFont = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ event.preventDefault();
+ event.stopPropagation();
+ this.outFont.emit($event.value);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.toggleColorPicker = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ $event.preventDefault();
+ $event.stopPropagation();
+ this.colorPickerShow = !this.colorPickerShow;
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.selectColor = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.colorPickerShow = false;
+ this.outColor.emit($event);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.toggleBold = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event.preventDefault();
+ event.stopPropagation();
+ this.outBold.emit(!this.bold);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.toggleItalic = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event.preventDefault();
+ event.stopPropagation();
+ this.outItalic.emit(!this.italic);
+ };
+ /**
+ * @param {?} event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.toggleUnderline = /**
+ * @param {?} event
+ * @return {?}
+ */
+ function (event) {
+ event.preventDefault();
+ event.stopPropagation();
+ this.outUnderline.emit(!this.underline);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ TextMenuComponent.prototype.closePicker = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.colorPickerShow = !$event;
+ };
+ TextMenuComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-text-menu',
+ template: "\r\n",
+ styles: ["::ng-deep .active{background-color:#e7e7e7}.gd-text-menu{display:flex;flex-direction:row}.gd-text-menu .format-select{height:37px;display:flex;justify-content:center;align-items:center;max-width:80px;margin:0 3px}.gd-text-menu .first-component{margin-left:8px}.gd-text-menu ::ng-deep .dropdown-menu{top:40px!important;height:120px;overflow-y:auto}.gd-text-menu ::ng-deep .icon-button{margin:0!important}.bg-color-pic{border-radius:100%;border:1px solid #ccc;position:absolute;height:8px;width:8px;right:6px;bottom:6px}.palette{position:relative;top:40px;left:-55px;z-index:100}@media (max-width:1037px){.gd-text-menu{position:fixed;left:0;right:0;width:inherit;height:60px;align-items:center;padding:0;margin:0;background-color:#fff;border-top:2px solid #707070;transform-origin:top left;z-index:1000}.gd-text-menu ::ng-deep .selected-value{white-space:normal!important;word-wrap:break-word}.gd-text-menu .icon{color:#fff;margin:0 9px}.gd-text-menu ::ng-deep .bcPicker-palette{left:-200px;top:-185px}.gd-text-menu .palette{top:unset;bottom:40px;left:unset;right:5px}.gd-text-menu ::ng-deep .dropdown-menu{bottom:40px;top:unset!important}.gd-text-menu ::ng-deep .first-component ::ng-deep .dropdown-menu{left:0}.gd-text-menu ::ng-deep .button{margin:3px!important;font-size:16px}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ TextMenuComponent.ctorParameters = function () { return [
+ { type: OnCloseService },
+ { type: ZoomService },
+ { type: WindowService },
+ { type: core.ElementRef },
+ { type: core.Renderer2 }
+ ]; };
+ TextMenuComponent.propDecorators = {
+ blur: [{ type: core.Input }],
+ fontSize: [{ type: core.Input }],
+ font: [{ type: core.Input }],
+ bold: [{ type: core.Input }],
+ italic: [{ type: core.Input }],
+ underline: [{ type: core.Input }],
+ color: [{ type: core.Input }],
+ decoration: [{ type: core.Input }],
+ showTooltips: [{ type: core.Input }],
+ outFontSize: [{ type: core.Output }],
+ outFont: [{ type: core.Output }],
+ outBold: [{ type: core.Output }],
+ outItalic: [{ type: core.Output }],
+ outUnderline: [{ type: core.Output }],
+ outColor: [{ type: core.Output }]
+ };
+ return TextMenuComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ TextMenuComponent.prototype.blur;
+ /** @type {?} */
+ TextMenuComponent.prototype.fontSize;
+ /** @type {?} */
+ TextMenuComponent.prototype.font;
+ /** @type {?} */
+ TextMenuComponent.prototype.bold;
+ /** @type {?} */
+ TextMenuComponent.prototype.italic;
+ /** @type {?} */
+ TextMenuComponent.prototype.underline;
+ /** @type {?} */
+ TextMenuComponent.prototype.color;
+ /** @type {?} */
+ TextMenuComponent.prototype.decoration;
+ /** @type {?} */
+ TextMenuComponent.prototype.showTooltips;
+ /** @type {?} */
+ TextMenuComponent.prototype.outFontSize;
+ /** @type {?} */
+ TextMenuComponent.prototype.outFont;
+ /** @type {?} */
+ TextMenuComponent.prototype.outBold;
+ /** @type {?} */
+ TextMenuComponent.prototype.outItalic;
+ /** @type {?} */
+ TextMenuComponent.prototype.outUnderline;
+ /** @type {?} */
+ TextMenuComponent.prototype.outColor;
+ /** @type {?} */
+ TextMenuComponent.prototype.fontSizeOptions;
+ /** @type {?} */
+ TextMenuComponent.prototype.fontOptions;
+ /** @type {?} */
+ TextMenuComponent.prototype.colorPickerShow;
+ /** @type {?} */
+ TextMenuComponent.prototype.isMobile;
+ /**
+ * @type {?}
+ * @private
+ */
+ TextMenuComponent.prototype._onCloseService;
+ /**
+ * @type {?}
+ * @private
+ */
+ TextMenuComponent.prototype._zoomService;
+ /**
+ * @type {?}
+ * @private
+ */
+ TextMenuComponent.prototype._windowService;
+ /**
+ * @type {?}
+ * @protected
+ */
+ TextMenuComponent.prototype._elementRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ TextMenuComponent.prototype.renderer;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var MenuType = /** @class */ (function () {
- function MenuType() {
- }
- MenuType.FOR_SIGNATURE = "signature";
- MenuType.FOR_ANNOTATION = "annotation";
- return MenuType;
- }());
- if (false) {
- /** @type {?} */
- MenuType.FOR_SIGNATURE;
- /** @type {?} */
- MenuType.FOR_ANNOTATION;
- }
- var ContextMenuComponent = /** @class */ (function () {
- function ContextMenuComponent(_windowService, _zoomService, _elementRef, renderer) {
- var _this = this;
- this._windowService = _windowService;
- this._zoomService = _zoomService;
- this._elementRef = _elementRef;
- this.renderer = renderer;
- this.formatting = Formatting.default();
- this.lock = false;
- this.translation = 0;
- this.changeFormatting = new core.EventEmitter();
- this.removeItem = new core.EventEmitter();
- this.copySign = new core.EventEmitter();
- this.lockOut = new core.EventEmitter();
- this.comment = new core.EventEmitter();
- this.isMobile = _windowService.isMobile();
- _windowService.onResize.subscribe((/**
- * @param {?} w
- * @return {?}
- */
- function (w) {
- _this.isMobile = _windowService.isMobile();
- }));
- _zoomService.zoomChange.subscribe((/**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- if (_this.isMobile) {
- _this.changeScale(val);
- }
- }));
- }
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- };
- /**
- * @param {?} val
- * @return {?}
- */
- ContextMenuComponent.prototype.changeScale = /**
- * @param {?} val
- * @return {?}
- */
- function (val) {
- this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-context-menu'), 'transform', 'scale(' + 1 / (val / 100) + ')');
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.saveChanges = /**
- * @return {?}
- */
- function () {
- this.changeFormatting.emit(this.formatting);
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.selectFontSize = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.fontSize = $event;
- this.saveChanges();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.selectFont = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.font = $event;
- this.saveChanges();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.selectColor = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.color = $event;
- this.saveChanges();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.toggleBold = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.bold = $event;
- this.saveChanges();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.toggleItalic = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.italic = $event;
- this.saveChanges();
- };
- /**
- * @param {?} $event
- * @return {?}
- */
- ContextMenuComponent.prototype.toggleUnderline = /**
- * @param {?} $event
- * @return {?}
- */
- function ($event) {
- this.formatting.underline = $event;
- this.saveChanges();
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.deleteItem = /**
- * @return {?}
- */
- function () {
- this.removeItem.emit(true);
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.toggleLock = /**
- * @return {?}
- */
- function () {
- this.lock = !this.lock;
- this.lockOut.emit(this.lock);
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.onCopySign = /**
- * @return {?}
- */
- function () {
- this.copySign.emit(true);
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.isSignature = /**
- * @return {?}
- */
- function () {
- return this.menuType === MenuType.FOR_SIGNATURE;
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.isAnnotation = /**
- * @return {?}
- */
- function () {
- return this.menuType === MenuType.FOR_ANNOTATION;
- };
- /**
- * @return {?}
- */
- ContextMenuComponent.prototype.addComment = /**
- * @return {?}
- */
- function () {
- this.comment.emit(true);
- };
- ContextMenuComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'gd-context-menu',
- template: "\n",
- styles: [".gd-context-menu-top{top:-44px}.gd-context-menu-bottom{bottom:-40px}.gd-context-menu{box-shadow:rgba(0,0,0,.52) 0 0 5px;background-color:#fff;position:absolute;left:0;right:0;margin:auto;cursor:default;width:max-content;width:-moz-max-content;width:-webkit-max-content;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;z-index:999}.gd-context-menu .arrows{cursor:move}.gd-context-menu ::ng-deep .active{background-color:#e7e7e7}.gd-context-menu ::ng-deep .icon-button{margin:0!important}@media (max-width:1037px){.gd-context-menu-top{top:-42px;-webkit-transform-origin:bottom center;transform-origin:bottom center}}"]
- }] }
- ];
- /** @nocollapse */
- ContextMenuComponent.ctorParameters = function () { return [
- { type: WindowService },
- { type: ZoomService },
- { type: core.ElementRef },
- { type: core.Renderer2 }
- ]; };
- ContextMenuComponent.propDecorators = {
- formatting: [{ type: core.Input }],
- textMenu: [{ type: core.Input }],
- topPosition: [{ type: core.Input }],
- lock: [{ type: core.Input }],
- translation: [{ type: core.Input }],
- menuType: [{ type: core.Input }],
- changeFormatting: [{ type: core.Output }],
- removeItem: [{ type: core.Output }],
- copySign: [{ type: core.Output }],
- lockOut: [{ type: core.Output }],
- comment: [{ type: core.Output }]
- };
- return ContextMenuComponent;
- }());
- if (false) {
- /** @type {?} */
- ContextMenuComponent.prototype.formatting;
- /** @type {?} */
- ContextMenuComponent.prototype.textMenu;
- /** @type {?} */
- ContextMenuComponent.prototype.topPosition;
- /** @type {?} */
- ContextMenuComponent.prototype.lock;
- /** @type {?} */
- ContextMenuComponent.prototype.translation;
- /** @type {?} */
- ContextMenuComponent.prototype.menuType;
- /** @type {?} */
- ContextMenuComponent.prototype.changeFormatting;
- /** @type {?} */
- ContextMenuComponent.prototype.removeItem;
- /** @type {?} */
- ContextMenuComponent.prototype.copySign;
- /** @type {?} */
- ContextMenuComponent.prototype.lockOut;
- /** @type {?} */
- ContextMenuComponent.prototype.comment;
- /** @type {?} */
- ContextMenuComponent.prototype.isMobile;
- /**
- * @type {?}
- * @private
- */
- ContextMenuComponent.prototype._windowService;
- /**
- * @type {?}
- * @private
- */
- ContextMenuComponent.prototype._zoomService;
- /**
- * @type {?}
- * @protected
- */
- ContextMenuComponent.prototype._elementRef;
- /**
- * @type {?}
- * @private
- */
- ContextMenuComponent.prototype.renderer;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ var MenuType = /** @class */ (function () {
+ function MenuType() {
+ }
+ MenuType.FOR_SIGNATURE = "signature";
+ MenuType.FOR_ANNOTATION = "annotation";
+ return MenuType;
+ }());
+ if (false) {
+ /** @type {?} */
+ MenuType.FOR_SIGNATURE;
+ /** @type {?} */
+ MenuType.FOR_ANNOTATION;
+ }
+ var ContextMenuComponent = /** @class */ (function () {
+ function ContextMenuComponent(_windowService, _zoomService, _elementRef, renderer) {
+ var _this = this;
+ this._windowService = _windowService;
+ this._zoomService = _zoomService;
+ this._elementRef = _elementRef;
+ this.renderer = renderer;
+ this.formatting = Formatting.default();
+ this.lock = false;
+ this.translation = 0;
+ this.changeFormatting = new core.EventEmitter();
+ this.removeItem = new core.EventEmitter();
+ this.copySign = new core.EventEmitter();
+ this.lockOut = new core.EventEmitter();
+ this.comment = new core.EventEmitter();
+ this.isMobile = _windowService.isMobile();
+ _windowService.onResize.subscribe((/**
+ * @param {?} w
+ * @return {?}
+ */
+ function (w) {
+ _this.isMobile = _windowService.isMobile();
+ }));
+ _zoomService.zoomChange.subscribe((/**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ if (_this.isMobile) {
+ _this.changeScale(val);
+ }
+ }));
+ }
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.ngOnInit = /**
+ * @return {?}
+ */
+ function () {
+ };
+ /**
+ * @param {?} val
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.changeScale = /**
+ * @param {?} val
+ * @return {?}
+ */
+ function (val) {
+ this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-context-menu'), 'transform', 'scale(' + 1 / (val / 100) + ')');
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.saveChanges = /**
+ * @return {?}
+ */
+ function () {
+ this.changeFormatting.emit(this.formatting);
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.selectFontSize = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.fontSize = $event;
+ this.saveChanges();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.selectFont = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.font = $event;
+ this.saveChanges();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.selectColor = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.color = $event;
+ this.saveChanges();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.toggleBold = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.bold = $event;
+ this.saveChanges();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.toggleItalic = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.italic = $event;
+ this.saveChanges();
+ };
+ /**
+ * @param {?} $event
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.toggleUnderline = /**
+ * @param {?} $event
+ * @return {?}
+ */
+ function ($event) {
+ this.formatting.underline = $event;
+ this.saveChanges();
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.deleteItem = /**
+ * @return {?}
+ */
+ function () {
+ this.removeItem.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.toggleLock = /**
+ * @return {?}
+ */
+ function () {
+ this.lock = !this.lock;
+ this.lockOut.emit(this.lock);
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.onCopySign = /**
+ * @return {?}
+ */
+ function () {
+ this.copySign.emit(true);
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.isSignature = /**
+ * @return {?}
+ */
+ function () {
+ return this.menuType === MenuType.FOR_SIGNATURE;
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.isAnnotation = /**
+ * @return {?}
+ */
+ function () {
+ return this.menuType === MenuType.FOR_ANNOTATION;
+ };
+ /**
+ * @return {?}
+ */
+ ContextMenuComponent.prototype.addComment = /**
+ * @return {?}
+ */
+ function () {
+ this.comment.emit(true);
+ };
+ ContextMenuComponent.decorators = [
+ { type: core.Component, args: [{
+ selector: 'gd-context-menu',
+ template: "\r\n",
+ styles: [".gd-context-menu-top{top:-44px}.gd-context-menu-bottom{bottom:-40px}.gd-context-menu{box-shadow:rgba(0,0,0,.52) 0 0 5px;background-color:#fff;position:absolute;left:0;right:0;margin:auto;cursor:default;width:max-content;width:-moz-max-content;width:-webkit-max-content;display:flex;flex-direction:row;z-index:999}.gd-context-menu .arrows{cursor:move}.gd-context-menu ::ng-deep .active{background-color:#e7e7e7}.gd-context-menu ::ng-deep .icon-button{margin:0!important}@media (max-width:1037px){.gd-context-menu-top{top:-42px;transform-origin:bottom center}}"]
+ }] }
+ ];
+ /** @nocollapse */
+ ContextMenuComponent.ctorParameters = function () { return [
+ { type: WindowService },
+ { type: ZoomService },
+ { type: core.ElementRef },
+ { type: core.Renderer2 }
+ ]; };
+ ContextMenuComponent.propDecorators = {
+ formatting: [{ type: core.Input }],
+ textMenu: [{ type: core.Input }],
+ topPosition: [{ type: core.Input }],
+ lock: [{ type: core.Input }],
+ translation: [{ type: core.Input }],
+ menuType: [{ type: core.Input }],
+ changeFormatting: [{ type: core.Output }],
+ removeItem: [{ type: core.Output }],
+ copySign: [{ type: core.Output }],
+ lockOut: [{ type: core.Output }],
+ comment: [{ type: core.Output }]
+ };
+ return ContextMenuComponent;
+ }());
+ if (false) {
+ /** @type {?} */
+ ContextMenuComponent.prototype.formatting;
+ /** @type {?} */
+ ContextMenuComponent.prototype.textMenu;
+ /** @type {?} */
+ ContextMenuComponent.prototype.topPosition;
+ /** @type {?} */
+ ContextMenuComponent.prototype.lock;
+ /** @type {?} */
+ ContextMenuComponent.prototype.translation;
+ /** @type {?} */
+ ContextMenuComponent.prototype.menuType;
+ /** @type {?} */
+ ContextMenuComponent.prototype.changeFormatting;
+ /** @type {?} */
+ ContextMenuComponent.prototype.removeItem;
+ /** @type {?} */
+ ContextMenuComponent.prototype.copySign;
+ /** @type {?} */
+ ContextMenuComponent.prototype.lockOut;
+ /** @type {?} */
+ ContextMenuComponent.prototype.comment;
+ /** @type {?} */
+ ContextMenuComponent.prototype.isMobile;
+ /**
+ * @type {?}
+ * @private
+ */
+ ContextMenuComponent.prototype._windowService;
+ /**
+ * @type {?}
+ * @private
+ */
+ ContextMenuComponent.prototype._zoomService;
+ /**
+ * @type {?}
+ * @protected
+ */
+ ContextMenuComponent.prototype._elementRef;
+ /**
+ * @type {?}
+ * @private
+ */
+ ContextMenuComponent.prototype.renderer;
}
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /** @type {?} */
- var providers = [ConfigService,
- Api,
- ModalService,
- FileService,
- FileModel,
- FileUtil,
- Utils,
- SanitizeHtmlPipe,
- SanitizeResourceHtmlPipe,
- SanitizeStylePipe,
- HighlightSearchPipe,
- UploadFilesService,
- RenderPrintService,
- NavigateService,
- PagePreloadService,
- ZoomService,
- ExceptionMessageService,
- PasswordService,
- ErrorInterceptorService,
- SearchService,
- WindowService,
- ViewportService,
- FormattingService,
- BackFormattingService,
- OnCloseService,
- LoadingMaskInterceptorService,
- LoadingMaskService,
- TabActivatorService,
- AddDynamicComponentService,
- HostingDynamicComponentService,
- TopTabActivatorService];
- var CommonComponentsModule = /** @class */ (function () {
- function CommonComponentsModule() {
- fontawesomeSvgCore.library.add(freeSolidSvgIcons.fas, freeRegularSvgIcons.far);
- }
- CommonComponentsModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [common.CommonModule, angularFontawesome.FontAwesomeModule, ngClickOutside.ClickOutsideModule],
- declarations: [
- TopToolbarComponent,
- SidePanelComponent,
- ButtonComponent,
- LogoComponent,
- TooltipComponent,
- ModalComponent,
- BrowseFilesModalComponent,
- DocumentComponent,
- PageComponent,
- SanitizeHtmlPipe,
- SanitizeResourceHtmlPipe,
- SanitizeStylePipe,
- HighlightSearchPipe,
- UploadFileZoneComponent,
- DndDirective,
- ScrollableDirective,
- MouseWheelDirective,
- ZoomDirective,
- SelectComponent,
- DisabledCursorDirective,
- RotationDirective,
- InitStateComponent,
- RenderPrintDirective,
- ErrorModalComponent,
- PasswordRequiredComponent,
- SearchComponent,
- SearchableDirective,
- TabbedToolbarsComponent,
- TabComponent,
- TabsComponent,
- ColorPickerComponent,
- FormattingDirective,
- SuccessModalComponent,
- EditorDirective,
- LoadingMaskComponent,
- DropDownComponent,
- DropDownItemComponent,
- DropDownItemsComponent,
- DropDownToggleComponent,
- LeftSideBarComponent,
- TooltipDirective,
- HostDynamicDirective,
- ResizingComponent,
- TopTabComponent,
- TextMenuComponent,
- ContextMenuComponent
- ],
- exports: [
- TopToolbarComponent,
- SidePanelComponent,
- ButtonComponent,
- LogoComponent,
- TooltipComponent,
- ModalComponent,
- BrowseFilesModalComponent,
- DocumentComponent,
- PageComponent,
- SanitizeResourceHtmlPipe,
- SanitizeStylePipe,
- HighlightSearchPipe,
- SanitizeHtmlPipe,
- UploadFileZoneComponent,
- ScrollableDirective,
- MouseWheelDirective,
- SelectComponent,
- RotationDirective,
- InitStateComponent,
- RenderPrintDirective,
- ErrorModalComponent,
- PasswordRequiredComponent,
- SearchComponent,
- SearchableDirective,
- TabbedToolbarsComponent,
- TabComponent,
- TabsComponent,
- ColorPickerComponent,
- FormattingDirective,
- SuccessModalComponent,
- LoadingMaskComponent,
- DndDirective,
- DropDownComponent,
- DropDownItemComponent,
- DropDownItemsComponent,
- DropDownToggleComponent,
- ZoomDirective,
- DropDownToggleComponent,
- LeftSideBarComponent,
- TooltipDirective,
- HostDynamicDirective,
- ResizingComponent,
- TopTabComponent,
- TextMenuComponent,
- ContextMenuComponent
- ],
- providers: providers
- },] }
- ];
- /** @nocollapse */
- CommonComponentsModule.ctorParameters = function () { return []; };
- return CommonComponentsModule;
+ /**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
+ */
+ /** @type {?} */
+ var providers = [ConfigService,
+ Api,
+ ModalService,
+ FileService,
+ FileModel,
+ FileUtil,
+ Utils,
+ SanitizeHtmlPipe,
+ SanitizeResourceHtmlPipe,
+ SanitizeStylePipe,
+ HighlightSearchPipe,
+ UploadFilesService,
+ RenderPrintService,
+ NavigateService,
+ PagePreloadService,
+ ZoomService,
+ ExceptionMessageService,
+ PasswordService,
+ ErrorInterceptorService,
+ SearchService,
+ WindowService,
+ ViewportService,
+ FormattingService,
+ BackFormattingService,
+ OnCloseService,
+ LoadingMaskInterceptorService,
+ LoadingMaskService,
+ TabActivatorService,
+ AddDynamicComponentService,
+ HostingDynamicComponentService,
+ TopTabActivatorService];
+ var CommonComponentsModule = /** @class */ (function () {
+ function CommonComponentsModule() {
+ fontawesomeSvgCore.library.add(freeSolidSvgIcons.fas, freeRegularSvgIcons.far);
+ }
+ CommonComponentsModule.decorators = [
+ { type: core.NgModule, args: [{
+ imports: [common.CommonModule, angularFontawesome.FontAwesomeModule, ngClickOutside.ClickOutsideModule],
+ declarations: [
+ TopToolbarComponent,
+ SidePanelComponent,
+ ButtonComponent,
+ LogoComponent,
+ TooltipComponent,
+ ModalComponent,
+ BrowseFilesModalComponent,
+ DocumentComponent,
+ PageComponent,
+ SanitizeHtmlPipe,
+ SanitizeResourceHtmlPipe,
+ SanitizeStylePipe,
+ HighlightSearchPipe,
+ UploadFileZoneComponent,
+ DndDirective,
+ ScrollableDirective,
+ MouseWheelDirective,
+ ZoomDirective,
+ SelectComponent,
+ DisabledCursorDirective,
+ RotationDirective,
+ InitStateComponent,
+ RenderPrintDirective,
+ ErrorModalComponent,
+ PasswordRequiredComponent,
+ SearchComponent,
+ SearchableDirective,
+ TabbedToolbarsComponent,
+ TabComponent,
+ TabsComponent,
+ ColorPickerComponent,
+ FormattingDirective,
+ SuccessModalComponent,
+ EditorDirective,
+ LoadingMaskComponent,
+ DropDownComponent,
+ DropDownItemComponent,
+ DropDownItemsComponent,
+ DropDownToggleComponent,
+ LeftSideBarComponent,
+ TooltipDirective,
+ HostDynamicDirective,
+ ResizingComponent,
+ TopTabComponent,
+ TextMenuComponent,
+ ContextMenuComponent
+ ],
+ exports: [
+ TopToolbarComponent,
+ SidePanelComponent,
+ ButtonComponent,
+ LogoComponent,
+ TooltipComponent,
+ ModalComponent,
+ BrowseFilesModalComponent,
+ DocumentComponent,
+ PageComponent,
+ SanitizeResourceHtmlPipe,
+ SanitizeStylePipe,
+ HighlightSearchPipe,
+ SanitizeHtmlPipe,
+ UploadFileZoneComponent,
+ ScrollableDirective,
+ MouseWheelDirective,
+ SelectComponent,
+ RotationDirective,
+ InitStateComponent,
+ RenderPrintDirective,
+ ErrorModalComponent,
+ PasswordRequiredComponent,
+ SearchComponent,
+ SearchableDirective,
+ TabbedToolbarsComponent,
+ TabComponent,
+ TabsComponent,
+ ColorPickerComponent,
+ FormattingDirective,
+ SuccessModalComponent,
+ LoadingMaskComponent,
+ DndDirective,
+ DropDownComponent,
+ DropDownItemComponent,
+ DropDownItemsComponent,
+ DropDownToggleComponent,
+ ZoomDirective,
+ DropDownToggleComponent,
+ LeftSideBarComponent,
+ TooltipDirective,
+ HostDynamicDirective,
+ ResizingComponent,
+ TopTabComponent,
+ TextMenuComponent,
+ ContextMenuComponent
+ ],
+ providers: providers
+ },] }
+ ];
+ /** @nocollapse */
+ CommonComponentsModule.ctorParameters = function () { return []; };
+ return CommonComponentsModule;
}());
exports.AddDynamicComponentService = AddDynamicComponentService;
diff --git a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js.map b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js.map
index efe4072f6..4d5689db6 100644
--- a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js.map
+++ b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.js.map
@@ -1 +1 @@
-{"version":3,"file":"groupdocs.examples.angular-common-components.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","ng://@groupdocs.examples.angular/common-components/lib/top-toolbar/top-toolbar.component.ts","ng://@groupdocs.examples.angular/common-components/lib/side-panel/side-panel.component.ts","ng://@groupdocs.examples.angular/common-components/lib/window.service.ts","ng://@groupdocs.examples.angular/common-components/lib/button/button.component.ts","ng://@groupdocs.examples.angular/common-components/lib/logo/logo.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tooltip/tooltip.component.ts","ng://@groupdocs.examples.angular/common-components/lib/config.service.ts","ng://@groupdocs.examples.angular/common-components/lib/modal.service.ts","ng://@groupdocs.examples.angular/common-components/lib/modal/modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/file.service.ts","ng://@groupdocs.examples.angular/common-components/lib/upload-files.service.ts","ng://@groupdocs.examples.angular/common-components/lib/browse-files-modal/browse-files-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/zoom.service.ts","ng://@groupdocs.examples.angular/common-components/lib/page-preload.service.ts","ng://@groupdocs.examples.angular/common-components/lib/navigate.service.ts","ng://@groupdocs.examples.angular/common-components/lib/document/document.component.ts","ng://@groupdocs.examples.angular/common-components/lib/page/page.component.ts","ng://@groupdocs.examples.angular/common-components/lib/pipes.ts","ng://@groupdocs.examples.angular/common-components/lib/upload-file-zone/upload-file-zone.component.ts","ng://@groupdocs.examples.angular/common-components/lib/dnd.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/viewport.service.ts","ng://@groupdocs.examples.angular/common-components/lib/scrollable.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/mousewheel.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/zoom.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/on-close.service.ts","ng://@groupdocs.examples.angular/common-components/lib/select/select.component.ts","ng://@groupdocs.examples.angular/common-components/lib/disabled-cursor.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/rotation.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/init-state/init-state.component.ts","ng://@groupdocs.examples.angular/common-components/lib/render-print.service.ts","ng://@groupdocs.examples.angular/common-components/lib/render-print.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/exception-message.service.ts","ng://@groupdocs.examples.angular/common-components/lib/error-modal/error-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/password.service.ts","ng://@groupdocs.examples.angular/common-components/lib/password-required/password-required.component.ts","ng://@groupdocs.examples.angular/common-components/lib/error-interceptor.service.ts","ng://@groupdocs.examples.angular/common-components/lib/search.service.ts","ng://@groupdocs.examples.angular/common-components/lib/search/search.component.ts","ng://@groupdocs.examples.angular/common-components/lib/searchable.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/tabbed-toolbars/tabbed-toolbars.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tab-activator.service.ts","ng://@groupdocs.examples.angular/common-components/lib/tab/tab.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tabs/tabs.component.ts","ng://@groupdocs.examples.angular/common-components/lib/formatting.service.ts","ng://@groupdocs.examples.angular/common-components/lib/color-picker/color-picker.component.ts","ng://@groupdocs.examples.angular/common-components/lib/back-formatting.service.ts","ng://@groupdocs.examples.angular/common-components/lib/selection.service.ts","ng://@groupdocs.examples.angular/common-components/lib/formatting.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/success-modal/success-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/edit-html.service.ts","ng://@groupdocs.examples.angular/common-components/lib/editor.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask.service.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask/loading-mask.component.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask-interceptor.service.ts","ng://@groupdocs.examples.angular/common-components/lib/drop-down/drop-down.component.ts","ng://@groupdocs.examples.angular/common-components/lib/left-side-bar/left-side-bar.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tooltip.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/add-dynamic-component.service.ts","ng://@groupdocs.examples.angular/common-components/lib/hosting-dynamic-component.service.ts","ng://@groupdocs.examples.angular/common-components/lib/host-dynamic.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/resizing/resizing.component.ts","ng://@groupdocs.examples.angular/common-components/lib/top-tab-activator.service.ts","ng://@groupdocs.examples.angular/common-components/lib/top-tab/top-tab.component.ts","ng://@groupdocs.examples.angular/common-components/lib/text-menu/text-menu.component.ts","ng://@groupdocs.examples.angular/common-components/lib/context-menu/context-menu.component.ts","ng://@groupdocs.examples.angular/common-components/lib/common-components.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import {Component, Input} from '@angular/core';\n\n@Component({\n selector: 'gd-top-toolbar',\n templateUrl: './top-toolbar.component.html',\n styleUrls: ['./top-toolbar.component.less']\n})\nexport class TopToolbarComponent {\n\n constructor() {\n }\n}\n","import {Component, EventEmitter, Input, Output} from '@angular/core';\n\n@Component({\n selector: 'gd-side-panel',\n templateUrl: './side-panel.component.html',\n styleUrls: ['./side-panel.component.less']\n})\n\nexport class SidePanelComponent {\n @Input() title: string;\n @Input() icon: string;\n @Input() closable = true;\n @Input() saveable = true;\n @Output() hideSidePanel = new EventEmitter();\n @Output() saveInSidePanel = new EventEmitter();\n\n onlyTitle = false;\n\n constructor() {\n }\n\n closeSidePanel() {\n this.hideSidePanel.emit(true);\n }\n\n saveBySidePanel() {\n this.saveInSidePanel.emit(true);\n }\n\n toggleTitleMode(){\n if (this.closable && !this.saveable) {\n this.onlyTitle = !this.onlyTitle;\n }\n }\n}\n","import {fromEvent, Observable, Subject} from \"rxjs\";\nimport {debounceTime, distinctUntilChanged, startWith, tap} from \"rxjs/operators\";\n\nconst MOBILE_MAX_WIDTH = 425;\nconst TABLET_MAX_WIDTH = 1024;\n\nexport class WindowService {\n\n private resizeSubject: Subject = new Subject();\n private _resize$;\n private width: number;\n private height: number;\n\n constructor() {\n this.width = window.innerWidth;\n this.height = window.innerHeight;\n\n this._resize$ = fromEvent(window, 'resize')\n .pipe(\n debounceTime(200),\n distinctUntilChanged(),\n startWith({target: {innerWidth: window.innerWidth, innerHeight: window.innerHeight}}),\n tap(event => {\n this.resizeSubject.next(event.target);\n this.width = (event.target as Window).innerWidth;\n this.height = (event.target as Window).innerHeight;\n }),\n );\n this._resize$.subscribe();\n }\n\n get onResize(): Observable {\n return this.resizeSubject.asObservable();\n }\n\n isMobile() {\n return this.width <= MOBILE_MAX_WIDTH;\n }\n\n isTablet() {\n return this.width <= TABLET_MAX_WIDTH;\n }\n\n isDesktop() {\n return !this.isMobile() && !this.isTablet();\n }\n\n getWidth() {\n return this.width;\n }\n\n getHeight() {\n return this.height;\n }\n\n isEdge() {\n return window.navigator.userAgent.toLowerCase().indexOf('edge') > -1;\n }\n\n isFirefox() {\n return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\n }\n}\n","import {Component, Input} from '@angular/core';\nimport {WindowService} from \"../window.service\";\n\n@Component({\n selector: 'gd-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.less']\n})\nexport class ButtonComponent {\n @Input() iconOnly = true;\n @Input() intent = 'default';\n @Input() disabled = false;\n @Input() icon: string;\n @Input() iconClass: string;\n @Input() tooltip: string;\n @Input() className: string;\n @Input() toggle = false;\n @Input() iconSize: string;\n @Input() iconRegular = false;\n @Input() elementPosition = 0;\n\n showToolTip = false;\n private isDesktop: boolean;\n\n constructor(windowService: WindowService) {\n this.isDesktop = windowService.isDesktop();\n windowService.onResize.subscribe((w) => {\n this.isDesktop = windowService.isDesktop();\n });\n }\n\n iconButtonClass() {\n return this.iconOnly ? 'icon-button' : '';\n }\n\n onHovering() {\n if (this.isDesktop && !this.disabled) {\n this.className += ' active';\n }\n }\n\n onUnhovering() {\n if (this.isDesktop && !this.disabled) {\n this.className = this.cleanAll(this.className, ' active');\n }\n }\n\n private cleanAll(str: string, val: string) {\n while (str && str.indexOf(val) !== -1) {\n str = str.replace(val, '');\n }\n return str;\n }\n}\n","import {Component, Input, OnInit} from '@angular/core';\n\n@Component({\n selector: 'gd-logo',\n templateUrl: './logo.component.html',\n styleUrls: ['./logo.component.less']\n})\nexport class LogoComponent implements OnInit {\n\n @Input() logo;\n @Input() icon;\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import {Component, Input, OnInit} from '@angular/core';\n\n@Component({\n selector: 'gd-tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.less']\n})\nexport class TooltipComponent implements OnInit {\n\n @Input() text: string;\n @Input() position = 0;\n visibility = 'hidden';\n\n constructor() {\n }\n\n getClass() {\n if (this.position === 0) {\n return 'tooltip';\n }\n return 'tooltip ' + (this.position > 0 ? 'last-element' : 'first-element');\n }\n\n @Input()\n set show(value: boolean) {\n this.visibility = value ? 'shown' : 'hidden';\n }\n\n ngOnInit() {\n }\n\n}\n","import {HttpHeaders} from \"@angular/common/http\";\nimport {Injectable} from \"@angular/core\";\n\nexport class Api {\n public static VIEWER_APP = '/viewer';\n public static SIGNATURE_APP = '/signature';\n public static ANNOTATION_APP = '/annotation';\n public static SEARCH_APP = '/search';\n public static EDITOR_APP = '/editor';\n public static COMPARISON_APP = '/comparison';\n public static CONVERSION_APP = '/conversion';\n public static METADATA_APP = '/metadata';\n public static DEFAULT_API_ENDPOINT = window.location.href;\n public static LOAD_FILE_TREE = '/loadFileTree';\n public static LOAD_CONFIG = '/loadConfig';\n public static LOAD_DOCUMENT_DESCRIPTION = '/loadDocumentDescription';\n public static LOAD_DOCUMENT_PAGE = '/loadDocumentPage';\n public static LOAD_DOCUMENT_PROPERTIES = '/loadProperties';\n public static LOAD_DOCUMENT_PROPERTIES_NAMES = '/loadPropertiesNames';\n public static SAVE_PROPERTY = '/saveProperty';\n public static REMOVE_PROPERTY = '/removeProperty';\n public static ROTATE_DOCUMENT_PAGE = '/rotateDocumentPages';\n public static UPLOAD_DOCUMENTS = '/uploadDocument';\n public static DOWNLOAD_DOCUMENTS = '/downloadDocument';\n public static LOAD_PRINT = '/loadPrint';\n public static LOAD_PRINT_PDF = '/printPdf';\n public static LOAD_THUMBNAILS = '/loadThumbnails';\n public static LOAD_FORMATS = '/loadFormats';\n public static SAVE_FILE = '/saveFile';\n public static CREATE_FILE = '/createFile';\n public static COMPARE_FILES = '/compare';\n public static CONVERT_FILE = '/convert';\n public static DELETE_SIGNATURE_FILE = '/deleteSignatureFile';\n public static REMOVE_FROM_INDEX = '/removeFromIndex';\n public static GET_FILE_STATUS = '/getFileStatus';\n public static SAVE_OPTICAL_CODE = '/saveOpticalCode';\n public static SAVE_TEXT = '/saveText';\n public static SAVE_IMAGE = '/saveImage';\n public static SAVE_STAMP = '/saveStamp';\n public static SIGN = '/sign';\n public static DOWNLOAD_SIGNED = '/downloadSigned';\n public static LOAD_SIGNATURE_IMAGE = '/loadSignatureImage';\n public static ANNOTATE = '/annotate';\n public static SEARCH = '/search';\n public static ADD_FILES_TO_INDEX = '/addFilesToIndex';\n\n public static httpOptionsJson = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n })\n };\n public static httpOptionsJsonResponseTypeBlob = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n responseType: 'blob' as 'blob'\n };\n}\n\n@Injectable()\nexport class ConfigService {\n\n private _apiEndpoint: string;\n\n constructor() {\n this.apiEndpoint = Api.DEFAULT_API_ENDPOINT;\n }\n\n set apiEndpoint(url: string) {\n this._apiEndpoint = url && url.trim().endsWith('/') ? url.substring(0, url.length - 1) : url;\n }\n\n getConfigEndpoint(app) {\n return (this.apiEndpoint.endsWith(app) ? this.apiEndpoint : this.apiEndpoint + app) + Api.LOAD_CONFIG;\n }\n\n getViewerApiEndpoint() {\n return this._apiEndpoint.endsWith(Api.VIEWER_APP) ? this._apiEndpoint : this._apiEndpoint + Api.VIEWER_APP;\n }\n\n getEditorApiEndpoint() {\n return this._apiEndpoint.trim().endsWith(Api.EDITOR_APP) ? this._apiEndpoint : this._apiEndpoint + Api.EDITOR_APP;\n }\n\n getComparisonApiEndpoint() {\n return this._apiEndpoint.trim().endsWith(Api.COMPARISON_APP) ? this._apiEndpoint : this._apiEndpoint + Api.COMPARISON_APP;\n }\n\n getConversionApiEndpoint() {\n return this._apiEndpoint.trim().endsWith(Api.CONVERSION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.CONVERSION_APP;\n }\n\n getMetadataApiEndpoint() {\n return this._apiEndpoint.trim().endsWith(Api.METADATA_APP) ? this._apiEndpoint : this._apiEndpoint + Api.METADATA_APP;\n }\n\n get apiEndpoint() {\n return this._apiEndpoint;\n }\n\n getSignatureApiEndpoint() {\n return this._apiEndpoint.endsWith(Api.SIGNATURE_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SIGNATURE_APP;\n }\n\n getAnnotationApiEndpoint() {\n return this._apiEndpoint.endsWith(Api.ANNOTATION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.ANNOTATION_APP;\n }\n\n getSearchApiEndpoint() {\n return this._apiEndpoint.endsWith(Api.SEARCH_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SEARCH_APP;\n }\n}\n","export class CommonModals {\n static PasswordRequired = \"gd-password-required\";\n static ErrorMessage = \"gd-error-message\";\n static BrowseFiles = \"gd-browse-files\";\n static CreateDocument = \"gd-create-document\";\n static OperationSuccess = \"gd-success-modal\";\n static DrawHandSignature = \"gd-draw-hand-signature\";\n static DrawStampSignature = \"gd-draw-stamp-signature\";\n static InformationMessage = \"gd-information-message\";\n}\n\nexport class ModalService {\n private modals: any[] = [];\n\n add(modal: any) {\n this.modals.push(modal);\n }\n\n remove(id: string) {\n this.modals = this.modals.filter(x => x.id !== id);\n }\n\n open(id: string) {\n const modal: any = this.modals.filter(x => x.id === id)[0];\n if (modal) {\n modal.open();\n }\n }\n\n close(id: string) {\n const modal: any = this.modals.filter(x => x.id === id)[0];\n if (modal) {\n modal.close();\n }\n }\n}\n","import {Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';\nimport {ModalService} from \"../modal.service\";\n\n@Component({\n selector: 'gd-modal',\n templateUrl: './modal.component.html',\n styleUrls: ['./modal.component.less']\n})\nexport class ModalComponent implements OnInit, OnDestroy {\n @Input() id: string;\n @Input() title: string;\n @Output() visible = new EventEmitter();\n @Output() cancel = new EventEmitter();\n visibility = false;\n private element: any;\n\n constructor(private modalService: ModalService, el: ElementRef) {\n this.element = el.nativeElement;\n }\n\n ngOnInit(): void {\n if (!this.id) {\n console.error('modal must have an id');\n return;\n }\n\n document.body.appendChild(this.element);\n\n this.modalService.add(this);\n }\n\n ngOnDestroy(): void {\n this.modalService.remove(this.id);\n this.element.remove();\n }\n\n open(): void {\n this.visibility = true;\n this.visible.emit(true);\n }\n\n close(): void {\n event.preventDefault();\n event.stopPropagation();\n this.visibility = false;\n this.visible.emit(false);\n }\n\n onClose($event: MouseEvent) {\n $event.stopPropagation();\n if ($event && $event.target && ($event.target).id === 'modalDialog') {\n this.close();\n }\n }\n\n cancelClose() {\n this.cancel.emit(false);\n this.close();\n }\n}\n","export class PageModel {\n data: string;\n angle: number;\n width: number;\n height: number;\n number: number;\n editable: boolean;\n}\n\nexport class RotatedPage {\n pageNumber: number;\n angle: number;\n}\n\nexport class FileCredentials {\n guid: string;\n password: string;\n\n constructor(guid: string, password: string) {\n this.guid = guid;\n this.password = password;\n }\n}\n\nexport class SaveFile extends FileCredentials {\n content: string;\n\n constructor(guid: string, password: string, content: string) {\n super(guid, password);\n this.content = content;\n }\n}\n\nexport class FileDescription {\n guid: string;\n pages: PageModel[];\n printAllowed = true;\n showGridLines: boolean;\n thumbnails: PageModel[];\n}\n\nexport class FileModel {\n guid: string;\n name: string;\n directory: boolean;\n size: number;\n isDirectory: boolean;\n}\n\nexport class HttpError {\n static BadRequest = 400;\n static Unauthorized = 401;\n static Forbidden = 403;\n static NotFound = 404;\n static TimeOut = 408;\n static Conflict = 409;\n static InternalServerError = 500;\n}\n\nexport class Utils {\n public static getMousePosition(event) {\n const mouse = {\n x: 0,\n y: 0\n };\n const wEvent: DragEvent = window.event;\n const ev = event || wEvent; //Moz || IE\n if (ev.pageX || wEvent.pageX || wEvent.screenX || (ev.touches && ev.touches[0] && ev.touches[0].pageX)) { //Moz\n const pageX = typeof ev.pageX !== \"undefined\" && ev.pageX !== 0 ? ev.pageX : wEvent.pageX;\n const pageY = typeof ev.pageY !== \"undefined\" && ev.pageY !== 0 ? ev.pageY : wEvent.pageY;\n const screenX = typeof wEvent.screenX !== \"undefined\" && wEvent.screenY !== 0;\n const screenY = typeof wEvent.screenY !== \"undefined\" && wEvent.screenY !== 0;\n mouse.x = pageX ? pageX : (screenX ? wEvent.screenX : ev.touches[0].pageX);\n mouse.y = pageY ? pageY : (screenY ? wEvent.screenY : ev.touches[0].pageY);\n } else if (ev.clientX) { //IE\n mouse.x = ev.clientX + document.body.scrollLeft;\n mouse.y = ev.clientY + document.body.scrollTop;\n }\n return mouse;\n }\n\n public static toRgb(color: string) {\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(color);\n if (result) {\n const r = parseInt(result[1], 16);\n const g = parseInt(result[2], 16);\n const b = parseInt(result[3], 16);\n return result ? 'rgb(' + r + ',' + g + ',' + b + ')' : '';\n }\n return color;\n }\n\n public static toHex(color: string) {\n // check if color is standard hex value\n if (color.match(/[0-9A-F]{6}|[0-9A-F]{3}$/i)) {\n return (color.charAt(0) === \"#\") ? color : (\"#\" + color);\n // check if color is RGB value -> convert to hex\n } else if (color.match(/^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/)) {\n const c = ([parseInt(RegExp.$1, 10), parseInt(RegExp.$2, 10), parseInt(RegExp.$3, 10)]),\n pad = function (str) {\n if (str.length < 2) {\n for (let i = 0, len = 2 - str.length; i < len; i++) {\n str = '0' + str;\n }\n }\n return str;\n };\n if (c.length === 3) {\n const r = pad(c[0].toString(16)),\n g = pad(c[1].toString(16)),\n b = pad(c[2].toString(16));\n return '#' + r + g + b;\n }\n // else do nothing\n } else {\n return '';\n }\n }\n}\n\nexport class FileUtil {\n public static map = {\n 'folder': {'format': '', 'icon': 'folder'},\n 'pdf': {'format': 'Portable Document Format', 'icon': 'file-pdf', 'unit': 'pt'},\n 'doc': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'docx': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'docm': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'dot': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'dotx': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'dotm': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\n 'xls': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xlsx': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xlsm': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xlsb': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xls2003': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xltx': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'xltm': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\n 'ppt': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'pptx': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'pps': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'ppsx': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'vsd': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vdx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vss': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vsx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vst': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vtx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vsdx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vdw': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vstx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'vssx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\n 'mpp': {'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt'},\n 'mpt': {'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt'},\n 'msg': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\n 'eml': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\n 'emlx': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\n 'one': {'format': 'Microsoft OneNote', 'icon': 'file-word', 'unit': 'pt'},\n 'odt': {'format': 'Open Document Text', 'icon': 'file-word', 'unit': 'pt'},\n 'ott': {'format': 'Open Document Text Template', 'icon': 'file-word', 'unit': 'pt'},\n 'ods': {'format': 'Open Document Spreadsheet', 'icon': 'file-excel', 'unit': 'px'},\n 'odp': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'otp': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'ots': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'potx': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'potm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'pptm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'ppsm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\n 'rtf': {'format': 'Rich Text Format', 'icon': 'file-alt', 'unit': 'pt'},\n 'txt': {'format': 'Plain Text File', 'icon': 'file-alt', 'unit': 'pt'},\n 'csv': {'format': 'Comma-Separated Values', 'icon': 'file-excel', 'unit': 'px'},\n 'html': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\n 'mht': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\n 'mhtml': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\n 'xml': {'format': 'Extensible Markup Language', 'icon': 'file-word', 'unit': 'pt'},\n 'xps': {'format': 'XML Paper Specification', 'icon': 'file-word', 'unit': 'pt'},\n 'dxf': {'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px'},\n 'dwg': {'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px'},\n 'bmp': {'format': 'Bitmap Picture', 'icon': 'file-image', 'unit': 'px'},\n 'gif': {'format': 'Graphics Interchange Format', 'icon': 'file-image', 'unit': 'px'},\n 'jpg': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\n 'jpe': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\n 'jpeg': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\n 'jfif': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\n 'png': {'format': 'Portable Network Graphics', 'icon': 'file-image', 'unit': 'px'},\n 'tiff': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\n 'tif': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\n 'psd': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\n 'svg': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\n 'jp2': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\n 'epub': {'format': 'Electronic Publication', 'icon': 'file-pdf', 'unit': 'pt'},\n 'ico': {'format': 'Windows Icon', 'icon': 'file-image', 'unit': 'px'},\n 'webp': {'format': 'Compressed Image', 'icon': 'file-image', 'unit': 'px'},\n 'mobi': {'format': 'Mobipocket eBook', 'icon': 'file-pdf', 'unit': 'pt'},\n 'tex': {'format': 'LaTeX Source Document', 'icon': 'file-pdf', 'unit': 'pt'},\n 'djvu': {'format': 'Multi-Layer Raster Image', 'icon': 'file-alt', 'unit': 'pt'},\n 'unknown': {'format': 'This format is not supported', 'icon': 'file'},\n };\n\n public static find(filename: string, isDirectory: boolean) {\n if (filename && !isDirectory) {\n const strings = filename.split('.');\n const name = strings.pop().toLowerCase();\n if (typeof FileUtil.map[name] === \"undefined\") {\n return strings.length > 0 ? FileUtil.map['unknown'] : FileUtil.map['folder'];\n } else {\n return FileUtil.map[name];\n }\n } else {\n return FileUtil.map['folder'];\n }\n }\n}\n\nexport class FileService {\n\n constructor() {\n }\n}\n","import {Observable, Observer} from \"rxjs\";\n\nexport class UploadFilesService {\n private _uploadsChange: Observable;\n private _observer: Observer;\n\n constructor() {\n this._uploadsChange = new Observable(observer =>\n this._observer = observer);\n }\n\n get uploadsChange(): Observable {\n return this._uploadsChange;\n }\n\n changeFilesList(filesList: FileList) {\n this._observer.next(filesList);\n }\n}\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {FileModel, FileUtil} from \"../file.service\";\nimport {UploadFilesService} from \"../upload-files.service\";\nimport * as jquery from \"jquery\";\nconst $ = jquery;\n\nconst upload_disc = 'Disc';\n\nconst upload_url = 'URL';\n\nconst uploads_choices = [{name: upload_disc, icon: 'hdd'}, {name: upload_url, icon: 'link'}];\n\n@Component({\n selector: 'gd-browse-files-modal',\n templateUrl: './browse-files-modal.component.html',\n styleUrls: ['./browse-files-modal.component.less']\n})\nexport class BrowseFilesModalComponent implements OnInit {\n uploads = uploads_choices;\n\n @Input() files;\n @Input() uploadConfig;\n @Output() selectedFileGuid = new EventEmitter();\n @Output() selectedDirectory = new EventEmitter();\n @Output() urlForUpload = new EventEmitter();\n @Output() closing = new EventEmitter();\n private selectedFile: FileModel;\n showUploadUrl = false;\n showUploadFile = false;\n\n constructor(private _uploadService: UploadFilesService) {\n }\n\n ngOnInit() {\n }\n\n getSize(size: number) {\n const mb = size / 1024 / 1024;\n if (mb > 1) {\n return (Math.round(mb * 100) / 100) + ' MB';\n } else {\n const kb = size / 1024;\n if (kb > 1) {\n return (Math.round(kb * 100) / 100) + ' KB';\n }\n }\n return size + ' Bytes';\n }\n\n getFormatName(file: FileModel) {\n return FileUtil.find(file.name, file.directory).format;\n }\n\n getFormatIcon(file: FileModel) {\n return FileUtil.find(file.name, file.directory).icon;\n }\n\n choose(file: FileModel) {\n this.selectedFile = file;\n if (file.directory || file.isDirectory) {\n this.selectedDirectory.emit(file.name);\n } else {\n this.selectedFileGuid.emit(file.guid);\n }\n }\n\n goUp() {\n if (this.selectedFile) {\n let guid = this.selectedFile.guid;\n if (guid.length > 0 && guid.indexOf('/') === -1) {\n guid = '';\n } else {\n guid = guid.replace(/\\/[^\\/]+\\/?$/, '');\n }\n this.selectedDirectory.emit(guid);\n }\n }\n\n selectUpload($event: string) {\n if (upload_url === $event) {\n this.showUploadUrl = true;\n } else {\n this.showUploadUrl = false;\n $(\"#gd-upload-input\").trigger('click');\n }\n }\n\n refresh($event) {\n\n if ($event) {\n this.files = null;\n this.selectedDirectory.emit('');\n this.showUploadUrl = false;\n this.selectedFile = null;\n } else {\n this.closing.emit(true);\n }\n }\n\n showSpinner() {\n return !this.files;\n }\n\n uploadUrl(url: string) {\n if (url) {\n this.urlForUpload.emit(url);\n this.cleanUpload();\n }\n }\n\n handleFileInput(files: FileList) {\n this._uploadService.changeFilesList(files);\n }\n\n cleanUpload() {\n this.showUploadFile = false;\n this.showUploadUrl = false;\n }\n}\n","import {Observable, Subject} from \"rxjs\";\n\nexport class ZoomService {\n private _observer: Subject = new Subject();\n private readonly _zoomChange: Observable = this._observer.asObservable();\n private _zoom: number;\n\n constructor() {\n }\n\n get zoom(): number {\n return this._zoom;\n }\n\n get zoomChange(): Observable {\n return this._zoomChange;\n }\n\n changeZoom(zoom: number) {\n this._zoom = zoom;\n this._observer.next(zoom);\n }\n\n private createZoomOption(val: any, name: string, sep: boolean = false) {\n return {value: val, name: name, separator: sep}\n }\n\n zoomOptions(width, height) {\n return [this.createZoomOption(25, '25%'),\n this.createZoomOption(50, '50%'),\n this.createZoomOption(100,'100%'),\n this.createZoomOption(150, '150%'),\n this.createZoomOption(200, '200%'),\n this.createZoomOption(300, '300%'),\n this.createZoomOption(0, '', true),\n this.createZoomOption(width, 'Fit Width'),\n this.createZoomOption(height, 'Fit Height')];\n }\n}\n","import {Observable, Observer} from \"rxjs\";\n\nexport class PagePreloadService {\n private readonly _checkPreload: Observable;\n private _observer: Observer;\n\n constructor() {\n this._checkPreload = new Observable(observer =>\n this._observer = observer);\n }\n\n get checkPreload(): Observable {\n return this._checkPreload;\n }\n\n changeLastPageInView(page: number) {\n if(this._observer) {\n this._observer.next(page);\n }\n }\n}\n","import {BehaviorSubject, Observable} from \"rxjs\";\nimport {PagePreloadService} from \"./page-preload.service\";\nimport {Injectable} from \"@angular/core\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NavigateService {\n private _currentPage = 0;\n private _countPages = 0;\n private _observer: BehaviorSubject = new BehaviorSubject(null);\n private _navigate: Observable = this._observer.asObservable();\n\n constructor(private _pagePreloadService: PagePreloadService) {\n }\n\n get navigate(): Observable {\n return this._navigate;\n }\n\n get countPages(): number {\n return this._countPages;\n }\n\n set countPages(value: number) {\n this._countPages = value;\n }\n\n get currentPage(): number {\n return this._currentPage;\n }\n\n set currentPage(value: number) {\n this._currentPage = value;\n }\n\n nextPage() {\n if (this._currentPage < this._countPages) {\n this._currentPage++;\n this.navigateTo(this._currentPage);\n }\n }\n\n prevPage() {\n if (this._currentPage > 1) {\n this._currentPage--;\n this.navigateTo(this._currentPage);\n }\n }\n\n toLastPage() {\n this._currentPage = this._countPages;\n this.navigateTo(this._currentPage);\n }\n\n toFirstPage() {\n this._currentPage = 1;\n this.navigateTo(this._currentPage);\n }\n\n navigateTo(page: number) {\n this.currentPage = page;\n this._pagePreloadService.changeLastPageInView(page);\n this._observer.next(page);\n }\n}\n","import {\n AfterViewChecked,\n Component,\n ElementRef,\n Input,\n OnInit,\n AfterViewInit,\n OnChanges,\n Output,\n EventEmitter\n} from '@angular/core';\nimport {FileDescription, FileUtil} from \"../file.service\";\nimport {ZoomService} from \"../zoom.service\";\nimport * as Hammer from 'hammerjs';\nimport {WindowService} from '../window.service';\nimport * as jquery from 'jquery';\nimport { NavigateService } from '../navigate.service';\n\nconst $ = jquery;\n\n@Component({\n selector: 'gd-document',\n templateUrl: './document.component.html',\n styleUrls: ['./document.component.less']\n})\nexport class DocumentComponent implements OnInit, AfterViewChecked, AfterViewInit, OnChanges {\n\n @Input() mode: boolean;\n @Input() preloadPageCount: number;\n @Input() file: FileDescription;\n @Input() selectedPage: number;\n wait = false;\n zoom: number;\n\n docWidth = null;\n docHeight = null;\n viewportWidth = null;\n viewportHeight = null;\n scale = null;\n lastScale = null;\n container = null;\n doc = null;\n x = 0;\n lastX = 0;\n y = 0;\n lastY = 0;\n pinchCenter = null;\n pinchCenterOffset = null;\n curWidth = 0;\n curHeight = 0;\n isDesktop: boolean;\n\n constructor(protected _elementRef: ElementRef,\n private _zoomService: ZoomService,\n private _windowService: WindowService,\n private _navigateService: NavigateService,) {\n _zoomService.zoomChange.subscribe((val: number) => {\n this.zoom = val;\n });\n\n this.isDesktop = _windowService.isDesktop();\n\n this._navigateService.navigate.subscribe(((\n value => {\n this.selectedPage = value;\n })));\n }\n\n ngOnInit() {\n if (this.ifPresentation())\n {\n this.selectedPage = this._navigateService.currentPage;\n }\n }\n\n ngOnChanges() {\n }\n\n ngAfterViewInit() {\n // For current iteration we take .panzoom as a document\n this.doc = this._elementRef.nativeElement.children.item(0).children.item(0);\n // For current iteration we take .gd-document as a container\n this.container = this._elementRef.nativeElement;\n\n this.docWidth = this.doc.clientWidth;\n this.docHeight = this.doc.clientHeight;\n this.viewportWidth = this.doc.offsetWidth;\n\n // For cases where we already have zoom defined we should include it\n this.scale = (this.viewportWidth / this.docWidth) * this._zoomService.zoom / 100;\n\n this.lastScale = this.scale;\n this.viewportHeight = this.container.offsetHeight;\n this.curWidth = this.docWidth * this.scale;\n this.curHeight = this.docHeight * this.scale;\n\n const hammer = new Hammer(this.container);\n }\n\n // TODO: this temporary crutch for Excel files should be documented\n ifExcel() {\n return FileUtil.find(this.file.guid, false).format === \"Microsoft Excel\";\n }\n\n ifPresentation() {\n return FileUtil.find(this.file.guid, false).format === \"Microsoft PowerPoint\";\n }\n\n getDimensionWithUnit(value: number, pageNumber: number) {\n return this.ifPresentation() && !this.isVisible(pageNumber) ? 0 : value + (this.mode ? FileUtil.find(this.file.guid, false).unit : 'px');\n }\n\n ifEdge() {\n return navigator.userAgent.toLowerCase().indexOf('edge') > -1;\n }\n\n ngAfterViewChecked(): void {\n const elementNodeListOf = this._elementRef.nativeElement.querySelectorAll('.gd-wrapper');\n const element = elementNodeListOf.item(0);\n if (element) {\n $(element).trigger('focus');\n }\n }\n\n isVisible(pageNumber) {\n if (this.ifPresentation()) {\n return pageNumber === this.selectedPage ? true : false;\n }\n else {\n return true;\n }\n }\n}\n","import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\n\n@Component({\n selector: 'gd-page',\n templateUrl: './page.component.html',\n styleUrls: ['./page.component.less']\n})\nexport class PageComponent implements OnInit, OnChanges {\n\n @Input() angle: number;\n @Input() width: number;\n @Input() height: number;\n @Input() number: number;\n @Input() data: string;\n @Input() isHtml: boolean;\n @Input() editable: boolean;\n imgData: string;\n\n constructor() {\n }\n\n ngOnInit() {\n const isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\n if(isIE && this.number === 0){\n this.editable = false;\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n // TODO: this is temporary needed to remove unneeded spaces and BOM symbol \n // which leads to undesired spaces on the top of the docs pages\n this.data = this.data !== null ? this.data.replace(/>\\s+<')\n .replace(/\\uFEFF/g,\"\")\n .replace(/href=\"\\/viewer/g, 'href=\"http://localhost:8080/viewer')\n .replace(/src=\"\\/viewer/g, 'src=\"http://localhost:8080/viewer')\n .replace(/data=\"\\/viewer/g, 'data=\"http://localhost:8080/viewer')\n : null;\n const dataImagePngBase64 = 'data:image/png;base64,';\n this.imgData = dataImagePngBase64;\n if (!this.isHtml) {\n this.imgData += this.data;\n }\n }\n}\n","import {Pipe, PipeTransform} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\n\n@Pipe({name: 'safeHtml'})\nexport class SanitizeHtmlPipe implements PipeTransform{\n constructor(private sanitizer: DomSanitizer) {\n }\n\n transform(html: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n}\n\n@Pipe({name: 'safeResourceHtml'})\nexport class SanitizeResourceHtmlPipe implements PipeTransform{\n constructor(private sanitizer: DomSanitizer) {\n }\n\n transform(html: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustResourceUrl(html);\n }\n}\n\n@Pipe({name: 'safeStyle'})\nexport class SanitizeStylePipe implements PipeTransform{\n constructor(private sanitizer: DomSanitizer) {\n }\n\n transform(html: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustStyle(html);\n }\n}\n\n@Pipe({name: 'highlight'})\nexport class HighlightSearchPipe implements PipeTransform {\n\n transform(value: string, args: string): any {\n if (!args) {\n return value;\n }\n const re = new RegExp(args, 'gi'); //'gi' for case insensitive and can use 'g' if you want the search to be case sensitive.\n return value.replace(re, \"$& \");\n }\n}\n","import {Component, EventEmitter, OnInit, Output} from '@angular/core';\nimport {UploadFilesService} from \"../upload-files.service\";\n\n@Component({\n selector: 'gd-upload-file-zone',\n templateUrl: './upload-file-zone.component.html',\n styleUrls: ['./upload-file-zone.component.less']\n})\nexport class UploadFileZoneComponent implements OnInit {\n\n @Output() closeUpload = new EventEmitter();\n\n constructor(private _uploadService: UploadFilesService) { }\n\n ngOnInit() {\n }\n\n handleFileInput(files: FileList) {\n this._uploadService.changeFilesList(files);\n this.onCloseUpload();\n }\n\n onCloseUpload() {\n this.closeUpload.emit(true);\n }\n\n close($event) {\n if ($event.target.id === 'gd-dropZone') {\n this.onCloseUpload();\n }\n }\n}\n","import {Directive, EventEmitter, HostBinding, HostListener, Input, Output} from '@angular/core';\nimport {UploadFilesService} from \"./upload-files.service\";\n\n@Directive({\n selector: '[gdDnd]'\n})\nexport class DndDirective {\n\n @Output() closing = new EventEmitter();\n @Output() opening = new EventEmitter();\n @Output() dropped = new EventEmitter();\n\n @HostBinding('class.active') active = false;\n\n private dragCounter = 0;\n\n constructor(protected _uploadFilesService: UploadFilesService) {\n }\n\n @HostListener('dragenter', ['$event'])\n public onDragEnter(evt) {\n evt.preventDefault();\n evt.stopPropagation();\n this.dragCounter++;\n this.active = true;\n this.opening.emit(true);\n }\n\n @HostListener('dragover', ['$event'])\n public onDragOver(evt) {\n evt.preventDefault();\n evt.stopPropagation();\n return false;\n }\n\n @HostListener('dragleave', ['$event'])\n public onDragLeave(evt) {\n evt.preventDefault();\n evt.stopPropagation();\n this.dragCounter--;\n if (this.dragCounter === 0) {\n this.active = false;\n this.closeArea();\n }\n }\n\n @HostListener('drop', ['$event'])\n public onDrop(evt) {\n evt.preventDefault();\n evt.stopPropagation();\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.active = false;\n this.dropped.emit(true);\n this._uploadFilesService.changeFilesList(files);\n this.closeArea();\n }\n }\n\n @HostListener('click', ['$event'])\n public onClick(event) {\n this.closeArea();\n }\n\n private closeArea() {\n this.closing.emit(true);\n this.opening.emit(false);\n }\n}\n","import {Injectable} from '@angular/core';\nimport * as jquery from \"jquery\";\nconst $ = jquery;\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ViewportService {\n\n constructor() {\n }\n\n checkInViewport(el, zoom: number = 100, leftOffset: number = 0, deltaX: number = 0.5) {\n if (!el) {\n return false;\n }\n const x = deltaX;\n const y = 0.5;\n\n const win = $(window);\n\n const viewport = {\n top: win.scrollTop(),\n left: win.scrollLeft() + leftOffset,\n right: win.scrollLeft() + win.width() - 10,\n bottom: win.scrollTop() + win.height()\n };\n\n\n if (isNaN(zoom)) {\n zoom = 100;\n }\n\n const zoomN = zoom / 100;\n const height = $(el).outerHeight() * (zoomN);\n const width = $(el).outerWidth() * (zoomN);\n\n if (!width || !height) {\n return false;\n }\n\n const bounds = $(el).offset();\n const right = (bounds.left * (zoomN)) + width;\n const bottom = (bounds.top * (zoomN)) + height;\n\n const visible = (!(viewport.right < (bounds.left * (zoomN)) || viewport.left > right || viewport.bottom < (bounds.top * (zoomN)) || viewport.top > bottom));\n\n if (!visible) {\n return false;\n }\n\n const deltas = {\n top: parseFloat(Math.min(1, (bottom - viewport.top) / height).toFixed(2)),\n bottom: parseFloat(Math.min(1, (viewport.bottom - (bounds.top * (zoomN))) / height).toFixed(2)),\n left: parseFloat(Math.min(1, (right - viewport.left) / width).toFixed(2)),\n right: parseFloat(Math.min(1, (viewport.right - (bounds.left * (zoomN))) / width).toFixed(2))\n };\n\n return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;\n }\n}\n","import {\n AfterViewInit,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnChanges,\n OnInit,\n SimpleChanges\n} from '@angular/core';\nimport {NavigateService} from \"./navigate.service\";\nimport {PagePreloadService} from \"./page-preload.service\";\nimport {ZoomService} from \"./zoom.service\";\nimport {WindowService} from \"./window.service\";\nimport {ViewportService} from \"./viewport.service\";\nimport * as jquery from \"jquery\";\nconst $ = jquery;\n\n@Directive({\n selector: '[gdScrollable]'\n})\nexport class ScrollableDirective implements AfterViewInit, OnChanges, OnInit {\n\n private currentPage: number;\n private zoom = 100;\n private loadedPagesSet = new Set();\n\n constructor(private _elementRef: ElementRef,\n private _navigateService: NavigateService,\n private _pagePreloadService: PagePreloadService,\n private _zoomService: ZoomService,\n private _windowService: WindowService,\n private _viewportService: ViewportService) {\n\n this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;\n _zoomService.zoomChange.subscribe((val: number) => {\n this.zoom = val ? val : this.zoom;\n this.refresh();\n });\n }\n\n ngAfterViewInit() {\n this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;\n this._navigateService.navigate.subscribe((value => {\n this.currentPage = value;\n this.scrollToPage(value);\n }));\n this.refresh();\n }\n\n @HostListener('scroll') scrolling() {\n this.refresh();\n }\n\n @HostListener('window:resize') resizing() {\n this.refresh();\n }\n\n scrollToPage(pageNumber: number) {\n const el = this._elementRef.nativeElement;\n const page = this.getPage(pageNumber);\n const prev = pageNumber > 0 ? this.getPage(pageNumber - 1) : null;\n const isSameTop = (prev && $(prev).offset().top === $(page).offset().top);\n if (this._viewportService.checkInViewport(page, this.zoom) && isSameTop) {\n return;\n }\n const pagesHeight = this.calculateOffset(pageNumber);\n const options = {\n left: 0,\n top: pagesHeight\n };\n if(el){\n // using polyfill\n el.scroll(options);\n }\n }\n\n private getChildren() {\n const el = this._elementRef ? this._elementRef.nativeElement : null;\n if (el) {\n // here and in the similar line below we getting the document pages\n return el.children.item(0).children.item(0).children;\n }\n }\n\n private getPage(pageNumber: number) {\n const el = this._elementRef ? this._elementRef.nativeElement : null;\n if (el) {\n return el.children.item(0).children.item(0).children.item(pageNumber - 1);\n }\n }\n\n private calculateOffset(pageNumber: number) {\n const count = this._windowService.isFirefox() ? 1 : this.countPagesOnWidth();\n const margin = this._windowService.isDesktop() ? 40 : 10;\n let pagesHeight = 0;\n for (let i = 1; i < pageNumber / count; i++) {\n const item = this.getPage(i);\n const clientHeight = item ? item.clientHeight : 0;\n pagesHeight += clientHeight > 0 ? clientHeight * this.getZoom() + margin : 0;\n }\n return pagesHeight;\n }\n\n private countPagesOnWidth() {\n const pageEl = this.getPage(1);\n const offset = 150;\n const count = Math.floor((this.getWidth() - offset) / (pageEl.getBoundingClientRect().width * this.getZoom()));\n return count === 0 ? 1 : count;\n }\n\n refresh() {\n let page;\n let currentPageSet = false;\n const pageElem = this.getPage(this.currentPage);\n const currentPageRect = this.currentPage && pageElem ? pageElem.getBoundingClientRect() : null;\n for (page = 1; page < this.getChildren().length + 1; page++) {\n const element = this.getPage(page);\n if (this._viewportService.checkInViewport(element, this.zoom)) {\n if (!currentPageSet) {\n if (!this.currentPage || !pageElem || (this.currentPage && currentPageRect && element.getBoundingClientRect().top !== currentPageRect.top)) {\n this.currentPage = page;\n if (this._navigateService.currentPage === 0) {\n this._navigateService.currentPage = page;\n }\n }\n currentPageSet = true;\n }\n if (!this.loadedPagesSet.has(page)) {\n this._pagePreloadService.changeLastPageInView(page);\n this.loadedPagesSet.add(page);\n }\n }\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.refresh();\n }\n\n ngOnInit(): void {\n this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;\n }\n\n\n private getWidth() {\n return this._elementRef ? this._elementRef.nativeElement.offsetWidth : window.innerWidth;\n }\n\n private getZoom() {\n return this.zoom / 100;\n }\n}\n","import {\n Directive,\n EventEmitter,\n HostListener,\n Output} from '@angular/core';\nimport * as jquery from \"jquery\";\nconst $ = jquery;\n\n@Directive({\n selector: '[gdMouseWheel]'\n})\nexport class MouseWheelDirective {\n @Output() mouseWheelUp = new EventEmitter();\n @Output() mouseWheelDown = new EventEmitter();\n\n @HostListener('mousewheel', ['$event']) onMouseWheelChrome(event: any) {\n this.mouseWheelFunc(event);\n }\n\n @HostListener('DOMMouseScroll', ['$event']) onMouseWheelFirefox(event: any) {\n this.mouseWheelFunc(event);\n }\n\n @HostListener('onmousewheel', ['$event']) onMouseWheelIE(event: any) {\n this.mouseWheelFunc(event);\n }\n\n mouseWheelFunc(event: any) {\n event = window.event ;\n const delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));\n if(delta > 0) {\n this.mouseWheelUp.emit(event);\n } else if(delta < 0) {\n this.mouseWheelDown.emit(event);\n }\n }\n}\n","import {AfterViewInit, Directive, HostBinding, Input, OnDestroy, OnInit, ElementRef, OnChanges} from '@angular/core';\nimport {ZoomService} from \"./zoom.service\";\nimport {FileUtil} from \"./file.service\";\nimport { WindowService } from './window.service';\n\n@Directive({\n selector: '[gdZoom]'\n})\nexport class ZoomDirective implements OnInit, OnDestroy, AfterViewInit, OnChanges {\n\n @Input() zoomActive = true;\n @Input() file;\n\n @HostBinding('style.zoom') zoomInt: number;\n @HostBinding('style.transform') transform: string;\n @HostBinding('style.transform-origin') transformOrigin: string;\n @HostBinding('style.width') width: string;\n @HostBinding('style.height') height: string;\n @HostBinding('style.min-width') minWidth: string;\n el: ElementRef;\n\n constructor(private _zoomService: ZoomService, private _windowService: WindowService, el: ElementRef) {\n this.el = el;\n }\n\n ngOnDestroy(): void {\n }\n\n ngOnChanges(): void {\n this.setStyles(this._zoomService.zoom);\n this.resizePages(this._zoomService.zoom);\n }\n\n ngOnInit(): void {\n if (! this.zoomActive) {\n return;\n }\n\n this.setStyles(this._zoomService.zoom);\n this._zoomService.zoomChange.subscribe((zoom) => {\n this.setStyles(zoom);\n this.resizePages(zoom);\n });\n }\n\n private setStyles(zoom) {\n if (! this.zoomActive) {\n return;\n }\n\n const zoomInt = zoom === 100 ? 1 : zoom / 100;\n \n if (this._windowService.isEdge()) {\n this.zoomInt = zoomInt;\n }\n else {\n this.zoomInt = null;\n }\n \n if (!this._windowService.isEdge()) {\n this.transform = 'scale(' + zoomInt + ')';\n this.transformOrigin = 'top left';\n }\n else {\n this.transform = \"\";\n this.transformOrigin = \"\";\n }\n\n let maxWidth = 0;\n this.file.pages.forEach(page => {\n {\n if (page.width > maxWidth){\n maxWidth = page.width;\n }\n }\n });\n\n // Images and Excel-related files receiving dimensions in px from server\n this.minWidth = maxWidth + FileUtil.find(this.file.guid, false).unit;\n }\n\n private getScrollWidth(elm){\n return elm.offsetWidth - elm.clientWidth;\n }\n\n private getScrollHeight(elm){\n return elm.offsetHeight - elm.clientHeight;\n }\n\n private resizePages(zoom){\n const zoomInt = zoom === 100 ? 1 : zoom / 100;\n\n const viewPortWidth = this.el.nativeElement.parentElement.offsetWidth;\n const viewPortHeight = this.el.nativeElement.parentElement.offsetHeight;\n const scrollWidth = this.getScrollWidth(this.el.nativeElement.parentElement);\n const scrollHeight = this.getScrollHeight(this.el.nativeElement.parentElement);\n this.width = (viewPortWidth/zoomInt - scrollWidth/zoomInt) + 'px';\n this.height = (viewPortHeight/zoomInt - scrollHeight/zoomInt) + 'px';\n }\n\n ngAfterViewInit(): void {\n this.setStyles(this._zoomService.zoom);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Observable, Subject} from \"rxjs\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class OnCloseService {\n private _observer: Subject = new Subject();\n private readonly _onClose: Observable = this._observer.asObservable();\n\n constructor() {\n }\n\n get onClose() {\n return this._onClose;\n }\n\n close(close: boolean) {\n this._observer.next(close)\n }\n}\n","import {Component, EventEmitter, Input, Output} from '@angular/core';\nimport {OnCloseService} from \"../on-close.service\";\n\nexport interface Option {\n name: string;\n value: any;\n separator: boolean;\n}\n\n@Component({\n selector: 'gd-select',\n templateUrl: './select.component.html',\n styleUrls: ['./select.component.less']\n})\nexport class SelectComponent {\n\n @Input() options: Option[];\n @Input() disabled = false;\n @Input() showSelected: Option;\n @Output() selected: EventEmitter = new EventEmitter();\n @Input() isOpen = false;\n @Input() icon: string;\n\n constructor(protected _onCloseService: OnCloseService) {\n _onCloseService.onClose.subscribe(() => {\n this.close();\n });\n }\n\n open() {\n if (!this.disabled) {\n this.isOpen = true;\n }\n }\n\n close() {\n this.isOpen = false;\n }\n\n onClickOutside(event : Event){\n this.close();\n }\n\n toggle($event) {\n // TODO: following lines were uncommented due to needness in signature app\n $event.preventDefault();\n $event.stopPropagation();\n if (!this.disabled) {\n this.isOpen = !this.isOpen;\n }\n }\n\n select($event, value: Option) {\n $event.preventDefault();\n $event.stopPropagation();\n this.selected.emit(value);\n this.close();\n }\n}\n","import {Directive, HostBinding, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\n\n@Directive({\n selector: '[gdDisabledCursor]'\n})\nexport class DisabledCursorDirective implements OnInit, OnChanges {\n\n @Input() dis: boolean;\n\n constructor() {\n }\n\n @HostBinding('class.inactive') cursor: boolean;\n\n private updateCursor() {\n this.cursor = this.dis ? true : false;\n }\n\n ngOnInit(): void {\n this.updateCursor();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.updateCursor()\n }\n}\n","import {Directive, HostBinding, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\n\n@Directive({\n selector: '[gdRotation]'\n})\nexport class RotationDirective implements OnInit, OnChanges {\n\n @Input() angle: number;\n @Input() isHtmlMode: boolean;\n @Input() width: number;\n @Input() height: number;\n @Input() withMargin = true;\n\n @HostBinding('style.animation') animation: string;\n @HostBinding('style.transition-property') transition: string;\n @HostBinding('style.transform') transform: string;\n\n @HostBinding('style.margin') margin: string;\n\n constructor() {\n }\n\n private updateCursor() {\n if (typeof this.angle === \"string\"){\n this.angle = parseInt(this.angle, 10);\n }\n\n if (this.angle) {\n this.animation = 'none';\n this.transition = 'none';\n this.transform = 'rotate(' + this.angle + 'deg)';\n } else if (this.angle === 0 && this.animation) {\n this.animation = null;\n this.transition = null;\n this.transform = null;\n }\n\n if (this.withMargin) {\n if (this.angle === 90 || this.angle === 270 || this.angle === -90 || this.angle === -270) {\n if (this.isHtmlMode) {\n if (this.isLandscape()) {\n this.margin = '164px 254px';\n } else {\n this.margin = '-111px 254px';\n }\n } else {\n if (this.isLandscape()) {\n this.margin = '129px 100px -79px';\n } else {\n this.margin = '-72px 100px -79px';\n }\n }\n } else if (this.angle === -180 || this.angle === 180) {\n this.margin = '280px';\n } else {\n this.margin = null;\n }\n }\n\n }\n\n isLandscape() {\n return this.width > this.height;\n }\n\n ngOnInit(): void {\n this.updateCursor();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.updateCursor()\n }\n\n}\n","import {Component, Input, Output, EventEmitter, OnInit} from '@angular/core';\n\n@Component({\n selector: 'gd-init-state',\n templateUrl: './init-state.component.html',\n styleUrls: ['./init-state.component.less']\n})\nexport class InitStateComponent implements OnInit {\n @Input() icon: string;\n @Input() text: string;\n @Output() fileDropped = new EventEmitter();\n showUploadFile = false;\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n dropped($event) {\n if ($event) {\n this.fileDropped.emit($event);\n this.showUploadFile = false;\n }\n }\n}\n","import {Observable, Observer} from \"rxjs\";\nimport {PageModel} from \"./file.service\";\n\nexport class RenderPrintService {\n private _render: Observable;\n private _observer: Observer;\n private _renderBlob: Observable;\n private _observerBlob: Observer;\n\n constructor() {\n this._render = new Observable(observer =>\n this._observer = observer);\n this._renderBlob = new Observable(observer =>\n this._observerBlob = observer);\n }\n\n get renderPrint(): Observable {\n return this._render;\n }\n\n changePages(pages: PageModel[]) {\n this._observer.next(pages);\n }\n\n get renderPrintBlob(): Observable {\n return this._renderBlob;\n }\n\n changeBlob(file: Blob) {\n this._observerBlob.next(file);\n }\n}\n","import {Directive, Input} from '@angular/core';\nimport {PageModel} from \"./file.service\";\nimport {RenderPrintService} from \"./render-print.service\";\n\n@Directive({\n selector: '[gdRenderPrint]'\n})\nexport class RenderPrintDirective {\n @Input() htmlMode: boolean;\n\n constructor(private _renderService: RenderPrintService) {\n _renderService.renderPrint.subscribe(pages => {\n this.renderPrint(pages);\n });\n _renderService.renderPrintBlob.subscribe(file => {\n this.renderPrintBlob(file);\n });\n }\n\n private renderPrint(pages: PageModel[]) {\n let pagesHtml = '';\n\n for (const page of pages) {\n pagesHtml += '';\n }\n\n this.openWindow(pagesHtml, pages[0].width, pages[0].height);\n }\n\n private openWindow(pagesHtml, width, height) {\n const a4Height = 842;\n const a4Width = 595;\n let imageA4Adjusted = '';\n if(width > a4Width && height > a4Height){\n const zoom = Math.round(height / a4Height) / 100;\n imageA4Adjusted = '.gd-page img { width: 100%; margin: 0; padding: 0;}';\n if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){\n imageA4Adjusted = '.gd-page img { transform: scale(' + zoom + ');}';\n }\n }\n let cssPrint = '';\n\n const windowObject = window.open('', \"PrintWindow\", \"width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes\");\n windowObject.focus();\n windowObject.document.writeln(cssPrint);\n windowObject.document.writeln(pagesHtml);\n windowObject.document.close();\n setTimeout(() => {\n windowObject.focus();\n windowObject.print();\n windowObject.close();\n }, 100);\n }\n\n private renderPrintBlob(file: Blob) {\n const fileURL = URL.createObjectURL(file);\n const windowObject = window.open(fileURL, \"PrintWindow\", \"width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes\");\n windowObject.focus();\n windowObject.print();\n windowObject.close();\n }\n}\n","import {BehaviorSubject, Observable} from \"rxjs\";\n\nexport class ExceptionMessageService {\n private _observer: BehaviorSubject = new BehaviorSubject('Server is not available');\n private _messageChange: Observable = this._observer.asObservable();\n\n constructor() {\n }\n\n get messageChange(): Observable {\n return this._messageChange;\n }\n\n changeMessage(message: string) {\n this._observer.next(message);\n }\n}\n","import {Component, OnInit} from '@angular/core';\nimport {ExceptionMessageService} from \"../exception-message.service\";\n\n@Component({\n selector: 'gd-error-modal',\n templateUrl: './error-modal.component.html',\n styleUrls: ['./error-modal.component.less']\n})\nexport class ErrorModalComponent implements OnInit {\n\n message: string;\n\n constructor(messageService: ExceptionMessageService) {\n messageService.messageChange.subscribe(message => this.message = message);\n }\n\n ngOnInit() {\n }\n\n}\n","import {Observable, Subject} from \"rxjs\";\n\nexport class PasswordService {\n private _observer: Subject = new Subject();\n private readonly _passChange: Observable = this._observer.asObservable();\n\n constructor() {\n }\n\n get passChange(): Observable {\n return this._passChange;\n }\n\n setPassword(pass: string) {\n this._observer.next(pass);\n }\n}\n","import {Component, EventEmitter, OnInit, Output} from '@angular/core';\nimport {ExceptionMessageService} from \"../exception-message.service\";\nimport {PasswordService} from \"../password.service\";\nimport * as jquery from \"jquery\";\n\nconst $ = jquery;\n\n@Component({\n selector: 'gd-password-required',\n templateUrl: './password-required.component.html',\n styleUrls: ['./password-required.component.less']\n})\nexport class PasswordRequiredComponent implements OnInit {\n message: string;\n @Output() cancelEvent = new EventEmitter();\n\n constructor(messageService: ExceptionMessageService, private _passwordService: PasswordService) {\n messageService.messageChange.subscribe(message => this.message = message);\n }\n\n ngOnInit() {\n }\n\n setPassword(value: string) {\n this._passwordService.setPassword(value);\n }\n\n onCloseOpen($event: boolean) {\n if ($event) {\n setTimeout(() => {\n const element = $(\"#password\");\n if (element) {\n element.focus();\n }\n }, 100);\n } else {\n $(\"#password\").val(\"\");\n }\n }\n\n cancel($event: boolean) {\n $(\"#password\").val(\"\");\n this.cancelEvent.emit(true);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from \"@angular/common/http\";\nimport {Observable, throwError} from \"rxjs\";\nimport {catchError, map} from \"rxjs/operators\";\nimport {ExceptionMessageService} from \"./exception-message.service\";\nimport {HttpError} from \"./file.service\";\nimport {CommonModals, ModalService} from \"./modal.service\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ErrorInterceptorService implements HttpInterceptor {\n\n constructor(private _modalService: ModalService, private _messageService: ExceptionMessageService) {\n }\n\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\n const logFormat = 'background: maroon; color: white';\n\n return next.handle(req)\n .pipe(map(data => {\n return data;\n }),\n catchError((exception: HttpEvent) => {\n if (exception instanceof HttpErrorResponse) {\n switch (exception.status) {\n\n case HttpError.BadRequest:\n console.error('%c Bad Request 400', logFormat);\n break;\n case HttpError.Unauthorized:\n console.error('%c Unauthorized 401', logFormat);\n break;\n case HttpError.NotFound:\n console.error('%c Not Found 404', logFormat);\n break;\n case HttpError.TimeOut:\n console.error('%c TimeOut 408', logFormat);\n break;\n case HttpError.InternalServerError:\n console.error('%c big bad 500', logFormat);\n this._messageService.changeMessage(exception.error.message);\n this._modalService.open(CommonModals.ErrorMessage);\n break;\n\n case HttpError.Forbidden:\n console.error('%c Forbidden 403', logFormat);\n this._messageService.changeMessage(exception.error.message);\n this._modalService.open(CommonModals.PasswordRequired);\n break;\n }\n }\n return throwError(exception);\n }));\n }\n}\n","import {Observable, Subject} from \"rxjs\";\n\nexport class SearchService {\n private _observer: Subject = new Subject();\n private readonly _textChange: Observable = this._observer.asObservable();\n\n private _observerCurrent: Subject = new Subject();\n private readonly _currentChange: Observable = this._observerCurrent.asObservable();\n\n private _observerTotal: Subject = new Subject();\n private readonly _totalChange: Observable = this._observerTotal.asObservable();\n\n constructor() {\n }\n\n get textChange(): Observable {\n return this._textChange;\n }\n\n setText(text: string) {\n this._observer.next(text);\n }\n\n get currentChange(): Observable {\n return this._currentChange;\n }\n\n get totalChange(): Observable {\n return this._totalChange;\n }\n\n setCurrent(current: number) {\n this._observerCurrent.next(current);\n }\n\n setTotal(total: number) {\n this._observerTotal.next(total);\n }\n}\n","import {AfterViewInit, Component, ElementRef, EventEmitter, OnInit, Output, ViewChild} from '@angular/core';\nimport {SearchService} from \"../search.service\";\n\n@Component({\n selector: 'gd-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.less']\n})\nexport class SearchComponent implements OnInit, AfterViewInit {\n\n @Output() hidePanel = new EventEmitter(false);\n\n current = 0;\n total = 0;\n\n @ViewChild('text',{\n static : true\n }) textElement: ElementRef;\n\n constructor(private _searchService: SearchService) {\n _searchService.totalChange.subscribe((total: number) => {\n this.total = total;\n if (total !== 0) {\n this.current = 1;\n } else {\n this.current = 0;\n }\n this._searchService.setCurrent(this.current);\n });\n }\n\n ngOnInit() {\n }\n\n setText(text: string) {\n this._searchService.setText(text);\n }\n\n hide() {\n this.setText('');\n this.hidePanel.emit(true);\n }\n\n prev() {\n if (this.current > 1) {\n this.current--;\n this._searchService.setCurrent(this.current);\n }\n }\n\n next() {\n if (this.current < this.total) {\n this.current++;\n this._searchService.setCurrent(this.current);\n }\n }\n\n ngAfterViewInit(): void {\n this.textElement.nativeElement.focus();\n }\n}\n","import {Directive, ElementRef} from '@angular/core';\nimport {SearchService} from \"./search.service\";\nimport {HighlightSearchPipe} from \"./pipes\";\nimport {ZoomService} from \"./zoom.service\";\nimport * as jquery from \"jquery\";\nconst $ = jquery;\n\n@Directive({\n selector: '[gdSearchable]'\n})\nexport class SearchableDirective {\n\n text: string;\n current = 0;\n total = 0;\n private zoom = 100;\n\n constructor(private _elementRef: ElementRef,\n private _searchService: SearchService,\n private _highlight: HighlightSearchPipe,\n private _zoomService: ZoomService) {\n _searchService.currentChange.subscribe((current: number) => {\n this.current = current;\n if (this.current !== 0) {\n this.moveToCurrent();\n }\n });\n\n _searchService.textChange.subscribe((text: string) => {\n this.text = text;\n this.highlightSearch();\n });\n\n this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;\n _zoomService.zoomChange.subscribe((val: number) => {\n this.zoom = val ? val : this.zoom;\n });\n }\n\n private highlightSearch() {\n const el = this._elementRef ? this._elementRef.nativeElement : null;\n if (el) {\n this.cleanHighlight(el);\n if (this.text) {\n this.highlightEl(el);\n const count = el.querySelectorAll('.gd-highlight').length;\n this.total = count;\n } else {\n this.total = 0;\n }\n this._searchService.setTotal(this.total);\n }\n }\n\n private moveToCurrent() {\n if (this.current === 0) {\n return;\n }\n const currentZoom = this.getZoom();\n const el = this._elementRef ? this._elementRef.nativeElement : null;\n if (el) {\n el.querySelectorAll('.gd-highlight-select').forEach(function (value) {\n $(value).removeClass('gd-highlight-select');\n });\n const currentEl = el.querySelectorAll('.gd-highlight')[this.current - 1];\n $(currentEl).addClass('gd-highlight-select');\n if (currentEl) {\n const options = {\n left: 0,\n top: ($(currentEl).offset().top) + el.parentElement.parentElement.scrollTop - 150,\n };\n // using polyfill\n el.parentElement.parentElement.scroll(options);\n }\n }\n }\n\n private highlightEl(el: Element) {\n const textNodes = $(el).find('*').contents().filter(function () {\n const nodeName = this.parentElement.nodeName.toLowerCase();\n const checkClass = (this).classList ? !(this).classList.contains('gd-highlight') : true;\n return this.nodeType === 3 &&\n this.textContent.trim().length !== 0 &&\n nodeName !== 'style' &&\n nodeName !== 'title' &&\n nodeName !== 'body' &&\n nodeName !== 'script' &&\n checkClass;\n });\n const text = this.text;\n const highlight = this._highlight;\n textNodes.each(function () {\n const $this = $(this);\n let content = $this.text();\n content = highlight.transform(content, text);\n $this.replaceWith(content);\n });\n el.normalize();\n }\n\n private cleanHighlight(el: HTMLElement) {\n const nodeListOf = el.querySelectorAll('.gd-highlight');\n for (let i = 0; i < nodeListOf.length; i++) {\n const element = nodeListOf.item(i);\n element.replaceWith((element).innerText);\n }\n el.normalize();\n }\n\n private getZoom() {\n return this.zoom / 100;\n }\n}\n","import {Component, Input, OnInit} from '@angular/core';\n\n@Component({\n selector: 'gd-tabbed-toolbars',\n templateUrl: './tabbed-toolbars.component.html',\n styleUrls: ['./tabbed-toolbars.component.less']\n})\nexport class TabbedToolbarsComponent implements OnInit {\n @Input() logo: string;\n @Input() icon: string;\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n}\n","import {Observable, Subject} from \"rxjs\";\n\nexport class TabActivatorService {\n private _observer: Subject = new Subject();\n private readonly _activeTabChange: Observable = this._observer.asObservable();\n\n constructor() {\n }\n\n get activeTabChange(): Observable {\n return this._activeTabChange;\n }\n\n changeActiveTab(tabId: string) {\n this._observer.next(tabId);\n }\n}\n","import {Component, Input, OnInit} from '@angular/core';\nimport {TabActivatorService} from \"../tab-activator.service\";\n\n@Component({\n selector: 'gd-tab',\n templateUrl: './tab.component.html',\n styleUrls: ['./tab.component.less']\n})\nexport class TabComponent implements OnInit {\n @Input() id: string;\n @Input() tabTitle: string;\n @Input() icon: string;\n @Input() disabled = false;\n @Input() active = false;\n @Input() content = true;\n\n constructor(private _tabActivatorService: TabActivatorService) {\n this._tabActivatorService.activeTabChange.subscribe((tabId: string) => {\n this.activation(tabId);\n });\n }\n\n private activation(tabId: string) {\n if (this.id === tabId) {\n this.active = true;\n } else {\n this.active = false;\n }\n }\n\n ngOnInit() {\n }\n\n selectTab() {\n if (this.disabled) {\n return;\n }\n this._tabActivatorService.changeActiveTab(this.id);\n }\n}\n","import {Component} from '@angular/core';\n\n@Component({\n selector: 'gd-tabs',\n templateUrl: './tabs.component.html',\n styleUrls: ['./tabs.component.less']\n})\nexport class TabsComponent {\n constructor() {\n }\n\n}\n","import {Observable, Subject} from \"rxjs\";\n\nexport class Formatting {\n constructor(fontSize: number, color: string, bgColor: string, bold: boolean, italic: boolean, underline: boolean, font: string, strikeout: boolean, align: string, list: string) {\n this.fontSize = fontSize;\n this.color = color;\n this.bgColor = bgColor;\n this.bold = bold;\n this.italic = italic;\n this.underline = underline;\n this.font = font;\n this.strikeout = strikeout;\n this.align = align;\n this.list = list;\n }\n\n bold: boolean;\n italic: boolean;\n underline: boolean;\n fontSize: number;\n color: string;\n bgColor: string;\n font: string;\n strikeout: boolean;\n align: string;\n list: string;\n\n public static default(): Formatting {\n return new Formatting(10, '#000000', '#FFFFFF', false, false, false, 'Arial', false, \"\", \"\");\n }\n}\n\nexport class FormattingService {\n private _observerBold: Subject = new Subject();\n private readonly _formatBoldChange: Observable = this._observerBold.asObservable();\n private _observerUnderline: Subject = new Subject();\n private readonly _formatUnderlineChange: Observable = this._observerUnderline.asObservable();\n private _observerUndo: Subject = new Subject();\n private readonly _undo: Observable = this._observerUndo.asObservable();\n private _observerRedo: Subject = new Subject();\n private readonly _redo: Observable = this._observerRedo.asObservable();\n private _observerItalic: Subject = new Subject();\n private readonly _formatItalicChange: Observable = this._observerItalic.asObservable();\n private _observerColor: Subject = new Subject();\n private readonly _formatColorChange: Observable = this._observerColor.asObservable();\n private _observerBgColor: Subject = new Subject();\n private readonly _formatBgColorChange: Observable = this._observerBgColor.asObservable();\n private _observerFontSize: Subject = new Subject();\n private readonly _formatFontSizeChange: Observable = this._observerFontSize.asObservable();\n private _observerFont: Subject = new Subject();\n private readonly _formatFontChange: Observable = this._observerFont.asObservable();\n private _observerStrikeout: Subject = new Subject();\n private readonly _formatStrikeoutChange: Observable = this._observerStrikeout.asObservable();\n private _observerAlign: Subject = new Subject();\n private readonly _formatAlignChange: Observable = this._observerAlign.asObservable();\n private _observerList: Subject = new Subject();\n private readonly _formatListChange: Observable = this._observerList.asObservable();\n\n constructor() {\n }\n\n get formatBoldChange() {\n return this._formatBoldChange;\n }\n\n get formatUnderlineChange() {\n return this._formatUnderlineChange;\n }\n\n get formatColorChange() {\n return this._formatColorChange;\n }\n\n get formatBgColorChange() {\n return this._formatBgColorChange;\n }\n\n get formatFontSizeChange() {\n return this._formatFontSizeChange;\n }\n\n get formatFontChange() {\n return this._formatFontChange;\n }\n\n get undo() {\n return this._undo;\n }\n\n get redo() {\n return this._redo;\n }\n\n get formatItalicChange() {\n return this._formatItalicChange;\n }\n\n get formatStrikeoutChange() {\n return this._formatStrikeoutChange;\n }\n\n get formatAlignChange() {\n return this._formatAlignChange;\n }\n\n get formatListChange() {\n return this._formatListChange;\n }\n\n static createFontSizeOption(val: number) {\n return {value: val, name: val + 'px', separator: false}\n }\n\n static getFontSizeOptions() {\n return [\n FormattingService.createFontSizeOption(8),\n FormattingService.createFontSizeOption(10),\n FormattingService.createFontSizeOption(12),\n FormattingService.createFontSizeOption(14),\n FormattingService.createFontSizeOption(16),\n FormattingService.createFontSizeOption(18),\n FormattingService.createFontSizeOption(20),\n FormattingService.createFontSizeOption(22),\n FormattingService.createFontSizeOption(24),\n ];\n }\n\n static createFontOption(val: string) {\n return {value: val, name: val, separator: false}\n }\n\n static getFontOptions() {\n const fonts = [\"Arial\", \"Calibri\", \"Century Gothic\", \"Comic Sans\", \"Consolas\", \"Courier\", \"Dejavu Sans\", \"Dejavu Serif\", \"Georgia\", \"Gill Sans\", \"Helvetica\", \"Impact\", \"Lucida Sans\",\n \"Myriad Pro\", \"Open Sans\", \"Palatino\", \"Tahoma\", \"Times New Roman\", \"Trebuchet\"];\n const fontOptions = [];\n fonts.forEach(font => {\n fontOptions.push(this.createFontOption(font));\n })\n\n return fontOptions;\n }\n\n changeFormatFontSize($event: number) {\n this._observerFontSize.next($event);\n }\n\n changeFormatBold(bold: boolean) {\n this._observerBold.next(bold);\n }\n\n changeFormatUnderline(underline: boolean) {\n this._observerUnderline.next(underline);\n }\n\n Undo() {\n this._observerUndo.next();\n }\n\n Redo() {\n this._observerRedo.next();\n }\n\n changeFormatItalic(italic: boolean) {\n this._observerItalic.next(italic);\n }\n\n changeFormatColor(color: string) {\n this._observerColor.next(color);\n }\n\n changeFormatBgColor(bgcolor: string) {\n this._observerBgColor.next(bgcolor);\n }\n\n changeFormatFont(font: string) {\n this._observerFont.next(font);\n }\n\n changeFormatStrikeout(strikeout: boolean) {\n this._observerStrikeout.next(strikeout);\n }\n\n changeFormatAlign(align: string) {\n this._observerAlign.next(align);\n }\n\n changeFormatList(list: string) {\n this._observerList.next(list);\n }\n}\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\n\nconst DEFAULT_COLORS = [\n '#000000', '#434343', '#666666', '#999999', '#B7B7B7', '#CCCCCC', '#D9D9D9', '#EFEFEF', '#F3F3F3', '#FFFFFF',\n '#980000', '#FF0000', '#FF9900', '#FFFF00', '#00FF00', '#00FFFF', '#4986E8', '#0000FF', '#9900FF', '#FF00FF',\n '#E6B8AF', '#F4CCCC', '#FDE5CD', '#FFF2CC', '#D9EAD3', '#D0E0E2', '#C9DAF8', '#CFE2F3', '#D9D2E9', '#EAD1DC',\n '#DD7E6B', '#EA9899', '#F9CB9C', '#FFE59A', '#B7D7A8', '#A2C4C9', '#A4C2F4', '#9FC5E8', '#B4A7D7', '#D5A6BD',\n '#CC4125', '#E06666', '#F6B26B', '#FFD966', '#92C47D', '#75A5AF', '#6D9EEB', '#6FA9DB', '#8E7CC3', '#C27BA0',\n '#A61C00', '#CC0000', '#E69138', '#F2C131', '#6AA84F', '#45818E', '#3C78D8', '#3C85C6', '#674EA7', '#A64D79',\n '#85200B', '#990000', '#B45F05', '#BF9000', '#37761D', '#144F5C', '#1254CC', '#0A5394', '#351C75', '#741B47',\n '#5B0F00', '#660000', '#783F03', '#7F6000', '#284E13', '#0B343D', '#1B4586', '#063763', '#20124D', '#4C1030',\n];\n\n@Component({\n selector: 'gd-color-picker',\n templateUrl: './color-picker.component.html',\n styleUrls: ['./color-picker.component.less']\n})\nexport class ColorPickerComponent implements OnInit {\n @Input() isOpen = false;\n @Output() selectedColor = new EventEmitter();\n @Output() closeOutside = new EventEmitter();\n colors: any = DEFAULT_COLORS;\n white = '#FFFFFF';\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n select($event, color: string) {\n $event.preventDefault();\n $event.stopPropagation();\n this.selectedColor.emit(color);\n }\n\n close() {\n this.isOpen = false;\n this.closeOutside.emit(true);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {FormattingService} from \"./formatting.service\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BackFormattingService extends FormattingService {\n\n constructor() {\n super();\n }\n}\n","import {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SelectionService {\n selection: Range;\n isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\n\n restoreSelection() {\n if(this.selection && !this.selection.collapsed || this.isIE){\n this.putSelection(this.selection );\n }\n }\n\n captureSelection() {\n const selection = window.getSelection();\n if (selection.rangeCount > 0) {\n this.selection = selection.getRangeAt(0);\n }\n }\n\n private putSelection(selection) {\n const sel = window.getSelection();\n sel.removeAllRanges();\n sel.addRange(selection.cloneRange());\n }\n\n refreshSelection() {\n this.captureSelection();\n this.restoreSelection();\n }\n}\n","import {Directive, HostListener, OnInit} from '@angular/core';\nimport {FormattingService} from \"./formatting.service\";\nimport {BackFormattingService} from \"./back-formatting.service\";\nimport * as jquery from 'jquery';\nconst $ = jquery;\nimport {SelectionService} from './selection.service';\n\n@Directive({\n selector: '[gdFormatting]'\n})\nexport class FormattingDirective implements OnInit {\n\n private bold = false;\n private italic = false;\n private underline = false;\n private color: string;\n private bgColor: string;\n private font: string;\n private strikeout = false;\n private align: string;\n private list: string;\n private isIE = false;\n\n constructor(private _formattingService: FormattingService,\n private _backFormattingService: BackFormattingService,\n private _selectionService: SelectionService) {\n this.isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\n }\n\n @HostListener('mouseup') mouseup() {\n\n this.bold = document.queryCommandState(\"bold\");\n this.strikeout = document.queryCommandState(\"strikeThrough\");\n this.italic = document.queryCommandState(\"italic\");\n this.bgColor = document.queryCommandValue(\"backColor\");\n this.underline = document.queryCommandState(\"underline\");\n this.align = this.checkJustify();\n this.list = this.checkList();\n\n //fix required by FireFox to get correct background color\n if (this.bgColor === \"transparent\") {\n this.bgColor = $(window.getSelection().focusNode.parentNode).css('background-color').toString();\n }\n this.font = document.queryCommandValue(\"FontName\").replace(/\"/g, '');\n if(this.font.split(\",\").length > 1){\n this.font = this.font.split(\",\")[0];\n }\n this.color = document.queryCommandValue(\"foreColor\");\n this._backFormattingService.changeFormatBold(this.bold);\n this._backFormattingService.changeFormatUnderline(this.underline);\n this._backFormattingService.changeFormatItalic(this.italic);\n this._backFormattingService.changeFormatColor(this.color);\n this._backFormattingService.changeFormatBgColor(this.bgColor);\n this._backFormattingService.changeFormatFontSize(this.reportFontSize());\n this._backFormattingService.changeFormatFont(this.font);\n this._backFormattingService.changeFormatStrikeout(this.strikeout);\n this._backFormattingService.changeFormatAlign(this.align);\n this._backFormattingService.changeFormatList(this.list);\n }\n\n private checkJustify() {\n let align = \"\";\n align = document.queryCommandState(\"justifyCenter\") ? \"center\" : align;\n align = document.queryCommandState(\"justifyFull\") ? \"full\" : align;\n align = document.queryCommandState(\"justifyLeft\") ? \"left\" : align;\n align = document.queryCommandState(\"justifyRight\") ? \"right\" : align;\n return align;\n }\n\n private checkList() {\n let list = \"\";\n list = document.queryCommandState(\"insertUnorderedList\") ? \"unordered\" : list;\n list = document.queryCommandState(\"insertOrderedList\") ? \"ordered\" : list;\n return list;\n }\n\n reportFontSize(): number {\n let containerEl, sel;\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.rangeCount) {\n containerEl = sel.getRangeAt(0).commonAncestorContainer;\n // Make sure we have an element rather than a text node\n if (containerEl.nodeType === 3) {\n containerEl = containerEl.parentNode;\n }\n }\n } else if ((sel = document.getSelection()) && sel.type !== \"Control\") {\n containerEl = sel.createRange().parentElement();\n }\n\n if (containerEl) {\n return parseInt(this.getComputedStyleProperty(containerEl, \"fontSize\").replace(\"px\", \"\"), 10);\n }\n }\n\n getComputedStyleProperty(el, propName) {\n if (window.getComputedStyle) {\n return window.getComputedStyle(el, null)[propName];\n } else if (el.currentStyle) {\n return el.currentStyle[propName];\n }\n }\n\n ngOnInit(): void {\n this._formattingService.undo.subscribe(() => {\n this.toggleUndo();\n });\n this._formattingService.redo.subscribe(() => {\n this.toggleRedo();\n });\n this._formattingService.formatBoldChange.subscribe((bold: boolean) => {\n this.bold = bold;\n this.toggleBold();\n });\n this._formattingService.formatUnderlineChange.subscribe((underline: boolean) => {\n this.underline = underline;\n this.toggleUnderline();\n });\n this._formattingService.formatItalicChange.subscribe((italic: boolean) => {\n this.italic = italic;\n this.toggleItalic();\n });\n this._formattingService.formatColorChange.subscribe(((color: string) => {\n this.color = color;\n this.setColor(color);\n }));\n this._formattingService.formatBgColorChange.subscribe(((bgcolor: string) => {\n this.bgColor = bgcolor;\n this.setBgColor(bgcolor);\n }));\n this._formattingService.formatFontSizeChange.subscribe(((fontSize: number) => {\n this.setFontSize(fontSize);\n }));\n\n this._formattingService.formatFontChange.subscribe(((font: string) => {\n this.font = font;\n this.setFont(font);\n }));\n this._formattingService.formatStrikeoutChange.subscribe((strikeout: boolean) => {\n this.strikeout = strikeout;\n this.toggleStrikeout();\n });\n this._formattingService.formatAlignChange.subscribe((align: string) => {\n this.align = align;\n this.toggleAlign(this.align);\n });\n this._formattingService.formatListChange.subscribe((list: string) => {\n const remove = this.list === list;\n this.list = list;\n this.toggleList(this.list, remove);\n });\n }\n\n private toggleBold() {\n document.execCommand(\"bold\");\n this._selectionService.refreshSelection();\n }\n\n private toggleUnderline() {\n document.execCommand(\"underline\");\n this._selectionService.refreshSelection();\n }\n\n private toggleItalic() {\n document.execCommand(\"italic\");\n this._selectionService.refreshSelection();\n }\n\n private setBgColor(bgColor: string) {\n document.execCommand(\"backColor\", false, bgColor);\n this._selectionService.refreshSelection();\n }\n\n private setColor(color: string) {\n document.execCommand(\"foreColor\", false, color);\n this._selectionService.refreshSelection();\n }\n\n private setFontSize(fontSize: number) {\n if (document.getSelection().toString()) {\n let spanString = \"\" +\n document.getSelection() + \" \";\n if (this.bold) {\n spanString = \"\" + spanString + \" \";\n }\n if (this.italic) {\n spanString = \"\" + spanString + \" \";\n }\n if (this.underline) {\n spanString = \"\" + spanString + \" \";\n }\n if (this.strikeout) {\n spanString = \"\" + spanString + \" \";\n }\n document.execCommand('insertHTML', false, spanString);\n } else {\n document.execCommand(\"fontsize\", false, \"7\");\n }\n this._selectionService.refreshSelection();\n }\n\n private toggleUndo() {\n document.execCommand(\"undo\");\n }\n\n private toggleRedo() {\n document.execCommand(\"redo\");\n }\n\n private setFont(font: string) {\n document.execCommand(\"fontName\", false, font);\n this._selectionService.refreshSelection();\n }\n\n private toggleStrikeout() {\n document.execCommand(\"strikeThrough\");\n this._selectionService.refreshSelection();\n }\n\n private toggleAlign(align: string) {\n if(this.isIE) {\n this.toggleAlignIE(align);\n return;\n }\n document.execCommand(\"styleWithCSS\", false, 'true');\n switch (align) {\n case 'center':\n document.execCommand('justifyCenter');\n break;\n case 'full':\n document.execCommand('justifyFull');\n break;\n case 'left':\n document.execCommand('justifyLeft');\n break;\n case 'right':\n document.execCommand('justifyRight');\n break;\n }\n this._selectionService.refreshSelection();\n }\n\n private toggleAlignIE(align: string) {\n this._selectionService.restoreSelection()\n this._selectionService.captureSelection()\n const selection = window.getSelection().focusNode.parentNode.parentNode;\n if(align === \"full\"){\n align = \"justify\";\n }\n $(selection).css(\"text-align\", align);\n this._selectionService.refreshSelection()\n }\n\n private toggleList(list: string, remove: boolean) {\n switch (list) {\n case 'unordered':\n document.execCommand('insertUnorderedList', remove);\n break;\n case 'ordered':\n document.execCommand('insertOrderedList', remove);\n break;\n }\n this._selectionService.refreshSelection();\n }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'gd-success-modal',\n templateUrl: './success-modal.component.html',\n styleUrls: ['./success-modal.component.less']\n})\nexport class SuccessModalComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import {Injectable} from '@angular/core';\nimport {Observable, Subject} from \"rxjs\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class EditHtmlService {\n private _observer: Subject = new Subject();\n private readonly _htmlContent: Observable = this._observer.asObservable();\n\n constructor() {\n }\n\n get observer(): Subject {\n return this._observer;\n }\n\n get htmlContent(): Observable {\n return this._htmlContent;\n }\n\n}\n","import {Directive, HostListener, Input} from '@angular/core';\nimport {SelectionService} from './selection.service';\nimport {EditHtmlService} from \"./edit-html.service\";\n\n@Directive({\n selector: '[gdEditor]'\n})\nexport class EditorDirective {\n @Input() text: any;\n\n private isIE: boolean = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\n\n constructor(private _selectionService: SelectionService, private _htmlService: EditHtmlService) {\n }\n\n @HostListener('keyup', ['$event'])\n public onInput(event) {\n this.text = event.target;\n if(this.isIE){\n if (this.text.innerHTML) {\n const html = this.text.innerHTML.toString();\n this._htmlService.observer.next(html);\n }\n }\n }\n\n @HostListener('mouseleave', ['$event'])\n public onMouseleave(event) {\n this._selectionService.captureSelection();\n // this code is required to fix IE11 issue - it doesn't trigger blur event, since that we need to save updated HTML here\n if(this.isIE){\n this._htmlService.observer.next(event.target.innerHTML.toString());\n }\n }\n\n @HostListener('blur', ['$event'])\n public onBlur(event) {\n event.preventDefault();\n this._selectionService.restoreSelection();\n if (this.text.innerHTML) {\n const html = this.text.innerHTML.toString();\n this._htmlService.observer.next(html);\n } else {\n this._htmlService.observer.next(event.target.innerHTML.toString());\n }\n }\n}\n","import {EventEmitter, Injectable} from '@angular/core'\nimport {HttpRequest} from '@angular/common/http';\nimport {Api} from \"./config.service\";\n\n@Injectable()\nexport class LoadingMaskService {\n onLoadingChanged: EventEmitter = new EventEmitter();\n\n private stopList = [];\n private requests: HttpRequest[] = [];\n\n constructor() {\n this.stopList.push(Api.SAVE_TEXT);\n this.stopList.push(Api.SAVE_OPTICAL_CODE);\n this.stopList.push(Api.LOAD_DOCUMENT_PAGE);\n this.stopList.push(Api.LOAD_THUMBNAILS);\n this.stopList.push(Api.GET_FILE_STATUS);\n this.stopList.push(Api.LOAD_PRINT);\n }\n\n onRequestStart(req: HttpRequest): void {\n const stop = this.stopList.find(x => req.url.includes(x));\n if (!stop) {\n this.requests.push(req);\n this.notify();\n }\n }\n\n onRequestFinish(req: HttpRequest): void {\n const index = this.requests.indexOf(req);\n if (index !== -1) {\n this.requests.splice(index, 1);\n }\n this.notify();\n }\n\n private notify(): void {\n this.onLoadingChanged.emit(this.requests.length !== 0);\n }\n}\n","import {AfterViewInit, Component, Input, OnInit} from '@angular/core';\nimport {LoadingMaskService} from \"../loading-mask.service\";\n\n@Component({\n selector: 'gd-loading-mask',\n templateUrl: './loading-mask.component.html',\n styleUrls: ['./loading-mask.component.less']\n})\n\nexport class LoadingMaskComponent implements OnInit, AfterViewInit {\n @Input() loadingMask = false;\n\n constructor(private _loadingMaskService: LoadingMaskService) {\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit() {\n this._loadingMaskService\n .onLoadingChanged\n .subscribe((loading: boolean) => this.loadingMask = loading);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from \"@angular/common/http\";\nimport {Observable} from \"rxjs\";\nimport {finalize} from 'rxjs/operators'\nimport {LoadingMaskService} from \"./loading-mask.service\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoadingMaskInterceptorService implements HttpInterceptor {\n\n constructor(private _loadingMaskService: LoadingMaskService) {\n }\n\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\n this._loadingMaskService.onRequestStart(req);\n const callback = () => this._loadingMaskService.onRequestFinish(req);\n return next.handle(req).pipe( finalize( callback));\n }\n}\n","import {\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n ViewEncapsulation\n} from '@angular/core';\n\n\nconst horizontalAlignment = {\n center : {\n right: 'auto'\n },\n left : {\n right: '100%'\n },\n right : {\n right: '-100%'\n }\n};\n\nconst verticalAlignment = {\n center : {\n top : '0px',\n },\n top : {\n top : '-100%',\n right: '100%'\n },\n bottom : {\n top: 'autos'\n }\n};\n\n/**\n * DropDownToggleComponent\n */\n@Component({\n selector: 'gd-drop-down-toggle',\n template: ' ',\n styleUrls: ['./drop-down.component.less'],\n encapsulation : ViewEncapsulation.None\n})\nexport class DropDownToggleComponent{\n @HostListener('click',['$event'])\n click = (event: any) => this.dropdown.toggle(event);\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\n}\n\n/**\n * DropDownItemsComponent\n */\n@Component({\n selector: 'gd-drop-down-items',\n template: '
',\n styleUrls: ['./drop-down.component.less'],\n encapsulation : ViewEncapsulation.None\n})\nexport class DropDownItemsComponent{\n\n get horizontalAlign(){\n return horizontalAlignment[this.dropdown.getPlacement().h].right;\n }\n\n get verticalAlign(){\n return verticalAlignment[this.dropdown.getPlacement().v].top;\n }\n\n get isOpen(){\n return this.dropdown.open;\n }\n\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\n\n onClickOutside(event : Event ){\n this.dropdown.close();\n }\n}\n\n/**\n * DropDownItemComponent\n */\n@Component({\n selector: 'gd-drop-down-item',\n template: '
',\n styleUrls: ['./drop-down.component.less'],\n})\nexport class DropDownItemComponent{\n @HostBinding('class')\n class = 'drop-down-item';\n\n @Output()\n selected = new EventEmitter();\n\n @HostListener('click')\n click = () => this.selectEntry();\n\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\n\n selectEntry(){\n this.selected.next();\n this.dropdown.close();\n }\n}\n\n/**\n * DropDownComponent\n */\n@Component({\n selector: 'gd-drop-down',\n template: '
',\n styleUrls: ['./drop-down.component.less'],\n encapsulation : ViewEncapsulation.None\n})\nexport class DropDownComponent{\n @Input()\n placement = {\n h: \"center\",\n v: \"bottom\"\n };\n\n\n @Input()\n @HostBinding('class.show')\n open = false;\n\n @HostBinding('class')\n class = 'drop-down';\n\n close(){\n this.open = false;\n }\n\n toggle(event : MouseEvent){\n event.stopPropagation();\n this.open = !this.open;\n document.body.click();\n }\n\n getPlacement(){\n return this.placement;\n }\n}\n","import {Component, Input, OnInit} from '@angular/core';\n\n@Component({\n selector: 'gd-left-side-bar',\n templateUrl: './left-side-bar.component.html',\n styleUrls: ['./left-side-bar.component.less']\n})\nexport class LeftSideBarComponent implements OnInit {\n @Input() showSpinner = false;\n\n constructor() {\n }\n\n ngOnInit() {\n }\n\n}\n","import {Directive, EventEmitter, HostListener, Input, Output} from '@angular/core';\n\n@Directive({\n selector: '[gdTooltip]'\n})\nexport class TooltipDirective {\n\n @Output() showToolTip = new EventEmitter();\n\n constructor() {\n }\n\n @HostListener('mouseenter')\n public onHovering() {\n this.showToolTip.emit(true);\n }\n\n @HostListener('mouseleave')\n public onUnhovering() {\n this.showToolTip.emit(false);\n }\n\n}\n","import {\n ApplicationRef,\n ComponentFactoryResolver,\n Injectable,\n ViewContainerRef\n} from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AddDynamicComponentService {\n\n constructor(private _factoryResolver: ComponentFactoryResolver,\n private _appRef: ApplicationRef) {\n }\n\n addDynamicComponent(viewContainerRef: ViewContainerRef, component: any) {\n const factory = this._factoryResolver.resolveComponentFactory(component);\n const componentRef = viewContainerRef.createComponent(factory);\n\n componentRef.onDestroy(() => {\n this._appRef.detachView(componentRef.hostView);\n });\n\n return componentRef;\n }\n\n}\n","import {HostDynamicDirective} from \"./host-dynamic.directive\";\n\nexport class HostingDynamicComponentService {\n private hosts: HostDynamicDirective[];\n\n constructor() {\n this.hosts = [];\n }\n\n add(host: HostDynamicDirective) {\n this.hosts = this.hosts.filter(function (h) {\n return h.ident !== host.ident;\n });\n this.hosts.push(host);\n }\n\n remove(host: HostDynamicDirective) {\n this.hosts = this.hosts.filter(function (h) {\n return h.ident !== host.ident;\n });\n }\n\n find(ident: number) {\n return this.hosts.find(function (h) {\n return h.ident === ident;\n });\n }\n}\n","import {AfterViewInit, Directive, Input, OnDestroy, ViewContainerRef} from '@angular/core';\nimport {HostingDynamicComponentService} from \"./hosting-dynamic-component.service\";\n\n@Directive({\n selector: '[gdHostDynamic]'\n})\nexport class HostDynamicDirective implements AfterViewInit, OnDestroy {\n @Input() ident: number;\n\n constructor(public viewContainerRef: ViewContainerRef,\n private _hostingService: HostingDynamicComponentService) {\n }\n\n ngAfterViewInit(): void {\n this._hostingService.add(this);\n }\n\n ngOnDestroy(): void {\n this._hostingService.remove(this);\n this.viewContainerRef.clear();\n }\n\n}\n","import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport * as jquery from \"jquery\";\nimport {Utils} from \"../file.service\";\n\nconst $ = jquery;\n\n@Component({\n selector: 'gd-resizing',\n templateUrl: './resizing.component.html',\n styleUrls: ['./resizing.component.less']\n})\nexport class ResizingComponent implements OnInit, AfterViewInit {\n\n @Input() init: boolean;\n @Input() id: number;\n @Input() se = false;\n @Input() ne = false;\n @Input() sw = false;\n @Input() nw = false;\n @Input() pageWidth: number;\n @Input() pageHeight: number;\n SE = 'se';\n NE = 'ne';\n SW = 'sw';\n NW = 'nw';\n\n @Output() offsetX = new EventEmitter();\n @Output() offsetY = new EventEmitter();\n @Output() offsetTop = new EventEmitter();\n @Output() offsetLeft = new EventEmitter();\n @Output() release = new EventEmitter();\n\n private grab = false;\n private oldPosition: { x: number, y: number };\n\n constructor() {\n }\n\n ngAfterViewInit(): void {\n const elSE = $(this.getElementId(this.SE));\n const elNW = $(this.getElementId(this.NW));\n if (this.init && elSE && elNW && elSE.offset() && elNW.offset()) {\n let width = elSE.offset().left - elNW.offset().left;\n let height = elSE.offset().top - elNW.offset().top;\n while (width >= this.pageWidth || height >= this.pageHeight) {\n width = width / 2;\n height = height / 2;\n }\n setTimeout(() => {\n this.offsetX.emit(width);\n this.offsetY.emit(height);\n }, 100);\n }\n }\n\n ngOnInit() {\n }\n\n catchUp($event: DragEvent) {\n // ff\n $event.preventDefault();\n if ($event.dataTransfer) { // ff\n $event.dataTransfer.setData('text', 'foo');\n }\n this.grab = true;\n this.oldPosition = Utils.getMousePosition($event);\n }\n\n resize($event: DragEvent, el: string) {\n if (!this.grab) {\n return;\n }\n const position = Utils.getMousePosition($event);\n if (position.x === 0 && position.y === 0) {\n return;\n }\n const notSW = this.NE === el || this.NW === el;\n const notNE = this.SW === el || this.NW === el;\n this.setOffsets(position, notNE, notSW);\n if (notSW) {\n this.offsetTop.emit(position.y - this.oldPosition.y);\n }\n if (notNE) {\n this.offsetLeft.emit(position.x - this.oldPosition.x);\n }\n this.oldPosition = position;\n }\n\n private setOffsets(position, x: boolean, y: boolean) {\n const offsetX = x ? this.oldPosition.x - position.x : position.x - this.oldPosition.x;\n const offsetY = y ? this.oldPosition.y - position.y : position.y - this.oldPosition.y;\n this.offsetX.emit(offsetX);\n this.offsetY.emit(offsetY);\n }\n\n end($event: DragEvent, el: string) {\n // ff\n this.resize($event, el);\n this.release.emit(true);\n this.grab = false;\n }\n\n start($event: DragEvent) {\n this.drop($event);\n }\n\n drop($event: DragEvent) {\n $event.stopPropagation();\n $event.preventDefault();\n }\n\n private getElementId(el: string) {\n return \"#\" + el + \"-\" + this.id;\n }\n}\n","import {TabActivatorService} from \"./tab-activator.service\";\n\nexport class TopTabActivatorService extends TabActivatorService {\n\n constructor() {\n super();\n }\n}\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {ExceptionMessageService} from \"../exception-message.service\";\nimport {TopTabActivatorService} from \"../top-tab-activator.service\";\nimport {ModalService, CommonModals} from \"../modal.service\";\n\n@Component({\n selector: 'gd-top-tab',\n templateUrl: './top-tab.component.html',\n styleUrls: ['./top-tab.component.less']\n})\nexport class TopTabComponent implements OnInit {\n @Input() id: string;\n @Input() icon: string;\n @Input() disabled = false;\n @Input() tooltip: string;\n @Output() activeTab = new EventEmitter();\n @Input() elementPosition = 0;\n public active = false;\n public showToolTip = false;\n\n constructor(private _tabActivatorService: TopTabActivatorService,\n private _modalService: ModalService,\n private _excMessageService: ExceptionMessageService) {\n this._tabActivatorService.activeTabChange.subscribe((tabId: string) => {\n this.activation(tabId);\n if (tabId === null) {\n this.activeTab.emit(\"\");\n }\n });\n }\n\n private activation(tabId: string) {\n if (this.id === tabId) {\n this.active = !this.active;\n if (this.active) {\n this.activeTab.emit(this.id);\n } else {\n this.activeTab.emit(\"\");\n }\n } else {\n this.active = false;\n }\n }\n\n ngOnInit() {\n }\n\n toggleTab() {\n if (this.disabled) {\n this._modalService.open(CommonModals.ErrorMessage);\n this._excMessageService.changeMessage(\"Please open document first\");\n return;\n }\n this._tabActivatorService.changeActiveTab(this.id);\n }\n\n}\n","import {Component, EventEmitter, Input, OnInit, Output, ElementRef, Renderer2} from '@angular/core';\nimport * as jquery from 'jquery';\nimport {FormattingService} from \"../formatting.service\";\nimport {OnCloseService} from \"../on-close.service\";\nimport {Option} from \"../select/select.component\";\nimport { ZoomService } from '../zoom.service';\nimport { WindowService } from '../window.service';\n\nconst $ = jquery;\n\n@Component({\n selector: 'gd-text-menu',\n templateUrl: './text-menu.component.html',\n styleUrls: ['./text-menu.component.less']\n})\nexport class TextMenuComponent implements OnInit {\n @Input() blur: boolean;\n @Input() fontSize: number;\n @Input() font: string;\n @Input() bold: boolean;\n @Input() italic: boolean;\n @Input() underline: boolean;\n @Input() color: string;\n @Input() decoration = true;\n @Input() showTooltips = true;\n\n @Output() outFontSize = new EventEmitter();\n @Output() outFont = new EventEmitter();\n @Output() outBold = new EventEmitter();\n @Output() outItalic = new EventEmitter();\n @Output() outUnderline = new EventEmitter();\n @Output() outColor = new EventEmitter();\n\n fontSizeOptions = FormattingService.getFontSizeOptions();\n fontOptions = FormattingService.getFontOptions();\n colorPickerShow = false;\n\n isMobile: boolean;\n\n constructor(private _onCloseService: OnCloseService,\n private _zoomService: ZoomService,\n private _windowService: WindowService,\n protected _elementRef: ElementRef,\n private renderer: Renderer2) {\n \n _onCloseService.onClose.subscribe(() => {\n this.colorPickerShow = false;\n });\n\n this.isMobile = _windowService.isMobile();\n _windowService.onResize.subscribe((w) => {\n this.isMobile = _windowService.isMobile();\n });\n\n _zoomService.zoomChange.subscribe((val: number) => {\n if (this.isMobile)\n {\n this.changePosition(val);\n }\n });\n }\n\n ngOnInit() {\n }\n\n changePosition(val: number) {\n const top = (window.innerHeight - 24 - this._elementRef.nativeElement.parentElement.getBoundingClientRect().top - this._elementRef.nativeElement.parentElement.getBoundingClientRect().height);\n const left = this._elementRef.nativeElement.parentElement.getBoundingClientRect().left;\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'width', window.innerWidth + 'px');\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'top', top + 'px');\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'left', -left + 'px');\n }\n\n selectFontSize($event: Option) {\n $(\".gd-wrapper\").off(\"keyup\");\n this.outFontSize.emit($event.value);\n $(\".gd-wrapper\").on(\"keyup\", () => {\n const fontElements = document.getElementsByTagName(\"font\");\n for (let i = 0, len = fontElements.length; i < len; ++i) {\n if (fontElements[i].getAttribute('size') === \"7\") {\n fontElements[i].removeAttribute(\"size\");\n fontElements[i].style.fontSize = $event + \"px\";\n }\n }\n });\n }\n\n selectFont($event: Option) {\n event.preventDefault();\n event.stopPropagation();\n this.outFont.emit($event.value);\n }\n\n toggleColorPicker($event) {\n $event.preventDefault();\n $event.stopPropagation();\n this.colorPickerShow = !this.colorPickerShow;\n }\n\n selectColor($event: string) {\n this.colorPickerShow = false;\n this.outColor.emit($event);\n }\n\n toggleBold(event) {\n event.preventDefault();\n event.stopPropagation();\n this.outBold.emit(!this.bold);\n }\n\n toggleItalic(event) {\n event.preventDefault();\n event.stopPropagation();\n this.outItalic.emit(!this.italic);\n }\n\n toggleUnderline(event) {\n event.preventDefault();\n event.stopPropagation();\n this.outUnderline.emit(!this.underline);\n }\n\n closePicker($event) {\n this.colorPickerShow = !$event;\n }\n}\n","import {Component, EventEmitter, Input, OnInit, Output, Renderer2, ElementRef} from '@angular/core';\nimport {Formatting} from \"../formatting.service\";\nimport {WindowService} from \"../window.service\";\nimport { ZoomService } from '../zoom.service';\n\nexport class MenuType {\n public static FOR_SIGNATURE = \"signature\";\n public static FOR_ANNOTATION = \"annotation\";\n}\n\n@Component({\n selector: 'gd-context-menu',\n templateUrl: './context-menu.component.html',\n styleUrls: ['./context-menu.component.less']\n})\nexport class ContextMenuComponent implements OnInit {\n @Input() formatting: Formatting = Formatting.default();\n @Input() textMenu: boolean;\n @Input() topPosition: number;\n @Input() lock = false;\n @Input() translation = 0;\n @Input() menuType: string;\n @Output() changeFormatting = new EventEmitter();\n @Output() removeItem = new EventEmitter();\n @Output() copySign = new EventEmitter();\n @Output() lockOut = new EventEmitter();\n @Output() comment = new EventEmitter();\n\n isMobile: boolean;\n\n constructor(private _windowService: WindowService,\n private _zoomService: ZoomService,\n protected _elementRef: ElementRef,\n private renderer: Renderer2) {\n this.isMobile = _windowService.isMobile();\n _windowService.onResize.subscribe((w) => {\n this.isMobile = _windowService.isMobile();\n });\n\n _zoomService.zoomChange.subscribe((val: number) => {\n if (this.isMobile)\n {\n this.changeScale(val);\n }\n });\n }\n\n ngOnInit() {\n }\n\n changeScale(val: number){\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-context-menu'), 'transform', 'scale(' + 1/(val/100) + ')');\n }\n\n saveChanges() {\n this.changeFormatting.emit(this.formatting);\n }\n\n selectFontSize($event: number) {\n this.formatting.fontSize = $event;\n this.saveChanges();\n }\n\n selectFont($event: string) {\n this.formatting.font = $event;\n this.saveChanges();\n }\n\n selectColor($event: string) {\n this.formatting.color = $event;\n this.saveChanges();\n }\n\n toggleBold($event) {\n this.formatting.bold = $event;\n this.saveChanges();\n }\n\n toggleItalic($event) {\n this.formatting.italic = $event;\n this.saveChanges();\n }\n\n toggleUnderline($event) {\n this.formatting.underline = $event;\n this.saveChanges();\n }\n\n deleteItem() {\n this.removeItem.emit(true);\n }\n\n toggleLock() {\n this.lock = !this.lock;\n this.lockOut.emit(this.lock);\n }\n\n onCopySign() {\n this.copySign.emit(true);\n }\n\n isSignature() {\n return this.menuType === MenuType.FOR_SIGNATURE;\n }\n\n isAnnotation() {\n return this.menuType === MenuType.FOR_ANNOTATION;\n }\n\n addComment() {\n this.comment.emit(true);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TopToolbarComponent} from './top-toolbar/top-toolbar.component';\nimport {SidePanelComponent} from './side-panel/side-panel.component';\nimport {ButtonComponent} from './button/button.component';\nimport {LogoComponent} from './logo/logo.component';\nimport {TooltipComponent} from './tooltip/tooltip.component';\nimport {FontAwesomeModule} from '@fortawesome/angular-fontawesome';\nimport {library} from '@fortawesome/fontawesome-svg-core';\nimport {fas} from '@fortawesome/free-solid-svg-icons';\nimport {far} from '@fortawesome/free-regular-svg-icons';\nimport {Api, ConfigService,} from \"./config.service\";\nimport {ModalService} from \"./modal.service\";\nimport {ModalComponent} from './modal/modal.component';\nimport {BrowseFilesModalComponent} from './browse-files-modal/browse-files-modal.component';\nimport {FileModel, FileService, FileUtil, Utils} from \"./file.service\";\nimport {DocumentComponent} from './document/document.component';\nimport {PageComponent} from './page/page.component';\nimport {HighlightSearchPipe, SanitizeHtmlPipe, SanitizeResourceHtmlPipe, SanitizeStylePipe} from \"./pipes\";\nimport {UploadFileZoneComponent} from './upload-file-zone/upload-file-zone.component';\nimport {UploadFilesService} from \"./upload-files.service\";\nimport {DndDirective} from './dnd.directive';\nimport {ScrollableDirective} from './scrollable.directive';\nimport {MouseWheelDirective} from './mousewheel.directive';\nimport {NavigateService} from \"./navigate.service\";\nimport {PagePreloadService} from \"./page-preload.service\";\nimport {ZoomDirective} from './zoom.directive';\nimport {ZoomService} from \"./zoom.service\";\nimport {SelectComponent} from './select/select.component';\nimport {DisabledCursorDirective} from './disabled-cursor.directive';\nimport {RotationDirective} from './rotation.directive';\nimport {InitStateComponent} from './init-state/init-state.component';\nimport {RenderPrintService} from \"./render-print.service\";\nimport {RenderPrintDirective} from './render-print.directive';\nimport {ErrorModalComponent} from './error-modal/error-modal.component';\nimport {PasswordRequiredComponent} from './password-required/password-required.component';\nimport {ExceptionMessageService} from \"./exception-message.service\";\nimport {PasswordService} from \"./password.service\";\nimport {ErrorInterceptorService} from \"./error-interceptor.service\";\nimport {SearchComponent} from './search/search.component';\nimport {SearchableDirective} from './searchable.directive';\nimport {SearchService} from \"./search.service\";\nimport {WindowService} from \"./window.service\";\nimport {ViewportService} from \"./viewport.service\";\nimport {TabbedToolbarsComponent} from './tabbed-toolbars/tabbed-toolbars.component';\nimport {TabComponent} from \"./tab/tab.component\";\nimport {TabsComponent} from \"./tabs/tabs.component\";\nimport {FormattingService} from \"./formatting.service\";\nimport {ColorPickerComponent} from './color-picker/color-picker.component';\nimport {FormattingDirective} from './formatting.directive';\nimport {BackFormattingService} from \"./back-formatting.service\";\nimport {OnCloseService} from \"./on-close.service\";\nimport {SuccessModalComponent} from './success-modal/success-modal.component';\nimport {EditorDirective} from './editor.directive';\nimport {LoadingMaskComponent} from './loading-mask/loading-mask.component';\nimport {LoadingMaskService} from './loading-mask.service';\nimport {LoadingMaskInterceptorService} from \"./loading-mask-interceptor.service\";\nimport {TabActivatorService} from \"./tab-activator.service\";\nimport {\n DropDownComponent,\n DropDownItemComponent,\n DropDownItemsComponent,\n DropDownToggleComponent\n} from './drop-down/drop-down.component';\nimport {ClickOutsideModule} from 'ng-click-outside';\nimport {LeftSideBarComponent} from './left-side-bar/left-side-bar.component';\nimport {TooltipDirective} from './tooltip.directive';\nimport {AddDynamicComponentService} from \"./add-dynamic-component.service\";\nimport {HostDynamicDirective} from './host-dynamic.directive';\nimport {HostingDynamicComponentService} from \"./hosting-dynamic-component.service\";\nimport {ResizingComponent} from './resizing/resizing.component';\nimport {TopTabComponent} from './top-tab/top-tab.component';\nimport {TopTabActivatorService} from \"./top-tab-activator.service\";\nimport {TextMenuComponent} from './text-menu/text-menu.component';\nimport {ContextMenuComponent} from './context-menu/context-menu.component';\n\nconst providers = [ConfigService,\n Api,\n ModalService,\n FileService,\n FileModel,\n FileUtil,\n Utils,\n SanitizeHtmlPipe,\n SanitizeResourceHtmlPipe,\n SanitizeStylePipe,\n HighlightSearchPipe,\n UploadFilesService,\n RenderPrintService,\n NavigateService,\n PagePreloadService,\n ZoomService,\n ExceptionMessageService,\n PasswordService,\n ErrorInterceptorService,\n SearchService,\n WindowService,\n ViewportService,\n FormattingService,\n BackFormattingService,\n OnCloseService,\n LoadingMaskInterceptorService,\n LoadingMaskService,\n TabActivatorService,\n AddDynamicComponentService,\n HostingDynamicComponentService,\n TopTabActivatorService];\n\n@NgModule({\n imports: [CommonModule, FontAwesomeModule, ClickOutsideModule],\n declarations: [\n TopToolbarComponent,\n SidePanelComponent,\n ButtonComponent,\n LogoComponent,\n TooltipComponent,\n ModalComponent,\n BrowseFilesModalComponent,\n DocumentComponent,\n PageComponent,\n SanitizeHtmlPipe,\n SanitizeResourceHtmlPipe,\n SanitizeStylePipe,\n HighlightSearchPipe,\n UploadFileZoneComponent,\n DndDirective,\n ScrollableDirective,\n MouseWheelDirective,\n ZoomDirective,\n SelectComponent,\n DisabledCursorDirective,\n RotationDirective,\n InitStateComponent,\n RenderPrintDirective,\n ErrorModalComponent,\n PasswordRequiredComponent,\n SearchComponent,\n SearchableDirective,\n TabbedToolbarsComponent,\n TabComponent,\n TabsComponent,\n ColorPickerComponent,\n FormattingDirective,\n SuccessModalComponent,\n EditorDirective,\n LoadingMaskComponent,\n DropDownComponent,\n DropDownItemComponent,\n DropDownItemsComponent,\n DropDownToggleComponent,\n LeftSideBarComponent,\n TooltipDirective,\n HostDynamicDirective,\n ResizingComponent,\n TopTabComponent,\n TextMenuComponent,\n ContextMenuComponent\n ],\n exports: [\n TopToolbarComponent,\n SidePanelComponent,\n ButtonComponent,\n LogoComponent,\n TooltipComponent,\n ModalComponent,\n BrowseFilesModalComponent,\n DocumentComponent,\n PageComponent,\n SanitizeResourceHtmlPipe,\n SanitizeStylePipe,\n HighlightSearchPipe,\n SanitizeHtmlPipe,\n UploadFileZoneComponent,\n ScrollableDirective,\n MouseWheelDirective,\n SelectComponent,\n RotationDirective,\n InitStateComponent,\n RenderPrintDirective,\n ErrorModalComponent,\n PasswordRequiredComponent,\n SearchComponent,\n SearchableDirective,\n TabbedToolbarsComponent,\n TabComponent,\n TabsComponent,\n ColorPickerComponent,\n FormattingDirective,\n SuccessModalComponent,\n LoadingMaskComponent,\n DndDirective,\n DropDownComponent,\n DropDownItemComponent,\n DropDownItemsComponent,\n DropDownToggleComponent,\n ZoomDirective,\n DropDownToggleComponent,\n LeftSideBarComponent,\n TooltipDirective,\n HostDynamicDirective,\n ResizingComponent,\n TopTabComponent,\n TextMenuComponent,\n ContextMenuComponent\n ],\n providers: providers\n})\nexport class CommonComponentsModule {\n constructor() {\n library.add(fas, far);\n }\n}\n"],"names":["Component","EventEmitter","Input","Output","Subject","fromEvent","debounceTime","distinctUntilChanged","startWith","tap","HttpHeaders","Injectable","ElementRef","tslib_1.__extends","Observable","BehaviorSubject","$","Pipe","DomSanitizer","Directive","HostBinding","HostListener","tslib_1.__values","map","catchError","HttpErrorResponse","throwError","ViewChild","finalize","ViewEncapsulation","Inject","forwardRef","ComponentFactoryResolver","ApplicationRef","ViewContainerRef","Renderer2","library","fas","far","NgModule","CommonModule","FontAwesomeModule","ClickOutsideModule"],"mappings":";;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;;AAEF,IAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SA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BACnB,qBAAqB;4BACrB,oBAAoB;4BACpB,YAAY;4BACZ,iBAAiB;4BACjB,qBAAqB;4BACrB,sBAAsB;4BACtB,uBAAuB;4BACvB,aAAa;4BACb,uBAAuB;4BACvB,oBAAoB;4BACpB,gBAAgB;4BAChB,oBAAoB;4BACpB,iBAAiB;4BACjB,eAAe;4BACf,iBAAiB;4BACjB,oBAAoB;yBACrB;wBACD,SAAS,EAAE,SAAS;qBACrB;;;;QAKD,6BAAC;KAvGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
+{"version":3,"file":"groupdocs.examples.angular-common-components.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","ng://@groupdocs.examples.angular/common-components/lib/top-toolbar/top-toolbar.component.ts","ng://@groupdocs.examples.angular/common-components/lib/side-panel/side-panel.component.ts","ng://@groupdocs.examples.angular/common-components/lib/window.service.ts","ng://@groupdocs.examples.angular/common-components/lib/button/button.component.ts","ng://@groupdocs.examples.angular/common-components/lib/logo/logo.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tooltip/tooltip.component.ts","ng://@groupdocs.examples.angular/common-components/lib/config.service.ts","ng://@groupdocs.examples.angular/common-components/lib/modal.service.ts","ng://@groupdocs.examples.angular/common-components/lib/modal/modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/file.service.ts","ng://@groupdocs.examples.angular/common-components/lib/upload-files.service.ts","ng://@groupdocs.examples.angular/common-components/lib/browse-files-modal/browse-files-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/zoom.service.ts","ng://@groupdocs.examples.angular/common-components/lib/page-preload.service.ts","ng://@groupdocs.examples.angular/common-components/lib/navigate.service.ts","ng://@groupdocs.examples.angular/common-components/lib/document/document.component.ts","ng://@groupdocs.examples.angular/common-components/lib/page/page.component.ts","ng://@groupdocs.examples.angular/common-components/lib/pipes.ts","ng://@groupdocs.examples.angular/common-components/lib/upload-file-zone/upload-file-zone.component.ts","ng://@groupdocs.examples.angular/common-components/lib/dnd.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/viewport.service.ts","ng://@groupdocs.examples.angular/common-components/lib/scrollable.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/mousewheel.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/zoom.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/on-close.service.ts","ng://@groupdocs.examples.angular/common-components/lib/select/select.component.ts","ng://@groupdocs.examples.angular/common-components/lib/disabled-cursor.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/rotation.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/init-state/init-state.component.ts","ng://@groupdocs.examples.angular/common-components/lib/render-print.service.ts","ng://@groupdocs.examples.angular/common-components/lib/render-print.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/exception-message.service.ts","ng://@groupdocs.examples.angular/common-components/lib/error-modal/error-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/password.service.ts","ng://@groupdocs.examples.angular/common-components/lib/password-required/password-required.component.ts","ng://@groupdocs.examples.angular/common-components/lib/error-interceptor.service.ts","ng://@groupdocs.examples.angular/common-components/lib/search.service.ts","ng://@groupdocs.examples.angular/common-components/lib/search/search.component.ts","ng://@groupdocs.examples.angular/common-components/lib/searchable.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/tabbed-toolbars/tabbed-toolbars.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tab-activator.service.ts","ng://@groupdocs.examples.angular/common-components/lib/tab/tab.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tabs/tabs.component.ts","ng://@groupdocs.examples.angular/common-components/lib/formatting.service.ts","ng://@groupdocs.examples.angular/common-components/lib/color-picker/color-picker.component.ts","ng://@groupdocs.examples.angular/common-components/lib/back-formatting.service.ts","ng://@groupdocs.examples.angular/common-components/lib/selection.service.ts","ng://@groupdocs.examples.angular/common-components/lib/formatting.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/success-modal/success-modal.component.ts","ng://@groupdocs.examples.angular/common-components/lib/edit-html.service.ts","ng://@groupdocs.examples.angular/common-components/lib/editor.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask.service.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask/loading-mask.component.ts","ng://@groupdocs.examples.angular/common-components/lib/loading-mask-interceptor.service.ts","ng://@groupdocs.examples.angular/common-components/lib/drop-down/drop-down.component.ts","ng://@groupdocs.examples.angular/common-components/lib/left-side-bar/left-side-bar.component.ts","ng://@groupdocs.examples.angular/common-components/lib/tooltip.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/add-dynamic-component.service.ts","ng://@groupdocs.examples.angular/common-components/lib/hosting-dynamic-component.service.ts","ng://@groupdocs.examples.angular/common-components/lib/host-dynamic.directive.ts","ng://@groupdocs.examples.angular/common-components/lib/resizing/resizing.component.ts","ng://@groupdocs.examples.angular/common-components/lib/top-tab-activator.service.ts","ng://@groupdocs.examples.angular/common-components/lib/top-tab/top-tab.component.ts","ng://@groupdocs.examples.angular/common-components/lib/text-menu/text-menu.component.ts","ng://@groupdocs.examples.angular/common-components/lib/context-menu/context-menu.component.ts","ng://@groupdocs.examples.angular/common-components/lib/common-components.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {Component, Input} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-top-toolbar',\r\n templateUrl: './top-toolbar.component.html',\r\n styleUrls: ['./top-toolbar.component.less']\r\n})\r\nexport class TopToolbarComponent {\r\n\r\n constructor() {\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, Output} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-side-panel',\r\n templateUrl: './side-panel.component.html',\r\n styleUrls: ['./side-panel.component.less']\r\n})\r\n\r\nexport class SidePanelComponent {\r\n @Input() title: string;\r\n @Input() icon: string;\r\n @Input() closable = true;\r\n @Input() saveable = true;\r\n @Output() hideSidePanel = new EventEmitter();\r\n @Output() saveInSidePanel = new EventEmitter();\r\n\r\n onlyTitle = false;\r\n\r\n constructor() {\r\n }\r\n\r\n closeSidePanel() {\r\n this.hideSidePanel.emit(true);\r\n }\r\n\r\n saveBySidePanel() {\r\n this.saveInSidePanel.emit(true);\r\n }\r\n\r\n toggleTitleMode(){\r\n if (this.closable && !this.saveable) {\r\n this.onlyTitle = !this.onlyTitle;\r\n }\r\n }\r\n}\r\n","import {fromEvent, Observable, Subject} from \"rxjs\";\r\nimport {debounceTime, distinctUntilChanged, startWith, tap} from \"rxjs/operators\";\r\n\r\nconst MOBILE_MAX_WIDTH = 425;\r\nconst TABLET_MAX_WIDTH = 1024;\r\n\r\nexport class WindowService {\r\n\r\n private resizeSubject: Subject = new Subject();\r\n private _resize$;\r\n private width: number;\r\n private height: number;\r\n\r\n constructor() {\r\n this.width = window.innerWidth;\r\n this.height = window.innerHeight;\r\n\r\n this._resize$ = fromEvent(window, 'resize')\r\n .pipe(\r\n debounceTime(200),\r\n distinctUntilChanged(),\r\n startWith({target: {innerWidth: window.innerWidth, innerHeight: window.innerHeight}}),\r\n tap(event => {\r\n this.resizeSubject.next(event.target);\r\n this.width = (event.target as Window).innerWidth;\r\n this.height = (event.target as Window).innerHeight;\r\n }),\r\n );\r\n this._resize$.subscribe();\r\n }\r\n\r\n get onResize(): Observable {\r\n return this.resizeSubject.asObservable();\r\n }\r\n\r\n isMobile() {\r\n return this.width <= MOBILE_MAX_WIDTH;\r\n }\r\n\r\n isTablet() {\r\n return this.width <= TABLET_MAX_WIDTH;\r\n }\r\n\r\n isDesktop() {\r\n return !this.isMobile() && !this.isTablet();\r\n }\r\n\r\n getWidth() {\r\n return this.width;\r\n }\r\n\r\n getHeight() {\r\n return this.height;\r\n }\r\n\r\n isEdge() {\r\n return window.navigator.userAgent.toLowerCase().indexOf('edge') > -1;\r\n }\r\n\r\n isFirefox() {\r\n return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\r\n }\r\n}\r\n","import {Component, Input} from '@angular/core';\r\nimport {WindowService} from \"../window.service\";\r\n\r\n@Component({\r\n selector: 'gd-button',\r\n templateUrl: './button.component.html',\r\n styleUrls: ['./button.component.less']\r\n})\r\nexport class ButtonComponent {\r\n @Input() iconOnly = true;\r\n @Input() intent = 'default';\r\n @Input() disabled = false;\r\n @Input() icon: string;\r\n @Input() iconClass: string;\r\n @Input() tooltip: string;\r\n @Input() className: string;\r\n @Input() toggle = false;\r\n @Input() iconSize: string;\r\n @Input() iconRegular = false;\r\n @Input() elementPosition = 0;\r\n\r\n showToolTip = false;\r\n private isDesktop: boolean;\r\n\r\n constructor(windowService: WindowService) {\r\n this.isDesktop = windowService.isDesktop();\r\n windowService.onResize.subscribe((w) => {\r\n this.isDesktop = windowService.isDesktop();\r\n });\r\n }\r\n\r\n iconButtonClass() {\r\n return this.iconOnly ? 'icon-button' : '';\r\n }\r\n\r\n onHovering() {\r\n if (this.isDesktop && !this.disabled) {\r\n this.className += ' active';\r\n }\r\n }\r\n\r\n onUnhovering() {\r\n if (this.isDesktop && !this.disabled) {\r\n this.className = this.cleanAll(this.className, ' active');\r\n }\r\n }\r\n\r\n private cleanAll(str: string, val: string) {\r\n while (str && str.indexOf(val) !== -1) {\r\n str = str.replace(val, '');\r\n }\r\n return str;\r\n }\r\n}\r\n","import {Component, Input, OnInit} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-logo',\r\n templateUrl: './logo.component.html',\r\n styleUrls: ['./logo.component.less']\r\n})\r\nexport class LogoComponent implements OnInit {\r\n\r\n @Input() logo;\r\n @Input() icon;\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {Component, Input, OnInit} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-tooltip',\r\n templateUrl: './tooltip.component.html',\r\n styleUrls: ['./tooltip.component.less']\r\n})\r\nexport class TooltipComponent implements OnInit {\r\n\r\n @Input() text: string;\r\n @Input() position = 0;\r\n visibility = 'hidden';\r\n\r\n constructor() {\r\n }\r\n\r\n getClass() {\r\n if (this.position === 0) {\r\n return 'tooltip';\r\n }\r\n return 'tooltip ' + (this.position > 0 ? 'last-element' : 'first-element');\r\n }\r\n\r\n @Input()\r\n set show(value: boolean) {\r\n this.visibility = value ? 'shown' : 'hidden';\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {HttpHeaders} from \"@angular/common/http\";\r\nimport {Injectable} from \"@angular/core\";\r\n\r\nexport class Api {\r\n public static VIEWER_APP = '/viewer';\r\n public static SIGNATURE_APP = '/signature';\r\n public static ANNOTATION_APP = '/annotation';\r\n public static SEARCH_APP = '/search';\r\n public static EDITOR_APP = '/editor';\r\n public static COMPARISON_APP = '/comparison';\r\n public static CONVERSION_APP = '/conversion';\r\n public static METADATA_APP = '/metadata';\r\n public static DEFAULT_API_ENDPOINT = window.location.href;\r\n public static LOAD_FILE_TREE = '/loadFileTree';\r\n public static LOAD_CONFIG = '/loadConfig';\r\n public static LOAD_DOCUMENT_DESCRIPTION = '/loadDocumentDescription';\r\n public static LOAD_DOCUMENT_PAGE = '/loadDocumentPage';\r\n public static LOAD_DOCUMENT_PROPERTIES = '/loadProperties';\r\n public static LOAD_DOCUMENT_PROPERTIES_NAMES = '/loadPropertiesNames';\r\n public static SAVE_PROPERTY = '/saveProperty';\r\n public static REMOVE_PROPERTY = '/removeProperty';\r\n public static ROTATE_DOCUMENT_PAGE = '/rotateDocumentPages';\r\n public static UPLOAD_DOCUMENTS = '/uploadDocument';\r\n public static DOWNLOAD_DOCUMENTS = '/downloadDocument';\r\n public static LOAD_PRINT = '/loadPrint';\r\n public static LOAD_PRINT_PDF = '/printPdf';\r\n public static LOAD_THUMBNAILS = '/loadThumbnails';\r\n public static LOAD_FORMATS = '/loadFormats';\r\n public static SAVE_FILE = '/saveFile';\r\n public static CREATE_FILE = '/createFile';\r\n public static COMPARE_FILES = '/compare';\r\n public static CONVERT_FILE = '/convert';\r\n public static DELETE_SIGNATURE_FILE = '/deleteSignatureFile';\r\n public static REMOVE_FROM_INDEX = '/removeFromIndex';\r\n public static GET_FILE_STATUS = '/getFileStatus';\r\n public static SAVE_OPTICAL_CODE = '/saveOpticalCode';\r\n public static SAVE_TEXT = '/saveText';\r\n public static SAVE_IMAGE = '/saveImage';\r\n public static SAVE_STAMP = '/saveStamp';\r\n public static SIGN = '/sign';\r\n public static DOWNLOAD_SIGNED = '/downloadSigned';\r\n public static LOAD_SIGNATURE_IMAGE = '/loadSignatureImage';\r\n public static ANNOTATE = '/annotate';\r\n public static SEARCH = '/search';\r\n public static ADD_FILES_TO_INDEX = '/addFilesToIndex';\r\n\r\n public static httpOptionsJson = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n })\r\n };\r\n public static httpOptionsJsonResponseTypeBlob = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n }),\r\n responseType: 'blob' as 'blob'\r\n };\r\n}\r\n\r\n@Injectable()\r\nexport class ConfigService {\r\n\r\n private _apiEndpoint: string;\r\n\r\n constructor() {\r\n this.apiEndpoint = Api.DEFAULT_API_ENDPOINT;\r\n }\r\n\r\n set apiEndpoint(url: string) {\r\n this._apiEndpoint = url && url.trim().endsWith('/') ? url.substring(0, url.length - 1) : url;\r\n }\r\n\r\n getConfigEndpoint(app) {\r\n return (this.apiEndpoint.endsWith(app) ? this.apiEndpoint : this.apiEndpoint + app) + Api.LOAD_CONFIG;\r\n }\r\n\r\n getViewerApiEndpoint() {\r\n return this._apiEndpoint.endsWith(Api.VIEWER_APP) ? this._apiEndpoint : this._apiEndpoint + Api.VIEWER_APP;\r\n }\r\n\r\n getEditorApiEndpoint() {\r\n return this._apiEndpoint.trim().endsWith(Api.EDITOR_APP) ? this._apiEndpoint : this._apiEndpoint + Api.EDITOR_APP;\r\n }\r\n\r\n getComparisonApiEndpoint() {\r\n return this._apiEndpoint.trim().endsWith(Api.COMPARISON_APP) ? this._apiEndpoint : this._apiEndpoint + Api.COMPARISON_APP;\r\n }\r\n\r\n getConversionApiEndpoint() {\r\n return this._apiEndpoint.trim().endsWith(Api.CONVERSION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.CONVERSION_APP;\r\n }\r\n\r\n getMetadataApiEndpoint() {\r\n return this._apiEndpoint.trim().endsWith(Api.METADATA_APP) ? this._apiEndpoint : this._apiEndpoint + Api.METADATA_APP;\r\n }\r\n\r\n get apiEndpoint() {\r\n return this._apiEndpoint;\r\n }\r\n\r\n getSignatureApiEndpoint() {\r\n return this._apiEndpoint.endsWith(Api.SIGNATURE_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SIGNATURE_APP;\r\n }\r\n\r\n getAnnotationApiEndpoint() {\r\n return this._apiEndpoint.endsWith(Api.ANNOTATION_APP) ? this._apiEndpoint : this._apiEndpoint + Api.ANNOTATION_APP;\r\n }\r\n\r\n getSearchApiEndpoint() {\r\n return this._apiEndpoint.endsWith(Api.SEARCH_APP) ? this._apiEndpoint : this._apiEndpoint + Api.SEARCH_APP;\r\n }\r\n}\r\n","export class CommonModals {\r\n static PasswordRequired = \"gd-password-required\";\r\n static ErrorMessage = \"gd-error-message\";\r\n static BrowseFiles = \"gd-browse-files\";\r\n static CreateDocument = \"gd-create-document\";\r\n static OperationSuccess = \"gd-success-modal\";\r\n static DrawHandSignature = \"gd-draw-hand-signature\";\r\n static DrawStampSignature = \"gd-draw-stamp-signature\";\r\n static InformationMessage = \"gd-information-message\";\r\n}\r\n\r\nexport class ModalService {\r\n private modals: any[] = [];\r\n\r\n add(modal: any) {\r\n this.modals.push(modal);\r\n }\r\n\r\n remove(id: string) {\r\n this.modals = this.modals.filter(x => x.id !== id);\r\n }\r\n\r\n open(id: string) {\r\n const modal: any = this.modals.filter(x => x.id === id)[0];\r\n if (modal) {\r\n modal.open();\r\n }\r\n }\r\n\r\n close(id: string) {\r\n const modal: any = this.modals.filter(x => x.id === id)[0];\r\n if (modal) {\r\n modal.close();\r\n }\r\n }\r\n}\r\n","import {Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';\r\nimport {ModalService} from \"../modal.service\";\r\n\r\n@Component({\r\n selector: 'gd-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.less']\r\n})\r\nexport class ModalComponent implements OnInit, OnDestroy {\r\n @Input() id: string;\r\n @Input() title: string;\r\n @Output() visible = new EventEmitter();\r\n @Output() cancel = new EventEmitter();\r\n visibility = false;\r\n private element: any;\r\n\r\n constructor(private modalService: ModalService, el: ElementRef) {\r\n this.element = el.nativeElement;\r\n }\r\n\r\n ngOnInit(): void {\r\n if (!this.id) {\r\n console.error('modal must have an id');\r\n return;\r\n }\r\n\r\n document.body.appendChild(this.element);\r\n\r\n this.modalService.add(this);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.modalService.remove(this.id);\r\n this.element.remove();\r\n }\r\n\r\n open(): void {\r\n this.visibility = true;\r\n this.visible.emit(true);\r\n }\r\n\r\n close(): void {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.visibility = false;\r\n this.visible.emit(false);\r\n }\r\n\r\n onClose($event: MouseEvent) {\r\n $event.stopPropagation();\r\n if ($event && $event.target && ($event.target).id === 'modalDialog') {\r\n this.close();\r\n }\r\n }\r\n\r\n cancelClose() {\r\n this.cancel.emit(false);\r\n this.close();\r\n }\r\n}\r\n","export class PageModel {\r\n data: string;\r\n angle: number;\r\n width: number;\r\n height: number;\r\n number: number;\r\n editable: boolean;\r\n}\r\n\r\nexport class RotatedPage {\r\n pageNumber: number;\r\n angle: number;\r\n}\r\n\r\nexport class FileCredentials {\r\n guid: string;\r\n password: string;\r\n\r\n constructor(guid: string, password: string) {\r\n this.guid = guid;\r\n this.password = password;\r\n }\r\n}\r\n\r\nexport class SaveFile extends FileCredentials {\r\n content: string;\r\n\r\n constructor(guid: string, password: string, content: string) {\r\n super(guid, password);\r\n this.content = content;\r\n }\r\n}\r\n\r\nexport class FileDescription {\r\n guid: string;\r\n pages: PageModel[];\r\n printAllowed = true;\r\n showGridLines: boolean;\r\n thumbnails: PageModel[];\r\n}\r\n\r\nexport class FileModel {\r\n guid: string;\r\n name: string;\r\n directory: boolean;\r\n size: number;\r\n isDirectory: boolean;\r\n}\r\n\r\nexport class HttpError {\r\n static BadRequest = 400;\r\n static Unauthorized = 401;\r\n static Forbidden = 403;\r\n static NotFound = 404;\r\n static TimeOut = 408;\r\n static Conflict = 409;\r\n static InternalServerError = 500;\r\n}\r\n\r\nexport class Utils {\r\n public static getMousePosition(event) {\r\n const mouse = {\r\n x: 0,\r\n y: 0\r\n };\r\n const wEvent: DragEvent = window.event;\r\n const ev = event || wEvent; //Moz || IE\r\n if (ev.pageX || wEvent.pageX || wEvent.screenX || (ev.touches && ev.touches[0] && ev.touches[0].pageX)) { //Moz\r\n const pageX = typeof ev.pageX !== \"undefined\" && ev.pageX !== 0 ? ev.pageX : wEvent.pageX;\r\n const pageY = typeof ev.pageY !== \"undefined\" && ev.pageY !== 0 ? ev.pageY : wEvent.pageY;\r\n const screenX = typeof wEvent.screenX !== \"undefined\" && wEvent.screenY !== 0;\r\n const screenY = typeof wEvent.screenY !== \"undefined\" && wEvent.screenY !== 0;\r\n mouse.x = pageX ? pageX : (screenX ? wEvent.screenX : ev.touches[0].pageX);\r\n mouse.y = pageY ? pageY : (screenY ? wEvent.screenY : ev.touches[0].pageY);\r\n } else if (ev.clientX) { //IE\r\n mouse.x = ev.clientX + document.body.scrollLeft;\r\n mouse.y = ev.clientY + document.body.scrollTop;\r\n }\r\n return mouse;\r\n }\r\n\r\n public static toRgb(color: string) {\r\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(color);\r\n if (result) {\r\n const r = parseInt(result[1], 16);\r\n const g = parseInt(result[2], 16);\r\n const b = parseInt(result[3], 16);\r\n return result ? 'rgb(' + r + ',' + g + ',' + b + ')' : '';\r\n }\r\n return color;\r\n }\r\n\r\n public static toHex(color: string) {\r\n // check if color is standard hex value\r\n if (color.match(/[0-9A-F]{6}|[0-9A-F]{3}$/i)) {\r\n return (color.charAt(0) === \"#\") ? color : (\"#\" + color);\r\n // check if color is RGB value -> convert to hex\r\n } else if (color.match(/^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/)) {\r\n const c = ([parseInt(RegExp.$1, 10), parseInt(RegExp.$2, 10), parseInt(RegExp.$3, 10)]),\r\n pad = function (str) {\r\n if (str.length < 2) {\r\n for (let i = 0, len = 2 - str.length; i < len; i++) {\r\n str = '0' + str;\r\n }\r\n }\r\n return str;\r\n };\r\n if (c.length === 3) {\r\n const r = pad(c[0].toString(16)),\r\n g = pad(c[1].toString(16)),\r\n b = pad(c[2].toString(16));\r\n return '#' + r + g + b;\r\n }\r\n // else do nothing\r\n } else {\r\n return '';\r\n }\r\n }\r\n}\r\n\r\nexport class FileUtil {\r\n public static map = {\r\n 'folder': {'format': '', 'icon': 'folder'},\r\n 'pdf': {'format': 'Portable Document Format', 'icon': 'file-pdf', 'unit': 'pt'},\r\n 'doc': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'docx': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'docm': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'dot': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'dotx': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'dotm': {'format': 'Microsoft Word', 'icon': 'file-word', 'unit': 'pt'},\r\n 'xls': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xlsx': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xlsm': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xlsb': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xls2003': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xltx': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'xltm': {'format': 'Microsoft Excel', 'icon': 'file-excel', 'unit': 'px'},\r\n 'ppt': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'pptx': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'pps': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'ppsx': {'format': 'Microsoft PowerPoint', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'vsd': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vdx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vss': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vsx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vst': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vtx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vsdx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vdw': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vstx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'vssx': {'format': 'Microsoft Visio', 'icon': 'file-code', 'unit': 'px'},\r\n 'mpp': {'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'mpt': {'format': 'Microsoft Project', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'msg': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'eml': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'emlx': {'format': 'Microsoft Outlook', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'one': {'format': 'Microsoft OneNote', 'icon': 'file-word', 'unit': 'pt'},\r\n 'odt': {'format': 'Open Document Text', 'icon': 'file-word', 'unit': 'pt'},\r\n 'ott': {'format': 'Open Document Text Template', 'icon': 'file-word', 'unit': 'pt'},\r\n 'ods': {'format': 'Open Document Spreadsheet', 'icon': 'file-excel', 'unit': 'px'},\r\n 'odp': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'otp': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'ots': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'potx': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'potm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'pptm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'ppsm': {'format': 'Open Document Presentation', 'icon': 'file-powerpoint', 'unit': 'pt'},\r\n 'rtf': {'format': 'Rich Text Format', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'txt': {'format': 'Plain Text File', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'csv': {'format': 'Comma-Separated Values', 'icon': 'file-excel', 'unit': 'px'},\r\n 'html': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\r\n 'mht': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\r\n 'mhtml': {'format': 'HyperText Markup Language', 'icon': 'file-word', 'unit': 'pt'},\r\n 'xml': {'format': 'Extensible Markup Language', 'icon': 'file-word', 'unit': 'pt'},\r\n 'xps': {'format': 'XML Paper Specification', 'icon': 'file-word', 'unit': 'pt'},\r\n 'dxf': {'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'dwg': {'format': 'AutoCAD Drawing File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'bmp': {'format': 'Bitmap Picture', 'icon': 'file-image', 'unit': 'px'},\r\n 'gif': {'format': 'Graphics Interchange Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'jpg': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\r\n 'jpe': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\r\n 'jpeg': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\r\n 'jfif': {'format': 'Joint Photographic Experts Group', 'icon': 'file-image', 'unit': 'px'},\r\n 'png': {'format': 'Portable Network Graphics', 'icon': 'file-image', 'unit': 'px'},\r\n 'tiff': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'tif': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'psd': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'svg': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'jp2': {'format': 'Tagged Image File Format', 'icon': 'file-image', 'unit': 'px'},\r\n 'epub': {'format': 'Electronic Publication', 'icon': 'file-pdf', 'unit': 'pt'},\r\n 'ico': {'format': 'Windows Icon', 'icon': 'file-image', 'unit': 'px'},\r\n 'webp': {'format': 'Compressed Image', 'icon': 'file-image', 'unit': 'px'},\r\n 'mobi': {'format': 'Mobipocket eBook', 'icon': 'file-pdf', 'unit': 'pt'},\r\n 'tex': {'format': 'LaTeX Source Document', 'icon': 'file-pdf', 'unit': 'pt'},\r\n 'djvu': {'format': 'Multi-Layer Raster Image', 'icon': 'file-alt', 'unit': 'pt'},\r\n 'unknown': {'format': 'This format is not supported', 'icon': 'file'},\r\n };\r\n\r\n public static find(filename: string, isDirectory: boolean) {\r\n if (filename && !isDirectory) {\r\n const strings = filename.split('.');\r\n const name = strings.pop().toLowerCase();\r\n if (typeof FileUtil.map[name] === \"undefined\") {\r\n return strings.length > 0 ? FileUtil.map['unknown'] : FileUtil.map['folder'];\r\n } else {\r\n return FileUtil.map[name];\r\n }\r\n } else {\r\n return FileUtil.map['folder'];\r\n }\r\n }\r\n}\r\n\r\nexport class FileService {\r\n\r\n constructor() {\r\n }\r\n}\r\n","import {Observable, Observer} from \"rxjs\";\r\n\r\nexport class UploadFilesService {\r\n private _uploadsChange: Observable;\r\n private _observer: Observer;\r\n\r\n constructor() {\r\n this._uploadsChange = new Observable(observer =>\r\n this._observer = observer);\r\n }\r\n\r\n get uploadsChange(): Observable {\r\n return this._uploadsChange;\r\n }\r\n\r\n changeFilesList(filesList: FileList) {\r\n this._observer.next(filesList);\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {FileModel, FileUtil} from \"../file.service\";\r\nimport {UploadFilesService} from \"../upload-files.service\";\r\nimport * as jquery from \"jquery\";\r\nconst $ = jquery;\r\n\r\nconst upload_disc = 'Disc';\r\n\r\nconst upload_url = 'URL';\r\n\r\nconst uploads_choices = [{name: upload_disc, icon: 'hdd'}, {name: upload_url, icon: 'link'}];\r\n\r\n@Component({\r\n selector: 'gd-browse-files-modal',\r\n templateUrl: './browse-files-modal.component.html',\r\n styleUrls: ['./browse-files-modal.component.less']\r\n})\r\nexport class BrowseFilesModalComponent implements OnInit {\r\n uploads = uploads_choices;\r\n\r\n @Input() files;\r\n @Input() uploadConfig;\r\n @Output() selectedFileGuid = new EventEmitter();\r\n @Output() selectedDirectory = new EventEmitter();\r\n @Output() urlForUpload = new EventEmitter();\r\n @Output() closing = new EventEmitter();\r\n private selectedFile: FileModel;\r\n showUploadUrl = false;\r\n showUploadFile = false;\r\n\r\n constructor(private _uploadService: UploadFilesService) {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n getSize(size: number) {\r\n const mb = size / 1024 / 1024;\r\n if (mb > 1) {\r\n return (Math.round(mb * 100) / 100) + ' MB';\r\n } else {\r\n const kb = size / 1024;\r\n if (kb > 1) {\r\n return (Math.round(kb * 100) / 100) + ' KB';\r\n }\r\n }\r\n return size + ' Bytes';\r\n }\r\n\r\n getFormatName(file: FileModel) {\r\n return FileUtil.find(file.name, file.directory).format;\r\n }\r\n\r\n getFormatIcon(file: FileModel) {\r\n return FileUtil.find(file.name, file.directory).icon;\r\n }\r\n\r\n choose(file: FileModel) {\r\n this.selectedFile = file;\r\n if (file.directory || file.isDirectory) {\r\n this.selectedDirectory.emit(file.name);\r\n } else {\r\n this.selectedFileGuid.emit(file.guid);\r\n }\r\n }\r\n\r\n goUp() {\r\n if (this.selectedFile) {\r\n let guid = this.selectedFile.guid;\r\n if (guid.length > 0 && guid.indexOf('/') === -1) {\r\n guid = '';\r\n } else {\r\n guid = guid.replace(/\\/[^\\/]+\\/?$/, '');\r\n }\r\n this.selectedDirectory.emit(guid);\r\n }\r\n }\r\n\r\n selectUpload($event: string) {\r\n if (upload_url === $event) {\r\n this.showUploadUrl = true;\r\n } else {\r\n this.showUploadUrl = false;\r\n $(\"#gd-upload-input\").trigger('click');\r\n }\r\n }\r\n\r\n refresh($event) {\r\n\r\n if ($event) {\r\n this.files = null;\r\n this.selectedDirectory.emit('');\r\n this.showUploadUrl = false;\r\n this.selectedFile = null;\r\n } else {\r\n this.closing.emit(true);\r\n }\r\n }\r\n\r\n showSpinner() {\r\n return !this.files;\r\n }\r\n\r\n uploadUrl(url: string) {\r\n if (url) {\r\n this.urlForUpload.emit(url);\r\n this.cleanUpload();\r\n }\r\n }\r\n\r\n handleFileInput(files: FileList) {\r\n this._uploadService.changeFilesList(files);\r\n }\r\n\r\n cleanUpload() {\r\n this.showUploadFile = false;\r\n this.showUploadUrl = false;\r\n }\r\n}\r\n","import {Observable, Subject} from \"rxjs\";\r\n\r\nexport class ZoomService {\r\n private _observer: Subject = new Subject();\r\n private readonly _zoomChange: Observable = this._observer.asObservable();\r\n private _zoom: number;\r\n\r\n constructor() {\r\n }\r\n\r\n get zoom(): number {\r\n return this._zoom;\r\n }\r\n\r\n get zoomChange(): Observable {\r\n return this._zoomChange;\r\n }\r\n\r\n changeZoom(zoom: number) {\r\n this._zoom = zoom;\r\n this._observer.next(zoom);\r\n }\r\n\r\n private createZoomOption(val: any, name: string, sep: boolean = false) {\r\n return {value: val, name: name, separator: sep}\r\n }\r\n\r\n zoomOptions(width, height) {\r\n return [this.createZoomOption(25, '25%'),\r\n this.createZoomOption(50, '50%'),\r\n this.createZoomOption(100,'100%'),\r\n this.createZoomOption(150, '150%'),\r\n this.createZoomOption(200, '200%'),\r\n this.createZoomOption(300, '300%'),\r\n this.createZoomOption(0, '', true),\r\n this.createZoomOption(width, 'Fit Width'),\r\n this.createZoomOption(height, 'Fit Height')];\r\n }\r\n}\r\n","import {Observable, Observer} from \"rxjs\";\r\n\r\nexport class PagePreloadService {\r\n private readonly _checkPreload: Observable;\r\n private _observer: Observer;\r\n\r\n constructor() {\r\n this._checkPreload = new Observable(observer =>\r\n this._observer = observer);\r\n }\r\n\r\n get checkPreload(): Observable {\r\n return this._checkPreload;\r\n }\r\n\r\n changeLastPageInView(page: number) {\r\n if(this._observer) {\r\n this._observer.next(page);\r\n }\r\n }\r\n}\r\n","import {BehaviorSubject, Observable} from \"rxjs\";\r\nimport {PagePreloadService} from \"./page-preload.service\";\r\nimport {Injectable} from \"@angular/core\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NavigateService {\r\n private _currentPage = 0;\r\n private _countPages = 0;\r\n private _observer: BehaviorSubject = new BehaviorSubject(null);\r\n private _navigate: Observable = this._observer.asObservable();\r\n\r\n constructor(private _pagePreloadService: PagePreloadService) {\r\n }\r\n\r\n get navigate(): Observable {\r\n return this._navigate;\r\n }\r\n\r\n get countPages(): number {\r\n return this._countPages;\r\n }\r\n\r\n set countPages(value: number) {\r\n this._countPages = value;\r\n }\r\n\r\n get currentPage(): number {\r\n return this._currentPage;\r\n }\r\n\r\n set currentPage(value: number) {\r\n this._currentPage = value;\r\n }\r\n\r\n nextPage() {\r\n if (this._currentPage < this._countPages) {\r\n this._currentPage++;\r\n this.navigateTo(this._currentPage);\r\n }\r\n }\r\n\r\n prevPage() {\r\n if (this._currentPage > 1) {\r\n this._currentPage--;\r\n this.navigateTo(this._currentPage);\r\n }\r\n }\r\n\r\n toLastPage() {\r\n this._currentPage = this._countPages;\r\n this.navigateTo(this._currentPage);\r\n }\r\n\r\n toFirstPage() {\r\n this._currentPage = 1;\r\n this.navigateTo(this._currentPage);\r\n }\r\n\r\n navigateTo(page: number) {\r\n this.currentPage = page;\r\n this._pagePreloadService.changeLastPageInView(page);\r\n this._observer.next(page);\r\n }\r\n}\r\n","import {\r\n AfterViewChecked,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnInit,\r\n AfterViewInit,\r\n OnChanges,\r\n Output,\r\n EventEmitter\r\n} from '@angular/core';\r\nimport {FileDescription, FileUtil} from \"../file.service\";\r\nimport {ZoomService} from \"../zoom.service\";\r\nimport * as Hammer from 'hammerjs';\r\nimport {WindowService} from '../window.service';\r\nimport * as jquery from 'jquery';\r\nimport { NavigateService } from '../navigate.service';\r\n\r\nconst $ = jquery;\r\n\r\n@Component({\r\n selector: 'gd-document',\r\n templateUrl: './document.component.html',\r\n styleUrls: ['./document.component.less']\r\n})\r\nexport class DocumentComponent implements OnInit, AfterViewChecked, AfterViewInit, OnChanges {\r\n\r\n @Input() mode: boolean;\r\n @Input() preloadPageCount: number;\r\n @Input() file: FileDescription;\r\n @Input() selectedPage: number;\r\n wait = false;\r\n zoom: number;\r\n\r\n docWidth = null;\r\n docHeight = null;\r\n viewportWidth = null;\r\n viewportHeight = null;\r\n scale = null;\r\n lastScale = null;\r\n container = null;\r\n doc = null;\r\n x = 0;\r\n lastX = 0;\r\n y = 0;\r\n lastY = 0;\r\n pinchCenter = null;\r\n pinchCenterOffset = null;\r\n curWidth = 0;\r\n curHeight = 0;\r\n isDesktop: boolean;\r\n\r\n constructor(protected _elementRef: ElementRef,\r\n private _zoomService: ZoomService,\r\n private _windowService: WindowService,\r\n private _navigateService: NavigateService,) {\r\n _zoomService.zoomChange.subscribe((val: number) => {\r\n this.zoom = val;\r\n });\r\n\r\n this.isDesktop = _windowService.isDesktop();\r\n\r\n this._navigateService.navigate.subscribe(((\r\n value => {\r\n this.selectedPage = value;\r\n })));\r\n }\r\n\r\n ngOnInit() {\r\n if (this.ifPresentation())\r\n {\r\n this.selectedPage = this._navigateService.currentPage;\r\n }\r\n }\r\n\r\n ngOnChanges() {\r\n }\r\n\r\n ngAfterViewInit() {\r\n // For current iteration we take .panzoom as a document\r\n this.doc = this._elementRef.nativeElement.children.item(0).children.item(0);\r\n // For current iteration we take .gd-document as a container\r\n this.container = this._elementRef.nativeElement;\r\n\r\n this.docWidth = this.doc.clientWidth;\r\n this.docHeight = this.doc.clientHeight;\r\n this.viewportWidth = this.doc.offsetWidth;\r\n\r\n // For cases where we already have zoom defined we should include it\r\n this.scale = (this.viewportWidth / this.docWidth) * this._zoomService.zoom / 100;\r\n\r\n this.lastScale = this.scale;\r\n this.viewportHeight = this.container.offsetHeight;\r\n this.curWidth = this.docWidth * this.scale;\r\n this.curHeight = this.docHeight * this.scale;\r\n\r\n const hammer = new Hammer(this.container);\r\n }\r\n\r\n // TODO: this temporary crutch for Excel files should be documented\r\n ifExcel() {\r\n return FileUtil.find(this.file.guid, false).format === \"Microsoft Excel\";\r\n }\r\n\r\n ifPresentation() {\r\n return FileUtil.find(this.file.guid, false).format === \"Microsoft PowerPoint\";\r\n }\r\n\r\n getDimensionWithUnit(value: number, pageNumber: number) {\r\n return this.ifPresentation() && !this.isVisible(pageNumber) ? 0 : value + (this.mode ? FileUtil.find(this.file.guid, false).unit : 'px');\r\n }\r\n\r\n ifEdge() {\r\n return navigator.userAgent.toLowerCase().indexOf('edge') > -1;\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n const elementNodeListOf = this._elementRef.nativeElement.querySelectorAll('.gd-wrapper');\r\n const element = elementNodeListOf.item(0);\r\n if (element) {\r\n $(element).trigger('focus');\r\n }\r\n }\r\n\r\n isVisible(pageNumber) {\r\n if (this.ifPresentation()) {\r\n return pageNumber === this.selectedPage ? true : false;\r\n }\r\n else {\r\n return true;\r\n }\r\n }\r\n}\r\n","import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-page',\r\n templateUrl: './page.component.html',\r\n styleUrls: ['./page.component.less']\r\n})\r\nexport class PageComponent implements OnInit, OnChanges {\r\n\r\n @Input() angle: number;\r\n @Input() width: number;\r\n @Input() height: number;\r\n @Input() number: number;\r\n @Input() data: string;\r\n @Input() isHtml: boolean;\r\n @Input() editable: boolean;\r\n imgData: string;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n const isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\r\n if(isIE && this.number === 0){\r\n this.editable = false;\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n // TODO: this is temporary needed to remove unneeded spaces and BOM symbol \r\n // which leads to undesired spaces on the top of the docs pages\r\n this.data = this.data !== null ? this.data.replace(/>\\s+<')\r\n .replace(/\\uFEFF/g,\"\")\r\n .replace(/href=\"\\/viewer/g, 'href=\"http://localhost:8080/viewer')\r\n .replace(/src=\"\\/viewer/g, 'src=\"http://localhost:8080/viewer')\r\n .replace(/data=\"\\/viewer/g, 'data=\"http://localhost:8080/viewer')\r\n : null;\r\n const dataImagePngBase64 = 'data:image/png;base64,';\r\n this.imgData = dataImagePngBase64;\r\n if (!this.isHtml) {\r\n this.imgData += this.data;\r\n }\r\n }\r\n}\r\n","import {Pipe, PipeTransform} from '@angular/core';\r\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\r\n\r\n@Pipe({name: 'safeHtml'})\r\nexport class SanitizeHtmlPipe implements PipeTransform{\r\n constructor(private sanitizer: DomSanitizer) {\r\n }\r\n\r\n transform(html: string): SafeHtml {\r\n return this.sanitizer.bypassSecurityTrustHtml(html);\r\n }\r\n}\r\n\r\n@Pipe({name: 'safeResourceHtml'})\r\nexport class SanitizeResourceHtmlPipe implements PipeTransform{\r\n constructor(private sanitizer: DomSanitizer) {\r\n }\r\n\r\n transform(html: string): SafeHtml {\r\n return this.sanitizer.bypassSecurityTrustResourceUrl(html);\r\n }\r\n}\r\n\r\n@Pipe({name: 'safeStyle'})\r\nexport class SanitizeStylePipe implements PipeTransform{\r\n constructor(private sanitizer: DomSanitizer) {\r\n }\r\n\r\n transform(html: string): SafeHtml {\r\n return this.sanitizer.bypassSecurityTrustStyle(html);\r\n }\r\n}\r\n\r\n@Pipe({name: 'highlight'})\r\nexport class HighlightSearchPipe implements PipeTransform {\r\n\r\n transform(value: string, args: string): any {\r\n if (!args) {\r\n return value;\r\n }\r\n const re = new RegExp(args, 'gi'); //'gi' for case insensitive and can use 'g' if you want the search to be case sensitive.\r\n return value.replace(re, \"$& \");\r\n }\r\n}\r\n","import {Component, EventEmitter, OnInit, Output} from '@angular/core';\r\nimport {UploadFilesService} from \"../upload-files.service\";\r\n\r\n@Component({\r\n selector: 'gd-upload-file-zone',\r\n templateUrl: './upload-file-zone.component.html',\r\n styleUrls: ['./upload-file-zone.component.less']\r\n})\r\nexport class UploadFileZoneComponent implements OnInit {\r\n\r\n @Output() closeUpload = new EventEmitter();\r\n\r\n constructor(private _uploadService: UploadFilesService) { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n handleFileInput(files: FileList) {\r\n this._uploadService.changeFilesList(files);\r\n this.onCloseUpload();\r\n }\r\n\r\n onCloseUpload() {\r\n this.closeUpload.emit(true);\r\n }\r\n\r\n close($event) {\r\n if ($event.target.id === 'gd-dropZone') {\r\n this.onCloseUpload();\r\n }\r\n }\r\n}\r\n","import {Directive, EventEmitter, HostBinding, HostListener, Input, Output} from '@angular/core';\r\nimport {UploadFilesService} from \"./upload-files.service\";\r\n\r\n@Directive({\r\n selector: '[gdDnd]'\r\n})\r\nexport class DndDirective {\r\n\r\n @Output() closing = new EventEmitter();\r\n @Output() opening = new EventEmitter();\r\n @Output() dropped = new EventEmitter();\r\n\r\n @HostBinding('class.active') active = false;\r\n\r\n private dragCounter = 0;\r\n\r\n constructor(protected _uploadFilesService: UploadFilesService) {\r\n }\r\n\r\n @HostListener('dragenter', ['$event'])\r\n public onDragEnter(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n this.dragCounter++;\r\n this.active = true;\r\n this.opening.emit(true);\r\n }\r\n\r\n @HostListener('dragover', ['$event'])\r\n public onDragOver(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n return false;\r\n }\r\n\r\n @HostListener('dragleave', ['$event'])\r\n public onDragLeave(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n this.dragCounter--;\r\n if (this.dragCounter === 0) {\r\n this.active = false;\r\n this.closeArea();\r\n }\r\n }\r\n\r\n @HostListener('drop', ['$event'])\r\n public onDrop(evt) {\r\n evt.preventDefault();\r\n evt.stopPropagation();\r\n const files = evt.dataTransfer.files;\r\n if (files.length > 0) {\r\n this.active = false;\r\n this.dropped.emit(true);\r\n this._uploadFilesService.changeFilesList(files);\r\n this.closeArea();\r\n }\r\n }\r\n\r\n @HostListener('click', ['$event'])\r\n public onClick(event) {\r\n this.closeArea();\r\n }\r\n\r\n private closeArea() {\r\n this.closing.emit(true);\r\n this.opening.emit(false);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport * as jquery from \"jquery\";\r\nconst $ = jquery;\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ViewportService {\r\n\r\n constructor() {\r\n }\r\n\r\n checkInViewport(el, zoom: number = 100, leftOffset: number = 0, deltaX: number = 0.5) {\r\n if (!el) {\r\n return false;\r\n }\r\n const x = deltaX;\r\n const y = 0.5;\r\n\r\n const win = $(window);\r\n\r\n const viewport = {\r\n top: win.scrollTop(),\r\n left: win.scrollLeft() + leftOffset,\r\n right: win.scrollLeft() + win.width() - 10,\r\n bottom: win.scrollTop() + win.height()\r\n };\r\n\r\n\r\n if (isNaN(zoom)) {\r\n zoom = 100;\r\n }\r\n\r\n const zoomN = zoom / 100;\r\n const height = $(el).outerHeight() * (zoomN);\r\n const width = $(el).outerWidth() * (zoomN);\r\n\r\n if (!width || !height) {\r\n return false;\r\n }\r\n\r\n const bounds = $(el).offset();\r\n const right = (bounds.left * (zoomN)) + width;\r\n const bottom = (bounds.top * (zoomN)) + height;\r\n\r\n const visible = (!(viewport.right < (bounds.left * (zoomN)) || viewport.left > right || viewport.bottom < (bounds.top * (zoomN)) || viewport.top > bottom));\r\n\r\n if (!visible) {\r\n return false;\r\n }\r\n\r\n const deltas = {\r\n top: parseFloat(Math.min(1, (bottom - viewport.top) / height).toFixed(2)),\r\n bottom: parseFloat(Math.min(1, (viewport.bottom - (bounds.top * (zoomN))) / height).toFixed(2)),\r\n left: parseFloat(Math.min(1, (right - viewport.left) / width).toFixed(2)),\r\n right: parseFloat(Math.min(1, (viewport.right - (bounds.left * (zoomN))) / width).toFixed(2))\r\n };\r\n\r\n return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Directive,\r\n ElementRef,\r\n HostListener,\r\n Input,\r\n OnChanges,\r\n OnInit,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport {NavigateService} from \"./navigate.service\";\r\nimport {PagePreloadService} from \"./page-preload.service\";\r\nimport {ZoomService} from \"./zoom.service\";\r\nimport {WindowService} from \"./window.service\";\r\nimport {ViewportService} from \"./viewport.service\";\r\nimport * as jquery from \"jquery\";\r\nconst $ = jquery;\r\n\r\n@Directive({\r\n selector: '[gdScrollable]'\r\n})\r\nexport class ScrollableDirective implements AfterViewInit, OnChanges, OnInit {\r\n\r\n private currentPage: number;\r\n private zoom = 100;\r\n private loadedPagesSet = new Set();\r\n\r\n constructor(private _elementRef: ElementRef,\r\n private _navigateService: NavigateService,\r\n private _pagePreloadService: PagePreloadService,\r\n private _zoomService: ZoomService,\r\n private _windowService: WindowService,\r\n private _viewportService: ViewportService) {\r\n\r\n this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;\r\n _zoomService.zoomChange.subscribe((val: number) => {\r\n this.zoom = val ? val : this.zoom;\r\n this.refresh();\r\n });\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;\r\n this._navigateService.navigate.subscribe((value => {\r\n this.currentPage = value;\r\n this.scrollToPage(value);\r\n }));\r\n this.refresh();\r\n }\r\n\r\n @HostListener('scroll') scrolling() {\r\n this.refresh();\r\n }\r\n\r\n @HostListener('window:resize') resizing() {\r\n this.refresh();\r\n }\r\n\r\n scrollToPage(pageNumber: number) {\r\n const el = this._elementRef.nativeElement;\r\n const page = this.getPage(pageNumber);\r\n const prev = pageNumber > 0 ? this.getPage(pageNumber - 1) : null;\r\n const isSameTop = (prev && $(prev).offset().top === $(page).offset().top);\r\n if (this._viewportService.checkInViewport(page, this.zoom) && isSameTop) {\r\n return;\r\n }\r\n const pagesHeight = this.calculateOffset(pageNumber);\r\n const options = {\r\n left: 0,\r\n top: pagesHeight\r\n };\r\n if(el){\r\n // using polyfill\r\n el.scroll(options);\r\n }\r\n }\r\n\r\n private getChildren() {\r\n const el = this._elementRef ? this._elementRef.nativeElement : null;\r\n if (el) {\r\n // here and in the similar line below we getting the document pages\r\n return el.children.item(0).children.item(0).children;\r\n }\r\n }\r\n\r\n private getPage(pageNumber: number) {\r\n const el = this._elementRef ? this._elementRef.nativeElement : null;\r\n if (el) {\r\n return el.children.item(0).children.item(0).children.item(pageNumber - 1);\r\n }\r\n }\r\n\r\n private calculateOffset(pageNumber: number) {\r\n const count = this._windowService.isFirefox() ? 1 : this.countPagesOnWidth();\r\n const margin = this._windowService.isDesktop() ? 40 : 10;\r\n let pagesHeight = 0;\r\n for (let i = 1; i < pageNumber / count; i++) {\r\n const item = this.getPage(i);\r\n const clientHeight = item ? item.clientHeight : 0;\r\n pagesHeight += clientHeight > 0 ? clientHeight * this.getZoom() + margin : 0;\r\n }\r\n return pagesHeight;\r\n }\r\n\r\n private countPagesOnWidth() {\r\n const pageEl = this.getPage(1);\r\n const offset = 150;\r\n const count = Math.floor((this.getWidth() - offset) / (pageEl.getBoundingClientRect().width * this.getZoom()));\r\n return count === 0 ? 1 : count;\r\n }\r\n\r\n refresh() {\r\n let page;\r\n let currentPageSet = false;\r\n const pageElem = this.getPage(this.currentPage);\r\n const currentPageRect = this.currentPage && pageElem ? pageElem.getBoundingClientRect() : null;\r\n for (page = 1; page < this.getChildren().length + 1; page++) {\r\n const element = this.getPage(page);\r\n if (this._viewportService.checkInViewport(element, this.zoom)) {\r\n if (!currentPageSet) {\r\n if (!this.currentPage || !pageElem || (this.currentPage && currentPageRect && element.getBoundingClientRect().top !== currentPageRect.top)) {\r\n this.currentPage = page;\r\n if (this._navigateService.currentPage === 0) {\r\n this._navigateService.currentPage = page;\r\n }\r\n }\r\n currentPageSet = true;\r\n }\r\n if (!this.loadedPagesSet.has(page)) {\r\n this._pagePreloadService.changeLastPageInView(page);\r\n this.loadedPagesSet.add(page);\r\n }\r\n }\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n this.refresh();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.zoom = this._zoomService.zoom ? this._zoomService.zoom : this.zoom;\r\n }\r\n\r\n\r\n private getWidth() {\r\n return this._elementRef ? this._elementRef.nativeElement.offsetWidth : window.innerWidth;\r\n }\r\n\r\n private getZoom() {\r\n return this.zoom / 100;\r\n }\r\n}\r\n","import {\r\n Directive,\r\n EventEmitter,\r\n HostListener,\r\n Output} from '@angular/core';\r\nimport * as jquery from \"jquery\";\r\nconst $ = jquery;\r\n\r\n@Directive({\r\n selector: '[gdMouseWheel]'\r\n})\r\nexport class MouseWheelDirective {\r\n @Output() mouseWheelUp = new EventEmitter();\r\n @Output() mouseWheelDown = new EventEmitter();\r\n\r\n @HostListener('mousewheel', ['$event']) onMouseWheelChrome(event: any) {\r\n this.mouseWheelFunc(event);\r\n }\r\n\r\n @HostListener('DOMMouseScroll', ['$event']) onMouseWheelFirefox(event: any) {\r\n this.mouseWheelFunc(event);\r\n }\r\n\r\n @HostListener('onmousewheel', ['$event']) onMouseWheelIE(event: any) {\r\n this.mouseWheelFunc(event);\r\n }\r\n\r\n mouseWheelFunc(event: any) {\r\n event = window.event ;\r\n const delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));\r\n if(delta > 0) {\r\n this.mouseWheelUp.emit(event);\r\n } else if(delta < 0) {\r\n this.mouseWheelDown.emit(event);\r\n }\r\n }\r\n}\r\n","import {AfterViewInit, Directive, HostBinding, Input, OnDestroy, OnInit, ElementRef, OnChanges} from '@angular/core';\r\nimport {ZoomService} from \"./zoom.service\";\r\nimport {FileUtil} from \"./file.service\";\r\nimport { WindowService } from './window.service';\r\n\r\n@Directive({\r\n selector: '[gdZoom]'\r\n})\r\nexport class ZoomDirective implements OnInit, OnDestroy, AfterViewInit, OnChanges {\r\n\r\n @Input() zoomActive = true;\r\n @Input() file;\r\n\r\n @HostBinding('style.zoom') zoomInt: number;\r\n @HostBinding('style.transform') transform: string;\r\n @HostBinding('style.transform-origin') transformOrigin: string;\r\n @HostBinding('style.width') width: string;\r\n @HostBinding('style.height') height: string;\r\n @HostBinding('style.min-width') minWidth: string;\r\n el: ElementRef;\r\n\r\n constructor(private _zoomService: ZoomService, private _windowService: WindowService, el: ElementRef) {\r\n this.el = el;\r\n }\r\n\r\n ngOnDestroy(): void {\r\n }\r\n\r\n ngOnChanges(): void {\r\n this.setStyles(this._zoomService.zoom);\r\n this.resizePages(this._zoomService.zoom);\r\n }\r\n\r\n ngOnInit(): void {\r\n if (! this.zoomActive) {\r\n return;\r\n }\r\n\r\n this.setStyles(this._zoomService.zoom);\r\n this._zoomService.zoomChange.subscribe((zoom) => {\r\n this.setStyles(zoom);\r\n this.resizePages(zoom);\r\n });\r\n }\r\n\r\n private setStyles(zoom) {\r\n if (! this.zoomActive) {\r\n return;\r\n }\r\n\r\n const zoomInt = zoom === 100 ? 1 : zoom / 100;\r\n \r\n if (this._windowService.isEdge()) {\r\n this.zoomInt = zoomInt;\r\n }\r\n else {\r\n this.zoomInt = null;\r\n }\r\n \r\n if (!this._windowService.isEdge()) {\r\n this.transform = 'scale(' + zoomInt + ')';\r\n this.transformOrigin = 'top left';\r\n }\r\n else {\r\n this.transform = \"\";\r\n this.transformOrigin = \"\";\r\n }\r\n\r\n let maxWidth = 0;\r\n this.file.pages.forEach(page => {\r\n {\r\n if (page.width > maxWidth){\r\n maxWidth = page.width;\r\n }\r\n }\r\n });\r\n\r\n // Images and Excel-related files receiving dimensions in px from server\r\n this.minWidth = maxWidth + FileUtil.find(this.file.guid, false).unit;\r\n }\r\n\r\n private getScrollWidth(elm){\r\n return elm.offsetWidth - elm.clientWidth;\r\n }\r\n\r\n private getScrollHeight(elm){\r\n return elm.offsetHeight - elm.clientHeight;\r\n }\r\n\r\n private resizePages(zoom){\r\n const zoomInt = zoom === 100 ? 1 : zoom / 100;\r\n\r\n const viewPortWidth = this.el.nativeElement.parentElement.offsetWidth;\r\n const viewPortHeight = this.el.nativeElement.parentElement.offsetHeight;\r\n const scrollWidth = this.getScrollWidth(this.el.nativeElement.parentElement);\r\n const scrollHeight = this.getScrollHeight(this.el.nativeElement.parentElement);\r\n this.width = (viewPortWidth/zoomInt - scrollWidth/zoomInt) + 'px';\r\n this.height = (viewPortHeight/zoomInt - scrollHeight/zoomInt) + 'px';\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.setStyles(this._zoomService.zoom);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {Observable, Subject} from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class OnCloseService {\r\n private _observer: Subject = new Subject();\r\n private readonly _onClose: Observable = this._observer.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get onClose() {\r\n return this._onClose;\r\n }\r\n\r\n close(close: boolean) {\r\n this._observer.next(close)\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, Output} from '@angular/core';\r\nimport {OnCloseService} from \"../on-close.service\";\r\n\r\nexport interface Option {\r\n name: string;\r\n value: any;\r\n separator: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'gd-select',\r\n templateUrl: './select.component.html',\r\n styleUrls: ['./select.component.less']\r\n})\r\nexport class SelectComponent {\r\n\r\n @Input() options: Option[];\r\n @Input() disabled = false;\r\n @Input() showSelected: Option;\r\n @Output() selected: EventEmitter = new EventEmitter();\r\n @Input() isOpen = false;\r\n @Input() icon: string;\r\n\r\n constructor(protected _onCloseService: OnCloseService) {\r\n _onCloseService.onClose.subscribe(() => {\r\n this.close();\r\n });\r\n }\r\n\r\n open() {\r\n if (!this.disabled) {\r\n this.isOpen = true;\r\n }\r\n }\r\n\r\n close() {\r\n this.isOpen = false;\r\n }\r\n\r\n onClickOutside(event : Event){\r\n this.close();\r\n }\r\n\r\n toggle($event) {\r\n // TODO: following lines were uncommented due to needness in signature app\r\n $event.preventDefault();\r\n $event.stopPropagation();\r\n if (!this.disabled) {\r\n this.isOpen = !this.isOpen;\r\n }\r\n }\r\n\r\n select($event, value: Option) {\r\n $event.preventDefault();\r\n $event.stopPropagation();\r\n this.selected.emit(value);\r\n this.close();\r\n }\r\n}\r\n","import {Directive, HostBinding, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[gdDisabledCursor]'\r\n})\r\nexport class DisabledCursorDirective implements OnInit, OnChanges {\r\n\r\n @Input() dis: boolean;\r\n\r\n constructor() {\r\n }\r\n\r\n @HostBinding('class.inactive') cursor: boolean;\r\n\r\n private updateCursor() {\r\n this.cursor = this.dis ? true : false;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.updateCursor();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n this.updateCursor()\r\n }\r\n}\r\n","import {Directive, HostBinding, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[gdRotation]'\r\n})\r\nexport class RotationDirective implements OnInit, OnChanges {\r\n\r\n @Input() angle: number;\r\n @Input() isHtmlMode: boolean;\r\n @Input() width: number;\r\n @Input() height: number;\r\n @Input() withMargin = true;\r\n\r\n @HostBinding('style.animation') animation: string;\r\n @HostBinding('style.transition-property') transition: string;\r\n @HostBinding('style.transform') transform: string;\r\n\r\n @HostBinding('style.margin') margin: string;\r\n\r\n constructor() {\r\n }\r\n\r\n private updateCursor() {\r\n if (typeof this.angle === \"string\"){\r\n this.angle = parseInt(this.angle, 10);\r\n }\r\n\r\n if (this.angle) {\r\n this.animation = 'none';\r\n this.transition = 'none';\r\n this.transform = 'rotate(' + this.angle + 'deg)';\r\n } else if (this.angle === 0 && this.animation) {\r\n this.animation = null;\r\n this.transition = null;\r\n this.transform = null;\r\n }\r\n\r\n if (this.withMargin) {\r\n if (this.angle === 90 || this.angle === 270 || this.angle === -90 || this.angle === -270) {\r\n if (this.isHtmlMode) {\r\n if (this.isLandscape()) {\r\n this.margin = '164px 254px';\r\n } else {\r\n this.margin = '-111px 254px';\r\n }\r\n } else {\r\n if (this.isLandscape()) {\r\n this.margin = '129px 100px -79px';\r\n } else {\r\n this.margin = '-72px 100px -79px';\r\n }\r\n }\r\n } else if (this.angle === -180 || this.angle === 180) {\r\n this.margin = '280px';\r\n } else {\r\n this.margin = null;\r\n }\r\n }\r\n\r\n }\r\n\r\n isLandscape() {\r\n return this.width > this.height;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.updateCursor();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n this.updateCursor()\r\n }\r\n\r\n}\r\n","import {Component, Input, Output, EventEmitter, OnInit} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-init-state',\r\n templateUrl: './init-state.component.html',\r\n styleUrls: ['./init-state.component.less']\r\n})\r\nexport class InitStateComponent implements OnInit {\r\n @Input() icon: string;\r\n @Input() text: string;\r\n @Output() fileDropped = new EventEmitter();\r\n showUploadFile = false;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n dropped($event) {\r\n if ($event) {\r\n this.fileDropped.emit($event);\r\n this.showUploadFile = false;\r\n }\r\n }\r\n}\r\n","import {Observable, Observer} from \"rxjs\";\r\nimport {PageModel} from \"./file.service\";\r\n\r\nexport class RenderPrintService {\r\n private _render: Observable;\r\n private _observer: Observer;\r\n private _renderBlob: Observable;\r\n private _observerBlob: Observer;\r\n\r\n constructor() {\r\n this._render = new Observable(observer =>\r\n this._observer = observer);\r\n this._renderBlob = new Observable(observer =>\r\n this._observerBlob = observer);\r\n }\r\n\r\n get renderPrint(): Observable {\r\n return this._render;\r\n }\r\n\r\n changePages(pages: PageModel[]) {\r\n this._observer.next(pages);\r\n }\r\n\r\n get renderPrintBlob(): Observable {\r\n return this._renderBlob;\r\n }\r\n\r\n changeBlob(file: Blob) {\r\n this._observerBlob.next(file);\r\n }\r\n}\r\n","import {Directive, Input} from '@angular/core';\r\nimport {PageModel} from \"./file.service\";\r\nimport {RenderPrintService} from \"./render-print.service\";\r\n\r\n@Directive({\r\n selector: '[gdRenderPrint]'\r\n})\r\nexport class RenderPrintDirective {\r\n @Input() htmlMode: boolean;\r\n\r\n constructor(private _renderService: RenderPrintService) {\r\n _renderService.renderPrint.subscribe(pages => {\r\n this.renderPrint(pages);\r\n });\r\n _renderService.renderPrintBlob.subscribe(file => {\r\n this.renderPrintBlob(file);\r\n });\r\n }\r\n\r\n private renderPrint(pages: PageModel[]) {\r\n let pagesHtml = '';\r\n\r\n for (const page of pages) {\r\n pagesHtml += '';\r\n }\r\n\r\n this.openWindow(pagesHtml, pages[0].width, pages[0].height);\r\n }\r\n\r\n private openWindow(pagesHtml, width, height) {\r\n const a4Height = 842;\r\n const a4Width = 595;\r\n let imageA4Adjusted = '';\r\n if(width > a4Width && height > a4Height){\r\n const zoom = Math.round(height / a4Height) / 100;\r\n imageA4Adjusted = '.gd-page img { width: 100%; margin: 0; padding: 0;}';\r\n if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){\r\n imageA4Adjusted = '.gd-page img { transform: scale(' + zoom + ');}';\r\n }\r\n }\r\n let cssPrint = '';\r\n\r\n const windowObject = window.open('', \"PrintWindow\", \"width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes\");\r\n windowObject.focus();\r\n windowObject.document.writeln(cssPrint);\r\n windowObject.document.writeln(pagesHtml);\r\n windowObject.document.close();\r\n setTimeout(() => {\r\n windowObject.focus();\r\n windowObject.print();\r\n windowObject.close();\r\n }, 100);\r\n }\r\n\r\n private renderPrintBlob(file: Blob) {\r\n const fileURL = URL.createObjectURL(file);\r\n const windowObject = window.open(fileURL, \"PrintWindow\", \"width=750,height=650,top=50,left=50,toolbars=yes,scrollbars=yes,status=yes,resizable=yes\");\r\n windowObject.focus();\r\n windowObject.print();\r\n windowObject.close();\r\n }\r\n}\r\n","import {BehaviorSubject, Observable} from \"rxjs\";\r\n\r\nexport class ExceptionMessageService {\r\n private _observer: BehaviorSubject = new BehaviorSubject('Server is not available');\r\n private _messageChange: Observable = this._observer.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get messageChange(): Observable {\r\n return this._messageChange;\r\n }\r\n\r\n changeMessage(message: string) {\r\n this._observer.next(message);\r\n }\r\n}\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {ExceptionMessageService} from \"../exception-message.service\";\r\n\r\n@Component({\r\n selector: 'gd-error-modal',\r\n templateUrl: './error-modal.component.html',\r\n styleUrls: ['./error-modal.component.less']\r\n})\r\nexport class ErrorModalComponent implements OnInit {\r\n\r\n message: string;\r\n\r\n constructor(messageService: ExceptionMessageService) {\r\n messageService.messageChange.subscribe(message => this.message = message);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {Observable, Subject} from \"rxjs\";\r\n\r\nexport class PasswordService {\r\n private _observer: Subject = new Subject();\r\n private readonly _passChange: Observable = this._observer.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get passChange(): Observable {\r\n return this._passChange;\r\n }\r\n\r\n setPassword(pass: string) {\r\n this._observer.next(pass);\r\n }\r\n}\r\n","import {Component, EventEmitter, OnInit, Output} from '@angular/core';\r\nimport {ExceptionMessageService} from \"../exception-message.service\";\r\nimport {PasswordService} from \"../password.service\";\r\nimport * as jquery from \"jquery\";\r\n\r\nconst $ = jquery;\r\n\r\n@Component({\r\n selector: 'gd-password-required',\r\n templateUrl: './password-required.component.html',\r\n styleUrls: ['./password-required.component.less']\r\n})\r\nexport class PasswordRequiredComponent implements OnInit {\r\n message: string;\r\n @Output() cancelEvent = new EventEmitter();\r\n\r\n constructor(messageService: ExceptionMessageService, private _passwordService: PasswordService) {\r\n messageService.messageChange.subscribe(message => this.message = message);\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n setPassword(value: string) {\r\n this._passwordService.setPassword(value);\r\n }\r\n\r\n onCloseOpen($event: boolean) {\r\n if ($event) {\r\n setTimeout(() => {\r\n const element = $(\"#password\");\r\n if (element) {\r\n element.focus();\r\n }\r\n }, 100);\r\n } else {\r\n $(\"#password\").val(\"\");\r\n }\r\n }\r\n\r\n cancel($event: boolean) {\r\n $(\"#password\").val(\"\");\r\n this.cancelEvent.emit(true);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from \"@angular/common/http\";\r\nimport {Observable, throwError} from \"rxjs\";\r\nimport {catchError, map} from \"rxjs/operators\";\r\nimport {ExceptionMessageService} from \"./exception-message.service\";\r\nimport {HttpError} from \"./file.service\";\r\nimport {CommonModals, ModalService} from \"./modal.service\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ErrorInterceptorService implements HttpInterceptor {\r\n\r\n constructor(private _modalService: ModalService, private _messageService: ExceptionMessageService) {\r\n }\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n const logFormat = 'background: maroon; color: white';\r\n\r\n return next.handle(req)\r\n .pipe(map(data => {\r\n return data;\r\n }),\r\n catchError((exception: HttpEvent) => {\r\n if (exception instanceof HttpErrorResponse) {\r\n switch (exception.status) {\r\n\r\n case HttpError.BadRequest:\r\n console.error('%c Bad Request 400', logFormat);\r\n break;\r\n case HttpError.Unauthorized:\r\n console.error('%c Unauthorized 401', logFormat);\r\n break;\r\n case HttpError.NotFound:\r\n console.error('%c Not Found 404', logFormat);\r\n break;\r\n case HttpError.TimeOut:\r\n console.error('%c TimeOut 408', logFormat);\r\n break;\r\n case HttpError.InternalServerError:\r\n console.error('%c big bad 500', logFormat);\r\n this._messageService.changeMessage(exception.error.message);\r\n this._modalService.open(CommonModals.ErrorMessage);\r\n break;\r\n\r\n case HttpError.Forbidden:\r\n console.error('%c Forbidden 403', logFormat);\r\n this._messageService.changeMessage(exception.error.message);\r\n this._modalService.open(CommonModals.PasswordRequired);\r\n break;\r\n }\r\n }\r\n return throwError(exception);\r\n }));\r\n }\r\n}\r\n","import {Observable, Subject} from \"rxjs\";\r\n\r\nexport class SearchService {\r\n private _observer: Subject = new Subject();\r\n private readonly _textChange: Observable = this._observer.asObservable();\r\n\r\n private _observerCurrent: Subject = new Subject();\r\n private readonly _currentChange: Observable = this._observerCurrent.asObservable();\r\n\r\n private _observerTotal: Subject = new Subject();\r\n private readonly _totalChange: Observable = this._observerTotal.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get textChange(): Observable {\r\n return this._textChange;\r\n }\r\n\r\n setText(text: string) {\r\n this._observer.next(text);\r\n }\r\n\r\n get currentChange(): Observable {\r\n return this._currentChange;\r\n }\r\n\r\n get totalChange(): Observable {\r\n return this._totalChange;\r\n }\r\n\r\n setCurrent(current: number) {\r\n this._observerCurrent.next(current);\r\n }\r\n\r\n setTotal(total: number) {\r\n this._observerTotal.next(total);\r\n }\r\n}\r\n","import {AfterViewInit, Component, ElementRef, EventEmitter, OnInit, Output, ViewChild} from '@angular/core';\r\nimport {SearchService} from \"../search.service\";\r\n\r\n@Component({\r\n selector: 'gd-search',\r\n templateUrl: './search.component.html',\r\n styleUrls: ['./search.component.less']\r\n})\r\nexport class SearchComponent implements OnInit, AfterViewInit {\r\n\r\n @Output() hidePanel = new EventEmitter(false);\r\n\r\n current = 0;\r\n total = 0;\r\n\r\n @ViewChild('text',{\r\n static : true\r\n }) textElement: ElementRef;\r\n\r\n constructor(private _searchService: SearchService) {\r\n _searchService.totalChange.subscribe((total: number) => {\r\n this.total = total;\r\n if (total !== 0) {\r\n this.current = 1;\r\n } else {\r\n this.current = 0;\r\n }\r\n this._searchService.setCurrent(this.current);\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n setText(text: string) {\r\n this._searchService.setText(text);\r\n }\r\n\r\n hide() {\r\n this.setText('');\r\n this.hidePanel.emit(true);\r\n }\r\n\r\n prev() {\r\n if (this.current > 1) {\r\n this.current--;\r\n this._searchService.setCurrent(this.current);\r\n }\r\n }\r\n\r\n next() {\r\n if (this.current < this.total) {\r\n this.current++;\r\n this._searchService.setCurrent(this.current);\r\n }\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.textElement.nativeElement.focus();\r\n }\r\n}\r\n","import {Directive, ElementRef} from '@angular/core';\r\nimport {SearchService} from \"./search.service\";\r\nimport {HighlightSearchPipe} from \"./pipes\";\r\nimport {ZoomService} from \"./zoom.service\";\r\nimport * as jquery from \"jquery\";\r\nconst $ = jquery;\r\n\r\n@Directive({\r\n selector: '[gdSearchable]'\r\n})\r\nexport class SearchableDirective {\r\n\r\n text: string;\r\n current = 0;\r\n total = 0;\r\n private zoom = 100;\r\n\r\n constructor(private _elementRef: ElementRef,\r\n private _searchService: SearchService,\r\n private _highlight: HighlightSearchPipe,\r\n private _zoomService: ZoomService) {\r\n _searchService.currentChange.subscribe((current: number) => {\r\n this.current = current;\r\n if (this.current !== 0) {\r\n this.moveToCurrent();\r\n }\r\n });\r\n\r\n _searchService.textChange.subscribe((text: string) => {\r\n this.text = text;\r\n this.highlightSearch();\r\n });\r\n\r\n this.zoom = _zoomService.zoom ? _zoomService.zoom : this.zoom;\r\n _zoomService.zoomChange.subscribe((val: number) => {\r\n this.zoom = val ? val : this.zoom;\r\n });\r\n }\r\n\r\n private highlightSearch() {\r\n const el = this._elementRef ? this._elementRef.nativeElement : null;\r\n if (el) {\r\n this.cleanHighlight(el);\r\n if (this.text) {\r\n this.highlightEl(el);\r\n const count = el.querySelectorAll('.gd-highlight').length;\r\n this.total = count;\r\n } else {\r\n this.total = 0;\r\n }\r\n this._searchService.setTotal(this.total);\r\n }\r\n }\r\n\r\n private moveToCurrent() {\r\n if (this.current === 0) {\r\n return;\r\n }\r\n const currentZoom = this.getZoom();\r\n const el = this._elementRef ? this._elementRef.nativeElement : null;\r\n if (el) {\r\n el.querySelectorAll('.gd-highlight-select').forEach(function (value) {\r\n $(value).removeClass('gd-highlight-select');\r\n });\r\n const currentEl = el.querySelectorAll('.gd-highlight')[this.current - 1];\r\n $(currentEl).addClass('gd-highlight-select');\r\n if (currentEl) {\r\n const options = {\r\n left: 0,\r\n top: ($(currentEl).offset().top) + el.parentElement.parentElement.scrollTop - 150,\r\n };\r\n // using polyfill\r\n el.parentElement.parentElement.scroll(options);\r\n }\r\n }\r\n }\r\n\r\n private highlightEl(el: Element) {\r\n const textNodes = $(el).find('*').contents().filter(function () {\r\n const nodeName = this.parentElement.nodeName.toLowerCase();\r\n const checkClass = (this).classList ? !(this).classList.contains('gd-highlight') : true;\r\n return this.nodeType === 3 &&\r\n this.textContent.trim().length !== 0 &&\r\n nodeName !== 'style' &&\r\n nodeName !== 'title' &&\r\n nodeName !== 'body' &&\r\n nodeName !== 'script' &&\r\n checkClass;\r\n });\r\n const text = this.text;\r\n const highlight = this._highlight;\r\n textNodes.each(function () {\r\n const $this = $(this);\r\n let content = $this.text();\r\n content = highlight.transform(content, text);\r\n $this.replaceWith(content);\r\n });\r\n el.normalize();\r\n }\r\n\r\n private cleanHighlight(el: HTMLElement) {\r\n const nodeListOf = el.querySelectorAll('.gd-highlight');\r\n for (let i = 0; i < nodeListOf.length; i++) {\r\n const element = nodeListOf.item(i);\r\n element.replaceWith((element).innerText);\r\n }\r\n el.normalize();\r\n }\r\n\r\n private getZoom() {\r\n return this.zoom / 100;\r\n }\r\n}\r\n","import {Component, Input, OnInit} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-tabbed-toolbars',\r\n templateUrl: './tabbed-toolbars.component.html',\r\n styleUrls: ['./tabbed-toolbars.component.less']\r\n})\r\nexport class TabbedToolbarsComponent implements OnInit {\r\n @Input() logo: string;\r\n @Input() icon: string;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {Observable, Subject} from \"rxjs\";\r\n\r\nexport class TabActivatorService {\r\n private _observer: Subject = new Subject();\r\n private readonly _activeTabChange: Observable = this._observer.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get activeTabChange(): Observable {\r\n return this._activeTabChange;\r\n }\r\n\r\n changeActiveTab(tabId: string) {\r\n this._observer.next(tabId);\r\n }\r\n}\r\n","import {Component, Input, OnInit} from '@angular/core';\r\nimport {TabActivatorService} from \"../tab-activator.service\";\r\n\r\n@Component({\r\n selector: 'gd-tab',\r\n templateUrl: './tab.component.html',\r\n styleUrls: ['./tab.component.less']\r\n})\r\nexport class TabComponent implements OnInit {\r\n @Input() id: string;\r\n @Input() tabTitle: string;\r\n @Input() icon: string;\r\n @Input() disabled = false;\r\n @Input() active = false;\r\n @Input() content = true;\r\n\r\n constructor(private _tabActivatorService: TabActivatorService) {\r\n this._tabActivatorService.activeTabChange.subscribe((tabId: string) => {\r\n this.activation(tabId);\r\n });\r\n }\r\n\r\n private activation(tabId: string) {\r\n if (this.id === tabId) {\r\n this.active = true;\r\n } else {\r\n this.active = false;\r\n }\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n selectTab() {\r\n if (this.disabled) {\r\n return;\r\n }\r\n this._tabActivatorService.changeActiveTab(this.id);\r\n }\r\n}\r\n","import {Component} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-tabs',\r\n templateUrl: './tabs.component.html',\r\n styleUrls: ['./tabs.component.less']\r\n})\r\nexport class TabsComponent {\r\n constructor() {\r\n }\r\n\r\n}\r\n","import {Observable, Subject} from \"rxjs\";\r\n\r\nexport class Formatting {\r\n constructor(fontSize: number, color: string, bgColor: string, bold: boolean, italic: boolean, underline: boolean, font: string, strikeout: boolean, align: string, list: string) {\r\n this.fontSize = fontSize;\r\n this.color = color;\r\n this.bgColor = bgColor;\r\n this.bold = bold;\r\n this.italic = italic;\r\n this.underline = underline;\r\n this.font = font;\r\n this.strikeout = strikeout;\r\n this.align = align;\r\n this.list = list;\r\n }\r\n\r\n bold: boolean;\r\n italic: boolean;\r\n underline: boolean;\r\n fontSize: number;\r\n color: string;\r\n bgColor: string;\r\n font: string;\r\n strikeout: boolean;\r\n align: string;\r\n list: string;\r\n\r\n public static default(): Formatting {\r\n return new Formatting(10, '#000000', '#FFFFFF', false, false, false, 'Arial', false, \"\", \"\");\r\n }\r\n}\r\n\r\nexport class FormattingService {\r\n private _observerBold: Subject = new Subject();\r\n private readonly _formatBoldChange: Observable = this._observerBold.asObservable();\r\n private _observerUnderline: Subject = new Subject();\r\n private readonly _formatUnderlineChange: Observable = this._observerUnderline.asObservable();\r\n private _observerUndo: Subject = new Subject();\r\n private readonly _undo: Observable = this._observerUndo.asObservable();\r\n private _observerRedo: Subject = new Subject();\r\n private readonly _redo: Observable = this._observerRedo.asObservable();\r\n private _observerItalic: Subject = new Subject();\r\n private readonly _formatItalicChange: Observable = this._observerItalic.asObservable();\r\n private _observerColor: Subject = new Subject();\r\n private readonly _formatColorChange: Observable = this._observerColor.asObservable();\r\n private _observerBgColor: Subject = new Subject();\r\n private readonly _formatBgColorChange: Observable = this._observerBgColor.asObservable();\r\n private _observerFontSize: Subject = new Subject();\r\n private readonly _formatFontSizeChange: Observable = this._observerFontSize.asObservable();\r\n private _observerFont: Subject = new Subject();\r\n private readonly _formatFontChange: Observable = this._observerFont.asObservable();\r\n private _observerStrikeout: Subject = new Subject();\r\n private readonly _formatStrikeoutChange: Observable = this._observerStrikeout.asObservable();\r\n private _observerAlign: Subject = new Subject();\r\n private readonly _formatAlignChange: Observable = this._observerAlign.asObservable();\r\n private _observerList: Subject = new Subject();\r\n private readonly _formatListChange: Observable = this._observerList.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get formatBoldChange() {\r\n return this._formatBoldChange;\r\n }\r\n\r\n get formatUnderlineChange() {\r\n return this._formatUnderlineChange;\r\n }\r\n\r\n get formatColorChange() {\r\n return this._formatColorChange;\r\n }\r\n\r\n get formatBgColorChange() {\r\n return this._formatBgColorChange;\r\n }\r\n\r\n get formatFontSizeChange() {\r\n return this._formatFontSizeChange;\r\n }\r\n\r\n get formatFontChange() {\r\n return this._formatFontChange;\r\n }\r\n\r\n get undo() {\r\n return this._undo;\r\n }\r\n\r\n get redo() {\r\n return this._redo;\r\n }\r\n\r\n get formatItalicChange() {\r\n return this._formatItalicChange;\r\n }\r\n\r\n get formatStrikeoutChange() {\r\n return this._formatStrikeoutChange;\r\n }\r\n\r\n get formatAlignChange() {\r\n return this._formatAlignChange;\r\n }\r\n\r\n get formatListChange() {\r\n return this._formatListChange;\r\n }\r\n\r\n static createFontSizeOption(val: number) {\r\n return {value: val, name: val + 'px', separator: false}\r\n }\r\n\r\n static getFontSizeOptions() {\r\n return [\r\n FormattingService.createFontSizeOption(8),\r\n FormattingService.createFontSizeOption(10),\r\n FormattingService.createFontSizeOption(12),\r\n FormattingService.createFontSizeOption(14),\r\n FormattingService.createFontSizeOption(16),\r\n FormattingService.createFontSizeOption(18),\r\n FormattingService.createFontSizeOption(20),\r\n FormattingService.createFontSizeOption(22),\r\n FormattingService.createFontSizeOption(24),\r\n ];\r\n }\r\n\r\n static createFontOption(val: string) {\r\n return {value: val, name: val, separator: false}\r\n }\r\n\r\n static getFontOptions() {\r\n const fonts = [\"Arial\", \"Calibri\", \"Century Gothic\", \"Comic Sans\", \"Consolas\", \"Courier\", \"Dejavu Sans\", \"Dejavu Serif\", \"Georgia\", \"Gill Sans\", \"Helvetica\", \"Impact\", \"Lucida Sans\",\r\n \"Myriad Pro\", \"Open Sans\", \"Palatino\", \"Tahoma\", \"Times New Roman\", \"Trebuchet\"];\r\n const fontOptions = [];\r\n fonts.forEach(font => {\r\n fontOptions.push(this.createFontOption(font));\r\n })\r\n\r\n return fontOptions;\r\n }\r\n\r\n changeFormatFontSize($event: number) {\r\n this._observerFontSize.next($event);\r\n }\r\n\r\n changeFormatBold(bold: boolean) {\r\n this._observerBold.next(bold);\r\n }\r\n\r\n changeFormatUnderline(underline: boolean) {\r\n this._observerUnderline.next(underline);\r\n }\r\n\r\n Undo() {\r\n this._observerUndo.next();\r\n }\r\n\r\n Redo() {\r\n this._observerRedo.next();\r\n }\r\n\r\n changeFormatItalic(italic: boolean) {\r\n this._observerItalic.next(italic);\r\n }\r\n\r\n changeFormatColor(color: string) {\r\n this._observerColor.next(color);\r\n }\r\n\r\n changeFormatBgColor(bgcolor: string) {\r\n this._observerBgColor.next(bgcolor);\r\n }\r\n\r\n changeFormatFont(font: string) {\r\n this._observerFont.next(font);\r\n }\r\n\r\n changeFormatStrikeout(strikeout: boolean) {\r\n this._observerStrikeout.next(strikeout);\r\n }\r\n\r\n changeFormatAlign(align: string) {\r\n this._observerAlign.next(align);\r\n }\r\n\r\n changeFormatList(list: string) {\r\n this._observerList.next(list);\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\n\r\nconst DEFAULT_COLORS = [\r\n '#000000', '#434343', '#666666', '#999999', '#B7B7B7', '#CCCCCC', '#D9D9D9', '#EFEFEF', '#F3F3F3', '#FFFFFF',\r\n '#980000', '#FF0000', '#FF9900', '#FFFF00', '#00FF00', '#00FFFF', '#4986E8', '#0000FF', '#9900FF', '#FF00FF',\r\n '#E6B8AF', '#F4CCCC', '#FDE5CD', '#FFF2CC', '#D9EAD3', '#D0E0E2', '#C9DAF8', '#CFE2F3', '#D9D2E9', '#EAD1DC',\r\n '#DD7E6B', '#EA9899', '#F9CB9C', '#FFE59A', '#B7D7A8', '#A2C4C9', '#A4C2F4', '#9FC5E8', '#B4A7D7', '#D5A6BD',\r\n '#CC4125', '#E06666', '#F6B26B', '#FFD966', '#92C47D', '#75A5AF', '#6D9EEB', '#6FA9DB', '#8E7CC3', '#C27BA0',\r\n '#A61C00', '#CC0000', '#E69138', '#F2C131', '#6AA84F', '#45818E', '#3C78D8', '#3C85C6', '#674EA7', '#A64D79',\r\n '#85200B', '#990000', '#B45F05', '#BF9000', '#37761D', '#144F5C', '#1254CC', '#0A5394', '#351C75', '#741B47',\r\n '#5B0F00', '#660000', '#783F03', '#7F6000', '#284E13', '#0B343D', '#1B4586', '#063763', '#20124D', '#4C1030',\r\n];\r\n\r\n@Component({\r\n selector: 'gd-color-picker',\r\n templateUrl: './color-picker.component.html',\r\n styleUrls: ['./color-picker.component.less']\r\n})\r\nexport class ColorPickerComponent implements OnInit {\r\n @Input() isOpen = false;\r\n @Output() selectedColor = new EventEmitter();\r\n @Output() closeOutside = new EventEmitter();\r\n colors: any = DEFAULT_COLORS;\r\n white = '#FFFFFF';\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n select($event, color: string) {\r\n $event.preventDefault();\r\n $event.stopPropagation();\r\n this.selectedColor.emit(color);\r\n }\r\n\r\n close() {\r\n this.isOpen = false;\r\n this.closeOutside.emit(true);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {FormattingService} from \"./formatting.service\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class BackFormattingService extends FormattingService {\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SelectionService {\r\n selection: Range;\r\n isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\r\n\r\n restoreSelection() {\r\n if(this.selection && !this.selection.collapsed || this.isIE){\r\n this.putSelection(this.selection );\r\n }\r\n }\r\n\r\n captureSelection() {\r\n const selection = window.getSelection();\r\n if (selection.rangeCount > 0) {\r\n this.selection = selection.getRangeAt(0);\r\n }\r\n }\r\n\r\n private putSelection(selection) {\r\n const sel = window.getSelection();\r\n sel.removeAllRanges();\r\n sel.addRange(selection.cloneRange());\r\n }\r\n\r\n refreshSelection() {\r\n this.captureSelection();\r\n this.restoreSelection();\r\n }\r\n}\r\n","import {Directive, HostListener, OnInit} from '@angular/core';\r\nimport {FormattingService} from \"./formatting.service\";\r\nimport {BackFormattingService} from \"./back-formatting.service\";\r\nimport * as jquery from 'jquery';\r\nconst $ = jquery;\r\nimport {SelectionService} from './selection.service';\r\n\r\n@Directive({\r\n selector: '[gdFormatting]'\r\n})\r\nexport class FormattingDirective implements OnInit {\r\n\r\n private bold = false;\r\n private italic = false;\r\n private underline = false;\r\n private color: string;\r\n private bgColor: string;\r\n private font: string;\r\n private strikeout = false;\r\n private align: string;\r\n private list: string;\r\n private isIE = false;\r\n\r\n constructor(private _formattingService: FormattingService,\r\n private _backFormattingService: BackFormattingService,\r\n private _selectionService: SelectionService) {\r\n this.isIE = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\r\n }\r\n\r\n @HostListener('mouseup') mouseup() {\r\n\r\n this.bold = document.queryCommandState(\"bold\");\r\n this.strikeout = document.queryCommandState(\"strikeThrough\");\r\n this.italic = document.queryCommandState(\"italic\");\r\n this.bgColor = document.queryCommandValue(\"backColor\");\r\n this.underline = document.queryCommandState(\"underline\");\r\n this.align = this.checkJustify();\r\n this.list = this.checkList();\r\n\r\n //fix required by FireFox to get correct background color\r\n if (this.bgColor === \"transparent\") {\r\n this.bgColor = $(window.getSelection().focusNode.parentNode).css('background-color').toString();\r\n }\r\n this.font = document.queryCommandValue(\"FontName\").replace(/\"/g, '');\r\n if(this.font.split(\",\").length > 1){\r\n this.font = this.font.split(\",\")[0];\r\n }\r\n this.color = document.queryCommandValue(\"foreColor\");\r\n this._backFormattingService.changeFormatBold(this.bold);\r\n this._backFormattingService.changeFormatUnderline(this.underline);\r\n this._backFormattingService.changeFormatItalic(this.italic);\r\n this._backFormattingService.changeFormatColor(this.color);\r\n this._backFormattingService.changeFormatBgColor(this.bgColor);\r\n this._backFormattingService.changeFormatFontSize(this.reportFontSize());\r\n this._backFormattingService.changeFormatFont(this.font);\r\n this._backFormattingService.changeFormatStrikeout(this.strikeout);\r\n this._backFormattingService.changeFormatAlign(this.align);\r\n this._backFormattingService.changeFormatList(this.list);\r\n }\r\n\r\n private checkJustify() {\r\n let align = \"\";\r\n align = document.queryCommandState(\"justifyCenter\") ? \"center\" : align;\r\n align = document.queryCommandState(\"justifyFull\") ? \"full\" : align;\r\n align = document.queryCommandState(\"justifyLeft\") ? \"left\" : align;\r\n align = document.queryCommandState(\"justifyRight\") ? \"right\" : align;\r\n return align;\r\n }\r\n\r\n private checkList() {\r\n let list = \"\";\r\n list = document.queryCommandState(\"insertUnorderedList\") ? \"unordered\" : list;\r\n list = document.queryCommandState(\"insertOrderedList\") ? \"ordered\" : list;\r\n return list;\r\n }\r\n\r\n reportFontSize(): number {\r\n let containerEl, sel;\r\n if (window.getSelection) {\r\n sel = window.getSelection();\r\n if (sel.rangeCount) {\r\n containerEl = sel.getRangeAt(0).commonAncestorContainer;\r\n // Make sure we have an element rather than a text node\r\n if (containerEl.nodeType === 3) {\r\n containerEl = containerEl.parentNode;\r\n }\r\n }\r\n } else if ((sel = document.getSelection()) && sel.type !== \"Control\") {\r\n containerEl = sel.createRange().parentElement();\r\n }\r\n\r\n if (containerEl) {\r\n return parseInt(this.getComputedStyleProperty(containerEl, \"fontSize\").replace(\"px\", \"\"), 10);\r\n }\r\n }\r\n\r\n getComputedStyleProperty(el, propName) {\r\n if (window.getComputedStyle) {\r\n return window.getComputedStyle(el, null)[propName];\r\n } else if (el.currentStyle) {\r\n return el.currentStyle[propName];\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this._formattingService.undo.subscribe(() => {\r\n this.toggleUndo();\r\n });\r\n this._formattingService.redo.subscribe(() => {\r\n this.toggleRedo();\r\n });\r\n this._formattingService.formatBoldChange.subscribe((bold: boolean) => {\r\n this.bold = bold;\r\n this.toggleBold();\r\n });\r\n this._formattingService.formatUnderlineChange.subscribe((underline: boolean) => {\r\n this.underline = underline;\r\n this.toggleUnderline();\r\n });\r\n this._formattingService.formatItalicChange.subscribe((italic: boolean) => {\r\n this.italic = italic;\r\n this.toggleItalic();\r\n });\r\n this._formattingService.formatColorChange.subscribe(((color: string) => {\r\n this.color = color;\r\n this.setColor(color);\r\n }));\r\n this._formattingService.formatBgColorChange.subscribe(((bgcolor: string) => {\r\n this.bgColor = bgcolor;\r\n this.setBgColor(bgcolor);\r\n }));\r\n this._formattingService.formatFontSizeChange.subscribe(((fontSize: number) => {\r\n this.setFontSize(fontSize);\r\n }));\r\n\r\n this._formattingService.formatFontChange.subscribe(((font: string) => {\r\n this.font = font;\r\n this.setFont(font);\r\n }));\r\n this._formattingService.formatStrikeoutChange.subscribe((strikeout: boolean) => {\r\n this.strikeout = strikeout;\r\n this.toggleStrikeout();\r\n });\r\n this._formattingService.formatAlignChange.subscribe((align: string) => {\r\n this.align = align;\r\n this.toggleAlign(this.align);\r\n });\r\n this._formattingService.formatListChange.subscribe((list: string) => {\r\n const remove = this.list === list;\r\n this.list = list;\r\n this.toggleList(this.list, remove);\r\n });\r\n }\r\n\r\n private toggleBold() {\r\n document.execCommand(\"bold\");\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleUnderline() {\r\n document.execCommand(\"underline\");\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleItalic() {\r\n document.execCommand(\"italic\");\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private setBgColor(bgColor: string) {\r\n document.execCommand(\"backColor\", false, bgColor);\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private setColor(color: string) {\r\n document.execCommand(\"foreColor\", false, color);\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private setFontSize(fontSize: number) {\r\n if (document.getSelection().toString()) {\r\n let spanString = \"\" +\r\n document.getSelection() + \" \";\r\n if (this.bold) {\r\n spanString = \"\" + spanString + \" \";\r\n }\r\n if (this.italic) {\r\n spanString = \"\" + spanString + \" \";\r\n }\r\n if (this.underline) {\r\n spanString = \"\" + spanString + \" \";\r\n }\r\n if (this.strikeout) {\r\n spanString = \"\" + spanString + \" \";\r\n }\r\n document.execCommand('insertHTML', false, spanString);\r\n } else {\r\n document.execCommand(\"fontsize\", false, \"7\");\r\n }\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleUndo() {\r\n document.execCommand(\"undo\");\r\n }\r\n\r\n private toggleRedo() {\r\n document.execCommand(\"redo\");\r\n }\r\n\r\n private setFont(font: string) {\r\n document.execCommand(\"fontName\", false, font);\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleStrikeout() {\r\n document.execCommand(\"strikeThrough\");\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleAlign(align: string) {\r\n if(this.isIE) {\r\n this.toggleAlignIE(align);\r\n return;\r\n }\r\n document.execCommand(\"styleWithCSS\", false, 'true');\r\n switch (align) {\r\n case 'center':\r\n document.execCommand('justifyCenter');\r\n break;\r\n case 'full':\r\n document.execCommand('justifyFull');\r\n break;\r\n case 'left':\r\n document.execCommand('justifyLeft');\r\n break;\r\n case 'right':\r\n document.execCommand('justifyRight');\r\n break;\r\n }\r\n this._selectionService.refreshSelection();\r\n }\r\n\r\n private toggleAlignIE(align: string) {\r\n this._selectionService.restoreSelection()\r\n this._selectionService.captureSelection()\r\n const selection = window.getSelection().focusNode.parentNode.parentNode;\r\n if(align === \"full\"){\r\n align = \"justify\";\r\n }\r\n $(selection).css(\"text-align\", align);\r\n this._selectionService.refreshSelection()\r\n }\r\n\r\n private toggleList(list: string, remove: boolean) {\r\n switch (list) {\r\n case 'unordered':\r\n document.execCommand('insertUnorderedList', remove);\r\n break;\r\n case 'ordered':\r\n document.execCommand('insertOrderedList', remove);\r\n break;\r\n }\r\n this._selectionService.refreshSelection();\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-success-modal',\r\n templateUrl: './success-modal.component.html',\r\n styleUrls: ['./success-modal.component.less']\r\n})\r\nexport class SuccessModalComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {Observable, Subject} from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EditHtmlService {\r\n private _observer: Subject = new Subject();\r\n private readonly _htmlContent: Observable = this._observer.asObservable();\r\n\r\n constructor() {\r\n }\r\n\r\n get observer(): Subject {\r\n return this._observer;\r\n }\r\n\r\n get htmlContent(): Observable {\r\n return this._htmlContent;\r\n }\r\n\r\n}\r\n","import {Directive, HostListener, Input} from '@angular/core';\r\nimport {SelectionService} from './selection.service';\r\nimport {EditHtmlService} from \"./edit-html.service\";\r\n\r\n@Directive({\r\n selector: '[gdEditor]'\r\n})\r\nexport class EditorDirective {\r\n @Input() text: any;\r\n\r\n private isIE: boolean = /*@cc_on!@*/false || !!/(MSIE|Trident\\/|Edge\\/)/i.test(navigator.userAgent);\r\n\r\n constructor(private _selectionService: SelectionService, private _htmlService: EditHtmlService) {\r\n }\r\n\r\n @HostListener('keyup', ['$event'])\r\n public onInput(event) {\r\n this.text = event.target;\r\n if(this.isIE){\r\n if (this.text.innerHTML) {\r\n const html = this.text.innerHTML.toString();\r\n this._htmlService.observer.next(html);\r\n }\r\n }\r\n }\r\n\r\n @HostListener('mouseleave', ['$event'])\r\n public onMouseleave(event) {\r\n this._selectionService.captureSelection();\r\n // this code is required to fix IE11 issue - it doesn't trigger blur event, since that we need to save updated HTML here\r\n if(this.isIE){\r\n this._htmlService.observer.next(event.target.innerHTML.toString());\r\n }\r\n }\r\n\r\n @HostListener('blur', ['$event'])\r\n public onBlur(event) {\r\n event.preventDefault();\r\n this._selectionService.restoreSelection();\r\n if (this.text.innerHTML) {\r\n const html = this.text.innerHTML.toString();\r\n this._htmlService.observer.next(html);\r\n } else {\r\n this._htmlService.observer.next(event.target.innerHTML.toString());\r\n }\r\n }\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core'\r\nimport {HttpRequest} from '@angular/common/http';\r\nimport {Api} from \"./config.service\";\r\n\r\n@Injectable()\r\nexport class LoadingMaskService {\r\n onLoadingChanged: EventEmitter = new EventEmitter();\r\n\r\n private stopList = [];\r\n private requests: HttpRequest[] = [];\r\n\r\n constructor() {\r\n this.stopList.push(Api.SAVE_TEXT);\r\n this.stopList.push(Api.SAVE_OPTICAL_CODE);\r\n this.stopList.push(Api.LOAD_DOCUMENT_PAGE);\r\n this.stopList.push(Api.LOAD_THUMBNAILS);\r\n this.stopList.push(Api.GET_FILE_STATUS);\r\n this.stopList.push(Api.LOAD_PRINT);\r\n }\r\n\r\n onRequestStart(req: HttpRequest): void {\r\n const stop = this.stopList.find(x => req.url.includes(x));\r\n if (!stop) {\r\n this.requests.push(req);\r\n this.notify();\r\n }\r\n }\r\n\r\n onRequestFinish(req: HttpRequest): void {\r\n const index = this.requests.indexOf(req);\r\n if (index !== -1) {\r\n this.requests.splice(index, 1);\r\n }\r\n this.notify();\r\n }\r\n\r\n private notify(): void {\r\n this.onLoadingChanged.emit(this.requests.length !== 0);\r\n }\r\n}\r\n","import {AfterViewInit, Component, Input, OnInit} from '@angular/core';\r\nimport {LoadingMaskService} from \"../loading-mask.service\";\r\n\r\n@Component({\r\n selector: 'gd-loading-mask',\r\n templateUrl: './loading-mask.component.html',\r\n styleUrls: ['./loading-mask.component.less']\r\n})\r\n\r\nexport class LoadingMaskComponent implements OnInit, AfterViewInit {\r\n @Input() loadingMask = false;\r\n\r\n constructor(private _loadingMaskService: LoadingMaskService) {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n ngAfterViewInit() {\r\n this._loadingMaskService\r\n .onLoadingChanged\r\n .subscribe((loading: boolean) => this.loadingMask = loading);\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from \"@angular/common/http\";\r\nimport {Observable} from \"rxjs\";\r\nimport {finalize} from 'rxjs/operators'\r\nimport {LoadingMaskService} from \"./loading-mask.service\";\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LoadingMaskInterceptorService implements HttpInterceptor {\r\n\r\n constructor(private _loadingMaskService: LoadingMaskService) {\r\n }\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n this._loadingMaskService.onRequestStart(req);\r\n const callback = () => this._loadingMaskService.onRequestFinish(req);\r\n return next.handle(req).pipe( finalize( callback));\r\n }\r\n}\r\n","import {\r\n Component,\r\n EventEmitter,\r\n forwardRef,\r\n HostBinding,\r\n HostListener,\r\n Inject,\r\n Input,\r\n Output,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\n\r\n\r\nconst horizontalAlignment = {\r\n center : {\r\n right: 'auto'\r\n },\r\n left : {\r\n right: '100%'\r\n },\r\n right : {\r\n right: '-100%'\r\n }\r\n};\r\n\r\nconst verticalAlignment = {\r\n center : {\r\n top : '0px',\r\n },\r\n top : {\r\n top : '-100%',\r\n right: '100%'\r\n },\r\n bottom : {\r\n top: 'autos'\r\n }\r\n};\r\n\r\n/**\r\n * DropDownToggleComponent\r\n */\r\n@Component({\r\n selector: 'gd-drop-down-toggle',\r\n template: ' ',\r\n styleUrls: ['./drop-down.component.less'],\r\n encapsulation : ViewEncapsulation.None\r\n})\r\nexport class DropDownToggleComponent{\r\n @HostListener('click',['$event'])\r\n click = (event: any) => this.dropdown.toggle(event);\r\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\r\n}\r\n\r\n/**\r\n * DropDownItemsComponent\r\n */\r\n@Component({\r\n selector: 'gd-drop-down-items',\r\n template: '
',\r\n styleUrls: ['./drop-down.component.less'],\r\n encapsulation : ViewEncapsulation.None\r\n})\r\nexport class DropDownItemsComponent{\r\n\r\n get horizontalAlign(){\r\n return horizontalAlignment[this.dropdown.getPlacement().h].right;\r\n }\r\n\r\n get verticalAlign(){\r\n return verticalAlignment[this.dropdown.getPlacement().v].top;\r\n }\r\n\r\n get isOpen(){\r\n return this.dropdown.open;\r\n }\r\n\r\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\r\n\r\n onClickOutside(event : Event ){\r\n this.dropdown.close();\r\n }\r\n}\r\n\r\n/**\r\n * DropDownItemComponent\r\n */\r\n@Component({\r\n selector: 'gd-drop-down-item',\r\n template: '
',\r\n styleUrls: ['./drop-down.component.less'],\r\n})\r\nexport class DropDownItemComponent{\r\n @HostBinding('class')\r\n class = 'drop-down-item';\r\n\r\n @Output()\r\n selected = new EventEmitter();\r\n\r\n @HostListener('click')\r\n click = () => this.selectEntry();\r\n\r\n constructor(@Inject(forwardRef(() => DropDownComponent)) public dropdown) {}\r\n\r\n selectEntry(){\r\n this.selected.next();\r\n this.dropdown.close();\r\n }\r\n}\r\n\r\n/**\r\n * DropDownComponent\r\n */\r\n@Component({\r\n selector: 'gd-drop-down',\r\n template: '
',\r\n styleUrls: ['./drop-down.component.less'],\r\n encapsulation : ViewEncapsulation.None\r\n})\r\nexport class DropDownComponent{\r\n @Input()\r\n placement = {\r\n h: \"center\",\r\n v: \"bottom\"\r\n };\r\n\r\n\r\n @Input()\r\n @HostBinding('class.show')\r\n open = false;\r\n\r\n @HostBinding('class')\r\n class = 'drop-down';\r\n\r\n close(){\r\n this.open = false;\r\n }\r\n\r\n toggle(event : MouseEvent){\r\n event.stopPropagation();\r\n this.open = !this.open;\r\n document.body.click();\r\n }\r\n\r\n getPlacement(){\r\n return this.placement;\r\n }\r\n}\r\n","import {Component, Input, OnInit} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'gd-left-side-bar',\r\n templateUrl: './left-side-bar.component.html',\r\n styleUrls: ['./left-side-bar.component.less']\r\n})\r\nexport class LeftSideBarComponent implements OnInit {\r\n @Input() showSpinner = false;\r\n\r\n constructor() {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n}\r\n","import {Directive, EventEmitter, HostListener, Input, Output} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[gdTooltip]'\r\n})\r\nexport class TooltipDirective {\r\n\r\n @Output() showToolTip = new EventEmitter();\r\n\r\n constructor() {\r\n }\r\n\r\n @HostListener('mouseenter')\r\n public onHovering() {\r\n this.showToolTip.emit(true);\r\n }\r\n\r\n @HostListener('mouseleave')\r\n public onUnhovering() {\r\n this.showToolTip.emit(false);\r\n }\r\n\r\n}\r\n","import {\r\n ApplicationRef,\r\n ComponentFactoryResolver,\r\n Injectable,\r\n ViewContainerRef\r\n} from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AddDynamicComponentService {\r\n\r\n constructor(private _factoryResolver: ComponentFactoryResolver,\r\n private _appRef: ApplicationRef) {\r\n }\r\n\r\n addDynamicComponent(viewContainerRef: ViewContainerRef, component: any) {\r\n const factory = this._factoryResolver.resolveComponentFactory(component);\r\n const componentRef = viewContainerRef.createComponent(factory);\r\n\r\n componentRef.onDestroy(() => {\r\n this._appRef.detachView(componentRef.hostView);\r\n });\r\n\r\n return componentRef;\r\n }\r\n\r\n}\r\n","import {HostDynamicDirective} from \"./host-dynamic.directive\";\r\n\r\nexport class HostingDynamicComponentService {\r\n private hosts: HostDynamicDirective[];\r\n\r\n constructor() {\r\n this.hosts = [];\r\n }\r\n\r\n add(host: HostDynamicDirective) {\r\n this.hosts = this.hosts.filter(function (h) {\r\n return h.ident !== host.ident;\r\n });\r\n this.hosts.push(host);\r\n }\r\n\r\n remove(host: HostDynamicDirective) {\r\n this.hosts = this.hosts.filter(function (h) {\r\n return h.ident !== host.ident;\r\n });\r\n }\r\n\r\n find(ident: number) {\r\n return this.hosts.find(function (h) {\r\n return h.ident === ident;\r\n });\r\n }\r\n}\r\n","import {AfterViewInit, Directive, Input, OnDestroy, ViewContainerRef} from '@angular/core';\r\nimport {HostingDynamicComponentService} from \"./hosting-dynamic-component.service\";\r\n\r\n@Directive({\r\n selector: '[gdHostDynamic]'\r\n})\r\nexport class HostDynamicDirective implements AfterViewInit, OnDestroy {\r\n @Input() ident: number;\r\n\r\n constructor(public viewContainerRef: ViewContainerRef,\r\n private _hostingService: HostingDynamicComponentService) {\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this._hostingService.add(this);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._hostingService.remove(this);\r\n this.viewContainerRef.clear();\r\n }\r\n\r\n}\r\n","import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport * as jquery from \"jquery\";\r\nimport {Utils} from \"../file.service\";\r\n\r\nconst $ = jquery;\r\n\r\n@Component({\r\n selector: 'gd-resizing',\r\n templateUrl: './resizing.component.html',\r\n styleUrls: ['./resizing.component.less']\r\n})\r\nexport class ResizingComponent implements OnInit, AfterViewInit {\r\n\r\n @Input() init: boolean;\r\n @Input() id: number;\r\n @Input() se = false;\r\n @Input() ne = false;\r\n @Input() sw = false;\r\n @Input() nw = false;\r\n @Input() pageWidth: number;\r\n @Input() pageHeight: number;\r\n SE = 'se';\r\n NE = 'ne';\r\n SW = 'sw';\r\n NW = 'nw';\r\n\r\n @Output() offsetX = new EventEmitter();\r\n @Output() offsetY = new EventEmitter();\r\n @Output() offsetTop = new EventEmitter();\r\n @Output() offsetLeft = new EventEmitter();\r\n @Output() release = new EventEmitter();\r\n\r\n private grab = false;\r\n private oldPosition: { x: number, y: number };\r\n\r\n constructor() {\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n const elSE = $(this.getElementId(this.SE));\r\n const elNW = $(this.getElementId(this.NW));\r\n if (this.init && elSE && elNW && elSE.offset() && elNW.offset()) {\r\n let width = elSE.offset().left - elNW.offset().left;\r\n let height = elSE.offset().top - elNW.offset().top;\r\n while (width >= this.pageWidth || height >= this.pageHeight) {\r\n width = width / 2;\r\n height = height / 2;\r\n }\r\n setTimeout(() => {\r\n this.offsetX.emit(width);\r\n this.offsetY.emit(height);\r\n }, 100);\r\n }\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n catchUp($event: DragEvent) {\r\n // ff\r\n $event.preventDefault();\r\n if ($event.dataTransfer) { // ff\r\n $event.dataTransfer.setData('text', 'foo');\r\n }\r\n this.grab = true;\r\n this.oldPosition = Utils.getMousePosition($event);\r\n }\r\n\r\n resize($event: DragEvent, el: string) {\r\n if (!this.grab) {\r\n return;\r\n }\r\n const position = Utils.getMousePosition($event);\r\n if (position.x === 0 && position.y === 0) {\r\n return;\r\n }\r\n const notSW = this.NE === el || this.NW === el;\r\n const notNE = this.SW === el || this.NW === el;\r\n this.setOffsets(position, notNE, notSW);\r\n if (notSW) {\r\n this.offsetTop.emit(position.y - this.oldPosition.y);\r\n }\r\n if (notNE) {\r\n this.offsetLeft.emit(position.x - this.oldPosition.x);\r\n }\r\n this.oldPosition = position;\r\n }\r\n\r\n private setOffsets(position, x: boolean, y: boolean) {\r\n const offsetX = x ? this.oldPosition.x - position.x : position.x - this.oldPosition.x;\r\n const offsetY = y ? this.oldPosition.y - position.y : position.y - this.oldPosition.y;\r\n this.offsetX.emit(offsetX);\r\n this.offsetY.emit(offsetY);\r\n }\r\n\r\n end($event: DragEvent, el: string) {\r\n // ff\r\n this.resize($event, el);\r\n this.release.emit(true);\r\n this.grab = false;\r\n }\r\n\r\n start($event: DragEvent) {\r\n this.drop($event);\r\n }\r\n\r\n drop($event: DragEvent) {\r\n $event.stopPropagation();\r\n $event.preventDefault();\r\n }\r\n\r\n private getElementId(el: string) {\r\n return \"#\" + el + \"-\" + this.id;\r\n }\r\n}\r\n","import {TabActivatorService} from \"./tab-activator.service\";\r\n\r\nexport class TopTabActivatorService extends TabActivatorService {\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {ExceptionMessageService} from \"../exception-message.service\";\r\nimport {TopTabActivatorService} from \"../top-tab-activator.service\";\r\nimport {ModalService, CommonModals} from \"../modal.service\";\r\n\r\n@Component({\r\n selector: 'gd-top-tab',\r\n templateUrl: './top-tab.component.html',\r\n styleUrls: ['./top-tab.component.less']\r\n})\r\nexport class TopTabComponent implements OnInit {\r\n @Input() id: string;\r\n @Input() icon: string;\r\n @Input() disabled = false;\r\n @Input() tooltip: string;\r\n @Output() activeTab = new EventEmitter();\r\n @Input() elementPosition = 0;\r\n public active = false;\r\n public showToolTip = false;\r\n\r\n constructor(private _tabActivatorService: TopTabActivatorService,\r\n private _modalService: ModalService,\r\n private _excMessageService: ExceptionMessageService) {\r\n this._tabActivatorService.activeTabChange.subscribe((tabId: string) => {\r\n this.activation(tabId);\r\n if (tabId === null) {\r\n this.activeTab.emit(\"\");\r\n }\r\n });\r\n }\r\n\r\n private activation(tabId: string) {\r\n if (this.id === tabId) {\r\n this.active = !this.active;\r\n if (this.active) {\r\n this.activeTab.emit(this.id);\r\n } else {\r\n this.activeTab.emit(\"\");\r\n }\r\n } else {\r\n this.active = false;\r\n }\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n toggleTab() {\r\n if (this.disabled) {\r\n this._modalService.open(CommonModals.ErrorMessage);\r\n this._excMessageService.changeMessage(\"Please open document first\");\r\n return;\r\n }\r\n this._tabActivatorService.changeActiveTab(this.id);\r\n }\r\n\r\n}\r\n","import {Component, EventEmitter, Input, OnInit, Output, ElementRef, Renderer2} from '@angular/core';\r\nimport * as jquery from 'jquery';\r\nimport {FormattingService} from \"../formatting.service\";\r\nimport {OnCloseService} from \"../on-close.service\";\r\nimport {Option} from \"../select/select.component\";\r\nimport { ZoomService } from '../zoom.service';\r\nimport { WindowService } from '../window.service';\r\n\r\nconst $ = jquery;\r\n\r\n@Component({\r\n selector: 'gd-text-menu',\r\n templateUrl: './text-menu.component.html',\r\n styleUrls: ['./text-menu.component.less']\r\n})\r\nexport class TextMenuComponent implements OnInit {\r\n @Input() blur: boolean;\r\n @Input() fontSize: number;\r\n @Input() font: string;\r\n @Input() bold: boolean;\r\n @Input() italic: boolean;\r\n @Input() underline: boolean;\r\n @Input() color: string;\r\n @Input() decoration = true;\r\n @Input() showTooltips = true;\r\n\r\n @Output() outFontSize = new EventEmitter();\r\n @Output() outFont = new EventEmitter();\r\n @Output() outBold = new EventEmitter();\r\n @Output() outItalic = new EventEmitter();\r\n @Output() outUnderline = new EventEmitter();\r\n @Output() outColor = new EventEmitter();\r\n\r\n fontSizeOptions = FormattingService.getFontSizeOptions();\r\n fontOptions = FormattingService.getFontOptions();\r\n colorPickerShow = false;\r\n\r\n isMobile: boolean;\r\n\r\n constructor(private _onCloseService: OnCloseService,\r\n private _zoomService: ZoomService,\r\n private _windowService: WindowService,\r\n protected _elementRef: ElementRef,\r\n private renderer: Renderer2) {\r\n \r\n _onCloseService.onClose.subscribe(() => {\r\n this.colorPickerShow = false;\r\n });\r\n\r\n this.isMobile = _windowService.isMobile();\r\n _windowService.onResize.subscribe((w) => {\r\n this.isMobile = _windowService.isMobile();\r\n });\r\n\r\n _zoomService.zoomChange.subscribe((val: number) => {\r\n if (this.isMobile)\r\n {\r\n this.changePosition(val);\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n changePosition(val: number) {\r\n const top = (window.innerHeight - 24 - this._elementRef.nativeElement.parentElement.getBoundingClientRect().top - this._elementRef.nativeElement.parentElement.getBoundingClientRect().height);\r\n const left = this._elementRef.nativeElement.parentElement.getBoundingClientRect().left;\r\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'width', window.innerWidth + 'px');\r\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'top', top + 'px');\r\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-text-menu'), 'left', -left + 'px');\r\n }\r\n\r\n selectFontSize($event: Option) {\r\n $(\".gd-wrapper\").off(\"keyup\");\r\n this.outFontSize.emit($event.value);\r\n $(\".gd-wrapper\").on(\"keyup\", () => {\r\n const fontElements = document.getElementsByTagName(\"font\");\r\n for (let i = 0, len = fontElements.length; i < len; ++i) {\r\n if (fontElements[i].getAttribute('size') === \"7\") {\r\n fontElements[i].removeAttribute(\"size\");\r\n fontElements[i].style.fontSize = $event + \"px\";\r\n }\r\n }\r\n });\r\n }\r\n\r\n selectFont($event: Option) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.outFont.emit($event.value);\r\n }\r\n\r\n toggleColorPicker($event) {\r\n $event.preventDefault();\r\n $event.stopPropagation();\r\n this.colorPickerShow = !this.colorPickerShow;\r\n }\r\n\r\n selectColor($event: string) {\r\n this.colorPickerShow = false;\r\n this.outColor.emit($event);\r\n }\r\n\r\n toggleBold(event) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.outBold.emit(!this.bold);\r\n }\r\n\r\n toggleItalic(event) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.outItalic.emit(!this.italic);\r\n }\r\n\r\n toggleUnderline(event) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.outUnderline.emit(!this.underline);\r\n }\r\n\r\n closePicker($event) {\r\n this.colorPickerShow = !$event;\r\n }\r\n}\r\n","import {Component, EventEmitter, Input, OnInit, Output, Renderer2, ElementRef} from '@angular/core';\r\nimport {Formatting} from \"../formatting.service\";\r\nimport {WindowService} from \"../window.service\";\r\nimport { ZoomService } from '../zoom.service';\r\n\r\nexport class MenuType {\r\n public static FOR_SIGNATURE = \"signature\";\r\n public static FOR_ANNOTATION = \"annotation\";\r\n}\r\n\r\n@Component({\r\n selector: 'gd-context-menu',\r\n templateUrl: './context-menu.component.html',\r\n styleUrls: ['./context-menu.component.less']\r\n})\r\nexport class ContextMenuComponent implements OnInit {\r\n @Input() formatting: Formatting = Formatting.default();\r\n @Input() textMenu: boolean;\r\n @Input() topPosition: number;\r\n @Input() lock = false;\r\n @Input() translation = 0;\r\n @Input() menuType: string;\r\n @Output() changeFormatting = new EventEmitter();\r\n @Output() removeItem = new EventEmitter();\r\n @Output() copySign = new EventEmitter();\r\n @Output() lockOut = new EventEmitter();\r\n @Output() comment = new EventEmitter();\r\n\r\n isMobile: boolean;\r\n\r\n constructor(private _windowService: WindowService,\r\n private _zoomService: ZoomService,\r\n protected _elementRef: ElementRef,\r\n private renderer: Renderer2) {\r\n this.isMobile = _windowService.isMobile();\r\n _windowService.onResize.subscribe((w) => {\r\n this.isMobile = _windowService.isMobile();\r\n });\r\n\r\n _zoomService.zoomChange.subscribe((val: number) => {\r\n if (this.isMobile)\r\n {\r\n this.changeScale(val);\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n changeScale(val: number){\r\n this.renderer.setStyle(this._elementRef.nativeElement.querySelector('.gd-context-menu'), 'transform', 'scale(' + 1/(val/100) + ')');\r\n }\r\n\r\n saveChanges() {\r\n this.changeFormatting.emit(this.formatting);\r\n }\r\n\r\n selectFontSize($event: number) {\r\n this.formatting.fontSize = $event;\r\n this.saveChanges();\r\n }\r\n\r\n selectFont($event: string) {\r\n this.formatting.font = $event;\r\n this.saveChanges();\r\n }\r\n\r\n selectColor($event: string) {\r\n this.formatting.color = $event;\r\n this.saveChanges();\r\n }\r\n\r\n toggleBold($event) {\r\n this.formatting.bold = $event;\r\n this.saveChanges();\r\n }\r\n\r\n toggleItalic($event) {\r\n this.formatting.italic = $event;\r\n this.saveChanges();\r\n }\r\n\r\n toggleUnderline($event) {\r\n this.formatting.underline = $event;\r\n this.saveChanges();\r\n }\r\n\r\n deleteItem() {\r\n this.removeItem.emit(true);\r\n }\r\n\r\n toggleLock() {\r\n this.lock = !this.lock;\r\n this.lockOut.emit(this.lock);\r\n }\r\n\r\n onCopySign() {\r\n this.copySign.emit(true);\r\n }\r\n\r\n isSignature() {\r\n return this.menuType === MenuType.FOR_SIGNATURE;\r\n }\r\n\r\n isAnnotation() {\r\n return this.menuType === MenuType.FOR_ANNOTATION;\r\n }\r\n\r\n addComment() {\r\n this.comment.emit(true);\r\n }\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {TopToolbarComponent} from './top-toolbar/top-toolbar.component';\r\nimport {SidePanelComponent} from './side-panel/side-panel.component';\r\nimport {ButtonComponent} from './button/button.component';\r\nimport {LogoComponent} from './logo/logo.component';\r\nimport {TooltipComponent} from './tooltip/tooltip.component';\r\nimport {FontAwesomeModule} from '@fortawesome/angular-fontawesome';\r\nimport {library} from '@fortawesome/fontawesome-svg-core';\r\nimport {fas} from '@fortawesome/free-solid-svg-icons';\r\nimport {far} from '@fortawesome/free-regular-svg-icons';\r\nimport {Api, ConfigService,} from \"./config.service\";\r\nimport {ModalService} from \"./modal.service\";\r\nimport {ModalComponent} from './modal/modal.component';\r\nimport {BrowseFilesModalComponent} from './browse-files-modal/browse-files-modal.component';\r\nimport {FileModel, FileService, FileUtil, Utils} from \"./file.service\";\r\nimport {DocumentComponent} from './document/document.component';\r\nimport {PageComponent} from './page/page.component';\r\nimport {HighlightSearchPipe, SanitizeHtmlPipe, SanitizeResourceHtmlPipe, SanitizeStylePipe} from \"./pipes\";\r\nimport {UploadFileZoneComponent} from './upload-file-zone/upload-file-zone.component';\r\nimport {UploadFilesService} from \"./upload-files.service\";\r\nimport {DndDirective} from './dnd.directive';\r\nimport {ScrollableDirective} from './scrollable.directive';\r\nimport {MouseWheelDirective} from './mousewheel.directive';\r\nimport {NavigateService} from \"./navigate.service\";\r\nimport {PagePreloadService} from \"./page-preload.service\";\r\nimport {ZoomDirective} from './zoom.directive';\r\nimport {ZoomService} from \"./zoom.service\";\r\nimport {SelectComponent} from './select/select.component';\r\nimport {DisabledCursorDirective} from './disabled-cursor.directive';\r\nimport {RotationDirective} from './rotation.directive';\r\nimport {InitStateComponent} from './init-state/init-state.component';\r\nimport {RenderPrintService} from \"./render-print.service\";\r\nimport {RenderPrintDirective} from './render-print.directive';\r\nimport {ErrorModalComponent} from './error-modal/error-modal.component';\r\nimport {PasswordRequiredComponent} from './password-required/password-required.component';\r\nimport {ExceptionMessageService} from \"./exception-message.service\";\r\nimport {PasswordService} from \"./password.service\";\r\nimport {ErrorInterceptorService} from \"./error-interceptor.service\";\r\nimport {SearchComponent} from './search/search.component';\r\nimport {SearchableDirective} from './searchable.directive';\r\nimport {SearchService} from \"./search.service\";\r\nimport {WindowService} from \"./window.service\";\r\nimport {ViewportService} from \"./viewport.service\";\r\nimport {TabbedToolbarsComponent} from './tabbed-toolbars/tabbed-toolbars.component';\r\nimport {TabComponent} from \"./tab/tab.component\";\r\nimport {TabsComponent} from \"./tabs/tabs.component\";\r\nimport {FormattingService} from \"./formatting.service\";\r\nimport {ColorPickerComponent} from './color-picker/color-picker.component';\r\nimport {FormattingDirective} from './formatting.directive';\r\nimport {BackFormattingService} from \"./back-formatting.service\";\r\nimport {OnCloseService} from \"./on-close.service\";\r\nimport {SuccessModalComponent} from './success-modal/success-modal.component';\r\nimport {EditorDirective} from './editor.directive';\r\nimport {LoadingMaskComponent} from './loading-mask/loading-mask.component';\r\nimport {LoadingMaskService} from './loading-mask.service';\r\nimport {LoadingMaskInterceptorService} from \"./loading-mask-interceptor.service\";\r\nimport {TabActivatorService} from \"./tab-activator.service\";\r\nimport {\r\n DropDownComponent,\r\n DropDownItemComponent,\r\n DropDownItemsComponent,\r\n DropDownToggleComponent\r\n} from './drop-down/drop-down.component';\r\nimport {ClickOutsideModule} from 'ng-click-outside';\r\nimport {LeftSideBarComponent} from './left-side-bar/left-side-bar.component';\r\nimport {TooltipDirective} from './tooltip.directive';\r\nimport {AddDynamicComponentService} from \"./add-dynamic-component.service\";\r\nimport {HostDynamicDirective} from './host-dynamic.directive';\r\nimport {HostingDynamicComponentService} from \"./hosting-dynamic-component.service\";\r\nimport {ResizingComponent} from './resizing/resizing.component';\r\nimport {TopTabComponent} from './top-tab/top-tab.component';\r\nimport {TopTabActivatorService} from \"./top-tab-activator.service\";\r\nimport {TextMenuComponent} from './text-menu/text-menu.component';\r\nimport {ContextMenuComponent} from './context-menu/context-menu.component';\r\n\r\nconst providers = [ConfigService,\r\n Api,\r\n ModalService,\r\n FileService,\r\n FileModel,\r\n FileUtil,\r\n Utils,\r\n SanitizeHtmlPipe,\r\n SanitizeResourceHtmlPipe,\r\n SanitizeStylePipe,\r\n HighlightSearchPipe,\r\n UploadFilesService,\r\n RenderPrintService,\r\n NavigateService,\r\n PagePreloadService,\r\n ZoomService,\r\n ExceptionMessageService,\r\n PasswordService,\r\n ErrorInterceptorService,\r\n SearchService,\r\n WindowService,\r\n ViewportService,\r\n FormattingService,\r\n BackFormattingService,\r\n OnCloseService,\r\n LoadingMaskInterceptorService,\r\n LoadingMaskService,\r\n TabActivatorService,\r\n AddDynamicComponentService,\r\n HostingDynamicComponentService,\r\n TopTabActivatorService];\r\n\r\n@NgModule({\r\n imports: [CommonModule, FontAwesomeModule, ClickOutsideModule],\r\n declarations: [\r\n TopToolbarComponent,\r\n SidePanelComponent,\r\n ButtonComponent,\r\n LogoComponent,\r\n TooltipComponent,\r\n ModalComponent,\r\n BrowseFilesModalComponent,\r\n DocumentComponent,\r\n PageComponent,\r\n SanitizeHtmlPipe,\r\n SanitizeResourceHtmlPipe,\r\n SanitizeStylePipe,\r\n HighlightSearchPipe,\r\n UploadFileZoneComponent,\r\n DndDirective,\r\n ScrollableDirective,\r\n MouseWheelDirective,\r\n ZoomDirective,\r\n SelectComponent,\r\n DisabledCursorDirective,\r\n RotationDirective,\r\n InitStateComponent,\r\n RenderPrintDirective,\r\n ErrorModalComponent,\r\n PasswordRequiredComponent,\r\n SearchComponent,\r\n SearchableDirective,\r\n TabbedToolbarsComponent,\r\n TabComponent,\r\n TabsComponent,\r\n ColorPickerComponent,\r\n FormattingDirective,\r\n SuccessModalComponent,\r\n EditorDirective,\r\n LoadingMaskComponent,\r\n DropDownComponent,\r\n DropDownItemComponent,\r\n DropDownItemsComponent,\r\n DropDownToggleComponent,\r\n LeftSideBarComponent,\r\n TooltipDirective,\r\n HostDynamicDirective,\r\n ResizingComponent,\r\n TopTabComponent,\r\n TextMenuComponent,\r\n ContextMenuComponent\r\n ],\r\n exports: [\r\n TopToolbarComponent,\r\n SidePanelComponent,\r\n ButtonComponent,\r\n LogoComponent,\r\n TooltipComponent,\r\n ModalComponent,\r\n BrowseFilesModalComponent,\r\n DocumentComponent,\r\n PageComponent,\r\n SanitizeResourceHtmlPipe,\r\n SanitizeStylePipe,\r\n HighlightSearchPipe,\r\n SanitizeHtmlPipe,\r\n UploadFileZoneComponent,\r\n ScrollableDirective,\r\n MouseWheelDirective,\r\n SelectComponent,\r\n RotationDirective,\r\n InitStateComponent,\r\n RenderPrintDirective,\r\n ErrorModalComponent,\r\n PasswordRequiredComponent,\r\n SearchComponent,\r\n SearchableDirective,\r\n TabbedToolbarsComponent,\r\n TabComponent,\r\n TabsComponent,\r\n ColorPickerComponent,\r\n FormattingDirective,\r\n SuccessModalComponent,\r\n LoadingMaskComponent,\r\n DndDirective,\r\n DropDownComponent,\r\n DropDownItemComponent,\r\n DropDownItemsComponent,\r\n DropDownToggleComponent,\r\n ZoomDirective,\r\n DropDownToggleComponent,\r\n LeftSideBarComponent,\r\n TooltipDirective,\r\n HostDynamicDirective,\r\n ResizingComponent,\r\n TopTabComponent,\r\n TextMenuComponent,\r\n ContextMenuComponent\r\n ],\r\n providers: providers\r\n})\r\nexport class CommonComponentsModule {\r\n constructor() {\r\n library.add(fas, far);\r\n }\r\n}\r\n"],"names":["Component","EventEmitter","Input","Output","Subject","fromEvent","debounceTime","distinctUntilChanged","startWith","tap","HttpHeaders","Injectable","ElementRef","tslib_1.__extends","Observable","BehaviorSubject","$","Pipe","DomSanitizer","Directive","HostBinding","HostListener","tslib_1.__values","map","catchError","HttpErrorResponse","throwError","ViewChild","finalize","ViewEncapsulation","Inject","forwardRef","ComponentFactoryResolver","ApplicationRef","ViewContainerRef","Renderer2","library","fas","far","NgModule","CommonModule","FontAwesomeModule","ClickOutsideModule"],"mappings":";;;;;;IAAA;IACA;;IAEA;IACA;;IAEA;IACA;IACA;IACA;IACA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4BACrB,sBAAsB;4BACtB,uBAAuB;4BACvB,oBAAoB;4BACpB,gBAAgB;4BAChB,oBAAoB;4BACpB,iBAAiB;4BACjB,eAAe;4BACf,iBAAiB;4BACjB,oBAAoB;yBACrB;wBACD,OAAO,EAAE;4BACP,mBAAmB;4BACnB,kBAAkB;4BAClB,eAAe;4BACf,aAAa;4BACb,gBAAgB;4BAChB,cAAc;4BACd,yBAAyB;4BACzB,iBAAiB;4BACjB,aAAa;4BACb,wBAAwB;4BACxB,iBAAiB;4BACjB,mBAAmB;4BACnB,gBAAgB;4BAChB,uBAAuB;4BACvB,mBAAmB;4BACnB,mBAAmB;4BACnB,eAAe;4BACf,iBAAiB;4BACjB,kBAAkB;4BAClB,oBAAoB;4BACpB,mBAAmB;4BACnB,yBAAyB;4BACzB,eAAe;4BACf,mBAAmB;4BACnB,uBAAuB;4BACvB,YAAY;4BACZ,aAAa;4BACb,oBAAoB;4BACpB,mBAAmB;4BACnB,qBAAqB;4BACrB,oBAAoB;4BACpB,YAAY;4BACZ,iBAAiB;4BACjB,qBAAqB;4BACrB,sBAAsB;4BACtB,uBAAuB;4BACvB,aAAa;4BACb,uBAAuB;4BACvB,oBAAoB;4BACpB,gBAAgB;4BAChB,oBAAoB;4BACpB,iBAAiB;4BACjB,eAAe;4BACf,iBAAiB;4BACjB,oBAAoB;yBACrB;wBACD,SAAS,EAAE,SAAS;qBACrB;;;;QAKD,6BAAC;KAvGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.min.js b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.min.js
index 28a731430..51f7b9f84 100644
--- a/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.min.js
+++ b/dist/libs/common-components/bundles/groupdocs.examples.angular-common-components.umd.min.js
@@ -1,16 +1,16 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@fortawesome/angular-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons"),require("@fortawesome/free-regular-svg-icons"),require("@angular/common/http"),require("jquery"),require("hammerjs"),require("@angular/platform-browser"),require("ng-click-outside")):"function"==typeof define&&define.amd?define("@groupdocs.examples.angular/common-components",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@fortawesome/angular-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons","@fortawesome/free-regular-svg-icons","@angular/common/http","jquery","hammerjs","@angular/platform-browser","ng-click-outside"],e):e(((t=t||self).groupdocs=t.groupdocs||{},t.groupdocs.examples=t.groupdocs.examples||{},t.groupdocs.examples.angular=t.groupdocs.examples.angular||{},t.groupdocs.examples.angular["common-components"]={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.angularFontawesome,t.fontawesomeSvgCore,t.freeSolidSvgIcons,t.freeRegularSvgIcons,t.ng.common.http,t.jquery,t.Hammer,t.ng.platformBrowser,t.ngClickOutside)}(this,(function(t,e,o,n,i,r,s,a,c,p,l,d,u,g){"use strict";
/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
+ Copyright (c) Microsoft Corporation.
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function f(t,e){function o(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function m(t){var e="function"==typeof Symbol&&t[Symbol.iterator],o=0;return e?e.call(t):{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}}}var b=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"gd-top-toolbar",template:'\n',styles:[".top-toolbar{width:100%;height:60px;z-index:999;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.tools{width:100%;height:100%;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}@media (max-width:1037px){.top-toolbar{height:60px}.tools{height:100%;overflow-x:auto;overflow-scrolling:touch;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.tools::-webkit-scrollbar{width:0;height:0;background-color:#3e4e5a}}"]}]}],t.ctorParameters=function(){return[]},t}(),v=function(){function t(){this.closable=!0,this.saveable=!0,this.hideSidePanel=new e.EventEmitter,this.saveInSidePanel=new e.EventEmitter,this.onlyTitle=!1}return t.prototype.closeSidePanel=function(){this.hideSidePanel.emit(!0)},t.prototype.saveBySidePanel=function(){this.saveInSidePanel.emit(!0)},t.prototype.toggleTitleMode=function(){this.closable&&!this.saveable&&(this.onlyTitle=!this.onlyTitle)},t.decorators=[{type:e.Component,args:[{selector:"gd-side-panel",template:'\n