@sd-angular/core 1.3.75 → 1.3.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sd-angular-core-image-preview.umd.js +122 -7
- package/bundles/sd-angular-core-image-preview.umd.js.map +1 -1
- package/bundles/sd-angular-core-image-preview.umd.min.js +1 -1
- package/bundles/sd-angular-core-image-preview.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-modal-resizable.umd.js +14 -5
- package/bundles/sd-angular-core-modal-resizable.umd.js.map +1 -1
- package/bundles/sd-angular-core-modal-resizable.umd.min.js +2 -2
- package/bundles/sd-angular-core-modal-resizable.umd.min.js.map +1 -1
- package/esm2015/image-preview/sd-angular-core-image-preview.js +3 -2
- package/esm2015/image-preview/src/lib/image-preview/image-preview-sdmodal.component.js +92 -0
- package/esm2015/image-preview/src/lib/image-preview/image-preview.module.js +6 -3
- package/esm2015/modal-resizable/src/lib/modal-resizable/modal-resizable.component.js +15 -6
- package/fesm2015/sd-angular-core-image-preview.js +95 -4
- package/fesm2015/sd-angular-core-image-preview.js.map +1 -1
- package/fesm2015/sd-angular-core-modal-resizable.js +14 -5
- package/fesm2015/sd-angular-core-modal-resizable.js.map +1 -1
- package/image-preview/sd-angular-core-image-preview.d.ts +2 -1
- package/image-preview/sd-angular-core-image-preview.metadata.json +1 -1
- package/image-preview/src/lib/image-preview/image-preview-sdmodal.component.d.ts +28 -0
- package/modal-resizable/sd-angular-core-modal-resizable.metadata.json +1 -1
- package/modal-resizable/src/lib/modal-resizable/modal-resizable.component.d.ts +2 -0
- package/package.json +1 -1
- package/{sd-angular-core-1.3.75.tgz → sd-angular-core-1.3.76.tgz} +0 -0
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/dialog'), require('@angular/material/icon')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sd-angular/core/image-preview', ['exports', '@angular/core', '@angular/common', '@angular/material/dialog', '@angular/material/icon'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['image-preview'] = {}), global.ng.core, global.ng.common, global.ng.material.dialog, global.ng.material.icon));
|
|
5
|
-
}(this, (function (exports, core, common, dialog, icon) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/dialog'), require('@angular/material/icon'), require('jquery'), require('@sd-angular/core/modal')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/image-preview', ['exports', '@angular/core', '@angular/common', '@angular/material/dialog', '@angular/material/icon', 'jquery', '@sd-angular/core/modal'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['image-preview'] = {}), global.ng.core, global.ng.common, global.ng.material.dialog, global.ng.material.icon, global.$, global['sd-angular'].core.modal));
|
|
5
|
+
}(this, (function (exports, core, common, dialog, icon, $, modal) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) { return e; } else {
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
6
29
|
|
|
7
30
|
var ImagePreviewComponent = /** @class */ (function () {
|
|
8
31
|
function ImagePreviewComponent(dialogRef, data) {
|
|
@@ -85,6 +108,96 @@
|
|
|
85
108
|
onClick: [{ type: core.HostListener, args: ["click",] }]
|
|
86
109
|
};
|
|
87
110
|
|
|
111
|
+
var _initImageSlideShowBox;
|
|
112
|
+
var ImagePreviewSdmodalComponent = /** @class */ (function () {
|
|
113
|
+
function ImagePreviewSdmodalComponent(dialogRef, data) {
|
|
114
|
+
var _this = this;
|
|
115
|
+
this.dialogRef = dialogRef;
|
|
116
|
+
this.data = data;
|
|
117
|
+
this.imageList = [];
|
|
118
|
+
this.imageOrgWidthList = [];
|
|
119
|
+
this.imageListTotal = 0;
|
|
120
|
+
this.imageCurrent = '';
|
|
121
|
+
this.imageCurrentIndex = 0;
|
|
122
|
+
this.imageCurrentPercent = 100;
|
|
123
|
+
this.imageCurrentWidth = 0;
|
|
124
|
+
_initImageSlideShowBox.set(this, function () {
|
|
125
|
+
setTimeout(function () {
|
|
126
|
+
_this.imageList = [];
|
|
127
|
+
_this.imageOrgWidthList = [];
|
|
128
|
+
$__namespace('img[alt=c-image-editor-quill]').each(function (index, obj) {
|
|
129
|
+
$__namespace(obj).parent('a').addClass('c-image-editor-quill-box');
|
|
130
|
+
$__namespace(obj).parent('a').click(function (e) {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
e.stopPropagation();
|
|
133
|
+
var currentImg = $__namespace(e.currentTarget).children('img');
|
|
134
|
+
_this.imageCurrent = $__namespace(currentImg).attr('src');
|
|
135
|
+
_this.imageCurrentIndex = _this.imageList.findIndex(function (t) { return t === _this.imageCurrent; });
|
|
136
|
+
_this.imageCurrentPercent = 100;
|
|
137
|
+
// @ts-ignore
|
|
138
|
+
_this.imageCurrentWidth = $__namespace(currentImg)[0].naturalWidth;
|
|
139
|
+
_this.popup.open();
|
|
140
|
+
});
|
|
141
|
+
_this.imageList.push($__namespace(obj).attr('src'));
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
_this.imageOrgWidthList.push($__namespace(obj)[0].naturalWidth);
|
|
144
|
+
_this.imageListTotal = _this.imageList.length;
|
|
145
|
+
});
|
|
146
|
+
}, 100);
|
|
147
|
+
});
|
|
148
|
+
this.imageGalleryBoxPrev = function () {
|
|
149
|
+
if (_this.imageCurrentIndex > 0) {
|
|
150
|
+
_this.imageCurrentIndex--;
|
|
151
|
+
_this.imageCurrent = _this.imageList[_this.imageCurrentIndex];
|
|
152
|
+
_this.imageGalleryBoxCalculateWidth();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.imageGalleryBoxNext = function () {
|
|
156
|
+
if (_this.imageCurrentIndex < _this.imageList.length - 1) {
|
|
157
|
+
_this.imageCurrentIndex++;
|
|
158
|
+
_this.imageCurrent = _this.imageList[_this.imageCurrentIndex];
|
|
159
|
+
_this.imageGalleryBoxCalculateWidth();
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
this.imageGalleryBoxZoomIn = function () {
|
|
163
|
+
if (_this.imageCurrentPercent < 200) {
|
|
164
|
+
_this.imageCurrentPercent += 10;
|
|
165
|
+
_this.imageGalleryBoxCalculateWidth();
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
this.imageGalleryBoxZoomOut = function () {
|
|
169
|
+
if (_this.imageCurrentPercent > 10) {
|
|
170
|
+
_this.imageCurrentPercent -= 10;
|
|
171
|
+
_this.imageGalleryBoxCalculateWidth();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
this.imageGalleryBoxCalculateWidth = function () {
|
|
175
|
+
var orgWidth = _this.imageOrgWidthList[_this.imageCurrentIndex];
|
|
176
|
+
_this.imageCurrentWidth = _this.imageCurrentPercent * orgWidth / 100.0;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
ImagePreviewSdmodalComponent.prototype.ngOnInit = function () {
|
|
180
|
+
// tslint:disable-next-line:max-line-length
|
|
181
|
+
// this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;
|
|
182
|
+
};
|
|
183
|
+
return ImagePreviewSdmodalComponent;
|
|
184
|
+
}());
|
|
185
|
+
_initImageSlideShowBox = new WeakMap();
|
|
186
|
+
ImagePreviewSdmodalComponent.decorators = [
|
|
187
|
+
{ type: core.Component, args: [{
|
|
188
|
+
selector: 'sd-image-preview-2',
|
|
189
|
+
template: "<sd-modal [title]=\"' '\" width=\"90%\" #popup>\r\n <sd-modal-body>\r\n <div class=\"c-image-gallery-box\">\r\n <div class=\"c-content-scroll\">\r\n <div class=\"c-content\">\r\n <div class=\"c-content-cell\">\r\n <img src=\"{{imageCurrent}}\" style=\"width: {{imageCurrentWidth}}px\"/>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"c-toolbar\">\r\n <mat-icon (click)=\"imageGalleryBoxZoomOut()\">zoom_out</mat-icon>\r\n <span><b>{{imageCurrentPercent}}%</b></span>\r\n <mat-icon (click)=\"imageGalleryBoxZoomIn()\">zoom_in</mat-icon>\r\n <span> </span>\r\n <mat-icon (click)=\"imageGalleryBoxPrev()\">navigate_before</mat-icon>\r\n <span><b>{{(imageCurrentIndex + 1)}} / {{imageListTotal}}</b></span>\r\n <mat-icon (click)=\"imageGalleryBoxNext()\">navigate_next</mat-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n </sd-modal-body>\r\n</sd-modal>\r\n",
|
|
190
|
+
styles: [".c-image-gallery-box{background:rgba(0,0,0,.54);position:relative}.c-image-gallery-box .c-content-scroll{height:79vh;overflow:auto;width:100%}.c-image-gallery-box .c-content-scroll .c-content{display:table;height:100%;width:100%}.c-image-gallery-box .c-content-scroll .c-content .c-content-cell{display:table-cell;text-align:center;vertical-align:middle}.c-image-gallery-box .c-toolbar{-moz-user-select:none;-webkit-user-select:none;background:rgba(0,0,0,.5);border-radius:4px;bottom:18px;color:#eee;left:0;margin-left:auto;margin-right:auto;padding-top:8px;position:absolute;right:0;text-align:center;user-select:none;width:250px}.c-image-gallery-box .c-toolbar span{margin:0 4px;vertical-align:top}.c-image-gallery-box .c-toolbar mat-icon{cursor:pointer;margin:0 4px}"]
|
|
191
|
+
},] }
|
|
192
|
+
];
|
|
193
|
+
ImagePreviewSdmodalComponent.ctorParameters = function () { return [
|
|
194
|
+
{ type: dialog.MatDialogRef },
|
|
195
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
196
|
+
]; };
|
|
197
|
+
ImagePreviewSdmodalComponent.propDecorators = {
|
|
198
|
+
popup: [{ type: core.ViewChild, args: [modal.SdModal,] }]
|
|
199
|
+
};
|
|
200
|
+
|
|
88
201
|
var SdImagePreviewModule = /** @class */ (function () {
|
|
89
202
|
function SdImagePreviewModule() {
|
|
90
203
|
}
|
|
@@ -92,12 +205,13 @@
|
|
|
92
205
|
}());
|
|
93
206
|
SdImagePreviewModule.decorators = [
|
|
94
207
|
{ type: core.NgModule, args: [{
|
|
95
|
-
declarations: [ImagePreviewComponent, ImagePreviewDirective],
|
|
208
|
+
declarations: [ImagePreviewComponent, ImagePreviewSdmodalComponent, ImagePreviewDirective],
|
|
96
209
|
exports: [ImagePreviewDirective],
|
|
97
210
|
imports: [
|
|
98
211
|
common.CommonModule,
|
|
99
212
|
dialog.MatDialogModule,
|
|
100
|
-
icon.MatIconModule
|
|
213
|
+
icon.MatIconModule,
|
|
214
|
+
modal.SdModalModule
|
|
101
215
|
],
|
|
102
216
|
entryComponents: [ImagePreviewComponent]
|
|
103
217
|
},] }
|
|
@@ -113,7 +227,8 @@
|
|
|
113
227
|
|
|
114
228
|
exports.SdImagePreviewModule = SdImagePreviewModule;
|
|
115
229
|
exports.ɵa = ImagePreviewComponent;
|
|
116
|
-
exports.ɵb =
|
|
230
|
+
exports.ɵb = ImagePreviewSdmodalComponent;
|
|
231
|
+
exports.ɵc = ImagePreviewDirective;
|
|
117
232
|
|
|
118
233
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
119
234
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-image-preview.umd.js","sources":["../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.component.ts","../../../../projects/sd-core/image-preview/src/lib/directives/image-preview.directive.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.module.ts","../../../../projects/sd-core/image-preview/src/public-api.ts","../../../../projects/sd-core/image-preview/sd-angular-core-image-preview.ts"],"sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>\r\n}\r\n\r\n@Component({\r\n selector: 'app-image-preview',\r\n templateUrl: './image-preview.component.html',\r\n styleUrls: ['./image-preview.component.scss']\r\n})\r\nexport class ImagePreviewComponent implements OnInit {\r\n currentImageUrl: string;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n next(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === this.data.images.length - 1) {\r\n this.currentImageUrl = (this.data.images[0] as Partial<ImagePreview>).previewSrc || (this.data.images[0] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx + 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx + 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n prev(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === 0) {\r\n this.currentImageUrl = (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx - 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n}\r\n","import { Directive, ElementRef, HostListener, Input } from \"@angular/core\";\r\nimport { MatDialog } from \"@angular/material/dialog\";\r\nimport { ImagePreviewComponent } from \"../image-preview/image-preview.component\";\r\n\r\nexport interface ImagePreview {\r\n extension: string;\r\n file: File;\r\n fileName: string;\r\n previewSrc: string;\r\n src: string;\r\n}\r\n\r\n@Directive({\r\n selector: \"[sdImagePreview]\",\r\n})\r\nexport class ImagePreviewDirective {\r\n @Input(\"sdImagePreview\") images?: Array<Partial<ImagePreview>> | string = null;\r\n @Input() sdPreviewCurrentIdx: number;\r\n\r\n constructor(private el: ElementRef, public dialog: MatDialog) {}\r\n\r\n @HostListener(\"click\") onClick() {\r\n let currentImage: string | Partial<ImagePreview>;\r\n currentImage = this.el.nativeElement.src;\r\n if (this.images.length && this.sdPreviewCurrentIdx >= 0) {\r\n currentImage = this.images[this.sdPreviewCurrentIdx];\r\n }\r\n this.dialog.open(ImagePreviewComponent, {\r\n data: { currentImage, images: this.images },\r\n backdropClass: [\"image-prevew-backdrop\"],\r\n panelClass: \"image-prevew-panel\",\r\n width: \"600px\",\r\n maxWidth: \"90%\",\r\n height: \"600px\",\r\n maxHeight: \"90%\",\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ImagePreviewComponent } from './image-preview.component';\r\nimport { ImagePreviewDirective } from '../directives/image-preview.directive';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\n\r\n@NgModule({\r\n declarations: [ImagePreviewComponent, ImagePreviewDirective],\r\n exports: [ImagePreviewDirective],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n MatIconModule\r\n ],\r\n entryComponents: [ImagePreviewComponent]\r\n})\r\nexport class SdImagePreviewModule { }\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\n\r\nexport * from './lib/image-preview/image-preview.module';\r\nexport * from './lib/models/image-preview.model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ImagePreviewDirective as ɵb} from './src/lib/directives/image-preview.directive';\nexport {ImagePreviewComponent as ɵa} from './src/lib/image-preview/image-preview.component';"],"names":["Component","MatDialogRef","Inject","MAT_DIALOG_DATA","Directive","ElementRef","MatDialog","Input","HostListener","NgModule","CommonModule","MatDialogModule","MatIconModule"],"mappings":";;;;;;;QAiBE,+BACS,SAA8C,EACrB,IAAU;YADnC,cAAS,GAAT,SAAS,CAAqC;YACrB,SAAI,GAAJ,IAAI,CAAM;SACvC;QAEL,wCAAQ,GAAR;YACE,IAAI,CAAC,eAAe,GAAG,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;SAC9J;QAED,oCAAI,GAAJ;YAAA,iBAOC;YANC,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAC,KAA4B,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,GAAG,MAAM,KAAI,CAAC,eAAe,GAAA,CAAC,CAAC;YAC1I,IAAG,UAAU,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MA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1
|
+
{"version":3,"file":"sd-angular-core-image-preview.umd.js","sources":["../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.component.ts","../../../../projects/sd-core/image-preview/src/lib/directives/image-preview.directive.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview-sdmodal.component.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.module.ts","../../../../projects/sd-core/image-preview/src/public-api.ts","../../../../projects/sd-core/image-preview/sd-angular-core-image-preview.ts"],"sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>\r\n}\r\n\r\n@Component({\r\n selector: 'app-image-preview',\r\n templateUrl: './image-preview.component.html',\r\n styleUrls: ['./image-preview.component.scss']\r\n})\r\nexport class ImagePreviewComponent implements OnInit {\r\n currentImageUrl: string;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n next(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === this.data.images.length - 1) {\r\n this.currentImageUrl = (this.data.images[0] as Partial<ImagePreview>).previewSrc || (this.data.images[0] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx + 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx + 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n prev(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === 0) {\r\n this.currentImageUrl = (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx - 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n}\r\n","import { Directive, ElementRef, HostListener, Input } from \"@angular/core\";\r\nimport { MatDialog } from \"@angular/material/dialog\";\r\nimport { ImagePreviewComponent } from \"../image-preview/image-preview.component\";\r\n\r\nexport interface ImagePreview {\r\n extension: string;\r\n file: File;\r\n fileName: string;\r\n previewSrc: string;\r\n src: string;\r\n}\r\n\r\n@Directive({\r\n selector: \"[sdImagePreview]\",\r\n})\r\nexport class ImagePreviewDirective {\r\n @Input(\"sdImagePreview\") images?: Array<Partial<ImagePreview>> | string = null;\r\n @Input() sdPreviewCurrentIdx: number;\r\n\r\n constructor(private el: ElementRef, public dialog: MatDialog) {}\r\n\r\n @HostListener(\"click\") onClick() {\r\n let currentImage: string | Partial<ImagePreview>;\r\n currentImage = this.el.nativeElement.src;\r\n if (this.images.length && this.sdPreviewCurrentIdx >= 0) {\r\n currentImage = this.images[this.sdPreviewCurrentIdx];\r\n }\r\n this.dialog.open(ImagePreviewComponent, {\r\n data: { currentImage, images: this.images },\r\n backdropClass: [\"image-prevew-backdrop\"],\r\n panelClass: \"image-prevew-panel\",\r\n width: \"600px\",\r\n maxWidth: \"90%\",\r\n height: \"600px\",\r\n maxHeight: \"90%\",\r\n });\r\n }\r\n}\r\n","import {Component, Inject, OnInit, ViewChild} from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\nimport * as $ from 'jquery';\r\nimport {SdModal} from '@sd-angular/core/modal';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>;\r\n}\r\n\r\n@Component({\r\n selector: 'sd-image-preview-2',\r\n templateUrl: './image-preview-sdmodal.component.html',\r\n styleUrls: ['./image-preview-sdmodal.component.scss']\r\n})\r\nexport class ImagePreviewSdmodalComponent implements OnInit {\r\n @ViewChild(SdModal) popup: SdModal;\r\n imageList = [];\r\n imageOrgWidthList = [];\r\n imageListTotal = 0;\r\n imageCurrent = '';\r\n imageCurrentIndex = 0;\r\n imageCurrentPercent = 100;\r\n imageCurrentWidth = 0;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewSdmodalComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n // tslint:disable-next-line:max-line-length\r\n // this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n #initImageSlideShowBox = () => {\r\n setTimeout(() => {\r\n this.imageList = [];\r\n this.imageOrgWidthList = [];\r\n $('img[alt=c-image-editor-quill]').each((index, obj) => {\r\n $(obj).parent('a').addClass('c-image-editor-quill-box');\r\n $(obj).parent('a').click((e) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n const currentImg = $(e.currentTarget).children('img');\r\n this.imageCurrent = $(currentImg).attr('src');\r\n this.imageCurrentIndex = this.imageList.findIndex(t => t === this.imageCurrent);\r\n this.imageCurrentPercent = 100;\r\n // @ts-ignore\r\n this.imageCurrentWidth = $(currentImg)[0].naturalWidth;\r\n this.popup.open();\r\n });\r\n this.imageList.push($(obj).attr('src'));\r\n // @ts-ignore\r\n this.imageOrgWidthList.push($(obj)[0].naturalWidth);\r\n this.imageListTotal = this.imageList.length;\r\n });\r\n }, 100);\r\n\r\n }\r\n\r\n imageGalleryBoxPrev = () => {\r\n if (this.imageCurrentIndex > 0) {\r\n this.imageCurrentIndex--;\r\n this.imageCurrent = this.imageList[this.imageCurrentIndex];\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxNext = () => {\r\n if (this.imageCurrentIndex < this.imageList.length - 1) {\r\n this.imageCurrentIndex++;\r\n this.imageCurrent = this.imageList[this.imageCurrentIndex];\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxZoomIn = () => {\r\n if (this.imageCurrentPercent < 200) {\r\n this.imageCurrentPercent += 10;\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxZoomOut = () => {\r\n if (this.imageCurrentPercent > 10) {\r\n this.imageCurrentPercent -= 10;\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxCalculateWidth = () => {\r\n const orgWidth = this.imageOrgWidthList[this.imageCurrentIndex];\r\n this.imageCurrentWidth = this.imageCurrentPercent * orgWidth / 100.0;\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ImagePreviewComponent } from './image-preview.component';\r\nimport { ImagePreviewDirective } from '../directives/image-preview.directive';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport {ImagePreviewSdmodalComponent} from './image-preview-sdmodal.component';\r\nimport {SdModalModule} from '@sd-angular/core/modal';\r\n\r\n@NgModule({\r\n declarations: [ImagePreviewComponent, ImagePreviewSdmodalComponent, ImagePreviewDirective],\r\n exports: [ImagePreviewDirective],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n MatIconModule,\r\n SdModalModule\r\n ],\r\n entryComponents: [ImagePreviewComponent]\r\n})\r\nexport class SdImagePreviewModule { }\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\n\r\nexport * from './lib/image-preview/image-preview.module';\r\nexport * from './lib/models/image-preview.model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ImagePreviewDirective as ɵc} from './src/lib/directives/image-preview.directive';\nexport {ImagePreviewSdmodalComponent as ɵb} from './src/lib/image-preview/image-preview-sdmodal.component';\nexport {ImagePreviewComponent as ɵa} from './src/lib/image-preview/image-preview.component';"],"names":["Component","MatDialogRef","Inject","MAT_DIALOG_DATA","Directive","ElementRef","MatDialog","Input","HostListener","$","ViewChild","SdModal","NgModule","CommonModule","MatDialogModule","MatIconModule","SdModalModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiBE,+BACS,SAA8C,EACrB,IAAU;YADnC,cAAS,GAAT,SAAS,CAAqC;YACrB,SAAI,GAAJ,IAAI,CAAM;SACvC;QAEL,wCAAQ,GAAR;YACE,IAAI,CAAC,eAAe,GAAG,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;SAC9J;QAED,oCAAI,GAAJ;YAAA,iBAOC;YANC,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAC,KAA4B,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,GAAG,MAAM,KAAI,CAAC,eAAe,GAAA,CAAC,CAAC;YAC1I,IAAG,UAAU,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7C,IAAI,CAAC,eAAe,GAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAA2B,CAAC,UAAU,IAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAA2B,CAAC,GAAG,CAAA;aACxI;iBAAM;gBACL,IAAI,CAAC,eAAe,GAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,CAA2B,CAAC,UAAU,IAAK,IAAI,CAAC,IAAI,CAAC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AA4B,EAAE,qBAAqB,CAAC;oBAC1F,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE;wBACPC,mBAAY;wBACZC,sBAAe;wBACfC,kBAAa;wBACbC,mBAAa;qBACd;oBACD,eAAe,EAAE,CAAC,qBAAqB,CAAC;iBACzC;;;ICnBD;;;;ICAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/dialog"),require("@angular/material/icon"),require("jquery"),require("@sd-angular/core/modal")):"function"==typeof define&&define.amd?define("@sd-angular/core/image-preview",["exports","@angular/core","@angular/common","@angular/material/dialog","@angular/material/icon","jquery","@sd-angular/core/modal"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["sd-angular"]=e["sd-angular"]||{},e["sd-angular"].core=e["sd-angular"].core||{},e["sd-angular"].core["image-preview"]={}),e.ng.core,e.ng.common,e.ng.material.dialog,e.ng.material.icon,e.$,e["sd-angular"].core.modal)}(this,(function(e,t,a,r,i,n,o){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var s=l(n),c=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){this.currentImageUrl="string"==typeof this.data.currentImage?this.data.currentImage:this.data.currentImage.previewSrc||this.data.currentImage.src},e.prototype.next=function(){var e=this,t=this.data.images.findIndex((function(t){return(t.previewSrc||t.src)===e.currentImageUrl}));t===this.data.images.length-1?this.currentImageUrl=this.data.images[0].previewSrc||this.data.images[0].src:this.currentImageUrl=this.data.images[t+1].previewSrc||this.data.images[t+1].src},e.prototype.prev=function(){var e=this,t=this.data.images.findIndex((function(t){return(t.previewSrc||t.src)===e.currentImageUrl}));this.currentImageUrl=0===t?this.data.images[this.data.images.length-1].previewSrc||this.data.images[this.data.images.length-1].src:this.data.images[t-1].previewSrc||this.data.images[t-1].src},e}();c.decorators=[{type:t.Component,args:[{selector:"app-image-preview",template:'<h1 mat-dialog-title class="d-flex">\r\n <mat-icon\r\n mat-dialog-close\r\n role="img"\r\n class="mat-icon notranslate material-icons mat-icon-no-color ml-auto"\r\n >close</mat-icon\r\n >\r\n</h1>\r\n<div mat-dialog-content class="h-100 position-relative m-0">\r\n <ng-container *ngIf="data?.images?.length">\r\n <span class="material-icons-outlined position-absolute prev" (click)="prev()">\r\n arrow_back_ios\r\n </span>\r\n <span class="material-icons-outlined position-absolute next" (click)="next()">\r\n arrow_forward_ios\r\n </span>\r\n </ng-container>\r\n <img\r\n [src]="currentImageUrl"\r\n class="image-preview_image"\r\n />\r\n</div>\r\n',styles:[".image-prevew-panel .mat-dialog-container{padding:0}:host{display:flex;flex-direction:column;height:100%}.image-preview_image{-o-object-fit:contain;display:block;height:100%;margin:0 auto;object-fit:contain;width:90%}.material-icons-outlined{cursor:pointer}.material-icons-outlined.prev{left:5px;top:50%;transform:translateY(-50%)}.material-icons-outlined.next{right:5px;top:50%;transform:translateY(-50%)}"]}]}],c.ctorParameters=function(){return[{type:r.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[r.MAT_DIALOG_DATA]}]}]};var g,m=function(){function e(e,t){this.el=e,this.dialog=t,this.images=null}return e.prototype.onClick=function(){var e;e=this.el.nativeElement.src,this.images.length&&this.sdPreviewCurrentIdx>=0&&(e=this.images[this.sdPreviewCurrentIdx]),this.dialog.open(c,{data:{currentImage:e,images:this.images},backdropClass:["image-prevew-backdrop"],panelClass:"image-prevew-panel",width:"600px",maxWidth:"90%",height:"600px",maxHeight:"90%"})},e}();m.decorators=[{type:t.Directive,args:[{selector:"[sdImagePreview]"}]}],m.ctorParameters=function(){return[{type:t.ElementRef},{type:r.MatDialog}]},m.propDecorators={images:[{type:t.Input,args:["sdImagePreview"]}],sdPreviewCurrentIdx:[{type:t.Input}],onClick:[{type:t.HostListener,args:["click"]}]};var d=function(){function e(e,t){var a=this;this.dialogRef=e,this.data=t,this.imageList=[],this.imageOrgWidthList=[],this.imageListTotal=0,this.imageCurrent="",this.imageCurrentIndex=0,this.imageCurrentPercent=100,this.imageCurrentWidth=0,g.set(this,(function(){setTimeout((function(){a.imageList=[],a.imageOrgWidthList=[],s("img[alt=c-image-editor-quill]").each((function(e,t){s(t).parent("a").addClass("c-image-editor-quill-box"),s(t).parent("a").click((function(e){e.preventDefault(),e.stopPropagation();var t=s(e.currentTarget).children("img");a.imageCurrent=s(t).attr("src"),a.imageCurrentIndex=a.imageList.findIndex((function(e){return e===a.imageCurrent})),a.imageCurrentPercent=100,a.imageCurrentWidth=s(t)[0].naturalWidth,a.popup.open()})),a.imageList.push(s(t).attr("src")),a.imageOrgWidthList.push(s(t)[0].naturalWidth),a.imageListTotal=a.imageList.length}))}),100)})),this.imageGalleryBoxPrev=function(){a.imageCurrentIndex>0&&(a.imageCurrentIndex--,a.imageCurrent=a.imageList[a.imageCurrentIndex],a.imageGalleryBoxCalculateWidth())},this.imageGalleryBoxNext=function(){a.imageCurrentIndex<a.imageList.length-1&&(a.imageCurrentIndex++,a.imageCurrent=a.imageList[a.imageCurrentIndex],a.imageGalleryBoxCalculateWidth())},this.imageGalleryBoxZoomIn=function(){a.imageCurrentPercent<200&&(a.imageCurrentPercent+=10,a.imageGalleryBoxCalculateWidth())},this.imageGalleryBoxZoomOut=function(){a.imageCurrentPercent>10&&(a.imageCurrentPercent-=10,a.imageGalleryBoxCalculateWidth())},this.imageGalleryBoxCalculateWidth=function(){var e=a.imageOrgWidthList[a.imageCurrentIndex];a.imageCurrentWidth=a.imageCurrentPercent*e/100}}return e.prototype.ngOnInit=function(){},e}();g=new WeakMap,d.decorators=[{type:t.Component,args:[{selector:"sd-image-preview-2",template:'<sd-modal [title]="\' \'" width="90%" #popup>\r\n <sd-modal-body>\r\n <div class="c-image-gallery-box">\r\n <div class="c-content-scroll">\r\n <div class="c-content">\r\n <div class="c-content-cell">\r\n <img src="{{imageCurrent}}" style="width: {{imageCurrentWidth}}px"/>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class="c-toolbar">\r\n <mat-icon (click)="imageGalleryBoxZoomOut()">zoom_out</mat-icon>\r\n <span><b>{{imageCurrentPercent}}%</b></span>\r\n <mat-icon (click)="imageGalleryBoxZoomIn()">zoom_in</mat-icon>\r\n <span> </span>\r\n <mat-icon (click)="imageGalleryBoxPrev()">navigate_before</mat-icon>\r\n <span><b>{{(imageCurrentIndex + 1)}} / {{imageListTotal}}</b></span>\r\n <mat-icon (click)="imageGalleryBoxNext()">navigate_next</mat-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n </sd-modal-body>\r\n</sd-modal>\r\n',styles:[".c-image-gallery-box{background:rgba(0,0,0,.54);position:relative}.c-image-gallery-box .c-content-scroll{height:79vh;overflow:auto;width:100%}.c-image-gallery-box .c-content-scroll .c-content{display:table;height:100%;width:100%}.c-image-gallery-box .c-content-scroll .c-content .c-content-cell{display:table-cell;text-align:center;vertical-align:middle}.c-image-gallery-box .c-toolbar{-moz-user-select:none;-webkit-user-select:none;background:rgba(0,0,0,.5);border-radius:4px;bottom:18px;color:#eee;left:0;margin-left:auto;margin-right:auto;padding-top:8px;position:absolute;right:0;text-align:center;user-select:none;width:250px}.c-image-gallery-box .c-toolbar span{margin:0 4px;vertical-align:top}.c-image-gallery-box .c-toolbar mat-icon{cursor:pointer;margin:0 4px}"]}]}],d.ctorParameters=function(){return[{type:r.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[r.MAT_DIALOG_DATA]}]}]},d.propDecorators={popup:[{type:t.ViewChild,args:[o.SdModal]}]};var u=function(){};u.decorators=[{type:t.NgModule,args:[{declarations:[c,d,m],exports:[m],imports:[a.CommonModule,r.MatDialogModule,i.MatIconModule,o.SdModalModule],entryComponents:[c]}]}],e.SdImagePreviewModule=u,e.ɵa=c,e.ɵb=d,e.ɵc=m,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=sd-angular-core-image-preview.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.component.ts","../../../../projects/sd-core/image-preview/src/lib/directives/image-preview.directive.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.module.ts"],"names":["ImagePreviewComponent","dialogRef","data","this","prototype","ngOnInit","currentImageUrl","currentImage","previewSrc","src","next","_this","currentIdx","images","findIndex","image","length","prev","Component","args","selector","template","MatDialogRef","Inject","MAT_DIALOG_DATA","ImagePreviewDirective","el","dialog","onClick","nativeElement","sdPreviewCurrentIdx","open","backdropClass","panelClass","width","maxWidth","height","maxHeight","Directive","ElementRef","MatDialog","Input","HostListener","NgModule","declarations","exports","imports","CommonModule","MatDialogModule","MatIconModule","entryComponents"],"mappings":"uqBAiBE,SAAAA,EACSC,EACyBC,GADzBC,KAAAF,UAAAA,EACyBE,KAAAD,KAAAA,SAGlCF,EAAAI,UAAAC,SAAA,WACEF,KAAKG,gBAAoD,iBAA3BH,KAAKD,KAAKK,aAA4BJ,KAAKD,KAAKK,aAAeJ,KAAKD,KAAKK,aAAaC,YAAcL,KAAKD,KAAKK,aAAaE,KAG3JT,EAAAI,UAAAM,KAAA,WAAA,IAAAC,EAAAR,KACQS,EAAaT,KAAKD,KAAKW,OAAOC,WAAU,SAACC,GAAiC,OAACA,EAAMP,YAAcO,EAAMN,OAASE,EAAKL,mBACtHM,IAAeT,KAAKD,KAAKW,OAAOG,OAAS,EAC1Cb,KAAKG,gBAAmBH,KAAKD,KAAKW,OAAO,GAA6BL,YAAgBL,KAAKD,KAAKW,OAAO,GAA6BJ,IAEpIN,KAAKG,gBAAmBH,KAAKD,KAAKW,OAAOD,EAAa,GAA6BJ,YAAeL,KAAKD,KAA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ByB,GACtCoB,QAAS,CAACpB,GACVqB,QAAS,CACPC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,eAEFC,gBAAiB,CAAClD","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>\r\n}\r\n\r\n@Component({\r\n selector: 'app-image-preview',\r\n templateUrl: './image-preview.component.html',\r\n styleUrls: ['./image-preview.component.scss']\r\n})\r\nexport class ImagePreviewComponent implements OnInit {\r\n currentImageUrl: string;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n next(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === this.data.images.length - 1) {\r\n this.currentImageUrl = (this.data.images[0] as Partial<ImagePreview>).previewSrc || (this.data.images[0] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx + 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx + 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n prev(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === 0) {\r\n this.currentImageUrl = (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx - 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n}\r\n","import { Directive, ElementRef, HostListener, Input } from \"@angular/core\";\r\nimport { MatDialog } from \"@angular/material/dialog\";\r\nimport { ImagePreviewComponent } from \"../image-preview/image-preview.component\";\r\n\r\nexport interface ImagePreview {\r\n extension: string;\r\n file: File;\r\n fileName: string;\r\n previewSrc: string;\r\n src: string;\r\n}\r\n\r\n@Directive({\r\n selector: \"[sdImagePreview]\",\r\n})\r\nexport class ImagePreviewDirective {\r\n @Input(\"sdImagePreview\") images?: Array<Partial<ImagePreview>> | string = null;\r\n @Input() sdPreviewCurrentIdx: number;\r\n\r\n constructor(private el: ElementRef, public dialog: MatDialog) {}\r\n\r\n @HostListener(\"click\") onClick() {\r\n let currentImage: string | Partial<ImagePreview>;\r\n currentImage = this.el.nativeElement.src;\r\n if (this.images.length && this.sdPreviewCurrentIdx >= 0) {\r\n currentImage = this.images[this.sdPreviewCurrentIdx];\r\n }\r\n this.dialog.open(ImagePreviewComponent, {\r\n data: { currentImage, images: this.images },\r\n backdropClass: [\"image-prevew-backdrop\"],\r\n panelClass: \"image-prevew-panel\",\r\n width: \"600px\",\r\n maxWidth: \"90%\",\r\n height: \"600px\",\r\n maxHeight: \"90%\",\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ImagePreviewComponent } from './image-preview.component';\r\nimport { ImagePreviewDirective } from '../directives/image-preview.directive';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\n\r\n@NgModule({\r\n declarations: [ImagePreviewComponent, ImagePreviewDirective],\r\n exports: [ImagePreviewDirective],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n MatIconModule\r\n ],\r\n entryComponents: [ImagePreviewComponent]\r\n})\r\nexport class SdImagePreviewModule { }\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.component.ts","../../../../projects/sd-core/image-preview/src/lib/directives/image-preview.directive.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview-sdmodal.component.ts","../../../../projects/sd-core/image-preview/src/lib/image-preview/image-preview.module.ts"],"names":["ImagePreviewComponent","dialogRef","data","this","prototype","ngOnInit","currentImageUrl","currentImage","previewSrc","src","next","_this","currentIdx","images","findIndex","image","length","prev","Component","args","selector","template","MatDialogRef","Inject","MAT_DIALOG_DATA","ImagePreviewDirective","el","dialog","onClick","nativeElement","sdPreviewCurrentIdx","open","backdropClass","panelClass","width","maxWidth","height","maxHeight","Directive","ElementRef","MatDialog","Input","HostListener","ImagePreviewSdmodalComponent","imageList","imageOrgWidthList","imageListTotal","imageCurrent","imageCurrentIndex","imageCurrentPercent","imageCurrentWidth","_initImageSlideShowBox","set","setTimeout","$","each","index","obj","parent","addClass","click","e","preventDefault","stopPropagation","currentImg","currentTarget","children","attr","t","naturalWidth","popup","push","imageGalleryBoxPrev","imageGalleryBoxCalculateWidth","imageGalleryBoxNext","imageGalleryBoxZoomIn","imageGalleryBoxZoomOut","orgWidth","ViewChild","SdModal","NgModule","declarations","exports","imports","CommonModule","MatDialogModule","MatIconModule","SdModalModule","entryComponents"],"mappings":"skCAiBE,SAAAA,EACSC,EACyBC,GADzBC,KAAAF,UAAAA,EACyBE,KAAAD,KAAAA,SAGlCF,EAAAI,UAAAC,SAAA,WACEF,KAAKG,gBAAoD,iBAA3BH,KAAKD,KAAKK,aAA4BJ,KAAKD,KAAKK,aAAeJ,KAAKD,KAAKK,aAAaC,YAAcL,KAAKD,KAAKK,aAAaE,KAG3JT,EAAAI,UAAAM,KAAA,WAAA,IAAAC,EAAAR,KACQS,EAAaT,KAAKD,KAAKW,OAAOC,WAAU,SAACC,GAAiC,OAACA,EAAMP,YAAcO,EAAMN,OAASE,EAAKL,mBACtHM,IAAeT,KAAKD,KAAKW,OAAOG,OAAS,EAC1Cb,KAAKG,gBAAmBH,KAA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UAAU5B,OAAS,IACnDL,EAAKqC,oBACLrC,EAAKoC,aAAepC,EAAKiC,UAAUjC,EAAKqC,mBACxCrC,EAAK8D,kCAGTtE,KAAAwE,sBAAwB,WAClBhE,EAAKsC,oBAAsB,MAC7BtC,EAAKsC,qBAAuB,GAC5BtC,EAAK8D,kCAGTtE,KAAAyE,uBAAyB,WACnBjE,EAAKsC,oBAAsB,KAC7BtC,EAAKsC,qBAAuB,GAC5BtC,EAAK8D,kCAGTtE,KAAAsE,8BAAgC,WAC9B,IAAMI,EAAWlE,EAAKkC,kBAAkBlC,EAAKqC,mBAC7CrC,EAAKuC,kBAAoBvC,EAAKsC,oBAAsB4B,EAAW,YA3DjElC,EAAAvC,UAAAC,SAAA,oDApBDa,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,qBACVC,SAAA,svDAZOC,EAAAA,6CA2BJC,EAAAA,OAAMJ,KAAA,CAACK,EAAAA,qDAXTsD,EAAAA,UAAS3D,KAAA,CAAC4D,EAAAA,kBCGb,iCAXCC,EAAAA,SAAQ7D,KAAA,CAAC,CACR8D,aAAc,CAACjF,EAAuB2C,EAA8BlB,GACpEyD,QAAS,CAACzD,GACV0D,QAAS,CACPC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,cACAC,EAAAA,eAEFC,gBAAiB,CAACxF","sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>\r\n}\r\n\r\n@Component({\r\n selector: 'app-image-preview',\r\n templateUrl: './image-preview.component.html',\r\n styleUrls: ['./image-preview.component.scss']\r\n})\r\nexport class ImagePreviewComponent implements OnInit {\r\n currentImageUrl: string;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n next(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === this.data.images.length - 1) {\r\n this.currentImageUrl = (this.data.images[0] as Partial<ImagePreview>).previewSrc || (this.data.images[0] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx + 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx + 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n prev(): void {\r\n const currentIdx = this.data.images.findIndex((image: Partial<ImagePreview> )=> (image.previewSrc || image.src) === this.currentImageUrl);\r\n if(currentIdx === 0) {\r\n this.currentImageUrl = (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[this.data.images.length - 1] as Partial<ImagePreview>).src\r\n } else {\r\n this.currentImageUrl = (this.data.images[currentIdx - 1] as Partial<ImagePreview>).previewSrc || (this.data.images[currentIdx - 1] as Partial<ImagePreview>).src;\r\n }\r\n }\r\n\r\n}\r\n","import { Directive, ElementRef, HostListener, Input } from \"@angular/core\";\r\nimport { MatDialog } from \"@angular/material/dialog\";\r\nimport { ImagePreviewComponent } from \"../image-preview/image-preview.component\";\r\n\r\nexport interface ImagePreview {\r\n extension: string;\r\n file: File;\r\n fileName: string;\r\n previewSrc: string;\r\n src: string;\r\n}\r\n\r\n@Directive({\r\n selector: \"[sdImagePreview]\",\r\n})\r\nexport class ImagePreviewDirective {\r\n @Input(\"sdImagePreview\") images?: Array<Partial<ImagePreview>> | string = null;\r\n @Input() sdPreviewCurrentIdx: number;\r\n\r\n constructor(private el: ElementRef, public dialog: MatDialog) {}\r\n\r\n @HostListener(\"click\") onClick() {\r\n let currentImage: string | Partial<ImagePreview>;\r\n currentImage = this.el.nativeElement.src;\r\n if (this.images.length && this.sdPreviewCurrentIdx >= 0) {\r\n currentImage = this.images[this.sdPreviewCurrentIdx];\r\n }\r\n this.dialog.open(ImagePreviewComponent, {\r\n data: { currentImage, images: this.images },\r\n backdropClass: [\"image-prevew-backdrop\"],\r\n panelClass: \"image-prevew-panel\",\r\n width: \"600px\",\r\n maxWidth: \"90%\",\r\n height: \"600px\",\r\n maxHeight: \"90%\",\r\n });\r\n }\r\n}\r\n","import {Component, Inject, OnInit, ViewChild} from '@angular/core';\r\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\r\nimport { ImagePreview } from '../models/image-preview.model';\r\nimport * as $ from 'jquery';\r\nimport {SdModal} from '@sd-angular/core/modal';\r\n\r\nexport interface Data {\r\n currentImage: Partial<ImagePreview> | string;\r\n images: Array<Partial<ImagePreview>>;\r\n}\r\n\r\n@Component({\r\n selector: 'sd-image-preview-2',\r\n templateUrl: './image-preview-sdmodal.component.html',\r\n styleUrls: ['./image-preview-sdmodal.component.scss']\r\n})\r\nexport class ImagePreviewSdmodalComponent implements OnInit {\r\n @ViewChild(SdModal) popup: SdModal;\r\n imageList = [];\r\n imageOrgWidthList = [];\r\n imageListTotal = 0;\r\n imageCurrent = '';\r\n imageCurrentIndex = 0;\r\n imageCurrentPercent = 100;\r\n imageCurrentWidth = 0;\r\n\r\n constructor(\r\n public dialogRef: MatDialogRef<ImagePreviewSdmodalComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: Data\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n // tslint:disable-next-line:max-line-length\r\n // this.currentImageUrl = typeof this.data.currentImage === 'string' ? this.data.currentImage : this.data.currentImage.previewSrc || this.data.currentImage.src;\r\n }\r\n\r\n #initImageSlideShowBox = () => {\r\n setTimeout(() => {\r\n this.imageList = [];\r\n this.imageOrgWidthList = [];\r\n $('img[alt=c-image-editor-quill]').each((index, obj) => {\r\n $(obj).parent('a').addClass('c-image-editor-quill-box');\r\n $(obj).parent('a').click((e) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n const currentImg = $(e.currentTarget).children('img');\r\n this.imageCurrent = $(currentImg).attr('src');\r\n this.imageCurrentIndex = this.imageList.findIndex(t => t === this.imageCurrent);\r\n this.imageCurrentPercent = 100;\r\n // @ts-ignore\r\n this.imageCurrentWidth = $(currentImg)[0].naturalWidth;\r\n this.popup.open();\r\n });\r\n this.imageList.push($(obj).attr('src'));\r\n // @ts-ignore\r\n this.imageOrgWidthList.push($(obj)[0].naturalWidth);\r\n this.imageListTotal = this.imageList.length;\r\n });\r\n }, 100);\r\n\r\n }\r\n\r\n imageGalleryBoxPrev = () => {\r\n if (this.imageCurrentIndex > 0) {\r\n this.imageCurrentIndex--;\r\n this.imageCurrent = this.imageList[this.imageCurrentIndex];\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxNext = () => {\r\n if (this.imageCurrentIndex < this.imageList.length - 1) {\r\n this.imageCurrentIndex++;\r\n this.imageCurrent = this.imageList[this.imageCurrentIndex];\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxZoomIn = () => {\r\n if (this.imageCurrentPercent < 200) {\r\n this.imageCurrentPercent += 10;\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxZoomOut = () => {\r\n if (this.imageCurrentPercent > 10) {\r\n this.imageCurrentPercent -= 10;\r\n this.imageGalleryBoxCalculateWidth();\r\n }\r\n }\r\n imageGalleryBoxCalculateWidth = () => {\r\n const orgWidth = this.imageOrgWidthList[this.imageCurrentIndex];\r\n this.imageCurrentWidth = this.imageCurrentPercent * orgWidth / 100.0;\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ImagePreviewComponent } from './image-preview.component';\r\nimport { ImagePreviewDirective } from '../directives/image-preview.directive';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport {ImagePreviewSdmodalComponent} from './image-preview-sdmodal.component';\r\nimport {SdModalModule} from '@sd-angular/core/modal';\r\n\r\n@NgModule({\r\n declarations: [ImagePreviewComponent, ImagePreviewSdmodalComponent, ImagePreviewDirective],\r\n exports: [ImagePreviewDirective],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n MatIconModule,\r\n SdModalModule\r\n ],\r\n entryComponents: [ImagePreviewComponent]\r\n})\r\nexport class SdImagePreviewModule { }\r\n"]}
|
|
@@ -344,6 +344,7 @@
|
|
|
344
344
|
this.isHover = false;
|
|
345
345
|
this.isLoading = false;
|
|
346
346
|
this.isMinium = false;
|
|
347
|
+
this.isFullscreen = false;
|
|
347
348
|
this.open = function () {
|
|
348
349
|
_this.ref.markForCheck();
|
|
349
350
|
_this.isOpened = true;
|
|
@@ -381,21 +382,29 @@
|
|
|
381
382
|
// console.log('MAXIUM isMinium' + this.id, this.isMinium);
|
|
382
383
|
__classPrivateFieldGet(_this, _drawMiniumBar).call(_this);
|
|
383
384
|
};
|
|
385
|
+
this.changeFullScreen = function () {
|
|
386
|
+
_this.ref.markForCheck();
|
|
387
|
+
_this.isFullscreen = !_this.isFullscreen;
|
|
388
|
+
__classPrivateFieldGet(_this, _drawMiniumBar).call(_this);
|
|
389
|
+
};
|
|
384
390
|
_drawMiniumBar.set(this, function () {
|
|
385
391
|
setTimeout(function () {
|
|
386
392
|
var totalRight = 8;
|
|
387
393
|
var miniumWidth = 300;
|
|
388
394
|
$__default['default']('.modal-custom').each(function (index, item) {
|
|
389
395
|
if ($__default['default'](item).hasClass('c-minium')) {
|
|
390
|
-
$__default['default'](item).css({ width:
|
|
396
|
+
$__default['default'](item).css({ width: miniumWidth + 'px', right: totalRight + 'px' });
|
|
391
397
|
totalRight += miniumWidth + 8;
|
|
392
398
|
}
|
|
393
399
|
else if (!$__default['default'](item).hasClass('c-closed')) {
|
|
394
400
|
var maxiumWidth = parseInt($__default['default'](item).attr('data-width'), 0);
|
|
395
|
-
if (
|
|
401
|
+
if ($__default['default'](item).hasClass('c-fullscreen')) {
|
|
402
|
+
$__default['default'](item).css({ width: 'calc(100% - 16px)', right: '8px' });
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
396
405
|
$__default['default'](item).css({ width: maxiumWidth + 'px', right: totalRight + 'px' });
|
|
397
|
-
totalRight += maxiumWidth + 8;
|
|
398
406
|
}
|
|
407
|
+
totalRight += maxiumWidth + 8;
|
|
399
408
|
}
|
|
400
409
|
});
|
|
401
410
|
}, 100);
|
|
@@ -426,9 +435,9 @@
|
|
|
426
435
|
SdModalResizable.decorators = [
|
|
427
436
|
{ type: core.Component, args: [{
|
|
428
437
|
selector: 'sd-modal-resizable',
|
|
429
|
-
template: "<ng-template cdkPortal>\r\n <div [id]=\"id\" class=\"modal-custom\" [ngStyle]=\"{'width': width}\"\r\n [ngClass]=\"{'modal-custom--active': isOpened,'modal-custom--loading': isLoading, 'c-minium': isMinium}\"\r\n (mouseover)=\"isHover = true\" (mouseout)=\"isHover = false\">\r\n <ng-container *ngIf=\"isOpened\">\r\n <div class=\"modal-custom__header media align-items-center\">\r\n <div class=\"modal-custom__title media-body\">\r\n <ng-content select=\"[sdTitle]\"></ng-content>\r\n </div>\r\n <button type=\"button\" class=\"c-action--white c-min\" (click)=\"minium()\" *ngIf=\"!isMinium\" mat-icon-button\r\n title=\"Thu nh\u1ECF\">\r\n <mat-icon>remove</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white c-max\" (click)=\"maxium()\" *ngIf=\"isMinium\" mat-icon-button\r\n title=\"Ph\u00F3ng to\">\r\n <mat-icon>remove</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white\" (click)=\"close()\" mat-icon-button title=\"\u0110\u00F3ng\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n <div *ngIf=\"isOpened\" class=\"modal-custom__body\">\r\n <div class=\"modal-custom__content\">\r\n <ng-content select=\"[sdBody]\"></ng-content>\r\n </div>\r\n </div>\r\n <div class=\"modal-custom__footer\">\r\n <ng-content select=\"[sdFooter]\"></ng-content>\r\n </div>\r\n </ng-container>\r\n </div>\r\n</ng-template
|
|
438
|
+
template: "<ng-template cdkPortal>\r\n <div [id]=\"id\" class=\"modal-custom\" [ngStyle]=\"{'width': width}\"\r\n [ngClass]=\"{'modal-custom--active': isOpened,'modal-custom--loading': isLoading\r\n , 'c-minium': isMinium, 'c-fullscreen': isFullscreen}\"\r\n (mouseover)=\"isHover = true\" (mouseout)=\"isHover = false\">\r\n <ng-container *ngIf=\"isOpened\">\r\n <div class=\"modal-custom__header media align-items-center\">\r\n <div class=\"modal-custom__title media-body\">\r\n <ng-content select=\"[sdTitle]\"></ng-content>\r\n </div>\r\n <button type=\"button\" class=\"c-action--white c-min\" (click)=\"minium()\" *ngIf=\"!isMinium\" mat-icon-button\r\n title=\"Thu nh\u1ECF\">\r\n <mat-icon>remove</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white c-max\" (click)=\"maxium()\" *ngIf=\"isMinium\" mat-icon-button\r\n title=\"Ph\u00F3ng to\">\r\n <mat-icon>remove</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white\" (click)=\"changeFullScreen()\" *ngIf=\"!isFullscreen\" mat-icon-button\r\n title=\"To\u00E0n m\u00E0n h\u00ECnh\">\r\n <mat-icon>open_in_full</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white\" (click)=\"changeFullScreen()\" *ngIf=\"isFullscreen\" mat-icon-button\r\n title=\"Tho\u00E1t to\u00E0n m\u00E0n h\u00ECnh\">\r\n <mat-icon>fullscreen_exit</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action--white\" (click)=\"close()\" mat-icon-button title=\"\u0110\u00F3ng\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n <div *ngIf=\"isOpened\" class=\"modal-custom__body\">\r\n <div class=\"modal-custom__content\">\r\n <ng-content select=\"[sdBody]\"></ng-content>\r\n </div>\r\n </div>\r\n <div class=\"modal-custom__footer\">\r\n <ng-content select=\"[sdFooter]\"></ng-content>\r\n </div>\r\n </ng-container>\r\n </div>\r\n</ng-template>\r\n",
|
|
430
439
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
431
|
-
styles: [".text-black400{color:#757575}.modal-custom{background-color:#fff;border-radius:4px 4px 0 0;bottom:0;box-shadow:0 .4px .8px rgba(0,0,0,.1),0 3px 6px rgba(0,0,0,.2);display:flex;flex-direction:column;opacity:0;pointer-events:none;position:fixed;right:12px;top:80px;transform:translate3d(0,100%,0);transition:all .3s ease-in-out;visibility:hidden;z-index:999}.modal-custom button.c-action--white:focus{outline:none!important}.modal-custom.c-minium-of-list{bottom:0;opacity:1;pointer-events:all;top:auto;transform:translateZ(0);visibility:visible}.modal-custom.c-minium{top:auto}.modal-custom.c-minium .modal-custom__body,.modal-custom.c-minium .modal-custom__footer{display:none}.c-action{color:#212121}.c-action:focus{outline:none}.c-action--white{color:#fff}.c-action--white.c-min{margin-bottom:-12px}.c-action--white.c-max{margin-top:-12px}.modal-custom__icon{background:transparent;border:0;color:#212121;outline:none;overflow:hidden}.modal-custom__icon .mat-icon{float:left}.modal-custom__header{background-color:#5d6165;border-radius:4px 4px 0 0;color:#fff;min-height:40px;padding:0 16px}.modal-custom__body{flex:1;position:relative}.modal-custom__content{bottom:0;left:0;overflow:auto;padding:8px 16px 16px;position:absolute;right:0;top:0}.modal-custom__footer{border-top:1px solid #dde0e5;padding:5px 0}.modal-custom-backdrop{background:none;border:0;bottom:0;height:100%;left:0;outline:none!important;position:fixed;right:0;top:0;transition:all .3s ease-in-out;width:100%;z-index:99}.modal-custom-backdrop--active{background-color:rgba(0,0,0,.4)}.modal-custom--active{opacity:1;pointer-events:all;transform:translateZ(0);visibility:visible}.modal-custom__title{font-size:14px;font-weight:500;line-height:20px}"]
|
|
440
|
+
styles: [".text-black400{color:#757575}.modal-custom{background-color:#fff;border-radius:4px 4px 0 0;bottom:0;box-shadow:0 .4px .8px rgba(0,0,0,.1),0 3px 6px rgba(0,0,0,.2);display:flex;flex-direction:column;opacity:0;pointer-events:none;position:fixed;right:12px;top:80px;transform:translate3d(0,100%,0);transition:all .3s ease-in-out;visibility:hidden;z-index:999}.modal-custom button.c-action--white:focus{outline:none!important}.modal-custom.c-minium-of-list{bottom:0;opacity:1;pointer-events:all;top:auto;transform:translateZ(0);visibility:visible}.modal-custom.c-minium{top:auto!important;z-index:999!important}.modal-custom.c-minium .modal-custom__body,.modal-custom.c-minium .modal-custom__footer{display:none}.modal-custom.c-fullscreen{top:0;z-index:1000}.c-action{color:#212121}.c-action:focus{outline:none}.c-action--white{color:#fff}.c-action--white.c-min{margin-bottom:-12px}.c-action--white.c-max{margin-top:-12px}.modal-custom__icon{background:transparent;border:0;color:#212121;outline:none;overflow:hidden}.modal-custom__icon .mat-icon{float:left}.modal-custom__header{background-color:#5d6165;border-radius:4px 4px 0 0;color:#fff;min-height:40px;padding:0 16px}.modal-custom__body{flex:1;position:relative}.modal-custom__content{bottom:0;left:0;overflow:auto;padding:8px 16px 16px;position:absolute;right:0;top:0}.modal-custom__footer{border-top:1px solid #dde0e5;padding:5px 0}.modal-custom-backdrop{background:none;border:0;bottom:0;height:100%;left:0;outline:none!important;position:fixed;right:0;top:0;transition:all .3s ease-in-out;width:100%;z-index:99}.modal-custom-backdrop--active{background-color:rgba(0,0,0,.4)}.modal-custom--active{opacity:1;pointer-events:all;transform:translateZ(0);visibility:visible}.modal-custom__title{font-size:14px;font-weight:500;line-height:20px}"]
|
|
432
441
|
},] }
|
|
433
442
|
];
|
|
434
443
|
SdModalResizable.ctorParameters = function () { return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-modal-resizable.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../projects/sd-core/modal-resizable/src/lib/modal-resizable/modal-resizable.component.ts","../../../../projects/sd-core/modal-resizable/src/lib/modal-resizable.module.ts","../../../../projects/sd-core/modal-resizable/src/public-api.ts","../../../../projects/sd-core/modal-resizable/sd-angular-core-modal-resizable.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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\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 var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(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, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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\n/** @deprecated */\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\n/** @deprecated */\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 __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\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\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\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 (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, 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, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\r\n Component,\r\n ViewChild,\r\n ComponentFactoryResolver,\r\n ApplicationRef,\r\n Injector,\r\n EmbeddedViewRef,\r\n AfterViewInit,\r\n OnDestroy,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport {CdkPortal, DomPortalOutlet} from '@angular/cdk/portal';\r\nimport * as uuid from 'uuid';\r\nimport {SdLoadingService} from '@sd-angular/core/loading';\r\nimport $ from 'jquery';\r\n\r\n@Component({\r\n selector: 'sd-modal-resizable',\r\n templateUrl: './modal-resizable.component.html',\r\n styleUrls: ['./modal-resizable.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SdModalResizable implements AfterViewInit, OnDestroy {\r\n id = `I${uuid.v4()}`;\r\n @ViewChild(CdkPortal) portal: CdkPortal;\r\n @Input() editable: boolean;\r\n @Input() width = '480px';\r\n @Output() editingChanged = new EventEmitter<boolean>();\r\n #embeddedViewRef: EmbeddedViewRef<any>;\r\n isEditing = false;\r\n isOpened = false;\r\n isHover = false;\r\n isLoading = false;\r\n isMinium = false;\r\n\r\n constructor(\r\n private cfr: ComponentFactoryResolver,\r\n private ar: ApplicationRef,\r\n private injector: Injector,\r\n private ref: ChangeDetectorRef,\r\n private loadingService: SdLoadingService\r\n ) {\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.#embeddedViewRef = new DomPortalOutlet(\r\n document.body,\r\n this.cfr,\r\n this.ar,\r\n this.injector\r\n ).attachTemplatePortal(this.portal);\r\n }\r\n\r\n open = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = true;\r\n // console.log('OPEN isMinium' + this.id, this.isMinium);\r\n\r\n // tinh toan width maxium lần đầu khi không ở trạng thái minium\r\n if (!$('#' + this.id).hasClass('c-minium')) {\r\n setTimeout(() => {\r\n const maxiumWidth = $('#' + this.id).width();\r\n if (maxiumWidth > 0) {\r\n $('#' + this.id).attr('data-width', maxiumWidth);\r\n }\r\n $('#' + this.id).removeClass('c-closed');\r\n }, 100);\r\n }\r\n\r\n this.maxium();\r\n }\r\n\r\n close = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = false;\r\n setTimeout(() => {\r\n $('#' + this.id).css({width: '0px', right: '0px'}).removeClass('c-minium').addClass('c-closed');\r\n }, 100);\r\n this.stopLoading();\r\n\r\n this.#drawMiniumBar();\r\n }\r\n\r\n minium = () => {\r\n this.ref.markForCheck();\r\n this.isMinium = true;\r\n // console.log('MINIUM isMinium' + this.id, this.isMinium);\r\n this.#drawMiniumBar();\r\n }\r\n\r\n maxium = () => {\r\n this.ref.markForCheck();\r\n this.isMinium = false;\r\n // console.log('MAXIUM isMinium' + this.id, this.isMinium);\r\n this.#drawMiniumBar();\r\n }\r\n\r\n #drawMiniumBar = () => {\r\n setTimeout(() => {\r\n let totalRight = 8;\r\n const miniumWidth = 300;\r\n $('.modal-custom').each((index, item) => {\r\n if ($(item).hasClass('c-minium')) {\r\n $(item).css({width: 300 + 'px', right: totalRight + 'px'});\r\n totalRight += miniumWidth + 8;\r\n } else if (!$(item).hasClass('c-closed')) {\r\n const maxiumWidth = parseInt($(item).attr('data-width'), 0);\r\n if (maxiumWidth > 0) {\r\n $(item).css({width: maxiumWidth + 'px', right: totalRight + 'px'});\r\n totalRight += maxiumWidth + 8;\r\n }\r\n }\r\n\r\n });\r\n }, 100);\r\n\r\n }\r\n\r\n startLoading = () => {\r\n this.isLoading = true;\r\n this.loadingService.stop();\r\n this.loadingService.start(`#${this.id}`);\r\n }\r\n\r\n stopLoading = () => {\r\n this.isLoading = false;\r\n this.loadingService.stop();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.#embeddedViewRef.destroy();\r\n }\r\n\r\n toggleEditable() {\r\n this.isEditing = !this.isEditing;\r\n this.editingChanged.emit(this.isEditing);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { SdButtonModule } from '@sd-angular/core/button';\r\nimport { SdModalResizable } from './modal-resizable/modal-resizable.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatDialogModule,\r\n MatButtonModule,\r\n SdButtonModule,\r\n PortalModule\r\n ],\r\n declarations: [\r\n SdModalResizable\r\n ],\r\n exports: [\r\n SdModalResizable\r\n ],\r\n providers: [\r\n ]\r\n})\r\nexport class SdModalResizableModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/modal-resizable/modal-resizable.component';\r\n\r\nexport * from './lib/modal-resizable.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4","EventEmitter","$","DomPortalOutlet","Component","ChangeDetectionStrategy","ComponentFactoryResolver","ApplicationRef","Injector","ChangeDetectorRef","SdLoadingService","ViewChild","CdkPortal","Input","Output","NgModule","CommonModule","MatIconModule","MatDialogModule","MatButtonModule","SdButtonModule","PortalModule"],"mappings":";;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;QAC9F,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MA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;;;;;;"}
|
|
1
|
+
{"version":3,"file":"sd-angular-core-modal-resizable.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../projects/sd-core/modal-resizable/src/lib/modal-resizable/modal-resizable.component.ts","../../../../projects/sd-core/modal-resizable/src/lib/modal-resizable.module.ts","../../../../projects/sd-core/modal-resizable/src/public-api.ts","../../../../projects/sd-core/modal-resizable/sd-angular-core-modal-resizable.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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\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 var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(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, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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\n/** @deprecated */\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\n/** @deprecated */\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 __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\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\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\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 (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, 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, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\r\n Component,\r\n ViewChild,\r\n ComponentFactoryResolver,\r\n ApplicationRef,\r\n Injector,\r\n EmbeddedViewRef,\r\n AfterViewInit,\r\n OnDestroy,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport {CdkPortal, DomPortalOutlet} from '@angular/cdk/portal';\r\nimport * as uuid from 'uuid';\r\nimport {SdLoadingService} from '@sd-angular/core/loading';\r\nimport $ from 'jquery';\r\n\r\n@Component({\r\n selector: 'sd-modal-resizable',\r\n templateUrl: './modal-resizable.component.html',\r\n styleUrls: ['./modal-resizable.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SdModalResizable implements AfterViewInit, OnDestroy {\r\n id = `I${uuid.v4()}`;\r\n @ViewChild(CdkPortal) portal: CdkPortal;\r\n @Input() editable: boolean;\r\n @Input() width = '480px';\r\n @Output() editingChanged = new EventEmitter<boolean>();\r\n #embeddedViewRef: EmbeddedViewRef<any>;\r\n isEditing = false;\r\n isOpened = false;\r\n isHover = false;\r\n isLoading = false;\r\n isMinium = false;\r\n isFullscreen = false;\r\n\r\n constructor(\r\n private cfr: ComponentFactoryResolver,\r\n private ar: ApplicationRef,\r\n private injector: Injector,\r\n private ref: ChangeDetectorRef,\r\n private loadingService: SdLoadingService\r\n ) {\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.#embeddedViewRef = new DomPortalOutlet(\r\n document.body,\r\n this.cfr,\r\n this.ar,\r\n this.injector\r\n ).attachTemplatePortal(this.portal);\r\n }\r\n\r\n open = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = true;\r\n // console.log('OPEN isMinium' + this.id, this.isMinium);\r\n\r\n // tinh toan width maxium lần đầu khi không ở trạng thái minium\r\n if (!$('#' + this.id).hasClass('c-minium')) {\r\n setTimeout(() => {\r\n const maxiumWidth = $('#' + this.id).width();\r\n if (maxiumWidth > 0) {\r\n $('#' + this.id).attr('data-width', maxiumWidth);\r\n }\r\n $('#' + this.id).removeClass('c-closed');\r\n }, 100);\r\n }\r\n\r\n this.maxium();\r\n }\r\n\r\n close = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = false;\r\n setTimeout(() => {\r\n $('#' + this.id).css({width: '0px', right: '0px'}).removeClass('c-minium').addClass('c-closed');\r\n }, 100);\r\n this.stopLoading();\r\n\r\n this.#drawMiniumBar();\r\n }\r\n\r\n minium = () => {\r\n this.ref.markForCheck();\r\n this.isMinium = true;\r\n // console.log('MINIUM isMinium' + this.id, this.isMinium);\r\n this.#drawMiniumBar();\r\n }\r\n\r\n maxium = () => {\r\n this.ref.markForCheck();\r\n this.isMinium = false;\r\n // console.log('MAXIUM isMinium' + this.id, this.isMinium);\r\n this.#drawMiniumBar();\r\n }\r\n\r\n changeFullScreen = () => {\r\n this.ref.markForCheck();\r\n this.isFullscreen = !this.isFullscreen;\r\n this.#drawMiniumBar();\r\n }\r\n\r\n #drawMiniumBar = () => {\r\n setTimeout(() => {\r\n let totalRight = 8;\r\n const miniumWidth = 300;\r\n $('.modal-custom').each((index, item) => {\r\n if ($(item).hasClass('c-minium')) {\r\n $(item).css({width: miniumWidth + 'px', right: totalRight + 'px'});\r\n totalRight += miniumWidth + 8;\r\n } else if (!$(item).hasClass('c-closed')) {\r\n const maxiumWidth = parseInt($(item).attr('data-width'), 0);\r\n if ($(item).hasClass('c-fullscreen')) {\r\n $(item).css({width: 'calc(100% - 16px)', right: '8px'});\r\n } else {\r\n $(item).css({width: maxiumWidth + 'px', right: totalRight + 'px'});\r\n }\r\n totalRight += maxiumWidth + 8;\r\n }\r\n\r\n });\r\n }, 100);\r\n\r\n }\r\n\r\n startLoading = () => {\r\n this.isLoading = true;\r\n this.loadingService.stop();\r\n this.loadingService.start(`#${this.id}`);\r\n }\r\n\r\n stopLoading = () => {\r\n this.isLoading = false;\r\n this.loadingService.stop();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.#embeddedViewRef.destroy();\r\n }\r\n\r\n toggleEditable() {\r\n this.isEditing = !this.isEditing;\r\n this.editingChanged.emit(this.isEditing);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { SdButtonModule } from '@sd-angular/core/button';\r\nimport { SdModalResizable } from './modal-resizable/modal-resizable.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatDialogModule,\r\n MatButtonModule,\r\n SdButtonModule,\r\n PortalModule\r\n ],\r\n declarations: [\r\n SdModalResizable\r\n ],\r\n exports: [\r\n SdModalResizable\r\n ],\r\n providers: [\r\n ]\r\n})\r\nexport class SdModalResizableModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/modal-resizable/modal-resizable.component';\r\n\r\nexport * from './lib/modal-resizable.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4","EventEmitter","$","DomPortalOutlet","Component","ChangeDetectionStrategy","ComponentFactoryResolver","ApplicationRef","Injector","ChangeDetectorRef","SdLoadingService","ViewChild","CdkPortal","Input","Output","NgModule","CommonModule","MatIconModule","MatDialogModule","MatButtonModule","SdButtonModule","PortalModule"],"mappings":";;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SA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