mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Merge pull request #954 from Alfresco/dev-denys-ie11
IE compatibility fixes
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
|
||||
<!-- Polyfill(s) for older browsers -->
|
||||
<script src="node_modules/core-js/client/shim.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/dom4/1.8.3/dom4.js"></script>
|
||||
<script src="node_modules/element.scrollintoviewifneeded-polyfill/index.js"></script>
|
||||
|
||||
<script src="node_modules/zone.js/dist/zone.js"></script>
|
||||
<script src="node_modules/reflect-metadata/Reflect.js"></script>
|
||||
@@ -34,6 +36,7 @@
|
||||
<script src="/app/js/xml2json.js"></script>
|
||||
<script src="/app/js/Polyline.js"></script>
|
||||
|
||||
<script src="node_modules/pdfjs-dist/web/compatibility.js"></script>
|
||||
<script src="node_modules/pdfjs-dist/build/pdf.js"></script>
|
||||
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
||||
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
||||
|
@@ -94,7 +94,8 @@
|
||||
"ng2-activiti-processlist": "0.3.3",
|
||||
"ng2-alfresco-webscript": "0.3.2",
|
||||
"ng2-alfresco-tag": "0.3.2",
|
||||
"dialog-polyfill": "^0.4.3"
|
||||
"dialog-polyfill": "^0.4.3",
|
||||
"element.scrollintoviewifneeded-polyfill": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/core-js": "^0.9.32",
|
||||
|
@@ -59,7 +59,7 @@ export class UploadWidget extends WidgetComponent implements OnInit {
|
||||
}
|
||||
|
||||
onFileChanged(event: any) {
|
||||
let files = event.srcElement.files;
|
||||
let files = event.target.files;
|
||||
if (files && files.length > 0) {
|
||||
|
||||
let file = files[0];
|
||||
|
@@ -7,6 +7,7 @@ dist
|
||||
src/**/*.js
|
||||
src/**/*.js.map
|
||||
src/**/*.d.ts
|
||||
!src/declarations.d.ts
|
||||
demo/**/*.js
|
||||
demo/**/*.js.map
|
||||
demo/**/*.d.ts
|
||||
|
@@ -19,10 +19,7 @@ import { Component, Input, OnInit, ViewChild, OnChanges, SimpleChanges } from '@
|
||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
||||
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
||||
import { TaskDetailsModel } from '../models/task-details.model';
|
||||
import { Observer } from 'rxjs/Observer';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare let componentHandler: any;
|
||||
import { Observer, Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-checklist',
|
||||
@@ -95,6 +92,9 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
||||
|
||||
public showDialog() {
|
||||
if (this.dialog) {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
}
|
||||
|
@@ -19,10 +19,7 @@ import { Component, Input, OnInit, ViewChild, OnChanges, SimpleChanges } from '@
|
||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
||||
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
||||
import { Comment } from '../models/comment.model';
|
||||
import { Observer } from 'rxjs/Observer';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare let componentHandler: any;
|
||||
import { Observer, Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-comments',
|
||||
@@ -97,6 +94,9 @@ export class ActivitiComments implements OnInit, OnChanges {
|
||||
|
||||
public showDialog() {
|
||||
if (this.dialog) {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
}
|
||||
|
@@ -18,10 +18,7 @@
|
||||
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
||||
import { User } from '../models/user.model';
|
||||
import { Observer } from 'rxjs/Observer';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare let componentHandler: any;
|
||||
import { Observer, Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-people',
|
||||
@@ -62,6 +59,9 @@ export class ActivitiPeople implements OnInit {
|
||||
|
||||
public showDialog() {
|
||||
if (this.dialog) {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
}
|
||||
|
19
ng2-components/ng2-activiti-tasklist/src/declarations.d.ts
vendored
Normal file
19
ng2-components/ng2-activiti-tasklist/src/declarations.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
declare let componentHandler: any;
|
||||
declare let dialogPolyfill: any;
|
Reference in New Issue
Block a user